From 8128077aee01a3b5fb7245b0300e8e374da7b383 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Tue, 15 Jul 2025 18:25:14 -0400 Subject: [PATCH 01/34] starting --- dbt_project.yml | 10 +- .../base/int_shopify_gql__collection.sql | 45 + .../base/int_shopify_gql__customer.sql | 34 + .../base/int_shopify_gql__fulfillment.sql | 40 + .../graphql/base/int_shopify_gql__order.sql | 25 + .../int_shopify__customer_email_rollup.sql | 0 ...int_shopify__daily_abandoned_checkouts.sql | 0 .../int_shopify__daily_fulfillment.sql | 0 .../int_shopify__daily_orders.sql | 0 .../int_shopify__discount_code_enriched.sql | 0 ...hopify__discounts__abandoned_checkouts.sql | 0 ...t_shopify__discounts__order_aggregates.sql | 0 .../int_shopify__emails__order_aggregates.sql | 0 ...t_shopify__inventory_level__aggregates.sql | 0 ...nt_shopify__order__shipping_aggregates.sql | 0 ...hopify__product__order_line_aggregates.sql | 0 .../int_shopify__products_with_aggregates.sql | 0 .../{ => rest}/intermediate/intermediate.yml | 0 .../shopify__customers__order_aggregates.sql | 0 ...shopify__orders__order_line_aggregates.sql | 0 .../shopify__orders__order_refunds.sql | 0 .../shopify__collection_metafields.sql | 0 .../shopify__customer_metafields.sql | 0 .../metafields/shopify__order_metafields.sql | 0 .../shopify__product_metafields.sql | 0 .../shopify__product_variant_metafields.sql | 0 .../metafields/shopify__shop_metafields.sql | 0 .../metafields/shopify_metafields.yml | 0 .../{ => rest}/shopify__customer_cohorts.sql | 0 .../shopify__customer_email_cohorts.sql | 0 .../{ => rest}/shopify__customer_emails.sql | 0 models/{ => rest}/shopify__customers.sql | 0 models/{ => rest}/shopify__daily_shop.sql | 0 models/{ => rest}/shopify__discounts.sql | 0 .../{ => rest}/shopify__inventory_levels.sql | 0 models/{ => rest}/shopify__order_lines.sql | 0 models/{ => rest}/shopify__orders.sql | 0 models/{ => rest}/shopify__products.sql | 0 models/{ => rest}/shopify__transactions.sql | 0 .../shopify__line_item_enhanced.sql | 0 .../shopify__standardized_models.yml | 0 models/shopify_graphql.yml | 1218 +++++++++++++++++ packages.yml | 7 +- 43 files changed, 1373 insertions(+), 6 deletions(-) create mode 100644 models/graphql/base/int_shopify_gql__collection.sql create mode 100644 models/graphql/base/int_shopify_gql__customer.sql create mode 100644 models/graphql/base/int_shopify_gql__fulfillment.sql create mode 100644 models/graphql/base/int_shopify_gql__order.sql rename models/{ => rest}/intermediate/int_shopify__customer_email_rollup.sql (100%) rename models/{ => rest}/intermediate/int_shopify__daily_abandoned_checkouts.sql (100%) rename models/{ => rest}/intermediate/int_shopify__daily_fulfillment.sql (100%) rename models/{ => rest}/intermediate/int_shopify__daily_orders.sql (100%) rename models/{ => rest}/intermediate/int_shopify__discount_code_enriched.sql (100%) rename models/{ => rest}/intermediate/int_shopify__discounts__abandoned_checkouts.sql (100%) rename models/{ => rest}/intermediate/int_shopify__discounts__order_aggregates.sql (100%) rename models/{ => rest}/intermediate/int_shopify__emails__order_aggregates.sql (100%) rename models/{ => rest}/intermediate/int_shopify__inventory_level__aggregates.sql (100%) rename models/{ => rest}/intermediate/int_shopify__order__shipping_aggregates.sql (100%) rename models/{ => rest}/intermediate/int_shopify__product__order_line_aggregates.sql (100%) rename models/{ => rest}/intermediate/int_shopify__products_with_aggregates.sql (100%) rename models/{ => rest}/intermediate/intermediate.yml (100%) rename models/{ => rest}/intermediate/shopify__customers__order_aggregates.sql (100%) rename models/{ => rest}/intermediate/shopify__orders__order_line_aggregates.sql (100%) rename models/{ => rest}/intermediate/shopify__orders__order_refunds.sql (100%) rename models/{ => rest}/metafields/shopify__collection_metafields.sql (100%) rename models/{ => rest}/metafields/shopify__customer_metafields.sql (100%) rename models/{ => rest}/metafields/shopify__order_metafields.sql (100%) rename models/{ => rest}/metafields/shopify__product_metafields.sql (100%) rename models/{ => rest}/metafields/shopify__product_variant_metafields.sql (100%) rename models/{ => rest}/metafields/shopify__shop_metafields.sql (100%) rename models/{ => rest}/metafields/shopify_metafields.yml (100%) rename models/{ => rest}/shopify__customer_cohorts.sql (100%) rename models/{ => rest}/shopify__customer_email_cohorts.sql (100%) rename models/{ => rest}/shopify__customer_emails.sql (100%) rename models/{ => rest}/shopify__customers.sql (100%) rename models/{ => rest}/shopify__daily_shop.sql (100%) rename models/{ => rest}/shopify__discounts.sql (100%) rename models/{ => rest}/shopify__inventory_levels.sql (100%) rename models/{ => rest}/shopify__order_lines.sql (100%) rename models/{ => rest}/shopify__orders.sql (100%) rename models/{ => rest}/shopify__products.sql (100%) rename models/{ => rest}/shopify__transactions.sql (100%) rename models/{ => rest}/standardized_models/shopify__line_item_enhanced.sql (100%) rename models/{ => rest}/standardized_models/shopify__standardized_models.yml (100%) create mode 100644 models/shopify_graphql.yml diff --git a/dbt_project.yml b/dbt_project.yml index 8f2d1e4d..05ff8b68 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -6,10 +6,11 @@ models: shopify: +schema: shopify +materialized: table - intermediate: - +materialized: ephemeral - int_shopify__customer_email_rollup: - +materialized: view # so we can use the dbt_utils.star macro + rest: + intermediate: + +materialized: ephemeral + int_shopify__customer_email_rollup: + +materialized: view # so we can use the dbt_utils.star macro vars: shopify: @@ -56,3 +57,4 @@ vars: shopify_order_discount_code: "{{ ref('stg_shopify__order_discount_code') }}" shopify_abandoned_checkout_shipping_line: "{{ ref('stg_shopify__abandoned_checkout_shipping_line') }}" shopify_fulfillment_event: "{{ ref('stg_shopify__fulfillment_event') }}" +# add stuff here \ No newline at end of file diff --git a/models/graphql/base/int_shopify_gql__collection.sql b/models/graphql/base/int_shopify_gql__collection.sql new file mode 100644 index 00000000..ed1f37c3 --- /dev/null +++ b/models/graphql/base/int_shopify_gql__collection.sql @@ -0,0 +1,45 @@ +with collection as ( + + select * + from {{ ref('stg_shopify_gql__collection') }} +), + +collection_rule as ( + + select * + from {{ ref('stg_shopify_gql__collection_rule') }} +), + +prep_collection_rule as ( + + select + collection_id, + source_relation, + {# should we lower() these fields? #} + '{"column":"' || columns || '","relation":"' || relation || '","condition":"' || condition || '"}' as rule + from collection_rule +), + +agg_collection_rule as ( + + select + collection_id, + source_relation, + '[' || {{ fivetran_utils.string_agg("rule", "','") }} || ']' as rules + from prep_collection_rule + group by collection_id, source_relation +), + +joined as ( + + select + collection.*, + agg_collection_rule.rules + from collection + left join agg_collection_rule + on collection.collection_id = agg_collection_rule.collection_id + and collection.source_relation = agg_collection_rule.source_relation +) + +select * +from joined \ No newline at end of file diff --git a/models/graphql/base/int_shopify_gql__customer.sql b/models/graphql/base/int_shopify_gql__customer.sql new file mode 100644 index 00000000..65aada1e --- /dev/null +++ b/models/graphql/base/int_shopify_gql__customer.sql @@ -0,0 +1,34 @@ +with customer as ( + + select * + from {{ ref('stg_shopify_gql__customer') }} +), + +customer_address as ( + + select * + from {{ ref('stg_shopify_gql__customer_address') }} +), + +customer_default_address as ( + + select * + from customer_address + where coalesce(is_default, false) +), + +joined as ( + + select + customer.*, + customer_default_address.customer_address_id as default_address_id + {# maybe add other fields that are helpful (would be new) #} + + from customer + left join customer_default_address + on customer_default_address.customer_id = customer.customer_id + and customer_default_address.source_relation = customer.source_relation +) + +select * +from joined \ No newline at end of file diff --git a/models/graphql/base/int_shopify_gql__fulfillment.sql b/models/graphql/base/int_shopify_gql__fulfillment.sql new file mode 100644 index 00000000..e60c09af --- /dev/null +++ b/models/graphql/base/int_shopify_gql__fulfillment.sql @@ -0,0 +1,40 @@ +with fulfillment as ( + + select * + from {{ ref('stg_shopify_gql__fulfillment') }} +), + +fulfillment_tracking_info as ( + + select * + from {{ ref('stg_shopify_gql__fulfillment_tracking_info') }} +), + +agg_fulfillment_tracking_info as ( + + select + fulfillment_id, + source_relation, + {{ fivetran_utils.string_agg("distinct cast(tracking_number as " ~ dbt.type_string() ~ ")", "', '") }} as tracking_numbers, + {{ fivetran_utils.string_agg("distinct cast(tracking_url as " ~ dbt.type_string() ~ ")", "', '") }} as tracking_urls, + {# This is new, should we include? #} + {{ fivetran_utils.string_agg("distinct cast(tracking_company as " ~ dbt.type_string() ~ ")", "', '") }} as tracking_companies + from fulfillment_tracking_info + group by fulfillment_id, source_relation +), + +joined as ( + + select + fulfillment.*, + agg_fulfillment_tracking_info.tracking_numbers, + agg_fulfillment_tracking_info.tracking_urls, + agg_fulfillment_tracking_info.tracking_companies + from fulfillment + left join agg_fulfillment_tracking_info + on fulfillment.fulfillment_id = agg_fulfillment_tracking_info.fulfillment_id + and fulfillment.source_relation = agg_fulfillment_tracking_info.source_relation +) + +select * +from joined \ No newline at end of file diff --git a/models/graphql/base/int_shopify_gql__order.sql b/models/graphql/base/int_shopify_gql__order.sql new file mode 100644 index 00000000..66159c4c --- /dev/null +++ b/models/graphql/base/int_shopify_gql__order.sql @@ -0,0 +1,25 @@ +with order as ( + + select * + from {{ ref('stg_shopify_gql__order') }} +), + +customer_visit as ( + + select * + from {{ ref('stg_shopify_gql__customer_visit') }} +), + +joined as ( + + select + order.*, + customer_visit.referring_site + from order + left join customer_visit + on order.order_id = customer_visit.order_id + and order.source_relation = customer_visit.source_relation +) + +select * +from joined \ No newline at end of file diff --git a/models/intermediate/int_shopify__customer_email_rollup.sql b/models/rest/intermediate/int_shopify__customer_email_rollup.sql similarity index 100% rename from models/intermediate/int_shopify__customer_email_rollup.sql rename to models/rest/intermediate/int_shopify__customer_email_rollup.sql diff --git a/models/intermediate/int_shopify__daily_abandoned_checkouts.sql b/models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql similarity index 100% rename from models/intermediate/int_shopify__daily_abandoned_checkouts.sql rename to models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql diff --git a/models/intermediate/int_shopify__daily_fulfillment.sql b/models/rest/intermediate/int_shopify__daily_fulfillment.sql similarity index 100% rename from models/intermediate/int_shopify__daily_fulfillment.sql rename to models/rest/intermediate/int_shopify__daily_fulfillment.sql diff --git a/models/intermediate/int_shopify__daily_orders.sql b/models/rest/intermediate/int_shopify__daily_orders.sql similarity index 100% rename from models/intermediate/int_shopify__daily_orders.sql rename to models/rest/intermediate/int_shopify__daily_orders.sql diff --git a/models/intermediate/int_shopify__discount_code_enriched.sql b/models/rest/intermediate/int_shopify__discount_code_enriched.sql similarity index 100% rename from models/intermediate/int_shopify__discount_code_enriched.sql rename to models/rest/intermediate/int_shopify__discount_code_enriched.sql diff --git a/models/intermediate/int_shopify__discounts__abandoned_checkouts.sql b/models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql similarity index 100% rename from models/intermediate/int_shopify__discounts__abandoned_checkouts.sql rename to models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql diff --git a/models/intermediate/int_shopify__discounts__order_aggregates.sql b/models/rest/intermediate/int_shopify__discounts__order_aggregates.sql similarity index 100% rename from models/intermediate/int_shopify__discounts__order_aggregates.sql rename to models/rest/intermediate/int_shopify__discounts__order_aggregates.sql diff --git a/models/intermediate/int_shopify__emails__order_aggregates.sql b/models/rest/intermediate/int_shopify__emails__order_aggregates.sql similarity index 100% rename from models/intermediate/int_shopify__emails__order_aggregates.sql rename to models/rest/intermediate/int_shopify__emails__order_aggregates.sql diff --git a/models/intermediate/int_shopify__inventory_level__aggregates.sql b/models/rest/intermediate/int_shopify__inventory_level__aggregates.sql similarity index 100% rename from models/intermediate/int_shopify__inventory_level__aggregates.sql rename to models/rest/intermediate/int_shopify__inventory_level__aggregates.sql diff --git a/models/intermediate/int_shopify__order__shipping_aggregates.sql b/models/rest/intermediate/int_shopify__order__shipping_aggregates.sql similarity index 100% rename from models/intermediate/int_shopify__order__shipping_aggregates.sql rename to models/rest/intermediate/int_shopify__order__shipping_aggregates.sql diff --git a/models/intermediate/int_shopify__product__order_line_aggregates.sql b/models/rest/intermediate/int_shopify__product__order_line_aggregates.sql similarity index 100% rename from models/intermediate/int_shopify__product__order_line_aggregates.sql rename to models/rest/intermediate/int_shopify__product__order_line_aggregates.sql diff --git a/models/intermediate/int_shopify__products_with_aggregates.sql b/models/rest/intermediate/int_shopify__products_with_aggregates.sql similarity index 100% rename from models/intermediate/int_shopify__products_with_aggregates.sql rename to models/rest/intermediate/int_shopify__products_with_aggregates.sql diff --git a/models/intermediate/intermediate.yml b/models/rest/intermediate/intermediate.yml similarity index 100% rename from models/intermediate/intermediate.yml rename to models/rest/intermediate/intermediate.yml diff --git a/models/intermediate/shopify__customers__order_aggregates.sql b/models/rest/intermediate/shopify__customers__order_aggregates.sql similarity index 100% rename from models/intermediate/shopify__customers__order_aggregates.sql rename to models/rest/intermediate/shopify__customers__order_aggregates.sql diff --git a/models/intermediate/shopify__orders__order_line_aggregates.sql b/models/rest/intermediate/shopify__orders__order_line_aggregates.sql similarity index 100% rename from models/intermediate/shopify__orders__order_line_aggregates.sql rename to models/rest/intermediate/shopify__orders__order_line_aggregates.sql diff --git a/models/intermediate/shopify__orders__order_refunds.sql b/models/rest/intermediate/shopify__orders__order_refunds.sql similarity index 100% rename from models/intermediate/shopify__orders__order_refunds.sql rename to models/rest/intermediate/shopify__orders__order_refunds.sql diff --git a/models/metafields/shopify__collection_metafields.sql b/models/rest/metafields/shopify__collection_metafields.sql similarity index 100% rename from models/metafields/shopify__collection_metafields.sql rename to models/rest/metafields/shopify__collection_metafields.sql diff --git a/models/metafields/shopify__customer_metafields.sql b/models/rest/metafields/shopify__customer_metafields.sql similarity index 100% rename from models/metafields/shopify__customer_metafields.sql rename to models/rest/metafields/shopify__customer_metafields.sql diff --git a/models/metafields/shopify__order_metafields.sql b/models/rest/metafields/shopify__order_metafields.sql similarity index 100% rename from models/metafields/shopify__order_metafields.sql rename to models/rest/metafields/shopify__order_metafields.sql diff --git a/models/metafields/shopify__product_metafields.sql b/models/rest/metafields/shopify__product_metafields.sql similarity index 100% rename from models/metafields/shopify__product_metafields.sql rename to models/rest/metafields/shopify__product_metafields.sql diff --git a/models/metafields/shopify__product_variant_metafields.sql b/models/rest/metafields/shopify__product_variant_metafields.sql similarity index 100% rename from models/metafields/shopify__product_variant_metafields.sql rename to models/rest/metafields/shopify__product_variant_metafields.sql diff --git a/models/metafields/shopify__shop_metafields.sql b/models/rest/metafields/shopify__shop_metafields.sql similarity index 100% rename from models/metafields/shopify__shop_metafields.sql rename to models/rest/metafields/shopify__shop_metafields.sql diff --git a/models/metafields/shopify_metafields.yml b/models/rest/metafields/shopify_metafields.yml similarity index 100% rename from models/metafields/shopify_metafields.yml rename to models/rest/metafields/shopify_metafields.yml diff --git a/models/shopify__customer_cohorts.sql b/models/rest/shopify__customer_cohorts.sql similarity index 100% rename from models/shopify__customer_cohorts.sql rename to models/rest/shopify__customer_cohorts.sql diff --git a/models/shopify__customer_email_cohorts.sql b/models/rest/shopify__customer_email_cohorts.sql similarity index 100% rename from models/shopify__customer_email_cohorts.sql rename to models/rest/shopify__customer_email_cohorts.sql diff --git a/models/shopify__customer_emails.sql b/models/rest/shopify__customer_emails.sql similarity index 100% rename from models/shopify__customer_emails.sql rename to models/rest/shopify__customer_emails.sql diff --git a/models/shopify__customers.sql b/models/rest/shopify__customers.sql similarity index 100% rename from models/shopify__customers.sql rename to models/rest/shopify__customers.sql diff --git a/models/shopify__daily_shop.sql b/models/rest/shopify__daily_shop.sql similarity index 100% rename from models/shopify__daily_shop.sql rename to models/rest/shopify__daily_shop.sql diff --git a/models/shopify__discounts.sql b/models/rest/shopify__discounts.sql similarity index 100% rename from models/shopify__discounts.sql rename to models/rest/shopify__discounts.sql diff --git a/models/shopify__inventory_levels.sql b/models/rest/shopify__inventory_levels.sql similarity index 100% rename from models/shopify__inventory_levels.sql rename to models/rest/shopify__inventory_levels.sql diff --git a/models/shopify__order_lines.sql b/models/rest/shopify__order_lines.sql similarity index 100% rename from models/shopify__order_lines.sql rename to models/rest/shopify__order_lines.sql diff --git a/models/shopify__orders.sql b/models/rest/shopify__orders.sql similarity index 100% rename from models/shopify__orders.sql rename to models/rest/shopify__orders.sql diff --git a/models/shopify__products.sql b/models/rest/shopify__products.sql similarity index 100% rename from models/shopify__products.sql rename to models/rest/shopify__products.sql diff --git a/models/shopify__transactions.sql b/models/rest/shopify__transactions.sql similarity index 100% rename from models/shopify__transactions.sql rename to models/rest/shopify__transactions.sql diff --git a/models/standardized_models/shopify__line_item_enhanced.sql b/models/rest/standardized_models/shopify__line_item_enhanced.sql similarity index 100% rename from models/standardized_models/shopify__line_item_enhanced.sql rename to models/rest/standardized_models/shopify__line_item_enhanced.sql diff --git a/models/standardized_models/shopify__standardized_models.yml b/models/rest/standardized_models/shopify__standardized_models.yml similarity index 100% rename from models/standardized_models/shopify__standardized_models.yml rename to models/rest/standardized_models/shopify__standardized_models.yml diff --git a/models/shopify_graphql.yml b/models/shopify_graphql.yml new file mode 100644 index 00000000..f5344e90 --- /dev/null +++ b/models/shopify_graphql.yml @@ -0,0 +1,1218 @@ +version: 2 + +models: + - name: shopify_gql__customer_cohorts + description: Each record represents a customer's performance in a calendar month. + columns: + - name: cohort_month + description: The month the cohort belongs to, i.e the first month the customer had an order. + - name: cohort_month_number + description: The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred + - name: customer_cohort_id + description: Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'. + tests: + - unique + - not_null + - name: customer_id + description: The ID of the related customer. + - name: date_month + description: The calendar month the customer stats relate to. + - name: first_order_timestamp + description: The timestamp of the customer's first order. + - name: line_item_count_in_month + description: Number of line items purchased in the `date_month` + - name: line_item_count_lifetime + description: Number of line items purchased up until and including this `date_month`. + - name: order_count_in_month + description: Number of orders purchased in the `date_month` + - name: order_count_lifetime + description: Number of orders purchased up until and including this `date_month`. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: total_price_in_month + description: Total amount (in shop currency) purchased in the `date_month` + - name: total_price_lifetime + description: Total amount (in shop currency) up until and including this `date_month`. + - name: source_relation + description: "{{ doc('source_relation') }}" + + - name: shopify_gql__customer_email_cohorts + description: Each record represents a customer's (on the EMAIL grain) performance in a calendar month. + columns: + - name: cohort_month + description: The month the cohort belongs to, i.e the first month the customer had an order. + - name: cohort_month_number + description: The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred + - name: customer_cohort_id + description: Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'. + tests: + - unique + - not_null + - name: email + description: The ID of the related customer. + - name: date_month + description: The calendar month the customer stats relate to. + - name: first_order_timestamp + description: The timestamp of the customer's first order. + - name: line_item_count_in_month + description: Number of line items purchased in the `date_month` + - name: line_item_count_lifetime + description: Number of line items purchased up until and including this `date_month`. + - name: order_count_in_month + description: Number of orders purchased in the `date_month` + - name: order_count_lifetime + description: Number of orders purchased up until and including this `date_month`. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: total_price_in_month + description: Total amount (in shop currency) purchased in the `date_month` + - name: total_price_lifetime + description: Total amount (in shop currency) up until and including this `date_month`. + - name: source_relation + description: "{{ doc('source_relation') }}" + + - name: shopify_gql__orders + description: Each record represents an order in Shopify. + columns: + - name: orders_unique_key + description: Unique key representing an order. Hashed on 'order_id' and 'source_relation'. + tests: + - unique + - not_null + - name: _fivetran_synced + description: "{{ doc('_fivetran_synced') }}" + - name: app_id + description: The ID of the app that created the order. + - name: billing_address_address_1 + description: The street address of the billing address. + - name: billing_address_address_2 + description: An optional additional field for the street address of the billing address. + - name: billing_address_city + description: The city, town, or village of the billing address. + - name: billing_address_company + description: The company of the person associated with the billing address. + - name: billing_address_country + description: The name of the country of the billing address. + - name: billing_address_country_code + description: The two-letter code (ISO 3166-1 format) for the country of the billing address. + - name: billing_address_first_name + description: The first name of the person associated with the payment method. + - name: billing_address_last_name + description: The last name of the person associated with the payment method. + - name: billing_address_latitude + description: The latitude of the billing address. + - name: billing_address_longitude + description: The longitude of the billing address. + - name: billing_address_name + description: The full name of the person associated with the payment method. + - name: billing_address_phone + description: The phone number at the billing address. + - name: billing_address_province + description: The name of the region (province, state, prefecture, …) of the billing address. + - name: billing_address_province_code + description: The two-letter abbreviation of the region of the billing address. + - name: billing_address_zip + description: The postal code (zip, postcode, Eircode, …) of the billing address. + - name: browser_ip + description: The IP address of the browser used by the customer when they placed the order. + - name: has_buyer_accepted_marketing + description: Whether the customer consented to receive email updates from the shop. + - name: cancel_reason + description: The reason why the order was canceled. + - name: cancelled_timestamp + description: The date and time when the order was canceled. + - name: cart_token + description: The ID of the cart that's associated with the order. + - name: closed_timestamp + description: The date and time when the order was closed (archived). + - name: created_timestamp + description: The autogenerated date and time when the order was created in Shopify. + - name: currency + description: The three-letter code for the shop currency. + - name: customer_id + description: The ID of the order's customer. + - name: email + description: The customer's email address. + - name: financial_status + description: The status of payments associated with the order. Can only be set when the order is created + - name: fulfillment_status + description: The order's status in terms of fulfilled line items. + - name: order_id + description: The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer. + - name: landing_site_base_url + description: The URL for the page where the buyer landed when they entered the shop. + - name: location_id + description: The ID of the physical location where the order was processed. + - name: name + description: The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings. + - name: note + description: An optional note that a shop owner can attach to the order. + - name: number + description: The order's position in the shop's count of orders. Numbers are sequential and start at 1. + - name: order_number + description: The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001. + - name: processed_timestamp + description: The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports. + - name: referring_site + description: The website where the customer clicked a link to the shop. + - name: shipping_address_address_1 + description: The street address of the shipping address. + - name: shipping_address_address_2 + description: An optional additional field for the street address of the shipping address. + - name: shipping_address_city + description: The city, town, or village of the shipping address. + - name: shipping_address_company + description: The company of the person associated with the shipping address. + - name: shipping_address_country + description: The name of the country of the shipping address. + - name: shipping_address_country_code + description: The two-letter code (ISO 3166-1 format) for the country of the shipping address. + - name: shipping_address_first_name + description: The first name of the person associated with the shipping address. + - name: shipping_address_last_name + description: The last name of the person associated with the shipping address. + - name: shipping_address_latitude + description: The latitude of the shipping address. + - name: shipping_address_longitude + description: The longitude of the shipping address. + - name: shipping_address_name + description: The full name of the person associated with the payment method. + - name: shipping_address_phone + description: The phone number at the shipping address. + - name: shipping_address_province + description: The name of the region (province, state, prefecture, …) of the shipping address. + - name: shipping_address_province_code + description: The two-letter abbreviation of the region of the shipping address. + - name: shipping_address_zip + description: The postal code (zip, postcode, Eircode, …) of the shipping address. + - name: source_name + description: Where the order originated. Can be set only during order creation, and is not writeable afterwards. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: subtotal_price + description: The price of the order in the shop currency after discounts but before shipping, taxes, and tips. + - name: has_taxes_included + description: Whether taxes are included in the order subtotal. + - name: is_test_order + description: Whether this is a test order. + - name: token + description: A unique token for the order. + - name: total_discounts + description: The total discounts applied to the price of the order in the shop currency. + - name: total_line_items_price + description: The sum of all line item prices in the shop currency. + - name: total_price + description: The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive. + - name: total_tax + description: The sum of all the taxes applied to the order in th shop currency. Must be positive. + - name: total_weight + description: The sum of all line item weights in grams. + - name: updated_timestamp + description: The date and time (ISO 8601 format) when the order was last modified. + - name: user_id + description: The ID of the user logged into Shopify POS who processed the order, if applicable. + - name: line_item_count + description: Number of line items included in the order. + - name: customer_order_seq_number + description: The sequential number of the order as it relates to the customer + - name: new_vs_repeat + description: Whether the order was a new or repeat order for the customer. + - name: shipping_cost + description: The shipping cost of the order. + - name: order_adjustment_amount + description: Total adjustment amount applied to the order in shop currency. + - name: order_adjustment_tax_amount + description: Total tax applied to the adjustment on the order in shop currency. + - name: refund_subtotal + description: Total refund amount applied to the order in shop currency. + - name: refund_total_tax + description: Total tax applied to the refund on the order in shop currency. + - name: order_adjusted_total + description: > + Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: + total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax + The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange). + - name: checkout_token + description: The checkout token applied to the order. + - name: total_shipping_price_set + description: The total shipping price set to the order. + - name: order_total_shipping_tax + description: Total shipping tax attributed to the order. + - name: order_tags + description: List of tags associated with the order. + - name: order_url_tags + description: List of url tags associated with the order. + - name: number_of_fulfillments + description: Total fulfillments for the order. + - name: fulfillment_services + description: List of fulfillment services for the order. + - name: tracking_companies + description: List of tracking companies for the order. + - name: tracking_numbers + description: List of tracking numbers for the order. + - name: total_tip_received + description: The sum of all the tips in the order in the shop currency. + - name: checkout_id + description: The ID for the checkout. + - name: client_details_user_agent + description: Details of the browsing client, including software and operating versions. + - name: customer_locale + description: The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA. + - name: order_status_url + description: The URL pointing to the order status web page, if applicable. + - name: presentment_currency + description: The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`. + - name: is_deleted + description: "{{ doc('_fivetran_deleted') }}" + - name: tracking_numbers + description: List of tracking numbers for the order. + - name: total_discounts_set + description: The total discounts applied to the price of the order in shop and presentment currencies. + - name: total_line_items_price_set + description: The total of all line item prices in shop and presentment currencies. + - name: total_price_set + description: The total price of the order in shop and presentment currencies. + - name: total_tax_set + description: The total tax applied to the order in shop and presentment currencies. + - name: is_confirmed + description: Whether the order is confirmed. + - name: shipping_discount_amount + description: The total amount of discount (in shop currency) allocated toward shipping. + - name: percentage_calc_discount_amount + description: The total amount of discount (in shop currency) allocated via a percentage-based discount + - name: fixed_amount_discount_amount + description: The total amount of discount (in shop currency) allocated via a fixed-amount discount + - name: count_discount_codes_applied + description: Distinct discount codes applied on the order + - name: source_relation + description: The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft. + + - name: shopify_gql__customers + description: Each record represents a customer in Shopify. + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - customer_id + - source_relation + columns: + - name: _fivetran_synced + description: "{{ doc('_fivetran_synced') }}" + - name: created_timestamp + description: The date and time when the customer was created. + - name: default_address_id + description: The default address for the customer. + - name: email + description: The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error. + - name: first_name + description: The customer's first name. + - name: customer_id + description: A unique identifier for the customer. + - name: last_name + description: The customer's last name. + - name: lifetime_count_orders + description: The number of orders associated with this customer. + - name: phone + description: The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error. + - name: account_state + description: The state of the customer's account with a shop. + - name: is_tax_exempt + description: Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout. + - name: updated_timestamp + description: The date and time when the customer information was last updated. + - name: is_verified_email + description: Whether the customer has verified their email address. + - name: first_order_timestamp + description: The timestamp the customer completed their first order. + - name: most_recent_order_timestamp + description: The timestamp the customer completed their most recent order. + - name: avg_order_value + description: The average order value for the customer. + - name: lifetime_total_spent + description: The total amount of money in shop currency that the customer has spent on orders across their order history. + - name: lifetime_total_refunded + description: The total amount of money that the customer has been refunded on orders across their order history. + - name: lifetime_total_net + description: The total amount of money (minus refunds) that the customer has spent across their order history. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: lifetime_abandoned_checkouts + description: Total number of abandoned checkouts abandoned by the customer. + - name: customer_tags + description: A string aggregated list of all tags associated with a customer. + - name: avg_quantity_per_order + description: Average quantity of items per order customer orders. + - name: lifetime_total_tax + description: Total amount of tax attributed to the customer. + - name: avg_tax_per_order + description: Average tax per order attributed to the customer. + - name: lifetime_total_discount + description: Total discounts attributed to the customer. + - name: avg_discount_per_order + description: Average discount per order attributed to the customer. + - name: lifetime_total_shipping + description: Total shipping costs attributed to the customer. + - name: avg_shipping_per_order + description: Average shipping cost per order attributed to the customer. + - name: lifetime_total_shipping_with_discounts + description: Total shipping costs after discounts attributed to the customer. + - name: avg_shipping_with_discounts_per_order + description: Average shipping costs after discounts per order attributed to the customer. + - name: lifetime_total_shipping_tax + description: Total shipping tax attributed to the customer. + - name: avg_shipping_tax_per_order + description: Average shipping tax per order attributed to the customer. + - name: currency + description: The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders. + - name: note + description: A note about the customer. + - name: marketing_consent_updated_at + description: The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. + - name: marketing_opt_in_level + description: The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. + - name: marketing_consent_state + description: > + Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` + field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'. + + - name: shopify_gql__customer_emails + description: Each record represents a customer email in Shopify. + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - email + - source_relation + columns: + - name: last_fivetran_synced + description: "{{ doc('_fivetran_synced') }}" + - name: default_address_id + description: The default address for the customer. + - name: email + description: The unique email address of the customer. + - name: first_name + description: The customer's first name. + - name: customer_ids + description: Comma-separated list of customer IDs associated with the email. + - name: last_name + description: The customer's last name. + - name: lifetime_count_orders + description: The number of orders associated with this customer. + - name: phone_numbers + description: Comma-separated list of phone numbers associated with this email. + - name: account_state + description: The state of the customer's account with a shop. + - name: is_tax_exempt + description: Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout. + - name: last_updated_at + description: The date and time when the customer information was last updated. + - name: is_verified_email + description: Whether the customer has verified their email address. + - name: first_order_timestamp + description: The timestamp the customer completed their first order. + - name: most_recent_order_timestamp + description: The timestamp the customer completed their most recent order. + - name: avg_order_value + description: The average order value for the customer. + - name: lifetime_total_spent + description: The total amount of money that the customer has spent on orders across their order history (in shop currency). + - name: lifetime_total_refunded + description: The total amount of money that the customer has been refunded on orders across their order history. + - name: lifetime_total_net + description: The total amount of money (minus refunds) that the customer has spent across their order history. + - name: first_account_created_at + description: Timestamp of when the first account associated with this email was created. + - name: last_account_created_at + description: Timestamp of when the last account associated with this email was created. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: lifetime_abandoned_checkouts + description: Total number of abandoned checkouts abandoned by the customer. + - name: customer_tags + description: A string aggregated list of all tags associated with a customer. + - name: avg_quantity_per_order + description: Average quantity of items per order customer orders. + - name: lifetime_total_tax + description: Total amount of tax attributed to the customer. + - name: avg_tax_per_order + description: Average tax per order attributed to the customer. + - name: lifetime_total_discount + description: Total discounts attributed to the customer. + - name: avg_discount_per_order + description: Average discount per order attributed to the customer. + - name: lifetime_total_shipping + description: Total shipping costs attributed to the customer. + - name: avg_shipping_per_order + description: Average shipping cost per order attributed to the customer. + - name: lifetime_total_shipping_with_discounts + description: Total shipping costs after discounts attributed to the customer. + - name: avg_shipping_with_discounts_per_order + description: Average shipping costs after discounts per order attributed to the customer. + - name: lifetime_total_shipping_tax + description: Total shipping tax attributed to the customer. + - name: avg_shipping_tax_per_order + description: Average shipping tax per order attributed to the customer. + - name: marketing_consent_updated_at + description: Timestamp when marketing consent was updated. + - name: currency + description: The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders. + - name: marketing_consent_state + description: The current email marketing state for the customer. New version of `accepts_marketing` field. + - name: marketing_opt_in_level + description: Deprecated. The package will coalesce with `email_marketing_consent_opt_in_level`. + - name: note + description: A note about the customer. + - name: marketing_consent_updated_at + description: The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. + - name: marketing_opt_in_level + description: The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. + - name: marketing_consent_state + description: > + Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` + field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'. + + - name: shopify_gql__products + description: Each record represents a product in Shopify. + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - product_id + - source_relation + columns: + - name: is_deleted + description: Whether the record has been deleted in the source system. + - name: _fivetran_synced + description: "{{ doc('_fivetran_synced') }}" + - name: created_timestamp + description: The date and time when the product was created. + - name: handle + description: A unique human-friendly string for the product. Automatically generated from the product's title. + - name: product_id + description: An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops. + - name: product_type + description: A categorization for the product used for filtering and searching products. + - name: published_timestamp + description: The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel. + - name: published_scope + description: Whether the product is published to the Point of Sale channel. + - name: title + description: The name of the product. + - name: updated_timestamp + description: The date and time when the product was last modified. + - name: vendor + description: The name of the product's vendor. + - name: total_quantity_sold + description: Quantity of the product sold. + - name: subtotal_sold + description: Total amount (in shop currency) of the product sold. + - name: quantity_sold_net_refunds + description: Quantity of the product sold, excluding refunds. + - name: subtotal_sold_net_refunds + description: Total amount (in shop currency) of the product sold, excluding refunds. + - name: first_order_timestamp + description: The timestamp the product was first ordered. + - name: most_recent_order_timestamp + description: The timestamp the product was most recently ordered. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: avg_quantity_per_order_line + description: Average quantity per order line with this product. + - name: product_total_discount + description: Total discounts associated with the product. + - name: product_avg_discount_per_order_line + description: Average discount per order line with this product. + - name: product_total_tax + description: Total taxes associated with the product. + - name: product_avg_tax_per_order_line + description: Average taxes per order line with this product. + - name: count_variants + description: Count of product variants. + - name: has_product_media + description: If the product has media. + - name: status + description: > + The status of the product. Valid values: + - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. + - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. + - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft. + - name: collections + description: Comma-separated list of collections associated with the product. + - name: tags + description: Comma-separated list of tags associated with the product. + + - name: shopify_gql__order_lines + description: Each record represents a line item of an order in Shopify. + columns: + - name: order_lines_unique_key + description: Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'. + tests: + - unique + - not_null + - name: _fivetran_synced + description: "{{ doc('_fivetran_synced') }}" + - name: fulfillable_quantity + description: > + The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity + - name: fulfillment_status + description: How far along an order is in terms line items fulfilled. + - name: is_gift_card + description: Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges. + - name: grams + description: The weight of the item in grams. + - name: order_line_id + description: The ID of the line item. + - name: name + description: The name of the product variant. + - name: order_id + description: The ID of the related order. + - name: price + description: The price of the item before discounts have been applied in the shop currency. + - name: product_id + description: The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date. + - name: quantity + description: The number of items that were purchased. + - name: is_shipping_required + description: Whether the item requires shipping. + - name: sku + description: The item's SKU (stock keeping unit). + - name: is_taxable + description: Whether the item was taxable. + - name: title + description: The title of the product. + - name: total_discount + description: The total amount of the discount allocated to the line item in the shop currency. + - name: variant_id + description: The ID of the product variant. + - name: vendor + description: The name of the item's supplier. + - name: refunded_quantity + description: Quantity of the item that has been refunded. + - name: quantity_net_refunds + description: Quantity ordered, excluding refunds. + - name: variant_barcode + description: The barcode, UPC, or ISBN number for the product. + - name: variant_compare_at_price + description: The original price of the item before an adjustment or a sale in shop currency. + - name: variant_created_at + description: The date and time (ISO 8601 format) when the product variant was created. + - name: variant_fulfillment_service + description: (DEPRECATED 2025-01-06) The fulfillment service associated with the product variant. + - name: variant_grams + description: (DEPRECATED 2025-01-06) The weight of the product variant in grams. + - name: inventory_item_id + description: The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information. + - name: media_id + description: The unique numeric identifier for a product variant's media. + - name: variant_inventory_management + description: (DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant. + - name: variant_inventory_policy + description: Whether customers are allowed to place an order for the product variant when it's out of stock. + - name: variant_inventory_quantity + description: An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource. + - name: variant_option_1 + description: > + (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. + - name: variant_option_2 + description: > + (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. + - name: variant_option_3 + description: > + (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. + - name: variant_position + description: The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed. + - name: variant_price + description: The price of the product variant. + - name: variant_sku + description: A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService. + - name: variant_is_taxable + description: Whether a tax is charged when the product variant is sold. + - name: variant_tax_code + description: This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant. + - name: variant_title + description: The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields. + - name: variant_updated_at + description: The date and time when the product variant was last modified. Gets returned in ISO 8601 format. + - name: variant_weight + description: (DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit. + - name: variant_weight_unit + description: > + (DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb. + - name: variant_is_available_for_sale + description: Indicates whether the product variant is available for sale. + - name: variant_display_name + description: The display name of the variant, based on the product's title and variant's title. + - name: variant_legacy_resource_id + description: The ID of the corresponding resource in the REST Admin API. + - name: variant_has_components_required + description: Indicates whether a product variant requires components. + - name: variant_sellable_online_quantity + description: The total sellable quantity of the variant for online channels. + - name: refunded_subtotal + description: Subtotal amount of the refund applied to the order line in shop currency. + - name: subtotal_net_refunds + description: Subtotal of the order line with refunds subtracted in shop currency. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: restock_types + description: List of how this refund line item affects inventory levels. + - name: order_line_tax + description: Total taxes for the line item. + - name: index + description: The index associated with the order. + - name: pre_tax_price + description: The total pre tax price of the order. + - name: tax_code + description: This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant. + - name: pre_tax_price_set + description: The pre tax price of the line item in shop currency and presentment currency. + - name: price_set + description: The price of the line item in shop and presentment currencies. + - name: total_discount_set + description: The total amount allocated to the line item in the presentment currency. + - name: properties + description: Line item properties. + + - name: shopify_gql__transactions + description: Each record represents a transaction in Shopify. + columns: + - name: transactions_unique_id + description: Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'. + tests: + - unique + - not_null + - name: transaction_id + description: The ID for the transaction. + - name: order_id + description: The ID for the order that the transaction is associated with. + - name: refund_id + description: The ID associated with a refund in the refund table. + - name: amount + description: The amount of money included in the transaction in shop currency. + - name: created_timestamp + description: The date and time when the transaction was created. + - name: processed_timestamp + description: The date and time when a transaction was processed. + - name: device_id + description: The ID for the device. + - name: gateway + description: The name of the gateway the transaction was issued through. + - name: source_name + description: The origin of the transaction. + - name: message + description: A string generated by the payment provider with additional information about why the transaction succeeded or failed. + - name: currency + description: The three-letter code (ISO 4217 format) for the currency used for the payment. + - name: location_id + description: The ID of the physical location where the transaction was processed. + - name: parent_id + description: The ID of an associated transaction. + - name: payment_avs_result_code + description: The response code from the address verification system. + - name: payment_credit_card_bin + description: The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card. + - name: payment_cvv_result_code + description: The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly. + - name: payment_credit_card_number + description: The customer's credit card number, with most of the leading digits redacted. + - name: payment_credit_card_company + description: The name of the company that issued the customer's credit card. + - name: kind + description: The transaction's type. + - name: receipt + description: A transaction receipt attached to the transaction by the gateway. + - name: currency_exchange_id + description: The ID of the adjustment. + - name: currency_exchange_adjustment + description: The difference between the amounts on the associated transaction and the parent transaction. + - name: currency_exchange_original_amount + description: The amount of the parent transaction in the shop currency. + - name: currency_exchange_final_amount + description: The amount of the associated transaction in the shop currency. + - name: currency_exchange_currency + description: The shop currency. + - name: error_code + description: A standardized error code, independent of the payment provider. + - name: status + description: The status of the transaction. + - name: user_id + description: The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable. + - name: _fivetran_synced + description: Timestamp of the date the record was synced by Fivetran. + - name: exchange_rate + description: The exchange rate between the home currency and the currency of sale at the time of the transaction. + - name: currency_exchange_calculated_amount + description: The total amount of the transaction with the currency exchange rate applied. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: payment_method + description: Method of payment. + - name: parent_created_timestamp + description: Created on timestamp of the parent transaction. + - name: parent_kind + description: Kind of the parent transaction. + - name: parent_amount + description: Amount of the parent transaction. + - name: parent_status + description: Status of the parent transaction. + - name: authorization_expires_at + description: Timestamp when the authorization expires. + - name: authorization_code + description: The authorization code associated with the transaction. + + - name: shopify_gql__inventory_levels + description: > + Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of + inventory items (which have a 1:1 relationship with product variants) and locations. + + Inventory Level = Inventory item @ a Location. + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - inventory_item_id + - location_id + - source_relation + columns: + - name: _fivetran_synced + description: "{{ doc('_fivetran_synced') }}" + - name: inventory_item_id + description: The ID of the inventory item associated with the inventory level. + tests: + - not_null + - name: location_id + description: The ID of the location that the inventory level belongs to. + tests: + - not_null + - name: updated_at + description: The date and time (ISO 8601 format) when the inventory level was last modified. + - name: is_inventory_item_deleted + description: "{{ doc('_fivetran_deleted') }}" + - name: sku + description: The unique SKU (stock keeping unit) of the inventory item. + - name: province_code_of_origin + description: The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post. + - name: duplicate_sku_count + description: The number of inventory items that share the same SKU with this item. + - name: harmonized_system_code + description: The harmonized system code of the item. + - name: inventory_history_url + description: The URL that points to the inventory history for the item. + - name: legacy_resource_id + description: The ID of the corresponding resource in the REST Admin API. + - name: measurement_id + description: The unique identifier for the inventory item's measurement. + - name: measurement_weight_value + description: The weight value of the inventory item's measurement. + - name: measurement_weight_unit + description: The unit of measurement for the inventory item's weight. + - name: is_tracked_editable_locked + description: Indicates whether the 'tracked' field for the inventory item is locked from editing. + - name: tracked_editable_reason + description: Provides the reason why the 'tracked' field for the inventory item is locked from editing. + - name: unit_cost_amount + description: The unit cost associated with the inventory item. + - name: unit_cost_currency_code + description: Currency of the unit cost associated with the inventory item. + - name: country_code_of_origin + description: The country code (ISO 3166-1 alpha-2) of where the item came from. + - name: is_shipping_required + description: (DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item. + - name: is_inventory_quantity_tracked + description: Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify. + - name: can_deactivate + description: Indicates whether the inventory item can be deactivated at the location. + - name: deactivation_alert + description: Provides an alert message when the inventory item is deactivated at the location. + - name: created_at + description: The date and time when the inventory level was created. + - name: inventory_item_created_at + description: The date and time (ISO 8601 format) when the inventory item was created. + - name: inventory_item_updated_at + description: The date and time (ISO 8601 format) when the inventory item was last modified. + - name: is_location_deleted + description: "{{ doc('_fivetran_deleted') }}" + - name: is_location_active + description: > + Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders. + - name: address_1 + description: The location's street address. + - name: address_2 + description: The optional second line of the location's street address. + - name: city + description: The city the location is in. + - name: country + description: The country the location is in (two-letter code). + - name: country_code + description: The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in. + - name: location_created_at + description: The date and time (ISO 8601 format) when the location was created. + - name: is_legacy_location + description: > + Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. + If false, then the location was created by the merchant and isn't tied to a fulfillment service. + - name: location_name + description: The name of the location. + - name: phone + description: The phone number of the location. This value can contain special characters, such as - or +. + - name: province + description: The province, state, or district of the location. + - name: province_code + description: The province, state, or district code (ISO 3166-2 alpha-2 format) of the location. + - name: location_updated_at + description: The date and time (ISO 8601 format) when the location was last updated. + - name: zip + description: The zip or postal code. + - name: variant_barcode + description: The barcode, UPC, or ISBN number for the product. + - name: variant_created_at + description: The date and time (ISO 8601 format) when the product variant was created. + - name: variant_fulfillment_service + description: (DEPRECATED 2025-01-06) The fulfillment service associated with the product variant. + - name: variant_grams + description: (DEPRECATED 2025-01-06) The weight of the product variant in grams. + - name: variant_id + description: The unique numeric identifier for the product variant. + - name: variant_inventory_management + description: (DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant. + - name: variant_inventory_policy + description: Whether customers are allowed to place an order for the product variant when it's out of stock. + - name: variant_inventory_quantity + description: An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource. + - name: variant_option_1 + description: > + (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. + - name: variant_option_2 + description: > + (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. + - name: variant_option_3 + description: > + (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. + - name: variant_price + description: The price of the product variant in shop currency. + - name: variant_media_id + description: The unique numeric identifier for a product variant's media. + - name: product_id + description: The unique numeric identifier for the product. + - name: is_variant_taxable + description: Whether a tax is charged when the product variant is sold. + - name: variant_tax_code + description: This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant. + - name: variant_title + description: The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields. + - name: variant_updated_at + description: The date and time when the product variant was last modified. Gets returned in ISO 8601 format. + - name: variant_weight + description: (DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit. + - name: variant_weight_unit + description: > + (DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb. + - name: variant_is_available_for_sale + description: Indicates whether the product variant is available for sale. + - name: variant_display_name + description: The display name of the variant, based on the product's title and variant's title. + - name: variant_legacy_resource_id + description: The ID of the corresponding resource in the REST Admin API. + - name: variant_has_components_required + description: Indicates whether a product variant requires components. + - name: variant_sellable_online_quantity + description: The total sellable quantity of the variant for online channels. + - name: subtotal_sold + description: Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds. + - name: quantity_sold + description: Total quantity sold from the inventory level. Includes refunds. + - name: count_distinct_orders + description: The number of distinct orders placed from this inventory level. + - name: count_distinct_customers + description: The number of distinct customers (based on customer_id) that have placed orders against this inventory level. + - name: count_distinct_customer_emails + description: The number of distinct customer emails that have placed orders against this inventory level. + - name: first_order_timestamp + description: The timetamp of the first order against this inventory level. + - name: last_order_timestamp + description: The timestamp of the first order against this inventory level. + - name: subtotal_sold_refunds + description: The monetary amount (in shop currency) of inventory level goods that have been refunded. + - name: quantity_sold_refunds + description: The quantity of inventory level goods that have been refunded. + - name: net_subtotal_sold + description: Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds. + - name: net_quantity_sold + description: Net quantity sold from this inventory level. Excludes refunds. + - name: count_fulfillment_pending + description: > + Count of currently pending distinct fulfillments for this inventory level. + "Pending" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. + - name: count_fulfillment_open + description: > + Count of currently open distinct fulfillments for this inventory level. + "Open" = The fulfillment has been acknowledged by the service and is in processing. + - name: count_fulfillment_success + description: > + Count of successful distinct fulfillments for this inventory level. + "Success" = The fulfillment was successful. + - name: count_fulfillment_cancelled + description: > + Count of cancelled distinct fulfillments for this inventory level. + "Cancelled" = The fulfillment was cancelled. + - name: count_fulfillment_error + description: > + Count of distinct fulfillments for this inventory level that encountered an error. + "Error" = There was an error with the fulfillment request. + - name: count_fulfillment_failure + description: > + Count of distinct fulfillments for this inventory level that failed. + "Failure" = The fulfillment request failed. + - name: source_relation + description: "{{ doc('source_relation') }}" + - name: available_quantity + description: > + The available quantity that a merchant can sell, determined by coalescing the `quantity` where + inventory_state_name = 'available' from `stg_shopify_gql__inventory_quantity`and `available_quantity` + from the deprecated `stg_shopify_gql__inventory_level`. Returns null if the inventory item is not tracked. + - name: incoming_quantity + description: The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked. + - name: on_hand_quantity + description: > + The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that + are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. + Returns null if the inventory item is not tracked. + - name: committed_quantity + description: The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked. + - name: reserved_quantity + description: The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked. + - name: damaged_quantity + description: The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked. + - name: safety_stock_quantity + description: The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked. + - name: quality_control_quantity + description: The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked. + + + - name: shopify_gql__discounts + description: > + Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts. + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - code + - source_relation + config: + severity: warn # best practice for codes to be unique + columns: + - name: discounts_unique_key + description: Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'. + tests: + - unique + - not_null + - name: _fivetran_synced + description: "{{ doc('_fivetran_synced') }}" + - name: code + description: The case-insensitive discount code that customers use at checkout. + - name: discount_code_id + description: The ID for the discount code. + tests: + - not_null + - name: discount_type + description: The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app'). + - name: applies_once_per_customer + description: Whether the discount can be used only once per customer. + - name: usage_count + description: Number of times the discount has been used (asynchronously updated). + - name: codes_count + description: Number of unique redeem codes associated with the discount. + - name: codes_precision + description: Indicates whether `codes_count` is exact or estimated. + - name: combines_with_order_discounts + description: Whether this discount can be combined with order-level discounts. + - name: combines_with_product_discounts + description: Whether this discount can be combined with product-level discounts. + - name: combines_with_shipping_discounts + description: Whether this discount can be combined with shipping-level discounts. + - name: created_at + description: Timestamp when the discount was created. + - name: customer_selection_all_customers + description: Whether the discount is available to all customers. + - name: ends_at + description: Timestamp when the discount ends or expires. + - name: starts_at + description: Timestamp when the discount becomes active. + - name: status + description: Current status of the discount (e.g. 'active', 'expired', 'scheduled'). + - name: title + description: The discount’s display name in the Shopify admin and to customers. + - name: total_sales_amount + description: The total sales amount that resulted from the usage of this discount. + - name: total_sales_currency_code + description: The currency code associated with `total_sales_amount`. + - name: updated_at + description: Timestamp when the discount was last updated. + - name: usage_limit + description: The total number of times the discount code can be used. + - name: allocation_method + description: > + The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items). + - name: description + description: A description of the discount, often corresponding to the rule or promotion name. + - name: target_selection + description: Indicates whether the discount applies to 'all' or 'entitled' items. + - name: target_type + description: The type of target this discount applies to (e.g., `line_item` or `shipping_line`). + - name: application_type + description: The type of discount (e.g., `manual`, `script`, or `automatic`). + - name: value + description: Numeric value of the discount (e.g., percentage or fixed amount). + - name: value_type + description: How the discount value is interpreted (e.g., 'percentage', 'fixed_amount'). + - name: total_order_discount_amount + description: Total monetary amount (in shop currency) of discounts taken off of orders. + - name: total_abandoned_checkout_discount_amount + description: Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders. + - name: total_order_line_items_price + description: Total monetary amount (in shop currency) of line items for orders that have used this discount. + - name: total_order_shipping_cost + description: Total shipping costs for orders that used this discount. + - name: total_abandoned_checkout_shipping_price + description: Total projected shipping costs for abandoned checkouts that applied this discount first. + - name: total_order_refund_amount + description: Total refunded amount (in shop currency) for orders that used this discount code. + - name: count_customers + description: Count of distinct customers who placed orders using this discount. + - name: count_customer_emails + description: Count of distinct customer emails who placed orders using this discount. + - name: avg_order_discount_amount + description: Average amount (in shop currency) of discount taken off orders. + - name: source_relation + description: "{{ doc('source_relation') }}" + - name: count_orders + description: Count of orders in which this discount code was applied. + - name: count_abandoned_checkouts + description: Count of abandoned checkouts in which this discount code was applied. + - name: count_abandoned_checkout_customers + description: Distinct count of customers who applied this discount in a checkout that they abandoned. + - name: count_abandoned_checkout_customer_emails + description: Distinct count of customer emails who applied this discount in a checkout that they abandoned. + + - name: shopify_gql__daily_shop + description: > + Each record represents a day in your Shop, enriched with a suite of metrics. + columns: + - name: date_day + description: Day for which the shop activity is being measured. + - name: shop_id + description: The ID for the shop. A 64-bit unsigned integer. + tests: + - not_null + - name: name + description: The name of the shop. + - name: domain + description: The shop's domain. + - name: is_deleted + description: "{{ doc('_fivetran_deleted') }}" + - name: currency + description: The three-letter code (ISO 4217 format) for the shop's default currency. + - name: enabled_presentment_currencies + description: An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin. + - name: iana_timezone + description: The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones). + - name: created_at + description: The date and time (ISO 8601) when the shop was created. + - name: count_orders + description: Count of the distinct orders placed on this day. + - name: count_line_items + description: Count of the line items included in orders placed on this day. + - name: count_customers + description: Count of distinct customers who placed an order on this day. + - name: count_customer_emails + description: Count of distinct customer email addresses who placed an order on this day. + - name: order_adjusted_total + description: > + Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: + total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax + The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange). + - name: avg_order_value + description: Average adjusted total per order placed on this day (in shop currency). + - name: shipping_cost + description: The shipping cost of the orders placed on this day (in shop currency). + - name: order_adjustment_amount + description: Total adjustment amount (in shop currency) applied to the orders placed on this day. + - name: order_adjustment_tax_amount + description: Total tax applied to adjustments (in shop currency) on the orders placed on this day. + - name: refund_subtotal + description: Total refund amount applied to the orders placed on this day. + - name: refund_total_tax + description: Total tax applied to the refund on the orders placed on this day (in shop currency). + - name: total_discounts + description: The total amount of the discount allocated to this day's orders in the shop's currency. + - name: shipping_discount_amount + description: The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day. + - name: percentage_calc_discount_amount + description: The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day. + - name: fixed_amount_discount_amount + description: The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day. + - name: count_discount_codes_applied + description: Distinct discount codes applied by customers on orders for this day. + - name: count_locations_ordered_from + description: Distinct locations with orders placed against them on this day. + - name: count_orders_with_discounts + description: Count of orders in which a discount was applied. + - name: count_orders_with_refunds + description: Count of orders in which there was a refund. + - name: first_order_timestamp + description: Timestamp of the first order of the day for the shop. + - name: last_order_timestamp + description: Timestamp of the last order of the day for the shop. + - name: quantity_sold + description: Total quantity sold from the inventory level. Includes refunds. + - name: quantity_refunded + description: The quantity of goods ORDERED on this day that have been refunded. + - name: quantity_net + description: Net quantity sold from this shop on this day. Excludes refunds. + - name: count_variants_sold + description: Distinct product variants sold on this day (includes refunds). + - name: count_products_sold + description: Distinct products sold on this day (includes refunds). + - name: quantity_gift_cards_sold + description: Quantity of gift cards sold on this day. + - name: quantity_requiring_shipping + description: Quantity of goods sold on this day that require shipping. + - name: count_abandoned_checkouts + description: Count of abandoned checkouts on this day. + - name: count_customers_abandoned_checkout + description: Count of distinct customers who abandoned checkouts on this day. + - name: count_customer_emails_abandoned_checkout + description: Count of distinct customer emails who abandoned checkouts on this day. + - name: count_fulfillment_attempted_delivery + description: Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed. + - name: count_fulfillment_delivered + description: Count of successful distinct fulfillments successfully delivered on this day. + - name: count_fulfillment_failure + description: Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled. + - name: count_fulfillment_in_transit + description: Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination. + - name: count_fulfillment_out_for_delivery + description: Count of distinct fulfillments being delivered to their final destination. + - name: count_fulfillment_ready_for_pickup + description: Count of distinct fulfillments ready for pickup at a shipping depot. + - name: count_fulfillment_picked_up + description: Count of distinct fulfillments successfully picked up on this day. + - name: count_fulfillment_label_printed + description: Count of distinct fulfillments for which a purchased shipping label has been printed on this day. + - name: count_fulfillment_label_purchased + description: Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day. + - name: count_fulfillment_confirmed + description: Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment. + - name: count_fulfillment_delayed + description: Count of delayed distinct fulfillments. + - name: avg_line_item_count + description: Average line item count for orders placed on this day. + - name: avg_discount + description: Average total discount placed on orders on this day (in shop currency). + - name: avg_shipping_discount_amount + description: Average discount amount (in shop currency) allocated toward shipping on orders placed on this day. + - name: avg_percentage_calc_discount_amount + description: Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day. + - name: avg_fixed_amount_discount_amount + description: Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day. + - name: avg_quantity_sold + description: Average quantity sold per order on this day. Includes refunds. (in shop currency) + - name: avg_quantity_net + description: Average net quantity sold per order on this day. Excludes refunds. (in shop currency) + - name: source_relation + description: "{{ doc('source_relation') }}" diff --git a/packages.yml b/packages.yml index a404eb4a..b3030e8e 100644 --- a/packages.yml +++ b/packages.yml @@ -1,3 +1,6 @@ packages: - - package: fivetran/shopify_source - version: [">=0.18.0", "<0.19.0"] +# - package: fivetran/shopify_source +# version: [">=0.18.0", "<0.19.0"] +# - local: ../ECommerce/Shopify/dbt_shopify_source +- git: https://github.com/fivetran/dbt_shopify_source.git + revision: update/graphql \ No newline at end of file From fee2ff7341c01ee4d35745884f1f62de47c18685 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Wed, 16 Jul 2025 17:23:09 -0400 Subject: [PATCH 02/34] stuff --- .quickstart/quickstart.yml | 1 + dbt_project.yml | 49 +++++- .../base/int_shopify_gql__collection.sql | 6 +- .../base/int_shopify_gql__customer.sql | 6 +- .../base/int_shopify_gql__fulfillment.sql | 6 +- .../base/int_shopify_gql__order.sql | 6 +- .../int_shopify_gql__order_adjustment.sql | 28 +++ .../int_shopify_gql__order_discount_code.sql | 35 ++++ ...hopify_gql__order__shipping_aggregates.sql | 42 +++++ ...opify_gql__customers__order_aggregates.sql | 74 ++++++++ ...ify_gql__orders__order_line_aggregates.sql | 69 ++++++++ .../shopify_gql__orders__order_refunds.sql | 36 ++++ models/graphql/shopify_gql__orders.sql | 160 ++++++++++++++++++ 13 files changed, 509 insertions(+), 9 deletions(-) rename models/graphql/{ => intermediate}/base/int_shopify_gql__collection.sql (82%) rename models/graphql/{ => intermediate}/base/int_shopify_gql__customer.sql (76%) rename models/graphql/{ => intermediate}/base/int_shopify_gql__fulfillment.sql (85%) rename models/graphql/{ => intermediate}/base/int_shopify_gql__order.sql (65%) create mode 100644 models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql create mode 100644 models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql create mode 100644 models/graphql/intermediate/int_shopify_gql__order__shipping_aggregates.sql create mode 100644 models/graphql/intermediate/shopify_gql__customers__order_aggregates.sql create mode 100644 models/graphql/intermediate/shopify_gql__orders__order_line_aggregates.sql create mode 100644 models/graphql/intermediate/shopify_gql__orders__order_refunds.sql create mode 100644 models/graphql/shopify_gql__orders.sql diff --git a/.quickstart/quickstart.yml b/.quickstart/quickstart.yml index 755ff4db..67fe323d 100644 --- a/.quickstart/quickstart.yml +++ b/.quickstart/quickstart.yml @@ -37,3 +37,4 @@ public_models: [ "shopify__order_lines", "shopify__line_item_enhanced" ] +# todo - all stuff here \ No newline at end of file diff --git a/dbt_project.yml b/dbt_project.yml index 05ff8b68..d7d09732 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -57,4 +57,51 @@ vars: shopify_order_discount_code: "{{ ref('stg_shopify__order_discount_code') }}" shopify_abandoned_checkout_shipping_line: "{{ ref('stg_shopify__abandoned_checkout_shipping_line') }}" shopify_fulfillment_event: "{{ ref('stg_shopify__fulfillment_event') }}" -# add stuff here \ No newline at end of file +# add stuff here + shopify_gql_customer: "{{ ref('stg_shopify_gql__customer') }}" + shopify_gql_order: "{{ ref('stg_shopify_gql__order') }}" + shopify_gql_order_line: "{{ ref('stg_shopify_gql__order_line') }}" + shopify_gql_order_line_refund: "{{ ref('stg_shopify_gql__order_line_refund') }}" + shopify_gql_product: "{{ ref('stg_shopify_gql__product') }}" + shopify_gql_product_variant: "{{ ref('stg_shopify_gql__product_variant') }}" + shopify_gql_transaction: "{{ ref('stg_shopify_gql__transaction') }}" + shopify_gql_refund: "{{ ref('stg_shopify_gql__refund') }}" + shopify_gql_order_adjustment: "{{ ref('stg_shopify_gql__order_adjustment') }}" + shopify_gql_abandoned_checkout: "{{ ref('stg_shopify_gql__abandoned_checkout') }}" + shopify_gql_collection_product: "{{ ref('stg_shopify_gql__collection_product') }}" + shopify_gql_collection: "{{ ref('stg_shopify_gql__collection') }}" + shopify_gql_collection_rule: "{{ ref('stg_shopify_gql__collection_rule') }}" + shopify_gql_customer_address: "{{ ref('stg_shopify_gql__customer_address') }}" + shopify_gql_customer_tag: "{{ ref('stg_shopify_gql__customer_tag') }}" + shopify_gql_customer_visit: "{{ ref('stg_shopify_gql__customer_visit') }}" + shopify_gql_discount_allocation: "{{ ref('stg_shopify_gql__discount_allocation') }}" + shopify_gql_discount_application: "{{ ref('stg_shopify_gql__discount_application') }}" + shopify_gql_discount_code_app: "{{ ref('stg_shopify_gql__discount_code_app') }}" + shopify_gql_discount_code_basic: "{{ ref('stg_shopify_gql__discount_code_basic') }}" + shopify_gql_discount_code_bxgy: "{{ ref('stg_shopify_gql__discount_code_bxgy') }}" + shopify_gql_discount_code_free_shipping: "{{ ref('stg_shopify_gql__discount_code_free_shipping') }}" + shopify_gql_discount_redeem_code: "{{ ref('stg_shopify_gql__discount_redeem_code') }}" + shopify_gql_fulfillment: "{{ ref('stg_shopify_gql__fulfillment') }}" + shopify_gql_fulfillment_tracking_info: "{{ ref('stg_shopify_gql__fulfillment_tracking_info') }}" + shopify_gql_inventory_item: "{{ ref('stg_shopify_gql__inventory_item') }}" + shopify_gql_inventory_level: "{{ ref('stg_shopify_gql__inventory_level') }}" + shopify_gql_inventory_quantity: "{{ ref('stg_shopify_gql__inventory_quantity') }}" + shopify_gql_location: "{{ ref('stg_shopify_gql__location') }}" + shopify_gql_media: "{{ ref('stg_shopify_gql__media') }}" + shopify_gql_media_image: "{{ ref('stg_shopify_gql__media_image') }}" + shopify_gql_metafield: "{{ ref('stg_shopify_gql__metafield') }}" + shopify_gql_order_note_attribute: "{{ ref('stg_shopify_gql__order_note_attribute') }}" + shopify_gql_order_shipping_line: "{{ ref('stg_shopify_gql__order_shipping_line') }}" + shopify_gql_order_shipping_tax_line: "{{ ref('stg_shopify_gql__order_shipping_tax_line') }}" + shopify_gql_order_tag: "{{ ref('stg_shopify_gql__order_tag') }}" + shopify_gql_order_url_tag: "{{ ref('stg_shopify_gql__order_url_tag') }}" + shopify_gql_product_media: "{{ ref('stg_shopify_gql__product_media') }}" + shopify_gql_product_variant_media: "{{ ref('stg_shopify_gql__product_variant_media') }}" + shopify_gql_product_tag: "{{ ref('stg_shopify_gql__product_tag') }}" + shopify_gql_shop: "{{ ref('stg_shopify_gql__shop') }}" + shopify_gql_tax_line: "{{ ref('stg_shopify_gql__tax_line') }}" + shopify_gql_tender_transaction: "{{ ref('stg_shopify_gql__tender_transaction') }}" + shopify_gql_abandoned_checkout_discount_code: "{{ ref('stg_shopify_gql__abandoned_checkout_discount_code') }}" + shopify_gql_order_discount_code: "{{ ref('stg_shopify_gql__order_discount_code') }}" + shopify_gql_abandoned_checkout_shipping_line: "{{ ref('stg_shopify_gql__abandoned_checkout_shipping_line') }}" + shopify_gql_fulfillment_event: "{{ ref('stg_shopify_gql__fulfillment_event') }}" \ No newline at end of file diff --git a/models/graphql/base/int_shopify_gql__collection.sql b/models/graphql/intermediate/base/int_shopify_gql__collection.sql similarity index 82% rename from models/graphql/base/int_shopify_gql__collection.sql rename to models/graphql/intermediate/base/int_shopify_gql__collection.sql index ed1f37c3..9d8b1a5d 100644 --- a/models/graphql/base/int_shopify_gql__collection.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__collection.sql @@ -1,13 +1,15 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + with collection as ( select * - from {{ ref('stg_shopify_gql__collection') }} + from {{ var('shopify_gql_collection') }} ), collection_rule as ( select * - from {{ ref('stg_shopify_gql__collection_rule') }} + from {{ var('shopify_gql_collection_rule') }} ), prep_collection_rule as ( diff --git a/models/graphql/base/int_shopify_gql__customer.sql b/models/graphql/intermediate/base/int_shopify_gql__customer.sql similarity index 76% rename from models/graphql/base/int_shopify_gql__customer.sql rename to models/graphql/intermediate/base/int_shopify_gql__customer.sql index 65aada1e..81251e21 100644 --- a/models/graphql/base/int_shopify_gql__customer.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__customer.sql @@ -1,13 +1,15 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + with customer as ( select * - from {{ ref('stg_shopify_gql__customer') }} + from {{ var('shopify_gql_customer') }} ), customer_address as ( select * - from {{ ref('stg_shopify_gql__customer_address') }} + from {{ var('shopify_gql_customer_address') }} ), customer_default_address as ( diff --git a/models/graphql/base/int_shopify_gql__fulfillment.sql b/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql similarity index 85% rename from models/graphql/base/int_shopify_gql__fulfillment.sql rename to models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql index e60c09af..65432ee5 100644 --- a/models/graphql/base/int_shopify_gql__fulfillment.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql @@ -1,13 +1,15 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + with fulfillment as ( select * - from {{ ref('stg_shopify_gql__fulfillment') }} + from {{ var('shopify_gql_fulfillment') }} ), fulfillment_tracking_info as ( select * - from {{ ref('stg_shopify_gql__fulfillment_tracking_info') }} + from {{ var('shopify_gql_fulfillment_tracking_info') }} ), agg_fulfillment_tracking_info as ( diff --git a/models/graphql/base/int_shopify_gql__order.sql b/models/graphql/intermediate/base/int_shopify_gql__order.sql similarity index 65% rename from models/graphql/base/int_shopify_gql__order.sql rename to models/graphql/intermediate/base/int_shopify_gql__order.sql index 66159c4c..1853c842 100644 --- a/models/graphql/base/int_shopify_gql__order.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__order.sql @@ -1,13 +1,15 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + with order as ( select * - from {{ ref('stg_shopify_gql__order') }} + from {{ var('shopify_gql_order') }} ), customer_visit as ( select * - from {{ ref('stg_shopify_gql__customer_visit') }} + from {{ var('shopify_gql_customer_visit') }} ), joined as ( diff --git a/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql b/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql new file mode 100644 index 00000000..01606b83 --- /dev/null +++ b/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql @@ -0,0 +1,28 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with order_adjustment as ( + + select * + from {{ var('shopify_gql_order_adjustment') }} +), + +refund as ( + + select * + from {{ var('shopify_gql_refund') }} +), + +joined as ( + + select + order_adjustment.*, + refund.order_id -- just need this + + from order_adjustment + left join refund + on order_adjustment.refund_id = refund.refund_id + and order_adjustment.source_relation = refund.source_relation +) + +select * +from joined \ No newline at end of file diff --git a/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql b/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql new file mode 100644 index 00000000..5ac38371 --- /dev/null +++ b/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql @@ -0,0 +1,35 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with order_discount_code as ( + + select * + from {{ var('shopify_gql_order_discount_code') }} +), + +discount_application as ( + + select * + from {{ var('shopify_gql_discount_application') }} +), + +joined as ( + + select + order_discount_code.*, + discount_application.value_type as type, + discount_application.value, + discount_application.value_currency_code, + discount_application.target_type, + discount_application.target_selection + discount_application.allocation_method + + from order_discount_code + left join discount_application + on order_discount_code.order_id = discount_application.order_id + {# need code, or else some fanout will occur #} + {# and order_discount_code.index = discount_application.index #} + and order_discount_code.source_relation = discount_application.source_relation +) + +select * +from joined \ No newline at end of file diff --git a/models/graphql/intermediate/int_shopify_gql__order__shipping_aggregates.sql b/models/graphql/intermediate/int_shopify_gql__order__shipping_aggregates.sql new file mode 100644 index 00000000..f98d1bf6 --- /dev/null +++ b/models/graphql/intermediate/int_shopify_gql__order__shipping_aggregates.sql @@ -0,0 +1,42 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with order_shipping_line as ( + + select + order_id, + source_relation, + order_shipping_line_id, + sum(coalesce(price_set_shop_amount, 0)) as shipping_price, + sum(coalesce(discounted_price_set_shop_amount, 0)) as discounted_shipping_price + + from {{ var('shopify_gql_order_shipping_line') }} + group by 1,2,3 + +), order_shipping_tax_line as ( + + select + order_shipping_line_id, + source_relation, + sum(coalesce(price_set_shop_amount, 0)) as shipping_tax + + from {{ var('shopify_gql_order_shipping_tax_line') }} + group by 1,2 + +), aggregated as ( + + select + order_shipping_line.order_id, + order_shipping_line.source_relation, + sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price, + sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price, + sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax + + from order_shipping_line + left join order_shipping_tax_line + on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id + and order_shipping_line.source_relation = order_shipping_tax_line.source_relation + group by 1,2 +) + +select * +from aggregated \ No newline at end of file diff --git a/models/graphql/intermediate/shopify_gql__customers__order_aggregates.sql b/models/graphql/intermediate/shopify_gql__customers__order_aggregates.sql new file mode 100644 index 00000000..5c7e3339 --- /dev/null +++ b/models/graphql/intermediate/shopify_gql__customers__order_aggregates.sql @@ -0,0 +1,74 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with orders as ( + + select * + from {{ var('shopify_gql_order') }} + where customer_id is not null + +), order_aggregates as ( + + select * + from {{ ref('shopify_gql__orders__order_line_aggregates') }} + +), transactions as ( +{# todo #} + select * + from {{ ref('shopify_gql__transactions')}} + + where lower(status) = 'success' + and lower(kind) not in ('authorization', 'void') + and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue + +), transaction_aggregates as ( + -- this is necessary as customers can pay via multiple payment gateways + select + order_id, + source_relation, + lower(kind) as kind, + sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount + + from transactions + {{ dbt_utils.group_by(n=3) }} + +), aggregated as ( + + select + orders.customer_id, + orders.source_relation, + min(orders.created_timestamp) as first_order_timestamp, + max(orders.created_timestamp) as most_recent_order_timestamp, + avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value, + sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent, + sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded, + count(distinct orders.order_id) as lifetime_count_orders, + avg(order_aggregates.order_total_quantity) as avg_quantity_per_order, + sum(order_aggregates.order_total_tax) as lifetime_total_tax, + avg(order_aggregates.order_total_tax) as avg_tax_per_order, + sum(order_aggregates.order_total_discount) as lifetime_total_discount, + avg(order_aggregates.order_total_discount) as avg_discount_per_order, + sum(order_aggregates.order_total_shipping) as lifetime_total_shipping, + avg(order_aggregates.order_total_shipping) as avg_shipping_per_order, + sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts, + avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order, + sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax, + avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order + + from orders + left join transaction_aggregates + on orders.order_id = transaction_aggregates.order_id + and orders.source_relation = transaction_aggregates.source_relation + and transaction_aggregates.kind in ('sale','capture') + left join transaction_aggregates as refunds + on orders.order_id = refunds.order_id + and orders.source_relation = refunds.source_relation + and refunds.kind = 'refund' + left join order_aggregates + on orders.order_id = order_aggregates.order_id + and orders.source_relation = order_aggregates.source_relation + + {{ dbt_utils.group_by(n=2) }} +) + +select * +from aggregated \ No newline at end of file diff --git a/models/graphql/intermediate/shopify_gql__orders__order_line_aggregates.sql b/models/graphql/intermediate/shopify_gql__orders__order_line_aggregates.sql new file mode 100644 index 00000000..cd4f5748 --- /dev/null +++ b/models/graphql/intermediate/shopify_gql__orders__order_line_aggregates.sql @@ -0,0 +1,69 @@ +{{ config( + materialized='table', + enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') +) }} + +with order_line as ( + + select * + from {{ var('shopify_gql_order_line') }} + +), tax as ( + + select + * + from {{ var('shopify_gql_tax_line') }} + +), shipping as ( + + select + * + from {{ ref('int_shopify_gql__order__shipping_aggregates')}} + +), tax_aggregates as ( + + select + order_line_id, + source_relation, + sum(coalesce(price_set_shop_amount, 0)) as price + + from tax + group by 1,2 + +), order_line_aggregates as ( + + select + order_line.order_id, + order_line.source_relation, + count(*) as line_item_count, + sum(coalesce(order_line.quantity, 0)) as order_total_quantity, + sum(coalesce(tax_aggregates.price, 0)) as order_total_tax, + sum(coalesce(order_line.total_discount_set_shop_amount, 0)) as order_total_discount + + from order_line + left join tax_aggregates + on tax_aggregates.order_line_id = order_line.order_line_id + and tax_aggregates.source_relation = order_line.source_relation + group by 1,2 + +), final as ( + + select + order_line_aggregates.order_id, + order_line_aggregates.source_relation, + order_line_aggregates.line_item_count, + order_line_aggregates.order_total_quantity, + order_line_aggregates.order_total_tax, + order_line_aggregates.order_total_discount, + shipping.shipping_price as order_total_shipping, + shipping.discounted_shipping_price as order_total_shipping_with_discounts, + shipping.shipping_tax as order_total_shipping_tax + + from order_line_aggregates + left join shipping + on shipping.order_id = order_line_aggregates.order_id + and shipping.source_relation = order_line_aggregates.source_relation +) + +select * +from final \ No newline at end of file diff --git a/models/graphql/intermediate/shopify_gql__orders__order_refunds.sql b/models/graphql/intermediate/shopify_gql__orders__order_refunds.sql new file mode 100644 index 00000000..f73543a8 --- /dev/null +++ b/models/graphql/intermediate/shopify_gql__orders__order_refunds.sql @@ -0,0 +1,36 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with refunds as ( + + select * + from {{ var('shopify_gql_refund') }} + +), order_line_refunds as ( + + select * + from {{ var('shopify_gql_order_line_refund') }} + +), refund_join as ( + + select + refunds.refund_id, + refunds.created_at, + refunds.order_id, + refunds.user_id, + refunds.source_relation, + order_line_refunds.order_line_refund_id, + order_line_refunds.order_line_id, + order_line_refunds.restock_type, + order_line_refunds.quantity, + order_line_refunds.subtotal_set_shop_amount as subtotal, + order_line_refunds.total_tax_set_shop_amount as total_tax + + from refunds + left join order_line_refunds + on refunds.refund_id = order_line_refunds.refund_id + and refunds.source_relation = order_line_refunds.source_relation + +) + +select * +from refund_join diff --git a/models/graphql/shopify_gql__orders.sql b/models/graphql/shopify_gql__orders.sql new file mode 100644 index 00000000..d0ecf4fc --- /dev/null +++ b/models/graphql/shopify_gql__orders.sql @@ -0,0 +1,160 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with orders as ( + + select + *, + {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_id']) }} as orders_unique_key + from {{ var('shopify_gql_order') }} + +), order_lines as ( + + select * + from {{ ref('shopify_gql__orders__order_line_aggregates') }} + +), order_adjustments as ( + + select * + from {{ ref('int_shopify_gql__order_adjustment') }} + +), order_adjustments_aggregates as ( + select + order_id, + source_relation, + sum(amount_set_shop_amount) as order_adjustment_amount, + sum(tax_amount_set_shop_amount) as order_adjustment_tax_amount + from order_adjustments + group by 1,2 + +), refunds as ( + + select * + from {{ ref('shopify_gql__orders__order_refunds') }} + +), refund_aggregates as ( + select + order_id, + source_relation, + sum(subtotal) as refund_subtotal, + sum(total_tax) as refund_total_tax + from refunds + group by 1,2 + +), order_discount_code as ( + + select * + from {{ var('shopify_gql_order_discount_code') }} + +), discount_aggregates as ( + + select + order_id, + source_relation, + sum(case when type = 'shipping' then value_amount else 0 end) as shipping_discount_amount, + sum(case when type = 'percentage' then value_amount else 0 end) as percentage_calc_discount_amount, + sum(case when type = 'fixed_amount' then value_amount else 0 end) as fixed_amount_discount_amount, + count(distinct code) as count_discount_codes_applied + + from order_discount_code + group by 1,2 + +), order_tag as ( + + select + order_id, + source_relation, + {{ fivetran_utils.string_agg("distinct cast(value as " ~ dbt.type_string() ~ ")", "', '") }} as order_tags + + from {{ var('shopify_gql_order_tag') }} + group by 1,2 + +), fulfillments as ( + + select + order_id, + source_relation, + tracking_companies, + tracking_numbers, + count(distinct fulfillment_id) as number_of_fulfillments, + {{ fivetran_utils.string_agg("distinct cast(service as " ~ dbt.type_string() ~ ")", "', '") }} as fulfillment_services + + from {{ ref('int_shopify_gql__fulfillment') }} + group by 1,2,3,4 + +), joined as ( + + select + orders.*, -- except shipping_cost_shop_amount ? + coalesce(shipping_cost_shop_amount, 0) as shipping_cost, -- to not break downstream query + + order_adjustments_aggregates.order_adjustment_amount, + order_adjustments_aggregates.order_adjustment_tax_amount, + + refund_aggregates.refund_subtotal, + refund_aggregates.refund_total_tax, + + (orders.total_price + + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) + - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total, + order_lines.line_item_count, + + coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount, + coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount, + coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount, + coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied, + coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax, + order_tag.order_tags, + order_url_tag.order_url_tags, + fulfillments.number_of_fulfillments, + fulfillments.fulfillment_services, + fulfillments.tracking_companies, + fulfillments.tracking_numbers + + + from orders + left join order_lines + on orders.order_id = order_lines.order_id + and orders.source_relation = order_lines.source_relation + left join refund_aggregates + on orders.order_id = refund_aggregates.order_id + and orders.source_relation = refund_aggregates.source_relation + left join order_adjustments_aggregates + on orders.order_id = order_adjustments_aggregates.order_id + and orders.source_relation = order_adjustments_aggregates.source_relation + left join discount_aggregates + on orders.order_id = discount_aggregates.order_id + and orders.source_relation = discount_aggregates.source_relation + left join order_tag + on orders.order_id = order_tag.order_id + and orders.source_relation = order_tag.source_relation + left join order_url_tag + on orders.order_id = order_url_tag.order_id + and orders.source_relation = order_url_tag.source_relation + left join fulfillments + on orders.order_id = fulfillments.order_id + and orders.source_relation = fulfillments.source_relation + +), windows as ( + + select + *, + row_number() over ( + partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }} + order by created_timestamp) + as customer_order_seq_number + from joined + +), new_vs_repeat as ( + + select + *, + case + when customer_order_seq_number = 1 then 'new' + else 'repeat' + end as new_vs_repeat + from windows + +) + +select * +from new_vs_repeat From 07709e31fbde35baa8047b496c005e079327444a Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Thu, 17 Jul 2025 16:21:53 -0400 Subject: [PATCH 03/34] orders, order_lines, inventory_levels, transactions, quasi-discounts --- .../int_shopify_gql__abandoned_checkout.sql | 27 + .../base/int_shopify_gql__collection.sql | 2 +- .../base/int_shopify_gql__customer.sql | 2 +- .../base/int_shopify_gql__fulfillment.sql | 2 +- .../int_shopify_gql__order_adjustment.sql | 2 +- .../int_shopify_gql__order_discount_code.sql | 7 +- .../base/int_shopify_gql__order_line.sql | 39 + ...shopify_gql__daily_abandoned_checkouts.sql | 27 + .../int_shopify_gql__daily_fulfillment.sql | 27 + .../int_shopify_gql__daily_orders.sql | 98 + ...nt_shopify_gql__discount_code_enriched.sql | 150 + ...fy_gql__discounts__abandoned_checkouts.sql | 91 + ...opify_gql__discounts__order_aggregates.sql | 39 + ...opify_gql__inventory_level__aggregates.sql | 97 + ...hopify_gql__order__shipping_aggregates.sql | 6 +- ...opify_gql__customers__order_aggregates.sql | 2 +- ...ify_gql__orders__order_line_aggregates.sql | 8 +- .../shopify_gql__orders__order_refunds.sql | 4 +- models/graphql/shopify_gql__discounts.sql | 67 + .../graphql/shopify_gql__inventory_levels.sql | 217 ++ models/graphql/shopify_gql__order_lines.sql | 101 + models/graphql/shopify_gql__orders.sql | 21 +- models/graphql/shopify_gql__transactions.sql | 42 + .../int_shopify__customer_email_rollup.sql | 2 + ...int_shopify__daily_abandoned_checkouts.sql | 2 +- .../int_shopify__daily_fulfillment.sql | 2 +- .../int_shopify__daily_orders.sql | 2 + .../int_shopify__discount_code_enriched.sql | 2 + ...hopify__discounts__abandoned_checkouts.sql | 2 +- ...t_shopify__discounts__order_aggregates.sql | 2 + .../int_shopify__emails__order_aggregates.sql | 2 + ...t_shopify__inventory_level__aggregates.sql | 2 + ...nt_shopify__order__shipping_aggregates.sql | 2 + ...hopify__product__order_line_aggregates.sql | 2 + .../int_shopify__products_with_aggregates.sql | 2 + .../shopify__customers__order_aggregates.sql | 2 + ...shopify__orders__order_line_aggregates.sql | 2 +- .../shopify__orders__order_refunds.sql | 2 + .../shopify__collection_metafields.sql | 2 +- .../shopify__customer_metafields.sql | 2 +- .../metafields/shopify__order_metafields.sql | 2 +- .../shopify__product_metafields.sql | 2 +- .../shopify__product_variant_metafields.sql | 2 +- .../metafields/shopify__shop_metafields.sql | 2 +- models/rest/shopify__customer_cohorts.sql | 1 + .../rest/shopify__customer_email_cohorts.sql | 1 + models/rest/shopify__customer_emails.sql | 2 + models/rest/shopify__customers.sql | 2 + models/rest/shopify__daily_shop.sql | 2 + models/rest/shopify__discounts.sql | 2 + models/rest/shopify__inventory_levels.sql | 2 + models/rest/shopify__order_lines.sql | 2 + models/rest/shopify__orders.sql | 2 + models/rest/shopify__products.sql | 2 + models/rest/shopify__transactions.sql | 2 + .../shopify__line_item_enhanced.sql | 2 +- models/shopify_graphql.yml | 2410 ++++++++--------- packages.yml | 6 +- 58 files changed, 2314 insertions(+), 1244 deletions(-) create mode 100644 models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql create mode 100644 models/graphql/intermediate/base/int_shopify_gql__order_line.sql create mode 100644 models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql create mode 100644 models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql create mode 100644 models/graphql/intermediate/int_shopify_gql__daily_orders.sql create mode 100644 models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql create mode 100644 models/graphql/intermediate/int_shopify_gql__discounts__abandoned_checkouts.sql create mode 100644 models/graphql/intermediate/int_shopify_gql__discounts__order_aggregates.sql create mode 100644 models/graphql/intermediate/int_shopify_gql__inventory_level__aggregates.sql create mode 100644 models/graphql/shopify_gql__discounts.sql create mode 100644 models/graphql/shopify_gql__inventory_levels.sql create mode 100644 models/graphql/shopify_gql__order_lines.sql create mode 100644 models/graphql/shopify_gql__transactions.sql diff --git a/models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql b/models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql new file mode 100644 index 00000000..6ded0810 --- /dev/null +++ b/models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql @@ -0,0 +1,27 @@ +{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }} + +with abandoned_checkout as ( + + select * + from {{ var('shopify_gql_abandoned_checkout') }} +), + +customer as ( + + select * + from {{ var('shopify_gql_customer') }} +), + +add_customer_email as ( + + select + abandoned_checkout.*, + customer.email + from abandoned_checkout + left join customer + on abandoned_checkout.customer_id = customer.customer_id + and abandoned_checkout.source_relation = customer.source_relation +) + +select * +from add_customer_email \ No newline at end of file diff --git a/models/graphql/intermediate/base/int_shopify_gql__collection.sql b/models/graphql/intermediate/base/int_shopify_gql__collection.sql index 9d8b1a5d..e39428ed 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__collection.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__collection.sql @@ -17,7 +17,7 @@ prep_collection_rule as ( select collection_id, source_relation, - {# should we lower() these fields? #} + {# QUESTION: should we lower() these fields? #} '{"column":"' || columns || '","relation":"' || relation || '","condition":"' || condition || '"}' as rule from collection_rule ), diff --git a/models/graphql/intermediate/base/int_shopify_gql__customer.sql b/models/graphql/intermediate/base/int_shopify_gql__customer.sql index 81251e21..2d89a4f0 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__customer.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__customer.sql @@ -24,7 +24,7 @@ joined as ( select customer.*, customer_default_address.customer_address_id as default_address_id - {# maybe add other fields that are helpful (would be new) #} + {# QUESTION: maybe add other fields that are helpful (would be new)? #} from customer left join customer_default_address diff --git a/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql b/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql index 65432ee5..9fd972b8 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql @@ -19,7 +19,7 @@ agg_fulfillment_tracking_info as ( source_relation, {{ fivetran_utils.string_agg("distinct cast(tracking_number as " ~ dbt.type_string() ~ ")", "', '") }} as tracking_numbers, {{ fivetran_utils.string_agg("distinct cast(tracking_url as " ~ dbt.type_string() ~ ")", "', '") }} as tracking_urls, - {# This is new, should we include? #} + {# QUESTION: This is new, should we include? #} {{ fivetran_utils.string_agg("distinct cast(tracking_company as " ~ dbt.type_string() ~ ")", "', '") }} as tracking_companies from fulfillment_tracking_info group by fulfillment_id, source_relation diff --git a/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql b/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql index 01606b83..5c562902 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql @@ -16,7 +16,7 @@ joined as ( select order_adjustment.*, - refund.order_id -- just need this + refund.order_id -- QUESTION: just need this, does this need a base model? from order_adjustment left join refund diff --git a/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql b/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql index 5ac38371..9d9ae847 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql @@ -17,16 +17,17 @@ joined as ( select order_discount_code.*, discount_application.value_type as type, - discount_application.value, + discount_application.value_amount, discount_application.value_currency_code, + discount_application.value_percentage, discount_application.target_type, - discount_application.target_selection + discount_application.target_selection, discount_application.allocation_method from order_discount_code left join discount_application on order_discount_code.order_id = discount_application.order_id - {# need code, or else some fanout will occur #} + {# OUTSTANDING: need code, or else some fanout will occur #} {# and order_discount_code.index = discount_application.index #} and order_discount_code.source_relation = discount_application.source_relation ) diff --git a/models/graphql/intermediate/base/int_shopify_gql__order_line.sql b/models/graphql/intermediate/base/int_shopify_gql__order_line.sql new file mode 100644 index 00000000..104e1027 --- /dev/null +++ b/models/graphql/intermediate/base/int_shopify_gql__order_line.sql @@ -0,0 +1,39 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with order_line as ( + + select * + from {{ var('shopify_gql_order_line') }} +), + +tax_line as ( + + select * + from {{ var('shopify_gql_tax_line') }} +), + +tax_line_aggregated as ( + + select + tax_line.order_line_id, + tax_line.source_relation, + sum(tax_line.price_shop_amount) as order_line_tax + from tax_line + group by 1,2 +), + +joined as ( + + select + order_line.*, + coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price, + tax_line_aggregated.order_line_tax + + from order_line + left join tax_line_aggregated + on tax_line_aggregated.order_line_id = order_line.order_line_id + and tax_line_aggregated.source_relation = order_line.source_relation +) + +select * +from joined \ No newline at end of file diff --git a/models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql b/models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql new file mode 100644 index 00000000..b407bf0a --- /dev/null +++ b/models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql @@ -0,0 +1,27 @@ +{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }} + +with abandoned_checkout as ( + + select * + from {{ ref('int_shopify_gql__abandoned_checkout') }} + + -- "deleted" abandoned checkouts do not appear to have any data tying them to customers, + -- discounts, or products (and should therefore not get joined in) but let's filter them out here + where not coalesce(is_deleted, false) +), + +abandoned_checkout_aggregates as ( + + select + source_relation, + cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day, + count(distinct checkout_id) as count_abandoned_checkouts, + count(distinct customer_id) as count_customers_abandoned_checkout, + count(distinct email) as count_customer_emails_abandoned_checkout + + from abandoned_checkout + group by 1,2 +) + +select * +from abandoned_checkout_aggregates \ No newline at end of file diff --git a/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql b/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql new file mode 100644 index 00000000..cb8583f6 --- /dev/null +++ b/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql @@ -0,0 +1,27 @@ +{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }} + +with fulfillment_event as ( + + select * + from {{ var('shopify_gql_fulfillment_event') }} +), + +fulfillment_aggregates as ( + + select + source_relation, + cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day + + {# picked_up is not a status value in GQL docs: https://shopify.dev/docs/api/admin-graphql/latest/objects/fulfillmentevent#field-FulfillmentEvent.fields.status + QUESTION: should we remove? #} + {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%} + , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }} + {% endfor %} + + from fulfillment_event + group by 1,2 + +) + +select * +from fulfillment_aggregates \ No newline at end of file diff --git a/models/graphql/intermediate/int_shopify_gql__daily_orders.sql b/models/graphql/intermediate/int_shopify_gql__daily_orders.sql new file mode 100644 index 00000000..09c84220 --- /dev/null +++ b/models/graphql/intermediate/int_shopify_gql__daily_orders.sql @@ -0,0 +1,98 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with orders as ( + + select * + from {{ ref('shopify_gql__orders') }} + + where not coalesce(is_deleted, false) +), + +order_lines as( + + select * + from {{ ref('shopify_gql__order_lines') }} +), + +order_aggregates as ( + + select + source_relation, + cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day, + count(distinct order_id) as count_orders, + sum(line_item_count) as count_line_items, + avg(line_item_count) as avg_line_item_count, + count(distinct customer_id) as count_customers, + count(distinct email) as count_customer_emails, + sum(order_adjusted_total) as order_adjusted_total, + avg(order_adjusted_total) as avg_order_value, + sum(shipping_cost) as shipping_cost, + sum(order_adjustment_amount) as order_adjustment_amount, + sum(order_adjustment_tax_amount) as order_adjustment_tax_amount, + sum(refund_subtotal) as refund_subtotal, + sum(refund_total_tax) as refund_total_tax, + sum(total_discounts) as total_discounts, + avg(total_discounts) as avg_discount, + sum(shipping_discount_amount) as shipping_discount_amount, + avg(shipping_discount_amount) as avg_shipping_discount_amount, + sum(percentage_calc_discount_amount) as percentage_calc_discount_amount, + avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount, + sum(fixed_amount_discount_amount) as fixed_amount_discount_amount, + avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount, + sum(count_discount_codes_applied) as count_discount_codes_applied, + count(distinct location_id) as count_locations_ordered_from, + sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts, + sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds, + min(created_timestamp) as first_order_timestamp, + max(created_timestamp) as last_order_timestamp + + from orders + group by 1,2 + +), + +order_line_aggregates as ( + + select + order_lines.source_relation, + cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day, + sum(order_lines.quantity) as quantity_sold, + sum(order_lines.refunded_quantity) as quantity_refunded, + sum(order_lines.quantity_net_refunds) as quantity_net, + sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold, + sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net, + count(distinct order_lines.variant_id) as count_variants_sold, + count(distinct order_lines.product_id) as count_products_sold, + sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold, + sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping + + from order_lines + left join orders -- just joining with order to get the created_timestamp + on order_lines.order_id = orders.order_id + and order_lines.source_relation = orders.source_relation + + group by 1,2 +), + +final as ( + + select + order_aggregates.*, + order_line_aggregates.quantity_sold, + order_line_aggregates.quantity_refunded, + order_line_aggregates.quantity_net, + order_line_aggregates.count_variants_sold, + order_line_aggregates.count_products_sold, + order_line_aggregates.quantity_gift_cards_sold, + order_line_aggregates.quantity_requiring_shipping, + order_line_aggregates.avg_quantity_sold, + order_line_aggregates.avg_quantity_net + + from order_aggregates + left join order_line_aggregates + on order_aggregates.date_day = order_line_aggregates.date_day + and order_aggregates.source_relation = order_line_aggregates.source_relation +) + +select * +from final \ No newline at end of file diff --git a/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql b/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql new file mode 100644 index 00000000..c1bcda87 --- /dev/null +++ b/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql @@ -0,0 +1,150 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with discount_redeem_codes as ( + + select * + from {{ var('shopify_gql_discount_redeem_code') }} +), + +discount_applications as ( + + select * + from {{ var('shopify_gql_discount_application') }} +), + +unified_discount_codes as ( + + select + discount_code_id, + 'basic' as discount_type, + applies_once_per_customer, + usage_count, + codes_count, + codes_precision, + combines_with_order_discounts, + combines_with_product_discounts, + combines_with_shipping_discounts, + created_at, + customer_selection_all_customers, + ends_at, + starts_at, + status, + null as title, + total_sales_amount, + total_sales_currency_code, + updated_at, + usage_limit, + source_relation + from {{ var('shopify_gql_discount_code_basic') }} + + union all + + select + discount_code_id, + 'bxgy' as discount_type, + applies_once_per_customer, + usage_count, + codes_count, + codes_precision, + combines_with_order_discounts, + combines_with_product_discounts, + combines_with_shipping_discounts, + created_at, + customer_selection_all_customers, + ends_at, + starts_at, + status, + title, + total_sales_amount, + total_sales_currency_code, + updated_at, + usage_limit, + source_relation + from {{ var('shopify_gql_discount_code_bxgy') }} + + union all + + select + discount_code_id, + 'free_shipping' as discount_type, + applies_once_per_customer, + usage_count, + codes_count, + codes_precision, + combines_with_order_discounts, + combines_with_product_discounts, + combines_with_shipping_discounts, + created_at, + customer_selection_all_customers, + ends_at, + starts_at, + status, + null as title, + total_sales_amount, + total_sales_currency_code, + updated_at, + usage_limit, + source_relation + from {{ var('shopify_gql_discount_code_free_shipping') }} + + {% if var('shopify_using_discount_code_app', False) %} + + union all + + select + discount_code_id, + 'app' as discount_type, + applies_once_per_customer, + usage_count, + codes_count, + codes_precision, + combines_with_order_discounts, + combines_with_product_discounts, + combines_with_shipping_discounts, + created_at, + customer_selection_all_customers, + ends_at, + starts_at, + status, + title, + total_sales_amount, + total_sales_currency_code, + updated_at, + usage_limit, + source_relation + from {{ var('shopify_gql_discount_code_app') }} + {% endif %} +), + +discounts_with_codes as ( + + select + discount_redeem_codes.code, + unified_discount_codes.* + from unified_discount_codes + left join discount_redeem_codes + on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id + and unified_discount_codes.source_relation = discount_redeem_codes.source_relation +), + +discounts_with_applications as ( + + select + discounts_with_codes.*, + discount_applications.allocation_method, + {# discount_applications.description, #} + discount_applications.target_selection, + discount_applications.target_type, + {# discount_applications.type as application_type, #} + discount_applications.value_amount as value, -- QUESTION: should we be renaming this? + discount_application.value_currency_code, + discount_applications.value_percentage, + discount_applications.value_type + from discounts_with_codes + left join discount_applications + on discounts_with_codes.code = discount_applications.code -- NEED this + and discounts_with_codes.source_relation = discount_applications.source_relation +) + +select * +from discounts_with_applications \ No newline at end of file diff --git a/models/graphql/intermediate/int_shopify_gql__discounts__abandoned_checkouts.sql b/models/graphql/intermediate/int_shopify_gql__discounts__abandoned_checkouts.sql new file mode 100644 index 00000000..0b4caaf0 --- /dev/null +++ b/models/graphql/intermediate/int_shopify_gql__discounts__abandoned_checkouts.sql @@ -0,0 +1,91 @@ +{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }} + +with abandoned_checkout as ( + + select * + from {{ ref('int_shopify_gql__abandoned_checkout') }} + + -- "deleted" abandoned checkouts do not appear to have any data tying them to customers, + -- discounts, or products (and should therefore not get joined in) but let's filter them out here + where not coalesce(is_deleted, false) +), + +discount_application as ( + + select * + from {{ var('shopify_gql_discount_application') }} +), + +abandoned_checkout_discount_code as ( + + select * + from {{ var('shopify_gql_abandoned_checkout_discount_code') }} + + -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins + -- so filter out records that have this + where coalesce(type, '') != '' +), + +join_abandoned_checkout_discount_code as ( + + select + abandoned_checkout_discount_code.checkout_id, + abandoned_checkout_discount_code.source_relation, + abandoned_checkout_discount_code.code, + abandoned_checkout_discount_code.index, + discount_application.value_type as type + + from abandoned_checkout_discount_code + left join discount_application + on abandoned_checkout_discount_code.checkout_id = discount_application.checkout_id + and abandoned_checkout_discount_code.source_relation = discount_application.source_relation + -- and abandoned_checkout_discount_code.index = discount_application.index + {# NEED CODE #} + where coalesce(discount_application.value_type, '') != '' +) + +{# TABLE HAS BEEN REMOVED + +abandoned_checkout_shipping_line as ( + + select * + from {{ var('shopify_abandoned_checkout_shipping_line') }} +), + +roll_up_shipping_line as ( + + select + checkout_id, + source_relation, + sum(price) as price + + from abandoned_checkout_shipping_line + group by 1,2 +), +#} +abandoned_checkouts_aggregated as ( + + select + abandoned_checkout_discount_code.code, + abandoned_checkout_discount_code.type, + abandoned_checkout_discount_code.source_relation, + sum(coalesce(abandoned_checkout.total_discounts_set_shop_amount), 0) as total_abandoned_checkout_discount_amount, + sum(coalesce(abandoned_checkout.total_line_items_price_set_shop_amount, 0)) as total_abandoned_checkout_line_items_price, + {# sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price, #} + count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers, + count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails, + count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts + + from abandoned_checkout_discount_code + left join abandoned_checkout + on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id + and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation + {# left join roll_up_shipping_line + on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id + and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation #} + + group by 1,2,3 +) + +select * +from abandoned_checkouts_aggregated \ No newline at end of file diff --git a/models/graphql/intermediate/int_shopify_gql__discounts__order_aggregates.sql b/models/graphql/intermediate/int_shopify_gql__discounts__order_aggregates.sql new file mode 100644 index 00000000..3ca067b6 --- /dev/null +++ b/models/graphql/intermediate/int_shopify_gql__discounts__order_aggregates.sql @@ -0,0 +1,39 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with order_discount_code as ( + + select * + from {{ ref('int_shopify_gql__order_discount_code') }} +), + +orders as ( + + select * + from {{ ref('shopify_gql__orders') }} +), + +orders_aggregated as ( + + select + order_discount_code.code, + order_discount_code.type, + order_discount_code.source_relation, + avg(order_discount_code.value_amount) as avg_order_discount_amount, + sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount, + max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order + max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order + max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order + count(distinct customer_id) as count_customers, + count(distinct email) as count_customer_emails, + count(distinct order_discount_code.order_id) as count_orders + + from order_discount_code + join orders + on order_discount_code.order_id = orders.order_id + and order_discount_code.source_relation = orders.source_relation + + group by 1,2,3 +) + +select * +from orders_aggregated \ No newline at end of file diff --git a/models/graphql/intermediate/int_shopify_gql__inventory_level__aggregates.sql b/models/graphql/intermediate/int_shopify_gql__inventory_level__aggregates.sql new file mode 100644 index 00000000..7c19e5ac --- /dev/null +++ b/models/graphql/intermediate/int_shopify_gql__inventory_level__aggregates.sql @@ -0,0 +1,97 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with order_lines as ( + + select * + from {{ ref('int_shopify_gql__order_line') }} +), + +fulfillment as ( + + select * + from {{ ref('int_shopify_gql__fulfillment') }} +), + +orders as ( + + select * + from {{ var('shopify_gql_order') }} + where not coalesce(is_deleted, false) +), + +refunds as ( + + select * + from {{ ref('shopify_gql__orders__order_refunds') }} + +), refunds_aggregated as ( + + select + order_line_id, + source_relation, + sum(quantity) as quantity, + sum(coalesce(subtotal, 0)) as subtotal + + from refunds + group by 1,2 +), + +joined as ( + + select + order_lines.order_line_id, + order_lines.variant_id, + order_lines.source_relation, + fulfillment.location_id, -- location id is stored in fulfillment rather than order + orders.order_id, + orders.customer_id, + fulfillment.fulfillment_id, + lower(orders.email) as email, + order_lines.pre_tax_price, + order_lines.quantity, + orders.created_timestamp as order_created_timestamp, + fulfillment.status as fulfillment_status, + refunds_aggregated.subtotal as subtotal_sold_refunds, + refunds_aggregated.quantity as quantity_sold_refunds + + from order_lines + join orders + on order_lines.order_id = orders.order_id + and order_lines.source_relation = orders.source_relation + join fulfillment + on orders.order_id = fulfillment.order_id + and orders.source_relation = fulfillment.source_relation + left join refunds_aggregated + on refunds_aggregated.order_line_id = order_lines.order_line_id + and refunds_aggregated.source_relation = order_lines.source_relation +), + +aggregated as ( + + select + variant_id, + location_id, + source_relation, + sum(coalesce(pre_tax_price, 0)) as subtotal_sold, + sum(coalesce(quantity, 0)) as quantity_sold, + count(distinct order_id) as count_distinct_orders, + count(distinct customer_id) as count_distinct_customers, + count(distinct email) as count_distinct_customer_emails, + min(order_created_timestamp) as first_order_timestamp, + max(order_created_timestamp) as last_order_timestamp + + {# open and pending are set to be deprecated in the future by Shopify #} + {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %} + , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }} + {% endfor %} + + , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds + , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds + + from joined + + {{ dbt_utils.group_by(n=3) }} +) + +select * +from aggregated \ No newline at end of file diff --git a/models/graphql/intermediate/int_shopify_gql__order__shipping_aggregates.sql b/models/graphql/intermediate/int_shopify_gql__order__shipping_aggregates.sql index f98d1bf6..0382064e 100644 --- a/models/graphql/intermediate/int_shopify_gql__order__shipping_aggregates.sql +++ b/models/graphql/intermediate/int_shopify_gql__order__shipping_aggregates.sql @@ -6,8 +6,8 @@ with order_shipping_line as ( order_id, source_relation, order_shipping_line_id, - sum(coalesce(price_set_shop_amount, 0)) as shipping_price, - sum(coalesce(discounted_price_set_shop_amount, 0)) as discounted_shipping_price + sum(coalesce(price_shop_amount, 0)) as shipping_price, + sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price from {{ var('shopify_gql_order_shipping_line') }} group by 1,2,3 @@ -17,7 +17,7 @@ with order_shipping_line as ( select order_shipping_line_id, source_relation, - sum(coalesce(price_set_shop_amount, 0)) as shipping_tax + sum(coalesce(price_shop_amount, 0)) as shipping_tax from {{ var('shopify_gql_order_shipping_tax_line') }} group by 1,2 diff --git a/models/graphql/intermediate/shopify_gql__customers__order_aggregates.sql b/models/graphql/intermediate/shopify_gql__customers__order_aggregates.sql index 5c7e3339..6e8bdc7c 100644 --- a/models/graphql/intermediate/shopify_gql__customers__order_aggregates.sql +++ b/models/graphql/intermediate/shopify_gql__customers__order_aggregates.sql @@ -12,7 +12,7 @@ with orders as ( from {{ ref('shopify_gql__orders__order_line_aggregates') }} ), transactions as ( -{# todo #} + select * from {{ ref('shopify_gql__transactions')}} diff --git a/models/graphql/intermediate/shopify_gql__orders__order_line_aggregates.sql b/models/graphql/intermediate/shopify_gql__orders__order_line_aggregates.sql index cd4f5748..4940bc94 100644 --- a/models/graphql/intermediate/shopify_gql__orders__order_line_aggregates.sql +++ b/models/graphql/intermediate/shopify_gql__orders__order_line_aggregates.sql @@ -25,7 +25,7 @@ with order_line as ( select order_line_id, source_relation, - sum(coalesce(price_set_shop_amount, 0)) as price + sum(coalesce(price_shop_amount, 0)) as price from tax group by 1,2 @@ -38,7 +38,9 @@ with order_line as ( count(*) as line_item_count, sum(coalesce(order_line.quantity, 0)) as order_total_quantity, sum(coalesce(tax_aggregates.price, 0)) as order_total_tax, - sum(coalesce(order_line.total_discount_set_shop_amount, 0)) as order_total_discount + sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount, + sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount, + sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount from order_line left join tax_aggregates @@ -55,6 +57,8 @@ with order_line as ( order_line_aggregates.order_total_quantity, order_line_aggregates.order_total_tax, order_line_aggregates.order_total_discount, + order_line_aggregates.total_line_items_price_pres_amount, + order_line_aggregates.total_line_items_price_shop_amount, shipping.shipping_price as order_total_shipping, shipping.discounted_shipping_price as order_total_shipping_with_discounts, shipping.shipping_tax as order_total_shipping_tax diff --git a/models/graphql/intermediate/shopify_gql__orders__order_refunds.sql b/models/graphql/intermediate/shopify_gql__orders__order_refunds.sql index f73543a8..91e19570 100644 --- a/models/graphql/intermediate/shopify_gql__orders__order_refunds.sql +++ b/models/graphql/intermediate/shopify_gql__orders__order_refunds.sql @@ -22,8 +22,8 @@ with refunds as ( order_line_refunds.order_line_id, order_line_refunds.restock_type, order_line_refunds.quantity, - order_line_refunds.subtotal_set_shop_amount as subtotal, - order_line_refunds.total_tax_set_shop_amount as total_tax + order_line_refunds.subtotal_shop_amount as subtotal, + order_line_refunds.total_tax_shop_amount as total_tax from refunds left join order_line_refunds diff --git a/models/graphql/shopify_gql__discounts.sql b/models/graphql/shopify_gql__discounts.sql new file mode 100644 index 00000000..2e5fbcd5 --- /dev/null +++ b/models/graphql/shopify_gql__discounts.sql @@ -0,0 +1,67 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with discounts_enriched as ( + + select *, + {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as discounts_unique_key + from {{ ref('int_shopify_gql__discount_code_enriched')}} +), + +orders_aggregated as ( + + select * + from {{ ref('int_shopify_gql__discounts__order_aggregates')}} +), + +{% if var('shopify_using_abandoned_checkout', True) %} +abandoned_checkouts_aggregated as ( + + select * + from {{ ref('int_shopify_gql__discounts__abandoned_checkouts')}} +), +{% endif %} + + +aggregates_joined as ( + + select + discounts_enriched.*, + coalesce(orders_aggregated.count_orders, 0) as count_orders, + orders_aggregated.avg_order_discount_amount, + coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount, + coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price, + coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost, + coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount, + coalesce(orders_aggregated.count_customers, 0) as count_customers, + coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails + + {% if var('shopify_using_abandoned_checkout', True) %} + , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount, + coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price, + coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts, + coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers, + coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails + {% endif %} + + from discounts_enriched + left join orders_aggregated + on discounts_enriched.code = orders_aggregated.code + and discounts_enriched.source_relation = orders_aggregated.source_relation + -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts + and (case + when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage' + else discounts_enriched.value_type end) = orders_aggregated.type + + {% if var('shopify_using_abandoned_checkout', True) %} + left join abandoned_checkouts_aggregated + on discounts_enriched.code = abandoned_checkouts_aggregated.code + and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation + -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts + and (case + when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage' + else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type + {% endif %} +) + +select * +from aggregates_joined \ No newline at end of file diff --git a/models/graphql/shopify_gql__inventory_levels.sql b/models/graphql/shopify_gql__inventory_levels.sql new file mode 100644 index 00000000..39568cdf --- /dev/null +++ b/models/graphql/shopify_gql__inventory_levels.sql @@ -0,0 +1,217 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with inventory_level as ( + + select * + from {{ var('shopify_gql_inventory_level') }} +), + +inventory_item as ( + + select * + from {{ var('shopify_gql_inventory_item') }} +), + +inventory_quantity as ( + + select * + from {{ var('shopify_gql_inventory_quantity') }} +), + +location as ( + + select * + from {{ var('shopify_gql_location') }} +), + +product_variant as ( + + select * + from {{ var('shopify_gql_product_variant') }} +), + +product as ( + + select * + from {{ var('shopify_gql_product') }} +), + +inventory_level_aggregated as ( + + select * + from {{ ref('int_shopify_gql__inventory_level__aggregates') }} +), + +{% if var('shopify_using_product_variant_media', False) %} +product_variant_media as ( + + select * + from {{ var('shopify_product_variant_media') }} +), +{% endif %} + +inventory_quantity_aggregated as ( + + select + inventory_quantity.source_relation, + inventory_quantity.inventory_item_id, + inventory_quantity.inventory_level_id + + {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%} + {% for inventory_state in inventory_states -%} + , sum(case when lower(inventory_state_name) = {{ "'" ~ inventory_state|lower ~ "'" }} + then inventory_quantity.quantity end) as {{ inventory_state }}_quantity + {% endfor -%} + + from inventory_quantity + left join inventory_level + on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id + and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id + and inventory_quantity.source_relation = inventory_level.source_relation + group by 1,2,3 +), + +joined_info as ( + + select + inventory_level.inventory_level_id, + inventory_level.inventory_item_id, + inventory_level.location_id, + inventory_level.can_deactivate, + inventory_level.deactivation_alert, + inventory_level.created_at, + inventory_level.updated_at, + inventory_level._fivetran_synced, + inventory_level.source_relation, + + inventory_item.sku, + inventory_item.is_deleted as is_inventory_item_deleted, + inventory_item.unit_cost_amount, + inventory_item.unit_cost_currency_code, + inventory_item.country_code_of_origin, + inventory_item.province_code_of_origin, + inventory_item.is_shipping_required, + inventory_item.is_inventory_quantity_tracked, + inventory_item.created_at as inventory_item_created_at, + inventory_item.updated_at as inventory_item_updated_at, + inventory_item.duplicate_sku_count, + inventory_item.harmonized_system_code, + inventory_item.inventory_history_url, + inventory_item.legacy_resource_id, + inventory_item.measurement_id, + inventory_item.measurement_weight_value, + inventory_item.measurement_weight_unit, + inventory_item.is_tracked_editable_locked, + inventory_item.tracked_editable_reason, + + location.name as location_name, + location.is_deleted as is_location_deleted, + location.is_active as is_location_active, + location.address_1, + location.address_2, + location.city, + location.country, + location.country_code, + location.country_name, -- new + location.is_legacy as is_legacy_location, + location.province, + location.province_code, + location.phone, + location.zip, + location.created_at as location_created_at, + location.updated_at as location_updated_at, + + product_variant.variant_id, + product_variant.product_id, + product_variant.title as variant_title, + product_variant.inventory_policy as variant_inventory_policy, + product_variant.price as variant_price, + + {% if var('shopify_using_product_variant_media', False) %} + product_variant_media.media_id as variant_media_id, + {% endif %} + + {# DEPRECATED product_variant.fulfillment_service as variant_fulfillment_service, + product_variant.inventory_management as variant_inventory_management, #} + product_variant.is_taxable as is_variant_taxable, + product_variant.barcode as variant_barcode, + {# DEPRECATED: product_variant.grams as variant_grams, #} + product_variant.inventory_quantity as variant_inventory_quantity, + {# DEPRECATED: product_variant.weight as variant_weight, + product_variant.weight_unit as variant_weight_unit, + product_variant.option_1 as variant_option_1, + product_variant.option_2 as variant_option_2, + product_variant.option_3 as variant_option_3, #} + product_variant.tax_code as variant_tax_code, + product_variant.created_timestamp as variant_created_at, + product_variant.updated_timestamp as variant_updated_at, + product_variant.is_available_for_sale as variant_is_available_for_sale, + product_variant.display_name as variant_display_name, + product_variant.legacy_resource_id as variant_legacy_resource_id, + product_variant.has_components_required as variant_has_components_required, + product_variant.sellable_online_quantity as variant_sellable_online_quantity + + {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }} + + from inventory_level + join inventory_item + on inventory_level.inventory_item_id = inventory_item.inventory_item_id + and inventory_level.source_relation = inventory_item.source_relation + join location + on inventory_level.location_id = location.location_id + and inventory_level.source_relation = location.source_relation + join product_variant + on inventory_item.inventory_item_id = product_variant.inventory_item_id + and inventory_item.source_relation = product_variant.source_relation + + {% if var('shopify_using_product_variant_media', False) %} + join product_variant_media + on product_variant.variant_id = product_variant_media.product_variant_id + and product_variant.source_relation = product_variant_media.source_relation + {% endif %} +), + +joined_aggregates as ( + + select + joined_info.*, + coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold, + coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold, + coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders, + coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers, + coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails, + inventory_level_aggregated.first_order_timestamp, + inventory_level_aggregated.last_order_timestamp, + coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds, + coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds + + {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %} + , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }} + {% endfor %} + + {% for inventory_state in inventory_states -%} + , inventory_quantity_aggregated.{{ inventory_state }}_quantity + {% endfor -%} + + from joined_info + left join inventory_level_aggregated + on joined_info.location_id = inventory_level_aggregated.location_id + and joined_info.variant_id = inventory_level_aggregated.variant_id + and joined_info.source_relation = inventory_level_aggregated.source_relation + left join inventory_quantity_aggregated + on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id + and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id + and joined_info.source_relation = inventory_quantity_aggregated.source_relation +), + +final as ( + + select + *, + subtotal_sold - subtotal_sold_refunds as net_subtotal_sold, + quantity_sold - quantity_sold_refunds as net_quantity_sold + from joined_aggregates +) + +select * +from final \ No newline at end of file diff --git a/models/graphql/shopify_gql__order_lines.sql b/models/graphql/shopify_gql__order_lines.sql new file mode 100644 index 00000000..627fda8d --- /dev/null +++ b/models/graphql/shopify_gql__order_lines.sql @@ -0,0 +1,101 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with order_lines as ( + + select + *, + {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_line_id']) }} as order_lines_unique_key + from {{ ref('int_shopify_gql__order_line') }} + +), product_variants as ( + + select * + from {{ var('shopify_gql_product_variant') }} + +), refunds as ( + + select * + from {{ ref('shopify_gql__orders__order_refunds') }} + +), + +{% if var('shopify_using_product_variant_media', False) %} +product_variant_media as ( + + select * + from {{ var('shopify_gql_product_variant_media') }} +), +{% endif %} + +refunds_aggregated as ( + + select + order_line_id, + source_relation, + sum(quantity) as quantity, + sum(coalesce(subtotal, 0)) as subtotal, + {{ fivetran_utils.string_agg("distinct cast(refunds.restock_type as " ~ dbt.type_string() ~ ")", "', '") }} as restock_types + from refunds + group by 1,2 + +), joined as ( + + select + order_lines.*, + refunds_aggregated.restock_types, + + coalesce(refunds_aggregated.quantity,0) as refunded_quantity, + coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal, + order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds, + order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds, + + product_variants.created_timestamp as variant_created_at, + product_variants.updated_timestamp as variant_updated_at, + product_variants.inventory_item_id, + + {% if var('shopify_using_product_variant_media', False) %} + product_variant_media.media_id, + {% endif %} + + product_variants.price as variant_price, + product_variants.sku as variant_sku, + product_variants.position as variant_position, + product_variants.inventory_policy as variant_inventory_policy, + product_variants.compare_at_price as variant_compare_at_price, + {# deprecated: product_variants.fulfillment_service as variant_fulfillment_service, #} + + product_variants.is_taxable as variant_is_taxable, + product_variants.barcode as variant_barcode, + product_variants.inventory_quantity as variant_inventory_quantity, + {# ALL DEPRECATED: + product_variants.grams as variant_grams, + product_variants.weight as variant_weight, + product_variants.weight_unit as variant_weight_unit, + product_variants.option_1 as variant_option_1, + product_variants.option_2 as variant_option_2, + product_variants.option_3 as variant_option_3, + #} + product_variants.tax_code as variant_tax_code, + product_variants.is_available_for_sale as variant_is_available_for_sale, + product_variants.display_name as variant_display_name, + product_variants.legacy_resource_id as variant_legacy_resource_id, + product_variants.has_components_required as variant_has_components_required, + product_variants.sellable_online_quantity as variant_sellable_online_quantity + + from order_lines + left join refunds_aggregated + on refunds_aggregated.order_line_id = order_lines.order_line_id + and refunds_aggregated.source_relation = order_lines.source_relation + left join product_variants + on product_variants.variant_id = order_lines.variant_id + and product_variants.source_relation = order_lines.source_relation + + {% if var('shopify_using_product_variant_media', False) %} + left join product_variant_media + on product_variant_media.product_variant_id = product_variants.variant_id + and product_variant_media.source_relation = product_variants.source_relation + {% endif %} +) + +select * +from joined \ No newline at end of file diff --git a/models/graphql/shopify_gql__orders.sql b/models/graphql/shopify_gql__orders.sql index d0ecf4fc..eb06b239 100644 --- a/models/graphql/shopify_gql__orders.sql +++ b/models/graphql/shopify_gql__orders.sql @@ -21,8 +21,8 @@ with orders as ( select order_id, source_relation, - sum(amount_set_shop_amount) as order_adjustment_amount, - sum(tax_amount_set_shop_amount) as order_adjustment_tax_amount + sum(amount_shop) as order_adjustment_amount, + sum(tax_amount_shop) as order_adjustment_tax_amount from order_adjustments group by 1,2 @@ -43,7 +43,7 @@ with orders as ( ), order_discount_code as ( select * - from {{ var('shopify_gql_order_discount_code') }} + from {{ ref('int_shopify_gql__order_discount_code') }} ), discount_aggregates as ( @@ -84,8 +84,10 @@ with orders as ( ), joined as ( select - orders.*, -- except shipping_cost_shop_amount ? - coalesce(shipping_cost_shop_amount, 0) as shipping_cost, -- to not break downstream query + orders.*, + {# QUESTION: in REST, we needed to parse a json to get this, but in gql it's already included in orders.* + but it has a slightly different name. should we include the below as well? #} + coalesce(shipping_cost_shop_amount, 0) as shipping_cost, order_adjustments_aggregates.order_adjustment_amount, order_adjustments_aggregates.order_adjustment_tax_amount, @@ -93,10 +95,12 @@ with orders as ( refund_aggregates.refund_subtotal, refund_aggregates.refund_total_tax, - (orders.total_price + (orders.total_price_shop_amount + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total, order_lines.line_item_count, + order_lines.total_line_items_price_pres_amount, + order_lines.total_line_items_price_shop_amount, coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount, coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount, @@ -104,7 +108,7 @@ with orders as ( coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied, coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax, order_tag.order_tags, - order_url_tag.order_url_tags, + {# QUESTION: order_url_tag was removed so no order_url_tag.order_url_tags -- should we set a null field? #} fulfillments.number_of_fulfillments, fulfillments.fulfillment_services, fulfillments.tracking_companies, @@ -127,9 +131,6 @@ with orders as ( left join order_tag on orders.order_id = order_tag.order_id and orders.source_relation = order_tag.source_relation - left join order_url_tag - on orders.order_id = order_url_tag.order_id - and orders.source_relation = order_url_tag.source_relation left join fulfillments on orders.order_id = fulfillments.order_id and orders.source_relation = fulfillments.source_relation diff --git a/models/graphql/shopify_gql__transactions.sql b/models/graphql/shopify_gql__transactions.sql new file mode 100644 index 00000000..053415bd --- /dev/null +++ b/models/graphql/shopify_gql__transactions.sql @@ -0,0 +1,42 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with transactions as ( + select + *, + {{ dbt_utils.generate_surrogate_key(['source_relation', 'transaction_id'])}} as transactions_unique_id + from {{ var('shopify_gql_transaction') }} + +), tender_transactions as ( + + select * + from {{ var('shopify_gql_tender_transaction') }} + +), joined as ( + select + transactions.*, + tender_transactions.payment_method, + parent_transactions.created_timestamp as parent_created_timestamp, + parent_transactions.kind as parent_kind, + parent_transactions.amount_shop as parent_amount, + parent_transactions.status as parent_status + from transactions + left join tender_transactions + on transactions.transaction_id = tender_transactions.transaction_id + and transactions.source_relation = tender_transactions.source_relation + left join transactions as parent_transactions + on transactions.parent_id = parent_transactions.transaction_id + and transactions.source_relation = parent_transactions.source_relation + +), exchange_rate as ( + + select + *, + {# QUESTION/ISSUE: Cannot confirm if receipt looks the same in GraphQL #} + coalesce(cast(nullif({{ fivetran_utils.json_parse("receipt",["charges","data",0,"balance_transaction","exchange_rate"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate, + coalesce(cast(nullif({{ fivetran_utils.json_parse("receipt",["charges","data",0,"balance_transaction","exchange_rate"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount_shop as currency_exchange_calculated_amount + from joined + +) + +select * +from exchange_rate \ No newline at end of file diff --git a/models/rest/intermediate/int_shopify__customer_email_rollup.sql b/models/rest/intermediate/int_shopify__customer_email_rollup.sql index 2fa85004..0070fd46 100644 --- a/models/rest/intermediate/int_shopify__customer_email_rollup.sql +++ b/models/rest/intermediate/int_shopify__customer_email_rollup.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with customers as ( select diff --git a/models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql b/models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql index 7f70f791..74b9c51f 100644 --- a/models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql +++ b/models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql @@ -1,4 +1,4 @@ -{{ config(enabled=var('shopify_using_abandoned_checkout', True)) }} +{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }} with abandoned_checkout as ( diff --git a/models/rest/intermediate/int_shopify__daily_fulfillment.sql b/models/rest/intermediate/int_shopify__daily_fulfillment.sql index a60a0b90..c632d69c 100644 --- a/models/rest/intermediate/int_shopify__daily_fulfillment.sql +++ b/models/rest/intermediate/int_shopify__daily_fulfillment.sql @@ -1,4 +1,4 @@ -{{ config(enabled=var('shopify_using_fulfillment_event', false)) }} +{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }} with fulfillment_event as ( diff --git a/models/rest/intermediate/int_shopify__daily_orders.sql b/models/rest/intermediate/int_shopify__daily_orders.sql index 76e0d904..34a8ffcc 100644 --- a/models/rest/intermediate/int_shopify__daily_orders.sql +++ b/models/rest/intermediate/int_shopify__daily_orders.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with orders as ( select * diff --git a/models/rest/intermediate/int_shopify__discount_code_enriched.sql b/models/rest/intermediate/int_shopify__discount_code_enriched.sql index 95618189..9cad7cad 100644 --- a/models/rest/intermediate/int_shopify__discount_code_enriched.sql +++ b/models/rest/intermediate/int_shopify__discount_code_enriched.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with discount_redeem_codes as ( select * diff --git a/models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql b/models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql index fa752945..a6af01f7 100644 --- a/models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql +++ b/models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql @@ -1,4 +1,4 @@ -{{ config(enabled=var('shopify_using_abandoned_checkout', True)) }} +{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }} with abandoned_checkout as ( diff --git a/models/rest/intermediate/int_shopify__discounts__order_aggregates.sql b/models/rest/intermediate/int_shopify__discounts__order_aggregates.sql index 9ac59221..998e5138 100644 --- a/models/rest/intermediate/int_shopify__discounts__order_aggregates.sql +++ b/models/rest/intermediate/int_shopify__discounts__order_aggregates.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with order_discount_code as ( select * diff --git a/models/rest/intermediate/int_shopify__emails__order_aggregates.sql b/models/rest/intermediate/int_shopify__emails__order_aggregates.sql index 6364e4e0..b8397de8 100644 --- a/models/rest/intermediate/int_shopify__emails__order_aggregates.sql +++ b/models/rest/intermediate/int_shopify__emails__order_aggregates.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with orders as ( select * diff --git a/models/rest/intermediate/int_shopify__inventory_level__aggregates.sql b/models/rest/intermediate/int_shopify__inventory_level__aggregates.sql index f169e107..a7cc4dd7 100644 --- a/models/rest/intermediate/int_shopify__inventory_level__aggregates.sql +++ b/models/rest/intermediate/int_shopify__inventory_level__aggregates.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with order_lines as ( select * diff --git a/models/rest/intermediate/int_shopify__order__shipping_aggregates.sql b/models/rest/intermediate/int_shopify__order__shipping_aggregates.sql index d67a60b7..e9840095 100644 --- a/models/rest/intermediate/int_shopify__order__shipping_aggregates.sql +++ b/models/rest/intermediate/int_shopify__order__shipping_aggregates.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with order_shipping_line as ( select diff --git a/models/rest/intermediate/int_shopify__product__order_line_aggregates.sql b/models/rest/intermediate/int_shopify__product__order_line_aggregates.sql index 1d874ffd..9edfc495 100644 --- a/models/rest/intermediate/int_shopify__product__order_line_aggregates.sql +++ b/models/rest/intermediate/int_shopify__product__order_line_aggregates.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with order_lines as ( select * diff --git a/models/rest/intermediate/int_shopify__products_with_aggregates.sql b/models/rest/intermediate/int_shopify__products_with_aggregates.sql index 8bce235d..4009ca52 100644 --- a/models/rest/intermediate/int_shopify__products_with_aggregates.sql +++ b/models/rest/intermediate/int_shopify__products_with_aggregates.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with products as ( select * diff --git a/models/rest/intermediate/shopify__customers__order_aggregates.sql b/models/rest/intermediate/shopify__customers__order_aggregates.sql index 9100ca76..da1d8f6b 100644 --- a/models/rest/intermediate/shopify__customers__order_aggregates.sql +++ b/models/rest/intermediate/shopify__customers__order_aggregates.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with orders as ( select * diff --git a/models/rest/intermediate/shopify__orders__order_line_aggregates.sql b/models/rest/intermediate/shopify__orders__order_line_aggregates.sql index f2c198f3..e252d53f 100644 --- a/models/rest/intermediate/shopify__orders__order_line_aggregates.sql +++ b/models/rest/intermediate/shopify__orders__order_line_aggregates.sql @@ -1,4 +1,4 @@ -{{ config(materialized='table') }} +{{ config(materialized='table', enabled=var('shopify_api', 'rest') == 'rest') }} with order_line as ( diff --git a/models/rest/intermediate/shopify__orders__order_refunds.sql b/models/rest/intermediate/shopify__orders__order_refunds.sql index 98808a31..b86d123b 100644 --- a/models/rest/intermediate/shopify__orders__order_refunds.sql +++ b/models/rest/intermediate/shopify__orders__order_refunds.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with refunds as ( select * diff --git a/models/rest/metafields/shopify__collection_metafields.sql b/models/rest/metafields/shopify__collection_metafields.sql index 1ba6869d..51629de8 100644 --- a/models/rest/metafields/shopify__collection_metafields.sql +++ b/models/rest/metafields/shopify__collection_metafields.sql @@ -1,4 +1,4 @@ -{{ config(enabled=var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }} +{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }} {{ shopify.get_metafields( source_object = "stg_shopify__collection", diff --git a/models/rest/metafields/shopify__customer_metafields.sql b/models/rest/metafields/shopify__customer_metafields.sql index c9c4eb39..dc398c12 100644 --- a/models/rest/metafields/shopify__customer_metafields.sql +++ b/models/rest/metafields/shopify__customer_metafields.sql @@ -1,4 +1,4 @@ -{{ config(enabled=var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}} +{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}} {{ shopify.get_metafields( source_object = "stg_shopify__customer", diff --git a/models/rest/metafields/shopify__order_metafields.sql b/models/rest/metafields/shopify__order_metafields.sql index 4aac47f8..252ca370 100644 --- a/models/rest/metafields/shopify__order_metafields.sql +++ b/models/rest/metafields/shopify__order_metafields.sql @@ -1,4 +1,4 @@ -{{ config(enabled=var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }} +{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }} {{ shopify.get_metafields( source_object = "stg_shopify__order", diff --git a/models/rest/metafields/shopify__product_metafields.sql b/models/rest/metafields/shopify__product_metafields.sql index ab5123c8..09dcd826 100644 --- a/models/rest/metafields/shopify__product_metafields.sql +++ b/models/rest/metafields/shopify__product_metafields.sql @@ -1,4 +1,4 @@ -{{ config(enabled=var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }} +{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }} {{ shopify.get_metafields( source_object = "stg_shopify__product", diff --git a/models/rest/metafields/shopify__product_variant_metafields.sql b/models/rest/metafields/shopify__product_variant_metafields.sql index 333234eb..b5f9f50e 100644 --- a/models/rest/metafields/shopify__product_variant_metafields.sql +++ b/models/rest/metafields/shopify__product_variant_metafields.sql @@ -1,4 +1,4 @@ -{{ config(enabled=var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }} +{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }} {{ shopify.get_metafields( source_object = "stg_shopify__product_variant", diff --git a/models/rest/metafields/shopify__shop_metafields.sql b/models/rest/metafields/shopify__shop_metafields.sql index 71b8b01d..9373a71b 100644 --- a/models/rest/metafields/shopify__shop_metafields.sql +++ b/models/rest/metafields/shopify__shop_metafields.sql @@ -1,4 +1,4 @@ -{{ config(enabled=var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }} +{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }} {{ shopify.get_metafields( source_object = "stg_shopify__shop", diff --git a/models/rest/shopify__customer_cohorts.sql b/models/rest/shopify__customer_cohorts.sql index e6a99585..e3d4e5bb 100644 --- a/models/rest/shopify__customer_cohorts.sql +++ b/models/rest/shopify__customer_cohorts.sql @@ -1,5 +1,6 @@ {{ config( + enabled=var('shopify_api', 'rest') == 'rest', materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental', unique_key='customer_cohort_id', incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert', diff --git a/models/rest/shopify__customer_email_cohorts.sql b/models/rest/shopify__customer_email_cohorts.sql index d6d9939e..edcd74dc 100644 --- a/models/rest/shopify__customer_email_cohorts.sql +++ b/models/rest/shopify__customer_email_cohorts.sql @@ -1,5 +1,6 @@ {{ config( + enabled=var('shopify_api', 'rest') == 'rest', materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental', unique_key='customer_cohort_id', incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert', diff --git a/models/rest/shopify__customer_emails.sql b/models/rest/shopify__customer_emails.sql index dcccf3c7..2f71938f 100644 --- a/models/rest/shopify__customer_emails.sql +++ b/models/rest/shopify__customer_emails.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with customer_emails as ( select diff --git a/models/rest/shopify__customers.sql b/models/rest/shopify__customers.sql index b9c5bac7..36dd3528 100644 --- a/models/rest/shopify__customers.sql +++ b/models/rest/shopify__customers.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with customers as ( select diff --git a/models/rest/shopify__daily_shop.sql b/models/rest/shopify__daily_shop.sql index 3fd3a7cf..3449a915 100644 --- a/models/rest/shopify__daily_shop.sql +++ b/models/rest/shopify__daily_shop.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with shop as ( select * diff --git a/models/rest/shopify__discounts.sql b/models/rest/shopify__discounts.sql index 32dce63d..d3472f5e 100644 --- a/models/rest/shopify__discounts.sql +++ b/models/rest/shopify__discounts.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with discounts_enriched as ( select *, diff --git a/models/rest/shopify__inventory_levels.sql b/models/rest/shopify__inventory_levels.sql index f3fb9723..21b8fb4d 100644 --- a/models/rest/shopify__inventory_levels.sql +++ b/models/rest/shopify__inventory_levels.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with inventory_level as ( select * diff --git a/models/rest/shopify__order_lines.sql b/models/rest/shopify__order_lines.sql index 7b905129..bfb982e1 100644 --- a/models/rest/shopify__order_lines.sql +++ b/models/rest/shopify__order_lines.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with order_lines as ( select diff --git a/models/rest/shopify__orders.sql b/models/rest/shopify__orders.sql index 8ed99dd6..ee93b469 100644 --- a/models/rest/shopify__orders.sql +++ b/models/rest/shopify__orders.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with orders as ( select diff --git a/models/rest/shopify__products.sql b/models/rest/shopify__products.sql index 2c4fbe30..564467d6 100644 --- a/models/rest/shopify__products.sql +++ b/models/rest/shopify__products.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with products as ( select * diff --git a/models/rest/shopify__transactions.sql b/models/rest/shopify__transactions.sql index 45c626ed..56a4fd74 100644 --- a/models/rest/shopify__transactions.sql +++ b/models/rest/shopify__transactions.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('shopify_api', 'rest') == 'rest') }} + with transactions as ( select *, diff --git a/models/rest/standardized_models/shopify__line_item_enhanced.sql b/models/rest/standardized_models/shopify__line_item_enhanced.sql index 15a71a36..04435506 100644 --- a/models/rest/standardized_models/shopify__line_item_enhanced.sql +++ b/models/rest/standardized_models/shopify__line_item_enhanced.sql @@ -1,4 +1,4 @@ -{{ config(enabled=var('shopify__standardized_billing_model_enabled', True)) }} +{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == 'rest')) }} with line_items as ( diff --git a/models/shopify_graphql.yml b/models/shopify_graphql.yml index f5344e90..637d743a 100644 --- a/models/shopify_graphql.yml +++ b/models/shopify_graphql.yml @@ -1,1218 +1,1218 @@ -version: 2 +# version: 2 -models: - - name: shopify_gql__customer_cohorts - description: Each record represents a customer's performance in a calendar month. - columns: - - name: cohort_month - description: The month the cohort belongs to, i.e the first month the customer had an order. - - name: cohort_month_number - description: The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred - - name: customer_cohort_id - description: Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'. - tests: - - unique - - not_null - - name: customer_id - description: The ID of the related customer. - - name: date_month - description: The calendar month the customer stats relate to. - - name: first_order_timestamp - description: The timestamp of the customer's first order. - - name: line_item_count_in_month - description: Number of line items purchased in the `date_month` - - name: line_item_count_lifetime - description: Number of line items purchased up until and including this `date_month`. - - name: order_count_in_month - description: Number of orders purchased in the `date_month` - - name: order_count_lifetime - description: Number of orders purchased up until and including this `date_month`. - - name: source_relation - description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. - - name: total_price_in_month - description: Total amount (in shop currency) purchased in the `date_month` - - name: total_price_lifetime - description: Total amount (in shop currency) up until and including this `date_month`. - - name: source_relation - description: "{{ doc('source_relation') }}" +# models: +# - name: shopify_gql__customer_cohorts +# description: Each record represents a customer's performance in a calendar month. +# columns: +# - name: cohort_month +# description: The month the cohort belongs to, i.e the first month the customer had an order. +# - name: cohort_month_number +# description: The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred +# - name: customer_cohort_id +# description: Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'. +# tests: +# - unique +# - not_null +# - name: customer_id +# description: The ID of the related customer. +# - name: date_month +# description: The calendar month the customer stats relate to. +# - name: first_order_timestamp +# description: The timestamp of the customer's first order. +# - name: line_item_count_in_month +# description: Number of line items purchased in the `date_month` +# - name: line_item_count_lifetime +# description: Number of line items purchased up until and including this `date_month`. +# - name: order_count_in_month +# description: Number of orders purchased in the `date_month` +# - name: order_count_lifetime +# description: Number of orders purchased up until and including this `date_month`. +# - name: source_relation +# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. +# - name: total_price_in_month +# description: Total amount (in shop currency) purchased in the `date_month` +# - name: total_price_lifetime +# description: Total amount (in shop currency) up until and including this `date_month`. +# - name: source_relation +# description: "{{ doc('source_relation') }}" - - name: shopify_gql__customer_email_cohorts - description: Each record represents a customer's (on the EMAIL grain) performance in a calendar month. - columns: - - name: cohort_month - description: The month the cohort belongs to, i.e the first month the customer had an order. - - name: cohort_month_number - description: The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred - - name: customer_cohort_id - description: Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'. - tests: - - unique - - not_null - - name: email - description: The ID of the related customer. - - name: date_month - description: The calendar month the customer stats relate to. - - name: first_order_timestamp - description: The timestamp of the customer's first order. - - name: line_item_count_in_month - description: Number of line items purchased in the `date_month` - - name: line_item_count_lifetime - description: Number of line items purchased up until and including this `date_month`. - - name: order_count_in_month - description: Number of orders purchased in the `date_month` - - name: order_count_lifetime - description: Number of orders purchased up until and including this `date_month`. - - name: source_relation - description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. - - name: total_price_in_month - description: Total amount (in shop currency) purchased in the `date_month` - - name: total_price_lifetime - description: Total amount (in shop currency) up until and including this `date_month`. - - name: source_relation - description: "{{ doc('source_relation') }}" +# - name: shopify_gql__customer_email_cohorts +# description: Each record represents a customer's (on the EMAIL grain) performance in a calendar month. +# columns: +# - name: cohort_month +# description: The month the cohort belongs to, i.e the first month the customer had an order. +# - name: cohort_month_number +# description: The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred +# - name: customer_cohort_id +# description: Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'. +# tests: +# - unique +# - not_null +# - name: email +# description: The ID of the related customer. +# - name: date_month +# description: The calendar month the customer stats relate to. +# - name: first_order_timestamp +# description: The timestamp of the customer's first order. +# - name: line_item_count_in_month +# description: Number of line items purchased in the `date_month` +# - name: line_item_count_lifetime +# description: Number of line items purchased up until and including this `date_month`. +# - name: order_count_in_month +# description: Number of orders purchased in the `date_month` +# - name: order_count_lifetime +# description: Number of orders purchased up until and including this `date_month`. +# - name: source_relation +# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. +# - name: total_price_in_month +# description: Total amount (in shop currency) purchased in the `date_month` +# - name: total_price_lifetime +# description: Total amount (in shop currency) up until and including this `date_month`. +# - name: source_relation +# description: "{{ doc('source_relation') }}" - - name: shopify_gql__orders - description: Each record represents an order in Shopify. - columns: - - name: orders_unique_key - description: Unique key representing an order. Hashed on 'order_id' and 'source_relation'. - tests: - - unique - - not_null - - name: _fivetran_synced - description: "{{ doc('_fivetran_synced') }}" - - name: app_id - description: The ID of the app that created the order. - - name: billing_address_address_1 - description: The street address of the billing address. - - name: billing_address_address_2 - description: An optional additional field for the street address of the billing address. - - name: billing_address_city - description: The city, town, or village of the billing address. - - name: billing_address_company - description: The company of the person associated with the billing address. - - name: billing_address_country - description: The name of the country of the billing address. - - name: billing_address_country_code - description: The two-letter code (ISO 3166-1 format) for the country of the billing address. - - name: billing_address_first_name - description: The first name of the person associated with the payment method. - - name: billing_address_last_name - description: The last name of the person associated with the payment method. - - name: billing_address_latitude - description: The latitude of the billing address. - - name: billing_address_longitude - description: The longitude of the billing address. - - name: billing_address_name - description: The full name of the person associated with the payment method. - - name: billing_address_phone - description: The phone number at the billing address. - - name: billing_address_province - description: The name of the region (province, state, prefecture, …) of the billing address. - - name: billing_address_province_code - description: The two-letter abbreviation of the region of the billing address. - - name: billing_address_zip - description: The postal code (zip, postcode, Eircode, …) of the billing address. - - name: browser_ip - description: The IP address of the browser used by the customer when they placed the order. - - name: has_buyer_accepted_marketing - description: Whether the customer consented to receive email updates from the shop. - - name: cancel_reason - description: The reason why the order was canceled. - - name: cancelled_timestamp - description: The date and time when the order was canceled. - - name: cart_token - description: The ID of the cart that's associated with the order. - - name: closed_timestamp - description: The date and time when the order was closed (archived). - - name: created_timestamp - description: The autogenerated date and time when the order was created in Shopify. - - name: currency - description: The three-letter code for the shop currency. - - name: customer_id - description: The ID of the order's customer. - - name: email - description: The customer's email address. - - name: financial_status - description: The status of payments associated with the order. Can only be set when the order is created - - name: fulfillment_status - description: The order's status in terms of fulfilled line items. - - name: order_id - description: The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer. - - name: landing_site_base_url - description: The URL for the page where the buyer landed when they entered the shop. - - name: location_id - description: The ID of the physical location where the order was processed. - - name: name - description: The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings. - - name: note - description: An optional note that a shop owner can attach to the order. - - name: number - description: The order's position in the shop's count of orders. Numbers are sequential and start at 1. - - name: order_number - description: The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001. - - name: processed_timestamp - description: The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports. - - name: referring_site - description: The website where the customer clicked a link to the shop. - - name: shipping_address_address_1 - description: The street address of the shipping address. - - name: shipping_address_address_2 - description: An optional additional field for the street address of the shipping address. - - name: shipping_address_city - description: The city, town, or village of the shipping address. - - name: shipping_address_company - description: The company of the person associated with the shipping address. - - name: shipping_address_country - description: The name of the country of the shipping address. - - name: shipping_address_country_code - description: The two-letter code (ISO 3166-1 format) for the country of the shipping address. - - name: shipping_address_first_name - description: The first name of the person associated with the shipping address. - - name: shipping_address_last_name - description: The last name of the person associated with the shipping address. - - name: shipping_address_latitude - description: The latitude of the shipping address. - - name: shipping_address_longitude - description: The longitude of the shipping address. - - name: shipping_address_name - description: The full name of the person associated with the payment method. - - name: shipping_address_phone - description: The phone number at the shipping address. - - name: shipping_address_province - description: The name of the region (province, state, prefecture, …) of the shipping address. - - name: shipping_address_province_code - description: The two-letter abbreviation of the region of the shipping address. - - name: shipping_address_zip - description: The postal code (zip, postcode, Eircode, …) of the shipping address. - - name: source_name - description: Where the order originated. Can be set only during order creation, and is not writeable afterwards. - - name: source_relation - description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. - - name: subtotal_price - description: The price of the order in the shop currency after discounts but before shipping, taxes, and tips. - - name: has_taxes_included - description: Whether taxes are included in the order subtotal. - - name: is_test_order - description: Whether this is a test order. - - name: token - description: A unique token for the order. - - name: total_discounts - description: The total discounts applied to the price of the order in the shop currency. - - name: total_line_items_price - description: The sum of all line item prices in the shop currency. - - name: total_price - description: The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive. - - name: total_tax - description: The sum of all the taxes applied to the order in th shop currency. Must be positive. - - name: total_weight - description: The sum of all line item weights in grams. - - name: updated_timestamp - description: The date and time (ISO 8601 format) when the order was last modified. - - name: user_id - description: The ID of the user logged into Shopify POS who processed the order, if applicable. - - name: line_item_count - description: Number of line items included in the order. - - name: customer_order_seq_number - description: The sequential number of the order as it relates to the customer - - name: new_vs_repeat - description: Whether the order was a new or repeat order for the customer. - - name: shipping_cost - description: The shipping cost of the order. - - name: order_adjustment_amount - description: Total adjustment amount applied to the order in shop currency. - - name: order_adjustment_tax_amount - description: Total tax applied to the adjustment on the order in shop currency. - - name: refund_subtotal - description: Total refund amount applied to the order in shop currency. - - name: refund_total_tax - description: Total tax applied to the refund on the order in shop currency. - - name: order_adjusted_total - description: > - Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: - total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax - The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange). - - name: checkout_token - description: The checkout token applied to the order. - - name: total_shipping_price_set - description: The total shipping price set to the order. - - name: order_total_shipping_tax - description: Total shipping tax attributed to the order. - - name: order_tags - description: List of tags associated with the order. - - name: order_url_tags - description: List of url tags associated with the order. - - name: number_of_fulfillments - description: Total fulfillments for the order. - - name: fulfillment_services - description: List of fulfillment services for the order. - - name: tracking_companies - description: List of tracking companies for the order. - - name: tracking_numbers - description: List of tracking numbers for the order. - - name: total_tip_received - description: The sum of all the tips in the order in the shop currency. - - name: checkout_id - description: The ID for the checkout. - - name: client_details_user_agent - description: Details of the browsing client, including software and operating versions. - - name: customer_locale - description: The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA. - - name: order_status_url - description: The URL pointing to the order status web page, if applicable. - - name: presentment_currency - description: The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`. - - name: is_deleted - description: "{{ doc('_fivetran_deleted') }}" - - name: tracking_numbers - description: List of tracking numbers for the order. - - name: total_discounts_set - description: The total discounts applied to the price of the order in shop and presentment currencies. - - name: total_line_items_price_set - description: The total of all line item prices in shop and presentment currencies. - - name: total_price_set - description: The total price of the order in shop and presentment currencies. - - name: total_tax_set - description: The total tax applied to the order in shop and presentment currencies. - - name: is_confirmed - description: Whether the order is confirmed. - - name: shipping_discount_amount - description: The total amount of discount (in shop currency) allocated toward shipping. - - name: percentage_calc_discount_amount - description: The total amount of discount (in shop currency) allocated via a percentage-based discount - - name: fixed_amount_discount_amount - description: The total amount of discount (in shop currency) allocated via a fixed-amount discount - - name: count_discount_codes_applied - description: Distinct discount codes applied on the order - - name: source_relation - description: The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft. +# - name: shopify_gql__orders +# description: Each record represents an order in Shopify. +# columns: +# - name: orders_unique_key +# description: Unique key representing an order. Hashed on 'order_id' and 'source_relation'. +# tests: +# - unique +# - not_null +# - name: _fivetran_synced +# description: "{{ doc('_fivetran_synced') }}" +# - name: app_id +# description: The ID of the app that created the order. +# - name: billing_address_address_1 +# description: The street address of the billing address. +# - name: billing_address_address_2 +# description: An optional additional field for the street address of the billing address. +# - name: billing_address_city +# description: The city, town, or village of the billing address. +# - name: billing_address_company +# description: The company of the person associated with the billing address. +# - name: billing_address_country +# description: The name of the country of the billing address. +# - name: billing_address_country_code +# description: The two-letter code (ISO 3166-1 format) for the country of the billing address. +# - name: billing_address_first_name +# description: The first name of the person associated with the payment method. +# - name: billing_address_last_name +# description: The last name of the person associated with the payment method. +# - name: billing_address_latitude +# description: The latitude of the billing address. +# - name: billing_address_longitude +# description: The longitude of the billing address. +# - name: billing_address_name +# description: The full name of the person associated with the payment method. +# - name: billing_address_phone +# description: The phone number at the billing address. +# - name: billing_address_province +# description: The name of the region (province, state, prefecture, …) of the billing address. +# - name: billing_address_province_code +# description: The two-letter abbreviation of the region of the billing address. +# - name: billing_address_zip +# description: The postal code (zip, postcode, Eircode, …) of the billing address. +# - name: browser_ip +# description: The IP address of the browser used by the customer when they placed the order. +# - name: has_buyer_accepted_marketing +# description: Whether the customer consented to receive email updates from the shop. +# - name: cancel_reason +# description: The reason why the order was canceled. +# - name: cancelled_timestamp +# description: The date and time when the order was canceled. +# - name: cart_token +# description: The ID of the cart that's associated with the order. +# - name: closed_timestamp +# description: The date and time when the order was closed (archived). +# - name: created_timestamp +# description: The autogenerated date and time when the order was created in Shopify. +# - name: currency +# description: The three-letter code for the shop currency. +# - name: customer_id +# description: The ID of the order's customer. +# - name: email +# description: The customer's email address. +# - name: financial_status +# description: The status of payments associated with the order. Can only be set when the order is created +# - name: fulfillment_status +# description: The order's status in terms of fulfilled line items. +# - name: order_id +# description: The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer. +# - name: landing_site_base_url +# description: The URL for the page where the buyer landed when they entered the shop. +# - name: location_id +# description: The ID of the physical location where the order was processed. +# - name: name +# description: The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings. +# - name: note +# description: An optional note that a shop owner can attach to the order. +# - name: number +# description: The order's position in the shop's count of orders. Numbers are sequential and start at 1. +# - name: order_number +# description: The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001. +# - name: processed_timestamp +# description: The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports. +# - name: referring_site +# description: The website where the customer clicked a link to the shop. +# - name: shipping_address_address_1 +# description: The street address of the shipping address. +# - name: shipping_address_address_2 +# description: An optional additional field for the street address of the shipping address. +# - name: shipping_address_city +# description: The city, town, or village of the shipping address. +# - name: shipping_address_company +# description: The company of the person associated with the shipping address. +# - name: shipping_address_country +# description: The name of the country of the shipping address. +# - name: shipping_address_country_code +# description: The two-letter code (ISO 3166-1 format) for the country of the shipping address. +# - name: shipping_address_first_name +# description: The first name of the person associated with the shipping address. +# - name: shipping_address_last_name +# description: The last name of the person associated with the shipping address. +# - name: shipping_address_latitude +# description: The latitude of the shipping address. +# - name: shipping_address_longitude +# description: The longitude of the shipping address. +# - name: shipping_address_name +# description: The full name of the person associated with the payment method. +# - name: shipping_address_phone +# description: The phone number at the shipping address. +# - name: shipping_address_province +# description: The name of the region (province, state, prefecture, …) of the shipping address. +# - name: shipping_address_province_code +# description: The two-letter abbreviation of the region of the shipping address. +# - name: shipping_address_zip +# description: The postal code (zip, postcode, Eircode, …) of the shipping address. +# - name: source_name +# description: Where the order originated. Can be set only during order creation, and is not writeable afterwards. +# - name: source_relation +# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. +# - name: subtotal_price +# description: The price of the order in the shop currency after discounts but before shipping, taxes, and tips. +# - name: has_taxes_included +# description: Whether taxes are included in the order subtotal. +# - name: is_test_order +# description: Whether this is a test order. +# - name: token +# description: A unique token for the order. +# - name: total_discounts +# description: The total discounts applied to the price of the order in the shop currency. +# - name: total_line_items_price +# description: The sum of all line item prices in the shop currency. +# - name: total_price +# description: The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive. +# - name: total_tax +# description: The sum of all the taxes applied to the order in th shop currency. Must be positive. +# - name: total_weight +# description: The sum of all line item weights in grams. +# - name: updated_timestamp +# description: The date and time (ISO 8601 format) when the order was last modified. +# - name: user_id +# description: The ID of the user logged into Shopify POS who processed the order, if applicable. +# - name: line_item_count +# description: Number of line items included in the order. +# - name: customer_order_seq_number +# description: The sequential number of the order as it relates to the customer +# - name: new_vs_repeat +# description: Whether the order was a new or repeat order for the customer. +# - name: shipping_cost +# description: The shipping cost of the order. +# - name: order_adjustment_amount +# description: Total adjustment amount applied to the order in shop currency. +# - name: order_adjustment_tax_amount +# description: Total tax applied to the adjustment on the order in shop currency. +# - name: refund_subtotal +# description: Total refund amount applied to the order in shop currency. +# - name: refund_total_tax +# description: Total tax applied to the refund on the order in shop currency. +# - name: order_adjusted_total +# description: > +# Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: +# total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax +# The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange). +# - name: checkout_token +# description: The checkout token applied to the order. +# - name: total_shipping_price_set +# description: The total shipping price set to the order. +# - name: order_total_shipping_tax +# description: Total shipping tax attributed to the order. +# - name: order_tags +# description: List of tags associated with the order. +# - name: order_url_tags +# description: List of url tags associated with the order. +# - name: number_of_fulfillments +# description: Total fulfillments for the order. +# - name: fulfillment_services +# description: List of fulfillment services for the order. +# - name: tracking_companies +# description: List of tracking companies for the order. +# - name: tracking_numbers +# description: List of tracking numbers for the order. +# - name: total_tip_received +# description: The sum of all the tips in the order in the shop currency. +# - name: checkout_id +# description: The ID for the checkout. +# - name: client_details_user_agent +# description: Details of the browsing client, including software and operating versions. +# - name: customer_locale +# description: The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA. +# - name: order_status_url +# description: The URL pointing to the order status web page, if applicable. +# - name: presentment_currency +# description: The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`. +# - name: is_deleted +# description: "{{ doc('_fivetran_deleted') }}" +# - name: tracking_numbers +# description: List of tracking numbers for the order. +# - name: total_discounts_set +# description: The total discounts applied to the price of the order in shop and presentment currencies. +# - name: total_line_items_price_set +# description: The total of all line item prices in shop and presentment currencies. +# - name: total_price_set +# description: The total price of the order in shop and presentment currencies. +# - name: total_tax_set +# description: The total tax applied to the order in shop and presentment currencies. +# - name: is_confirmed +# description: Whether the order is confirmed. +# - name: shipping_discount_amount +# description: The total amount of discount (in shop currency) allocated toward shipping. +# - name: percentage_calc_discount_amount +# description: The total amount of discount (in shop currency) allocated via a percentage-based discount +# - name: fixed_amount_discount_amount +# description: The total amount of discount (in shop currency) allocated via a fixed-amount discount +# - name: count_discount_codes_applied +# description: Distinct discount codes applied on the order +# - name: source_relation +# description: The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft. - - name: shopify_gql__customers - description: Each record represents a customer in Shopify. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - customer_id - - source_relation - columns: - - name: _fivetran_synced - description: "{{ doc('_fivetran_synced') }}" - - name: created_timestamp - description: The date and time when the customer was created. - - name: default_address_id - description: The default address for the customer. - - name: email - description: The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error. - - name: first_name - description: The customer's first name. - - name: customer_id - description: A unique identifier for the customer. - - name: last_name - description: The customer's last name. - - name: lifetime_count_orders - description: The number of orders associated with this customer. - - name: phone - description: The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error. - - name: account_state - description: The state of the customer's account with a shop. - - name: is_tax_exempt - description: Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout. - - name: updated_timestamp - description: The date and time when the customer information was last updated. - - name: is_verified_email - description: Whether the customer has verified their email address. - - name: first_order_timestamp - description: The timestamp the customer completed their first order. - - name: most_recent_order_timestamp - description: The timestamp the customer completed their most recent order. - - name: avg_order_value - description: The average order value for the customer. - - name: lifetime_total_spent - description: The total amount of money in shop currency that the customer has spent on orders across their order history. - - name: lifetime_total_refunded - description: The total amount of money that the customer has been refunded on orders across their order history. - - name: lifetime_total_net - description: The total amount of money (minus refunds) that the customer has spent across their order history. - - name: source_relation - description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. - - name: lifetime_abandoned_checkouts - description: Total number of abandoned checkouts abandoned by the customer. - - name: customer_tags - description: A string aggregated list of all tags associated with a customer. - - name: avg_quantity_per_order - description: Average quantity of items per order customer orders. - - name: lifetime_total_tax - description: Total amount of tax attributed to the customer. - - name: avg_tax_per_order - description: Average tax per order attributed to the customer. - - name: lifetime_total_discount - description: Total discounts attributed to the customer. - - name: avg_discount_per_order - description: Average discount per order attributed to the customer. - - name: lifetime_total_shipping - description: Total shipping costs attributed to the customer. - - name: avg_shipping_per_order - description: Average shipping cost per order attributed to the customer. - - name: lifetime_total_shipping_with_discounts - description: Total shipping costs after discounts attributed to the customer. - - name: avg_shipping_with_discounts_per_order - description: Average shipping costs after discounts per order attributed to the customer. - - name: lifetime_total_shipping_tax - description: Total shipping tax attributed to the customer. - - name: avg_shipping_tax_per_order - description: Average shipping tax per order attributed to the customer. - - name: currency - description: The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders. - - name: note - description: A note about the customer. - - name: marketing_consent_updated_at - description: The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. - - name: marketing_opt_in_level - description: The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. - - name: marketing_consent_state - description: > - Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` - field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'. +# - name: shopify_gql__customers +# description: Each record represents a customer in Shopify. +# tests: +# - dbt_utils.unique_combination_of_columns: +# combination_of_columns: +# - customer_id +# - source_relation +# columns: +# - name: _fivetran_synced +# description: "{{ doc('_fivetran_synced') }}" +# - name: created_timestamp +# description: The date and time when the customer was created. +# - name: default_address_id +# description: The default address for the customer. +# - name: email +# description: The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error. +# - name: first_name +# description: The customer's first name. +# - name: customer_id +# description: A unique identifier for the customer. +# - name: last_name +# description: The customer's last name. +# - name: lifetime_count_orders +# description: The number of orders associated with this customer. +# - name: phone +# description: The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error. +# - name: account_state +# description: The state of the customer's account with a shop. +# - name: is_tax_exempt +# description: Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout. +# - name: updated_timestamp +# description: The date and time when the customer information was last updated. +# - name: is_verified_email +# description: Whether the customer has verified their email address. +# - name: first_order_timestamp +# description: The timestamp the customer completed their first order. +# - name: most_recent_order_timestamp +# description: The timestamp the customer completed their most recent order. +# - name: avg_order_value +# description: The average order value for the customer. +# - name: lifetime_total_spent +# description: The total amount of money in shop currency that the customer has spent on orders across their order history. +# - name: lifetime_total_refunded +# description: The total amount of money that the customer has been refunded on orders across their order history. +# - name: lifetime_total_net +# description: The total amount of money (minus refunds) that the customer has spent across their order history. +# - name: source_relation +# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. +# - name: lifetime_abandoned_checkouts +# description: Total number of abandoned checkouts abandoned by the customer. +# - name: customer_tags +# description: A string aggregated list of all tags associated with a customer. +# - name: avg_quantity_per_order +# description: Average quantity of items per order customer orders. +# - name: lifetime_total_tax +# description: Total amount of tax attributed to the customer. +# - name: avg_tax_per_order +# description: Average tax per order attributed to the customer. +# - name: lifetime_total_discount +# description: Total discounts attributed to the customer. +# - name: avg_discount_per_order +# description: Average discount per order attributed to the customer. +# - name: lifetime_total_shipping +# description: Total shipping costs attributed to the customer. +# - name: avg_shipping_per_order +# description: Average shipping cost per order attributed to the customer. +# - name: lifetime_total_shipping_with_discounts +# description: Total shipping costs after discounts attributed to the customer. +# - name: avg_shipping_with_discounts_per_order +# description: Average shipping costs after discounts per order attributed to the customer. +# - name: lifetime_total_shipping_tax +# description: Total shipping tax attributed to the customer. +# - name: avg_shipping_tax_per_order +# description: Average shipping tax per order attributed to the customer. +# - name: currency +# description: The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders. +# - name: note +# description: A note about the customer. +# - name: marketing_consent_updated_at +# description: The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. +# - name: marketing_opt_in_level +# description: The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. +# - name: marketing_consent_state +# description: > +# Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` +# field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'. - - name: shopify_gql__customer_emails - description: Each record represents a customer email in Shopify. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - email - - source_relation - columns: - - name: last_fivetran_synced - description: "{{ doc('_fivetran_synced') }}" - - name: default_address_id - description: The default address for the customer. - - name: email - description: The unique email address of the customer. - - name: first_name - description: The customer's first name. - - name: customer_ids - description: Comma-separated list of customer IDs associated with the email. - - name: last_name - description: The customer's last name. - - name: lifetime_count_orders - description: The number of orders associated with this customer. - - name: phone_numbers - description: Comma-separated list of phone numbers associated with this email. - - name: account_state - description: The state of the customer's account with a shop. - - name: is_tax_exempt - description: Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout. - - name: last_updated_at - description: The date and time when the customer information was last updated. - - name: is_verified_email - description: Whether the customer has verified their email address. - - name: first_order_timestamp - description: The timestamp the customer completed their first order. - - name: most_recent_order_timestamp - description: The timestamp the customer completed their most recent order. - - name: avg_order_value - description: The average order value for the customer. - - name: lifetime_total_spent - description: The total amount of money that the customer has spent on orders across their order history (in shop currency). - - name: lifetime_total_refunded - description: The total amount of money that the customer has been refunded on orders across their order history. - - name: lifetime_total_net - description: The total amount of money (minus refunds) that the customer has spent across their order history. - - name: first_account_created_at - description: Timestamp of when the first account associated with this email was created. - - name: last_account_created_at - description: Timestamp of when the last account associated with this email was created. - - name: source_relation - description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. - - name: lifetime_abandoned_checkouts - description: Total number of abandoned checkouts abandoned by the customer. - - name: customer_tags - description: A string aggregated list of all tags associated with a customer. - - name: avg_quantity_per_order - description: Average quantity of items per order customer orders. - - name: lifetime_total_tax - description: Total amount of tax attributed to the customer. - - name: avg_tax_per_order - description: Average tax per order attributed to the customer. - - name: lifetime_total_discount - description: Total discounts attributed to the customer. - - name: avg_discount_per_order - description: Average discount per order attributed to the customer. - - name: lifetime_total_shipping - description: Total shipping costs attributed to the customer. - - name: avg_shipping_per_order - description: Average shipping cost per order attributed to the customer. - - name: lifetime_total_shipping_with_discounts - description: Total shipping costs after discounts attributed to the customer. - - name: avg_shipping_with_discounts_per_order - description: Average shipping costs after discounts per order attributed to the customer. - - name: lifetime_total_shipping_tax - description: Total shipping tax attributed to the customer. - - name: avg_shipping_tax_per_order - description: Average shipping tax per order attributed to the customer. - - name: marketing_consent_updated_at - description: Timestamp when marketing consent was updated. - - name: currency - description: The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders. - - name: marketing_consent_state - description: The current email marketing state for the customer. New version of `accepts_marketing` field. - - name: marketing_opt_in_level - description: Deprecated. The package will coalesce with `email_marketing_consent_opt_in_level`. - - name: note - description: A note about the customer. - - name: marketing_consent_updated_at - description: The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. - - name: marketing_opt_in_level - description: The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. - - name: marketing_consent_state - description: > - Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` - field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'. +# - name: shopify_gql__customer_emails +# description: Each record represents a customer email in Shopify. +# tests: +# - dbt_utils.unique_combination_of_columns: +# combination_of_columns: +# - email +# - source_relation +# columns: +# - name: last_fivetran_synced +# description: "{{ doc('_fivetran_synced') }}" +# - name: default_address_id +# description: The default address for the customer. +# - name: email +# description: The unique email address of the customer. +# - name: first_name +# description: The customer's first name. +# - name: customer_ids +# description: Comma-separated list of customer IDs associated with the email. +# - name: last_name +# description: The customer's last name. +# - name: lifetime_count_orders +# description: The number of orders associated with this customer. +# - name: phone_numbers +# description: Comma-separated list of phone numbers associated with this email. +# - name: account_state +# description: The state of the customer's account with a shop. +# - name: is_tax_exempt +# description: Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout. +# - name: last_updated_at +# description: The date and time when the customer information was last updated. +# - name: is_verified_email +# description: Whether the customer has verified their email address. +# - name: first_order_timestamp +# description: The timestamp the customer completed their first order. +# - name: most_recent_order_timestamp +# description: The timestamp the customer completed their most recent order. +# - name: avg_order_value +# description: The average order value for the customer. +# - name: lifetime_total_spent +# description: The total amount of money that the customer has spent on orders across their order history (in shop currency). +# - name: lifetime_total_refunded +# description: The total amount of money that the customer has been refunded on orders across their order history. +# - name: lifetime_total_net +# description: The total amount of money (minus refunds) that the customer has spent across their order history. +# - name: first_account_created_at +# description: Timestamp of when the first account associated with this email was created. +# - name: last_account_created_at +# description: Timestamp of when the last account associated with this email was created. +# - name: source_relation +# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. +# - name: lifetime_abandoned_checkouts +# description: Total number of abandoned checkouts abandoned by the customer. +# - name: customer_tags +# description: A string aggregated list of all tags associated with a customer. +# - name: avg_quantity_per_order +# description: Average quantity of items per order customer orders. +# - name: lifetime_total_tax +# description: Total amount of tax attributed to the customer. +# - name: avg_tax_per_order +# description: Average tax per order attributed to the customer. +# - name: lifetime_total_discount +# description: Total discounts attributed to the customer. +# - name: avg_discount_per_order +# description: Average discount per order attributed to the customer. +# - name: lifetime_total_shipping +# description: Total shipping costs attributed to the customer. +# - name: avg_shipping_per_order +# description: Average shipping cost per order attributed to the customer. +# - name: lifetime_total_shipping_with_discounts +# description: Total shipping costs after discounts attributed to the customer. +# - name: avg_shipping_with_discounts_per_order +# description: Average shipping costs after discounts per order attributed to the customer. +# - name: lifetime_total_shipping_tax +# description: Total shipping tax attributed to the customer. +# - name: avg_shipping_tax_per_order +# description: Average shipping tax per order attributed to the customer. +# - name: marketing_consent_updated_at +# description: Timestamp when marketing consent was updated. +# - name: currency +# description: The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders. +# - name: marketing_consent_state +# description: The current email marketing state for the customer. New version of `accepts_marketing` field. +# - name: marketing_opt_in_level +# description: Deprecated. The package will coalesce with `email_marketing_consent_opt_in_level`. +# - name: note +# description: A note about the customer. +# - name: marketing_consent_updated_at +# description: The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. +# - name: marketing_opt_in_level +# description: The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. +# - name: marketing_consent_state +# description: > +# Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` +# field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'. - - name: shopify_gql__products - description: Each record represents a product in Shopify. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - product_id - - source_relation - columns: - - name: is_deleted - description: Whether the record has been deleted in the source system. - - name: _fivetran_synced - description: "{{ doc('_fivetran_synced') }}" - - name: created_timestamp - description: The date and time when the product was created. - - name: handle - description: A unique human-friendly string for the product. Automatically generated from the product's title. - - name: product_id - description: An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops. - - name: product_type - description: A categorization for the product used for filtering and searching products. - - name: published_timestamp - description: The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel. - - name: published_scope - description: Whether the product is published to the Point of Sale channel. - - name: title - description: The name of the product. - - name: updated_timestamp - description: The date and time when the product was last modified. - - name: vendor - description: The name of the product's vendor. - - name: total_quantity_sold - description: Quantity of the product sold. - - name: subtotal_sold - description: Total amount (in shop currency) of the product sold. - - name: quantity_sold_net_refunds - description: Quantity of the product sold, excluding refunds. - - name: subtotal_sold_net_refunds - description: Total amount (in shop currency) of the product sold, excluding refunds. - - name: first_order_timestamp - description: The timestamp the product was first ordered. - - name: most_recent_order_timestamp - description: The timestamp the product was most recently ordered. - - name: source_relation - description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. - - name: avg_quantity_per_order_line - description: Average quantity per order line with this product. - - name: product_total_discount - description: Total discounts associated with the product. - - name: product_avg_discount_per_order_line - description: Average discount per order line with this product. - - name: product_total_tax - description: Total taxes associated with the product. - - name: product_avg_tax_per_order_line - description: Average taxes per order line with this product. - - name: count_variants - description: Count of product variants. - - name: has_product_media - description: If the product has media. - - name: status - description: > - The status of the product. Valid values: - - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft. - - name: collections - description: Comma-separated list of collections associated with the product. - - name: tags - description: Comma-separated list of tags associated with the product. +# - name: shopify_gql__products +# description: Each record represents a product in Shopify. +# tests: +# - dbt_utils.unique_combination_of_columns: +# combination_of_columns: +# - product_id +# - source_relation +# columns: +# - name: is_deleted +# description: Whether the record has been deleted in the source system. +# - name: _fivetran_synced +# description: "{{ doc('_fivetran_synced') }}" +# - name: created_timestamp +# description: The date and time when the product was created. +# - name: handle +# description: A unique human-friendly string for the product. Automatically generated from the product's title. +# - name: product_id +# description: An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops. +# - name: product_type +# description: A categorization for the product used for filtering and searching products. +# - name: published_timestamp +# description: The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel. +# - name: published_scope +# description: Whether the product is published to the Point of Sale channel. +# - name: title +# description: The name of the product. +# - name: updated_timestamp +# description: The date and time when the product was last modified. +# - name: vendor +# description: The name of the product's vendor. +# - name: total_quantity_sold +# description: Quantity of the product sold. +# - name: subtotal_sold +# description: Total amount (in shop currency) of the product sold. +# - name: quantity_sold_net_refunds +# description: Quantity of the product sold, excluding refunds. +# - name: subtotal_sold_net_refunds +# description: Total amount (in shop currency) of the product sold, excluding refunds. +# - name: first_order_timestamp +# description: The timestamp the product was first ordered. +# - name: most_recent_order_timestamp +# description: The timestamp the product was most recently ordered. +# - name: source_relation +# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. +# - name: avg_quantity_per_order_line +# description: Average quantity per order line with this product. +# - name: product_total_discount +# description: Total discounts associated with the product. +# - name: product_avg_discount_per_order_line +# description: Average discount per order line with this product. +# - name: product_total_tax +# description: Total taxes associated with the product. +# - name: product_avg_tax_per_order_line +# description: Average taxes per order line with this product. +# - name: count_variants +# description: Count of product variants. +# - name: has_product_media +# description: If the product has media. +# - name: status +# description: > +# The status of the product. Valid values: +# - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. +# - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. +# - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft. +# - name: collections +# description: Comma-separated list of collections associated with the product. +# - name: tags +# description: Comma-separated list of tags associated with the product. - - name: shopify_gql__order_lines - description: Each record represents a line item of an order in Shopify. - columns: - - name: order_lines_unique_key - description: Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'. - tests: - - unique - - not_null - - name: _fivetran_synced - description: "{{ doc('_fivetran_synced') }}" - - name: fulfillable_quantity - description: > - The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity - - name: fulfillment_status - description: How far along an order is in terms line items fulfilled. - - name: is_gift_card - description: Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges. - - name: grams - description: The weight of the item in grams. - - name: order_line_id - description: The ID of the line item. - - name: name - description: The name of the product variant. - - name: order_id - description: The ID of the related order. - - name: price - description: The price of the item before discounts have been applied in the shop currency. - - name: product_id - description: The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date. - - name: quantity - description: The number of items that were purchased. - - name: is_shipping_required - description: Whether the item requires shipping. - - name: sku - description: The item's SKU (stock keeping unit). - - name: is_taxable - description: Whether the item was taxable. - - name: title - description: The title of the product. - - name: total_discount - description: The total amount of the discount allocated to the line item in the shop currency. - - name: variant_id - description: The ID of the product variant. - - name: vendor - description: The name of the item's supplier. - - name: refunded_quantity - description: Quantity of the item that has been refunded. - - name: quantity_net_refunds - description: Quantity ordered, excluding refunds. - - name: variant_barcode - description: The barcode, UPC, or ISBN number for the product. - - name: variant_compare_at_price - description: The original price of the item before an adjustment or a sale in shop currency. - - name: variant_created_at - description: The date and time (ISO 8601 format) when the product variant was created. - - name: variant_fulfillment_service - description: (DEPRECATED 2025-01-06) The fulfillment service associated with the product variant. - - name: variant_grams - description: (DEPRECATED 2025-01-06) The weight of the product variant in grams. - - name: inventory_item_id - description: The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information. - - name: media_id - description: The unique numeric identifier for a product variant's media. - - name: variant_inventory_management - description: (DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant. - - name: variant_inventory_policy - description: Whether customers are allowed to place an order for the product variant when it's out of stock. - - name: variant_inventory_quantity - description: An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource. - - name: variant_option_1 - description: > - (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. - - name: variant_option_2 - description: > - (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. - - name: variant_option_3 - description: > - (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. - - name: variant_position - description: The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed. - - name: variant_price - description: The price of the product variant. - - name: variant_sku - description: A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService. - - name: variant_is_taxable - description: Whether a tax is charged when the product variant is sold. - - name: variant_tax_code - description: This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant. - - name: variant_title - description: The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields. - - name: variant_updated_at - description: The date and time when the product variant was last modified. Gets returned in ISO 8601 format. - - name: variant_weight - description: (DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit. - - name: variant_weight_unit - description: > - (DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb. - - name: variant_is_available_for_sale - description: Indicates whether the product variant is available for sale. - - name: variant_display_name - description: The display name of the variant, based on the product's title and variant's title. - - name: variant_legacy_resource_id - description: The ID of the corresponding resource in the REST Admin API. - - name: variant_has_components_required - description: Indicates whether a product variant requires components. - - name: variant_sellable_online_quantity - description: The total sellable quantity of the variant for online channels. - - name: refunded_subtotal - description: Subtotal amount of the refund applied to the order line in shop currency. - - name: subtotal_net_refunds - description: Subtotal of the order line with refunds subtracted in shop currency. - - name: source_relation - description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. - - name: restock_types - description: List of how this refund line item affects inventory levels. - - name: order_line_tax - description: Total taxes for the line item. - - name: index - description: The index associated with the order. - - name: pre_tax_price - description: The total pre tax price of the order. - - name: tax_code - description: This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant. - - name: pre_tax_price_set - description: The pre tax price of the line item in shop currency and presentment currency. - - name: price_set - description: The price of the line item in shop and presentment currencies. - - name: total_discount_set - description: The total amount allocated to the line item in the presentment currency. - - name: properties - description: Line item properties. +# - name: shopify_gql__order_lines +# description: Each record represents a line item of an order in Shopify. +# columns: +# - name: order_lines_unique_key +# description: Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'. +# tests: +# - unique +# - not_null +# - name: _fivetran_synced +# description: "{{ doc('_fivetran_synced') }}" +# - name: fulfillable_quantity +# description: > +# The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity +# - name: fulfillment_status +# description: How far along an order is in terms line items fulfilled. +# - name: is_gift_card +# description: Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges. +# - name: grams +# description: The weight of the item in grams. +# - name: order_line_id +# description: The ID of the line item. +# - name: name +# description: The name of the product variant. +# - name: order_id +# description: The ID of the related order. +# - name: price +# description: The price of the item before discounts have been applied in the shop currency. +# - name: product_id +# description: The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date. +# - name: quantity +# description: The number of items that were purchased. +# - name: is_shipping_required +# description: Whether the item requires shipping. +# - name: sku +# description: The item's SKU (stock keeping unit). +# - name: is_taxable +# description: Whether the item was taxable. +# - name: title +# description: The title of the product. +# - name: total_discount +# description: The total amount of the discount allocated to the line item in the shop currency. +# - name: variant_id +# description: The ID of the product variant. +# - name: vendor +# description: The name of the item's supplier. +# - name: refunded_quantity +# description: Quantity of the item that has been refunded. +# - name: quantity_net_refunds +# description: Quantity ordered, excluding refunds. +# - name: variant_barcode +# description: The barcode, UPC, or ISBN number for the product. +# - name: variant_compare_at_price +# description: The original price of the item before an adjustment or a sale in shop currency. +# - name: variant_created_at +# description: The date and time (ISO 8601 format) when the product variant was created. +# - name: variant_fulfillment_service +# description: (DEPRECATED 2025-01-06) The fulfillment service associated with the product variant. +# - name: variant_grams +# description: (DEPRECATED 2025-01-06) The weight of the product variant in grams. +# - name: inventory_item_id +# description: The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information. +# - name: media_id +# description: The unique numeric identifier for a product variant's media. +# - name: variant_inventory_management +# description: (DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant. +# - name: variant_inventory_policy +# description: Whether customers are allowed to place an order for the product variant when it's out of stock. +# - name: variant_inventory_quantity +# description: An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource. +# - name: variant_option_1 +# description: > +# (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. +# - name: variant_option_2 +# description: > +# (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. +# - name: variant_option_3 +# description: > +# (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. +# - name: variant_position +# description: The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed. +# - name: variant_price +# description: The price of the product variant. +# - name: variant_sku +# description: A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService. +# - name: variant_is_taxable +# description: Whether a tax is charged when the product variant is sold. +# - name: variant_tax_code +# description: This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant. +# - name: variant_title +# description: The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields. +# - name: variant_updated_at +# description: The date and time when the product variant was last modified. Gets returned in ISO 8601 format. +# - name: variant_weight +# description: (DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit. +# - name: variant_weight_unit +# description: > +# (DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb. +# - name: variant_is_available_for_sale +# description: Indicates whether the product variant is available for sale. +# - name: variant_display_name +# description: The display name of the variant, based on the product's title and variant's title. +# - name: variant_legacy_resource_id +# description: The ID of the corresponding resource in the REST Admin API. +# - name: variant_has_components_required +# description: Indicates whether a product variant requires components. +# - name: variant_sellable_online_quantity +# description: The total sellable quantity of the variant for online channels. +# - name: refunded_subtotal +# description: Subtotal amount of the refund applied to the order line in shop currency. +# - name: subtotal_net_refunds +# description: Subtotal of the order line with refunds subtracted in shop currency. +# - name: source_relation +# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. +# - name: restock_types +# description: List of how this refund line item affects inventory levels. +# - name: order_line_tax +# description: Total taxes for the line item. +# - name: index +# description: The index associated with the order. +# - name: pre_tax_price +# description: The total pre tax price of the order. +# - name: tax_code +# description: This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant. +# - name: pre_tax_price_set +# description: The pre tax price of the line item in shop currency and presentment currency. +# - name: price_set +# description: The price of the line item in shop and presentment currencies. +# - name: total_discount_set +# description: The total amount allocated to the line item in the presentment currency. +# - name: properties +# description: Line item properties. - - name: shopify_gql__transactions - description: Each record represents a transaction in Shopify. - columns: - - name: transactions_unique_id - description: Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'. - tests: - - unique - - not_null - - name: transaction_id - description: The ID for the transaction. - - name: order_id - description: The ID for the order that the transaction is associated with. - - name: refund_id - description: The ID associated with a refund in the refund table. - - name: amount - description: The amount of money included in the transaction in shop currency. - - name: created_timestamp - description: The date and time when the transaction was created. - - name: processed_timestamp - description: The date and time when a transaction was processed. - - name: device_id - description: The ID for the device. - - name: gateway - description: The name of the gateway the transaction was issued through. - - name: source_name - description: The origin of the transaction. - - name: message - description: A string generated by the payment provider with additional information about why the transaction succeeded or failed. - - name: currency - description: The three-letter code (ISO 4217 format) for the currency used for the payment. - - name: location_id - description: The ID of the physical location where the transaction was processed. - - name: parent_id - description: The ID of an associated transaction. - - name: payment_avs_result_code - description: The response code from the address verification system. - - name: payment_credit_card_bin - description: The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card. - - name: payment_cvv_result_code - description: The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly. - - name: payment_credit_card_number - description: The customer's credit card number, with most of the leading digits redacted. - - name: payment_credit_card_company - description: The name of the company that issued the customer's credit card. - - name: kind - description: The transaction's type. - - name: receipt - description: A transaction receipt attached to the transaction by the gateway. - - name: currency_exchange_id - description: The ID of the adjustment. - - name: currency_exchange_adjustment - description: The difference between the amounts on the associated transaction and the parent transaction. - - name: currency_exchange_original_amount - description: The amount of the parent transaction in the shop currency. - - name: currency_exchange_final_amount - description: The amount of the associated transaction in the shop currency. - - name: currency_exchange_currency - description: The shop currency. - - name: error_code - description: A standardized error code, independent of the payment provider. - - name: status - description: The status of the transaction. - - name: user_id - description: The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable. - - name: _fivetran_synced - description: Timestamp of the date the record was synced by Fivetran. - - name: exchange_rate - description: The exchange rate between the home currency and the currency of sale at the time of the transaction. - - name: currency_exchange_calculated_amount - description: The total amount of the transaction with the currency exchange rate applied. - - name: source_relation - description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. - - name: payment_method - description: Method of payment. - - name: parent_created_timestamp - description: Created on timestamp of the parent transaction. - - name: parent_kind - description: Kind of the parent transaction. - - name: parent_amount - description: Amount of the parent transaction. - - name: parent_status - description: Status of the parent transaction. - - name: authorization_expires_at - description: Timestamp when the authorization expires. - - name: authorization_code - description: The authorization code associated with the transaction. +# - name: shopify_gql__transactions +# description: Each record represents a transaction in Shopify. +# columns: +# - name: transactions_unique_id +# description: Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'. +# tests: +# - unique +# - not_null +# - name: transaction_id +# description: The ID for the transaction. +# - name: order_id +# description: The ID for the order that the transaction is associated with. +# - name: refund_id +# description: The ID associated with a refund in the refund table. +# - name: amount +# description: The amount of money included in the transaction in shop currency. +# - name: created_timestamp +# description: The date and time when the transaction was created. +# - name: processed_timestamp +# description: The date and time when a transaction was processed. +# - name: device_id +# description: The ID for the device. +# - name: gateway +# description: The name of the gateway the transaction was issued through. +# - name: source_name +# description: The origin of the transaction. +# - name: message +# description: A string generated by the payment provider with additional information about why the transaction succeeded or failed. +# - name: currency +# description: The three-letter code (ISO 4217 format) for the currency used for the payment. +# - name: location_id +# description: The ID of the physical location where the transaction was processed. +# - name: parent_id +# description: The ID of an associated transaction. +# - name: payment_avs_result_code +# description: The response code from the address verification system. +# - name: payment_credit_card_bin +# description: The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card. +# - name: payment_cvv_result_code +# description: The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly. +# - name: payment_credit_card_number +# description: The customer's credit card number, with most of the leading digits redacted. +# - name: payment_credit_card_company +# description: The name of the company that issued the customer's credit card. +# - name: kind +# description: The transaction's type. +# - name: receipt +# description: A transaction receipt attached to the transaction by the gateway. +# - name: currency_exchange_id +# description: The ID of the adjustment. +# - name: currency_exchange_adjustment +# description: The difference between the amounts on the associated transaction and the parent transaction. +# - name: currency_exchange_original_amount +# description: The amount of the parent transaction in the shop currency. +# - name: currency_exchange_final_amount +# description: The amount of the associated transaction in the shop currency. +# - name: currency_exchange_currency +# description: The shop currency. +# - name: error_code +# description: A standardized error code, independent of the payment provider. +# - name: status +# description: The status of the transaction. +# - name: user_id +# description: The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable. +# - name: _fivetran_synced +# description: Timestamp of the date the record was synced by Fivetran. +# - name: exchange_rate +# description: The exchange rate between the home currency and the currency of sale at the time of the transaction. +# - name: currency_exchange_calculated_amount +# description: The total amount of the transaction with the currency exchange rate applied. +# - name: source_relation +# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. +# - name: payment_method +# description: Method of payment. +# - name: parent_created_timestamp +# description: Created on timestamp of the parent transaction. +# - name: parent_kind +# description: Kind of the parent transaction. +# - name: parent_amount +# description: Amount of the parent transaction. +# - name: parent_status +# description: Status of the parent transaction. +# - name: authorization_expires_at +# description: Timestamp when the authorization expires. +# - name: authorization_code +# description: The authorization code associated with the transaction. - - name: shopify_gql__inventory_levels - description: > - Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of - inventory items (which have a 1:1 relationship with product variants) and locations. +# - name: shopify_gql__inventory_levels +# description: > +# Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of +# inventory items (which have a 1:1 relationship with product variants) and locations. - Inventory Level = Inventory item @ a Location. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - inventory_item_id - - location_id - - source_relation - columns: - - name: _fivetran_synced - description: "{{ doc('_fivetran_synced') }}" - - name: inventory_item_id - description: The ID of the inventory item associated with the inventory level. - tests: - - not_null - - name: location_id - description: The ID of the location that the inventory level belongs to. - tests: - - not_null - - name: updated_at - description: The date and time (ISO 8601 format) when the inventory level was last modified. - - name: is_inventory_item_deleted - description: "{{ doc('_fivetran_deleted') }}" - - name: sku - description: The unique SKU (stock keeping unit) of the inventory item. - - name: province_code_of_origin - description: The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post. - - name: duplicate_sku_count - description: The number of inventory items that share the same SKU with this item. - - name: harmonized_system_code - description: The harmonized system code of the item. - - name: inventory_history_url - description: The URL that points to the inventory history for the item. - - name: legacy_resource_id - description: The ID of the corresponding resource in the REST Admin API. - - name: measurement_id - description: The unique identifier for the inventory item's measurement. - - name: measurement_weight_value - description: The weight value of the inventory item's measurement. - - name: measurement_weight_unit - description: The unit of measurement for the inventory item's weight. - - name: is_tracked_editable_locked - description: Indicates whether the 'tracked' field for the inventory item is locked from editing. - - name: tracked_editable_reason - description: Provides the reason why the 'tracked' field for the inventory item is locked from editing. - - name: unit_cost_amount - description: The unit cost associated with the inventory item. - - name: unit_cost_currency_code - description: Currency of the unit cost associated with the inventory item. - - name: country_code_of_origin - description: The country code (ISO 3166-1 alpha-2) of where the item came from. - - name: is_shipping_required - description: (DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item. - - name: is_inventory_quantity_tracked - description: Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify. - - name: can_deactivate - description: Indicates whether the inventory item can be deactivated at the location. - - name: deactivation_alert - description: Provides an alert message when the inventory item is deactivated at the location. - - name: created_at - description: The date and time when the inventory level was created. - - name: inventory_item_created_at - description: The date and time (ISO 8601 format) when the inventory item was created. - - name: inventory_item_updated_at - description: The date and time (ISO 8601 format) when the inventory item was last modified. - - name: is_location_deleted - description: "{{ doc('_fivetran_deleted') }}" - - name: is_location_active - description: > - Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders. - - name: address_1 - description: The location's street address. - - name: address_2 - description: The optional second line of the location's street address. - - name: city - description: The city the location is in. - - name: country - description: The country the location is in (two-letter code). - - name: country_code - description: The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in. - - name: location_created_at - description: The date and time (ISO 8601 format) when the location was created. - - name: is_legacy_location - description: > - Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. - If false, then the location was created by the merchant and isn't tied to a fulfillment service. - - name: location_name - description: The name of the location. - - name: phone - description: The phone number of the location. This value can contain special characters, such as - or +. - - name: province - description: The province, state, or district of the location. - - name: province_code - description: The province, state, or district code (ISO 3166-2 alpha-2 format) of the location. - - name: location_updated_at - description: The date and time (ISO 8601 format) when the location was last updated. - - name: zip - description: The zip or postal code. - - name: variant_barcode - description: The barcode, UPC, or ISBN number for the product. - - name: variant_created_at - description: The date and time (ISO 8601 format) when the product variant was created. - - name: variant_fulfillment_service - description: (DEPRECATED 2025-01-06) The fulfillment service associated with the product variant. - - name: variant_grams - description: (DEPRECATED 2025-01-06) The weight of the product variant in grams. - - name: variant_id - description: The unique numeric identifier for the product variant. - - name: variant_inventory_management - description: (DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant. - - name: variant_inventory_policy - description: Whether customers are allowed to place an order for the product variant when it's out of stock. - - name: variant_inventory_quantity - description: An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource. - - name: variant_option_1 - description: > - (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. - - name: variant_option_2 - description: > - (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. - - name: variant_option_3 - description: > - (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. - - name: variant_price - description: The price of the product variant in shop currency. - - name: variant_media_id - description: The unique numeric identifier for a product variant's media. - - name: product_id - description: The unique numeric identifier for the product. - - name: is_variant_taxable - description: Whether a tax is charged when the product variant is sold. - - name: variant_tax_code - description: This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant. - - name: variant_title - description: The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields. - - name: variant_updated_at - description: The date and time when the product variant was last modified. Gets returned in ISO 8601 format. - - name: variant_weight - description: (DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit. - - name: variant_weight_unit - description: > - (DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb. - - name: variant_is_available_for_sale - description: Indicates whether the product variant is available for sale. - - name: variant_display_name - description: The display name of the variant, based on the product's title and variant's title. - - name: variant_legacy_resource_id - description: The ID of the corresponding resource in the REST Admin API. - - name: variant_has_components_required - description: Indicates whether a product variant requires components. - - name: variant_sellable_online_quantity - description: The total sellable quantity of the variant for online channels. - - name: subtotal_sold - description: Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds. - - name: quantity_sold - description: Total quantity sold from the inventory level. Includes refunds. - - name: count_distinct_orders - description: The number of distinct orders placed from this inventory level. - - name: count_distinct_customers - description: The number of distinct customers (based on customer_id) that have placed orders against this inventory level. - - name: count_distinct_customer_emails - description: The number of distinct customer emails that have placed orders against this inventory level. - - name: first_order_timestamp - description: The timetamp of the first order against this inventory level. - - name: last_order_timestamp - description: The timestamp of the first order against this inventory level. - - name: subtotal_sold_refunds - description: The monetary amount (in shop currency) of inventory level goods that have been refunded. - - name: quantity_sold_refunds - description: The quantity of inventory level goods that have been refunded. - - name: net_subtotal_sold - description: Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds. - - name: net_quantity_sold - description: Net quantity sold from this inventory level. Excludes refunds. - - name: count_fulfillment_pending - description: > - Count of currently pending distinct fulfillments for this inventory level. - "Pending" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - - name: count_fulfillment_open - description: > - Count of currently open distinct fulfillments for this inventory level. - "Open" = The fulfillment has been acknowledged by the service and is in processing. - - name: count_fulfillment_success - description: > - Count of successful distinct fulfillments for this inventory level. - "Success" = The fulfillment was successful. - - name: count_fulfillment_cancelled - description: > - Count of cancelled distinct fulfillments for this inventory level. - "Cancelled" = The fulfillment was cancelled. - - name: count_fulfillment_error - description: > - Count of distinct fulfillments for this inventory level that encountered an error. - "Error" = There was an error with the fulfillment request. - - name: count_fulfillment_failure - description: > - Count of distinct fulfillments for this inventory level that failed. - "Failure" = The fulfillment request failed. - - name: source_relation - description: "{{ doc('source_relation') }}" - - name: available_quantity - description: > - The available quantity that a merchant can sell, determined by coalescing the `quantity` where - inventory_state_name = 'available' from `stg_shopify_gql__inventory_quantity`and `available_quantity` - from the deprecated `stg_shopify_gql__inventory_level`. Returns null if the inventory item is not tracked. - - name: incoming_quantity - description: The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked. - - name: on_hand_quantity - description: > - The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that - are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. - Returns null if the inventory item is not tracked. - - name: committed_quantity - description: The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked. - - name: reserved_quantity - description: The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked. - - name: damaged_quantity - description: The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked. - - name: safety_stock_quantity - description: The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked. - - name: quality_control_quantity - description: The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked. +# Inventory Level = Inventory item @ a Location. +# tests: +# - dbt_utils.unique_combination_of_columns: +# combination_of_columns: +# - inventory_item_id +# - location_id +# - source_relation +# columns: +# - name: _fivetran_synced +# description: "{{ doc('_fivetran_synced') }}" +# - name: inventory_item_id +# description: The ID of the inventory item associated with the inventory level. +# tests: +# - not_null +# - name: location_id +# description: The ID of the location that the inventory level belongs to. +# tests: +# - not_null +# - name: updated_at +# description: The date and time (ISO 8601 format) when the inventory level was last modified. +# - name: is_inventory_item_deleted +# description: "{{ doc('_fivetran_deleted') }}" +# - name: sku +# description: The unique SKU (stock keeping unit) of the inventory item. +# - name: province_code_of_origin +# description: The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post. +# - name: duplicate_sku_count +# description: The number of inventory items that share the same SKU with this item. +# - name: harmonized_system_code +# description: The harmonized system code of the item. +# - name: inventory_history_url +# description: The URL that points to the inventory history for the item. +# - name: legacy_resource_id +# description: The ID of the corresponding resource in the REST Admin API. +# - name: measurement_id +# description: The unique identifier for the inventory item's measurement. +# - name: measurement_weight_value +# description: The weight value of the inventory item's measurement. +# - name: measurement_weight_unit +# description: The unit of measurement for the inventory item's weight. +# - name: is_tracked_editable_locked +# description: Indicates whether the 'tracked' field for the inventory item is locked from editing. +# - name: tracked_editable_reason +# description: Provides the reason why the 'tracked' field for the inventory item is locked from editing. +# - name: unit_cost_amount +# description: The unit cost associated with the inventory item. +# - name: unit_cost_currency_code +# description: Currency of the unit cost associated with the inventory item. +# - name: country_code_of_origin +# description: The country code (ISO 3166-1 alpha-2) of where the item came from. +# - name: is_shipping_required +# description: (DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item. +# - name: is_inventory_quantity_tracked +# description: Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify. +# - name: can_deactivate +# description: Indicates whether the inventory item can be deactivated at the location. +# - name: deactivation_alert +# description: Provides an alert message when the inventory item is deactivated at the location. +# - name: created_at +# description: The date and time when the inventory level was created. +# - name: inventory_item_created_at +# description: The date and time (ISO 8601 format) when the inventory item was created. +# - name: inventory_item_updated_at +# description: The date and time (ISO 8601 format) when the inventory item was last modified. +# - name: is_location_deleted +# description: "{{ doc('_fivetran_deleted') }}" +# - name: is_location_active +# description: > +# Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders. +# - name: address_1 +# description: The location's street address. +# - name: address_2 +# description: The optional second line of the location's street address. +# - name: city +# description: The city the location is in. +# - name: country +# description: The country the location is in (two-letter code). +# - name: country_code +# description: The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in. +# - name: location_created_at +# description: The date and time (ISO 8601 format) when the location was created. +# - name: is_legacy_location +# description: > +# Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. +# If false, then the location was created by the merchant and isn't tied to a fulfillment service. +# - name: location_name +# description: The name of the location. +# - name: phone +# description: The phone number of the location. This value can contain special characters, such as - or +. +# - name: province +# description: The province, state, or district of the location. +# - name: province_code +# description: The province, state, or district code (ISO 3166-2 alpha-2 format) of the location. +# - name: location_updated_at +# description: The date and time (ISO 8601 format) when the location was last updated. +# - name: zip +# description: The zip or postal code. +# - name: variant_barcode +# description: The barcode, UPC, or ISBN number for the product. +# - name: variant_created_at +# description: The date and time (ISO 8601 format) when the product variant was created. +# - name: variant_fulfillment_service +# description: (DEPRECATED 2025-01-06) The fulfillment service associated with the product variant. +# - name: variant_grams +# description: (DEPRECATED 2025-01-06) The weight of the product variant in grams. +# - name: variant_id +# description: The unique numeric identifier for the product variant. +# - name: variant_inventory_management +# description: (DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant. +# - name: variant_inventory_policy +# description: Whether customers are allowed to place an order for the product variant when it's out of stock. +# - name: variant_inventory_quantity +# description: An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource. +# - name: variant_option_1 +# description: > +# (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. +# - name: variant_option_2 +# description: > +# (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. +# - name: variant_option_3 +# description: > +# (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. +# - name: variant_price +# description: The price of the product variant in shop currency. +# - name: variant_media_id +# description: The unique numeric identifier for a product variant's media. +# - name: product_id +# description: The unique numeric identifier for the product. +# - name: is_variant_taxable +# description: Whether a tax is charged when the product variant is sold. +# - name: variant_tax_code +# description: This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant. +# - name: variant_title +# description: The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields. +# - name: variant_updated_at +# description: The date and time when the product variant was last modified. Gets returned in ISO 8601 format. +# - name: variant_weight +# description: (DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit. +# - name: variant_weight_unit +# description: > +# (DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb. +# - name: variant_is_available_for_sale +# description: Indicates whether the product variant is available for sale. +# - name: variant_display_name +# description: The display name of the variant, based on the product's title and variant's title. +# - name: variant_legacy_resource_id +# description: The ID of the corresponding resource in the REST Admin API. +# - name: variant_has_components_required +# description: Indicates whether a product variant requires components. +# - name: variant_sellable_online_quantity +# description: The total sellable quantity of the variant for online channels. +# - name: subtotal_sold +# description: Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds. +# - name: quantity_sold +# description: Total quantity sold from the inventory level. Includes refunds. +# - name: count_distinct_orders +# description: The number of distinct orders placed from this inventory level. +# - name: count_distinct_customers +# description: The number of distinct customers (based on customer_id) that have placed orders against this inventory level. +# - name: count_distinct_customer_emails +# description: The number of distinct customer emails that have placed orders against this inventory level. +# - name: first_order_timestamp +# description: The timetamp of the first order against this inventory level. +# - name: last_order_timestamp +# description: The timestamp of the first order against this inventory level. +# - name: subtotal_sold_refunds +# description: The monetary amount (in shop currency) of inventory level goods that have been refunded. +# - name: quantity_sold_refunds +# description: The quantity of inventory level goods that have been refunded. +# - name: net_subtotal_sold +# description: Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds. +# - name: net_quantity_sold +# description: Net quantity sold from this inventory level. Excludes refunds. +# - name: count_fulfillment_pending +# description: > +# Count of currently pending distinct fulfillments for this inventory level. +# "Pending" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. +# - name: count_fulfillment_open +# description: > +# Count of currently open distinct fulfillments for this inventory level. +# "Open" = The fulfillment has been acknowledged by the service and is in processing. +# - name: count_fulfillment_success +# description: > +# Count of successful distinct fulfillments for this inventory level. +# "Success" = The fulfillment was successful. +# - name: count_fulfillment_cancelled +# description: > +# Count of cancelled distinct fulfillments for this inventory level. +# "Cancelled" = The fulfillment was cancelled. +# - name: count_fulfillment_error +# description: > +# Count of distinct fulfillments for this inventory level that encountered an error. +# "Error" = There was an error with the fulfillment request. +# - name: count_fulfillment_failure +# description: > +# Count of distinct fulfillments for this inventory level that failed. +# "Failure" = The fulfillment request failed. +# - name: source_relation +# description: "{{ doc('source_relation') }}" +# - name: available_quantity +# description: > +# The available quantity that a merchant can sell, determined by coalescing the `quantity` where +# inventory_state_name = 'available' from `stg_shopify_gql__inventory_quantity`and `available_quantity` +# from the deprecated `stg_shopify_gql__inventory_level`. Returns null if the inventory item is not tracked. +# - name: incoming_quantity +# description: The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked. +# - name: on_hand_quantity +# description: > +# The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that +# are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. +# Returns null if the inventory item is not tracked. +# - name: committed_quantity +# description: The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked. +# - name: reserved_quantity +# description: The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked. +# - name: damaged_quantity +# description: The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked. +# - name: safety_stock_quantity +# description: The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked. +# - name: quality_control_quantity +# description: The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked. - - name: shopify_gql__discounts - description: > - Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - code - - source_relation - config: - severity: warn # best practice for codes to be unique - columns: - - name: discounts_unique_key - description: Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'. - tests: - - unique - - not_null - - name: _fivetran_synced - description: "{{ doc('_fivetran_synced') }}" - - name: code - description: The case-insensitive discount code that customers use at checkout. - - name: discount_code_id - description: The ID for the discount code. - tests: - - not_null - - name: discount_type - description: The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app'). - - name: applies_once_per_customer - description: Whether the discount can be used only once per customer. - - name: usage_count - description: Number of times the discount has been used (asynchronously updated). - - name: codes_count - description: Number of unique redeem codes associated with the discount. - - name: codes_precision - description: Indicates whether `codes_count` is exact or estimated. - - name: combines_with_order_discounts - description: Whether this discount can be combined with order-level discounts. - - name: combines_with_product_discounts - description: Whether this discount can be combined with product-level discounts. - - name: combines_with_shipping_discounts - description: Whether this discount can be combined with shipping-level discounts. - - name: created_at - description: Timestamp when the discount was created. - - name: customer_selection_all_customers - description: Whether the discount is available to all customers. - - name: ends_at - description: Timestamp when the discount ends or expires. - - name: starts_at - description: Timestamp when the discount becomes active. - - name: status - description: Current status of the discount (e.g. 'active', 'expired', 'scheduled'). - - name: title - description: The discount’s display name in the Shopify admin and to customers. - - name: total_sales_amount - description: The total sales amount that resulted from the usage of this discount. - - name: total_sales_currency_code - description: The currency code associated with `total_sales_amount`. - - name: updated_at - description: Timestamp when the discount was last updated. - - name: usage_limit - description: The total number of times the discount code can be used. - - name: allocation_method - description: > - The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items). - - name: description - description: A description of the discount, often corresponding to the rule or promotion name. - - name: target_selection - description: Indicates whether the discount applies to 'all' or 'entitled' items. - - name: target_type - description: The type of target this discount applies to (e.g., `line_item` or `shipping_line`). - - name: application_type - description: The type of discount (e.g., `manual`, `script`, or `automatic`). - - name: value - description: Numeric value of the discount (e.g., percentage or fixed amount). - - name: value_type - description: How the discount value is interpreted (e.g., 'percentage', 'fixed_amount'). - - name: total_order_discount_amount - description: Total monetary amount (in shop currency) of discounts taken off of orders. - - name: total_abandoned_checkout_discount_amount - description: Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders. - - name: total_order_line_items_price - description: Total monetary amount (in shop currency) of line items for orders that have used this discount. - - name: total_order_shipping_cost - description: Total shipping costs for orders that used this discount. - - name: total_abandoned_checkout_shipping_price - description: Total projected shipping costs for abandoned checkouts that applied this discount first. - - name: total_order_refund_amount - description: Total refunded amount (in shop currency) for orders that used this discount code. - - name: count_customers - description: Count of distinct customers who placed orders using this discount. - - name: count_customer_emails - description: Count of distinct customer emails who placed orders using this discount. - - name: avg_order_discount_amount - description: Average amount (in shop currency) of discount taken off orders. - - name: source_relation - description: "{{ doc('source_relation') }}" - - name: count_orders - description: Count of orders in which this discount code was applied. - - name: count_abandoned_checkouts - description: Count of abandoned checkouts in which this discount code was applied. - - name: count_abandoned_checkout_customers - description: Distinct count of customers who applied this discount in a checkout that they abandoned. - - name: count_abandoned_checkout_customer_emails - description: Distinct count of customer emails who applied this discount in a checkout that they abandoned. +# - name: shopify_gql__discounts +# description: > +# Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts. +# tests: +# - dbt_utils.unique_combination_of_columns: +# combination_of_columns: +# - code +# - source_relation +# config: +# severity: warn # best practice for codes to be unique +# columns: +# - name: discounts_unique_key +# description: Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'. +# tests: +# - unique +# - not_null +# - name: _fivetran_synced +# description: "{{ doc('_fivetran_synced') }}" +# - name: code +# description: The case-insensitive discount code that customers use at checkout. +# - name: discount_code_id +# description: The ID for the discount code. +# tests: +# - not_null +# - name: discount_type +# description: The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app'). +# - name: applies_once_per_customer +# description: Whether the discount can be used only once per customer. +# - name: usage_count +# description: Number of times the discount has been used (asynchronously updated). +# - name: codes_count +# description: Number of unique redeem codes associated with the discount. +# - name: codes_precision +# description: Indicates whether `codes_count` is exact or estimated. +# - name: combines_with_order_discounts +# description: Whether this discount can be combined with order-level discounts. +# - name: combines_with_product_discounts +# description: Whether this discount can be combined with product-level discounts. +# - name: combines_with_shipping_discounts +# description: Whether this discount can be combined with shipping-level discounts. +# - name: created_at +# description: Timestamp when the discount was created. +# - name: customer_selection_all_customers +# description: Whether the discount is available to all customers. +# - name: ends_at +# description: Timestamp when the discount ends or expires. +# - name: starts_at +# description: Timestamp when the discount becomes active. +# - name: status +# description: Current status of the discount (e.g. 'active', 'expired', 'scheduled'). +# - name: title +# description: The discount’s display name in the Shopify admin and to customers. +# - name: total_sales_amount +# description: The total sales amount that resulted from the usage of this discount. +# - name: total_sales_currency_code +# description: The currency code associated with `total_sales_amount`. +# - name: updated_at +# description: Timestamp when the discount was last updated. +# - name: usage_limit +# description: The total number of times the discount code can be used. +# - name: allocation_method +# description: > +# The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items). +# - name: description +# description: A description of the discount, often corresponding to the rule or promotion name. +# - name: target_selection +# description: Indicates whether the discount applies to 'all' or 'entitled' items. +# - name: target_type +# description: The type of target this discount applies to (e.g., `line_item` or `shipping_line`). +# - name: application_type +# description: The type of discount (e.g., `manual`, `script`, or `automatic`). +# - name: value +# description: Numeric value of the discount (e.g., percentage or fixed amount). +# - name: value_type +# description: How the discount value is interpreted (e.g., 'percentage', 'fixed_amount'). +# - name: total_order_discount_amount +# description: Total monetary amount (in shop currency) of discounts taken off of orders. +# - name: total_abandoned_checkout_discount_amount +# description: Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders. +# - name: total_order_line_items_price +# description: Total monetary amount (in shop currency) of line items for orders that have used this discount. +# - name: total_order_shipping_cost +# description: Total shipping costs for orders that used this discount. +# - name: total_abandoned_checkout_shipping_price +# description: Total projected shipping costs for abandoned checkouts that applied this discount first. +# - name: total_order_refund_amount +# description: Total refunded amount (in shop currency) for orders that used this discount code. +# - name: count_customers +# description: Count of distinct customers who placed orders using this discount. +# - name: count_customer_emails +# description: Count of distinct customer emails who placed orders using this discount. +# - name: avg_order_discount_amount +# description: Average amount (in shop currency) of discount taken off orders. +# - name: source_relation +# description: "{{ doc('source_relation') }}" +# - name: count_orders +# description: Count of orders in which this discount code was applied. +# - name: count_abandoned_checkouts +# description: Count of abandoned checkouts in which this discount code was applied. +# - name: count_abandoned_checkout_customers +# description: Distinct count of customers who applied this discount in a checkout that they abandoned. +# - name: count_abandoned_checkout_customer_emails +# description: Distinct count of customer emails who applied this discount in a checkout that they abandoned. - - name: shopify_gql__daily_shop - description: > - Each record represents a day in your Shop, enriched with a suite of metrics. - columns: - - name: date_day - description: Day for which the shop activity is being measured. - - name: shop_id - description: The ID for the shop. A 64-bit unsigned integer. - tests: - - not_null - - name: name - description: The name of the shop. - - name: domain - description: The shop's domain. - - name: is_deleted - description: "{{ doc('_fivetran_deleted') }}" - - name: currency - description: The three-letter code (ISO 4217 format) for the shop's default currency. - - name: enabled_presentment_currencies - description: An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin. - - name: iana_timezone - description: The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones). - - name: created_at - description: The date and time (ISO 8601) when the shop was created. - - name: count_orders - description: Count of the distinct orders placed on this day. - - name: count_line_items - description: Count of the line items included in orders placed on this day. - - name: count_customers - description: Count of distinct customers who placed an order on this day. - - name: count_customer_emails - description: Count of distinct customer email addresses who placed an order on this day. - - name: order_adjusted_total - description: > - Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: - total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax - The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange). - - name: avg_order_value - description: Average adjusted total per order placed on this day (in shop currency). - - name: shipping_cost - description: The shipping cost of the orders placed on this day (in shop currency). - - name: order_adjustment_amount - description: Total adjustment amount (in shop currency) applied to the orders placed on this day. - - name: order_adjustment_tax_amount - description: Total tax applied to adjustments (in shop currency) on the orders placed on this day. - - name: refund_subtotal - description: Total refund amount applied to the orders placed on this day. - - name: refund_total_tax - description: Total tax applied to the refund on the orders placed on this day (in shop currency). - - name: total_discounts - description: The total amount of the discount allocated to this day's orders in the shop's currency. - - name: shipping_discount_amount - description: The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day. - - name: percentage_calc_discount_amount - description: The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day. - - name: fixed_amount_discount_amount - description: The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day. - - name: count_discount_codes_applied - description: Distinct discount codes applied by customers on orders for this day. - - name: count_locations_ordered_from - description: Distinct locations with orders placed against them on this day. - - name: count_orders_with_discounts - description: Count of orders in which a discount was applied. - - name: count_orders_with_refunds - description: Count of orders in which there was a refund. - - name: first_order_timestamp - description: Timestamp of the first order of the day for the shop. - - name: last_order_timestamp - description: Timestamp of the last order of the day for the shop. - - name: quantity_sold - description: Total quantity sold from the inventory level. Includes refunds. - - name: quantity_refunded - description: The quantity of goods ORDERED on this day that have been refunded. - - name: quantity_net - description: Net quantity sold from this shop on this day. Excludes refunds. - - name: count_variants_sold - description: Distinct product variants sold on this day (includes refunds). - - name: count_products_sold - description: Distinct products sold on this day (includes refunds). - - name: quantity_gift_cards_sold - description: Quantity of gift cards sold on this day. - - name: quantity_requiring_shipping - description: Quantity of goods sold on this day that require shipping. - - name: count_abandoned_checkouts - description: Count of abandoned checkouts on this day. - - name: count_customers_abandoned_checkout - description: Count of distinct customers who abandoned checkouts on this day. - - name: count_customer_emails_abandoned_checkout - description: Count of distinct customer emails who abandoned checkouts on this day. - - name: count_fulfillment_attempted_delivery - description: Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed. - - name: count_fulfillment_delivered - description: Count of successful distinct fulfillments successfully delivered on this day. - - name: count_fulfillment_failure - description: Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled. - - name: count_fulfillment_in_transit - description: Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination. - - name: count_fulfillment_out_for_delivery - description: Count of distinct fulfillments being delivered to their final destination. - - name: count_fulfillment_ready_for_pickup - description: Count of distinct fulfillments ready for pickup at a shipping depot. - - name: count_fulfillment_picked_up - description: Count of distinct fulfillments successfully picked up on this day. - - name: count_fulfillment_label_printed - description: Count of distinct fulfillments for which a purchased shipping label has been printed on this day. - - name: count_fulfillment_label_purchased - description: Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day. - - name: count_fulfillment_confirmed - description: Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment. - - name: count_fulfillment_delayed - description: Count of delayed distinct fulfillments. - - name: avg_line_item_count - description: Average line item count for orders placed on this day. - - name: avg_discount - description: Average total discount placed on orders on this day (in shop currency). - - name: avg_shipping_discount_amount - description: Average discount amount (in shop currency) allocated toward shipping on orders placed on this day. - - name: avg_percentage_calc_discount_amount - description: Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day. - - name: avg_fixed_amount_discount_amount - description: Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day. - - name: avg_quantity_sold - description: Average quantity sold per order on this day. Includes refunds. (in shop currency) - - name: avg_quantity_net - description: Average net quantity sold per order on this day. Excludes refunds. (in shop currency) - - name: source_relation - description: "{{ doc('source_relation') }}" +# - name: shopify_gql__daily_shop +# description: > +# Each record represents a day in your Shop, enriched with a suite of metrics. +# columns: +# - name: date_day +# description: Day for which the shop activity is being measured. +# - name: shop_id +# description: The ID for the shop. A 64-bit unsigned integer. +# tests: +# - not_null +# - name: name +# description: The name of the shop. +# - name: domain +# description: The shop's domain. +# - name: is_deleted +# description: "{{ doc('_fivetran_deleted') }}" +# - name: currency +# description: The three-letter code (ISO 4217 format) for the shop's default currency. +# - name: enabled_presentment_currencies +# description: An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin. +# - name: iana_timezone +# description: The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones). +# - name: created_at +# description: The date and time (ISO 8601) when the shop was created. +# - name: count_orders +# description: Count of the distinct orders placed on this day. +# - name: count_line_items +# description: Count of the line items included in orders placed on this day. +# - name: count_customers +# description: Count of distinct customers who placed an order on this day. +# - name: count_customer_emails +# description: Count of distinct customer email addresses who placed an order on this day. +# - name: order_adjusted_total +# description: > +# Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: +# total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax +# The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange). +# - name: avg_order_value +# description: Average adjusted total per order placed on this day (in shop currency). +# - name: shipping_cost +# description: The shipping cost of the orders placed on this day (in shop currency). +# - name: order_adjustment_amount +# description: Total adjustment amount (in shop currency) applied to the orders placed on this day. +# - name: order_adjustment_tax_amount +# description: Total tax applied to adjustments (in shop currency) on the orders placed on this day. +# - name: refund_subtotal +# description: Total refund amount applied to the orders placed on this day. +# - name: refund_total_tax +# description: Total tax applied to the refund on the orders placed on this day (in shop currency). +# - name: total_discounts +# description: The total amount of the discount allocated to this day's orders in the shop's currency. +# - name: shipping_discount_amount +# description: The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day. +# - name: percentage_calc_discount_amount +# description: The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day. +# - name: fixed_amount_discount_amount +# description: The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day. +# - name: count_discount_codes_applied +# description: Distinct discount codes applied by customers on orders for this day. +# - name: count_locations_ordered_from +# description: Distinct locations with orders placed against them on this day. +# - name: count_orders_with_discounts +# description: Count of orders in which a discount was applied. +# - name: count_orders_with_refunds +# description: Count of orders in which there was a refund. +# - name: first_order_timestamp +# description: Timestamp of the first order of the day for the shop. +# - name: last_order_timestamp +# description: Timestamp of the last order of the day for the shop. +# - name: quantity_sold +# description: Total quantity sold from the inventory level. Includes refunds. +# - name: quantity_refunded +# description: The quantity of goods ORDERED on this day that have been refunded. +# - name: quantity_net +# description: Net quantity sold from this shop on this day. Excludes refunds. +# - name: count_variants_sold +# description: Distinct product variants sold on this day (includes refunds). +# - name: count_products_sold +# description: Distinct products sold on this day (includes refunds). +# - name: quantity_gift_cards_sold +# description: Quantity of gift cards sold on this day. +# - name: quantity_requiring_shipping +# description: Quantity of goods sold on this day that require shipping. +# - name: count_abandoned_checkouts +# description: Count of abandoned checkouts on this day. +# - name: count_customers_abandoned_checkout +# description: Count of distinct customers who abandoned checkouts on this day. +# - name: count_customer_emails_abandoned_checkout +# description: Count of distinct customer emails who abandoned checkouts on this day. +# - name: count_fulfillment_attempted_delivery +# description: Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed. +# - name: count_fulfillment_delivered +# description: Count of successful distinct fulfillments successfully delivered on this day. +# - name: count_fulfillment_failure +# description: Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled. +# - name: count_fulfillment_in_transit +# description: Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination. +# - name: count_fulfillment_out_for_delivery +# description: Count of distinct fulfillments being delivered to their final destination. +# - name: count_fulfillment_ready_for_pickup +# description: Count of distinct fulfillments ready for pickup at a shipping depot. +# - name: count_fulfillment_picked_up +# description: Count of distinct fulfillments successfully picked up on this day. +# - name: count_fulfillment_label_printed +# description: Count of distinct fulfillments for which a purchased shipping label has been printed on this day. +# - name: count_fulfillment_label_purchased +# description: Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day. +# - name: count_fulfillment_confirmed +# description: Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment. +# - name: count_fulfillment_delayed +# description: Count of delayed distinct fulfillments. +# - name: avg_line_item_count +# description: Average line item count for orders placed on this day. +# - name: avg_discount +# description: Average total discount placed on orders on this day (in shop currency). +# - name: avg_shipping_discount_amount +# description: Average discount amount (in shop currency) allocated toward shipping on orders placed on this day. +# - name: avg_percentage_calc_discount_amount +# description: Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day. +# - name: avg_fixed_amount_discount_amount +# description: Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day. +# - name: avg_quantity_sold +# description: Average quantity sold per order on this day. Includes refunds. (in shop currency) +# - name: avg_quantity_net +# description: Average net quantity sold per order on this day. Excludes refunds. (in shop currency) +# - name: source_relation +# description: "{{ doc('source_relation') }}" diff --git a/packages.yml b/packages.yml index b3030e8e..9c8e9ebe 100644 --- a/packages.yml +++ b/packages.yml @@ -1,6 +1,6 @@ packages: # - package: fivetran/shopify_source # version: [">=0.18.0", "<0.19.0"] -# - local: ../ECommerce/Shopify/dbt_shopify_source -- git: https://github.com/fivetran/dbt_shopify_source.git - revision: update/graphql \ No newline at end of file +- local: ../ECommerce/Shopify/dbt_shopify_source +# - git: https://github.com/fivetran/dbt_shopify_source.git +# revision: update/graphql \ No newline at end of file From 73694a16bc97736e54be8c2d658bf3be20ac1bc6 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Thu, 17 Jul 2025 17:13:06 -0400 Subject: [PATCH 04/34] metafields and daily_shop --- dbt_project.yml | 6 + .../base/int_shopify_gql__collection.sql | 1 + .../int_shopify_gql__daily_orders.sql | 44 +++--- .../shopify_gql__collection_metafields.sql | 8 ++ .../shopify_gql__customer_metafields.sql | 8 ++ .../shopify_gql__order_metafields.sql | 8 ++ .../shopify_gql__product_metafields.sql | 8 ++ ...hopify_gql__product_variant_metafields.sql | 8 ++ .../shopify_gql__shop_metafields.sql | 8 ++ .../graphql/metafields/shopify_metafields.yml | 20 +++ models/graphql/shopify_gql__daily_shop.sql | 131 ++++++++++++++++++ 11 files changed, 228 insertions(+), 22 deletions(-) create mode 100644 models/graphql/metafields/shopify_gql__collection_metafields.sql create mode 100644 models/graphql/metafields/shopify_gql__customer_metafields.sql create mode 100644 models/graphql/metafields/shopify_gql__order_metafields.sql create mode 100644 models/graphql/metafields/shopify_gql__product_metafields.sql create mode 100644 models/graphql/metafields/shopify_gql__product_variant_metafields.sql create mode 100644 models/graphql/metafields/shopify_gql__shop_metafields.sql create mode 100644 models/graphql/metafields/shopify_metafields.yml create mode 100644 models/graphql/shopify_gql__daily_shop.sql diff --git a/dbt_project.yml b/dbt_project.yml index d7d09732..e2aba5e2 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -11,6 +11,12 @@ models: +materialized: ephemeral int_shopify__customer_email_rollup: +materialized: view # so we can use the dbt_utils.star macro + graphql: + intermediate: + +schema: _int_shopify_gql # just for dev + # +materialized: ephemeral + int_shopify_gql__customer_email_rollup: + +materialized: view # so we can use the dbt_utils.star macro vars: shopify: diff --git a/models/graphql/intermediate/base/int_shopify_gql__collection.sql b/models/graphql/intermediate/base/int_shopify_gql__collection.sql index e39428ed..762ff837 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__collection.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__collection.sql @@ -6,6 +6,7 @@ with collection as ( from {{ var('shopify_gql_collection') }} ), +{# todo: add variable here #} collection_rule as ( select * diff --git a/models/graphql/intermediate/int_shopify_gql__daily_orders.sql b/models/graphql/intermediate/int_shopify_gql__daily_orders.sql index 09c84220..c018608a 100644 --- a/models/graphql/intermediate/int_shopify_gql__daily_orders.sql +++ b/models/graphql/intermediate/int_shopify_gql__daily_orders.sql @@ -20,29 +20,29 @@ order_aggregates as ( source_relation, cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day, count(distinct order_id) as count_orders, - sum(line_item_count) as count_line_items, + sum(coalesce(line_item_count, 0)) as count_line_items, avg(line_item_count) as avg_line_item_count, count(distinct customer_id) as count_customers, count(distinct email) as count_customer_emails, - sum(order_adjusted_total) as order_adjusted_total, + sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total, avg(order_adjusted_total) as avg_order_value, - sum(shipping_cost) as shipping_cost, - sum(order_adjustment_amount) as order_adjustment_amount, - sum(order_adjustment_tax_amount) as order_adjustment_tax_amount, - sum(refund_subtotal) as refund_subtotal, - sum(refund_total_tax) as refund_total_tax, - sum(total_discounts) as total_discounts, - avg(total_discounts) as avg_discount, - sum(shipping_discount_amount) as shipping_discount_amount, + sum(coalesce(shipping_cost, 0)) as shipping_cost, + sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount, + sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount, + sum(coalesce(refund_subtotal, 0)) as refund_subtotal, + sum(coalesce(refund_total_tax, 0)) as refund_total_tax, + sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts, + avg(total_discounts_shop_amount) as avg_discount, + sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount, avg(shipping_discount_amount) as avg_shipping_discount_amount, - sum(percentage_calc_discount_amount) as percentage_calc_discount_amount, + sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount, avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount, - sum(fixed_amount_discount_amount) as fixed_amount_discount_amount, + sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount, avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount, - sum(count_discount_codes_applied) as count_discount_codes_applied, + sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied, count(distinct location_id) as count_locations_ordered_from, - sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts, - sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds, + sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts, + sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds, min(created_timestamp) as first_order_timestamp, max(created_timestamp) as last_order_timestamp @@ -56,15 +56,15 @@ order_line_aggregates as ( select order_lines.source_relation, cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day, - sum(order_lines.quantity) as quantity_sold, - sum(order_lines.refunded_quantity) as quantity_refunded, - sum(order_lines.quantity_net_refunds) as quantity_net, - sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold, - sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net, + sum(coalesce(order_lines.quantity, 0)) as quantity_sold, + sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded, + sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net, + sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold, + sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net, count(distinct order_lines.variant_id) as count_variants_sold, count(distinct order_lines.product_id) as count_products_sold, - sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold, - sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping + sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold, + sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping from order_lines left join orders -- just joining with order to get the created_timestamp diff --git a/models/graphql/metafields/shopify_gql__collection_metafields.sql b/models/graphql/metafields/shopify_gql__collection_metafields.sql new file mode 100644 index 00000000..640a316b --- /dev/null +++ b/models/graphql/metafields/shopify_gql__collection_metafields.sql @@ -0,0 +1,8 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }} + +{{ shopify.get_metafields( + source_object = "stg_shopify_gql__collection", + reference_values = ['collection'], + id_column = "collection_id", + lookup_object="stg_shopify_gql__metafield" +) }} \ No newline at end of file diff --git a/models/graphql/metafields/shopify_gql__customer_metafields.sql b/models/graphql/metafields/shopify_gql__customer_metafields.sql new file mode 100644 index 00000000..f61502d6 --- /dev/null +++ b/models/graphql/metafields/shopify_gql__customer_metafields.sql @@ -0,0 +1,8 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}} + +{{ shopify.get_metafields( + source_object = "stg_shopify_gql__customer", + reference_values = ['customer'], + id_column = "customer_id", + lookup_object="stg_shopify_gql__metafield" +) }} \ No newline at end of file diff --git a/models/graphql/metafields/shopify_gql__order_metafields.sql b/models/graphql/metafields/shopify_gql__order_metafields.sql new file mode 100644 index 00000000..13101cb5 --- /dev/null +++ b/models/graphql/metafields/shopify_gql__order_metafields.sql @@ -0,0 +1,8 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }} + +{{ shopify.get_metafields( + source_object = "stg_shopify_gql__order", + reference_values = ['order'], + id_column = "order_id", + lookup_object="stg_shopify_gql__metafield" +) }} \ No newline at end of file diff --git a/models/graphql/metafields/shopify_gql__product_metafields.sql b/models/graphql/metafields/shopify_gql__product_metafields.sql new file mode 100644 index 00000000..6d2e3639 --- /dev/null +++ b/models/graphql/metafields/shopify_gql__product_metafields.sql @@ -0,0 +1,8 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }} + +{{ shopify.get_metafields( + source_object = "stg_shopify_gql__product", + reference_values = ['product'], + id_column = "product_id", + lookup_object="stg_shopify_gql__metafield" +) }} \ No newline at end of file diff --git a/models/graphql/metafields/shopify_gql__product_variant_metafields.sql b/models/graphql/metafields/shopify_gql__product_variant_metafields.sql new file mode 100644 index 00000000..bfdafc26 --- /dev/null +++ b/models/graphql/metafields/shopify_gql__product_variant_metafields.sql @@ -0,0 +1,8 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }} + +{{ shopify.get_metafields( + source_object = "stg_shopify_gql__product_variant", + reference_values = ['variant', 'productvariant'], + id_column = "variant_id", + lookup_object="stg_shopify_gql__metafield" +) }} \ No newline at end of file diff --git a/models/graphql/metafields/shopify_gql__shop_metafields.sql b/models/graphql/metafields/shopify_gql__shop_metafields.sql new file mode 100644 index 00000000..eb789f03 --- /dev/null +++ b/models/graphql/metafields/shopify_gql__shop_metafields.sql @@ -0,0 +1,8 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }} + +{{ shopify.get_metafields( + source_object = "stg_shopify_gql__shop", + reference_values = ['shop'], + id_column = "shop_id", + lookup_object="stg_shopify_gql__metafield" +) }} \ No newline at end of file diff --git a/models/graphql/metafields/shopify_metafields.yml b/models/graphql/metafields/shopify_metafields.yml new file mode 100644 index 00000000..81d822eb --- /dev/null +++ b/models/graphql/metafields/shopify_metafields.yml @@ -0,0 +1,20 @@ +version: 2 + +models: + - name: shopify_gql__collection_metafields + description: Replica of the stg_shopify_gql__collection model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model. + + - name: shopify_gql__customer_metafields + description: Replica of the stg_shopify_gql__customer model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model. + + - name: shopify_gql__order_metafields + description: Replica of the stg_shopify_gql__order model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model. + + - name: shopify_gql__product_metafields + description: Replica of the stg_shopify_gql__product model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model. + + - name: shopify_gql__product_variant_metafields + description: Replica of the stg_shopify_gql__product_variant model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model. + + - name: shopify_gql__shop_metafields + description: Replica of the stg_shopify_gql__shop model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model. diff --git a/models/graphql/shopify_gql__daily_shop.sql b/models/graphql/shopify_gql__daily_shop.sql new file mode 100644 index 00000000..90491392 --- /dev/null +++ b/models/graphql/shopify_gql__daily_shop.sql @@ -0,0 +1,131 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with shop as ( + + select * + from {{ var('shopify_gql_shop') }} +), + +calendar as ( + + select * + from {{ ref('shopify__calendar') }} + where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day +), + +daily_orders as ( + + select * + from {{ ref('int_shopify_gql__daily_orders') }} +), + +{% if var('shopify_using_abandoned_checkout', True) %} +daily_abandoned_checkouts as ( + + select * + from {{ ref('int_shopify_gql__daily_abandoned_checkouts') }} +), +{% endif %} + +{% if var('shopify_using_fulfillment_event', false) %} +daily_fulfillment as ( + + select * + from {{ ref('int_shopify_gql__daily_fulfillment') }} +), +{% endif %} + +shop_calendar as ( + + select + cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day, + shop.shop_id, + shop.name, + shop.domain, + shop.is_deleted, + shop.currency, + shop.enabled_presentment_currencies, + shop.iana_timezone, + shop.created_at, + shop.source_relation + + from calendar + join shop + on cast(shop.created_at as date) <= calendar.date_day +), + +final as ( + + select + shop_calendar.*, + + coalesce(daily_orders.count_orders, 0) as count_orders, + coalesce(daily_orders.count_line_items, 0) as count_line_items, + daily_orders.avg_line_item_count, + coalesce(daily_orders.count_customers, 0) as count_customers, + coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails, + coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total, + daily_orders.avg_order_value, + coalesce(daily_orders.shipping_cost, 0) as shipping_cost, + coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount, + coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount, + coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal, + coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax, + coalesce(daily_orders.total_discounts, 0) as total_discounts, + daily_orders.avg_discount, + coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount, + daily_orders.avg_shipping_discount_amount, + coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount, + daily_orders.avg_percentage_calc_discount_amount, + coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount, + daily_orders.avg_fixed_amount_discount_amount, + coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied, + coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from, + coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts, + coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds, + daily_orders.first_order_timestamp, + daily_orders.last_order_timestamp, + coalesce(daily_orders.quantity_sold, 0) as quantity_sold, + coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded, + coalesce(daily_orders.quantity_net, 0) as quantity_net, + daily_orders.avg_quantity_sold, + daily_orders.avg_quantity_net, + coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold, + coalesce(daily_orders.count_products_sold, 0) as count_products_sold, + coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold, + coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping + + {% if var('shopify_using_abandoned_checkout', True) %} + , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts, + coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout, + coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout + {% endif %} + + {% if var('shopify_using_fulfillment_event', false) %} + {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%} + , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }} + {% endfor %} + {% endif %} + + from shop_calendar + left join daily_orders + on shop_calendar.source_relation = daily_orders.source_relation + and shop_calendar.date_day = daily_orders.date_day + + {% if var('shopify_using_abandoned_checkout', True) %} + left join daily_abandoned_checkouts + on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation + and shop_calendar.date_day = daily_abandoned_checkouts.date_day + {% endif %} + + {% if var('shopify_using_fulfillment_event', false) %} + left join daily_fulfillment + on shop_calendar.source_relation = daily_fulfillment.source_relation + and shop_calendar.date_day = daily_fulfillment.date_day + {% endif %} + +) + + +select * +from final From 9c4e91b030e2ac5923c8b0376365fe56d0a4b936 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Fri, 18 Jul 2025 08:41:01 -0400 Subject: [PATCH 05/34] pacckage --- packages.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages.yml b/packages.yml index 9c8e9ebe..9478ce61 100644 --- a/packages.yml +++ b/packages.yml @@ -1,6 +1,6 @@ packages: # - package: fivetran/shopify_source # version: [">=0.18.0", "<0.19.0"] -- local: ../ECommerce/Shopify/dbt_shopify_source -# - git: https://github.com/fivetran/dbt_shopify_source.git -# revision: update/graphql \ No newline at end of file + +- git: https://github.com/fivetran/dbt_shopify_source.git + revision: update/graphql \ No newline at end of file From c31c7efd6fdbf09c0a9a6058e8ecb64e5f97e2d8 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Fri, 18 Jul 2025 14:17:29 -0700 Subject: [PATCH 06/34] GraphQL updates: Custmomer + line item enhanced --- ...int_shopify_gql__customer_email_rollup.sql | 65 ++++++ ..._shopify_gql__emails__order_aggregates.sql | 87 ++++++++ ...opify_gql__customers__order_aggregates.sql | 4 +- .../graphql/shopify_gql__customer_cohorts.sql | 129 +++++++++++ .../shopify_gql__customer_email_cohorts.sql | 129 +++++++++++ .../graphql/shopify_gql__customer_emails.sql | 68 ++++++ models/graphql/shopify_gql__customers.sql | 82 +++++++ .../shopify__standardized_models.yml | 86 +++++++ .../shopify_gql__line_item_enhanced.sql | 209 ++++++++++++++++++ 9 files changed, 857 insertions(+), 2 deletions(-) create mode 100644 models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql create mode 100644 models/graphql/intermediate/int_shopify_gql__emails__order_aggregates.sql create mode 100644 models/graphql/shopify_gql__customer_cohorts.sql create mode 100644 models/graphql/shopify_gql__customer_email_cohorts.sql create mode 100644 models/graphql/shopify_gql__customer_emails.sql create mode 100644 models/graphql/shopify_gql__customers.sql create mode 100644 models/graphql/standardized_models/shopify__standardized_models.yml create mode 100644 models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql diff --git a/models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql b/models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql new file mode 100644 index 00000000..aa6d1a78 --- /dev/null +++ b/models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql @@ -0,0 +1,65 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with customers as ( + + select + *, + row_number() over( + partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }} + order by created_timestamp desc) + as customer_index + + from {{ ref('int_shopify_gql__customer') }} + where email is not null -- nonsensical to include any null emails here + +), customer_tags as ( + + select + * + from {{ var('shopify_gql_customer_tag' )}} + +), rollup_customers as ( + + select + -- fields to group by + lower(customers.email) as email, + customers.source_relation, + + -- fields to string agg together + {{ fivetran_utils.string_agg("distinct cast(customers.customer_id as " ~ dbt.type_string() ~ ")", "', '") }} as customer_ids, + {{ fivetran_utils.string_agg("distinct cast(customers.phone as " ~ dbt.type_string() ~ ")", "', '") }} as phone_numbers, + {{ fivetran_utils.string_agg("distinct cast(customer_tags.value as " ~ dbt.type_string() ~ ")", "', '") }} as customer_tags, + + -- fields to take aggregates of + min(customers.created_timestamp) as first_account_created_at, + max(customers.created_timestamp) as last_account_created_at, + max(customers.updated_timestamp) as last_updated_at, + max(customers.marketing_consent_updated_at) as marketing_consent_updated_at, + max(customers._fivetran_synced) as last_fivetran_synced, + + -- take true if ever given for boolean fields + {{ fivetran_utils.max_bool("case when customers.customer_index = 1 then customers.is_tax_exempt else null end") }} as is_tax_exempt, -- since this changes every year + {{ fivetran_utils.max_bool("customers.is_verified_email") }} as is_verified_email + + -- for all other fields, just take the latest value + {% set cols = adapter.get_columns_in_relation(ref('stg_shopify_gql__customer')) %} + {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', + 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp', + 'is_tax_exempt', 'is_verified_email'] %} + {% for col in cols %} + {% if col.column|lower not in except_cols %} + , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }} + {% endif %} + {% endfor %} + + from customers + left join customer_tags + on customers.customer_id = customer_tags.customer_id + and customers.source_relation = customer_tags.source_relation + + group by 1,2 + +) + +select * +from rollup_customers diff --git a/models/graphql/intermediate/int_shopify_gql__emails__order_aggregates.sql b/models/graphql/intermediate/int_shopify_gql__emails__order_aggregates.sql new file mode 100644 index 00000000..3aa7b51b --- /dev/null +++ b/models/graphql/intermediate/int_shopify_gql__emails__order_aggregates.sql @@ -0,0 +1,87 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with orders as ( + + select * + from {{ var('shopify_gql_order') }} + +), order_aggregates as ( + + select * + from {{ ref('shopify_gql__orders__order_line_aggregates') }} + +), transactions as ( + + select * + from {{ ref('shopify_gql__transactions')}} + + where lower(status) = 'success' + and lower(kind) not in ('authorization', 'void') + and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue + +), transaction_aggregates as ( + -- this is necessary as customers can pay via multiple payment gateways + select + order_id, + source_relation, + lower(kind) as kind, + sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount + + from transactions + group by 1, 2, 3 + +), customer_emails as ( +-- in case any orders records don't have the customer email attached yet + select + customer_id, + source_relation, + email + + from {{ var('shopify_gql_customer') }} + where email is not null + group by 1, 2, 3 + +), aggregated as ( + + select + lower(customer_emails.email) as email, + orders.source_relation, + min(orders.created_timestamp) as first_order_timestamp, + max(orders.created_timestamp) as most_recent_order_timestamp, + avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value, + sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent, + sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded, + count(distinct orders.order_id) as lifetime_count_orders, + avg(order_aggregates.order_total_quantity) as avg_quantity_per_order, + sum(order_aggregates.order_total_tax) as lifetime_total_tax, + avg(order_aggregates.order_total_tax) as avg_tax_per_order, + sum(order_aggregates.order_total_discount) as lifetime_total_discount, + avg(order_aggregates.order_total_discount) as avg_discount_per_order, + sum(order_aggregates.order_total_shipping) as lifetime_total_shipping, + avg(order_aggregates.order_total_shipping) as avg_shipping_per_order, + sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts, + avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order, + sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax, + avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order + from orders + join customer_emails + on orders.customer_id = customer_emails.customer_id + and orders.source_relation = customer_emails.source_relation + left join transaction_aggregates + on orders.order_id = transaction_aggregates.order_id + and orders.source_relation = transaction_aggregates.source_relation + and transaction_aggregates.kind in ('sale','capture') + left join transaction_aggregates as refunds + on orders.order_id = refunds.order_id + and orders.source_relation = refunds.source_relation + and refunds.kind = 'refund' + left join order_aggregates + on orders.order_id = order_aggregates.order_id + and orders.source_relation = order_aggregates.source_relation + + group by 1,2 + +) + +select * +from aggregated \ No newline at end of file diff --git a/models/graphql/intermediate/shopify_gql__customers__order_aggregates.sql b/models/graphql/intermediate/shopify_gql__customers__order_aggregates.sql index 6e8bdc7c..3bd5e1a8 100644 --- a/models/graphql/intermediate/shopify_gql__customers__order_aggregates.sql +++ b/models/graphql/intermediate/shopify_gql__customers__order_aggregates.sql @@ -29,7 +29,7 @@ with orders as ( sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount from transactions - {{ dbt_utils.group_by(n=3) }} + group by 1, 2, 3 ), aggregated as ( @@ -67,7 +67,7 @@ with orders as ( on orders.order_id = order_aggregates.order_id and orders.source_relation = order_aggregates.source_relation - {{ dbt_utils.group_by(n=2) }} + group by 1, 2 ) select * diff --git a/models/graphql/shopify_gql__customer_cohorts.sql b/models/graphql/shopify_gql__customer_cohorts.sql new file mode 100644 index 00000000..1c087876 --- /dev/null +++ b/models/graphql/shopify_gql__customer_cohorts.sql @@ -0,0 +1,129 @@ +{{ + config( + enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'), + materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental', + unique_key='customer_cohort_id', + incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert', + partition_by={ + "field": "date_month", + "data_type": "date" + } if target.type not in ('spark','databricks') + else ['date_month'], + cluster_by=['date_month', 'email'], + file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet' + ) +}} + +with calendar as ( + + select * + from {{ ref('shopify__calendar') }} + where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day + + {% if is_incremental() %} + and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date="max(date_month)", interval=1, datepart='month') }} + {% endif %} + +), customers as ( + + select * + from {{ ref('shopify_gql__customer_emails') }} + +), orders as ( + + select * + from {{ ref('shopify_gql__orders') }} + +), customer_calendar as ( + + select + cast(calendar.date_day as date) as date_month, + customers.email, + customers.first_order_timestamp, + customers.source_relation, + {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month + from calendar + inner join customers + on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day + +), orders_joined as ( + + select + customer_calendar.date_month, + customer_calendar.email, + customer_calendar.first_order_timestamp, + customer_calendar.cohort_month, + customer_calendar.source_relation, + coalesce(count(distinct orders.order_id), 0) as order_count_in_month, + coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month, + coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month + from customer_calendar + left join orders + on customer_calendar.email = orders.email + and customer_calendar.source_relation = orders.source_relation + and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date) + {{ dbt_utils.group_by(n=5) }} + +), windows as ( + + {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %} + + select + *, + sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime, + sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime, + sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime, + row_number() over ( + partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }} + order by date_month asc) + as cohort_month_number + from orders_joined + +{% if is_incremental() %} +), backfill_lifetime_sums as ( + -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them + select + source_relation, + email, + max(total_price_lifetime) as previous_total_price_lifetime, + max(order_count_lifetime) as previous_order_count_lifetime, + max(line_item_count_lifetime) as previous_line_item_count_lifetime, + max(cohort_month_number) as previous_cohort_month_number + from {{ this }} + where date_month < {{ shopify.shopify_lookback(from_date="max(date_month)", interval=1, datepart='month') }} + group by 1,2 + +), final as ( + + select + windows.date_month, + windows.email, + windows.first_order_timestamp, + windows.cohort_month, + windows.source_relation, + windows.order_count_in_month, + windows.total_price_in_month, + windows.line_item_count_in_month, + backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number, + backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime, + backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime, + backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime, + {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id + from windows + left join backfill_lifetime_sums + on backfill_lifetime_sums.source_relation = windows.source_relation + and backfill_lifetime_sums.email = windows.email + +{% else %} +), final as ( + + select + *, + {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id + from windows + +{% endif %} +) + +select * +from final \ No newline at end of file diff --git a/models/graphql/shopify_gql__customer_email_cohorts.sql b/models/graphql/shopify_gql__customer_email_cohorts.sql new file mode 100644 index 00000000..1c087876 --- /dev/null +++ b/models/graphql/shopify_gql__customer_email_cohorts.sql @@ -0,0 +1,129 @@ +{{ + config( + enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'), + materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental', + unique_key='customer_cohort_id', + incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert', + partition_by={ + "field": "date_month", + "data_type": "date" + } if target.type not in ('spark','databricks') + else ['date_month'], + cluster_by=['date_month', 'email'], + file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet' + ) +}} + +with calendar as ( + + select * + from {{ ref('shopify__calendar') }} + where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day + + {% if is_incremental() %} + and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date="max(date_month)", interval=1, datepart='month') }} + {% endif %} + +), customers as ( + + select * + from {{ ref('shopify_gql__customer_emails') }} + +), orders as ( + + select * + from {{ ref('shopify_gql__orders') }} + +), customer_calendar as ( + + select + cast(calendar.date_day as date) as date_month, + customers.email, + customers.first_order_timestamp, + customers.source_relation, + {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month + from calendar + inner join customers + on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day + +), orders_joined as ( + + select + customer_calendar.date_month, + customer_calendar.email, + customer_calendar.first_order_timestamp, + customer_calendar.cohort_month, + customer_calendar.source_relation, + coalesce(count(distinct orders.order_id), 0) as order_count_in_month, + coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month, + coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month + from customer_calendar + left join orders + on customer_calendar.email = orders.email + and customer_calendar.source_relation = orders.source_relation + and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date) + {{ dbt_utils.group_by(n=5) }} + +), windows as ( + + {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %} + + select + *, + sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime, + sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime, + sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime, + row_number() over ( + partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }} + order by date_month asc) + as cohort_month_number + from orders_joined + +{% if is_incremental() %} +), backfill_lifetime_sums as ( + -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them + select + source_relation, + email, + max(total_price_lifetime) as previous_total_price_lifetime, + max(order_count_lifetime) as previous_order_count_lifetime, + max(line_item_count_lifetime) as previous_line_item_count_lifetime, + max(cohort_month_number) as previous_cohort_month_number + from {{ this }} + where date_month < {{ shopify.shopify_lookback(from_date="max(date_month)", interval=1, datepart='month') }} + group by 1,2 + +), final as ( + + select + windows.date_month, + windows.email, + windows.first_order_timestamp, + windows.cohort_month, + windows.source_relation, + windows.order_count_in_month, + windows.total_price_in_month, + windows.line_item_count_in_month, + backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number, + backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime, + backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime, + backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime, + {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id + from windows + left join backfill_lifetime_sums + on backfill_lifetime_sums.source_relation = windows.source_relation + and backfill_lifetime_sums.email = windows.email + +{% else %} +), final as ( + + select + *, + {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id + from windows + +{% endif %} +) + +select * +from final \ No newline at end of file diff --git a/models/graphql/shopify_gql__customer_emails.sql b/models/graphql/shopify_gql__customer_emails.sql new file mode 100644 index 00000000..182970b1 --- /dev/null +++ b/models/graphql/shopify_gql__customer_emails.sql @@ -0,0 +1,68 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with customer_emails as ( + + select + {{ dbt_utils.star(from=ref('int_shopify_gql__customer_email_rollup'), except=["orders_count", "total_spent"]) }} + from {{ ref('int_shopify_gql__customer_email_rollup') }} + +), orders as ( + + select * + from {{ ref('int_shopify_gql__emails__order_aggregates' )}} + where email is not null + +{% if var('shopify_using_abandoned_checkout', True) %} +), abandoned as ( + + select + lower(email) as email, + source_relation, + count(distinct checkout_id) as lifetime_abandoned_checkouts + from {{ var('shopify_gql_abandoned_checkout' )}} + where email is not null + group by 1,2 +{% endif %} + +), joined as ( + + select + customer_emails.*, + + {% if var('shopify_using_abandoned_checkout', True) %} + coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts, + {% endif %} + + orders.first_order_timestamp, + orders.most_recent_order_timestamp, + orders.avg_order_value, + coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent, + coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded, + (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net, + coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders, + orders.avg_quantity_per_order, + coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax, + orders.avg_tax_per_order, + coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount, + orders.avg_discount_per_order, + coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping, + orders.avg_shipping_per_order, + coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts, + orders.avg_shipping_with_discounts_per_order, + coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax, + orders.avg_shipping_tax_per_order + + from customer_emails + left join orders + on customer_emails.email = orders.email + and customer_emails.source_relation = orders.source_relation + + {% if var('shopify_using_abandoned_checkout', True) %} + left join abandoned + on customer_emails.email = abandoned.email + and customer_emails.source_relation = abandoned.source_relation + {% endif %} +) + +select * +from joined \ No newline at end of file diff --git a/models/graphql/shopify_gql__customers.sql b/models/graphql/shopify_gql__customers.sql new file mode 100644 index 00000000..63773f2b --- /dev/null +++ b/models/graphql/shopify_gql__customers.sql @@ -0,0 +1,82 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with customers as ( + + select + {{ dbt_utils.star(from=ref('stg_shopify_gql__customer'), except=["orders_count", "total_spent"]) }} + from {{ var('shopify_gql_customer') }} + +), orders as ( + + select * + from {{ ref('shopify_gql__customers__order_aggregates' )}} + +{% if var('shopify_using_abandoned_checkout', True) %} +), abandoned as ( + + select + customer_id, + source_relation, + count(distinct checkout_id) as lifetime_abandoned_checkouts + from {{ var('shopify_gql_abandoned_checkout' )}} + where customer_id is not null + group by 1,2 +{% endif %} + +), customer_tags_aggregated as ( + + select + customer_id, + source_relation, + {{ fivetran_utils.string_agg("distinct cast(value as " ~ dbt.type_string() ~ ")", "', '") }} as customer_tags + + from {{ var('shopify_gql_customer_tag' )}} + group by 1,2 + +), joined as ( + + select + customers.*, + + {% if var('shopify_using_abandoned_checkout', True) %} + coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts, + {% endif %} + + orders.first_order_timestamp, + orders.most_recent_order_timestamp, + customer_tags_aggregated.customer_tags, + orders.avg_order_value, + coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent, + coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded, + (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net, + coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders, + orders.avg_quantity_per_order, + coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax, + orders.avg_tax_per_order, + coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount, + orders.avg_discount_per_order, + coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping, + orders.avg_shipping_per_order, + coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts, + orders.avg_shipping_with_discounts_per_order, + coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax, + orders.avg_shipping_tax_per_order + + from customers + left join orders + on customers.customer_id = orders.customer_id + and customers.source_relation = orders.source_relation + left join customer_tags_aggregated + on customers.customer_id = customer_tags_aggregated.customer_id + and customers.source_relation = customer_tags_aggregated.source_relation + + {% if var('shopify_using_abandoned_checkout', True) %} + left join abandoned + on customers.customer_id = abandoned.customer_id + and customers.source_relation = abandoned.source_relation + {% endif %} + +) + +select * +from joined \ No newline at end of file diff --git a/models/graphql/standardized_models/shopify__standardized_models.yml b/models/graphql/standardized_models/shopify__standardized_models.yml new file mode 100644 index 00000000..76a760f7 --- /dev/null +++ b/models/graphql/standardized_models/shopify__standardized_models.yml @@ -0,0 +1,86 @@ +version: 2 + +models: + - name: shopify_gql__line_item_enhanced + description: This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It’s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details. + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - header_id + - line_item_id + - source_relation + columns: + - name: header_id + description: Id of corresponding order. + - name: line_item_id + description: Order line item id. + - name: line_item_index + description: Unique index of each line item id for each order. + - name: record_type + description: header or line_item + - name: created_at + description: When the order was created + - name: header_status + description: Status of the order. + - name: billing_type + description: NA for Shopify. + - name: currency + description: Currency used in the order. + - name: product_id + description: Product ID + - name: product_name + description: Product name + - name: product_type + description: Product type + - name: transaction_type + description: Transaction type (Charge, Refund, etc) + - name: quantity + description: The number of units of this line item. + - name: unit_amount + description: Amount per unit, or the price. + - name: discount_amount + description: The discount amount associated with this order. + - name: tax_amount + description: The tax amount associated with this order. + - name: total_amount + description: Order total + - name: payment_id + description: Transaction ID + - name: payment_method + description: Transaction gateway for Shopify ('gift card', 'shopify payments', etc) + - name: payment_method_id + description: Shopify does not have a particular payment_method_id, therefore all records will be null. + - name: payment_at + description: Transaction processed timestamp + - name: fee_amount + description: The total shipping fee associated with the order. + - name: refund_amount + description: Refund amount associated with this order. + - name: subscription_id + description: Shopify does not include subscriptions, therefore all records will be null. + - name: subscription_plan + description: Shopify does not include subscriptions, therefore all records will be null. + - name: subscription_period_started_at + description: Shopify does not include subscriptions, therefore all records will be null. + - name: subscription_period_ended_at + description: Shopify does not include subscriptions, therefore all records will be null. + - name: subscription_status + description: Shopify does not include subscriptions, therefore all records will be null. + - name: customer_id + description: Customer associated with this order. + - name: customer_created_at + description: The date and time when the customer was created. + - name: customer_level + description: Whether 'account' or 'customer'. For Shopify, the level is 'customer'. + - name: customer_name + description: Customer name + - name: customer_company + description: Associated customer's company noted on the shipping address if applicable. + - name: customer_email + description: Customer email + - name: customer_city + description: Customer's shipping address city + - name: customer_country + description: Customer's shipping address country + - name: source_relation + description: The source of the record if the unioning functionality is being used. If not this field will be empty. \ No newline at end of file diff --git a/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql b/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql new file mode 100644 index 00000000..ac84578e --- /dev/null +++ b/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql @@ -0,0 +1,209 @@ +{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }} + +with line_items as ( + + select * + from {{ var('shopify_gql_order_line')}} + +), orders as ( + + select * + from {{ var('shopify_gql_order')}} + +), product as ( + + select * + from {{ var('shopify_gql_product')}} + +), transactions as ( + + select + order_id, + kind, + source_relation, + {{ fivetran_utils.string_agg("cast (transaction_id as " ~ dbt.type_string() ~ ")", "', '") }} AS transaction_id, + {{ fivetran_utils.string_agg("cast (processed_timestamp as " ~ dbt.type_string() ~ ")", "', '") }} as processed_timestamp, + {{ fivetran_utils.string_agg('gateway', "', '") }} as gateway + + from {{ var('shopify_gql_transaction')}} + where kind = 'capture' + and status = 'success' + group by 1,2,3 + +), refund_transactions as ( + + select + order_id, + source_relation, + sum(amount) as total_order_refund_amount + from {{ var('shopify_gql_transaction')}} + where kind = 'refund' + group by 1,2 + +), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row + + select + order_line_id, + source_relation, + sum(subtotal + total_tax) as total_refund_amount + from {{ var('shopify_gql_order_line_refund')}} + group by 1,2 + +), customer as ( + + select * + from {{ var('shopify_gql_customer')}} + +), shipping as ( + + select * + from {{ ref('int_shopify_gql__order__shipping_aggregates')}} + +), enhanced as ( + + select + li.order_id as header_id, + li.order_line_id as line_item_id, + li.index as line_item_index, + o.created_timestamp as created_at, + o.currency as currency, + o.fulfillment_status as header_status, + li.product_id as product_id, + p.title as product_name, + t.kind as transaction_type, + null as billing_type, + p.product_type as product_type, + li.quantity as quantity, + li.price as unit_amount, + o.total_discounts as discount_amount, + o.total_tax as tax_amount, + (li.quantity * li.price) as total_amount, + t.transaction_id as payment_id, + null as payment_method_id, + t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here + t.processed_timestamp as payment_at, + shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount, + rt.total_order_refund_amount as refund_amount, + cast(null as {{ dbt.type_string() }}) as subscription_id, + cast(null as {{ dbt.type_string() }}) as subscription_plan, + cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at, + cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at, + cast(null as {{ dbt.type_string() }}) as subscription_status, + o.customer_id, + c.created_timestamp as customer_created_at, + 'customer' as customer_level, + {{ dbt.concat(["c.first_name", "''", "c.last_name"]) }} as customer_name, + o.shipping_address_company as customer_company, + o.email as customer_email, + o.shipping_address_city as customer_city, + o.shipping_address_country as customer_country, + li.source_relation + from line_items li + left join orders o + on li.order_id = o.order_id + and li.source_relation = o.source_relation + left join transactions t + on o.order_id = t.order_id + and o.source_relation = t.source_relation + left join refund_transactions rt + on o.order_id = rt.order_id + and o.source_relation = rt.source_relation + left join product p + on li.product_id = p.product_id + and li.source_relation = p.source_relation + left join customer c + on o.customer_id = c.customer_id + and o.source_relation = c.source_relation + left join shipping + on o.order_id = shipping.order_id + and o.source_relation = shipping.source_relation + +), final as ( + + select + header_id, + cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id, + cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index, + 'line_item' as record_type, + created_at, + currency, + header_status, + cast(product_id as {{ dbt.type_numeric() }}) as product_id, + product_name, + transaction_type, + billing_type, + product_type, + cast(quantity as {{ dbt.type_numeric() }}) as quantity, + cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount, + cast(null as {{ dbt.type_numeric() }}) as discount_amount, + cast(null as {{ dbt.type_numeric() }}) as tax_amount, + cast(total_amount as {{ dbt.type_numeric() }}) as total_amount, + payment_id, + payment_method_id, + payment_method, + payment_at, + cast(null as {{ dbt.type_numeric() }}) as fee_amount, + cast(null as {{ dbt.type_numeric() }}) as refund_amount, + subscription_id, + subscription_plan, + subscription_period_started_at, + subscription_period_ended_at, + subscription_status, + customer_id, + customer_created_at, + customer_level, + customer_name, + customer_company, + customer_email, + customer_city, + customer_country, + source_relation + from enhanced + + union all + + select + header_id, + cast(null as {{ dbt.type_numeric() }}) as line_item_id, + cast(0 as {{ dbt.type_numeric() }}) as line_item_index, + 'header' as record_type, + created_at, + currency, + header_status, + cast(null as {{ dbt.type_numeric() }}) as product_id, + cast(null as {{ dbt.type_string() }}) as product_name, + transaction_type, + billing_type, + cast(null as {{ dbt.type_string() }}) as product_type, + cast(null as {{ dbt.type_numeric() }}) as quantity, + cast(null as {{ dbt.type_numeric() }}) as unit_amount, + discount_amount, + tax_amount, + cast(null as {{ dbt.type_numeric() }}) as total_amount, + payment_id, + payment_method_id, + payment_method, + payment_at, + fee_amount, + refund_amount, + subscription_id, + subscription_plan, + subscription_period_started_at, + subscription_period_ended_at, + subscription_status, + customer_id, + customer_created_at, + customer_level, + customer_name, + customer_company, + customer_email, + customer_city, + customer_country, + source_relation + from enhanced + where line_item_index = 1 -- filter to just one arbitrary record + +) + +select * +from final \ No newline at end of file From b84f7dd8210eb12f9cbc267d167148919d6c90bc Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Mon, 21 Jul 2025 17:17:14 -0400 Subject: [PATCH 07/34] Tweaks (#110) --- .../base/int_shopify_gql__order.sql | 10 ++-- ...nt_shopify_gql__discount_code_enriched.sql | 2 +- ...fy_gql__discounts__abandoned_checkouts.sql | 49 ++++++------------- .../graphql/shopify_gql__customer_emails.sql | 2 +- models/graphql/shopify_gql__discounts.sql | 2 +- .../shopify_gql__line_item_enhanced.sql | 12 ++--- packages.yml | 2 +- 7 files changed, 29 insertions(+), 50 deletions(-) diff --git a/models/graphql/intermediate/base/int_shopify_gql__order.sql b/models/graphql/intermediate/base/int_shopify_gql__order.sql index 1853c842..db1071d8 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__order.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__order.sql @@ -1,6 +1,6 @@ {{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} -with order as ( +with orders as ( select * from {{ var('shopify_gql_order') }} @@ -15,12 +15,12 @@ customer_visit as ( joined as ( select - order.*, + orders.*, customer_visit.referring_site - from order + from orders left join customer_visit - on order.order_id = customer_visit.order_id - and order.source_relation = customer_visit.source_relation + on orders.order_id = customer_visit.order_id + and orders.source_relation = customer_visit.source_relation ) select * diff --git a/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql b/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql index c1bcda87..d6afb7ab 100644 --- a/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql +++ b/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql @@ -137,7 +137,7 @@ discounts_with_applications as ( discount_applications.target_type, {# discount_applications.type as application_type, #} discount_applications.value_amount as value, -- QUESTION: should we be renaming this? - discount_application.value_currency_code, + discount_applications.value_currency_code, discount_applications.value_percentage, discount_applications.value_type from discounts_with_codes diff --git a/models/graphql/intermediate/int_shopify_gql__discounts__abandoned_checkouts.sql b/models/graphql/intermediate/int_shopify_gql__discounts__abandoned_checkouts.sql index 0b4caaf0..d5770be3 100644 --- a/models/graphql/intermediate/int_shopify_gql__discounts__abandoned_checkouts.sql +++ b/models/graphql/intermediate/int_shopify_gql__discounts__abandoned_checkouts.sql @@ -20,12 +20,9 @@ abandoned_checkout_discount_code as ( select * from {{ var('shopify_gql_abandoned_checkout_discount_code') }} - - -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins - -- so filter out records that have this - where coalesce(type, '') != '' ), +{# WIP #} join_abandoned_checkout_discount_code as ( select @@ -37,52 +34,34 @@ join_abandoned_checkout_discount_code as ( from abandoned_checkout_discount_code left join discount_application - on abandoned_checkout_discount_code.checkout_id = discount_application.checkout_id + on abandoned_checkout_discount_code.code = discount_application.code and abandoned_checkout_discount_code.source_relation = discount_application.source_relation -- and abandoned_checkout_discount_code.index = discount_application.index - {# NEED CODE #} + {# NEED CODE to prevent potential fanout #} where coalesce(discount_application.value_type, '') != '' -) - -{# TABLE HAS BEEN REMOVED - -abandoned_checkout_shipping_line as ( - - select * - from {{ var('shopify_abandoned_checkout_shipping_line') }} ), -roll_up_shipping_line as ( - - select - checkout_id, - source_relation, - sum(price) as price - - from abandoned_checkout_shipping_line - group by 1,2 -), +{# +abandoned_checkout_shipping_line TABLE HAS BEEN REMOVED #} + abandoned_checkouts_aggregated as ( select - abandoned_checkout_discount_code.code, - abandoned_checkout_discount_code.type, - abandoned_checkout_discount_code.source_relation, - sum(coalesce(abandoned_checkout.total_discounts_set_shop_amount), 0) as total_abandoned_checkout_discount_amount, - sum(coalesce(abandoned_checkout.total_line_items_price_set_shop_amount, 0)) as total_abandoned_checkout_line_items_price, + join_abandoned_checkout_discount_code.code, + join_abandoned_checkout_discount_code.type, + join_abandoned_checkout_discount_code.source_relation, + sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount, + sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price, {# sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price, #} count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers, count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails, count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts - from abandoned_checkout_discount_code + from join_abandoned_checkout_discount_code left join abandoned_checkout - on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id - and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation - {# left join roll_up_shipping_line - on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id - and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation #} + on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id + and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation group by 1,2,3 ) diff --git a/models/graphql/shopify_gql__customer_emails.sql b/models/graphql/shopify_gql__customer_emails.sql index 182970b1..7c695e42 100644 --- a/models/graphql/shopify_gql__customer_emails.sql +++ b/models/graphql/shopify_gql__customer_emails.sql @@ -19,7 +19,7 @@ with customer_emails as ( lower(email) as email, source_relation, count(distinct checkout_id) as lifetime_abandoned_checkouts - from {{ var('shopify_gql_abandoned_checkout' )}} + from {{ ref('int_shopify_gql__abandoned_checkout' )}} where email is not null group by 1,2 {% endif %} diff --git a/models/graphql/shopify_gql__discounts.sql b/models/graphql/shopify_gql__discounts.sql index 2e5fbcd5..777fc210 100644 --- a/models/graphql/shopify_gql__discounts.sql +++ b/models/graphql/shopify_gql__discounts.sql @@ -37,7 +37,7 @@ aggregates_joined as ( {% if var('shopify_using_abandoned_checkout', True) %} , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount, - coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price, + {# coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price, #} coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts, coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers, coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails diff --git a/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql b/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql index ac84578e..9a551595 100644 --- a/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql +++ b/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql @@ -35,7 +35,7 @@ with line_items as ( select order_id, source_relation, - sum(amount) as total_order_refund_amount + sum(amount_shop) as total_order_refund_amount from {{ var('shopify_gql_transaction')}} where kind = 'refund' group by 1,2 @@ -45,7 +45,7 @@ with line_items as ( select order_line_id, source_relation, - sum(subtotal + total_tax) as total_refund_amount + sum(subtotal_shop_amount + total_tax_shop_amount) as total_refund_amount from {{ var('shopify_gql_order_line_refund')}} group by 1,2 @@ -74,10 +74,10 @@ with line_items as ( null as billing_type, p.product_type as product_type, li.quantity as quantity, - li.price as unit_amount, - o.total_discounts as discount_amount, - o.total_tax as tax_amount, - (li.quantity * li.price) as total_amount, + li.price_shop_amount as unit_amount, + o.total_discounts_shop_amount as discount_amount, + o.total_tax_shop_amount as tax_amount, + (li.quantity * li.price_shop_amount) as total_amount, t.transaction_id as payment_id, null as payment_method_id, t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here diff --git a/packages.yml b/packages.yml index 9478ce61..b3030e8e 100644 --- a/packages.yml +++ b/packages.yml @@ -1,6 +1,6 @@ packages: # - package: fivetran/shopify_source # version: [">=0.18.0", "<0.19.0"] - +# - local: ../ECommerce/Shopify/dbt_shopify_source - git: https://github.com/fivetran/dbt_shopify_source.git revision: update/graphql \ No newline at end of file From ef96b8bfdaae9173f8f14f1308794a1af01e9068 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Wed, 23 Jul 2025 09:24:58 -0400 Subject: [PATCH 08/34] Update/graphql jamie (#111) * Tweaks * Seeds and vars --- integration_tests/dbt_project.yml | 94 +++++++++++++++++++ .../shopify_gql_abandoned_checkout_data.csv | 11 +++ ..._abandoned_checkout_discount_code_data.csv | 11 +++ .../seeds/shopify_gql_collection_data.csv | 11 +++ .../seeds/shopify_gql_collection_product.csv | 11 +++ .../shopify_gql_collection_rule_data.csv | 11 +++ .../shopify_gql_customer_address_data.csv | 11 +++ .../seeds/shopify_gql_customer_data.csv | 11 +++ .../seeds/shopify_gql_customer_tag_data.csv | 11 +++ .../seeds/shopify_gql_customer_visit_data.csv | 11 +++ .../shopify_gql_discount_allocation_data.csv | 11 +++ .../shopify_gql_discount_application_data.csv | 11 +++ .../shopify_gql_discount_code_app_data.csv | 11 +++ .../shopify_gql_discount_code_basic_data.csv | 11 +++ .../shopify_gql_discount_code_bxgy_data.csv | 11 +++ ...y_gql_discount_code_free_shipping_data.csv | 11 +++ .../shopify_gql_discount_redeem_code_data.csv | 11 +++ .../seeds/shopify_gql_fulfillment_data.csv | 11 +++ .../shopify_gql_fulfillment_event_data.csv | 11 +++ ...y_gql_fulfillment_order_line_item_data.csv | 11 +++ ...ify_gql_fulfillment_tracking_info_data.csv | 11 +++ .../seeds/shopify_gql_inventory_item_data.csv | 11 +++ .../shopify_gql_inventory_level_data.csv | 11 +++ .../shopify_gql_inventory_quantity_data.csv | 11 +++ .../seeds/shopify_gql_location_data.csv | 11 +++ .../seeds/shopify_gql_media_data.csv | 11 +++ .../seeds/shopify_gql_media_image_data.csv | 11 +++ .../seeds/shopify_gql_metafield_data.csv | 11 +++ .../shopify_gql_order_adjustment_data.csv | 11 +++ .../seeds/shopify_gql_order_data.csv | 10 ++ .../shopify_gql_order_discount_code_data.csv | 11 +++ .../seeds/shopify_gql_order_line_data.csv | 11 +++ .../shopify_gql_order_line_refund_data.csv | 11 +++ .../shopify_gql_order_note_attribute_data.csv | 11 +++ .../shopify_gql_order_shipping_line_data.csv | 11 +++ ...opify_gql_order_shipping_tax_line_data.csv | 11 +++ .../seeds/shopify_gql_order_tag_data.csv | 11 +++ .../seeds/shopify_gql_product_data.csv | 11 +++ .../seeds/shopify_gql_product_media_data.csv | 11 +++ .../seeds/shopify_gql_product_tag_data.csv | 11 +++ .../shopify_gql_product_variant_data.csv | 11 +++ ...shopify_gql_product_variant_media_data.csv | 11 +++ .../seeds/shopify_gql_refund_data.csv | 11 +++ .../seeds/shopify_gql_shop_data.csv | 11 +++ .../seeds/shopify_gql_tax_line_data.csv | 11 +++ .../shopify_gql_tender_transaction_data.csv | 11 +++ .../seeds/shopify_gql_transaction_data.csv | 11 +++ .../int_shopify_gql__abandoned_checkout.sql | 2 +- .../base/int_shopify_gql__collection.sql | 16 +++- .../base/int_shopify_gql__fulfillment.sql | 17 +++- .../base/int_shopify_gql__order.sql | 16 +++- .../graphql/shopify_gql__inventory_levels.sql | 2 +- 52 files changed, 639 insertions(+), 13 deletions(-) create mode 100644 integration_tests/seeds/shopify_gql_abandoned_checkout_data.csv create mode 100644 integration_tests/seeds/shopify_gql_abandoned_checkout_discount_code_data.csv create mode 100644 integration_tests/seeds/shopify_gql_collection_data.csv create mode 100644 integration_tests/seeds/shopify_gql_collection_product.csv create mode 100644 integration_tests/seeds/shopify_gql_collection_rule_data.csv create mode 100644 integration_tests/seeds/shopify_gql_customer_address_data.csv create mode 100644 integration_tests/seeds/shopify_gql_customer_data.csv create mode 100644 integration_tests/seeds/shopify_gql_customer_tag_data.csv create mode 100644 integration_tests/seeds/shopify_gql_customer_visit_data.csv create mode 100644 integration_tests/seeds/shopify_gql_discount_allocation_data.csv create mode 100644 integration_tests/seeds/shopify_gql_discount_application_data.csv create mode 100644 integration_tests/seeds/shopify_gql_discount_code_app_data.csv create mode 100644 integration_tests/seeds/shopify_gql_discount_code_basic_data.csv create mode 100644 integration_tests/seeds/shopify_gql_discount_code_bxgy_data.csv create mode 100644 integration_tests/seeds/shopify_gql_discount_code_free_shipping_data.csv create mode 100644 integration_tests/seeds/shopify_gql_discount_redeem_code_data.csv create mode 100644 integration_tests/seeds/shopify_gql_fulfillment_data.csv create mode 100644 integration_tests/seeds/shopify_gql_fulfillment_event_data.csv create mode 100644 integration_tests/seeds/shopify_gql_fulfillment_order_line_item_data.csv create mode 100644 integration_tests/seeds/shopify_gql_fulfillment_tracking_info_data.csv create mode 100644 integration_tests/seeds/shopify_gql_inventory_item_data.csv create mode 100644 integration_tests/seeds/shopify_gql_inventory_level_data.csv create mode 100644 integration_tests/seeds/shopify_gql_inventory_quantity_data.csv create mode 100644 integration_tests/seeds/shopify_gql_location_data.csv create mode 100644 integration_tests/seeds/shopify_gql_media_data.csv create mode 100644 integration_tests/seeds/shopify_gql_media_image_data.csv create mode 100644 integration_tests/seeds/shopify_gql_metafield_data.csv create mode 100644 integration_tests/seeds/shopify_gql_order_adjustment_data.csv create mode 100644 integration_tests/seeds/shopify_gql_order_data.csv create mode 100644 integration_tests/seeds/shopify_gql_order_discount_code_data.csv create mode 100644 integration_tests/seeds/shopify_gql_order_line_data.csv create mode 100644 integration_tests/seeds/shopify_gql_order_line_refund_data.csv create mode 100644 integration_tests/seeds/shopify_gql_order_note_attribute_data.csv create mode 100644 integration_tests/seeds/shopify_gql_order_shipping_line_data.csv create mode 100644 integration_tests/seeds/shopify_gql_order_shipping_tax_line_data.csv create mode 100644 integration_tests/seeds/shopify_gql_order_tag_data.csv create mode 100644 integration_tests/seeds/shopify_gql_product_data.csv create mode 100644 integration_tests/seeds/shopify_gql_product_media_data.csv create mode 100644 integration_tests/seeds/shopify_gql_product_tag_data.csv create mode 100644 integration_tests/seeds/shopify_gql_product_variant_data.csv create mode 100644 integration_tests/seeds/shopify_gql_product_variant_media_data.csv create mode 100644 integration_tests/seeds/shopify_gql_refund_data.csv create mode 100644 integration_tests/seeds/shopify_gql_shop_data.csv create mode 100644 integration_tests/seeds/shopify_gql_tax_line_data.csv create mode 100644 integration_tests/seeds/shopify_gql_tender_transaction_data.csv create mode 100644 integration_tests/seeds/shopify_gql_transaction_data.csv diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index fc24665b..2c8420b6 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -62,6 +62,44 @@ vars: shopify_fulfillment_event_identifier: "shopify_fulfillment_event_data" shopify_tax_line_identifier: "shopify_tax_line_data" + shopify_gql_abandoned_checkout_identifier: "shopify_gql_abandoned_checkout_data" + shopify_gql_collection_product_identifier: "shopify_gql_collection_product_data" + shopify_gql_collection_identifier: "shopify_gql_collection_data" + shopify_gql_customer_tag_identifier: "shopify_gql_customer_tag_data" + shopify_gql_discount_allocation_identifier: "shopify_gql_discount_allocation_data" + shopify_gql_discount_application_identifier: "shopify_gql_discount_application_data" + shopify_gql_discount_code_app_identifier: "shopify_gql_discount_code_app_data" + shopify_gql_discount_code_basic_identifier: "shopify_gql_discount_code_basic_data" + shopify_gql_discount_code_bxgy_identifier: "shopify_gql_discount_code_bxgy_data" + shopify_gql_discount_code_free_shipping_identifier: "shopify_gql_discount_code_free_shipping_data" + shopify_gql_discount_redeem_code_identifier: "shopify_gql_discount_redeem_code_data" + shopify_gql_fulfillment_identifier: "shopify_gql_fulfillment_data" + shopify_gql_inventory_item_identifier: "shopify_gql_inventory_item_data" + shopify_gql_inventory_level_identifier: "shopify_gql_inventory_level_data" + shopify_gql_inventory_quantity_identifier: "shopify_gql_inventory_quantity_data" + shopify_gql_location_identifier: "shopify_gql_location_data" + shopify_gql_media_identifier: "shopify_gql_media_data" + shopify_gql_media_image_identifier: "shopify_gql_media_image_data" + shopify_gql_metafield_identifier: "shopify_gql_metafield_data" + shopify_gql_order_note_attribute_identifier: "shopify_gql_order_note_attribute_data" + shopify_gql_order_shipping_line_identifier: "shopify_gql_order_shipping_line_data" + shopify_gql_order_shipping_tax_line_identifier: "shopify_gql_order_shipping_tax_line_data" + shopify_gql_order_tag_identifier: "shopify_gql_order_tag_data" + shopify_gql_product_media_identifier: "shopify_gql_product_media_data" + shopify_gql_product_variant_media_identifier: "shopify_gql_product_variant_media_data" + shopify_gql_product_tag_identifier: "shopify_gql_product_tag_data" + shopify_gql_shop_identifier: "shopify_gql_shop_data" + shopify_gql_tender_transaction_identifier: "shopify_gql_tender_transaction_data" + shopify_gql_abandoned_checkout_discount_code_identifier: "shopify_gql_abandoned_checkout_discount_code_data" + shopify_gql_order_discount_code_identifier: "shopify_gql_order_discount_code_data" + shopify_gql_fulfillment_event_identifier: "shopify_gql_fulfillment_event_data" + shopify_gql_tax_line_identifier: "shopify_gql_tax_line_data" + shopify_gql_fulfillment_tracking_info_identifier: "shopify_gql_fulfillment_tracking_info_data" + shopify_gql_fulfillment_order_line_item_identifier: "shopify_gql_fulfillment_order_line_item_data" + shopify_gql_customer_visit_identifier: "shopify_gql_customer_visit_data" + shopify_gql_customer_address_identifier: "shopify_gql_customer_address_data" + shopify_gql_collection_rule_identifier: "shopify_gql_collection_rule_data" + dispatch: - macro_namespace: dbt_utils search_order: ['spark_utils', 'dbt_utils'] @@ -80,6 +118,12 @@ seeds: _fivetran_synced: timestamp id: "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}" default_address_id: "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}" + shopify_gql_customer_data: + +column_types: + phone: "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}" + shopify_gql_customer_address_data: + +column_types: + phone: "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}" shopify_order_data: +column_types: created_at: timestamp @@ -92,6 +136,22 @@ seeds: customer_id: "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}" location_id: "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}" user_id: "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}" + shopify_gql_order_data: + +column_types: + billing_address_phone: "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}" + shipping_address_phone: "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}" + total_shipping_price_set_pres_amount: float + total_shipping_price_set_shop_amount: float + total_tax_set_pres_amount: float + total_tax_set_shop_amount: float + total_discounts_set_pres_amount: float + total_discounts_set_shop_amount: float + total_price_set_pres_amount: float + total_price_set_shop_amount: float + subtotal_price_set_pres_amount: float + subtotal_price_set_shop_amount: float + total_tip_received_set_pres_amount: float + total_tip_received_set_shop_amount: float shopify_order_line_data: +column_types: _fivetran_synced: timestamp @@ -99,6 +159,9 @@ seeds: id: "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}" product_id: "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}" variant_id: "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}" + shopify_gql_order_line_refund_data: + +column_types: + quantity: float shopify_order_line_refund_data: +column_types: _fivetran_synced: timestamp @@ -124,6 +187,9 @@ seeds: product_id: "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}" inventory_item_id: "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}" legacy_resource_id: "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}" + shopify_gql_product_variant_data: + +column_types: + compare_at_price: "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}" shopify_product_variant_media_data: +column_types: product_variant_id: "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}" @@ -156,6 +222,22 @@ seeds: closed_at: timestamp created_at: timestamp updated_at: timestamp + shopify_gql_abandoned_checkout_data: + +column_types: + billing_address_phone: "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}" + shipping_address_phone: "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}" + subtotal_price_set_pres_amount: float + subtotal_price_set_shop_amount: float + total_discount_set_shop_amount: float + total_discount_set_pres_amount: float + total_duties_set_shop_amount: float + total_duties_set_pres_amount: float + total_line_items_price_set_shop_amount: float + total_line_items_price_set_pres_amount: float + total_price_set_shop_amount: float + total_price_set_pres_amount: float + total_tax_set_shop_amount: float + total_tax_set_pres_amount: float shopify_order_discount_code_data: +column_types: order_id: "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}" @@ -167,6 +249,9 @@ seeds: +column_types: discounted_price: float price: float + shopify_gql_order_shipping_line_data: + +column_types: + phone: "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}" shopify_tax_line_data: +column_types: price: float @@ -190,6 +275,9 @@ seeds: taxes_included: boolean google_apps_login_enabled: boolean county_taxes: boolean + shopify_gql_shop_data: + +column_types: + billing_address_phone: "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}" shopify_inventory_level_data: +column_types: updated_at: timestamp @@ -238,6 +326,9 @@ seeds: total_sales_currency_code: "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}" updated_at: timestamp usage_limit: integer + shopify_gql_discount_code_basic_data: + +column_types: + total_sales_amount: float shopify_discount_code_bxgy_data: +column_types: id: "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}" @@ -339,6 +430,9 @@ seeds: type: "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}" value: float value_type: "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}" + shopify_gql_location_data: + +column_types: + phone: "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}" shopify_media_data: +column_types: id: "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}" diff --git a/integration_tests/seeds/shopify_gql_abandoned_checkout_data.csv b/integration_tests/seeds/shopify_gql_abandoned_checkout_data.csv new file mode 100644 index 00000000..1ef7aa60 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_abandoned_checkout_data.csv @@ -0,0 +1,11 @@ +_fivetran_deleted,_fivetran_synced,abandoned_checkout_url,billing_address_address_1,billing_address_address_2,billing_address_city,billing_address_company,billing_address_country,billing_address_country_code,billing_address_first_name,billing_address_last_name,billing_address_latitude,billing_address_longitude,billing_address_name,billing_address_phone,billing_address_province,billing_address_province_code,billing_address_zip,created_at,completed_at,customer_id,id,name,note,shipping_address_address_1,shipping_address_address_2,shipping_address_city,shipping_address_company,shipping_address_country,shipping_address_country_code,shipping_address_first_name,shipping_address_last_name,shipping_address_latitude,shipping_address_longitude,shipping_address_name,shipping_address_phone,shipping_address_province,shipping_address_province_code,shipping_address_zip,subtotal_price_set_pres_amount,subtotal_price_set_pres_currency_code,subtotal_price_set_shop_amount,subtotal_price_set_shop_currency_code,taxes_included,total_discount_set_pres_amount,total_discount_set_pres_currency_code,total_discount_set_shop_amount,total_discount_set_shop_currency_code,total_duties_set_pres_amount,total_duties_set_pres_currency_code,total_duties_set_shop_amount,total_duties_set_shop_currency_code,total_line_items_price_set_pres_amount,total_line_items_price_set_pres_currency_code,total_line_items_price_set_shop_amount,total_line_items_price_set_shop_currency_code,total_price_set_pres_amount,total_price_set_pres_currency_code,total_price_set_shop_amount,total_price_set_shop_currency_code,total_tax_set_pres_amount,total_tax_set_pres_currency_code,total_tax_set_shop_amount,total_tax_set_shop_currency_code,updated_at +FALSE,2025-07-18 10:00:00,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,US,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,12.3456,65.4321,bea81c1795a612d8fc3a232b156467bc,1111111111,bea81c1795a612d8fc3a232b156467bc,CA,22222,2025-07-17 09:00:00,2025-07-17 10:00:00,1001,5001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,US,US,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,45.6789,23.4567,bea81c1795a612d8fc3a232b156467bc,2222222222,CA,USD,90210,10.00,USD,2.00,USD,TRUE,0.00,USD,0.00,USD,0.00,USD,10.00,USD,10.00,USD,10.00,USD,21.99,USD,21.99,USD,2.00,USD,2.00,USD,2025-07-18 10:00:00 +TRUE,2025-07-18 10:01:00,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,CA,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,13.0000,66.0000,bea81c1795a612d8fc3a232b156467bd,3333333333,bea81c1795a612d8fc3a232b156467bd,ON,33333,2025-07-16 08:00:00,2025-07-16 09:30:00,1002,5002,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,CA,CA,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,46.0000,24.0000,bea81c1795a612d8fc3a232b156467bd,4444444444,ON,USD,90210,10.00,USD,2.00,USD,TRUE,0.00,USD,0.00,USD,0.00,USD,19.99,USD,19.99,USD,24.99,USD,55.99,USD,55.99,USD,6.00,USD,6.00,CAD,2025-07-18 10:01:00 +FALSE,2025-07-18 10:02:00,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,,,,,,,bea81c1795a612d8fc3a232b156467bc,20.0000,20.0000,,,,,33333,2025-07-15 07:00:00,2025-07-15 07:00:00,1003,5003,,,,,,,,,,,,,,,CA,USD,90210,10.00,USD,2.00,USD,TRUE,0.00,USD,0.00,USD,0.00,USD,99.99,USD,99.99,USD,99.99,USD,31.99,USD,2.00,USD,2.00,USD,2.00,USD,2025-07-18 10:02:00 +TRUE,2025-07-18 10:03:00,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467bf,,,,,,,bea81c1795a612d8fc3a232b156467bd,21.4321,21.4321,,,,,33333,2025-07-14 06:00:00,2025-07-14 06:00:00,1004,5004,,,,,,,,,,,,,,,ON,USD,90210,10.00,USD,10.00,USD,TRUE,0.00,USD,1.00,USD,1.00,USD,10.00,USD,35.00,USD,10.00,USD,62.00,USD,3.00,USD,3.00,USD,3.00,USD,2025-07-18 10:03:00 +FALSE,2025-07-18 10:04:00,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c0,,,,,,,,,,,,,,33333,2025-07-13 05:00:00,2025-07-13 05:00:00,1005,5005,,,,,,,,,,,,,,,,USD,90210,10.00,USD,10.00,USD,FALSE,0.00,USD,0.50,USD,0.50,USD,10.00,USD,15.00,USD,10.00,USD,10.00,USD,0.00,USD,0.00,USD,0.00,USD,2025-07-18 10:04:00 +TRUE,2025-07-18 10:05:00,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,,,,,,,,,,,,,,,2025-07-12 04:00:00,,1006,5006,,,,,,,,,,,,,,,,USD,90210,19.99,USD,10.00,USD,FALSE,5.00,USD,0.00,USD,5.00,USD,19.99,USD,19.99,USD,24.99,USD,24.99,USD,5.00,USD,5.00,USD,5.00,USD,2025-07-18 10:05:00 +FALSE,2025-07-18 10:06:00,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2,,,,,,,,,,,,,,,2025-07-11 03:00:00,,1007,5007,,,,,,,,,,,,,,,,USD,90210,99.99,USD,10.00,USD,FALSE,0.00,USD,0.00,USD,0.00,USD,99.99,USD,99.99,USD,99.99,USD,99.99,USD,0.00,USD,0.00,USD,0.00,USD,2025-07-18 10:06:00 +TRUE,2025-07-18 10:07:00,bea81c1795a612d8fc3a232b156467c3,bea81c1795a612d8fc3a232b156467c3,,,,,,,,,,,,,,,2025-07-10 02:00:00,,1008,5008,,,,,,,,,,,,,,,,USD,90210,35.00,USD,10.00,USD,FALSE,3.00,USD,1.00,USD,1.00,USD,35.00,USD,35.00,USD,36.00,USD,36.00,USD,1.00,USD,1.00,USD,1.00,USD,2025-07-18 10:07:00 +FALSE,2025-07-18 10:08:00,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c4,,,,,,,,,,,,,,,2025-07-09 01:00:00,,1009,5009,,,,,,,,,,,,,,,,USD,90210,15.00,USD,10.00,USD,FALSE,1.00,USD,0.50,USD,0.50,USD,15.00,USD,15.00,USD,15.50,USD,15.50,USD,0.50,USD,0.50,USD,0.50,USD,2025-07-18 10:08:00 +TRUE,2025-07-18 10:09:00,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5,,,,,,,,,,,,,,,2025-07-08 00:00:00,,1010,5010,,,,,,,,,,,,,,,,USD,90210,120.00,USD,10.00,USD,FALSE,10.00,USD,5.00,USD,5.00,USD,120.00,USD,120.00,USD,125.00,USD,125.00,USD,5.00,USD,5.00,USD,5.00,USD,2025-07-18 10:09:00 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_abandoned_checkout_discount_code_data.csv b/integration_tests/seeds/shopify_gql_abandoned_checkout_discount_code_data.csv new file mode 100644 index 00000000..2f74a6a6 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_abandoned_checkout_discount_code_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,checkout_id,code,index +2025-07-17 14:32:45,1001,bea81c1795a612d8fc3a232b156467bc,0 +2025-07-17 14:32:45,1002,fc1b3adf4c3740d5b04ea1c6d97fae91,1 +2025-07-17 14:32:45,1003,2c3f0d971d9a479c9630ab14beac676e,0 +2025-07-17 14:32:45,1004,9f43fd5b2c2b4e5b96ea4ad470abb2e1,0 +2025-07-17 14:32:45,1005,74c22128ed404a60aefb930c35c8a38c,1 +2025-07-17 14:32:45,1006,1c840b4c0418451bb0489e4b5ec9dfdd,0 +2025-07-17 14:32:45,1007,6c5d7716f4f04eafbb0d6f2295c9eacd,2 +2025-07-17 14:32:45,1008,b66a18a3c2cc4cabbf0bdfac08b0d1f7,0 +2025-07-17 14:32:45,1009,c45a59b6d5e34f26aa1b848c3e3cf89b,1 +2025-07-17 14:32:45,1010,ae81c12595694cc5aa1c2285e0f6880b,0 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_collection_data.csv b/integration_tests/seeds/shopify_gql_collection_data.csv new file mode 100644 index 00000000..78aa3064 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_collection_data.csv @@ -0,0 +1,11 @@ +_fivetran_deleted,_fivetran_synced,applied_disjunctively,handle,id,sort_order,title,updated_at +FALSE,2025-07-18 11:00:00,TRUE,bea81c1795a612d8fc3a232b156467bc,10001,best-selling,bea81c1795a612d8fc3a232b156467bc,2025-07-17 10:00:00 +TRUE,2025-07-18 11:01:00,FALSE,bea81c1795a612d8fc3a232b156467bd,10002,alpha-asc,bea81c1795a612d8fc3a232b156467bd,2025-07-17 11:00:00 +FALSE,2025-07-18 11:02:00,TRUE,bea81c1795a612d8fc3a232b156467be,10003,manual,bea81c1795a612d8fc3a232b156467be,2025-07-17 12:00:00 +TRUE,2025-07-18 11:03:00,FALSE,bea81c1795a612d8fc3a232b156467bf,10004,price-desc,bea81c1795a612d8fc3a232b156467bf,2025-07-17 13:00:00 +FALSE,2025-07-18 11:04:00,TRUE,bea81c1795a612d8fc3a232b156467c0,10005,price-asc,bea81c1795a612d8fc3a232b156467c0,2025-07-17 14:00:00 +TRUE,2025-07-18 11:05:00,FALSE,bea81c1795a612d8fc3a232b156467c1,10006,created-desc,bea81c1795a612d8fc3a232b156467c1,2025-07-17 15:00:00 +FALSE,2025-07-18 11:06:00,TRUE,bea81c1795a612d8fc3a232b156467c2,10007,created-asc,bea81c1795a612d8fc3a232b156467c2,2025-07-17 16:00:00 +TRUE,2025-07-18 11:07:00,FALSE,bea81c1795a612d8fc3a232b156467c3,10008,manual,bea81c1795a612d8fc3a232b156467c3,2025-07-17 17:00:00 +FALSE,2025-07-18 11:08:00,TRUE,bea81c1795a612d8fc3a232b156467c4,10009,best-selling,bea81c1795a612d8fc3a232b156467c4,2025-07-17 18:00:00 +TRUE,2025-07-18 11:09:00,FALSE,bea81c1795a612d8fc3a232b156467c5,10010,alpha-desc,bea81c1795a612d8fc3a232b156467c5,2025-07-17 19:00:00 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_collection_product.csv b/integration_tests/seeds/shopify_gql_collection_product.csv new file mode 100644 index 00000000..4fac7296 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_collection_product.csv @@ -0,0 +1,11 @@ +_fivetran_synced,collection_id,product_id +2025-07-18 11:00:00,2001,3001 +2025-07-18 11:01:00,2001,3002 +2025-07-18 11:02:00,2002,3003 +2025-07-18 11:03:00,2002,3004 +2025-07-18 11:04:00,2003,3005 +2025-07-18 11:05:00,2003,3006 +2025-07-18 11:06:00,2004,3007 +2025-07-18 11:07:00,2004,3008 +2025-07-18 11:08:00,2005,3009 +2025-07-18 11:09:00,2005,3010 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_collection_rule_data.csv b/integration_tests/seeds/shopify_gql_collection_rule_data.csv new file mode 100644 index 00000000..773b9092 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_collection_rule_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,collection_id,index,condition,relation,columns +2025-07-18 11:00:00,2001,0,bea81c1795a612d8fc3a232b156467bc,equals,bea81c1795a612d8fc3a232b156467bc +2025-07-18 11:01:00,2001,1,bea81c1795a612d8fc3a232b156467bd,not_equals,bea81c1795a612d8fc3a232b156467bd +2025-07-18 11:02:00,2002,0,bea81c1795a612d8fc3a232b156467be,greater_than,bea81c1795a612d8fc3a232b156467be +2025-07-18 11:03:00,2003,0,bea81c1795a612d8fc3a232b156467bf,less_than,bea81c1795a612d8fc3a232b156467bf +2025-07-18 11:04:00,2003,1,bea81c1795a612d8fc3a232b156467c0,starts_with,bea81c1795a612d8fc3a232b156467c0 +2025-07-18 11:05:00,2004,0,bea81c1795a612d8fc3a232b156467c1,ends_with,bea81c1795a612d8fc3a232b156467c1 +2025-07-18 11:06:00,2005,0,bea81c1795a612d8fc3a232b156467c2,contains,bea81c1795a612d8fc3a232b156467c2 +2025-07-18 11:07:00,2005,1,bea81c1795a612d8fc3a232b156467c3,not_contains,bea81c1795a612d8fc3a232b156467c3 +2025-07-18 11:08:00,2006,0,bea81c1795a612d8fc3a232b156467c4,is_set,bea81c1795a612d8fc3a232b156467c4 +2025-07-18 11:09:00,2007,0,bea81c1795a612d8fc3a232b156467c5,is_not_set,bea81c1795a612d8fc3a232b156467c5 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_customer_address_data.csv b/integration_tests/seeds/shopify_gql_customer_address_data.csv new file mode 100644 index 00000000..dc3f3ca6 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_customer_address_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,customer_id,id,address_1,address_2,city,company,country,country_code,first_name,is_default,last_name,latitude,longitude,name,phone,province,province_code,zip,validation_result_summary,timezone,coordinates_validated +2025-07-18 10:10:00,1001,9001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,US,US,bea81c1795a612d8fc3a232b156467bc,TRUE,bea81c1795a612d8fc3a232b156467bc,12.3456,65.4321,bea81c1795a612d8fc3a232b156467bc,1111111111,CA,CA,22222,bea81c1795a612d8fc3a232b156467bc,America/New_York,TRUE +2025-07-18 10:11:00,1002,9002,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,US,CA,bea81c1795a612d8fc3a232b156467bd,FALSE,bea81c1795a612d8fc3a232b156467bd,13.0000,66.0000,bea81c1795a612d8fc3a232b156467bd,2222222222,ON,ON,33333,bea81c1795a612d8fc3a232b156467bd,America/Toronto,FALSE +2025-07-18 10:12:00,1003,9003,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467be,US,US,bea81c1795a612d8fc3a232b156467be,TRUE,bea81c1795a612d8fc3a232b156467be,10.0000,20.0000,bea81c1795a612d8fc3a232b156467be,3333333333,NY,NY,10001,bea81c1795a612d8fc3a232b156467be,America/New_York,TRUE +2025-07-18 10:13:00,1004,9004,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467c1,US,US,bea81c1795a612d8fc3a232b156467bf,FALSE,bea81c1795a612d8fc3a232b156467bf,11.1111,21.2222,bea81c1795a612d8fc3a232b156467bf,4444444444,TX,TX,73301,bea81c1795a612d8fc3a232b156467bf,America/Chicago,FALSE +2025-07-18 10:14:00,1005,9005,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467c1,US,CA,bea81c1795a612d8fc3a232b156467c0,TRUE,bea81c1795a612d8fc3a232b156467c0,15.5555,25.6666,bea81c1795a612d8fc3a232b156467c0,5555555555,BC,BC,33333,bea81c1795a612d8fc3a232b156467c0,America/Vancouver,TRUE +2025-07-18 10:15:00,1006,9006,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467c1,US,US,bea81c1795a612d8fc3a232b156467c1,FALSE,bea81c1795a612d8fc3a232b156467c1,17.7777,27.8888,bea81c1795a612d8fc3a232b156467c1,6666666666,FL,FL,33101,bea81c1795a612d8fc3a232b156467c1,America/New_York,FALSE +2025-07-18 10:16:00,1007,9007,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467c1,US,CA,bea81c1795a612d8fc3a232b156467c1,FALSE,bea81c1795a612d8fc3a232b156467c3,29.9999,27.8888,bea81c1795a612d8fc3a232b156467c1,8888888888,WA,WA,98101,bea81c1795a612d8fc3a232b156467c3,America/Los_Angeles,FALSE +2025-07-18 10:17:00,1008,9008,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467c1,US,US,bea81c1795a612d8fc3a232b156467c3,FALSE,bea81c1795a612d8fc3a232b156467c3,20.0000,30.0000,bea81c1795a612d8fc3a232b156467c3,8888888888,QC,QC,98101,bea81c1795a612d8fc3a232b156467c3,America/Montreal,FALSE +2025-07-18 10:18:00,1009,9009,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467c1,US,US,bea81c1795a612d8fc3a232b156467c1,FALSE,bea81c1795a612d8fc3a232b156467c3,31.2222,27.8888,bea81c1795a612d8fc3a232b156467c1,8888888888,IL,IL,60007,bea81c1795a612d8fc3a232b156467c3,America/Chicago,TRUE +2025-07-18 10:19:00,1010,9010,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467c5,US,US,bea81c1795a612d8fc3a232b156467c1,FALSE,bea81c1795a612d8fc3a232b156467c3,32.3333,27.8888,bea81c1795a612d8fc3a232b156467c1,8888888888,MA,MA,02108,bea81c1795a612d8fc3a232b156467c3,America/New_York,TRUE \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_customer_data.csv b/integration_tests/seeds/shopify_gql_customer_data.csv new file mode 100644 index 00000000..165ca590 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_customer_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,created_at,currency,email,email_marketing_consent_opt_in_level,email_marketing_consent_state,email_marketing_consent_updated_at,first_name,id,last_name,note,orders_count,phone,state,tax_exempt,total_spent,updated_at,verified_email +2025-07-18 11:00:00,2025-07-10 08:00:00,USD,bea81c1795a612d8fc3a232b156467aa,SINGLE_OPT_IN,SUBSCRIBED,2025-07-10 08:30:00,bea81c1795a612d8fc3a232b156467aa,1001,bea81c1795a612d8fc3a232b156467aa,bea81c1795a612d8fc3a232b156467aa,3,1111111111,enabled,FALSE,99.99,2025-07-18 11:00:00,TRUE +2025-07-18 11:01:00,2025-07-09 07:30:00,CAD,bea81c1795a612d8fc3a232b156467ab,SINGLE_OPT_IN,NOT_SUBSCRIBED,2025-07-09 07:35:00,bea81c1795a612d8fc3a232b156467ab,1002,bea81c1795a612d8fc3a232b156467ab,bea81c1795a612d8fc3a232b156467ab,0,2222222222,disabled,TRUE,0.00,2025-07-18 11:01:00,FALSE +2025-07-18 11:02:00,2025-07-08 06:45:00,USD,bea81c1795a612d8fc3a232b156467ac,CONFIRMED_OPT_IN,SUBSCRIBED,2025-07-08 07:00:00,bea81c1795a612d8fc3a232b156467ac,1003,bea81c1795a612d8fc3a232b156467ac,bea81c1795a612d8fc3a232b156467ac,2,3333333333,enabled,FALSE,150.25,2025-07-18 11:02:00,TRUE +2025-07-18 11:03:00,2025-07-07 05:15:00,USD,bea81c1795a612d8fc3a232b156467ad,,UNSUBSCRIBED,2025-07-07 05:20:00,bea81c1795a612d8fc3a232b156467ad,1004,bea81c1795a612d8fc3a232b156467ad,,1,4444444444,disabled,TRUE,10.00,2025-07-18 11:03:00,FALSE +2025-07-18 11:04:00,2025-07-06 04:30:00,CAD,bea81c1795a612d8fc3a232b156467ae,SINGLE_OPT_IN,SUBSCRIBED,2025-07-06 04:45:00,bea81c1795a612d8fc3a232b156467ae,1005,bea81c1795a612d8fc3a232b156467ae,bea81c1795a612d8fc3a232b156467ae,4,5555555555,enabled,FALSE,205.00,2025-07-18 11:04:00,TRUE +2025-07-18 11:05:00,2025-07-05 03:20:00,USD,bea81c1795a612d8fc3a232b156467af,,NOT_SUBSCRIBED,2025-07-05 03:25:00,bea81c1795a612d8fc3a232b156467af,1006,bea81c1795a612d8fc3a232b156467af,,0,6666666666,enabled,FALSE,0.00,2025-07-18 11:05:00,FALSE +2025-07-18 11:06:00,2025-07-04 02:15:00,CAD,bea81c1795a612d8fc3a232b156467b0,CONFIRMED_OPT_IN,SUBSCRIBED,2025-07-04 02:30:00,bea81c1795a612d8fc3a232b156467b0,1007,bea81c1795a612d8fc3a232b156467b0,bea81c1795a612d8fc3a232b156467b0,5,7777777777,disabled,TRUE,450.00,2025-07-18 11:06:00,TRUE +2025-07-18 11:07:00,2025-07-03 01:10:00,USD,bea81c1795a612d8fc3a232b156467b1,,UNSUBSCRIBED,2025-07-03 01:15:00,bea81c1795a612d8fc3a232b156467b1,1008,bea81c1795a612d8fc3a232b156467b1,,1,8888888888,enabled,FALSE,59.99,2025-07-18 11:07:00,FALSE +2025-07-18 11:08:00,2025-07-02 00:05:00,USD,bea81c1795a612d8fc3a232b156467b2,SINGLE_OPT_IN,SUBSCRIBED,2025-07-02 00:30:00,bea81c1795a612d8fc3a232b156467b2,1009,bea81c1795a612d8fc3a232b156467b2,bea81c1795a612d8fc3a232b156467b2,3,9999999999,disabled,TRUE,85.75,2025-07-18 11:08:00,TRUE +2025-07-18 11:09:00,2025-07-01 00:00:00,CAD,bea81c1795a612d8fc3a232b156467b3,CONFIRMED_OPT_IN,NOT_SUBSCRIBED,2025-07-01 00:10:00,bea81c1795a612d8fc3a232b156467b3,1010,bea81c1795a612d8fc3a232b156467b3,,2,1010101010,enabled,FALSE,34.00,2025-07-18 11:09:00,TRUE \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_customer_tag_data.csv b/integration_tests/seeds/shopify_gql_customer_tag_data.csv new file mode 100644 index 00000000..7bddf8e4 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_customer_tag_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,index,customer_id,value +2025-07-18 10:00:00,1,1001,bea81c1795a612d8fc3a232b156467bc +2025-07-18 10:00:01,2,1001,bea81c1795a612d8fc3a232b156467bd +2025-07-18 10:00:02,1,1002,bea81c1795a612d8fc3a232b156467be +2025-07-18 10:00:03,1,1003,bea81c1795a612d8fc3a232b156467bf +2025-07-18 10:00:04,2,1003,bea81c1795a612d8fc3a232b156467c0 +2025-07-18 10:00:05,3,1003,bea81c1795a612d8fc3a232b156467c1 +2025-07-18 10:00:06,1,1004,bea81c1795a612d8fc3a232b156467c2 +2025-07-18 10:00:07,1,1005,bea81c1795a612d8fc3a232b156467c3 +2025-07-18 10:00:08,1,1006,bea81c1795a612d8fc3a232b156467c4 +2025-07-18 10:00:09,1,1007,bea81c1795a612d8fc3a232b156467c5 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_customer_visit_data.csv b/integration_tests/seeds/shopify_gql_customer_visit_data.csv new file mode 100644 index 00000000..e6ad0a59 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_customer_visit_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,id,order_id,type,landing_page,landing_page_html,occurred_at,referral_code,referral_info_html,referrer_url,source,source_description,source_type,utm_parameters_campaign,utm_parameters_content,utm_parameters_medium,utm_parameters_source,utm_parameters_term +2025-07-18 11:00:00,2001,5001,web,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,2025-07-17 10:00:00,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,google,bea81c1795a612d8fc3a232b156467bc,search,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,email,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc +2025-07-18 11:01:00,2002,5002,email,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,2025-07-16 11:00:00,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,facebook,bea81c1795a612d8fc3a232b156467bd,social,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,social,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd +2025-07-18 11:02:00,2003,5003,search,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,2025-07-15 12:00:00,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,bing,bea81c1795a612d8fc3a232b156467be,search,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,search,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be +2025-07-18 11:03:00,2004,5004,web,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467bf,2025-07-14 13:00:00,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467bf,direct,bea81c1795a612d8fc3a232b156467bf,direct,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467bf,direct,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467bf +2025-07-18 11:04:00,2005,5005,email,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c0,2025-07-13 14:00:00,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c0,newsletter,bea81c1795a612d8fc3a232b156467c0,email,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c0,email,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c0 +2025-07-18 11:05:00,2006,5006,web,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,2025-07-12 15:00:00,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,reddit,bea81c1795a612d8fc3a232b156467c1,forum,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,forum,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1 +2025-07-18 11:06:00,2007,5007,social,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2,2025-07-11 16:00:00,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2,twitter,bea81c1795a612d8fc3a232b156467c2,social,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2,social,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2 +2025-07-18 11:07:00,2008,5008,web,bea81c1795a612d8fc3a232b156467c3,bea81c1795a612d8fc3a232b156467c3,2025-07-10 17:00:00,bea81c1795a612d8fc3a232b156467c3,bea81c1795a612d8fc3a232b156467c3,bea81c1795a612d8fc3a232b156467c3,yahoo,bea81c1795a612d8fc3a232b156467c3,search,bea81c1795a612d8fc3a232b156467c3,bea81c1795a612d8fc3a232b156467c3,search,bea81c1795a612d8fc3a232b156467c3,bea81c1795a612d8fc3a232b156467c3 +2025-07-18 11:08:00,2009,5009,email,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c4,2025-07-09 18:00:00,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c4,mailchimp,bea81c1795a612d8fc3a232b156467c4,email,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c4,email,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c4 +2025-07-18 11:09:00,2010,5010,web,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5,2025-07-08 19:00:00,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5,instagram,bea81c1795a612d8fc3a232b156467c5,social,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5,social,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_discount_allocation_data.csv b/integration_tests/seeds/shopify_gql_discount_allocation_data.csv new file mode 100644 index 00000000..3fa973f9 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_discount_allocation_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,allocated_amount_set_pres_amount,allocated_amount_set_pres_currency_code,allocated_amount_set_shop_amount,allocated_amount_set_shop_currency_code,discount_application_index,index,order_line_id +2025-07-18 10:10:00,5.00,USD,5.00,USD,0,0,10001 +2025-07-18 10:10:01,3.00,USD,3.00,USD,1,1,10002 +2025-07-18 10:10:02,2.50,USD,2.50,USD,0,2,10003 +2025-07-18 10:10:03,1.00,USD,1.00,USD,2,3,10004 +2025-07-18 10:10:04,4.75,USD,4.75,USD,0,4,10005 +2025-07-18 10:10:05,6.00,USD,6.00,USD,1,5,10006 +2025-07-18 10:10:06,7.25,USD,7.25,USD,2,6,10007 +2025-07-18 10:10:07,3.00,USD,3.00,USD,0,7,10008 +2025-07-18 10:10:08,5.50,USD,5.50,USD,1,8,10009 +2025-07-18 10:10:09,8.00,USD,8.00,USD,2,9,10010 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_discount_application_data.csv b/integration_tests/seeds/shopify_gql_discount_application_data.csv new file mode 100644 index 00000000..cf31af7d --- /dev/null +++ b/integration_tests/seeds/shopify_gql_discount_application_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,allocation_method,index,order_id,target_selection,target_type,value_amount,value_currency_code,value_percentage +2025-07-18 10:00:00,bea81c1795a612d8fc3a232b156467bc,0,10001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,10.00,USD,15.0 +2025-07-18 10:01:00,bea81c1795a612d8fc3a232b156467bd,1,10002,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,5.00,USD,10.0 +2025-07-18 10:02:00,bea81c1795a612d8fc3a232b156467be,2,10003,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,20.00,USD,25.0 +2025-07-18 10:03:00,bea81c1795a612d8fc3a232b156467bf,0,10004,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467bf,15.00,USD,20.0 +2025-07-18 10:04:00,bea81c1795a612d8fc3a232b156467c0,1,10005,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c0,7.50,USD,12.5 +2025-07-18 10:05:00,bea81c1795a612d8fc3a232b156467c1,0,10006,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,9.00,USD,14.0 +2025-07-18 10:06:00,bea81c1795a612d8fc3a232b156467c2,2,10007,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2,12.00,USD,18.0 +2025-07-18 10:07:00,bea81c1795a612d8fc3a232b156467c3,1,10008,bea81c1795a612d8fc3a232b156467c3,bea81c1795a612d8fc3a232b156467c3,3.00,USD,5.0 +2025-07-18 10:08:00,bea81c1795a612d8fc3a232b156467c4,0,10009,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c4,8.25,USD,13.0 +2025-07-18 10:09:00,bea81c1795a612d8fc3a232b156467c5,2,10010,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5,11.00,USD,16.5 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_discount_code_app_data.csv b/integration_tests/seeds/shopify_gql_discount_code_app_data.csv new file mode 100644 index 00000000..08e94de5 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_discount_code_app_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,id,title,status,created_at,updated_at,starts_at,ends_at,recurring_cycle_limit,applies_once_per_customer,async_usage_count,usage_limit,codes_count_count,codes_count_precision,combines_with_order_discounts,combines_with_product_discounts,combines_with_shipping_discounts,customer_selection_all_customers,total_sales_amount,total_sales_currency_code +2025-07-18 11:00:00,1001,bea81c1795a612d8fc3a232b156467aa,ACTIVE,2025-07-01 00:00:00,2025-07-05 00:00:00,2025-07-01 00:00:00,2025-07-31 23:59:59,1,TRUE,5,100,10,LOW,TRUE,FALSE,TRUE,TRUE,199.99,USD +2025-07-18 11:00:01,1002,bea81c1795a612d8fc3a232b156467ab,ARCHIVED,2025-06-01 00:00:00,2025-06-30 00:00:00,2025-06-01 00:00:00,2025-06-30 23:59:59,0,FALSE,3,50,5,LOW,FALSE,FALSE,FALSE,FALSE,59.50,USD +2025-07-18 11:00:02,1003,bea81c1795a612d8fc3a232b156467ac,ACTIVE,2025-07-10 00:00:00,2025-07-15 00:00:00,2025-07-10 00:00:00,2025-08-10 23:59:59,2,TRUE,2,25,7,MEDIUM,TRUE,TRUE,FALSE,TRUE,305.75,USD +2025-07-18 11:00:03,1004,bea81c1795a612d8fc3a232b156467ad,DRAFT,2025-07-12 00:00:00,2025-07-13 00:00:00,2025-07-15 00:00:00,2025-08-15 23:59:59,0,FALSE,0,10,1,LOW,FALSE,FALSE,FALSE,FALSE,0.00,USD +2025-07-18 11:00:04,1005,bea81c1795a612d8fc3a232b156467ae,ACTIVE,2025-07-05 00:00:00,2025-07-06 00:00:00,2025-07-05 00:00:00,2025-07-25 23:59:59,3,TRUE,7,200,15,HIGH,TRUE,TRUE,TRUE,TRUE,402.00,USD +2025-07-18 11:00:05,1006,bea81c1795a612d8fc3a232b156467af,ARCHIVED,2025-06-20 00:00:00,2025-06-25 00:00:00,2025-06-20 00:00:00,2025-07-20 23:59:59,1,FALSE,1,5,2,LOW,FALSE,FALSE,TRUE,FALSE,12.50,USD +2025-07-18 11:00:06,1007,bea81c1795a612d8fc3a232b156467b0,ACTIVE,2025-07-03 00:00:00,2025-07-10 00:00:00,2025-07-03 00:00:00,2025-08-03 23:59:59,4,TRUE,9,150,13,HIGH,TRUE,FALSE,TRUE,TRUE,349.99,USD +2025-07-18 11:00:07,1008,bea81c1795a612d8fc3a232b156467b1,DRAFT,2025-07-17 00:00:00,2025-07-18 00:00:00,2025-07-20 00:00:00,2025-08-20 23:59:59,0,FALSE,0,0,0,LOW,FALSE,FALSE,FALSE,FALSE,0.00,USD +2025-07-18 11:00:08,1009,bea81c1795a612d8fc3a232b156467b2,ACTIVE,2025-07-02 00:00:00,2025-07-04 00:00:00,2025-07-02 00:00:00,2025-07-22 23:59:59,2,TRUE,6,75,8,MEDIUM,TRUE,TRUE,TRUE,TRUE,220.00,USD +2025-07-18 11:00:09,1010,bea81c1795a612d8fc3a232b156467b3,ARCHIVED,2025-06-10 00:00:00,2025-06-15 00:00:00,2025-06-10 00:00:00,2025-07-10 23:59:59,1,FALSE,4,60,6,LOW,FALSE,FALSE,FALSE,FALSE,87.30,USD \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_discount_code_basic_data.csv b/integration_tests/seeds/shopify_gql_discount_code_basic_data.csv new file mode 100644 index 00000000..f43dba91 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_discount_code_basic_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,id,status,created_at,updated_at,starts_at,ends_at,recurring_cycle_limit,applies_once_per_customer,async_usage_count,usage_limit,codes_count,codes_precision,combines_with_order_discounts,combines_with_product_discounts,combines_with_shipping_discounts,customer_selection_all_customers,total_sales_amount,total_sales_currency_code +2025-07-18 11:00:00,2001,ACTIVE,2025-07-01 08:00:00,2025-07-10 09:00:00,2025-07-01 00:00:00,2025-08-01 00:00:00,3,TRUE,5,100,2,EXACT,TRUE,TRUE,FALSE,TRUE,100.0,USD +2025-07-18 11:01:00,2002,ARCHIVED,2025-06-15 07:30:00,2025-07-05 08:30:00,2025-06-15 00:00:00,2025-07-15 00:00:00,1,FALSE,10,50,1,ROUND,FALSE,FALSE,FALSE,FALSE,50.0,USD +2025-07-18 11:02:00,2003,ACTIVE,2025-07-05 10:15:00,2025-07-12 11:20:00,2025-07-05 00:00:00,2025-09-01 00:00:00,5,TRUE,7,150,3,EXACT,TRUE,FALSE,TRUE,TRUE,150.0,USD +2025-07-18 11:03:00,2004,DELETED,2025-05-10 09:00:00,2025-06-01 10:00:00,2025-05-10 00:00:00,2025-06-30 00:00:00,2,FALSE,0,0,0,EXACT,FALSE,FALSE,FALSE,FALSE,0.0,USD +2025-07-18 11:04:00,2005,ACTIVE,2025-07-10 12:00:00,2025-07-15 13:00:00,2025-07-10 00:00:00,2025-08-10 00:00:00,4,TRUE,2,80,2,ROUND,TRUE,TRUE,TRUE,TRUE,80.0,USD +2025-07-18 11:05:00,2006,ARCHIVED,2025-06-01 08:00:00,2025-06-20 09:00:00,2025-06-01 00:00:00,2025-07-01 00:00:00,1,FALSE,15,120,1,EXACT,FALSE,FALSE,TRUE,FALSE,120.0,USD +2025-07-18 11:06:00,2007,ACTIVE,2025-07-12 10:30:00,2025-07-18 11:00:00,2025-07-12 00:00:00,2025-08-12 00:00:00,6,TRUE,3,60,1,EXACT,TRUE,FALSE,FALSE,TRUE,60.0,USD +2025-07-18 11:07:00,2008,DELETED,2025-04-20 07:45:00,2025-05-01 08:30:00,2025-04-20 00:00:00,2025-05-20 00:00:00,0,FALSE,0,0,0,ROUND,FALSE,FALSE,FALSE,FALSE,0.0,USD +2025-07-18 11:08:00,2009,ACTIVE,2025-07-15 09:00:00,2025-07-17 10:00:00,2025-07-15 00:00:00,2025-09-15 00:00:00,3,TRUE,6,90,2,EXACT,TRUE,TRUE,FALSE,TRUE,90.0,USD +2025-07-18 11:09:00,2010,ARCHIVED,2025-06-10 06:00:00,2025-07-01 07:00:00,2025-06-10 00:00:00,2025-07-31 00:00:00,2,FALSE,9,110,3,ROUND,FALSE,FALSE,TRUE,FALSE,110.0,USD \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_discount_code_bxgy_data.csv b/integration_tests/seeds/shopify_gql_discount_code_bxgy_data.csv new file mode 100644 index 00000000..b59a62ec --- /dev/null +++ b/integration_tests/seeds/shopify_gql_discount_code_bxgy_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,id,title,status,created_at,updated_at,starts_at,ends_at,applies_once_per_customer,async_usage_count,usage_limit,codes_count,codes_precision,combines_with_order_discounts,combines_with_product_discounts,combines_with_shipping_discounts,customer_selection_all_customers,total_sales_amount,total_sales_currency_code +2025-07-18 11:00:00,1001,bea81c1795a612d8fc3a232b156467bc,ACTIVE,2025-07-01 10:00:00,2025-07-10 12:00:00,2025-07-01 00:00:00,2025-07-31 23:59:59,TRUE,5,100,1,EXACT,FALSE,TRUE,FALSE,TRUE,150.00,USD +2025-07-18 11:01:00,1002,bea81c1795a612d8fc3a232b156467bd,ARCHIVED,2025-06-15 09:00:00,2025-07-05 08:30:00,2025-06-15 00:00:00,2025-07-15 23:59:59,FALSE,3,50,1,EXACT,TRUE,FALSE,TRUE,FALSE,75.50,USD +2025-07-18 11:02:00,1003,bea81c1795a612d8fc3a232b156467be,ACTIVE,2025-07-05 14:00:00,2025-07-17 15:45:00,2025-07-05 00:00:00,2025-07-25 23:59:59,TRUE,10,200,2,EXACT,TRUE,TRUE,TRUE,TRUE,300.00,USD +2025-07-18 11:03:00,1004,bea81c1795a612d8fc3a232b156467bf,EXPIRED,2025-05-20 12:00:00,2025-06-20 13:15:00,2025-05-20 00:00:00,2025-06-20 23:59:59,FALSE,2,30,1,EXACT,FALSE,FALSE,FALSE,FALSE,20.00,USD +2025-07-18 11:04:00,1005,bea81c1795a612d8fc3a232b156467c0,ACTIVE,2025-07-10 08:00:00,2025-07-18 10:00:00,2025-07-10 00:00:00,2025-08-10 23:59:59,TRUE,8,150,1,EXACT,TRUE,TRUE,FALSE,TRUE,180.75,USD +2025-07-18 11:05:00,1006,bea81c1795a612d8fc3a232b156467c1,ARCHIVED,2025-04-10 07:00:00,2025-05-10 09:00:00,2025-04-10 00:00:00,2025-05-10 23:59:59,FALSE,0,0,0,EXACT,FALSE,FALSE,FALSE,FALSE,0.00,USD +2025-07-18 11:06:00,1007,bea81c1795a612d8fc3a232b156467c2,ACTIVE,2025-07-15 11:00:00,2025-07-17 16:00:00,2025-07-15 00:00:00,2025-08-15 23:59:59,TRUE,6,80,1,EXACT,TRUE,FALSE,TRUE,TRUE,95.99,USD +2025-07-18 11:07:00,1008,bea81c1795a612d8fc3a232b156467c3,EXPIRED,2025-06-01 10:00:00,2025-07-01 10:30:00,2025-06-01 00:00:00,2025-07-01 23:59:59,FALSE,1,20,1,EXACT,FALSE,TRUE,FALSE,FALSE,10.50,USD +2025-07-18 11:08:00,1009,bea81c1795a612d8fc3a232b156467c4,ACTIVE,2025-07-18 09:00:00,2025-07-18 10:00:00,2025-07-18 00:00:00,2025-08-18 23:59:59,TRUE,4,90,2,EXACT,TRUE,TRUE,TRUE,TRUE,120.00,USD +2025-07-18 11:09:00,1010,bea81c1795a612d8fc3a232b156467c5,ARCHIVED,2025-03-01 08:00:00,2025-04-01 10:00:00,2025-03-01 00:00:00,2025-04-01 23:59:59,FALSE,2,40,1,EXACT,FALSE,FALSE,FALSE,FALSE,40.00,USD \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_discount_code_free_shipping_data.csv b/integration_tests/seeds/shopify_gql_discount_code_free_shipping_data.csv new file mode 100644 index 00000000..6114e694 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_discount_code_free_shipping_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,id,status,created_at,updated_at,starts_at,ends_at,recurring_cycle_limit,applies_once_per_customer,async_usage_count,usage_limit,codes_count,codes_precision,combines_with_order_discounts,combines_with_product_discounts,combines_with_shipping_discounts,customer_selection_all_customers,total_sales_amount,total_sales_currency_code +2025-07-18 11:00:00,2001,ACTIVE,2025-07-01 00:00:00,2025-07-10 00:00:00,2025-07-01 00:00:00,2025-08-01 00:00:00,1,TRUE,5,100,10,EXACT,TRUE,FALSE,TRUE,TRUE,150.00,USD +2025-07-18 11:00:00,2002,EXPIRED,2025-06-01 00:00:00,2025-07-01 00:00:00,2025-06-01 00:00:00,2025-07-01 00:00:00,2,FALSE,10,200,20,EXACT,FALSE,TRUE,FALSE,TRUE,300.00,USD +2025-07-18 11:00:00,2003,ACTIVE,2025-07-05 00:00:00,2025-07-15 00:00:00,2025-07-05 00:00:00,2025-08-05 00:00:00,3,TRUE,3,50,5,ROUND,TRUE,TRUE,TRUE,FALSE,75.00,USD +2025-07-18 11:00:00,2004,DISABLED,2025-06-15 00:00:00,2025-07-12 00:00:00,2025-06-15 00:00:00,2025-07-31 00:00:00,4,FALSE,7,150,15,EXACT,FALSE,FALSE,FALSE,TRUE,0.00,USD +2025-07-18 11:00:00,2005,ACTIVE,2025-07-10 00:00:00,2025-07-16 00:00:00,2025-07-10 00:00:00,2025-08-10 00:00:00,5,TRUE,8,300,30,EXACT,TRUE,TRUE,FALSE,FALSE,125.50,USD +2025-07-18 11:00:00,2006,EXPIRED,2025-05-01 00:00:00,2025-06-01 00:00:00,2025-05-01 00:00:00,2025-06-01 00:00:00,1,FALSE,2,100,10,ROUND,FALSE,FALSE,TRUE,TRUE,210.75,USD +2025-07-18 11:00:00,2007,ACTIVE,2025-07-11 00:00:00,2025-07-17 00:00:00,2025-07-11 00:00:00,2025-08-11 00:00:00,6,TRUE,1,30,3,EXACT,TRUE,FALSE,FALSE,TRUE,95.00,USD +2025-07-18 11:00:00,2008,DISABLED,2025-06-20 00:00:00,2025-07-10 00:00:00,2025-06-20 00:00:00,2025-07-20 00:00:00,2,FALSE,4,120,12,EXACT,FALSE,FALSE,FALSE,FALSE,60.00,USD +2025-07-18 11:00:00,2009,ACTIVE,2025-07-15 00:00:00,2025-07-17 00:00:00,2025-07-15 00:00:00,2025-08-15 00:00:00,7,TRUE,9,500,50,ROUND,TRUE,TRUE,TRUE,TRUE,180.99,USD +2025-07-18 11:00:00,2010,EXPIRED,2025-04-01 00:00:00,2025-05-01 00:00:00,2025-04-01 00:00:00,2025-05-01 00:00:00,1,FALSE,0,75,7,EXACT,FALSE,FALSE,TRUE,FALSE,45.25,USD \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_discount_redeem_code_data.csv b/integration_tests/seeds/shopify_gql_discount_redeem_code_data.csv new file mode 100644 index 00000000..4e26afd2 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_discount_redeem_code_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,async_usage_count,code,created_by_description,created_by_id,created_by_title,discount_id,discount_type,id +2025-07-18 10:10:00,5,bea81c1795a612d8fc3a232b156467d1,bea81c1795a612d8fc3a232b156467d1,2001,bea81c1795a612d8fc3a232b156467d1,3001,PERCENTAGE,4001 +2025-07-18 10:11:00,10,bea81c1795a612d8fc3a232b156467d2,bea81c1795a612d8fc3a232b156467d2,2002,bea81c1795a612d8fc3a232b156467d2,3002,BOGO,4002 +2025-07-18 10:12:00,3,bea81c1795a612d8fc3a232b156467d3,bea81c1795a612d8fc3a232b156467d3,2003,bea81c1795a612d8fc3a232b156467d3,3003,SHIPPING,4003 +2025-07-18 10:13:00,0,bea81c1795a612d8fc3a232b156467d4,bea81c1795a612d8fc3a232b156467d4,2004,bea81c1795a612d8fc3a232b156467d4,3004,PERCENTAGE,4004 +2025-07-18 10:14:00,8,bea81c1795a612d8fc3a232b156467d5,bea81c1795a612d8fc3a232b156467d5,2005,bea81c1795a612d8fc3a232b156467d5,3005,BOGO,4005 +2025-07-18 10:15:00,2,bea81c1795a612d8fc3a232b156467d6,bea81c1795a612d8fc3a232b156467d6,2006,bea81c1795a612d8fc3a232b156467d6,3006,SHIPPING,4006 +2025-07-18 10:16:00,6,bea81c1795a612d8fc3a232b156467d7,bea81c1795a612d8fc3a232b156467d7,2007,bea81c1795a612d8fc3a232b156467d7,3007,PERCENTAGE,4007 +2025-07-18 10:17:00,1,bea81c1795a612d8fc3a232b156467d8,bea81c1795a612d8fc3a232b156467d8,2008,bea81c1795a612d8fc3a232b156467d8,3008,BOGO,4008 +2025-07-18 10:18:00,7,bea81c1795a612d8fc3a232b156467d9,bea81c1795a612d8fc3a232b156467d9,2009,bea81c1795a612d8fc3a232b156467d9,3009,SHIPPING,4009 +2025-07-18 10:19:00,4,bea81c1795a612d8fc3a232b156467da,bea81c1795a612d8fc3a232b156467da,2010,bea81c1795a612d8fc3a232b156467da,3010,PERCENTAGE,4010 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_fulfillment_data.csv b/integration_tests/seeds/shopify_gql_fulfillment_data.csv new file mode 100644 index 00000000..928ce475 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_fulfillment_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,created_at,display_status,id,location_id,name,order_id,service_id,status,total_quantity,updated_at +2025-07-18 10:10:00,2025-07-17 08:00:00,bea81c1795a612d8fc3a232b156467d0,6001,7001,bea81c1795a612d8fc3a232b156467d1,8001,bea81c1795a612d8fc3a232b156467d2,SUCCESS,2,2025-07-18 10:10:00 +2025-07-18 10:11:00,2025-07-16 07:30:00,bea81c1795a612d8fc3a232b156467d3,6002,7002,bea81c1795a612d8fc3a232b156467d4,8002,bea81c1795a612d8fc3a232b156467d5,OPEN,1,2025-07-18 10:11:00 +2025-07-18 10:12:00,2025-07-15 06:15:00,bea81c1795a612d8fc3a232b156467d6,6003,7003,bea81c1795a612d8fc3a232b156467d7,8003,bea81c1795a612d8fc3a232b156467d8,CANCELLED,3,2025-07-18 10:12:00 +2025-07-18 10:13:00,2025-07-14 05:45:00,bea81c1795a612d8fc3a232b156467d9,6004,7004,bea81c1795a612d8fc3a232b156467da,8004,bea81c1795a612d8fc3a232b156467db,DELIVERED,2,2025-07-18 10:13:00 +2025-07-18 10:14:00,2025-07-13 04:30:00,bea81c1795a612d8fc3a232b156467dc,6005,7005,bea81c1795a612d8fc3a232b156467dd,8005,bea81c1795a612d8fc3a232b156467de,SUCCESS,5,2025-07-18 10:14:00 +2025-07-18 10:15:00,2025-07-12 03:20:00,bea81c1795a612d8fc3a232b156467df,6006,7006,bea81c1795a612d8fc3a232b156467e0,8006,bea81c1795a612d8fc3a232b156467e1,OPEN,1,2025-07-18 10:15:00 +2025-07-18 10:16:00,2025-07-11 02:10:00,bea81c1795a612d8fc3a232b156467e2,6007,7007,bea81c1795a612d8fc3a232b156467e3,8007,bea81c1795a612d8fc3a232b156467e4,SUCCESS,4,2025-07-18 10:16:00 +2025-07-18 10:17:00,2025-07-10 01:00:00,bea81c1795a612d8fc3a232b156467e5,6008,7008,bea81c1795a612d8fc3a232b156467e6,8008,bea81c1795a612d8fc3a232b156467e7,CANCELLED,2,2025-07-18 10:17:00 +2025-07-18 10:18:00,2025-07-09 00:30:00,bea81c1795a612d8fc3a232b156467e8,6009,7009,bea81c1795a612d8fc3a232b156467e9,8009,bea81c1795a612d8fc3a232b156467ea,DELIVERED,3,2025-07-18 10:18:00 +2025-07-18 10:19:00,2025-07-08 00:00:00,bea81c1795a612d8fc3a232b156467eb,6010,7010,bea81c1795a612d8fc3a232b156467ec,8010,bea81c1795a612d8fc3a232b156467ed,OPEN,2,2025-07-18 10:19:00 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_fulfillment_event_data.csv b/integration_tests/seeds/shopify_gql_fulfillment_event_data.csv new file mode 100644 index 00000000..81ec713b --- /dev/null +++ b/integration_tests/seeds/shopify_gql_fulfillment_event_data.csv @@ -0,0 +1,11 @@ +_fivetran_deleted,_fivetran_synced,address_1,city,country,created_at,estimated_delivery_at,fulfillment_id,happened_at,id,latitude,longitude,message,province,status,zip +FALSE,2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467aa,bea81c1795a612d8fc3a232b156467ab,US,2025-07-17 08:00:00,2025-07-20 12:00:00,2001,2025-07-17 09:00:00,6001,34.0522,-118.2437,bea81c1795a612d8fc3a232b156467ac,CA,in_transit,90001 +TRUE,2025-07-18 11:01:00,bea81c1795a612d8fc3a232b156467ad,bea81c1795a612d8fc3a232b156467ae,CA,2025-07-16 07:00:00,2025-07-21 13:00:00,2002,2025-07-16 08:30:00,6002,45.4215,-75.6999,bea81c1795a612d8fc3a232b156467af,ON,out_for_delivery,K1A0B1 +FALSE,2025-07-18 11:02:00,bea81c1795a612d8fc3a232b156467b0,bea81c1795a612d8fc3a232b156467b1,US,2025-07-15 06:00:00,2025-07-19 14:00:00,2003,2025-07-15 07:45:00,6003,40.7128,-74.0060,bea81c1795a612d8fc3a232b156467b2,NY,delivered,10001 +TRUE,2025-07-18 11:03:00,bea81c1795a612d8fc3a232b156467b3,bea81c1795a612d8fc3a232b156467b4,US,2025-07-14 05:00:00,2025-07-18 11:00:00,2004,2025-07-14 06:30:00,6004,41.8781,-87.6298,bea81c1795a612d8fc3a232b156467b5,IL,attempted_delivery,60601 +FALSE,2025-07-18 11:04:00,bea81c1795a612d8fc3a232b156467b6,bea81c1795a612d8fc3a232b156467b7,CA,2025-07-13 04:00:00,2025-07-17 10:00:00,2005,2025-07-13 05:15:00,6005,49.2827,-123.1207,bea81c1795a612d8fc3a232b156467b8,BC,in_transit,V6B1H4 +TRUE,2025-07-18 11:05:00,bea81c1795a612d8fc3a232b156467b9,bea81c1795a612d8fc3a232b156467c0,US,2025-07-12 03:00:00,2025-07-16 09:00:00,2006,2025-07-12 04:00:00,6006,29.7604,-95.3698,bea81c1795a612d8fc3a232b156467c1,TX,out_for_delivery,77001 +FALSE,2025-07-18 11:06:00,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c3,US,2025-07-11 02:00:00,2025-07-15 08:00:00,2007,2025-07-11 03:45:00,6007,33.4484,-112.0740,bea81c1795a612d8fc3a232b156467c4,AZ,delivered,85001 +TRUE,2025-07-18 11:07:00,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c6,US,2025-07-10 01:00:00,2025-07-14 07:00:00,2008,2025-07-10 02:30:00,6008,39.7392,-104.9903,bea81c1795a612d8fc3a232b156467c7,CO,in_transit,80201 +FALSE,2025-07-18 11:08:00,bea81c1795a612d8fc3a232b156467c8,bea81c1795a612d8fc3a232b156467c9,CA,2025-07-09 00:00:00,2025-07-13 06:00:00,2009,2025-07-09 01:15:00,6009,43.6510,-79.3470,bea81c1795a612d8fc3a232b156467d0,ON,out_for_delivery,M5H2N2 +TRUE,2025-07-18 11:09:00,bea81c1795a612d8fc3a232b156467d1,bea81c1795a612d8fc3a232b156467d2,US,2025-07-08 23:00:00,2025-07-12 05:00:00,2010,2025-07-08 23:45:00,6010,32.7767,-96.7970,bea81c1795a612d8fc3a232b156467d3,TX,delivered,75201 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_fulfillment_order_line_item_data.csv b/integration_tests/seeds/shopify_gql_fulfillment_order_line_item_data.csv new file mode 100644 index 00000000..283dce6d --- /dev/null +++ b/integration_tests/seeds/shopify_gql_fulfillment_order_line_item_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,fulfillment_order_id,id,image_alt_text,image_height,image_id,image_url,image_width,inventory_item_id,order_line_item_id,product_title,product_variant_id,remaining_quantity,requires_shipping,sku,total_quantity,variant_title,vendor,weight_unit,weight_value +2025-07-18 10:10:00,7001,8001,bea81c1795a612d8fc3a232b156467bc,500,9001,bea81c1795a612d8fc3a232b156467bc,800,10001,11001,bea81c1795a612d8fc3a232b156467bc,12001,3,TRUE,sku001,5,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,kg,1.5 +2025-07-18 10:11:00,7002,8002,bea81c1795a612d8fc3a232b156467bd,600,9002,bea81c1795a612d8fc3a232b156467bd,900,10002,11002,bea81c1795a612d8fc3a232b156467bd,12002,2,FALSE,sku002,4,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,lb,2.0 +2025-07-18 10:12:00,7003,8003,bea81c1795a612d8fc3a232b156467be,450,9003,bea81c1795a612d8fc3a232b156467be,850,10003,11003,bea81c1795a612d8fc3a232b156467be,12003,0,TRUE,sku003,3,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,g,0.5 +2025-07-18 10:13:00,7004,8004,bea81c1795a612d8fc3a232b156467bf,400,9004,bea81c1795a612d8fc3a232b156467bf,700,10004,11004,bea81c1795a612d8fc3a232b156467bf,12004,5,TRUE,sku004,5,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467bf,oz,0.8 +2025-07-18 10:14:00,7005,8005,bea81c1795a612d8fc3a232b156467c0,520,9005,bea81c1795a612d8fc3a232b156467c0,820,10005,11005,bea81c1795a612d8fc3a232b156467c0,12005,1,FALSE,sku005,2,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c0,kg,3.1 +2025-07-18 10:15:00,7006,8006,bea81c1795a612d8fc3a232b156467c1,510,9006,bea81c1795a612d8fc3a232b156467c1,810,10006,11006,bea81c1795a612d8fc3a232b156467c1,12006,4,TRUE,sku006,6,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,lb,4.2 +2025-07-18 10:16:00,7007,8007,bea81c1795a612d8fc3a232b156467c2,470,9007,bea81c1795a612d8fc3a232b156467c2,870,10007,11007,bea81c1795a612d8fc3a232b156467c2,12007,0,FALSE,sku007,1,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2,g,0.2 +2025-07-18 10:17:00,7008,8008,bea81c1795a612d8fc3a232b156467c3,490,9008,bea81c1795a612d8fc3a232b156467c3,890,10008,11008,bea81c1795a612d8fc3a232b156467c3,12008,6,TRUE,sku008,7,bea81c1795a612d8fc3a232b156467c3,bea81c1795a612d8fc3a232b156467c3,kg,1.8 +2025-07-18 10:18:00,7009,8009,bea81c1795a612d8fc3a232b156467c4,530,9009,bea81c1795a612d8fc3a232b156467c4,830,10009,11009,bea81c1795a612d8fc3a232b156467c4,12009,2,TRUE,sku009,3,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c4,oz,0.6 +2025-07-18 10:19:00,7010,8010,bea81c1795a612d8fc3a232b156467c5,540,9010,bea81c1795a612d8fc3a232b156467c5,840,10010,11010,bea81c1795a612d8fc3a232b156467c5,12010,3,FALSE,sku010,4,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5,lb,5.5 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_fulfillment_tracking_info_data.csv b/integration_tests/seeds/shopify_gql_fulfillment_tracking_info_data.csv new file mode 100644 index 00000000..c9d60075 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_fulfillment_tracking_info_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,company,fulfillment_id,index,number,url +2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467bc,1001,1,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc +2025-07-18 11:01:00,bea81c1795a612d8fc3a232b156467bd,1002,1,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd +2025-07-18 11:02:00,bea81c1795a612d8fc3a232b156467be,1003,1,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be +2025-07-18 11:03:00,bea81c1795a612d8fc3a232b156467bf,1004,1,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467bf +2025-07-18 11:04:00,bea81c1795a612d8fc3a232b156467c0,1005,1,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c0 +2025-07-18 11:05:00,bea81c1795a612d8fc3a232b156467c1,1006,1,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1 +2025-07-18 11:06:00,bea81c1795a612d8fc3a232b156467c2,1007,1,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2 +2025-07-18 11:07:00,bea81c1795a612d8fc3a232b156467c3,1008,1,bea81c1795a612d8fc3a232b156467c3,bea81c1795a612d8fc3a232b156467c3 +2025-07-18 11:08:00,bea81c1795a612d8fc3a232b156467c4,1009,1,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c4 +2025-07-18 11:09:00,bea81c1795a612d8fc3a232b156467c5,1010,1,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_inventory_item_data.csv b/integration_tests/seeds/shopify_gql_inventory_item_data.csv new file mode 100644 index 00000000..3a0545b6 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_inventory_item_data.csv @@ -0,0 +1,11 @@ +_fivetran_deleted,_fivetran_synced,country_code_of_origin,created_at,duplicate_sku_count,harmonized_system_code,id,inventory_history_url,legacy_resource_id,measurement_id,measurement_weight_unit,measurement_weight_value,province_code_of_origin,requires_shipping,sku,tracked,tracked_editable_locked,tracked_editable_reason,unit_cost_amount,unit_cost_currency_code,updated_at +FALSE,2025-07-18 10:10:00,US,2025-07-10 09:00:00,0,bea81c1795a612d8fc3a232b156467bc,8001,bea81c1795a612d8fc3a232b156467bc,3001,4001,kg,1.25,CA,TRUE,SKU001,TRUE,FALSE,bea81c1795a612d8fc3a232b156467bc,15.00,USD,2025-07-18 10:10:00 +TRUE,2025-07-18 10:11:00,CA,2025-07-09 08:30:00,2,bea81c1795a612d8fc3a232b156467bd,8002,bea81c1795a612d8fc3a232b156467bd,3002,4002,lb,0.50,ON,FALSE,SKU002,FALSE,TRUE,bea81c1795a612d8fc3a232b156467bd,8.75,CAD,2025-07-18 10:11:00 +FALSE,2025-07-18 10:12:00,MX,2025-07-08 07:45:00,1,bea81c1795a612d8fc3a232b156467be,8003,bea81c1795a612d8fc3a232b156467be,3003,4003,g,750.00,NL,TRUE,SKU003,TRUE,FALSE,bea81c1795a612d8fc3a232b156467be,5.99,USD,2025-07-18 10:12:00 +TRUE,2025-07-18 10:13:00,DE,2025-07-07 06:15:00,0,bea81c1795a612d8fc3a232b156467bf,8004,bea81c1795a612d8fc3a232b156467bf,3004,4004,kg,2.00,BY,FALSE,SKU004,FALSE,FALSE,bea81c1795a612d8fc3a232b156467bf,12.00,EUR,2025-07-18 10:13:00 +FALSE,2025-07-18 10:14:00,FR,2025-07-06 05:50:00,1,bea81c1795a612d8fc3a232b156467c0,8005,bea81c1795a612d8fc3a232b156467c0,3005,4005,oz,16.00,QC,TRUE,SKU005,TRUE,TRUE,bea81c1795a612d8fc3a232b156467c0,20.00,USD,2025-07-18 10:14:00 +TRUE,2025-07-18 10:15:00,IT,2025-07-05 04:20:00,0,bea81c1795a612d8fc3a232b156467c1,8006,bea81c1795a612d8fc3a232b156467c1,3006,4006,kg,3.30,TN,FALSE,SKU006,FALSE,FALSE,bea81c1795a612d8fc3a232b156467c1,18.50,EUR,2025-07-18 10:15:00 +FALSE,2025-07-18 10:16:00,JP,2025-07-04 03:40:00,3,bea81c1795a612d8fc3a232b156467c2,8007,bea81c1795a612d8fc3a232b156467c2,3007,4007,g,500.00,BC,TRUE,SKU007,TRUE,TRUE,bea81c1795a612d8fc3a232b156467c2,9.99,JPY,2025-07-18 10:16:00 +TRUE,2025-07-18 10:17:00,KR,2025-07-03 02:10:00,0,bea81c1795a612d8fc3a232b156467c3,8008,bea81c1795a612d8fc3a232b156467c3,3008,4008,lb,1.75,AB,FALSE,SKU008,FALSE,FALSE,bea81c1795a612d8fc3a232b156467c3,7.00,KRW,2025-07-18 10:17:00 +FALSE,2025-07-18 10:18:00,AU,2025-07-02 01:00:00,1,bea81c1795a612d8fc3a232b156467c4,8009,bea81c1795a612d8fc3a232b156467c4,3009,4009,kg,2.25,NS,TRUE,SKU009,TRUE,FALSE,bea81c1795a612d8fc3a232b156467c4,22.00,AUD,2025-07-18 10:18:00 +TRUE,2025-07-18 10:19:00,CN,2025-07-01 00:10:00,0,bea81c1795a612d8fc3a232b156467c5,8010,bea81c1795a612d8fc3a232b156467c5,3010,4010,g,300.00,GX,FALSE,SKU010,FALSE,TRUE,bea81c1795a612d8fc3a232b156467c5,3.49,CNY,2025-07-18 10:19:00 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_inventory_level_data.csv b/integration_tests/seeds/shopify_gql_inventory_level_data.csv new file mode 100644 index 00000000..bab4d00a --- /dev/null +++ b/integration_tests/seeds/shopify_gql_inventory_level_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,can_deactivate,created_at,deactivation_alert,id,inventory_item_id,location_id,updated_at +2025-07-18 11:00:00,TRUE,2025-07-10 09:00:00,bea81c1795a612d8fc3a232b156467aa,7001,8001,9001,2025-07-18 10:00:00 +2025-07-18 11:01:00,FALSE,2025-07-11 10:00:00,bea81c1795a612d8fc3a232b156467ab,7002,8002,9002,2025-07-18 10:01:00 +2025-07-18 11:02:00,TRUE,2025-07-12 11:00:00,bea81c1795a612d8fc3a232b156467ac,7003,8003,9003,2025-07-18 10:02:00 +2025-07-18 11:03:00,FALSE,2025-07-13 12:00:00,bea81c1795a612d8fc3a232b156467ad,7004,8004,9004,2025-07-18 10:03:00 +2025-07-18 11:04:00,TRUE,2025-07-14 13:00:00,bea81c1795a612d8fc3a232b156467ae,7005,8005,9005,2025-07-18 10:04:00 +2025-07-18 11:05:00,FALSE,2025-07-15 14:00:00,bea81c1795a612d8fc3a232b156467af,7006,8006,9006,2025-07-18 10:05:00 +2025-07-18 11:06:00,TRUE,2025-07-16 15:00:00,bea81c1795a612d8fc3a232b156467b0,7007,8007,9007,2025-07-18 10:06:00 +2025-07-18 11:07:00,FALSE,2025-07-17 16:00:00,bea81c1795a612d8fc3a232b156467b1,7008,8008,9008,2025-07-18 10:07:00 +2025-07-18 11:08:00,TRUE,2025-07-18 17:00:00,bea81c1795a612d8fc3a232b156467b2,7009,8009,9009,2025-07-18 10:08:00 +2025-07-18 11:09:00,FALSE,2025-07-19 18:00:00,bea81c1795a612d8fc3a232b156467b3,7010,8010,9010,2025-07-18 10:09:00 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_inventory_quantity_data.csv b/integration_tests/seeds/shopify_gql_inventory_quantity_data.csv new file mode 100644 index 00000000..b628f3ed --- /dev/null +++ b/integration_tests/seeds/shopify_gql_inventory_quantity_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,id,inventory_item_id,inventory_level_id,name,quantity,updated_at +2025-07-18 11:00:00,6001,8001,7001,bea81c1795a612d8fc3a232b156467d0,50,2025-07-18 10:45:00 +2025-07-18 11:01:00,6002,8002,7002,bea81c1795a612d8fc3a232b156467d1,20,2025-07-18 10:44:00 +2025-07-18 11:02:00,6003,8003,7003,bea81c1795a612d8fc3a232b156467d2,35,2025-07-18 10:43:00 +2025-07-18 11:03:00,6004,8004,7004,bea81c1795a612d8fc3a232b156467d3,0,2025-07-18 10:42:00 +2025-07-18 11:04:00,6005,8005,7005,bea81c1795a612d8fc3a232b156467d4,75,2025-07-18 10:41:00 +2025-07-18 11:05:00,6006,8006,7006,bea81c1795a612d8fc3a232b156467d5,12,2025-07-18 10:40:00 +2025-07-18 11:06:00,6007,8007,7007,bea81c1795a612d8fc3a232b156467d6,8,2025-07-18 10:39:00 +2025-07-18 11:07:00,6008,8008,7008,bea81c1795a612d8fc3a232b156467d7,100,2025-07-18 10:38:00 +2025-07-18 11:08:00,6009,8009,7009,bea81c1795a612d8fc3a232b156467d8,43,2025-07-18 10:37:00 +2025-07-18 11:09:00,6010,8010,7010,bea81c1795a612d8fc3a232b156467d9,5,2025-07-18 10:36:00 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_location_data.csv b/integration_tests/seeds/shopify_gql_location_data.csv new file mode 100644 index 00000000..6b77701a --- /dev/null +++ b/integration_tests/seeds/shopify_gql_location_data.csv @@ -0,0 +1,11 @@ +_fivetran_deleted,_fivetran_synced,address_1,address_2,city,country,country_code,created_at,id,is_active,is_fulfillment_service,name,phone,province,province_code,updated_at,zip +FALSE,2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467aa,bea81c1795a612d8fc3a232b156467ab,bea81c1795a612d8fc3a232b156467ac,bea81c1795a612d8fc3a232b156467ad,US,2025-06-01 08:00:00,3001,TRUE,FALSE,bea81c1795a612d8fc3a232b156467af,1111111111,bea81c1795a612d8fc3a232b156467b0,NY,2025-07-18 11:00:00,11111 +TRUE,2025-07-18 11:01:00,bea81c1795a612d8fc3a232b156467b1,bea81c1795a612d8fc3a232b156467b2,bea81c1795a612d8fc3a232b156467b3,bea81c1795a612d8fc3a232b156467b4,CA,2025-05-15 09:00:00,3002,FALSE,TRUE,bea81c1795a612d8fc3a232b156467b6,2222222222,bea81c1795a612d8fc3a232b156467b7,ON,2025-07-18 11:01:00,22222 +FALSE,2025-07-18 11:02:00,bea81c1795a612d8fc3a232b156467b8,bea81c1795a612d8fc3a232b156467b9,bea81c1795a612d8fc3a232b156467ba,bea81c1795a612d8fc3a232b156467bb,US,2025-05-10 07:30:00,3003,TRUE,FALSE,bea81c1795a612d8fc3a232b156467bd,3333333333,bea81c1795a612d8fc3a232b156467be,CA,2025-07-18 11:02:00,33333 +TRUE,2025-07-18 11:03:00,,,,,,,3004,FALSE,FALSE,bea81c1795a612d8fc3a232b156467bf,4444444444,,,2025-07-18 11:03:00,44444 +FALSE,2025-07-18 11:04:00,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c3,US,2025-04-20 06:00:00,3005,TRUE,FALSE,bea81c1795a612d8fc3a232b156467c5,5555555555,bea81c1795a612d8fc3a232b156467c6,NV,2025-07-18 11:04:00,55555 +TRUE,2025-07-18 11:05:00,bea81c1795a612d8fc3a232b156467c7,,bea81c1795a612d8fc3a232b156467c8,bea81c1795a612d8fc3a232b156467c9,US,2025-04-01 11:00:00,3006,FALSE,FALSE,bea81c1795a612d8fc3a232b156467cb,6666666666,bea81c1795a612d8fc3a232b156467cc,WA,2025-07-18 11:05:00,66666 +FALSE,2025-07-18 11:06:00,bea81c1795a612d8fc3a232b156467cd,bea81c1795a612d8fc3a232b156467ce,bea81c1795a612d8fc3a232b156467cf,bea81c1795a612d8fc3a232b156467d0,US,2025-03-15 12:00:00,3007,TRUE,TRUE,bea81c1795a612d8fc3a232b156467d2,7777777777,bea81c1795a612d8fc3a232b156467d3,FL,2025-07-18 11:06:00,77777 +TRUE,2025-07-18 11:07:00,,,,,,,3008,FALSE,FALSE,bea81c1795a612d8fc3a232b156467d4,8888888888,,,2025-07-18 11:07:00,88888 +FALSE,2025-07-18 11:08:00,bea81c1795a612d8fc3a232b156467d5,bea81c1795a612d8fc3a232b156467d6,bea81c1795a612d8fc3a232b156467d7,bea81c1795a612d8fc3a232b156467d8,US,2025-02-10 10:30:00,3009,TRUE,FALSE,bea81c1795a612d8fc3a232b156467e0,9999999999,bea81c1795a612d8fc3a232b156467e1,IL,2025-07-18 11:08:00,99999 +TRUE,2025-07-18 11:09:00,bea81c1795a612d8fc3a232b156467e2,,bea81c1795a612d8fc3a232b156467e3,bea81c1795a612d8fc3a232b156467e4,CA,2025-01-05 09:45:00,3010,FALSE,FALSE,bea81c1795a612d8fc3a232b156467e6,1010101010,bea81c1795a612d8fc3a232b156467e7,ON,2025-07-18 11:09:00,10101 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_media_data.csv b/integration_tests/seeds/shopify_gql_media_data.csv new file mode 100644 index 00000000..054ab5b6 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_media_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,alt,created_at,file_status,id,media_content_type,preview_image_alt_text,preview_image_height,preview_image_id,preview_image_url,preview_image_width,preview_status,status,updated_at +2025-07-18 10:10:00,bea81c1795a612d8fc3a232b156467d0,2025-07-10 08:00:00,ACTIVE,7001,IMAGE,bea81c1795a612d8fc3a232b156467d1,600,8001,bea81c1795a612d8fc3a232b156467d2,800,AVAILABLE,PROCESSED,2025-07-18 10:10:00 +2025-07-18 10:10:10,bea81c1795a612d8fc3a232b156467d3,2025-07-09 07:00:00,ARCHIVED,7002,VIDEO,bea81c1795a612d8fc3a232b156467d4,720,8002,bea81c1795a612d8fc3a232b156467d5,1280,PENDING,PENDING,2025-07-18 10:10:10 +2025-07-18 10:10:20,bea81c1795a612d8fc3a232b156467d6,2025-07-08 06:00:00,ACTIVE,7003,IMAGE,bea81c1795a612d8fc3a232b156467d7,480,8003,bea81c1795a612d8fc3a232b156467d8,640,AVAILABLE,PROCESSED,2025-07-18 10:10:20 +2025-07-18 10:10:30,bea81c1795a612d8fc3a232b156467d9,2025-07-07 05:00:00,DELETED,7004,MODEL_3D,bea81c1795a612d8fc3a232b156467e0,1080,8004,bea81c1795a612d8fc3a232b156467e1,1920,UNAVAILABLE,FAILED,2025-07-18 10:10:30 +2025-07-18 10:10:40,bea81c1795a612d8fc3a232b156467e2,2025-07-06 04:00:00,ACTIVE,7005,IMAGE,bea81c1795a612d8fc3a232b156467e3,300,8005,bea81c1795a612d8fc3a232b156467e4,400,AVAILABLE,PROCESSED,2025-07-18 10:10:40 +2025-07-18 10:10:50,bea81c1795a612d8fc3a232b156467e5,2025-07-05 03:00:00,ARCHIVED,7006,IMAGE,bea81c1795a612d8fc3a232b156467e6,768,8006,bea81c1795a612d8fc3a232b156467e7,1024,PENDING,PENDING,2025-07-18 10:10:50 +2025-07-18 10:11:00,bea81c1795a612d8fc3a232b156467e8,2025-07-04 02:00:00,DELETED,7007,VIDEO,bea81c1795a612d8fc3a232b156467e9,1440,8007,bea81c1795a612d8fc3a232b156467f0,2560,UNAVAILABLE,FAILED,2025-07-18 10:11:00 +2025-07-18 10:11:10,bea81c1795a612d8fc3a232b156467f1,2025-07-03 01:00:00,ACTIVE,7008,MODEL_3D,bea81c1795a612d8fc3a232b156467f2,900,8008,bea81c1795a612d8fc3a232b156467f3,1600,AVAILABLE,PROCESSED,2025-07-18 10:11:10 +2025-07-18 10:11:20,bea81c1795a612d8fc3a232b156467f4,2025-07-02 00:00:00,ACTIVE,7009,IMAGE,bea81c1795a612d8fc3a232b156467f5,500,8009,bea81c1795a612d8fc3a232b156467f6,700,PENDING,PENDING,2025-07-18 10:11:20 +2025-07-18 10:11:30,bea81c1795a612d8fc3a232b156467f7,2025-07-01 23:00:00,ARCHIVED,7010,VIDEO,bea81c1795a612d8fc3a232b156467f8,720,8010,bea81c1795a612d8fc3a232b156467f9,1280,UNAVAILABLE,FAILED,2025-07-18 10:11:30 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_media_image_data.csv b/integration_tests/seeds/shopify_gql_media_image_data.csv new file mode 100644 index 00000000..e583ca9c --- /dev/null +++ b/integration_tests/seeds/shopify_gql_media_image_data.csv @@ -0,0 +1,11 @@ +media_id,image_id,image_alt_text,image_height,image_url,image_width +10001,20001,bea81c1795a612d8fc3a232b156467bc,800,bea81c1795a612d8fc3a232b156467bc,600 +10002,20002,bea81c1795a612d8fc3a232b156467bd,1080,bea81c1795a612d8fc3a232b156467bd,720 +10003,20003,bea81c1795a612d8fc3a232b156467be,640,bea81c1795a612d8fc3a232b156467be,480 +10004,20004,bea81c1795a612d8fc3a232b156467bf,1200,bea81c1795a612d8fc3a232b156467bf,900 +10005,20005,bea81c1795a612d8fc3a232b156467c0,720,bea81c1795a612d8fc3a232b156467c0,480 +10006,20006,bea81c1795a612d8fc3a232b156467c1,960,bea81c1795a612d8fc3a232b156467c1,640 +10007,20007,bea81c1795a612d8fc3a232b156467c2,1080,bea81c1795a612d8fc3a232b156467c2,1080 +10008,20008,bea81c1795a612d8fc3a232b156467c3,1440,bea81c1795a612d8fc3a232b156467c3,1080 +10009,20009,bea81c1795a612d8fc3a232b156467c4,800,bea81c1795a612d8fc3a232b156467c4,600 +10010,20010,bea81c1795a612d8fc3a232b156467c5,640,bea81c1795a612d8fc3a232b156467c5,480 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_metafield_data.csv b/integration_tests/seeds/shopify_gql_metafield_data.csv new file mode 100644 index 00000000..4d4f2f52 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_metafield_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,created_at,description,id,key,namespace,owner_id,owner_resource,type,value_type,updated_at,value +2025-07-18 11:00:00,2025-07-17 10:00:00,bea81c1795a612d8fc3a232b156467bc,7001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,5001,product,boolean,string,2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467bc +2025-07-18 11:01:00,2025-07-17 09:30:00,bea81c1795a612d8fc3a232b156467bd,7002,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,5002,collection,string,string,2025-07-18 11:01:00,bea81c1795a612d8fc3a232b156467bd +2025-07-18 11:02:00,2025-07-16 08:00:00,bea81c1795a612d8fc3a232b156467be,7003,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,5003,customer,integer,string,2025-07-18 11:02:00,bea81c1795a612d8fc3a232b156467be +2025-07-18 11:03:00,2025-07-15 07:00:00,bea81c1795a612d8fc3a232b156467bf,7004,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467bf,5004,order,json,string,2025-07-18 11:03:00,bea81c1795a612d8fc3a232b156467bf +2025-07-18 11:04:00,2025-07-14 06:00:00,bea81c1795a612d8fc3a232b156467c0,7005,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c0,5005,draft_order,string,string,2025-07-18 11:04:00,bea81c1795a612d8fc3a232b156467c0 +2025-07-18 11:05:00,2025-07-13 05:00:00,bea81c1795a612d8fc3a232b156467c1,7006,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,5006,product_variant,boolean,string,2025-07-18 11:05:00,bea81c1795a612d8fc3a232b156467c1 +2025-07-18 11:06:00,2025-07-12 04:00:00,bea81c1795a612d8fc3a232b156467c2,7007,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2,5007,product,integer,string,2025-07-18 11:06:00,bea81c1795a612d8fc3a232b156467c2 +2025-07-18 11:07:00,2025-07-11 03:00:00,bea81c1795a612d8fc3a232b156467c3,7008,bea81c1795a612d8fc3a232b156467c3,bea81c1795a612d8fc3a232b156467c3,5008,collection,string,string,2025-07-18 11:07:00,bea81c1795a612d8fc3a232b156467c3 +2025-07-18 11:08:00,2025-07-10 02:00:00,bea81c1795a612d8fc3a232b156467c4,7009,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c4,5009,customer,json,string,2025-07-18 11:08:00,bea81c1795a612d8fc3a232b156467c4 +2025-07-18 11:09:00,2025-07-09 01:00:00,bea81c1795a612d8fc3a232b156467c5,7010,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5,5010,order,boolean,string,2025-07-18 11:09:00,bea81c1795a612d8fc3a232b156467c5 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_order_adjustment_data.csv b/integration_tests/seeds/shopify_gql_order_adjustment_data.csv new file mode 100644 index 00000000..249576db --- /dev/null +++ b/integration_tests/seeds/shopify_gql_order_adjustment_data.csv @@ -0,0 +1,11 @@ +id,refund_id,amount_set_pres_amount,amount_set_pres_currency_code,amount_set_shop_amount,amount_set_shop_currency_code,reason,tax_amount_set_pres_amount,tax_amount_set_pres_currency_code,tax_amount_set_shop_amount,tax_amount_set_shop_currency_code,_fivetran_synced +1001,2001,10.00,USD,10.00,USD,bea81c1795a612d8fc3a232b156467bc,0.80,USD,0.80,USD,2025-07-18 11:00:00 +1002,2002,15.50,USD,15.50,USD,bea81c1795a612d8fc3a232b156467bd,1.20,USD,1.20,USD,2025-07-18 11:01:00 +1003,2003,5.75,USD,5.75,USD,bea81c1795a612d8fc3a232b156467be,0.46,USD,0.46,USD,2025-07-18 11:02:00 +1004,2004,8.90,USD,8.90,USD,bea81c1795a612d8fc3a232b156467bf,0.71,USD,0.71,USD,2025-07-18 11:03:00 +1005,2005,12.00,USD,12.00,USD,bea81c1795a612d8fc3a232b156467c0,0.96,USD,0.96,USD,2025-07-18 11:04:00 +1006,2006,7.25,USD,7.25,USD,bea81c1795a612d8fc3a232b156467c1,0.58,USD,0.58,USD,2025-07-18 11:05:00 +1007,2007,6.00,USD,6.00,USD,bea81c1795a612d8fc3a232b156467c2,0.48,USD,0.48,USD,2025-07-18 11:06:00 +1008,2008,9.40,USD,9.40,USD,bea81c1795a612d8fc3a232b156467c3,0.75,USD,0.75,USD,2025-07-18 11:07:00 +1009,2009,11.30,USD,11.30,USD,bea81c1795a612d8fc3a232b156467c4,0.91,USD,0.91,USD,2025-07-18 11:08:00 +1010,2010,14.80,USD,14.80,USD,bea81c1795a612d8fc3a232b156467c5,1.18,USD,1.18,USD,2025-07-18 11:09:00 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_order_data.csv b/integration_tests/seeds/shopify_gql_order_data.csv new file mode 100644 index 00000000..ddb9284b --- /dev/null +++ b/integration_tests/seeds/shopify_gql_order_data.csv @@ -0,0 +1,10 @@ +_fivetran_deleted,_fivetran_synced,app_id,billing_address_address_1,billing_address_address_2,billing_address_city,billing_address_company,billing_address_country,billing_address_country_code,billing_address_first_name,billing_address_last_name,billing_address_latitude,billing_address_longitude,billing_address_name,billing_address_phone,billing_address_province,billing_address_province_code,billing_address_zip,cancel_reason,cancelled_at,client_ip,closed_at,confirmed,created_at,currency_code,customer_accepts_marketing,customer_id,customer_locale,display_financial_status,display_fulfillment_status,email,id,location_id,name,note,presentment_currency_code,processed_at,shipping_address_address_1,shipping_address_address_2,shipping_address_city,shipping_address_company,shipping_address_country,shipping_address_country_code,shipping_address_first_name,shipping_address_last_name,shipping_address_latitude,shipping_address_longitude,shipping_address_name,shipping_address_phone,shipping_address_province,shipping_address_province_code,shipping_address_zip,source_name,staff_member_id,status_page_url,subtotal_price_set_pres_amount,subtotal_price_set_pres_currency_code,subtotal_price_set_shop_amount,subtotal_price_set_shop_currency_code,taxes_included,test,total_discounts_set_pres_amount,total_discounts_set_pres_currency_code,total_discounts_set_shop_amount,total_discounts_set_shop_currency_code,total_price_set_pres_amount,total_price_set_pres_currency_code,total_price_set_shop_amount,total_price_set_shop_currency_code,total_shipping_price_set_pres_amount,total_shipping_price_set_pres_currency_code,total_shipping_price_set_shop_amount,total_shipping_price_set_shop_currency_code,total_tax_set_pres_amount,total_tax_set_pres_currency_code,total_tax_set_shop_amount,total_tax_set_shop_currency_code,total_tip_received_set_pres_amount,total_tip_received_set_pres_currency_code,total_tip_received_set_shop_amount,total_tip_received_set_shop_currency_code,total_weight,updated_at +FALSE,2025-07-19 09:00:00,2001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,US,US,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,12.3456,65.4321,bea81c1795a612d8fc3a232b156467bc,1111111111,CA,CA,12345,, ,192.168.1.1,2025-07-19 08:00:00,TRUE,2025-07-18 08:45:00,USD,TRUE,1001,en-US,PAID,UNFULFILLED,bea81c1795a612d8fc3a232b156467bc,4001,10001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,USD,2025-07-18 09:00:00,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,US,US,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,23.4567,45.6789,bea81c1795a612d8fc3a232b156467bd,2222222222,CA,CA,54321,online,5001,bea81c1795a612d8fc3a232b156467bc,49.99,USD,49.99,USD,TRUE,FALSE,5.00,USD,5.00,USD,55.00,USD,55.00,USD,2.00,USD,2.00,USD,3.00,USD,3.00,USD,1000,USD,1000,USD,,2025-07-18 09:00:00 +TRUE,2025-07-19 09:05:00,2002,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,CA,CA,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,13.0000,66.0000,bea81c1795a612d8fc3a232b156467bd,3333333333,ON,ON,54321,inventory,2025-07-18 14:00:00,10.0.0.2,2025-07-19 08:00:00,FALSE,2025-07-18 10:00:00,CAD,FALSE,1002,fr-CA,AUTHORIZED,PARTIALLY_FULFILLED,bea81c1795a612d8fc3a232b156467bd,4002,10002,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,CAD,2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,CA,CA,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,24.0000,46.0000,bea81c1795a612d8fc3a232b156467be,4444444444,ON,CA,98765,point_of_sale,5002,bea81c1795a612d8fc3a232b156467bd,59.99,CAD,59.99,CAD,FALSE,FALSE,0.00,CAD,0.00,CAD,59.99,CAD,59.99,CAD,5.00,CAD,5.00,CAD,0.00,CAD,0.00,CAD,1500,USD,1500,USD,,2025-07-18 09:00:00 +FALSE,2025-07-19 09:10:00,2003,bea81c1795a612d8fc3a232b156467be,,,,,,,,,,,,,,192.168.1.3,,2025-07-18 14:00:00,10.0.0.2,2025-07-19 08:00:00,TRUE,2025-07-18 10:00:00,USD,TRUE,1003,en-US,PAID,FULFILLED,bea81c1795a612d8fc3a232b156467be,4003,10001,bea81c1795a612d8fc3a232b156467bc,,,,,,,,,,,,,,,,CA,ON,54321,online,5001,bea81c1795a612d8fc3a232b156467bc,2.00,USD,2.00,USD,TRUE,FALSE,31.99,USD,3.00,USD,3.00,USD,2000,USD,5.00,USD,5.00,USD,3.00,USD,3.00,USD,5.00,USD,5.00,USD,,2025-07-18 09:00:00 +TRUE,2025-07-19 09:15:00,2004,bea81c1795a612d8fc3a232b156467bf,,,,,,,,,,,,,,10.0.0.4,,2025-07-16 11:00:00,10.0.0.2,2025-07-19 08:00:00,FALSE,2025-07-18 10:00:00,USD,TRUE,1004,en-US,PAID,UNFULFILLED,bea81c1795a612d8fc3a232b156467bf,4004,10002,bea81c1795a612d8fc3a232b156467bd,,,,,,,,,,,,,,,,ON,CA,54321,point_of_sale,5002,bea81c1795a612d8fc3a232b156467bd,10.00,USD,10.00,USD,FALSE,FALSE,69.00,USD,5.00,USD,5.00,USD,0.00,CAD,0.00,USD,5.00,CAD,0.00,CAD,0.00,CAD,10.00,USD,10.00,USD,,2025-07-18 09:00:00 +FALSE,2025-07-19 09:20:00,2005,bea81c1795a612d8fc3a232b156467c0,,,,,,,,,,,,,,192.168.1.5,,2025-07-16 11:00:00,10.0.0.2,2025-07-19 08:00:00,TRUE,2025-07-18 10:00:00,USD,TRUE,1005,en-US,PAID,PARTIALLY_FULFILLED,bea81c1795a612d8fc3a232b156467c0,4005,10001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467c1,USD,2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467c1,US,US,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,US,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467c2,46.0000,46.0000,FL,5555555555,CA,ON,54321,online,5001,bea81c1795a612d8fc3a232b156467bc,10.00,USD,10.00,USD,TRUE,FALSE,69.00,USD,5.00,USD,5.00,USD,0.00,USD,5.00,USD,5.00,USD,3.00,USD,3.00,USD,5.00,USD,5.00,USD,,2025-07-18 09:00:00 +TRUE,2025-07-19 09:25:00,2006,bea81c1795a612d8fc3a232b156467c1,,,,,,,,,,,,,,10.0.0.6,,2025-07-14 09:00:00,10.0.0.2,2025-07-19 08:00:00,FALSE,2025-07-18 10:00:00,USD,TRUE,1006,en-US,PAID,FULFILLED,bea81c1795a612d8fc3a232b156467c1,4006,10002,bea81c1795a612d8fc3a232b156467bd,,,,,,,,,,,,,,,,ON,CA,54321,point_of_sale,5002,bea81c1795a612d8fc3a232b156467bd,0.00,USD,0.00,USD,FALSE,FALSE,99.99,USD,8.00,USD,8.00,USD,2.00,CAD,2.00,USD,5.00,CAD,0.00,CAD,0.00,CAD,10.00,USD,10.00,USD,,2025-07-18 09:00:00 +FALSE,2025-07-19 09:30:00,2007,bea81c1795a612d8fc3a232b156467c2,,,,,,,,,,,,,,192.168.1.7,,2025-07-14 09:00:00,10.0.0.2,2025-07-19 08:00:00,TRUE,2025-07-18 10:00:00,USD,FALSE,1007,en-US,PAID,UNFULFILLED,bea81c1795a612d8fc3a232b156467c2,4007,10001,bea81c1795a612d8fc3a232b156467bc,,,,,,,,,,,,,,,,CA,ON,54321,online,5001,bea81c1795a612d8fc3a232b156467bc,3.00,USD,3.00,USD,TRUE,TRUE,38.00,USD,2.50,USD,2.50,USD,0.00,USD,0.00,USD,5.00,USD,3.00,USD,3.00,USD,5.00,USD,5.00,USD,,2025-07-18 09:00:00 +TRUE,2025-07-19 09:35:00,2008,bea81c1795a612d8fc3a232b156467c3,,,,,,,,,,,,,,10.0.0.8,,2025-07-12 07:00:00,10.0.0.2,2025-07-19 08:00:00,FALSE,2025-07-18 10:00:00,USD,FALSE,1008,en-US,PAID,PARTIALLY_FULFILLED,bea81c1795a612d8fc3a232b156467c3,4008,10002,bea81c1795a612d8fc3a232b156467bd,,,,,,,,,,,,,,,,ON,CA,54321,point_of_sale,5002,bea81c1795a612d8fc3a232b156467bd,1.00,USD,1.00,USD,FALSE,TRUE,16.00,USD,1.50,USD,1.50,USD,0.00,USD,0.00,USD,5.00,CAD,0.00,CAD,0.00,CAD,10.00,USD,10.00,USD,,2025-07-18 09:00:00 +FALSE,2025-07-19 09:40:00,2009,bea81c1795a612d8fc3a232b156467c4,,,,,,,,,,,,,,192.168.1.9,,2025-07-12 07:00:00,10.0.0.2,2025-07-19 08:00:00,TRUE,2025-07-18 10:00:00,USD,FALSE,1009,en-US,PAID,FULFILLED,bea81c1795a612d8fc3a232b156467c4,4009,10001,bea81c1795a612d8fc3a232b156467bc,,,,,,,,,,,,,,,,CA,ON,54321,point_of_sale,5001,bea81c1795a612d8fc3a232b156467bc,10.00,USD,10.00,USD,TRUE,FALSE,130.00,USD,7.00,USD,7.00,USD,0.00,USD,0.00,USD,5.00,USD,3.00,USD,3.00,USD,5.00,USD,5.00,USD,,2025-07-18 09:00:00 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_order_discount_code_data.csv b/integration_tests/seeds/shopify_gql_order_discount_code_data.csv new file mode 100644 index 00000000..2557c8a3 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_order_discount_code_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,code,index,order_id +2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467bc,0,5001 +2025-07-18 11:00:01,bea81c1795a612d8fc3a232b156467bd,1,5002 +2025-07-18 11:00:02,bea81c1795a612d8fc3a232b156467be,0,5003 +2025-07-18 11:00:03,bea81c1795a612d8fc3a232b156467bf,0,5004 +2025-07-18 11:00:04,bea81c1795a612d8fc3a232b156467c0,0,5005 +2025-07-18 11:00:05,bea81c1795a612d8fc3a232b156467c1,0,5006 +2025-07-18 11:00:06,bea81c1795a612d8fc3a232b156467c2,0,5007 +2025-07-18 11:00:07,bea81c1795a612d8fc3a232b156467c3,0,5008 +2025-07-18 11:00:08,bea81c1795a612d8fc3a232b156467c4,1,5009 +2025-07-18 11:00:09,bea81c1795a612d8fc3a232b156467c5,0,5010 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_order_line_data.csv b/integration_tests/seeds/shopify_gql_order_line_data.csv new file mode 100644 index 00000000..50126fcf --- /dev/null +++ b/integration_tests/seeds/shopify_gql_order_line_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,id,is_gift_card,name,order_id,original_total_set_pres_amount,original_total_set_pres_currency_code,original_total_set_shop_amount,original_total_set_shop_currency_code,product_id,quantity,requires_shipping,sku,taxable,title,total_discount_set_pres_amount,total_discount_set_pres_currency_code,total_discount_set_shop_amount,total_discount_set_shop_currency_code,unfulfilled_quantity,variant_id,variant_title,vendor +2025-07-18 11:00:00,10001,FALSE,bea81c1795a612d8fc3a232b156467aa,5001,19.99,USD,19.99,USD,2001,1,TRUE,bea81c1795a612d8fc3a232b156467ab,TRUE,bea81c1795a612d8fc3a232b156467ac,0.00,USD,0.00,USD,0,3001,bea81c1795a612d8fc3a232b156467ad,bea81c1795a612d8fc3a232b156467ae +2025-07-18 11:01:00,10002,FALSE,bea81c1795a612d8fc3a232b156467af,5002,29.99,USD,29.99,USD,2002,2,TRUE,bea81c1795a612d8fc3a232b156467b0,TRUE,bea81c1795a612d8fc3a232b156467b1,5.00,USD,5.00,USD,1,3002,bea81c1795a612d8fc3a232b156467b2,bea81c1795a612d8fc3a232b156467b3 +2025-07-18 11:02:00,10003,FALSE,bea81c1795a612d8fc3a232b156467b4,5003,15.00,USD,15.00,USD,2003,1,FALSE,bea81c1795a612d8fc3a232b156467b5,FALSE,bea81c1795a612d8fc3a232b156467b6,0.00,USD,0.00,USD,0,3003,bea81c1795a612d8fc3a232b156467b7,bea81c1795a612d8fc3a232b156467b8 +2025-07-18 11:03:00,10004,TRUE,bea81c1795a612d8fc3a232b156467b9,5004,50.00,USD,50.00,USD,2004,1,FALSE,bea81c1795a612d8fc3a232b156467ba,FALSE,bea81c1795a612d8fc3a232b156467bb,10.00,USD,10.00,USD,1,3004,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bd +2025-07-18 11:04:00,10005,FALSE,bea81c1795a612d8fc3a232b156467be,5005,9.99,USD,9.99,USD,2005,3,TRUE,bea81c1795a612d8fc3a232b156467bf,TRUE,bea81c1795a612d8fc3a232b156467c0,1.00,USD,1.00,USD,0,3005,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c2 +2025-07-18 11:05:00,10006,FALSE,bea81c1795a612d8fc3a232b156467c3,5006,100.00,USD,100.00,USD,2006,1,TRUE,bea81c1795a612d8fc3a232b156467c4,TRUE,bea81c1795a612d8fc3a232b156467c5,20.00,USD,20.00,USD,1,3006,bea81c1795a612d8fc3a232b156467c6,bea81c1795a612d8fc3a232b156467c7 +2025-07-18 11:06:00,10007,TRUE,bea81c1795a612d8fc3a232b156467c8,5007,75.00,USD,75.00,USD,2007,1,FALSE,bea81c1795a612d8fc3a232b156467c9,FALSE,bea81c1795a612d8fc3a232b156467ca,0.00,USD,0.00,USD,0,3007,bea81c1795a612d8fc3a232b156467cb,bea81c1795a612d8fc3a232b156467cc +2025-07-18 11:07:00,10008,FALSE,bea81c1795a612d8fc3a232b156467cd,5008,40.00,USD,40.00,USD,2008,2,TRUE,bea81c1795a612d8fc3a232b156467ce,TRUE,bea81c1795a612d8fc3a232b156467cf,2.00,USD,2.00,USD,0,3008,bea81c1795a612d8fc3a232b156467d0,bea81c1795a612d8fc3a232b156467d1 +2025-07-18 11:08:00,10009,FALSE,bea81c1795a612d8fc3a232b156467d2,5009,12.00,USD,12.00,USD,2009,1,TRUE,bea81c1795a612d8fc3a232b156467d3,TRUE,bea81c1795a612d8fc3a232b156467d4,0.50,USD,0.50,USD,1,3009,bea81c1795a612d8fc3a232b156467d5,bea81c1795a612d8fc3a232b156467d6 +2025-07-18 11:09:00,10010,FALSE,bea81c1795a612d8fc3a232b156467d7,5010,22.00,USD,22.00,USD,2010,1,FALSE,bea81c1795a612d8fc3a232b156467d8,FALSE,bea81c1795a612d8fc3a232b156467d9,1.50,USD,1.50,USD,0,3010,bea81c1795a612d8fc3a232b156467da,bea81c1795a612d8fc3a232b156467db \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_order_line_refund_data.csv b/integration_tests/seeds/shopify_gql_order_line_refund_data.csv new file mode 100644 index 00000000..1e61a34d --- /dev/null +++ b/integration_tests/seeds/shopify_gql_order_line_refund_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,id,location_id,order_line_id,quantity,refund_id,restock_type,subtotal_set_pres_amount,subtotal_set_pres_currency_code,subtotal_set_shop_amount,subtotal_set_shop_currency_code,total_tax_set_pres_amount,total_tax_set_pres_currency_code,total_tax_set_shop_amount,total_tax_set_shop_currency_code +2025-07-18 11:00:00,10001,20001,30001,1.0,40001,return,19.99,USD,19.99,USD,2.00,USD,2.00,USD +2025-07-18 11:01:00,10002,20002,30002,2.0,40002,no_restock,29.99,USD,29.99,USD,3.00,USD,3.00,USD +2025-07-18 11:02:00,10003,20003,30003,1.0,40003,legacy_restock,49.99,CAD,49.99,CAD,5.00,CAD,5.00,CAD +2025-07-18 11:03:00,10004,20004,30004,3.0,40004,return,15.00,USD,15.00,USD,1.50,USD,1.50,USD +2025-07-18 11:04:00,10005,20005,30005,2.0,40005,no_restock,24.99,USD,24.99,USD,2.49,USD,2.49,USD +2025-07-18 11:05:00,10006,20006,30006,1.0,40006,return,39.99,USD,39.99,USD,4.00,USD,4.00,USD +2025-07-18 11:06:00,10007,20007,30007,2.0,40007,legacy_restock,59.99,USD,59.99,USD,6.00,USD,6.00,USD +2025-07-18 11:07:00,10008,20008,30008,1.0,40008,return,9.99,USD,9.99,USD,0.99,USD,0.99,USD +2025-07-18 11:08:00,10009,20009,30009,3.0,40009,no_restock,89.99,USD,89.99,USD,8.99,USD,8.99,USD +2025-07-18 11:09:00,10010,20010,30010,1.0,40010,return,11.99,USD,11.99,USD,1.20,USD,1.20,USD \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_order_note_attribute_data.csv b/integration_tests/seeds/shopify_gql_order_note_attribute_data.csv new file mode 100644 index 00000000..22c9141c --- /dev/null +++ b/integration_tests/seeds/shopify_gql_order_note_attribute_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,name,order_id,value +2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467bc,5001,bea81c1795a612d8fc3a232b156467bc +2025-07-18 11:01:00,bea81c1795a612d8fc3a232b156467bd,5002,bea81c1795a612d8fc3a232b156467bd +2025-07-18 11:02:00,bea81c1795a612d8fc3a232b156467be,5003,bea81c1795a612d8fc3a232b156467be +2025-07-18 11:03:00,bea81c1795a612d8fc3a232b156467bf,5004,bea81c1795a612d8fc3a232b156467bf +2025-07-18 11:04:00,bea81c1795a612d8fc3a232b156467c0,5005,bea81c1795a612d8fc3a232b156467c0 +2025-07-18 11:05:00,bea81c1795a612d8fc3a232b156467c1,5006,bea81c1795a612d8fc3a232b156467c1 +2025-07-18 11:06:00,bea81c1795a612d8fc3a232b156467c2,5007,bea81c1795a612d8fc3a232b156467c2 +2025-07-18 11:07:00,bea81c1795a612d8fc3a232b156467c3,5008,bea81c1795a612d8fc3a232b156467c3 +2025-07-18 11:08:00,bea81c1795a612d8fc3a232b156467c4,5009,bea81c1795a612d8fc3a232b156467c4 +2025-07-18 11:09:00,bea81c1795a612d8fc3a232b156467c5,5010,bea81c1795a612d8fc3a232b156467c5 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_order_shipping_line_data.csv b/integration_tests/seeds/shopify_gql_order_shipping_line_data.csv new file mode 100644 index 00000000..b0c5f17f --- /dev/null +++ b/integration_tests/seeds/shopify_gql_order_shipping_line_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,carrier_identifier,code,current_discounted_price_set_pres_amount,current_discounted_price_set_pres_currency_code,current_discounted_price_set_shop_amount,current_discounted_price_set_shop_currency_code,custom,delivery_category,discounted_price_set_pres_amount,discounted_price_set_pres_currency_code,discounted_price_set_shop_amount,discounted_price_set_shop_currency_code,id,is_removed,order_id,original_price_set_pres_amount,original_price_set_pres_currency_code,original_price_set_shop_amount,original_price_set_shop_currency_code,phone,shipping_rate_handle,source,title +2025-07-18 10:10:00,bea81c1795a612d8fc3a232b156467aa,STD,5.00,USD,5.00,USD,FALSE,standard,5.00,USD,5.00,USD,10001,FALSE,5001,7.00,USD,7.00,USD,1111111111,bea81c1795a612d8fc3a232b156467ab,shopify,Standard Shipping +2025-07-18 10:11:00,bea81c1795a612d8fc3a232b156467ac,EXP,10.00,USD,10.00,USD,FALSE,express,10.00,USD,10.00,USD,10002,FALSE,5002,12.00,USD,12.00,USD,2222222222,bea81c1795a612d8fc3a232b156467ad,shopify,Express Delivery +2025-07-18 10:12:00,bea81c1795a612d8fc3a232b156467ae,NEXT,15.00,USD,15.00,USD,TRUE,overnight,15.00,USD,15.00,USD,10003,FALSE,5003,18.00,USD,18.00,USD,3333333333,bea81c1795a612d8fc3a232b156467af,manual,Next Day Air +2025-07-18 10:13:00,bea81c1795a612d8fc3a232b156467b0,STD,5.00,USD,5.00,USD,FALSE,standard,5.00,USD,5.00,USD,10004,FALSE,5004,6.50,USD,6.50,USD,4444444444,bea81c1795a612d8fc3a232b156467b1,shopify,Standard Shipping +2025-07-18 10:14:00,bea81c1795a612d8fc3a232b156467b2,EXP,9.00,USD,9.00,USD,TRUE,express,9.00,USD,9.00,USD,10005,FALSE,5005,10.00,USD,10.00,USD,5555555555,bea81c1795a612d8fc3a232b156467b3,manual,Express Delivery +2025-07-18 10:15:00,bea81c1795a612d8fc3a232b156467b4,STD,6.00,USD,6.00,USD,FALSE,standard,6.00,USD,6.00,USD,10006,FALSE,5006,6.00,USD,6.00,USD,6666666666,bea81c1795a612d8fc3a232b156467b5,shopify,Standard Shipping +2025-07-18 10:16:00,bea81c1795a612d8fc3a232b156467b6,NEXT,18.00,USD,18.00,USD,FALSE,overnight,18.00,USD,18.00,USD,10007,TRUE,5007,20.00,USD,20.00,USD,7777777777,bea81c1795a612d8fc3a232b156467b7,manual,Next Day Air +2025-07-18 10:17:00,bea81c1795a612d8fc3a232b156467b8,STD,4.00,USD,4.00,USD,TRUE,standard,4.00,USD,4.00,USD,10008,FALSE,5008,5.00,USD,5.00,USD,8888888888,bea81c1795a612d8fc3a232b156467b9,shopify,Standard Shipping +2025-07-18 10:18:00,bea81c1795a612d8fc3a232b156467c0,EXP,11.00,USD,11.00,USD,FALSE,express,11.00,USD,11.00,USD,10009,FALSE,5009,13.00,USD,13.00,USD,9999999999,bea81c1795a612d8fc3a232b156467c1,shopify,Express Delivery +2025-07-18 10:19:00,bea81c1795a612d8fc3a232b156467c2,STD,5.50,USD,5.50,USD,FALSE,standard,5.50,USD,5.50,USD,10010,FALSE,5010,6.00,USD,6.00,USD,0000000000,bea81c1795a612d8fc3a232b156467c3,manual,Standard Shipping \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_order_shipping_tax_line_data.csv b/integration_tests/seeds/shopify_gql_order_shipping_tax_line_data.csv new file mode 100644 index 00000000..1265b6bf --- /dev/null +++ b/integration_tests/seeds/shopify_gql_order_shipping_tax_line_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,index,order_shipping_line_id,price_set_pres_amount,price_set_pres_currency_code,price_set_shop_amount,price_set_shop_currency_code,rate,source,title +2025-07-18 11:00:00,0,8001,1.00,USD,1.00,USD,0.050000,bea81c1795a612d8fc3a232b156467aa,bea81c1795a612d8fc3a232b156467bb +2025-07-18 11:01:00,1,8002,2.50,USD,2.50,USD,0.075000,bea81c1795a612d8fc3a232b156467ac,bea81c1795a612d8fc3a232b156467bc +2025-07-18 11:02:00,0,8003,0.99,CAD,0.99,CAD,0.080000,bea81c1795a612d8fc3a232b156467ad,bea81c1795a612d8fc3a232b156467bd +2025-07-18 11:03:00,1,8004,3.20,USD,3.20,USD,0.090000,bea81c1795a612d8fc3a232b156467ae,bea81c1795a612d8fc3a232b156467be +2025-07-18 11:04:00,0,8005,1.75,USD,1.75,USD,0.070000,bea81c1795a612d8fc3a232b156467af,bea81c1795a612d8fc3a232b156467bf +2025-07-18 11:05:00,0,8006,2.00,USD,2.00,USD,0.060000,bea81c1795a612d8fc3a232b156467b0,bea81c1795a612d8fc3a232b156467c0 +2025-07-18 11:06:00,1,8007,1.20,USD,1.20,USD,0.055000,bea81c1795a612d8fc3a232b156467b1,bea81c1795a612d8fc3a232b156467c1 +2025-07-18 11:07:00,0,8008,4.50,USD,4.50,USD,0.100000,bea81c1795a612d8fc3a232b156467b2,bea81c1795a612d8fc3a232b156467c2 +2025-07-18 11:08:00,0,8009,2.80,USD,2.80,USD,0.065000,bea81c1795a612d8fc3a232b156467b3,bea81c1795a612d8fc3a232b156467c3 +2025-07-18 11:09:00,1,8010,1.90,USD,1.90,USD,0.085000,bea81c1795a612d8fc3a232b156467b4,bea81c1795a612d8fc3a232b156467c4 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_order_tag_data.csv b/integration_tests/seeds/shopify_gql_order_tag_data.csv new file mode 100644 index 00000000..a2e6f7c2 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_order_tag_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,index,order_id,value +2025-07-18 11:00:00,0,5001,bea81c1795a612d8fc3a232b156467bc +2025-07-18 11:01:00,1,5002,bea81c1795a612d8fc3a232b156467bd +2025-07-18 11:02:00,2,5003,bea81c1795a612d8fc3a232b156467be +2025-07-18 11:03:00,3,5004,bea81c1795a612d8fc3a232b156467bf +2025-07-18 11:04:00,4,5005,bea81c1795a612d8fc3a232b156467c0 +2025-07-18 11:05:00,5,5006,bea81c1795a612d8fc3a232b156467c1 +2025-07-18 11:06:00,6,5007,bea81c1795a612d8fc3a232b156467c2 +2025-07-18 11:07:00,7,5008,bea81c1795a612d8fc3a232b156467c3 +2025-07-18 11:08:00,8,5009,bea81c1795a612d8fc3a232b156467c4 +2025-07-18 11:09:00,9,5010,bea81c1795a612d8fc3a232b156467c5 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_product_data.csv b/integration_tests/seeds/shopify_gql_product_data.csv new file mode 100644 index 00000000..18fba9b5 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_product_data.csv @@ -0,0 +1,11 @@ +_fivetran_deleted,_fivetran_synced,created_at,handle,id,product_type,published_at,status,title,updated_at,vendor +FALSE,2025-07-18 10:00:00,2025-07-01 08:00:00,bea81c1795a612d8fc3a232b156467aa,10001,bea81c1795a612d8fc3a232b156467ab,2025-07-02 09:00:00,ACTIVE,bea81c1795a612d8fc3a232b156467ac,2025-07-18 10:00:00,bea81c1795a612d8fc3a232b156467ad +TRUE,2025-07-18 10:01:00,2025-06-30 07:00:00,bea81c1795a612d8fc3a232b156467ae,10002,bea81c1795a612d8fc3a232b156467af,2025-07-01 10:00:00,ARCHIVED,bea81c1795a612d8fc3a232b156467b0,2025-07-18 10:01:00,bea81c1795a612d8fc3a232b156467b1 +FALSE,2025-07-18 10:02:00,2025-06-29 06:30:00,bea81c1795a612d8fc3a232b156467b2,10003,bea81c1795a612d8fc3a232b156467b3,2025-06-30 11:00:00,ACTIVE,bea81c1795a612d8fc3a232b156467b4,2025-07-18 10:02:00,bea81c1795a612d8fc3a232b156467b5 +TRUE,2025-07-18 10:03:00,2025-06-28 06:00:00,bea81c1795a612d8fc3a232b156467b6,10004,bea81c1795a612d8fc3a232b156467b7,2025-06-29 12:00:00,DRAFT,bea81c1795a612d8fc3a232b156467b8,2025-07-18 10:03:00,bea81c1795a612d8fc3a232b156467b9 +FALSE,2025-07-18 10:04:00,2025-06-27 05:30:00,bea81c1795a612d8fc3a232b156467ba,10005,bea81c1795a612d8fc3a232b156467bb,2025-06-28 13:00:00,ACTIVE,bea81c1795a612d8fc3a232b156467bc,2025-07-18 10:04:00,bea81c1795a612d8fc3a232b156467bd +TRUE,2025-07-18 10:05:00,2025-06-26 05:00:00,bea81c1795a612d8fc3a232b156467be,10006,bea81c1795a612d8fc3a232b156467bf,2025-06-27 14:00:00,ARCHIVED,bea81c1795a612d8fc3a232b156467c0,2025-07-18 10:05:00,bea81c1795a612d8fc3a232b156467c1 +FALSE,2025-07-18 10:06:00,2025-06-25 04:30:00,bea81c1795a612d8fc3a232b156467c2,10007,bea81c1795a612d8fc3a232b156467c3,2025-06-26 15:00:00,ACTIVE,bea81c1795a612d8fc3a232b156467c4,2025-07-18 10:06:00,bea81c1795a612d8fc3a232b156467c5 +TRUE,2025-07-18 10:07:00,2025-06-24 04:00:00,bea81c1795a612d8fc3a232b156467c6,10008,bea81c1795a612d8fc3a232b156467c7,2025-06-25 16:00:00,DRAFT,bea81c1795a612d8fc3a232b156467c8,2025-07-18 10:07:00,bea81c1795a612d8fc3a232b156467c9 +FALSE,2025-07-18 10:08:00,2025-06-23 03:30:00,bea81c1795a612d8fc3a232b156467ca,10009,bea81c1795a612d8fc3a232b156467cb,2025-06-24 17:00:00,ACTIVE,bea81c1795a612d8fc3a232b156467cc,2025-07-18 10:08:00,bea81c1795a612d8fc3a232b156467cd +TRUE,2025-07-18 10:09:00,2025-06-22 03:00:00,bea81c1795a612d8fc3a232b156467ce,10010,bea81c1795a612d8fc3a232b156467cf,2025-06-23 18:00:00,ARCHIVED,bea81c1795a612d8fc3a232b156467d0,2025-07-18 10:09:00,bea81c1795a612d8fc3a232b156467d1 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_product_media_data.csv b/integration_tests/seeds/shopify_gql_product_media_data.csv new file mode 100644 index 00000000..a5d2d060 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_product_media_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,media_id,product_id +2025-07-18 11:00:00,9001,10001 +2025-07-18 11:01:00,9002,10002 +2025-07-18 11:02:00,9003,10003 +2025-07-18 11:03:00,9004,10004 +2025-07-18 11:04:00,9005,10005 +2025-07-18 11:05:00,9006,10006 +2025-07-18 11:06:00,9007,10007 +2025-07-18 11:07:00,9008,10008 +2025-07-18 11:08:00,9009,10009 +2025-07-18 11:09:00,9010,10010 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_product_tag_data.csv b/integration_tests/seeds/shopify_gql_product_tag_data.csv new file mode 100644 index 00000000..1e0fccd9 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_product_tag_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,index,product_id,value +2025-07-18 11:00:00,1,10001,bea81c1795a612d8fc3a232b156467bc +2025-07-18 11:01:00,2,10002,bea81c1795a612d8fc3a232b156467bd +2025-07-18 11:02:00,3,10003,bea81c1795a612d8fc3a232b156467be +2025-07-18 11:03:00,4,10004,bea81c1795a612d8fc3a232b156467bf +2025-07-18 11:04:00,5,10005,bea81c1795a612d8fc3a232b156467c0 +2025-07-18 11:05:00,6,10006,bea81c1795a612d8fc3a232b156467c1 +2025-07-18 11:06:00,7,10007,bea81c1795a612d8fc3a232b156467c2 +2025-07-18 11:07:00,8,10008,bea81c1795a612d8fc3a232b156467c3 +2025-07-18 11:08:00,9,10009,bea81c1795a612d8fc3a232b156467c4 +2025-07-18 11:09:00,10,10010,bea81c1795a612d8fc3a232b156467c5 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_product_variant_data.csv b/integration_tests/seeds/shopify_gql_product_variant_data.csv new file mode 100644 index 00000000..6f53ff0d --- /dev/null +++ b/integration_tests/seeds/shopify_gql_product_variant_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,available_for_sale,barcode,compare_at_price,created_at,display_name,id,inventory_item_id,inventory_policy,inventory_quantity,legacy_resource_id,position,price,product_id,requires_components,sellable_online_quantity,sku,tax_code,taxable,title,updated_at +2025-07-18 11:00:00,TRUE,bea81c1795a612d8fc3a232b156467bc,100.00,2025-06-01 10:00:00,bea81c1795a612d8fc3a232b156467bc,101,201,continue,10,301,1,89.99,401,FALSE,5,bea81c1795a612d8fc3a232b156467bc,TX001,TRUE,bea81c1795a612d8fc3a232b156467bc,2025-07-18 11:00:00 +2025-07-18 11:01:00,FALSE,bea81c1795a612d8fc3a232b156467bd,200.00,2025-06-02 10:10:00,bea81c1795a612d8fc3a232b156467bd,102,202,deny,0,302,2,159.99,402,TRUE,0,bea81c1795a612d8fc3a232b156467bd,TX002,FALSE,bea81c1795a612d8fc3a232b156467bd,2025-07-18 11:01:00 +2025-07-18 11:02:00,TRUE,bea81c1795a612d8fc3a232b156467be,300.00,2025-06-03 10:20:00,bea81c1795a612d8fc3a232b156467be,103,203,continue,20,303,3,129.99,403,FALSE,15,bea81c1795a612d8fc3a232b156467be,TX003,TRUE,bea81c1795a612d8fc3a232b156467be,2025-07-18 11:02:00 +2025-07-18 11:03:00,FALSE,bea81c1795a612d8fc3a232b156467bf,150.00,2025-06-04 10:30:00,bea81c1795a612d8fc3a232b156467bf,104,204,deny,5,304,4,109.99,404,TRUE,2,bea81c1795a612d8fc3a232b156467bf,TX004,FALSE,bea81c1795a612d8fc3a232b156467bf,2025-07-18 11:03:00 +2025-07-18 11:04:00,TRUE,bea81c1795a612d8fc3a232b156467c0,250.00,2025-06-05 10:40:00,bea81c1795a612d8fc3a232b156467c0,105,205,continue,12,305,5,139.99,405,FALSE,8,bea81c1795a612d8fc3a232b156467c0,TX005,TRUE,bea81c1795a612d8fc3a232b156467c0,2025-07-18 11:04:00 +2025-07-18 11:05:00,TRUE,bea81c1795a612d8fc3a232b156467c1,180.00,2025-06-06 10:50:00,bea81c1795a612d8fc3a232b156467c1,106,206,continue,0,306,6,79.99,406,FALSE,0,bea81c1795a612d8fc3a232b156467c1,TX006,FALSE,bea81c1795a612d8fc3a232b156467c1,2025-07-18 11:05:00 +2025-07-18 11:06:00,FALSE,bea81c1795a612d8fc3a232b156467c2,90.00,2025-06-07 11:00:00,bea81c1795a612d8fc3a232b156467c2,107,207,deny,7,307,7,69.99,407,TRUE,3,bea81c1795a612d8fc3a232b156467c2,TX007,TRUE,bea81c1795a612d8fc3a232b156467c2,2025-07-18 11:06:00 +2025-07-18 11:07:00,TRUE,bea81c1795a612d8fc3a232b156467c3,300.00,2025-06-08 11:10:00,bea81c1795a612d8fc3a232b156467c3,108,208,continue,25,308,8,199.99,408,FALSE,20,bea81c1795a612d8fc3a232b156467c3,TX008,FALSE,bea81c1795a612d8fc3a232b156467c3,2025-07-18 11:07:00 +2025-07-18 11:08:00,FALSE,bea81c1795a612d8fc3a232b156467c4,175.00,2025-06-09 11:20:00,bea81c1795a612d8fc3a232b156467c4,109,209,deny,3,309,9,119.99,409,TRUE,1,bea81c1795a612d8fc3a232b156467c4,TX009,TRUE,bea81c1795a612d8fc3a232b156467c4,2025-07-18 11:08:00 +2025-07-18 11:09:00,TRUE,bea81c1795a612d8fc3a232b156467c5,220.00,2025-06-10 11:30:00,bea81c1795a612d8fc3a232b156467c5,110,210,continue,6,310,10,149.99,410,FALSE,4,bea81c1795a612d8fc3a232b156467c5,TX010,FALSE,bea81c1795a612d8fc3a232b156467c5,2025-07-18 11:09:00 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_product_variant_media_data.csv b/integration_tests/seeds/shopify_gql_product_variant_media_data.csv new file mode 100644 index 00000000..f3589311 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_product_variant_media_data.csv @@ -0,0 +1,11 @@ +product_variant_id,media_id +101,20001 +102,20002 +103,20003 +104,20004 +105,20005 +106,20006 +107,20007 +108,20008 +109,20009 +110,20010 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_refund_data.csv b/integration_tests/seeds/shopify_gql_refund_data.csv new file mode 100644 index 00000000..b3b907ac --- /dev/null +++ b/integration_tests/seeds/shopify_gql_refund_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,created_at,id,note,order_id,return_id,staff_member_id,total_refunded_set_pres_amount,total_refunded_set_pres_currency_code,total_refunded_set_shop_amount,total_refunded_set_shop_currency_code,updated_at +2025-07-18 11:00:00,2025-07-17 10:00:00,7001,bea81c1795a612d8fc3a232b156467aa,5001,8001,9001,19.99,USD,19.99,USD,2025-07-18 11:00:00 +2025-07-18 11:01:00,2025-07-16 09:00:00,7002,bea81c1795a612d8fc3a232b156467ab,5002,8002,9002,5.00,CAD,5.00,CAD,2025-07-18 11:01:00 +2025-07-18 11:02:00,2025-07-15 08:30:00,7003,bea81c1795a612d8fc3a232b156467ac,5003,8003,9003,10.00,USD,10.00,USD,2025-07-18 11:02:00 +2025-07-18 11:03:00,2025-07-14 08:00:00,7004,bea81c1795a612d8fc3a232b156467ad,5004,8004,9004,15.50,USD,15.50,USD,2025-07-18 11:03:00 +2025-07-18 11:04:00,2025-07-13 07:00:00,7005,bea81c1795a612d8fc3a232b156467ae,5005,8005,9005,8.75,USD,8.75,USD,2025-07-18 11:04:00 +2025-07-18 11:05:00,2025-07-12 06:00:00,7006,bea81c1795a612d8fc3a232b156467af,5006,8006,9006,12.00,USD,12.00,USD,2025-07-18 11:05:00 +2025-07-18 11:06:00,2025-07-11 05:30:00,7007,bea81c1795a612d8fc3a232b156467b0,5007,8007,9007,3.99,USD,3.99,USD,2025-07-18 11:06:00 +2025-07-18 11:07:00,2025-07-10 05:00:00,7008,bea81c1795a612d8fc3a232b156467b1,5008,8008,9008,6.49,USD,6.49,USD,2025-07-18 11:07:00 +2025-07-18 11:08:00,2025-07-09 04:00:00,7009,bea81c1795a612d8fc3a232b156467b2,5009,8009,9009,25.00,USD,25.00,USD,2025-07-18 11:08:00 +2025-07-18 11:09:00,2025-07-08 03:30:00,7010,bea81c1795a612d8fc3a232b156467b3,5010,8010,9010,9.95,USD,9.95,USD,2025-07-18 11:09:00 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_shop_data.csv b/integration_tests/seeds/shopify_gql_shop_data.csv new file mode 100644 index 00000000..75c0e9e2 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_shop_data.csv @@ -0,0 +1,11 @@ +_fivetran_deleted,_fivetran_synced,billing_address_address_1,billing_address_address_2,billing_address_city,billing_address_country,billing_address_country_code_v_2,billing_address_latitude,billing_address_longitude,billing_address_phone,billing_address_province,billing_address_province_code,billing_address_zip,checkout_api_supported,contact_email,created_at,currency_code,currency_formats_money_format,currency_formats_money_in_emails_format,currency_formats_money_with_currency_format,currency_formats_money_with_currency_in_emails_format,email,enabled_presentment_currencies,features_storefront,iana_timezone,id,myshopify_domain,name,password_enabled,plan_display_name,primary_domain_host,primary_domain_localization_default_locale,setup_required,shop_owner_name,tax_shipping,taxes_included,timezone_abbreviation,timezone_offset,timezone_offset_minutes,updated_at,weight_unit +FALSE,2025-07-18 10:10:00,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,US,45.1234,-73.5678,1111111111,bea81c1795a612d8fc3a232b156467bc,CA,22222,TRUE,bea81c1795a612d8fc3a232b156467bc,2025-01-01 00:00:00,USD,"$","$","$ USD","$ USD",bea81c1795a612d8fc3a232b156467bc,USD,TRUE,America/New_York,1001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,FALSE,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,en,FALSE,bea81c1795a612d8fc3a232b156467bc,TRUE,FALSE,EST,-0500,-300,2025-07-18 10:10:00,kg +TRUE,2025-07-18 10:11:00,bea81c1795a612d8fc3a232b156467bd,,,,CA,43.6532,-79.3832,2222222222,bea81c1795a612d8fc3a232b156467bd,ON,33333,FALSE,bea81c1795a612d8fc3a232b156467bd,2024-12-15 12:00:00,CAD,"$","$","$ CAD","$ CAD",bea81c1795a612d8fc3a232b156467bd,CAD,FALSE,America/Toronto,1002,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,TRUE,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,en,TRUE,bea81c1795a612d8fc3a232b156467bd,FALSE,TRUE,EST,-0500,-300,2025-07-18 10:11:00,lb +FALSE,2025-07-18 10:12:00,,,,,UK,51.5074,-0.1278,3333333333,,,,TRUE,bea81c1795a612d8fc3a232b156467be,2024-11-10 08:00:00,GBP,"£","£","£ GBP","£ GBP",bea81c1795a612d8fc3a232b156467be,GBP,TRUE,Europe/London,1003,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,FALSE,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,en,FALSE,bea81c1795a612d8fc3a232b156467be,TRUE,TRUE,BST,+0100,60,2025-07-18 10:12:00,kg +TRUE,2025-07-18 10:13:00,,,,,AU,-33.8688,151.2093,4444444444,,,,FALSE,bea81c1795a612d8fc3a232b156467bf,2024-10-05 16:30:00,AUD,"$","$","$ AUD","$ AUD",bea81c1795a612d8fc3a232b156467bf,AUD,FALSE,Australia/Sydney,1004,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467bf,TRUE,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467bf,en,TRUE,bea81c1795a612d8fc3a232b156467bf,FALSE,FALSE,AEST,+1000,600,2025-07-18 10:13:00,g +FALSE,2025-07-18 10:14:00,,,,,NZ,-36.8485,174.7633,5555555555,,,,TRUE,bea81c1795a612d8fc3a232b156467c0,2024-09-20 11:15:00,NZD,"$","$","$ NZD","$ NZD",bea81c1795a612d8fc3a232b156467c0,NZD,TRUE,Pacific/Auckland,1005,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c0,FALSE,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c0,en,FALSE,bea81c1795a612d8fc3a232b156467c0,TRUE,TRUE,NZT,+1200,720,2025-07-18 10:14:00,kg +TRUE,2025-07-18 10:15:00,,,,,DE,52.5200,13.4050,6666666666,,,,FALSE,bea81c1795a612d8fc3a232b156467c1,2024-08-01 05:45:00,EUR,"€","€","€ EUR","€ EUR",bea81c1795a612d8fc3a232b156467c1,EUR,FALSE,Europe/Berlin,1006,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,TRUE,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,de,TRUE,bea81c1795a612d8fc3a232b156467c1,FALSE,FALSE,CET,+0100,60,2025-07-18 10:15:00,kg +FALSE,2025-07-18 10:16:00,,,,,FR,48.8566,2.3522,7777777777,,,,TRUE,bea81c1795a612d8fc3a232b156467c2,2024-07-25 10:10:00,EUR,"€","€","€ EUR","€ EUR",bea81c1795a612d8fc3a232b156467c2,EUR,TRUE,Europe/Paris,1007,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2,FALSE,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2,fr,FALSE,bea81c1795a612d8fc3a232b156467c2,TRUE,TRUE,CET,+0100,60,2025-07-18 10:16:00,g +TRUE,2025-07-18 10:17:00,,,,,JP,35.6895,139.6917,8888888888,,,,FALSE,bea81c1795a612d8fc3a232b156467c3,2024-06-30 09:00:00,JPY,"¥","¥","¥ JPY","¥ JPY",bea81c1795a612d8fc3a232b156467c3,JPY,FALSE,Asia/Tokyo,1008,bea81c1795a612d8fc3a232b156467c3,bea81c1795a612d8fc3a232b156467c3,TRUE,bea81c1795a612d8fc3a232b156467c3,bea81c1795a612d8fc3a232b156467c3,ja,TRUE,bea81c1795a612d8fc3a232b156467c3,FALSE,FALSE,JST,+0900,540,2025-07-18 10:17:00,kg +FALSE,2025-07-18 10:18:00,,,,,BR,-23.5505,-46.6333,9999999999,,,,TRUE,bea81c1795a612d8fc3a232b156467c4,2024-06-01 15:00:00,BRL,"R$","R$","R$ BRL","R$ BRL",bea81c1795a612d8fc3a232b156467c4,BRL,TRUE,America/Sao_Paulo,1009,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c4,FALSE,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c4,pt,FALSE,bea81c1795a612d8fc3a232b156467c4,TRUE,TRUE,BRT,-0300,-180,2025-07-18 10:18:00,g +TRUE,2025-07-18 10:19:00,,,,,IN,28.6139,77.2090,1010101010,,,,FALSE,bea81c1795a612d8fc3a232b156467c5,2024-05-20 18:00:00,INR,"₹","₹","₹ INR","₹ INR",bea81c1795a612d8fc3a232b156467c5,INR,FALSE,Asia/Kolkata,1010,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5,TRUE,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5,en,TRUE,bea81c1795a612d8fc3a232b156467c5,FALSE,FALSE,IST,+0530,330,2025-07-18 10:19:00,kg \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_tax_line_data.csv b/integration_tests/seeds/shopify_gql_tax_line_data.csv new file mode 100644 index 00000000..bb6e90c7 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_tax_line_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,index,order_line_id,price_set_pres_amount,price_set_pres_currency_code,price_set_shop_amount,price_set_shop_currency_code,rate,title +2025-07-18 11:00:00,0,10001,1.50,USD,1.50,USD,0.075,bea81c1795a612d8fc3a232b156467aa +2025-07-18 11:01:00,1,10001,0.50,USD,0.50,USD,0.025,bea81c1795a612d8fc3a232b156467ab +2025-07-18 11:02:00,0,10002,2.00,USD,2.00,USD,0.100,bea81c1795a612d8fc3a232b156467ac +2025-07-18 11:03:00,0,10003,0.75,USD,0.75,USD,0.050,bea81c1795a612d8fc3a232b156467ad +2025-07-18 11:04:00,1,10003,0.25,USD,0.25,USD,0.017,bea81c1795a612d8fc3a232b156467ae +2025-07-18 11:05:00,0,10004,1.25,USD,1.25,USD,0.060,bea81c1795a612d8fc3a232b156467af +2025-07-18 11:06:00,0,10005,1.10,USD,1.10,USD,0.055,bea81c1795a612d8fc3a232b156467b0 +2025-07-18 11:07:00,0,10006,0.90,USD,0.90,USD,0.045,bea81c1795a612d8fc3a232b156467b1 +2025-07-18 11:08:00,1,10006,0.30,USD,0.30,USD,0.015,bea81c1795a612d8fc3a232b156467b2 +2025-07-18 11:09:00,0,10007,2.50,USD,2.50,USD,0.125,bea81c1795a612d8fc3a232b156467b3 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_tender_transaction_data.csv b/integration_tests/seeds/shopify_gql_tender_transaction_data.csv new file mode 100644 index 00000000..4401db99 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_tender_transaction_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,amount,currency_code,id,order_id,payment_method,processed_at,remote_reference,test,user_id +2025-07-18 11:00:00,100.00,USD,9001,5001,credit_card,2025-07-17 10:00:00,bea81c1795a612d8fc3a232b156467aa,FALSE,2001 +2025-07-18 11:01:00,59.99,USD,9002,5002,paypal,2025-07-16 09:30:00,bea81c1795a612d8fc3a232b156467ab,TRUE,2002 +2025-07-18 11:02:00,29.50,USD,9003,5003,credit_card,2025-07-15 08:15:00,bea81c1795a612d8fc3a232b156467ac,FALSE,2003 +2025-07-18 11:03:00,12.00,USD,9004,5004,manual,2025-07-14 07:45:00,bea81c1795a612d8fc3a232b156467ad,FALSE,2004 +2025-07-18 11:04:00,199.99,USD,9005,5005,credit_card,2025-07-13 06:00:00,bea81c1795a612d8fc3a232b156467ae,FALSE,2005 +2025-07-18 11:05:00,84.50,USD,9006,5006,paypal,2025-07-12 05:30:00,bea81c1795a612d8fc3a232b156467af,TRUE,2006 +2025-07-18 11:06:00,39.95,USD,9007,5007,manual,2025-07-11 04:20:00,bea81c1795a612d8fc3a232b156467b0,FALSE,2007 +2025-07-18 11:07:00,15.00,USD,9008,5008,credit_card,2025-07-10 03:10:00,bea81c1795a612d8fc3a232b156467b1,FALSE,2008 +2025-07-18 11:08:00,72.35,USD,9009,5009,credit_card,2025-07-09 02:00:00,bea81c1795a612d8fc3a232b156467b2,FALSE,2009 +2025-07-18 11:09:00,120.00,USD,9010,5010,paypal,2025-07-08 01:00:00,bea81c1795a612d8fc3a232b156467b3,FALSE,2010 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_transaction_data.csv b/integration_tests/seeds/shopify_gql_transaction_data.csv new file mode 100644 index 00000000..f0b86703 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_transaction_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,amount_set_pres_amount,amount_set_pres_currency_code,amount_set_shop_amount,amount_set_shop_currency_code,authorization_code,authorization_expires_at,created_at,error_code,gateway,id,kind,order_id,parent_id,payment_avs_result_code,payment_credit_card_bin,payment_credit_card_company,payment_credit_card_number,payment_cvv_result_code,processed_at,refund_id,staff_member_id,status,test +2025-07-18 10:00:00,49.99,USD,49.99,USD,bea81c1795a612d8fc3a232b156467aa,2025-07-18 11:00:00,2025-07-18 09:00:00,,shopify_payments,10001,sale,60001,,Y,411111,Visa,**** **** **** 1111,M,2025-07-18 09:01:00,,3001,success,FALSE +2025-07-18 10:01:00,59.99,USD,59.99,USD,bea81c1795a612d8fc3a232b156467ab,2025-07-18 11:01:00,2025-07-18 09:01:00,,paypal,10002,authorization,60002,10001,N,550000,MasterCard,**** **** **** 0000,N,2025-07-18 09:02:00,,3002,success,FALSE +2025-07-18 10:02:00,35.00,USD,35.00,USD,bea81c1795a612d8fc3a232b156467ac,2025-07-18 11:02:00,2025-07-18 09:02:00,,shopify_payments,10003,capture,60003,10002,Y,340000,AmericanExpress,**** **** **** 0005,M,2025-07-18 09:03:00,,3003,success,FALSE +2025-07-18 10:03:00,10.00,USD,10.00,USD,bea81c1795a612d8fc3a232b156467ad,2025-07-18 11:03:00,2025-07-18 09:03:00,,stripe,10004,void,60004,10003,Y,300000,Discover,**** **** **** 0006,M,2025-07-18 09:04:00,,3004,success,TRUE +2025-07-18 10:04:00,120.00,USD,120.00,USD,bea81c1795a612d8fc3a232b156467ae,2025-07-18 11:04:00,2025-07-18 09:04:00,,shopify_payments,10005,refund,60005,10004,N,411111,Visa,**** **** **** 1111,N,2025-07-18 09:05:00,9001,3005,success,FALSE +2025-07-18 10:05:00,75.00,USD,75.00,USD,bea81c1795a612d8fc3a232b156467af,2025-07-18 11:05:00,2025-07-18 09:05:00,,paypal,10006,sale,60006,10005,Y,555555,MasterCard,**** **** **** 5555,M,2025-07-18 09:06:00,,3006,success,TRUE +2025-07-18 10:06:00,0.00,USD,0.00,USD,bea81c1795a612d8fc3a232b156467b0,2025-07-18 11:06:00,2025-07-18 09:06:00,card_declined,stripe,10007,authorization,60007,10006,Z,300300,Discover,**** **** **** 3003,N,2025-07-18 09:07:00,,3007,failure,FALSE +2025-07-18 10:07:00,89.99,USD,89.99,USD,bea81c1795a612d8fc3a232b156467b1,2025-07-18 11:07:00,2025-07-18 09:07:00,,shopify_payments,10008,sale,60008,,Y,411111,Visa,**** **** **** 1111,M,2025-07-18 09:08:00,,3008,success,FALSE +2025-07-18 10:08:00,15.50,USD,15.50,USD,bea81c1795a612d8fc3a232b156467b2,2025-07-18 11:08:00,2025-07-18 09:08:00,,paypal,10009,capture,60009,10008,Y,550000,MasterCard,**** **** **** 0000,M,2025-07-18 09:09:00,,3009,success,FALSE +2025-07-18 10:09:00,62.00,USD,62.00,USD,bea81c1795a612d8fc3a232b156467b3,2025-07-18 11:09:00,2025-07-18 09:09:00,,stripe,10010,refund,60010,10009,N,340000,AmericanExpress,**** **** **** 0005,N,2025-07-18 09:10:00,9002,3010,success,TRUE \ No newline at end of file diff --git a/models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql b/models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql index 6ded0810..87bdf2ad 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql @@ -1,4 +1,4 @@ -{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }} +{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }} with abandoned_checkout as ( diff --git a/models/graphql/intermediate/base/int_shopify_gql__collection.sql b/models/graphql/intermediate/base/int_shopify_gql__collection.sql index 762ff837..9b887883 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__collection.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__collection.sql @@ -4,10 +4,10 @@ with collection as ( select * from {{ var('shopify_gql_collection') }} -), +) -{# todo: add variable here #} -collection_rule as ( +{% if var('shopify_gql_using_collection_rule', False) %} +, collection_rule as ( select * from {{ var('shopify_gql_collection_rule') }} @@ -45,4 +45,12 @@ joined as ( ) select * -from joined \ No newline at end of file +from joined + +{% else %} +select + collection.*, + cast(null as {{ dbt.type_string() }}) as rules +from collection + +{% endif %} \ No newline at end of file diff --git a/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql b/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql index 9fd972b8..3f54b308 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql @@ -4,9 +4,10 @@ with fulfillment as ( select * from {{ var('shopify_gql_fulfillment') }} -), +) -fulfillment_tracking_info as ( +{% if var('shopify_gql_using_fulfillment_tracking_info', False) %} +, fulfillment_tracking_info as ( select * from {{ var('shopify_gql_fulfillment_tracking_info') }} @@ -19,7 +20,6 @@ agg_fulfillment_tracking_info as ( source_relation, {{ fivetran_utils.string_agg("distinct cast(tracking_number as " ~ dbt.type_string() ~ ")", "', '") }} as tracking_numbers, {{ fivetran_utils.string_agg("distinct cast(tracking_url as " ~ dbt.type_string() ~ ")", "', '") }} as tracking_urls, - {# QUESTION: This is new, should we include? #} {{ fivetran_utils.string_agg("distinct cast(tracking_company as " ~ dbt.type_string() ~ ")", "', '") }} as tracking_companies from fulfillment_tracking_info group by fulfillment_id, source_relation @@ -39,4 +39,13 @@ joined as ( ) select * -from joined \ No newline at end of file +from joined +{% else %} + +select + fulfillment.*, + cast(null as {{ dbt.type_string() }}) as tracking_numbers, + cast(null as {{ dbt.type_string() }}) as tracking_urls, + cast(null as {{ dbt.type_string() }}) as tracking_companies +from fulfillment +{% endif %} \ No newline at end of file diff --git a/models/graphql/intermediate/base/int_shopify_gql__order.sql b/models/graphql/intermediate/base/int_shopify_gql__order.sql index db1071d8..c77e3c98 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__order.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__order.sql @@ -4,9 +4,10 @@ with orders as ( select * from {{ var('shopify_gql_order') }} -), +) -customer_visit as ( +{% if var('shopify_gql_using_customer_visit', True) %} +, customer_visit as ( select * from {{ var('shopify_gql_customer_visit') }} @@ -24,4 +25,13 @@ joined as ( ) select * -from joined \ No newline at end of file +from joined + +{% else %} + +select + orders.*, + cast(null as {{ dbt.type_string() }}) as referring_site +from orders + +{% endif %} \ No newline at end of file diff --git a/models/graphql/shopify_gql__inventory_levels.sql b/models/graphql/shopify_gql__inventory_levels.sql index 39568cdf..94b818db 100644 --- a/models/graphql/shopify_gql__inventory_levels.sql +++ b/models/graphql/shopify_gql__inventory_levels.sql @@ -112,7 +112,7 @@ joined_info as ( location.city, location.country, location.country_code, - location.country_name, -- new + location.country_name, -- New field introduced in GraphQL API location.is_legacy as is_legacy_location, location.province, location.province_code, From 9925a456b287333b9624a294d258b73468cce1a5 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Thu, 24 Jul 2025 08:29:36 -0400 Subject: [PATCH 09/34] Update/graphql jamie (#112) * Tweaks * Seeds and vars * bk * pakages.yml * packages * docs and metafields * redshift * stuff * end models are documented, need to fix fanout in orders --- .buildkite/scripts/run_models.sh | 4 +- .quickstart/quickstart.yml | 3 +- CHANGELOG.md | 8 + README.md | 153 +- dbt_project.yml | 5 +- integration_tests/dbt_project.yml | 13 +- .../shopify_gql_collection_product_data.csv | 11 + .../base/int_shopify_gql__fulfillment.sql | 33 +- .../base/int_shopify_gql__order.sql | 6 +- .../base/int_shopify_gql__order_line.sql | 15 +- .../base/int_shopify_gql__product_variant.sql | 28 + ...int_shopify_gql__customer_email_rollup.sql | 2 +- ...shopify_gql__daily_abandoned_checkouts.sql | 2 +- .../int_shopify_gql__daily_fulfillment.sql | 2 +- ...nt_shopify_gql__discount_code_enriched.sql | 2 +- ...fy_gql__discounts__abandoned_checkouts.sql | 2 +- ...fy_gql__product__order_line_aggregates.sql | 42 + ..._shopify_gql__products_with_aggregates.sql | 111 + ...ify_gql__orders__order_line_aggregates.sql | 6 +- .../shopify_gql__collection_metafields.sql | 4 +- .../shopify_gql__customer_metafields.sql | 4 +- .../shopify_gql__order_metafields.sql | 8 +- .../shopify_gql__product_metafields.sql | 2 +- ...hopify_gql__product_variant_metafields.sql | 4 +- .../shopify_gql__shop_metafields.sql | 2 +- .../graphql/shopify_gql__customer_cohorts.sql | 24 +- models/graphql/shopify_gql__customers.sql | 4 +- models/graphql/shopify_gql__daily_shop.sql | 12 +- models/graphql/shopify_gql__discounts.sql | 7 +- .../graphql/shopify_gql__inventory_levels.sql | 10 +- models/graphql/shopify_gql__order_lines.sql | 14 +- models/graphql/shopify_gql__orders.sql | 12 +- models/graphql/shopify_gql__products.sql | 36 + models/graphql/shopify_gql__transactions.sql | 13 +- models/shopify_graphql.yml | 2394 ++++++++--------- packages.yml | 4 +- 36 files changed, 1706 insertions(+), 1296 deletions(-) create mode 100644 integration_tests/seeds/shopify_gql_collection_product_data.csv create mode 100644 models/graphql/intermediate/base/int_shopify_gql__product_variant.sql create mode 100644 models/graphql/intermediate/int_shopify_gql__product__order_line_aggregates.sql create mode 100644 models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql create mode 100644 models/graphql/shopify_gql__products.sql diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh index 15842d05..46179d1b 100644 --- a/.buildkite/scripts/run_models.sh +++ b/.buildkite/scripts/run_models.sh @@ -21,7 +21,7 @@ if [ "$db" = "databricks-sql" ]; then dbt seed --vars '{shopify_schema: shopify_integrations_tests_sqlw}' --target "$db" --full-refresh dbt run --vars '{shopify_schema: shopify_integrations_tests_sqlw}' --target "$db" --full-refresh dbt test --vars '{shopify_schema: shopify_integrations_tests_sqlw}' --target "$db" -dbt run --vars '{shopify_schema: shopify_integrations_tests_sqlw, shopify_timezone: "America/New_York", shopify_using_fulfillment_event: true, shopify_using_all_metafields: true, shopify__calendar_start_date: '2020-01-01', shopify_using_abandoned_checkout: false, shopify_using_metafield: false, shopify_using_discount_code_app: true, shopify_using_product_variant_media: true}' --target "$db" --full-refresh +dbt run --vars '{shopify_schema: shopify_integrations_tests_sqlw, shopify_timezone: "America/New_York", shopify_using_fulfillment_event: true, shopify_gql_using_fulfillment_event: true, shopify_using_all_metafields: true, shopify__calendar_start_date: '2020-01-01', shopify_using_abandoned_checkout: false, shopify_gql_using_abandoned_checkout: false, shopify_using_metafield: false, shopify_gql_using_metafield: false, shopify_using_discount_code_app: true, shopify_gql_using_discount_code_app: true, shopify_using_product_variant_media: true, shopify_gql_product_variant_media: true, shopify_gql_using_collection_rule: true, shopify_gql_using_customer_visit: false}' --target "$db" --full-refresh dbt test --vars '{shopify_schema: shopify_integrations_tests_sqlw}' --target "$db" dbt run-operation fivetran_utils.drop_schemas_automation --target "$db" @@ -29,7 +29,7 @@ else dbt seed --target "$db" --full-refresh dbt run --target "$db" --full-refresh dbt test --target "$db" -dbt run --vars '{shopify_timezone: "America/New_York", shopify_using_fulfillment_event: true, shopify_using_all_metafields: true, shopify__calendar_start_date: '2020-01-01', shopify_using_abandoned_checkout: false, shopify_using_metafield: false, shopify_using_discount_code_app: true, shopify_using_product_variant_media: true}' --target "$db" --full-refresh +dbt run --vars '{shopify_timezone: "America/New_York", shopify_using_fulfillment_event: true, shopify_gql_using_fulfillment_event: true, shopify_using_all_metafields: true, shopify__calendar_start_date: '2020-01-01', shopify_using_abandoned_checkout: false, shopify_gql_using_abandoned_checkout: false, shopify_using_metafield: false, shopify_gql_using_metafield: false, shopify_using_discount_code_app: true, shopify_gql_using_discount_code_app: true, shopify_using_product_variant_media: true, shopify_gql_product_variant_media: true, shopify_gql_using_collection_rule: true, shopify_gql_using_customer_visit: false}' --target "$db" --full-refresh dbt test --target "$db" dbt run-operation fivetran_utils.drop_schemas_automation --target "$db" fi \ No newline at end of file diff --git a/.quickstart/quickstart.yml b/.quickstart/quickstart.yml index 67fe323d..de80cb8e 100644 --- a/.quickstart/quickstart.yml +++ b/.quickstart/quickstart.yml @@ -36,5 +36,4 @@ public_models: [ "shopify__customers", "shopify__order_lines", "shopify__line_item_enhanced" -] -# todo - all stuff here \ No newline at end of file +] \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b162722a..5933b643 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# dbt_shopify v0.20.0 + +TODO + +## Feature Update: GraphQL API Support + +[Shopify](https://shopify.dev/docs/apps/build/graphql) has deprecated the REST Admin API in favor of the GraphQL API. This release supports compatibility with GraphQL-based Fivetran Shopify connections. + # dbt_shopify v0.19.0 [PR #104](https://github.com/fivetran/dbt_shopify/pull/104) introduces the following updates: diff --git a/README.md b/README.md index 2a3c2dae..a2e34de7 100644 --- a/README.md +++ b/README.md @@ -56,15 +56,99 @@ Each Quickstart transformation job run materializes 107 models if all components ## How do I use the dbt package? ### Step 1: Prerequisites -To use this dbt package, you must have the following: - -- At least one Fivetran Shopify connection syncing data into your destination. -- One of the following destinations: - - [BigQuery](https://fivetran.com/docs/destinations/bigquery) - - [Snowflake](https://fivetran.com/docs/destinations/snowflake) - - [Redshift](https://fivetran.com/docs/destinations/redshift) - - [PostgreSQL](https://fivetran.com/docs/destinations/postgresql) - - [Databricks](https://fivetran.com/docs/destinations/databricks) with [Databricks Runtime](https://docs.databricks.com/en/compute/index.html#databricks-runtime) +To use this dbt package, you must have either at least one Fivetran REST API-based Shopify connection or one Fivetran GraphQL-based Shopify connection syncing these respective tables to your destination: + +#### Shopify REST API +- customer +- order_line_refund +- order_line +- order +- product +- product_variant +- transaction +- refund +- order_adjustment +- abandoned_checkout +- collection_product +- collection +- customer_tag +- discount_allocation +- discount_application +- discount_code_app +- discount_code_basic +- discount_code_bxgy +- discount_code_free_shipping +- discount_redeem_code +- fulfillment +- inventory_item +- inventory_level +- inventory_quantity +- location +- media +- media_image +- metafield +- order_note_attribute +- order_shipping_line +- order_shipping_tax_line +- order_tag +- order_url_tag +- product_media +- product_variant_media +- product_tag +- shop +- tender_transaction +- abandoned_checkout_discount_code +- order_discount_code +- abandoned_checkout_shipping_line +- fulfillment_event +- tax_line + +#### Shopify GraphQL +- collection_product +- collection +- customer_tag +- discount_allocation +- discount_application +- discount_code_app +- discount_code_basic +- discount_code_bxgy +- discount_code_free_shipping +- discount_redeem_code +- fulfillment +- inventory_item +- inventory_level +- inventory_quantity +- location +- media +- media_image +- metafield +- order_note_attribute +- order_shipping_line +- order_shipping_tax_line +- order_tag +- product_media +- product_variant_media +- product_tag +- shop +- tender_transaction +- tax_line +- order_discount_code +- abandoned_checkout +- abandoned_checkout_discount_code +- fulfillment_event +- fulfillment_tracking_info +- fulfillment_order_line_item +- customer_visit +- customer_address +- collection_rule + +#### Database Compatibility +To use this package, you will need to have one of the following kinds of destinations: +- [BigQuery](https://fivetran.com/docs/destinations/bigquery) +- [Snowflake](https://fivetran.com/docs/destinations/snowflake) +- [Redshift](https://fivetran.com/docs/destinations/redshift) +- [PostgreSQL](https://fivetran.com/docs/destinations/postgresql) +- [Databricks](https://fivetran.com/docs/destinations/databricks) with [Databricks Runtime](https://docs.databricks.com/en/compute/index.html#databricks-runtime) ### Step 2: Install the package (skip if also using the `shopify_holistic_reporting` package) If you are **not** using the [Shopify Holistic reporting package](https://github.com/fivetran/dbt_shopify_holistic_reporting), include the following shopify package version in your `packages.yml` file: @@ -72,7 +156,7 @@ If you are **not** using the [Shopify Holistic reporting package](https://github ```yml packages: - package: fivetran/shopify - version: [">=0.19.0", "<0.20.0"] # we recommend using ranges to capture non-breaking changes automatically + version: [">=0.20.0", "<0.21.0"] # we recommend using ranges to capture non-breaking changes automatically ``` Do **NOT** include the `shopify_source` package in this file. The transformation package itself has a dependency on it and will install the source package as well. @@ -85,7 +169,19 @@ dispatch: search_order: ['spark_utils', 'dbt_utils'] ``` -### Step 3: Define database and schema variables +### Step 3: Define REST API or GraphQL API Source +In INSERT_DATE, Fivetran released a new version of the Shopify connector that leverages Shopify's newer [GraphQL](https://shopify.dev/docs/apps/build/graphql) API instead of the REST API, as Shopify deprecated the REST API in October 2024. The GraphQL and REST API-based schemas are slightly different, but this package is designed to run for either or, not both. It will do so based on the value of the `shopify_api` variable. + +By default, `shopify_api` is set to `rest` and will run the `shopify__*` models in the [rest](https://github.com/fivetran/dbt_shopify/tree/main/models/rest) folder. If you would like to run the package on a GraphQL-based schema, adjust `shopify_api` accordingly. This will run the `shopify_gql__*` models in the [graphql](https://github.com/fivetran/dbt_shopify/tree/main/models/graphql) folder: + +```yml +vars: + shopify_api: graphql # By default = rest. Must be lowercase +``` + +This variable is dynamically configured for you in Fivetran Quickstart based on your Shopify connection details. + +### Step 4: Define database and schema variables #### Single connection By default, this package runs using your destination and the `shopify` schema. If this is not where your Shopify data is (for example, if your Shopify schema is named `shopify_fivetran`), add the following configuration to your root `dbt_project.yml` file: @@ -110,7 +206,12 @@ vars: To connect your multiple schema/database sources to the package models, follow the steps outlined in the [Union Data Defined Sources Configuration](https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source) section of the Fivetran Utils documentation for the union_data macro. This will ensure a proper configuration and correct visualization of connections in the DAG. -### Step 4: Disable models for non-existent sources +### Step 5: Disable models for non-existent sources + +The Shopify package will automatically create null staging models for missing tables so as to not break downstream transformations. However, you may avoid the creation of certain null tables by leveraging the following variable configurations. + +#### REST API +> If your Shopify connection is leveraging the older Shopify REST API and you are not running the package via Fivetran Quickstart, refer to the following variables. The package takes into consideration that not every Shopify connection may have the `fulfillment_event`, `metadata`, `discount_code_app`, `product_variant_media`, or `abandoned_checkout` tables (including `abandoned_checkout`, `abandoned_checkout_discount_code`, and `abandoned_checkout_shipping_line`) and allows you to enable or disable the corresponding functionality. To enable/disable the modeling of the mentioned source tables and their downstream references, add the following variable to your `dbt_project.yml` file: @@ -125,7 +226,27 @@ vars: shopify_using_abandoned_checkout: false # true by default. Setting to false will disable `abandoned_checkout`, `abandoned_checkout_discount_code`, and `abandoned_checkout_shipping_line`. ``` -### Step 5: Setting your timezone +#### GraphQL API +> If your Shopify connection is leveraging the newer Shopify GraphQL API and you are not running the package via Fivetran Quickstart, refer to the following variables. + +The package takes into consideration that not every Shopify connection may have the `collection_rule`, `customer_visit`, `fulfillment_event`, `fulfillment_tracking_info`, `fulfillment_order_line_item`, `metafield`, `discount_code_app`, `product_variant_media` or `abandoned_checkout` tables (including `abandoned_checkout` and `abandoned_checkout_discount_code`) and allows you to enable or disable the corresponding functionality. To enable/disable the modeling of the mentioned source tables and their downstream references, add the following variable to your `dbt_project.yml` file: + +```yml +# dbt_project.yml + +vars: + shopify_gql_using_fulfillment_event: true # FALSE by default. + shopify_gql_using_metafield: false # TRUE by default. + shopify_gql_using_discount_code_app: true # FALSE by default. + shopify_gql_using_product_variant_media: true # FALSE by default. + shopify_gql_using_abandoned_checkout: false # TRUE by default. Setting to false will disable `abandoned_checkout` and `abandoned_checkout_discount_code` + shopify_gql_using_collection_rule: true # FALSE by default. + shopify_gql_using_customer_visit: false # TRUE by default + shopify_gql_using_fulfillment_order_line_item: false # TRUE by default + shopify_gql_using_fulfillment_tracking_info: true # FALSE by default. +``` + +### Step 6: Setting your timezone By default, the data in your Shopify schema is in UTC. However, you may want reporting to reflect a specific timezone for more realistic analysis or data validation. To convert the timezone of **all** timestamps in the package, update the `shopify_timezone` variable to your target zone in [IANA tz Database format](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones): @@ -138,7 +259,7 @@ vars: > **Note**: This will only **numerically** convert timestamps to your target timezone. They will however have a "UTC" appended to them. This is a current limitation of the dbt-date `convert_timezone` [macro](https://github.com/calogica/dbt-date#convert_timezone-column-target_tznone-source_tznone) we have leveraged and replicated in the [shopify_source](https://github.com/fivetran/dbt_shopify_source/tree/main/macros/fivetran_date_macros/fivetran_convert_timezone.sql) package with minimal modifications. -### (Optional) Step 6: Additional configurations +### (Optional) Step 7: Additional configurations
Expand/Collapse details #### Enabling Standardized Billing Model @@ -252,7 +373,7 @@ vars:
-### (Optional) Step 7: Orchestrate your models with Fivetran Transformations for dbt Core™ +### (Optional) Step 8: Orchestrate your models with Fivetran Transformations for dbt Core™
Expand for details
@@ -267,7 +388,7 @@ This dbt package is dependent on the following dbt packages. These dependencies ```yml packages: - package: fivetran/shopify_source - version: [">=0.18.0", "<0.19.0"] + version: [">=0.19.0", "<0.20.0"] - package: fivetran/fivetran_utils version: [">=0.4.0", "<0.5.0"] diff --git a/dbt_project.yml b/dbt_project.yml index e2aba5e2..286478a6 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,5 +1,5 @@ name: 'shopify' -version: '0.19.0' +version: '0.20.0' config-version: 2 require-dbt-version: [">=1.3.0", "<2.0.0"] models: @@ -110,4 +110,5 @@ vars: shopify_gql_abandoned_checkout_discount_code: "{{ ref('stg_shopify_gql__abandoned_checkout_discount_code') }}" shopify_gql_order_discount_code: "{{ ref('stg_shopify_gql__order_discount_code') }}" shopify_gql_abandoned_checkout_shipping_line: "{{ ref('stg_shopify_gql__abandoned_checkout_shipping_line') }}" - shopify_gql_fulfillment_event: "{{ ref('stg_shopify_gql__fulfillment_event') }}" \ No newline at end of file + shopify_gql_fulfillment_event: "{{ ref('stg_shopify_gql__fulfillment_event') }}" + shopify_gql_fulfillment_order_line_item: "{{ ref('stg_shopify_gql__fulfillment_order_line_item') }}" \ No newline at end of file diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 2c8420b6..e2c66c63 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'shopify_integration_tests' -version: '0.19.0' +version: '0.20.0' profile: 'integration_tests' config-version: 2 @@ -16,6 +16,7 @@ vars: # shopify_using_product_variant_media: true shopify_schema: shopify_integration_tests_17 + shopify_api_override: rest shopify_source: shopify_customer_identifier: "shopify_customer_data" @@ -65,6 +66,7 @@ vars: shopify_gql_abandoned_checkout_identifier: "shopify_gql_abandoned_checkout_data" shopify_gql_collection_product_identifier: "shopify_gql_collection_product_data" shopify_gql_collection_identifier: "shopify_gql_collection_data" + shopify_gql_customer_identifier: "shopify_gql_customer_data" shopify_gql_customer_tag_identifier: "shopify_gql_customer_tag_data" shopify_gql_discount_allocation_identifier: "shopify_gql_discount_allocation_data" shopify_gql_discount_application_identifier: "shopify_gql_discount_application_data" @@ -81,15 +83,22 @@ vars: shopify_gql_media_identifier: "shopify_gql_media_data" shopify_gql_media_image_identifier: "shopify_gql_media_image_data" shopify_gql_metafield_identifier: "shopify_gql_metafield_data" + shopify_gql_order_identifier: "shopify_gql_order_data" + shopify_gql_order_adjustment_identifier: "shopify_gql_order_adjustment_data" + shopify_gql_order_line_identifier: "shopify_gql_order_line_data" + shopify_gql_order_line_refund_identifier: "shopify_gql_order_line_refund_data" shopify_gql_order_note_attribute_identifier: "shopify_gql_order_note_attribute_data" shopify_gql_order_shipping_line_identifier: "shopify_gql_order_shipping_line_data" shopify_gql_order_shipping_tax_line_identifier: "shopify_gql_order_shipping_tax_line_data" shopify_gql_order_tag_identifier: "shopify_gql_order_tag_data" + shopify_gql_product_identifier: "shopify_gql_product_data" shopify_gql_product_media_identifier: "shopify_gql_product_media_data" shopify_gql_product_variant_media_identifier: "shopify_gql_product_variant_media_data" + shopify_gql_product_variant_identifier: "shopify_gql_product_variant_data" shopify_gql_product_tag_identifier: "shopify_gql_product_tag_data" shopify_gql_shop_identifier: "shopify_gql_shop_data" shopify_gql_tender_transaction_identifier: "shopify_gql_tender_transaction_data" + shopify_gql_transaction_identifier: "shopify_gql_transaction_data" shopify_gql_abandoned_checkout_discount_code_identifier: "shopify_gql_abandoned_checkout_discount_code_data" shopify_gql_order_discount_code_identifier: "shopify_gql_order_discount_code_data" shopify_gql_fulfillment_event_identifier: "shopify_gql_fulfillment_event_data" @@ -99,6 +108,8 @@ vars: shopify_gql_customer_visit_identifier: "shopify_gql_customer_visit_data" shopify_gql_customer_address_identifier: "shopify_gql_customer_address_data" shopify_gql_collection_rule_identifier: "shopify_gql_collection_rule_data" + shopify_gql_refund_line_item_identifier: "shopify_gql_refund_line_item_data" + shopify_gql_refund_identifier: "shopify_gql_refund_data" dispatch: - macro_namespace: dbt_utils diff --git a/integration_tests/seeds/shopify_gql_collection_product_data.csv b/integration_tests/seeds/shopify_gql_collection_product_data.csv new file mode 100644 index 00000000..4fac7296 --- /dev/null +++ b/integration_tests/seeds/shopify_gql_collection_product_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,collection_id,product_id +2025-07-18 11:00:00,2001,3001 +2025-07-18 11:01:00,2001,3002 +2025-07-18 11:02:00,2002,3003 +2025-07-18 11:03:00,2002,3004 +2025-07-18 11:04:00,2003,3005 +2025-07-18 11:05:00,2003,3006 +2025-07-18 11:06:00,2004,3007 +2025-07-18 11:07:00,2004,3008 +2025-07-18 11:08:00,2005,3009 +2025-07-18 11:09:00,2005,3010 \ No newline at end of file diff --git a/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql b/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql index 3f54b308..9b8f8f57 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql @@ -6,6 +6,27 @@ with fulfillment as ( from {{ var('shopify_gql_fulfillment') }} ) +agg_fulfillment_services as ( + + select + fulfillment_id, + source_relation, + {{ fivetran_utils.string_agg("distinct cast(service as " ~ dbt.type_string() ~ ")", "', '") }} as fulfillment_services + from fulfillment + group by fulfillment_id, source_relation +), + +fulfillment_prep as ( + + select + fulfillment.*, + agg_fulfillment_services.fulfillment_services + from fulfillment + left join agg_fulfillment_services + on fulfillment.fulfillment_id = agg_fulfillment_services.fulfillment_id + and fulfillment.source_relation = agg_fulfillment_services.source_relation +) + {% if var('shopify_gql_using_fulfillment_tracking_info', False) %} , fulfillment_tracking_info as ( @@ -28,14 +49,14 @@ agg_fulfillment_tracking_info as ( joined as ( select - fulfillment.*, + fulfillment_prep.*, agg_fulfillment_tracking_info.tracking_numbers, agg_fulfillment_tracking_info.tracking_urls, agg_fulfillment_tracking_info.tracking_companies - from fulfillment + from fulfillment_prep left join agg_fulfillment_tracking_info - on fulfillment.fulfillment_id = agg_fulfillment_tracking_info.fulfillment_id - and fulfillment.source_relation = agg_fulfillment_tracking_info.source_relation + on fulfillment_prep.fulfillment_id = agg_fulfillment_tracking_info.fulfillment_id + and fulfillment_prep.source_relation = agg_fulfillment_tracking_info.source_relation ) select * @@ -43,9 +64,9 @@ from joined {% else %} select - fulfillment.*, + fulfillment_prep.*, cast(null as {{ dbt.type_string() }}) as tracking_numbers, cast(null as {{ dbt.type_string() }}) as tracking_urls, cast(null as {{ dbt.type_string() }}) as tracking_companies -from fulfillment +from fulfillment_prep {% endif %} \ No newline at end of file diff --git a/models/graphql/intermediate/base/int_shopify_gql__order.sql b/models/graphql/intermediate/base/int_shopify_gql__order.sql index c77e3c98..0e73ad04 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__order.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__order.sql @@ -17,7 +17,8 @@ joined as ( select orders.*, - customer_visit.referring_site + customer_visit.referring_site, + customer_visit.landing_page as landing_site_base_url from orders left join customer_visit on orders.order_id = customer_visit.order_id @@ -31,7 +32,8 @@ from joined select orders.*, - cast(null as {{ dbt.type_string() }}) as referring_site + cast(null as {{ dbt.type_string() }}) as referring_site, + cast(null as {{ dbt.type_string() }}) as landing_site_base_url from orders {% endif %} \ No newline at end of file diff --git a/models/graphql/intermediate/base/int_shopify_gql__order_line.sql b/models/graphql/intermediate/base/int_shopify_gql__order_line.sql index 104e1027..185abf1d 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__order_line.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__order_line.sql @@ -22,17 +22,30 @@ tax_line_aggregated as ( group by 1,2 ), +fulfillment_order_line_item as ( + + select * + from {{ var('shopify_gql_fulfillment_order_line_item') }} +), + joined as ( select order_line.*, coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price, - tax_line_aggregated.order_line_tax + tax_line_aggregated.order_line_tax, + fulfillment_order_line_item.remaining_quantity as fulfillable_quantity, + {# QUESTION: in REST order_line had a grams field. Should we include the following regardless of the weight unit, or pull out grams specifically? #} + fulfillment_order_line_item.weight_unit, + fulfillment_order_line_item.weight_value from order_line left join tax_line_aggregated on tax_line_aggregated.order_line_id = order_line.order_line_id and tax_line_aggregated.source_relation = order_line.source_relation + left join fulfillment_order_line_item + on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id + and fulfillment_order_line_item.source_relation = order_line.source_relation ) select * diff --git a/models/graphql/intermediate/base/int_shopify_gql__product_variant.sql b/models/graphql/intermediate/base/int_shopify_gql__product_variant.sql new file mode 100644 index 00000000..131bbcde --- /dev/null +++ b/models/graphql/intermediate/base/int_shopify_gql__product_variant.sql @@ -0,0 +1,28 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with product_variants as ( + + select * + from {{ var('shopify_gql_product_variant') }} +), + +inventory_item as ( + + select * + from {{ var('shopify_gql_inventory_item') }} +), + +joined as ( + + select + product_variants.*, + inventory_item.measurement_weight_value as weight, + inventory_item.measurement_weight_unit as weight_unit + + from product_variants + left join inventory_item + on product_variants.inventory_item_id = inventory_item.inventory_item_id +) + +select * +from joined \ No newline at end of file diff --git a/models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql b/models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql index aa6d1a78..c7b51d94 100644 --- a/models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql +++ b/models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql @@ -42,7 +42,7 @@ with customers as ( {{ fivetran_utils.max_bool("customers.is_verified_email") }} as is_verified_email -- for all other fields, just take the latest value - {% set cols = adapter.get_columns_in_relation(ref('stg_shopify_gql__customer')) %} + {% set cols = adapter.get_columns_in_relation(ref('int_shopify_gql__customer')) %} {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp', 'is_tax_exempt', 'is_verified_email'] %} diff --git a/models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql b/models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql index b407bf0a..ed5e3f44 100644 --- a/models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql +++ b/models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql @@ -1,4 +1,4 @@ -{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }} +{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }} with abandoned_checkout as ( diff --git a/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql b/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql index cb8583f6..33641ccf 100644 --- a/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql +++ b/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql @@ -1,4 +1,4 @@ -{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }} +{{ config(enabled=(var('shopify_gql_using_fulfillment_event', false) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }} with fulfillment_event as ( diff --git a/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql b/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql index d6afb7ab..a5e064de 100644 --- a/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql +++ b/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql @@ -87,7 +87,7 @@ unified_discount_codes as ( source_relation from {{ var('shopify_gql_discount_code_free_shipping') }} - {% if var('shopify_using_discount_code_app', False) %} + {% if var('shopify_gql_using_discount_code_app', False) %} union all diff --git a/models/graphql/intermediate/int_shopify_gql__discounts__abandoned_checkouts.sql b/models/graphql/intermediate/int_shopify_gql__discounts__abandoned_checkouts.sql index d5770be3..304c9e8d 100644 --- a/models/graphql/intermediate/int_shopify_gql__discounts__abandoned_checkouts.sql +++ b/models/graphql/intermediate/int_shopify_gql__discounts__abandoned_checkouts.sql @@ -1,4 +1,4 @@ -{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }} +{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }} with abandoned_checkout as ( diff --git a/models/graphql/intermediate/int_shopify_gql__product__order_line_aggregates.sql b/models/graphql/intermediate/int_shopify_gql__product__order_line_aggregates.sql new file mode 100644 index 00000000..26661708 --- /dev/null +++ b/models/graphql/intermediate/int_shopify_gql__product__order_line_aggregates.sql @@ -0,0 +1,42 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with order_lines as ( + + select * + from {{ ref('shopify_gql__order_lines') }} + +), orders as ( + + select * + from {{ ref('shopify_gql__orders')}} + +), product_aggregated as ( + select + order_lines.product_id, + order_lines.source_relation, + + -- moved over from shopify__products + sum(order_lines.quantity) as quantity_sold, + sum(order_lines.pre_tax_price) as subtotal_sold, + sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds, + sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds, + min(orders.created_timestamp) as first_order_timestamp, + max(orders.created_timestamp) as most_recent_order_timestamp, + + -- new columns + sum(order_lines.total_discount_shop_amount) as product_total_discount, + sum(order_lines.order_line_tax) as product_total_tax, + avg(order_lines.quantity) as avg_quantity_per_order_line, + avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line, + avg(order_lines.order_line_tax) as product_avg_tax_per_order_line + + from order_lines + left join orders + on order_lines.order_id = orders.order_id + and order_lines.source_relation = orders.source_relation + group by 1,2 + +) + +select * +from product_aggregated \ No newline at end of file diff --git a/models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql b/models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql new file mode 100644 index 00000000..4c66e77d --- /dev/null +++ b/models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql @@ -0,0 +1,111 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with products as ( + + select * + from {{ var('shopify_gql_product') }} +), + +collection_product as ( + + select * + from {{ var('shopify_gql_collection_product') }} +), + +collection as ( + + select * + from {{ ref('int_shopify_gql__collection') }} + where not coalesce(is_deleted, false) -- limit to only active collections +), + +product_tag as ( + + select * + from {{ var('shopify_gql_product_tag') }} +), + +product_variant as ( + + select * + from {{ var('shopify_gql_product_variant') }} +), + +product_media as ( + + select * + from {{ var('shopify_gql_product_media') }} +), + +collections_aggregated as ( + + select + collection_product.product_id, + collection_product.source_relation, + {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter="', '") }} as collections + from collection_product + join collection + on collection_product.collection_id = collection.collection_id + and collection_product.source_relation = collection.source_relation + group by 1,2 +), + +tags_aggregated as ( + + select + product_id, + source_relation, + {{ fivetran_utils.string_agg(field_to_agg='value', delimiter="', '") }} as tags + + from product_tag + group by 1,2 +), + +variants_aggregated as ( + + select + product_id, + source_relation, + count(variant_id) as count_variants + + from product_variant + group by 1,2 + +), + +media_aggregated as ( + + select + product_id, + source_relation, + count(distinct media_id) as count_media + from product_media + group by 1,2 +), + +joined as ( + + select + products.*, + collections_aggregated.collections, + tags_aggregated.tags, + variants_aggregated.count_variants, + coalesce(media_aggregated.count_media, 0) > 0 as has_product_media + + from products + left join collections_aggregated + on products.product_id = collections_aggregated.product_id + and products.source_relation = collections_aggregated.source_relation + left join tags_aggregated + on products.product_id = tags_aggregated.product_id + and products.source_relation = tags_aggregated.source_relation + left join variants_aggregated + on products.product_id = variants_aggregated.product_id + and products.source_relation = variants_aggregated.source_relation + left join media_aggregated + on products.product_id = media_aggregated.product_id + and products.source_relation = media_aggregated.source_relation +) + +select * +from joined \ No newline at end of file diff --git a/models/graphql/intermediate/shopify_gql__orders__order_line_aggregates.sql b/models/graphql/intermediate/shopify_gql__orders__order_line_aggregates.sql index 4940bc94..e795b3bf 100644 --- a/models/graphql/intermediate/shopify_gql__orders__order_line_aggregates.sql +++ b/models/graphql/intermediate/shopify_gql__orders__order_line_aggregates.sql @@ -40,7 +40,9 @@ with order_line as ( sum(coalesce(tax_aggregates.price, 0)) as order_total_tax, sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount, sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount, - sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount + sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount, + {{ fivetran_utils.string_agg("distinct cast(order_line.price_pres_currency_code as " ~ dbt.type_string() ~ ")", "', '") }} as total_line_items_price_pres_currency_codes, + {{ fivetran_utils.string_agg("distinct cast(order_line.price_shop_currency_code as " ~ dbt.type_string() ~ ")", "', '") }} as total_line_items_price_shop_currency_codes from order_line left join tax_aggregates @@ -59,6 +61,8 @@ with order_line as ( order_line_aggregates.order_total_discount, order_line_aggregates.total_line_items_price_pres_amount, order_line_aggregates.total_line_items_price_shop_amount, + order_line_aggregates.total_line_items_price_pres_currency_codes, + order_line_aggregates.total_line_items_price_shop_currency_codes, shipping.shipping_price as order_total_shipping, shipping.discounted_shipping_price as order_total_shipping_with_discounts, shipping.shipping_tax as order_total_shipping_tax diff --git a/models/graphql/metafields/shopify_gql__collection_metafields.sql b/models/graphql/metafields/shopify_gql__collection_metafields.sql index 640a316b..6971a318 100644 --- a/models/graphql/metafields/shopify_gql__collection_metafields.sql +++ b/models/graphql/metafields/shopify_gql__collection_metafields.sql @@ -1,7 +1,7 @@ -{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }} +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }} {{ shopify.get_metafields( - source_object = "stg_shopify_gql__collection", + source_object = "int_shopify_gql__collection", reference_values = ['collection'], id_column = "collection_id", lookup_object="stg_shopify_gql__metafield" diff --git a/models/graphql/metafields/shopify_gql__customer_metafields.sql b/models/graphql/metafields/shopify_gql__customer_metafields.sql index f61502d6..c4faaadc 100644 --- a/models/graphql/metafields/shopify_gql__customer_metafields.sql +++ b/models/graphql/metafields/shopify_gql__customer_metafields.sql @@ -1,7 +1,7 @@ -{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}} +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}} {{ shopify.get_metafields( - source_object = "stg_shopify_gql__customer", + source_object = "int_shopify_gql__customer", reference_values = ['customer'], id_column = "customer_id", lookup_object="stg_shopify_gql__metafield" diff --git a/models/graphql/metafields/shopify_gql__order_metafields.sql b/models/graphql/metafields/shopify_gql__order_metafields.sql index 13101cb5..ff02f2d3 100644 --- a/models/graphql/metafields/shopify_gql__order_metafields.sql +++ b/models/graphql/metafields/shopify_gql__order_metafields.sql @@ -1,8 +1,10 @@ -{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }} +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }} {{ shopify.get_metafields( - source_object = "stg_shopify_gql__order", + source_object = "int_shopify_gql__order", reference_values = ['order'], id_column = "order_id", lookup_object="stg_shopify_gql__metafield" -) }} \ No newline at end of file +) }} + +{# Does not contain total_line_items_price columns as these are calculated in shopify_gql_orders__order_line_aggregates in GraphQL #} \ No newline at end of file diff --git a/models/graphql/metafields/shopify_gql__product_metafields.sql b/models/graphql/metafields/shopify_gql__product_metafields.sql index 6d2e3639..bd82ff41 100644 --- a/models/graphql/metafields/shopify_gql__product_metafields.sql +++ b/models/graphql/metafields/shopify_gql__product_metafields.sql @@ -1,4 +1,4 @@ -{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }} +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }} {{ shopify.get_metafields( source_object = "stg_shopify_gql__product", diff --git a/models/graphql/metafields/shopify_gql__product_variant_metafields.sql b/models/graphql/metafields/shopify_gql__product_variant_metafields.sql index bfdafc26..7d3d4f22 100644 --- a/models/graphql/metafields/shopify_gql__product_variant_metafields.sql +++ b/models/graphql/metafields/shopify_gql__product_variant_metafields.sql @@ -1,7 +1,7 @@ -{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }} +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }} {{ shopify.get_metafields( - source_object = "stg_shopify_gql__product_variant", + source_object = "int_shopify_gql__product_variant", reference_values = ['variant', 'productvariant'], id_column = "variant_id", lookup_object="stg_shopify_gql__metafield" diff --git a/models/graphql/metafields/shopify_gql__shop_metafields.sql b/models/graphql/metafields/shopify_gql__shop_metafields.sql index eb789f03..aea1b7a7 100644 --- a/models/graphql/metafields/shopify_gql__shop_metafields.sql +++ b/models/graphql/metafields/shopify_gql__shop_metafields.sql @@ -1,4 +1,4 @@ -{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }} +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }} {{ shopify.get_metafields( source_object = "stg_shopify_gql__shop", diff --git a/models/graphql/shopify_gql__customer_cohorts.sql b/models/graphql/shopify_gql__customer_cohorts.sql index 1c087876..0caab20b 100644 --- a/models/graphql/shopify_gql__customer_cohorts.sql +++ b/models/graphql/shopify_gql__customer_cohorts.sql @@ -9,7 +9,7 @@ "data_type": "date" } if target.type not in ('spark','databricks') else ['date_month'], - cluster_by=['date_month', 'email'], + cluster_by=['date_month', 'customer_id'], file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet' ) }} @@ -27,7 +27,7 @@ with calendar as ( ), customers as ( select * - from {{ ref('shopify_gql__customer_emails') }} + from {{ ref('shopify_gql__customers') }} ), orders as ( @@ -38,7 +38,7 @@ with calendar as ( select cast(calendar.date_day as date) as date_month, - customers.email, + customers.customer_id, customers.first_order_timestamp, customers.source_relation, {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month @@ -50,7 +50,7 @@ with calendar as ( select customer_calendar.date_month, - customer_calendar.email, + customer_calendar.customer_id, customer_calendar.first_order_timestamp, customer_calendar.cohort_month, customer_calendar.source_relation, @@ -59,14 +59,14 @@ with calendar as ( coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month from customer_calendar left join orders - on customer_calendar.email = orders.email + on customer_calendar.customer_id = orders.customer_id and customer_calendar.source_relation = orders.source_relation and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date) {{ dbt_utils.group_by(n=5) }} ), windows as ( - {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %} + {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %} select *, @@ -74,7 +74,7 @@ with calendar as ( sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime, sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime, row_number() over ( - partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }} + partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }} order by date_month asc) as cohort_month_number from orders_joined @@ -84,7 +84,7 @@ with calendar as ( -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them select source_relation, - email, + customer_id, max(total_price_lifetime) as previous_total_price_lifetime, max(order_count_lifetime) as previous_order_count_lifetime, max(line_item_count_lifetime) as previous_line_item_count_lifetime, @@ -97,7 +97,7 @@ with calendar as ( select windows.date_month, - windows.email, + windows.customer_id, windows.first_order_timestamp, windows.cohort_month, windows.source_relation, @@ -108,18 +108,18 @@ with calendar as ( backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime, backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime, backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime, - {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id + {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id from windows left join backfill_lifetime_sums on backfill_lifetime_sums.source_relation = windows.source_relation - and backfill_lifetime_sums.email = windows.email + and backfill_lifetime_sums.customer_id = windows.customer_id {% else %} ), final as ( select *, - {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id + {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id from windows {% endif %} diff --git a/models/graphql/shopify_gql__customers.sql b/models/graphql/shopify_gql__customers.sql index 63773f2b..80e22f6a 100644 --- a/models/graphql/shopify_gql__customers.sql +++ b/models/graphql/shopify_gql__customers.sql @@ -3,8 +3,8 @@ with customers as ( select - {{ dbt_utils.star(from=ref('stg_shopify_gql__customer'), except=["orders_count", "total_spent"]) }} - from {{ var('shopify_gql_customer') }} + {{ dbt_utils.star(from=ref('int_shopify_gql__customer'), except=["orders_count", "total_spent"]) }} + from {{ ref('int_shopify_gql__customer') }} ), orders as ( diff --git a/models/graphql/shopify_gql__daily_shop.sql b/models/graphql/shopify_gql__daily_shop.sql index 90491392..8ba8c115 100644 --- a/models/graphql/shopify_gql__daily_shop.sql +++ b/models/graphql/shopify_gql__daily_shop.sql @@ -19,7 +19,7 @@ daily_orders as ( from {{ ref('int_shopify_gql__daily_orders') }} ), -{% if var('shopify_using_abandoned_checkout', True) %} +{% if var('shopify_gql_using_abandoned_checkout', True) %} daily_abandoned_checkouts as ( select * @@ -27,7 +27,7 @@ daily_abandoned_checkouts as ( ), {% endif %} -{% if var('shopify_using_fulfillment_event', false) %} +{% if var('shopify_gql_using_fulfillment_event', false) %} daily_fulfillment as ( select * @@ -95,13 +95,13 @@ final as ( coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold, coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping - {% if var('shopify_using_abandoned_checkout', True) %} + {% if var('shopify_gql_using_abandoned_checkout', True) %} , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts, coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout, coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout {% endif %} - {% if var('shopify_using_fulfillment_event', false) %} + {% if var('shopify_gql_using_fulfillment_event', false) %} {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%} , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }} {% endfor %} @@ -112,13 +112,13 @@ final as ( on shop_calendar.source_relation = daily_orders.source_relation and shop_calendar.date_day = daily_orders.date_day - {% if var('shopify_using_abandoned_checkout', True) %} + {% if var('shopify_gql_using_abandoned_checkout', True) %} left join daily_abandoned_checkouts on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation and shop_calendar.date_day = daily_abandoned_checkouts.date_day {% endif %} - {% if var('shopify_using_fulfillment_event', false) %} + {% if var('shopify_gql_using_fulfillment_event', false) %} left join daily_fulfillment on shop_calendar.source_relation = daily_fulfillment.source_relation and shop_calendar.date_day = daily_fulfillment.date_day diff --git a/models/graphql/shopify_gql__discounts.sql b/models/graphql/shopify_gql__discounts.sql index 777fc210..7e79dbf5 100644 --- a/models/graphql/shopify_gql__discounts.sql +++ b/models/graphql/shopify_gql__discounts.sql @@ -13,7 +13,7 @@ orders_aggregated as ( from {{ ref('int_shopify_gql__discounts__order_aggregates')}} ), -{% if var('shopify_using_abandoned_checkout', True) %} +{% if var('shopify_gql_using_abandoned_checkout', True) %} abandoned_checkouts_aggregated as ( select * @@ -26,6 +26,7 @@ aggregates_joined as ( select discounts_enriched.*, + {# application_type is deprecated and not included - should i set a null field? #} coalesce(orders_aggregated.count_orders, 0) as count_orders, orders_aggregated.avg_order_discount_amount, coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount, @@ -35,7 +36,7 @@ aggregates_joined as ( coalesce(orders_aggregated.count_customers, 0) as count_customers, coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails - {% if var('shopify_using_abandoned_checkout', True) %} + {% if var('shopify_gql_using_abandoned_checkout', True) %} , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount, {# coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price, #} coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts, @@ -52,7 +53,7 @@ aggregates_joined as ( when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage' else discounts_enriched.value_type end) = orders_aggregated.type - {% if var('shopify_using_abandoned_checkout', True) %} + {% if var('shopify_gql_using_abandoned_checkout', True) %} left join abandoned_checkouts_aggregated on discounts_enriched.code = abandoned_checkouts_aggregated.code and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation diff --git a/models/graphql/shopify_gql__inventory_levels.sql b/models/graphql/shopify_gql__inventory_levels.sql index 94b818db..e62a480d 100644 --- a/models/graphql/shopify_gql__inventory_levels.sql +++ b/models/graphql/shopify_gql__inventory_levels.sql @@ -42,11 +42,11 @@ inventory_level_aggregated as ( from {{ ref('int_shopify_gql__inventory_level__aggregates') }} ), -{% if var('shopify_using_product_variant_media', False) %} +{% if var('shopify_gql_using_product_variant_media', False) %} product_variant_media as ( select * - from {{ var('shopify_product_variant_media') }} + from {{ var('shopify_gql_product_variant_media') }} ), {% endif %} @@ -127,11 +127,11 @@ joined_info as ( product_variant.inventory_policy as variant_inventory_policy, product_variant.price as variant_price, - {% if var('shopify_using_product_variant_media', False) %} + {% if var('shopify_gql_using_product_variant_media', False) %} product_variant_media.media_id as variant_media_id, {% endif %} - {# DEPRECATED product_variant.fulfillment_service as variant_fulfillment_service, + {# DEPRECATED: product_variant.fulfillment_service as variant_fulfillment_service, product_variant.inventory_management as variant_inventory_management, #} product_variant.is_taxable as is_variant_taxable, product_variant.barcode as variant_barcode, @@ -164,7 +164,7 @@ joined_info as ( on inventory_item.inventory_item_id = product_variant.inventory_item_id and inventory_item.source_relation = product_variant.source_relation - {% if var('shopify_using_product_variant_media', False) %} + {% if var('shopify_gql_using_product_variant_media', False) %} join product_variant_media on product_variant.variant_id = product_variant_media.product_variant_id and product_variant.source_relation = product_variant_media.source_relation diff --git a/models/graphql/shopify_gql__order_lines.sql b/models/graphql/shopify_gql__order_lines.sql index 627fda8d..1e951608 100644 --- a/models/graphql/shopify_gql__order_lines.sql +++ b/models/graphql/shopify_gql__order_lines.sql @@ -10,7 +10,7 @@ with order_lines as ( ), product_variants as ( select * - from {{ var('shopify_gql_product_variant') }} + from {{ ref('int_shopify_gql__product_variant') }} ), refunds as ( @@ -19,7 +19,7 @@ with order_lines as ( ), -{% if var('shopify_using_product_variant_media', False) %} +{% if var('shopify_gql_using_product_variant_media', False) %} product_variant_media as ( select * @@ -53,7 +53,7 @@ refunds_aggregated as ( product_variants.updated_timestamp as variant_updated_at, product_variants.inventory_item_id, - {% if var('shopify_using_product_variant_media', False) %} + {% if var('shopify_gql_using_product_variant_media', False) %} product_variant_media.media_id, {% endif %} @@ -67,14 +67,16 @@ refunds_aggregated as ( product_variants.is_taxable as variant_is_taxable, product_variants.barcode as variant_barcode, product_variants.inventory_quantity as variant_inventory_quantity, - {# ALL DEPRECATED: - product_variants.grams as variant_grams, product_variants.weight as variant_weight, product_variants.weight_unit as variant_weight_unit, + {# ALL DEPRECATED: + product_variants.grams as variant_grams, product_variants.option_1 as variant_option_1, product_variants.option_2 as variant_option_2, product_variants.option_3 as variant_option_3, #} + -- QUESTION: in REST, we have an order_line.tax_code field that is described identically to product_variants.tax_code, but it is not present in the GraphQL schema. + -- Should we create a tax_code field that is just a copy of product_variants.tax_code, or should we leave it out? product_variants.tax_code as variant_tax_code, product_variants.is_available_for_sale as variant_is_available_for_sale, product_variants.display_name as variant_display_name, @@ -90,7 +92,7 @@ refunds_aggregated as ( on product_variants.variant_id = order_lines.variant_id and product_variants.source_relation = order_lines.source_relation - {% if var('shopify_using_product_variant_media', False) %} + {% if var('shopify_gql_using_product_variant_media', False) %} left join product_variant_media on product_variant_media.product_variant_id = product_variants.variant_id and product_variant_media.source_relation = product_variants.source_relation diff --git a/models/graphql/shopify_gql__orders.sql b/models/graphql/shopify_gql__orders.sql index eb06b239..3fb4e704 100644 --- a/models/graphql/shopify_gql__orders.sql +++ b/models/graphql/shopify_gql__orders.sql @@ -5,7 +5,7 @@ with orders as ( select *, {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_id']) }} as orders_unique_key - from {{ var('shopify_gql_order') }} + from {{ ref('int_shopify_gql__order') }} ), order_lines as ( @@ -75,18 +75,18 @@ with orders as ( source_relation, tracking_companies, tracking_numbers, - count(distinct fulfillment_id) as number_of_fulfillments, - {{ fivetran_utils.string_agg("distinct cast(service as " ~ dbt.type_string() ~ ")", "', '") }} as fulfillment_services + fulfillment_services, + count(distinct fulfillment_id) as number_of_fulfillments from {{ ref('int_shopify_gql__fulfillment') }} - group by 1,2,3,4 + {{ dbt_utils.group_by(n=5) }} ), joined as ( select orders.*, {# QUESTION: in REST, we needed to parse a json to get this, but in gql it's already included in orders.* - but it has a slightly different name. should we include the below as well? #} + but it has a slightly different name/is split out - should we include the below as well? #} coalesce(shipping_cost_shop_amount, 0) as shipping_cost, order_adjustments_aggregates.order_adjustment_amount, @@ -101,6 +101,8 @@ with orders as ( order_lines.line_item_count, order_lines.total_line_items_price_pres_amount, order_lines.total_line_items_price_shop_amount, + order_lines.total_line_items_price_pres_currency_codes, + order_lines.total_line_items_price_shop_currency_codes, coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount, coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount, diff --git a/models/graphql/shopify_gql__products.sql b/models/graphql/shopify_gql__products.sql new file mode 100644 index 00000000..57cf6795 --- /dev/null +++ b/models/graphql/shopify_gql__products.sql @@ -0,0 +1,36 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with products as ( + + select * + from {{ ref('int_shopify_gql__products_with_aggregates') }} + +), product_order_lines as ( + + select * + from {{ ref('int_shopify_gql__product__order_line_aggregates')}} + +), joined as ( + + select + products.*, + coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold, + coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold, + coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds, + coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds, + product_order_lines.first_order_timestamp, + product_order_lines.most_recent_order_timestamp, + product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line, + coalesce(product_order_lines.product_total_discount,0) as product_total_discount, + product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line, + coalesce(product_order_lines.product_total_tax,0) as product_total_tax, + product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line + + from products + left join product_order_lines + on products.product_id = product_order_lines.product_id + and products.source_relation = product_order_lines.source_relation +) + +select * +from joined \ No newline at end of file diff --git a/models/graphql/shopify_gql__transactions.sql b/models/graphql/shopify_gql__transactions.sql index 053415bd..20874994 100644 --- a/models/graphql/shopify_gql__transactions.sql +++ b/models/graphql/shopify_gql__transactions.sql @@ -11,6 +11,11 @@ with transactions as ( select * from {{ var('shopify_gql_tender_transaction') }} +), orders as ( + + select * + from {{ ref('int_shopify_gql__order') }} + ), joined as ( select transactions.*, @@ -18,7 +23,10 @@ with transactions as ( parent_transactions.created_timestamp as parent_created_timestamp, parent_transactions.kind as parent_kind, parent_transactions.amount_shop as parent_amount, - parent_transactions.status as parent_status + parent_transactions.status as parent_status, + orders.location_id, + orders.source_name + from transactions left join tender_transactions on transactions.transaction_id = tender_transactions.transaction_id @@ -26,6 +34,9 @@ with transactions as ( left join transactions as parent_transactions on transactions.parent_id = parent_transactions.transaction_id and transactions.source_relation = parent_transactions.source_relation + left join orders + on transactions.order_id = orders.order_id + and transactions.source_relation = orders.source_relation ), exchange_rate as ( diff --git a/models/shopify_graphql.yml b/models/shopify_graphql.yml index 637d743a..9d7f3d1d 100644 --- a/models/shopify_graphql.yml +++ b/models/shopify_graphql.yml @@ -1,1218 +1,1202 @@ -# version: 2 +version: 2 -# models: -# - name: shopify_gql__customer_cohorts -# description: Each record represents a customer's performance in a calendar month. -# columns: -# - name: cohort_month -# description: The month the cohort belongs to, i.e the first month the customer had an order. -# - name: cohort_month_number -# description: The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred -# - name: customer_cohort_id -# description: Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'. -# tests: -# - unique -# - not_null -# - name: customer_id -# description: The ID of the related customer. -# - name: date_month -# description: The calendar month the customer stats relate to. -# - name: first_order_timestamp -# description: The timestamp of the customer's first order. -# - name: line_item_count_in_month -# description: Number of line items purchased in the `date_month` -# - name: line_item_count_lifetime -# description: Number of line items purchased up until and including this `date_month`. -# - name: order_count_in_month -# description: Number of orders purchased in the `date_month` -# - name: order_count_lifetime -# description: Number of orders purchased up until and including this `date_month`. -# - name: source_relation -# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. -# - name: total_price_in_month -# description: Total amount (in shop currency) purchased in the `date_month` -# - name: total_price_lifetime -# description: Total amount (in shop currency) up until and including this `date_month`. -# - name: source_relation -# description: "{{ doc('source_relation') }}" +models: + - name: shopify_gql__customer_cohorts + description: Each record represents a customer's performance in a calendar month. + columns: + - name: cohort_month + description: The month the cohort belongs to, i.e the first month the customer had an order. + - name: cohort_month_number + description: The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred + - name: customer_cohort_id + description: Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'. + tests: + - unique + - not_null + - name: customer_id + description: The ID of the related customer. + - name: date_month + description: The calendar month the customer stats relate to. + - name: first_order_timestamp + description: The timestamp of the customer's first order. + - name: line_item_count_in_month + description: Number of line items purchased in the `date_month` + - name: line_item_count_lifetime + description: Number of line items purchased up until and including this `date_month`. + - name: order_count_in_month + description: Number of orders purchased in the `date_month` + - name: order_count_lifetime + description: Number of orders purchased up until and including this `date_month`. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: total_price_in_month + description: Total amount (in shop currency) purchased in the `date_month` + - name: total_price_lifetime + description: Total amount (in shop currency) up until and including this `date_month`. + - name: source_relation + description: "{{ doc('source_relation') }}" -# - name: shopify_gql__customer_email_cohorts -# description: Each record represents a customer's (on the EMAIL grain) performance in a calendar month. -# columns: -# - name: cohort_month -# description: The month the cohort belongs to, i.e the first month the customer had an order. -# - name: cohort_month_number -# description: The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred -# - name: customer_cohort_id -# description: Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'. -# tests: -# - unique -# - not_null -# - name: email -# description: The ID of the related customer. -# - name: date_month -# description: The calendar month the customer stats relate to. -# - name: first_order_timestamp -# description: The timestamp of the customer's first order. -# - name: line_item_count_in_month -# description: Number of line items purchased in the `date_month` -# - name: line_item_count_lifetime -# description: Number of line items purchased up until and including this `date_month`. -# - name: order_count_in_month -# description: Number of orders purchased in the `date_month` -# - name: order_count_lifetime -# description: Number of orders purchased up until and including this `date_month`. -# - name: source_relation -# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. -# - name: total_price_in_month -# description: Total amount (in shop currency) purchased in the `date_month` -# - name: total_price_lifetime -# description: Total amount (in shop currency) up until and including this `date_month`. -# - name: source_relation -# description: "{{ doc('source_relation') }}" + - name: shopify_gql__customer_email_cohorts + description: Each record represents a customer's (on the EMAIL grain) performance in a calendar month. + columns: + - name: cohort_month + description: The month the cohort belongs to, i.e the first month the customer had an order. + - name: cohort_month_number + description: The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred + - name: customer_cohort_id + description: Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'. + tests: + - unique + - not_null + - name: email + description: The ID of the related customer. + - name: date_month + description: The calendar month the customer stats relate to. + - name: first_order_timestamp + description: The timestamp of the customer's first order. + - name: line_item_count_in_month + description: Number of line items purchased in the `date_month` + - name: line_item_count_lifetime + description: Number of line items purchased up until and including this `date_month`. + - name: order_count_in_month + description: Number of orders purchased in the `date_month` + - name: order_count_lifetime + description: Number of orders purchased up until and including this `date_month`. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: total_price_in_month + description: Total amount (in shop currency) purchased in the `date_month` + - name: total_price_lifetime + description: Total amount (in shop currency) up until and including this `date_month`. + - name: source_relation + description: "{{ doc('source_relation') }}" -# - name: shopify_gql__orders -# description: Each record represents an order in Shopify. -# columns: -# - name: orders_unique_key -# description: Unique key representing an order. Hashed on 'order_id' and 'source_relation'. -# tests: -# - unique -# - not_null -# - name: _fivetran_synced -# description: "{{ doc('_fivetran_synced') }}" -# - name: app_id -# description: The ID of the app that created the order. -# - name: billing_address_address_1 -# description: The street address of the billing address. -# - name: billing_address_address_2 -# description: An optional additional field for the street address of the billing address. -# - name: billing_address_city -# description: The city, town, or village of the billing address. -# - name: billing_address_company -# description: The company of the person associated with the billing address. -# - name: billing_address_country -# description: The name of the country of the billing address. -# - name: billing_address_country_code -# description: The two-letter code (ISO 3166-1 format) for the country of the billing address. -# - name: billing_address_first_name -# description: The first name of the person associated with the payment method. -# - name: billing_address_last_name -# description: The last name of the person associated with the payment method. -# - name: billing_address_latitude -# description: The latitude of the billing address. -# - name: billing_address_longitude -# description: The longitude of the billing address. -# - name: billing_address_name -# description: The full name of the person associated with the payment method. -# - name: billing_address_phone -# description: The phone number at the billing address. -# - name: billing_address_province -# description: The name of the region (province, state, prefecture, …) of the billing address. -# - name: billing_address_province_code -# description: The two-letter abbreviation of the region of the billing address. -# - name: billing_address_zip -# description: The postal code (zip, postcode, Eircode, …) of the billing address. -# - name: browser_ip -# description: The IP address of the browser used by the customer when they placed the order. -# - name: has_buyer_accepted_marketing -# description: Whether the customer consented to receive email updates from the shop. -# - name: cancel_reason -# description: The reason why the order was canceled. -# - name: cancelled_timestamp -# description: The date and time when the order was canceled. -# - name: cart_token -# description: The ID of the cart that's associated with the order. -# - name: closed_timestamp -# description: The date and time when the order was closed (archived). -# - name: created_timestamp -# description: The autogenerated date and time when the order was created in Shopify. -# - name: currency -# description: The three-letter code for the shop currency. -# - name: customer_id -# description: The ID of the order's customer. -# - name: email -# description: The customer's email address. -# - name: financial_status -# description: The status of payments associated with the order. Can only be set when the order is created -# - name: fulfillment_status -# description: The order's status in terms of fulfilled line items. -# - name: order_id -# description: The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer. -# - name: landing_site_base_url -# description: The URL for the page where the buyer landed when they entered the shop. -# - name: location_id -# description: The ID of the physical location where the order was processed. -# - name: name -# description: The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings. -# - name: note -# description: An optional note that a shop owner can attach to the order. -# - name: number -# description: The order's position in the shop's count of orders. Numbers are sequential and start at 1. -# - name: order_number -# description: The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001. -# - name: processed_timestamp -# description: The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports. -# - name: referring_site -# description: The website where the customer clicked a link to the shop. -# - name: shipping_address_address_1 -# description: The street address of the shipping address. -# - name: shipping_address_address_2 -# description: An optional additional field for the street address of the shipping address. -# - name: shipping_address_city -# description: The city, town, or village of the shipping address. -# - name: shipping_address_company -# description: The company of the person associated with the shipping address. -# - name: shipping_address_country -# description: The name of the country of the shipping address. -# - name: shipping_address_country_code -# description: The two-letter code (ISO 3166-1 format) for the country of the shipping address. -# - name: shipping_address_first_name -# description: The first name of the person associated with the shipping address. -# - name: shipping_address_last_name -# description: The last name of the person associated with the shipping address. -# - name: shipping_address_latitude -# description: The latitude of the shipping address. -# - name: shipping_address_longitude -# description: The longitude of the shipping address. -# - name: shipping_address_name -# description: The full name of the person associated with the payment method. -# - name: shipping_address_phone -# description: The phone number at the shipping address. -# - name: shipping_address_province -# description: The name of the region (province, state, prefecture, …) of the shipping address. -# - name: shipping_address_province_code -# description: The two-letter abbreviation of the region of the shipping address. -# - name: shipping_address_zip -# description: The postal code (zip, postcode, Eircode, …) of the shipping address. -# - name: source_name -# description: Where the order originated. Can be set only during order creation, and is not writeable afterwards. -# - name: source_relation -# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. -# - name: subtotal_price -# description: The price of the order in the shop currency after discounts but before shipping, taxes, and tips. -# - name: has_taxes_included -# description: Whether taxes are included in the order subtotal. -# - name: is_test_order -# description: Whether this is a test order. -# - name: token -# description: A unique token for the order. -# - name: total_discounts -# description: The total discounts applied to the price of the order in the shop currency. -# - name: total_line_items_price -# description: The sum of all line item prices in the shop currency. -# - name: total_price -# description: The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive. -# - name: total_tax -# description: The sum of all the taxes applied to the order in th shop currency. Must be positive. -# - name: total_weight -# description: The sum of all line item weights in grams. -# - name: updated_timestamp -# description: The date and time (ISO 8601 format) when the order was last modified. -# - name: user_id -# description: The ID of the user logged into Shopify POS who processed the order, if applicable. -# - name: line_item_count -# description: Number of line items included in the order. -# - name: customer_order_seq_number -# description: The sequential number of the order as it relates to the customer -# - name: new_vs_repeat -# description: Whether the order was a new or repeat order for the customer. -# - name: shipping_cost -# description: The shipping cost of the order. -# - name: order_adjustment_amount -# description: Total adjustment amount applied to the order in shop currency. -# - name: order_adjustment_tax_amount -# description: Total tax applied to the adjustment on the order in shop currency. -# - name: refund_subtotal -# description: Total refund amount applied to the order in shop currency. -# - name: refund_total_tax -# description: Total tax applied to the refund on the order in shop currency. -# - name: order_adjusted_total -# description: > -# Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: -# total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax -# The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange). -# - name: checkout_token -# description: The checkout token applied to the order. -# - name: total_shipping_price_set -# description: The total shipping price set to the order. -# - name: order_total_shipping_tax -# description: Total shipping tax attributed to the order. -# - name: order_tags -# description: List of tags associated with the order. -# - name: order_url_tags -# description: List of url tags associated with the order. -# - name: number_of_fulfillments -# description: Total fulfillments for the order. -# - name: fulfillment_services -# description: List of fulfillment services for the order. -# - name: tracking_companies -# description: List of tracking companies for the order. -# - name: tracking_numbers -# description: List of tracking numbers for the order. -# - name: total_tip_received -# description: The sum of all the tips in the order in the shop currency. -# - name: checkout_id -# description: The ID for the checkout. -# - name: client_details_user_agent -# description: Details of the browsing client, including software and operating versions. -# - name: customer_locale -# description: The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA. -# - name: order_status_url -# description: The URL pointing to the order status web page, if applicable. -# - name: presentment_currency -# description: The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`. -# - name: is_deleted -# description: "{{ doc('_fivetran_deleted') }}" -# - name: tracking_numbers -# description: List of tracking numbers for the order. -# - name: total_discounts_set -# description: The total discounts applied to the price of the order in shop and presentment currencies. -# - name: total_line_items_price_set -# description: The total of all line item prices in shop and presentment currencies. -# - name: total_price_set -# description: The total price of the order in shop and presentment currencies. -# - name: total_tax_set -# description: The total tax applied to the order in shop and presentment currencies. -# - name: is_confirmed -# description: Whether the order is confirmed. -# - name: shipping_discount_amount -# description: The total amount of discount (in shop currency) allocated toward shipping. -# - name: percentage_calc_discount_amount -# description: The total amount of discount (in shop currency) allocated via a percentage-based discount -# - name: fixed_amount_discount_amount -# description: The total amount of discount (in shop currency) allocated via a fixed-amount discount -# - name: count_discount_codes_applied -# description: Distinct discount codes applied on the order -# - name: source_relation -# description: The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft. + - name: shopify_gql__orders + description: Each record represents an order in Shopify. + columns: + - name: orders_unique_key + description: Unique key representing an order. Hashed on 'order_id' and 'source_relation'. + tests: + - unique + - not_null + - name: _fivetran_synced + description: "{{ doc('_fivetran_synced') }}" + - name: app_id + description: The ID of the app that created the order. + - name: billing_address_address_1 + description: The street address of the billing address. + - name: billing_address_address_2 + description: An optional additional field for the street address of the billing address. + - name: billing_address_city + description: The city, town, or village of the billing address. + - name: billing_address_company + description: The company of the person associated with the billing address. + - name: billing_address_country + description: The name of the country of the billing address. + - name: billing_address_country_code + description: The two-letter code (ISO 3166-1 format) for the country of the billing address. + - name: billing_address_first_name + description: The first name of the person associated with the payment method. + - name: billing_address_last_name + description: The last name of the person associated with the payment method. + - name: billing_address_latitude + description: The latitude of the billing address. + - name: billing_address_longitude + description: The longitude of the billing address. + - name: billing_address_name + description: The full name of the person associated with the payment method. + - name: billing_address_phone + description: The phone number at the billing address. + - name: billing_address_province + description: The name of the region (province, state, prefecture, …) of the billing address. + - name: billing_address_province_code + description: The two-letter abbreviation of the region of the billing address. + - name: billing_address_zip + description: The postal code (zip, postcode, Eircode, …) of the billing address. + - name: browser_ip + description: The IP address of the browser used by the customer when they placed the order. + - name: has_buyer_accepted_marketing + description: Whether the customer consented to receive email updates from the shop. + - name: cancel_reason + description: The reason why the order was canceled. + - name: cancelled_timestamp + description: The date and time when the order was canceled. + - name: closed_timestamp + description: The date and time when the order was closed (archived). + - name: created_timestamp + description: The autogenerated date and time when the order was created in Shopify. + - name: currency + description: The three-letter code for the shop currency. + - name: customer_id + description: The ID of the order's customer. + - name: email + description: The customer's email address. + - name: financial_status + description: The status of payments associated with the order. Can only be set when the order is created + - name: fulfillment_status + description: The order's status in terms of fulfilled line items. + - name: order_id + description: The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer. + - name: landing_site_base_url + description: The URL for the page where the buyer landed when they entered the shop. + - name: location_id + description: The ID of the physical location where the order was processed. + - name: name + description: The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings. + - name: note + description: An optional note that a shop owner can attach to the order. + - name: processed_timestamp + description: The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports. + - name: referring_site + description: The website where the customer clicked a link to the shop. + - name: shipping_address_address_1 + description: The street address of the shipping address. + - name: shipping_address_address_2 + description: An optional additional field for the street address of the shipping address. + - name: shipping_address_city + description: The city, town, or village of the shipping address. + - name: shipping_address_company + description: The company of the person associated with the shipping address. + - name: shipping_address_country + description: The name of the country of the shipping address. + - name: shipping_address_country_code + description: The two-letter code (ISO 3166-1 format) for the country of the shipping address. + - name: shipping_address_first_name + description: The first name of the person associated with the shipping address. + - name: shipping_address_last_name + description: The last name of the person associated with the shipping address. + - name: shipping_address_latitude + description: The latitude of the shipping address. + - name: shipping_address_longitude + description: The longitude of the shipping address. + - name: shipping_address_name + description: The full name of the person associated with the payment method. + - name: shipping_address_phone + description: The phone number at the shipping address. + - name: shipping_address_province + description: The name of the region (province, state, prefecture, …) of the shipping address. + - name: shipping_address_province_code + description: The two-letter abbreviation of the region of the shipping address. + - name: shipping_address_zip + description: The postal code (zip, postcode, Eircode, …) of the shipping address. + - name: source_name + description: Where the order originated. Can be set only during order creation, and is not writeable afterwards. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: subtotal_price_shop_amount + description: The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax. + - name: subtotal_price_pres_amount + description: The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax. + - name: subtotal_price_shop_currency_code + description: The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price. + - name: subtotal_price_pres_currency_code + description: The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price. + - name: has_taxes_included + description: Whether taxes are included in the order subtotal. + - name: is_test_order + description: Whether this is a test order. + - name: total_discounts_shop_amount + description: The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts. + - name: total_discounts_pres_amount + description: The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts. + - name: total_discounts_shop_currency_code + description: The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts. + - name: total_discounts_pres_currency_code + description: The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts. + - name: total_price_shop_amount + description: The total price of the order, before returns, in *shop* currency. + - name: total_price_pres_amount + description: The total price of the order, before returns, in *presentment* currency. + - name: total_price_pres_currency_code + description: The three-letter code (ISO 4217 format) for the shop currency used to display the total price. + - name: total_price_shop_currency_code + description: The three-letter code (ISO 4217 format) for the presentment currency used to display the total price. + - name: total_line_items_price_shop_amount + description: The sum of all line item prices in the shop currency. + - name: total_line_items_price_pres_amount + description: The sum of all line item prices in the presentment currency. + - name: total_line_items_price_shop_currency_codes + description: The three-letter codes (ISO 4217 format) for the shop currency used to display the total line item price. + - name: total_line_items_price_pres_currency_codes + description: The three-letter codes (ISO 4217 format) for the presentment currency used to display the total line item price. + - name: total_tax_shop_amount + description: The total tax amount of the order, before returns, in *shop* currency. + - name: total_tax_pres_amount + description: The total tax amount of the order, before returns, in *presentment* currency. + - name: total_tax_shop_currency_code + description: The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount. + - name: total_tax_pres_currency_code + description: The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount. + - name: total_weight + description: The sum of all line item weights in grams. + - name: updated_timestamp + description: The date and time (ISO 8601 format) when the order was last modified. + - name: user_id + description: The ID of the user logged into Shopify POS who processed the order, if applicable. + - name: line_item_count + description: Number of line items included in the order. + - name: customer_order_seq_number + description: The sequential number of the order as it relates to the customer + - name: new_vs_repeat + description: Whether the order was a new or repeat order for the customer. + - name: shipping_cost_shop_amount + description: The total shipping costs returned to the customer, in *shop* currency. + - name: shipping_cost_pres_amount + description: The total shipping costs returned to the customer, in *presentment* currency. + - name: shipping_cost_shop_currency_code + description: The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs. + - name: shipping_cost_pres_currency_code + description: The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs. + - name: order_adjustment_amount + description: Total adjustment amount applied to the order in shop currency. + - name: order_adjustment_tax_amount + description: Total tax applied to the adjustment on the order in shop currency. + - name: refund_subtotal + description: Total refund amount applied to the order in shop currency. + - name: refund_total_tax + description: Total tax applied to the refund on the order in shop currency. + - name: order_adjusted_total + description: > + Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: + total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax + The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange). + - name: order_total_shipping_tax + description: Total shipping tax attributed to the order. + - name: order_tags + description: List of tags associated with the order. + - name: number_of_fulfillments + description: Total fulfillments for the order. + - name: fulfillment_services + description: List of fulfillment services for the order. + - name: tracking_companies + description: List of tracking companies for the order. + - name: tracking_numbers + description: List of tracking numbers for the order. + - name: total_tip_received_shop_amount + description: The sum of all tip amounts for the order, in *shop* currency. + - name: total_tip_received_pres_amount + description: The sum of all tip amounts for the order, in *presentment* currency. + - name: total_tip_received_shop_currency_code + description: The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received. + - name: total_tip_received_pres_currency_code + description: The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received. + - name: customer_locale + description: The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA. + - name: order_status_url + description: The URL pointing to the order status web page, if applicable. + - name: presentment_currency + description: The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`. + - name: is_deleted + description: "{{ doc('_fivetran_deleted') }}" + - name: tracking_numbers + description: List of tracking numbers for the order. + - name: is_confirmed + description: Whether the order is confirmed. + - name: shipping_discount_amount + description: The total amount of discount (in shop currency) allocated toward shipping. + - name: percentage_calc_discount_amount + description: The total amount of discount (in shop currency) allocated via a percentage-based discount + - name: fixed_amount_discount_amount + description: The total amount of discount (in shop currency) allocated via a fixed-amount discount + - name: count_discount_codes_applied + description: Distinct discount codes applied on the order + - name: source_relation + description: The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft. -# - name: shopify_gql__customers -# description: Each record represents a customer in Shopify. -# tests: -# - dbt_utils.unique_combination_of_columns: -# combination_of_columns: -# - customer_id -# - source_relation -# columns: -# - name: _fivetran_synced -# description: "{{ doc('_fivetran_synced') }}" -# - name: created_timestamp -# description: The date and time when the customer was created. -# - name: default_address_id -# description: The default address for the customer. -# - name: email -# description: The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error. -# - name: first_name -# description: The customer's first name. -# - name: customer_id -# description: A unique identifier for the customer. -# - name: last_name -# description: The customer's last name. -# - name: lifetime_count_orders -# description: The number of orders associated with this customer. -# - name: phone -# description: The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error. -# - name: account_state -# description: The state of the customer's account with a shop. -# - name: is_tax_exempt -# description: Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout. -# - name: updated_timestamp -# description: The date and time when the customer information was last updated. -# - name: is_verified_email -# description: Whether the customer has verified their email address. -# - name: first_order_timestamp -# description: The timestamp the customer completed their first order. -# - name: most_recent_order_timestamp -# description: The timestamp the customer completed their most recent order. -# - name: avg_order_value -# description: The average order value for the customer. -# - name: lifetime_total_spent -# description: The total amount of money in shop currency that the customer has spent on orders across their order history. -# - name: lifetime_total_refunded -# description: The total amount of money that the customer has been refunded on orders across their order history. -# - name: lifetime_total_net -# description: The total amount of money (minus refunds) that the customer has spent across their order history. -# - name: source_relation -# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. -# - name: lifetime_abandoned_checkouts -# description: Total number of abandoned checkouts abandoned by the customer. -# - name: customer_tags -# description: A string aggregated list of all tags associated with a customer. -# - name: avg_quantity_per_order -# description: Average quantity of items per order customer orders. -# - name: lifetime_total_tax -# description: Total amount of tax attributed to the customer. -# - name: avg_tax_per_order -# description: Average tax per order attributed to the customer. -# - name: lifetime_total_discount -# description: Total discounts attributed to the customer. -# - name: avg_discount_per_order -# description: Average discount per order attributed to the customer. -# - name: lifetime_total_shipping -# description: Total shipping costs attributed to the customer. -# - name: avg_shipping_per_order -# description: Average shipping cost per order attributed to the customer. -# - name: lifetime_total_shipping_with_discounts -# description: Total shipping costs after discounts attributed to the customer. -# - name: avg_shipping_with_discounts_per_order -# description: Average shipping costs after discounts per order attributed to the customer. -# - name: lifetime_total_shipping_tax -# description: Total shipping tax attributed to the customer. -# - name: avg_shipping_tax_per_order -# description: Average shipping tax per order attributed to the customer. -# - name: currency -# description: The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders. -# - name: note -# description: A note about the customer. -# - name: marketing_consent_updated_at -# description: The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. -# - name: marketing_opt_in_level -# description: The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. -# - name: marketing_consent_state -# description: > -# Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` -# field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'. + - name: shopify_gql__customers + description: Each record represents a customer in Shopify. + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - customer_id + - source_relation + columns: + - name: _fivetran_synced + description: "{{ doc('_fivetran_synced') }}" + - name: created_timestamp + description: The date and time when the customer was created. + - name: default_address_id + description: The default address for the customer. + - name: email + description: The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error. + - name: first_name + description: The customer's first name. + - name: customer_id + description: A unique identifier for the customer. + - name: last_name + description: The customer's last name. + - name: lifetime_count_orders + description: The number of orders associated with this customer. + - name: phone + description: The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error. + - name: account_state + description: The state of the customer's account with a shop. + - name: is_tax_exempt + description: Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout. + - name: updated_timestamp + description: The date and time when the customer information was last updated. + - name: is_verified_email + description: Whether the customer has verified their email address. + - name: first_order_timestamp + description: The timestamp the customer completed their first order. + - name: most_recent_order_timestamp + description: The timestamp the customer completed their most recent order. + - name: avg_order_value + description: The average order value for the customer. + - name: lifetime_total_spent + description: The total amount of money in shop currency that the customer has spent on orders across their order history. + - name: lifetime_total_refunded + description: The total amount of money that the customer has been refunded on orders across their order history. + - name: lifetime_total_net + description: The total amount of money (minus refunds) that the customer has spent across their order history. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: lifetime_abandoned_checkouts + description: Total number of abandoned checkouts abandoned by the customer. + - name: customer_tags + description: A string aggregated list of all tags associated with a customer. + - name: avg_quantity_per_order + description: Average quantity of items per order customer orders. + - name: lifetime_total_tax + description: Total amount of tax attributed to the customer. + - name: avg_tax_per_order + description: Average tax per order attributed to the customer. + - name: lifetime_total_discount + description: Total discounts attributed to the customer. + - name: avg_discount_per_order + description: Average discount per order attributed to the customer. + - name: lifetime_total_shipping + description: Total shipping costs attributed to the customer. + - name: avg_shipping_per_order + description: Average shipping cost per order attributed to the customer. + - name: lifetime_total_shipping_with_discounts + description: Total shipping costs after discounts attributed to the customer. + - name: avg_shipping_with_discounts_per_order + description: Average shipping costs after discounts per order attributed to the customer. + - name: lifetime_total_shipping_tax + description: Total shipping tax attributed to the customer. + - name: avg_shipping_tax_per_order + description: Average shipping tax per order attributed to the customer. + - name: currency + description: The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders. + - name: note + description: A note about the customer. + - name: marketing_consent_updated_at + description: The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. + - name: marketing_opt_in_level + description: The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. + - name: marketing_consent_state + description: > + Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` + field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'. -# - name: shopify_gql__customer_emails -# description: Each record represents a customer email in Shopify. -# tests: -# - dbt_utils.unique_combination_of_columns: -# combination_of_columns: -# - email -# - source_relation -# columns: -# - name: last_fivetran_synced -# description: "{{ doc('_fivetran_synced') }}" -# - name: default_address_id -# description: The default address for the customer. -# - name: email -# description: The unique email address of the customer. -# - name: first_name -# description: The customer's first name. -# - name: customer_ids -# description: Comma-separated list of customer IDs associated with the email. -# - name: last_name -# description: The customer's last name. -# - name: lifetime_count_orders -# description: The number of orders associated with this customer. -# - name: phone_numbers -# description: Comma-separated list of phone numbers associated with this email. -# - name: account_state -# description: The state of the customer's account with a shop. -# - name: is_tax_exempt -# description: Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout. -# - name: last_updated_at -# description: The date and time when the customer information was last updated. -# - name: is_verified_email -# description: Whether the customer has verified their email address. -# - name: first_order_timestamp -# description: The timestamp the customer completed their first order. -# - name: most_recent_order_timestamp -# description: The timestamp the customer completed their most recent order. -# - name: avg_order_value -# description: The average order value for the customer. -# - name: lifetime_total_spent -# description: The total amount of money that the customer has spent on orders across their order history (in shop currency). -# - name: lifetime_total_refunded -# description: The total amount of money that the customer has been refunded on orders across their order history. -# - name: lifetime_total_net -# description: The total amount of money (minus refunds) that the customer has spent across their order history. -# - name: first_account_created_at -# description: Timestamp of when the first account associated with this email was created. -# - name: last_account_created_at -# description: Timestamp of when the last account associated with this email was created. -# - name: source_relation -# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. -# - name: lifetime_abandoned_checkouts -# description: Total number of abandoned checkouts abandoned by the customer. -# - name: customer_tags -# description: A string aggregated list of all tags associated with a customer. -# - name: avg_quantity_per_order -# description: Average quantity of items per order customer orders. -# - name: lifetime_total_tax -# description: Total amount of tax attributed to the customer. -# - name: avg_tax_per_order -# description: Average tax per order attributed to the customer. -# - name: lifetime_total_discount -# description: Total discounts attributed to the customer. -# - name: avg_discount_per_order -# description: Average discount per order attributed to the customer. -# - name: lifetime_total_shipping -# description: Total shipping costs attributed to the customer. -# - name: avg_shipping_per_order -# description: Average shipping cost per order attributed to the customer. -# - name: lifetime_total_shipping_with_discounts -# description: Total shipping costs after discounts attributed to the customer. -# - name: avg_shipping_with_discounts_per_order -# description: Average shipping costs after discounts per order attributed to the customer. -# - name: lifetime_total_shipping_tax -# description: Total shipping tax attributed to the customer. -# - name: avg_shipping_tax_per_order -# description: Average shipping tax per order attributed to the customer. -# - name: marketing_consent_updated_at -# description: Timestamp when marketing consent was updated. -# - name: currency -# description: The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders. -# - name: marketing_consent_state -# description: The current email marketing state for the customer. New version of `accepts_marketing` field. -# - name: marketing_opt_in_level -# description: Deprecated. The package will coalesce with `email_marketing_consent_opt_in_level`. -# - name: note -# description: A note about the customer. -# - name: marketing_consent_updated_at -# description: The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. -# - name: marketing_opt_in_level -# description: The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. -# - name: marketing_consent_state -# description: > -# Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` -# field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'. + - name: shopify_gql__customer_emails + description: Each record represents a customer email in Shopify. + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - email + - source_relation + columns: + - name: last_fivetran_synced + description: "{{ doc('_fivetran_synced') }}" + - name: default_address_id + description: The default address for the customer. + - name: email + description: The unique email address of the customer. + - name: first_name + description: The customer's first name. + - name: customer_ids + description: Comma-separated list of customer IDs associated with the email. + - name: last_name + description: The customer's last name. + - name: lifetime_count_orders + description: The number of orders associated with this customer. + - name: phone_numbers + description: Comma-separated list of phone numbers associated with this email. + - name: account_state + description: The state of the customer's account with a shop. + - name: is_tax_exempt + description: Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout. + - name: last_updated_at + description: The date and time when the customer information was last updated. + - name: is_verified_email + description: Whether the customer has verified their email address. + - name: first_order_timestamp + description: The timestamp the customer completed their first order. + - name: most_recent_order_timestamp + description: The timestamp the customer completed their most recent order. + - name: avg_order_value + description: The average order value for the customer. + - name: lifetime_total_spent + description: The total amount of money that the customer has spent on orders across their order history (in shop currency). + - name: lifetime_total_refunded + description: The total amount of money that the customer has been refunded on orders across their order history. + - name: lifetime_total_net + description: The total amount of money (minus refunds) that the customer has spent across their order history. + - name: first_account_created_at + description: Timestamp of when the first account associated with this email was created. + - name: last_account_created_at + description: Timestamp of when the last account associated with this email was created. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: lifetime_abandoned_checkouts + description: Total number of abandoned checkouts abandoned by the customer. + - name: customer_tags + description: A string aggregated list of all tags associated with a customer. + - name: avg_quantity_per_order + description: Average quantity of items per order customer orders. + - name: lifetime_total_tax + description: Total amount of tax attributed to the customer. + - name: avg_tax_per_order + description: Average tax per order attributed to the customer. + - name: lifetime_total_discount + description: Total discounts attributed to the customer. + - name: avg_discount_per_order + description: Average discount per order attributed to the customer. + - name: lifetime_total_shipping + description: Total shipping costs attributed to the customer. + - name: avg_shipping_per_order + description: Average shipping cost per order attributed to the customer. + - name: lifetime_total_shipping_with_discounts + description: Total shipping costs after discounts attributed to the customer. + - name: avg_shipping_with_discounts_per_order + description: Average shipping costs after discounts per order attributed to the customer. + - name: lifetime_total_shipping_tax + description: Total shipping tax attributed to the customer. + - name: avg_shipping_tax_per_order + description: Average shipping tax per order attributed to the customer. + - name: marketing_consent_updated_at + description: Timestamp when marketing consent was updated. + - name: currency + description: The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders. + - name: marketing_consent_state + description: The current email marketing state for the customer. New version of `accepts_marketing` field. + - name: marketing_opt_in_level + description: Deprecated. The package will coalesce with `email_marketing_consent_opt_in_level`. + - name: note + description: A note about the customer. + - name: marketing_consent_updated_at + description: The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. + - name: marketing_opt_in_level + description: The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. + - name: marketing_consent_state + description: > + Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` + field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'. -# - name: shopify_gql__products -# description: Each record represents a product in Shopify. -# tests: -# - dbt_utils.unique_combination_of_columns: -# combination_of_columns: -# - product_id -# - source_relation -# columns: -# - name: is_deleted -# description: Whether the record has been deleted in the source system. -# - name: _fivetran_synced -# description: "{{ doc('_fivetran_synced') }}" -# - name: created_timestamp -# description: The date and time when the product was created. -# - name: handle -# description: A unique human-friendly string for the product. Automatically generated from the product's title. -# - name: product_id -# description: An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops. -# - name: product_type -# description: A categorization for the product used for filtering and searching products. -# - name: published_timestamp -# description: The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel. -# - name: published_scope -# description: Whether the product is published to the Point of Sale channel. -# - name: title -# description: The name of the product. -# - name: updated_timestamp -# description: The date and time when the product was last modified. -# - name: vendor -# description: The name of the product's vendor. -# - name: total_quantity_sold -# description: Quantity of the product sold. -# - name: subtotal_sold -# description: Total amount (in shop currency) of the product sold. -# - name: quantity_sold_net_refunds -# description: Quantity of the product sold, excluding refunds. -# - name: subtotal_sold_net_refunds -# description: Total amount (in shop currency) of the product sold, excluding refunds. -# - name: first_order_timestamp -# description: The timestamp the product was first ordered. -# - name: most_recent_order_timestamp -# description: The timestamp the product was most recently ordered. -# - name: source_relation -# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. -# - name: avg_quantity_per_order_line -# description: Average quantity per order line with this product. -# - name: product_total_discount -# description: Total discounts associated with the product. -# - name: product_avg_discount_per_order_line -# description: Average discount per order line with this product. -# - name: product_total_tax -# description: Total taxes associated with the product. -# - name: product_avg_tax_per_order_line -# description: Average taxes per order line with this product. -# - name: count_variants -# description: Count of product variants. -# - name: has_product_media -# description: If the product has media. -# - name: status -# description: > -# The status of the product. Valid values: -# - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. -# - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. -# - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft. -# - name: collections -# description: Comma-separated list of collections associated with the product. -# - name: tags -# description: Comma-separated list of tags associated with the product. + - name: shopify_gql__products + description: Each record represents a product in Shopify. + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - product_id + - source_relation + columns: + - name: is_deleted + description: Whether the record has been deleted in the source system. + - name: _fivetran_synced + description: "{{ doc('_fivetran_synced') }}" + - name: created_timestamp + description: The date and time when the product was created. + - name: handle + description: A unique human-friendly string for the product. Automatically generated from the product's title. + - name: product_id + description: An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops. + - name: product_type + description: A categorization for the product used for filtering and searching products. + - name: published_timestamp + description: The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel. + - name: title + description: The name of the product. + - name: updated_timestamp + description: The date and time when the product was last modified. + - name: vendor + description: The name of the product's vendor. + - name: total_quantity_sold + description: Quantity of the product sold. + - name: subtotal_sold + description: Total amount (in shop currency) of the product sold. + - name: quantity_sold_net_refunds + description: Quantity of the product sold, excluding refunds. + - name: subtotal_sold_net_refunds + description: Total amount (in shop currency) of the product sold, excluding refunds. + - name: first_order_timestamp + description: The timestamp the product was first ordered. + - name: most_recent_order_timestamp + description: The timestamp the product was most recently ordered. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: avg_quantity_per_order_line + description: Average quantity per order line with this product. + - name: product_total_discount + description: Total discounts associated with the product. + - name: product_avg_discount_per_order_line + description: Average discount per order line with this product. + - name: product_total_tax + description: Total taxes associated with the product. + - name: product_avg_tax_per_order_line + description: Average taxes per order line with this product. + - name: count_variants + description: Count of product variants. + - name: has_product_media + description: If the product has media. + - name: status + description: > + The status of the product. Valid values: + - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. + - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. + - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft. + - name: collections + description: Comma-separated list of collections associated with the product. + - name: tags + description: Comma-separated list of tags associated with the product. -# - name: shopify_gql__order_lines -# description: Each record represents a line item of an order in Shopify. -# columns: -# - name: order_lines_unique_key -# description: Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'. -# tests: -# - unique -# - not_null -# - name: _fivetran_synced -# description: "{{ doc('_fivetran_synced') }}" -# - name: fulfillable_quantity -# description: > -# The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity -# - name: fulfillment_status -# description: How far along an order is in terms line items fulfilled. -# - name: is_gift_card -# description: Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges. -# - name: grams -# description: The weight of the item in grams. -# - name: order_line_id -# description: The ID of the line item. -# - name: name -# description: The name of the product variant. -# - name: order_id -# description: The ID of the related order. -# - name: price -# description: The price of the item before discounts have been applied in the shop currency. -# - name: product_id -# description: The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date. -# - name: quantity -# description: The number of items that were purchased. -# - name: is_shipping_required -# description: Whether the item requires shipping. -# - name: sku -# description: The item's SKU (stock keeping unit). -# - name: is_taxable -# description: Whether the item was taxable. -# - name: title -# description: The title of the product. -# - name: total_discount -# description: The total amount of the discount allocated to the line item in the shop currency. -# - name: variant_id -# description: The ID of the product variant. -# - name: vendor -# description: The name of the item's supplier. -# - name: refunded_quantity -# description: Quantity of the item that has been refunded. -# - name: quantity_net_refunds -# description: Quantity ordered, excluding refunds. -# - name: variant_barcode -# description: The barcode, UPC, or ISBN number for the product. -# - name: variant_compare_at_price -# description: The original price of the item before an adjustment or a sale in shop currency. -# - name: variant_created_at -# description: The date and time (ISO 8601 format) when the product variant was created. -# - name: variant_fulfillment_service -# description: (DEPRECATED 2025-01-06) The fulfillment service associated with the product variant. -# - name: variant_grams -# description: (DEPRECATED 2025-01-06) The weight of the product variant in grams. -# - name: inventory_item_id -# description: The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information. -# - name: media_id -# description: The unique numeric identifier for a product variant's media. -# - name: variant_inventory_management -# description: (DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant. -# - name: variant_inventory_policy -# description: Whether customers are allowed to place an order for the product variant when it's out of stock. -# - name: variant_inventory_quantity -# description: An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource. -# - name: variant_option_1 -# description: > -# (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. -# - name: variant_option_2 -# description: > -# (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. -# - name: variant_option_3 -# description: > -# (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. -# - name: variant_position -# description: The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed. -# - name: variant_price -# description: The price of the product variant. -# - name: variant_sku -# description: A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService. -# - name: variant_is_taxable -# description: Whether a tax is charged when the product variant is sold. -# - name: variant_tax_code -# description: This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant. -# - name: variant_title -# description: The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields. -# - name: variant_updated_at -# description: The date and time when the product variant was last modified. Gets returned in ISO 8601 format. -# - name: variant_weight -# description: (DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit. -# - name: variant_weight_unit -# description: > -# (DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb. -# - name: variant_is_available_for_sale -# description: Indicates whether the product variant is available for sale. -# - name: variant_display_name -# description: The display name of the variant, based on the product's title and variant's title. -# - name: variant_legacy_resource_id -# description: The ID of the corresponding resource in the REST Admin API. -# - name: variant_has_components_required -# description: Indicates whether a product variant requires components. -# - name: variant_sellable_online_quantity -# description: The total sellable quantity of the variant for online channels. -# - name: refunded_subtotal -# description: Subtotal amount of the refund applied to the order line in shop currency. -# - name: subtotal_net_refunds -# description: Subtotal of the order line with refunds subtracted in shop currency. -# - name: source_relation -# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. -# - name: restock_types -# description: List of how this refund line item affects inventory levels. -# - name: order_line_tax -# description: Total taxes for the line item. -# - name: index -# description: The index associated with the order. -# - name: pre_tax_price -# description: The total pre tax price of the order. -# - name: tax_code -# description: This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant. -# - name: pre_tax_price_set -# description: The pre tax price of the line item in shop currency and presentment currency. -# - name: price_set -# description: The price of the line item in shop and presentment currencies. -# - name: total_discount_set -# description: The total amount allocated to the line item in the presentment currency. -# - name: properties -# description: Line item properties. + - name: shopify_gql__order_lines + description: Each record represents a line item of an order in Shopify. + columns: + - name: order_lines_unique_key + description: Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'. + tests: + - unique + - not_null + - name: _fivetran_synced + description: "{{ doc('_fivetran_synced') }}" + - name: fulfillable_quantity + description: > + The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity + - name: fulfillment_status + description: How far along an order is in terms line items fulfilled. + - name: is_gift_card + description: Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges. + - name: order_line_id + description: The ID of the line item. + - name: name + description: The name of the product variant. + - name: order_id + description: The ID of the related order. + - name: price_pres_amount + description: The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts. + - name: price_pres_currency_code + description: The three-letter code (ISO 4217 format) for the presentment currency used to display the total price. + - name: price_shop_amount + description: The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts. + - name: price_shop_currency_code + description: The three-letter code (ISO 4217 format) for the shop currency used to display the total price. + - name: product_id + description: The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date. + - name: quantity + description: The number of items that were purchased. + - name: is_shipping_required + description: Whether the item requires shipping. + - name: sku + description: The item's SKU (stock keeping unit). + - name: is_taxable + description: Whether the item was taxable. + - name: title + description: The title of the product. + - name: total_discount_shop_amount + description: The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts. + - name: total_discount_pres_amount + description: The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts. + - name: total_discount_shop_currency_code + description: The three-letter code (ISO å4217 format) for the shop currency used to display the total discount. + - name: total_discount_pres_currency_code + description: The three-letter code (ISO 4217 format) for the currency currency used to display the total discount. + - name: variant_id + description: The ID of the product variant. + - name: vendor + description: The name of the item's supplier. + - name: refunded_quantity + description: Quantity of the item that has been refunded. + - name: quantity_net_refunds + description: Quantity ordered, excluding refunds. + - name: variant_barcode + description: The barcode, UPC, or ISBN number for the product. + - name: variant_compare_at_price + description: The original price of the item before an adjustment or a sale in shop currency. + - name: variant_created_at + description: The date and time (ISO 8601 format) when the product variant was created. + - name: inventory_item_id + description: The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information. + - name: media_id + description: The unique numeric identifier for a product variant's media. + - name: variant_inventory_policy + description: Whether customers are allowed to place an order for the product variant when it's out of stock. + - name: variant_inventory_quantity + description: An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource. + - name: variant_position + description: The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed. + - name: variant_price + description: The price of the product variant. + - name: variant_sku + description: A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService. + - name: variant_is_taxable + description: Whether a tax is charged when the product variant is sold. + - name: variant_tax_code + description: This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant. + - name: variant_title + description: The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields. + - name: variant_updated_at + description: The date and time when the product variant was last modified. Gets returned in ISO 8601 format. + - name: variant_weight + description: The weight value of the variant's inventory item's measurement. + - name: variant_weight_unit + description: > + The unit of measurement for the variant's inventory item's weight. + - name: variant_is_available_for_sale + description: Indicates whether the product variant is available for sale. + - name: variant_display_name + description: The display name of the variant, based on the product's title and variant's title. + - name: variant_legacy_resource_id + description: The ID of the corresponding resource in the REST Admin API. + - name: variant_has_components_required + description: Indicates whether a product variant requires components. + - name: variant_sellable_online_quantity + description: The total sellable quantity of the variant for online channels. + - name: refunded_subtotal + description: Subtotal amount of the refund applied to the order line in shop currency. + - name: subtotal_net_refunds + description: Subtotal of the order line with refunds subtracted in shop currency. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: restock_types + description: List of how this refund line item affects inventory levels. + - name: order_line_tax + description: Total taxes for the line item. + - name: index + description: The index associated with the order. + - name: pre_tax_price + description: The total pre tax price of the order. + - name: weight_unit + description: The unit of measurement for the weight of a single item (e.g., grams, ounces). + - name: weight_value + description: The numeric weight of a single unit of the line item using the specified `weight_unit`. -# - name: shopify_gql__transactions -# description: Each record represents a transaction in Shopify. -# columns: -# - name: transactions_unique_id -# description: Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'. -# tests: -# - unique -# - not_null -# - name: transaction_id -# description: The ID for the transaction. -# - name: order_id -# description: The ID for the order that the transaction is associated with. -# - name: refund_id -# description: The ID associated with a refund in the refund table. -# - name: amount -# description: The amount of money included in the transaction in shop currency. -# - name: created_timestamp -# description: The date and time when the transaction was created. -# - name: processed_timestamp -# description: The date and time when a transaction was processed. -# - name: device_id -# description: The ID for the device. -# - name: gateway -# description: The name of the gateway the transaction was issued through. -# - name: source_name -# description: The origin of the transaction. -# - name: message -# description: A string generated by the payment provider with additional information about why the transaction succeeded or failed. -# - name: currency -# description: The three-letter code (ISO 4217 format) for the currency used for the payment. -# - name: location_id -# description: The ID of the physical location where the transaction was processed. -# - name: parent_id -# description: The ID of an associated transaction. -# - name: payment_avs_result_code -# description: The response code from the address verification system. -# - name: payment_credit_card_bin -# description: The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card. -# - name: payment_cvv_result_code -# description: The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly. -# - name: payment_credit_card_number -# description: The customer's credit card number, with most of the leading digits redacted. -# - name: payment_credit_card_company -# description: The name of the company that issued the customer's credit card. -# - name: kind -# description: The transaction's type. -# - name: receipt -# description: A transaction receipt attached to the transaction by the gateway. -# - name: currency_exchange_id -# description: The ID of the adjustment. -# - name: currency_exchange_adjustment -# description: The difference between the amounts on the associated transaction and the parent transaction. -# - name: currency_exchange_original_amount -# description: The amount of the parent transaction in the shop currency. -# - name: currency_exchange_final_amount -# description: The amount of the associated transaction in the shop currency. -# - name: currency_exchange_currency -# description: The shop currency. -# - name: error_code -# description: A standardized error code, independent of the payment provider. -# - name: status -# description: The status of the transaction. -# - name: user_id -# description: The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable. -# - name: _fivetran_synced -# description: Timestamp of the date the record was synced by Fivetran. -# - name: exchange_rate -# description: The exchange rate between the home currency and the currency of sale at the time of the transaction. -# - name: currency_exchange_calculated_amount -# description: The total amount of the transaction with the currency exchange rate applied. -# - name: source_relation -# description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. -# - name: payment_method -# description: Method of payment. -# - name: parent_created_timestamp -# description: Created on timestamp of the parent transaction. -# - name: parent_kind -# description: Kind of the parent transaction. -# - name: parent_amount -# description: Amount of the parent transaction. -# - name: parent_status -# description: Status of the parent transaction. -# - name: authorization_expires_at -# description: Timestamp when the authorization expires. -# - name: authorization_code -# description: The authorization code associated with the transaction. + - name: shopify_gql__transactions + description: Each record represents a transaction in Shopify. + columns: + - name: transactions_unique_id + description: Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'. + tests: + - unique + - not_null + - name: transaction_id + description: The ID for the transaction. + - name: order_id + description: The ID for the order that the transaction is associated with. + - name: refund_id + description: The ID associated with a refund in the refund table. + - name: amount_shop + description: The amount of money included in the transaction in shop currency. + - name: amount_pres + description: The amount of money included in the transaction in presentment currency. + - name: created_timestamp + description: The date and time when the transaction was created. + - name: processed_timestamp + description: The date and time when a transaction was processed. + - name: gateway + description: The name of the gateway the transaction was issued through. + - name: source_name + description: The origin of the transaction. + - name: amount_pres_currency_code + description: The three-letter code (ISO 4217 format) for the shop currency used for the payment. + - name: amount_shop_currency_code + description: The three-letter code (ISO 4217 format) for the presentment currency used for the payment. + - name: location_id + description: The ID of the physical location where the transaction was processed. + - name: parent_id + description: The ID of an associated transaction. + - name: payment_avs_result_code + description: The response code from the address verification system. + - name: payment_credit_card_bin + description: The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card. + - name: payment_cvv_result_code + description: The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly. + - name: payment_credit_card_number + description: The customer's credit card number, with most of the leading digits redacted. + - name: payment_credit_card_company + description: The name of the company that issued the customer's credit card. + - name: kind + description: The transaction's type. + - name: receipt + description: A transaction receipt attached to the transaction by the gateway. + # - name: currency_exchange_id + # description: The ID of the adjustment. + # - name: currency_exchange_adjustment + # description: The difference between the amounts on the associated transaction and the parent transaction. + # - name: currency_exchange_original_amount + # description: The amount of the parent transaction in the shop currency. + # - name: currency_exchange_final_amount + # description: The amount of the associated transaction in the shop currency. + # - name: currency_exchange_currency + # description: The shop currency. + - name: error_code + description: A standardized error code, independent of the payment provider. + - name: status + description: The status of the transaction. + - name: user_id + description: The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable. + - name: _fivetran_synced + description: Timestamp of the date the record was synced by Fivetran. + - name: exchange_rate + description: The exchange rate between the home currency and the currency of sale at the time of the transaction. + - name: currency_exchange_calculated_amount + description: The total amount of the transaction with the currency exchange rate applied. + - name: source_relation + description: The schema or database this record came from, if you are unioning multiple connectors. Null if not. + - name: payment_method + description: Method of payment. + - name: parent_created_timestamp + description: Created on timestamp of the parent transaction. + - name: parent_kind + description: Kind of the parent transaction. + - name: parent_amount + description: Amount of the parent transaction. + - name: parent_status + description: Status of the parent transaction. + - name: authorization_expires_at + description: Timestamp when the authorization expires. + - name: authorization_code + description: The authorization code associated with the transaction. -# - name: shopify_gql__inventory_levels -# description: > -# Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of -# inventory items (which have a 1:1 relationship with product variants) and locations. + - name: shopify_gql__inventory_levels + description: > + Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of + inventory items (which have a 1:1 relationship with product variants) and locations. -# Inventory Level = Inventory item @ a Location. -# tests: -# - dbt_utils.unique_combination_of_columns: -# combination_of_columns: -# - inventory_item_id -# - location_id -# - source_relation -# columns: -# - name: _fivetran_synced -# description: "{{ doc('_fivetran_synced') }}" -# - name: inventory_item_id -# description: The ID of the inventory item associated with the inventory level. -# tests: -# - not_null -# - name: location_id -# description: The ID of the location that the inventory level belongs to. -# tests: -# - not_null -# - name: updated_at -# description: The date and time (ISO 8601 format) when the inventory level was last modified. -# - name: is_inventory_item_deleted -# description: "{{ doc('_fivetran_deleted') }}" -# - name: sku -# description: The unique SKU (stock keeping unit) of the inventory item. -# - name: province_code_of_origin -# description: The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post. -# - name: duplicate_sku_count -# description: The number of inventory items that share the same SKU with this item. -# - name: harmonized_system_code -# description: The harmonized system code of the item. -# - name: inventory_history_url -# description: The URL that points to the inventory history for the item. -# - name: legacy_resource_id -# description: The ID of the corresponding resource in the REST Admin API. -# - name: measurement_id -# description: The unique identifier for the inventory item's measurement. -# - name: measurement_weight_value -# description: The weight value of the inventory item's measurement. -# - name: measurement_weight_unit -# description: The unit of measurement for the inventory item's weight. -# - name: is_tracked_editable_locked -# description: Indicates whether the 'tracked' field for the inventory item is locked from editing. -# - name: tracked_editable_reason -# description: Provides the reason why the 'tracked' field for the inventory item is locked from editing. -# - name: unit_cost_amount -# description: The unit cost associated with the inventory item. -# - name: unit_cost_currency_code -# description: Currency of the unit cost associated with the inventory item. -# - name: country_code_of_origin -# description: The country code (ISO 3166-1 alpha-2) of where the item came from. -# - name: is_shipping_required -# description: (DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item. -# - name: is_inventory_quantity_tracked -# description: Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify. -# - name: can_deactivate -# description: Indicates whether the inventory item can be deactivated at the location. -# - name: deactivation_alert -# description: Provides an alert message when the inventory item is deactivated at the location. -# - name: created_at -# description: The date and time when the inventory level was created. -# - name: inventory_item_created_at -# description: The date and time (ISO 8601 format) when the inventory item was created. -# - name: inventory_item_updated_at -# description: The date and time (ISO 8601 format) when the inventory item was last modified. -# - name: is_location_deleted -# description: "{{ doc('_fivetran_deleted') }}" -# - name: is_location_active -# description: > -# Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders. -# - name: address_1 -# description: The location's street address. -# - name: address_2 -# description: The optional second line of the location's street address. -# - name: city -# description: The city the location is in. -# - name: country -# description: The country the location is in (two-letter code). -# - name: country_code -# description: The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in. -# - name: location_created_at -# description: The date and time (ISO 8601 format) when the location was created. -# - name: is_legacy_location -# description: > -# Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. -# If false, then the location was created by the merchant and isn't tied to a fulfillment service. -# - name: location_name -# description: The name of the location. -# - name: phone -# description: The phone number of the location. This value can contain special characters, such as - or +. -# - name: province -# description: The province, state, or district of the location. -# - name: province_code -# description: The province, state, or district code (ISO 3166-2 alpha-2 format) of the location. -# - name: location_updated_at -# description: The date and time (ISO 8601 format) when the location was last updated. -# - name: zip -# description: The zip or postal code. -# - name: variant_barcode -# description: The barcode, UPC, or ISBN number for the product. -# - name: variant_created_at -# description: The date and time (ISO 8601 format) when the product variant was created. -# - name: variant_fulfillment_service -# description: (DEPRECATED 2025-01-06) The fulfillment service associated with the product variant. -# - name: variant_grams -# description: (DEPRECATED 2025-01-06) The weight of the product variant in grams. -# - name: variant_id -# description: The unique numeric identifier for the product variant. -# - name: variant_inventory_management -# description: (DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant. -# - name: variant_inventory_policy -# description: Whether customers are allowed to place an order for the product variant when it's out of stock. -# - name: variant_inventory_quantity -# description: An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource. -# - name: variant_option_1 -# description: > -# (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. -# - name: variant_option_2 -# description: > -# (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. -# - name: variant_option_3 -# description: > -# (DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. -# - name: variant_price -# description: The price of the product variant in shop currency. -# - name: variant_media_id -# description: The unique numeric identifier for a product variant's media. -# - name: product_id -# description: The unique numeric identifier for the product. -# - name: is_variant_taxable -# description: Whether a tax is charged when the product variant is sold. -# - name: variant_tax_code -# description: This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant. -# - name: variant_title -# description: The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields. -# - name: variant_updated_at -# description: The date and time when the product variant was last modified. Gets returned in ISO 8601 format. -# - name: variant_weight -# description: (DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit. -# - name: variant_weight_unit -# description: > -# (DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb. -# - name: variant_is_available_for_sale -# description: Indicates whether the product variant is available for sale. -# - name: variant_display_name -# description: The display name of the variant, based on the product's title and variant's title. -# - name: variant_legacy_resource_id -# description: The ID of the corresponding resource in the REST Admin API. -# - name: variant_has_components_required -# description: Indicates whether a product variant requires components. -# - name: variant_sellable_online_quantity -# description: The total sellable quantity of the variant for online channels. -# - name: subtotal_sold -# description: Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds. -# - name: quantity_sold -# description: Total quantity sold from the inventory level. Includes refunds. -# - name: count_distinct_orders -# description: The number of distinct orders placed from this inventory level. -# - name: count_distinct_customers -# description: The number of distinct customers (based on customer_id) that have placed orders against this inventory level. -# - name: count_distinct_customer_emails -# description: The number of distinct customer emails that have placed orders against this inventory level. -# - name: first_order_timestamp -# description: The timetamp of the first order against this inventory level. -# - name: last_order_timestamp -# description: The timestamp of the first order against this inventory level. -# - name: subtotal_sold_refunds -# description: The monetary amount (in shop currency) of inventory level goods that have been refunded. -# - name: quantity_sold_refunds -# description: The quantity of inventory level goods that have been refunded. -# - name: net_subtotal_sold -# description: Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds. -# - name: net_quantity_sold -# description: Net quantity sold from this inventory level. Excludes refunds. -# - name: count_fulfillment_pending -# description: > -# Count of currently pending distinct fulfillments for this inventory level. -# "Pending" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. -# - name: count_fulfillment_open -# description: > -# Count of currently open distinct fulfillments for this inventory level. -# "Open" = The fulfillment has been acknowledged by the service and is in processing. -# - name: count_fulfillment_success -# description: > -# Count of successful distinct fulfillments for this inventory level. -# "Success" = The fulfillment was successful. -# - name: count_fulfillment_cancelled -# description: > -# Count of cancelled distinct fulfillments for this inventory level. -# "Cancelled" = The fulfillment was cancelled. -# - name: count_fulfillment_error -# description: > -# Count of distinct fulfillments for this inventory level that encountered an error. -# "Error" = There was an error with the fulfillment request. -# - name: count_fulfillment_failure -# description: > -# Count of distinct fulfillments for this inventory level that failed. -# "Failure" = The fulfillment request failed. -# - name: source_relation -# description: "{{ doc('source_relation') }}" -# - name: available_quantity -# description: > -# The available quantity that a merchant can sell, determined by coalescing the `quantity` where -# inventory_state_name = 'available' from `stg_shopify_gql__inventory_quantity`and `available_quantity` -# from the deprecated `stg_shopify_gql__inventory_level`. Returns null if the inventory item is not tracked. -# - name: incoming_quantity -# description: The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked. -# - name: on_hand_quantity -# description: > -# The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that -# are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. -# Returns null if the inventory item is not tracked. -# - name: committed_quantity -# description: The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked. -# - name: reserved_quantity -# description: The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked. -# - name: damaged_quantity -# description: The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked. -# - name: safety_stock_quantity -# description: The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked. -# - name: quality_control_quantity -# description: The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked. + Inventory Level = Inventory item @ a Location. + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - inventory_item_id + - location_id + - source_relation + columns: + - name: inventory_level_id + description: A globally unique identifier for the inventory level. + - name: country_name + description: The name of the country where the inventory level is located. + - name: _fivetran_synced + description: "{{ doc('_fivetran_synced') }}" + - name: inventory_item_id + description: The ID of the inventory item associated with the inventory level. + tests: + - not_null + - name: location_id + description: The ID of the location that the inventory level belongs to. + tests: + - not_null + - name: updated_at + description: The date and time (ISO 8601 format) when the inventory level was last modified. + - name: is_inventory_item_deleted + description: "{{ doc('_fivetran_deleted') }}" + - name: sku + description: The unique SKU (stock keeping unit) of the inventory item. + - name: province_code_of_origin + description: The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post. + - name: duplicate_sku_count + description: The number of inventory items that share the same SKU with this item. + - name: harmonized_system_code + description: The harmonized system code of the item. + - name: inventory_history_url + description: The URL that points to the inventory history for the item. + - name: legacy_resource_id + description: The ID of the corresponding resource in the REST Admin API. + - name: measurement_id + description: The unique identifier for the inventory item's measurement. + - name: measurement_weight_value + description: The weight value of the inventory item's measurement. + - name: measurement_weight_unit + description: The unit of measurement for the inventory item's weight. + - name: is_tracked_editable_locked + description: Indicates whether the 'tracked' field for the inventory item is locked from editing. + - name: tracked_editable_reason + description: Provides the reason why the 'tracked' field for the inventory item is locked from editing. + - name: unit_cost_amount + description: The unit cost associated with the inventory item. + - name: unit_cost_currency_code + description: Currency of the unit cost associated with the inventory item. + - name: country_code_of_origin + description: The country code (ISO 3166-1 alpha-2) of where the item came from. + - name: is_shipping_required + description: (DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item. + - name: is_inventory_quantity_tracked + description: Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify. + - name: can_deactivate + description: Indicates whether the inventory item can be deactivated at the location. + - name: deactivation_alert + description: Provides an alert message when the inventory item is deactivated at the location. + - name: created_at + description: The date and time when the inventory level was created. + - name: inventory_item_created_at + description: The date and time (ISO 8601 format) when the inventory item was created. + - name: inventory_item_updated_at + description: The date and time (ISO 8601 format) when the inventory item was last modified. + - name: is_location_deleted + description: "{{ doc('_fivetran_deleted') }}" + - name: is_location_active + description: > + Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders. + - name: address_1 + description: The location's street address. + - name: address_2 + description: The optional second line of the location's street address. + - name: city + description: The city the location is in. + - name: country + description: The country the location is in (two-letter code). + - name: country_code + description: The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in. + - name: location_created_at + description: The date and time (ISO 8601 format) when the location was created. + - name: is_legacy_location + description: > + Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. + If false, then the location was created by the merchant and isn't tied to a fulfillment service. + - name: location_name + description: The name of the location. + - name: phone + description: The phone number of the location. This value can contain special characters, such as - or +. + - name: province + description: The province, state, or district of the location. + - name: province_code + description: The province, state, or district code (ISO 3166-2 alpha-2 format) of the location. + - name: location_updated_at + description: The date and time (ISO 8601 format) when the location was last updated. + - name: zip + description: The zip or postal code. + - name: variant_barcode + description: The barcode, UPC, or ISBN number for the product. + - name: variant_created_at + description: The date and time (ISO 8601 format) when the product variant was created. + - name: variant_id + description: The unique numeric identifier for the product variant. + - name: variant_inventory_policy + description: Whether customers are allowed to place an order for the product variant when it's out of stock. + - name: variant_inventory_quantity + description: An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource. + - name: variant_price + description: The price of the product variant in shop currency. + - name: variant_media_id + description: The unique numeric identifier for a product variant's media. + - name: product_id + description: The unique numeric identifier for the product. + - name: is_variant_taxable + description: Whether a tax is charged when the product variant is sold. + - name: variant_tax_code + description: This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant. + - name: variant_title + description: The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields. + - name: variant_updated_at + description: The date and time when the product variant was last modified. Gets returned in ISO 8601 format. + - name: variant_is_available_for_sale + description: Indicates whether the product variant is available for sale. + - name: variant_display_name + description: The display name of the variant, based on the product's title and variant's title. + - name: variant_legacy_resource_id + description: The ID of the corresponding resource in the REST Admin API. + - name: variant_has_components_required + description: Indicates whether a product variant requires components. + - name: variant_sellable_online_quantity + description: The total sellable quantity of the variant for online channels. + - name: subtotal_sold + description: Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds. + - name: quantity_sold + description: Total quantity sold from the inventory level. Includes refunds. + - name: count_distinct_orders + description: The number of distinct orders placed from this inventory level. + - name: count_distinct_customers + description: The number of distinct customers (based on customer_id) that have placed orders against this inventory level. + - name: count_distinct_customer_emails + description: The number of distinct customer emails that have placed orders against this inventory level. + - name: first_order_timestamp + description: The timetamp of the first order against this inventory level. + - name: last_order_timestamp + description: The timestamp of the first order against this inventory level. + - name: subtotal_sold_refunds + description: The monetary amount (in shop currency) of inventory level goods that have been refunded. + - name: quantity_sold_refunds + description: The quantity of inventory level goods that have been refunded. + - name: net_subtotal_sold + description: Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds. + - name: net_quantity_sold + description: Net quantity sold from this inventory level. Excludes refunds. + - name: count_fulfillment_pending + description: > + Count of currently pending distinct fulfillments for this inventory level. + "Pending" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. + - name: count_fulfillment_open + description: > + Count of currently open distinct fulfillments for this inventory level. + "Open" = The fulfillment has been acknowledged by the service and is in processing. + - name: count_fulfillment_success + description: > + Count of successful distinct fulfillments for this inventory level. + "Success" = The fulfillment was successful. + - name: count_fulfillment_cancelled + description: > + Count of cancelled distinct fulfillments for this inventory level. + "Cancelled" = The fulfillment was cancelled. + - name: count_fulfillment_error + description: > + Count of distinct fulfillments for this inventory level that encountered an error. + "Error" = There was an error with the fulfillment request. + - name: count_fulfillment_failure + description: > + Count of distinct fulfillments for this inventory level that failed. + "Failure" = The fulfillment request failed. + - name: source_relation + description: "{{ doc('source_relation') }}" + - name: available_quantity + description: > + The available quantity that a merchant can sell, determined by coalescing the `quantity` where + inventory_state_name = 'available' from `stg_shopify_gql__inventory_quantity`and `available_quantity` + from the deprecated `stg_shopify_gql__inventory_level`. Returns null if the inventory item is not tracked. + - name: incoming_quantity + description: The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked. + - name: on_hand_quantity + description: > + The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that + are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. + Returns null if the inventory item is not tracked. + - name: committed_quantity + description: The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked. + - name: reserved_quantity + description: The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked. + - name: damaged_quantity + description: The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked. + - name: safety_stock_quantity + description: The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked. + - name: quality_control_quantity + description: The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked. -# - name: shopify_gql__discounts -# description: > -# Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts. -# tests: -# - dbt_utils.unique_combination_of_columns: -# combination_of_columns: -# - code -# - source_relation -# config: -# severity: warn # best practice for codes to be unique -# columns: -# - name: discounts_unique_key -# description: Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'. -# tests: -# - unique -# - not_null -# - name: _fivetran_synced -# description: "{{ doc('_fivetran_synced') }}" -# - name: code -# description: The case-insensitive discount code that customers use at checkout. -# - name: discount_code_id -# description: The ID for the discount code. -# tests: -# - not_null -# - name: discount_type -# description: The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app'). -# - name: applies_once_per_customer -# description: Whether the discount can be used only once per customer. -# - name: usage_count -# description: Number of times the discount has been used (asynchronously updated). -# - name: codes_count -# description: Number of unique redeem codes associated with the discount. -# - name: codes_precision -# description: Indicates whether `codes_count` is exact or estimated. -# - name: combines_with_order_discounts -# description: Whether this discount can be combined with order-level discounts. -# - name: combines_with_product_discounts -# description: Whether this discount can be combined with product-level discounts. -# - name: combines_with_shipping_discounts -# description: Whether this discount can be combined with shipping-level discounts. -# - name: created_at -# description: Timestamp when the discount was created. -# - name: customer_selection_all_customers -# description: Whether the discount is available to all customers. -# - name: ends_at -# description: Timestamp when the discount ends or expires. -# - name: starts_at -# description: Timestamp when the discount becomes active. -# - name: status -# description: Current status of the discount (e.g. 'active', 'expired', 'scheduled'). -# - name: title -# description: The discount’s display name in the Shopify admin and to customers. -# - name: total_sales_amount -# description: The total sales amount that resulted from the usage of this discount. -# - name: total_sales_currency_code -# description: The currency code associated with `total_sales_amount`. -# - name: updated_at -# description: Timestamp when the discount was last updated. -# - name: usage_limit -# description: The total number of times the discount code can be used. -# - name: allocation_method -# description: > -# The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items). -# - name: description -# description: A description of the discount, often corresponding to the rule or promotion name. -# - name: target_selection -# description: Indicates whether the discount applies to 'all' or 'entitled' items. -# - name: target_type -# description: The type of target this discount applies to (e.g., `line_item` or `shipping_line`). -# - name: application_type -# description: The type of discount (e.g., `manual`, `script`, or `automatic`). -# - name: value -# description: Numeric value of the discount (e.g., percentage or fixed amount). -# - name: value_type -# description: How the discount value is interpreted (e.g., 'percentage', 'fixed_amount'). -# - name: total_order_discount_amount -# description: Total monetary amount (in shop currency) of discounts taken off of orders. -# - name: total_abandoned_checkout_discount_amount -# description: Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders. -# - name: total_order_line_items_price -# description: Total monetary amount (in shop currency) of line items for orders that have used this discount. -# - name: total_order_shipping_cost -# description: Total shipping costs for orders that used this discount. -# - name: total_abandoned_checkout_shipping_price -# description: Total projected shipping costs for abandoned checkouts that applied this discount first. -# - name: total_order_refund_amount -# description: Total refunded amount (in shop currency) for orders that used this discount code. -# - name: count_customers -# description: Count of distinct customers who placed orders using this discount. -# - name: count_customer_emails -# description: Count of distinct customer emails who placed orders using this discount. -# - name: avg_order_discount_amount -# description: Average amount (in shop currency) of discount taken off orders. -# - name: source_relation -# description: "{{ doc('source_relation') }}" -# - name: count_orders -# description: Count of orders in which this discount code was applied. -# - name: count_abandoned_checkouts -# description: Count of abandoned checkouts in which this discount code was applied. -# - name: count_abandoned_checkout_customers -# description: Distinct count of customers who applied this discount in a checkout that they abandoned. -# - name: count_abandoned_checkout_customer_emails -# description: Distinct count of customer emails who applied this discount in a checkout that they abandoned. + - name: shopify_gql__discounts + description: > + Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts. + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - code + - source_relation + config: + severity: warn # best practice for codes to be unique + columns: + - name: discounts_unique_key + description: Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'. + tests: + - unique + - not_null + - name: code + description: The case-insensitive discount code that customers use at checkout. + - name: discount_code_id + description: The ID for the discount code. + tests: + - not_null + - name: discount_type + description: The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app'). + - name: applies_once_per_customer + description: Whether the discount can be used only once per customer. + - name: usage_count + description: Number of times the discount has been used (asynchronously updated). + - name: codes_count + description: Number of unique redeem codes associated with the discount. + - name: codes_precision + description: Indicates whether `codes_count` is exact or estimated. + - name: combines_with_order_discounts + description: Whether this discount can be combined with order-level discounts. + - name: combines_with_product_discounts + description: Whether this discount can be combined with product-level discounts. + - name: combines_with_shipping_discounts + description: Whether this discount can be combined with shipping-level discounts. + - name: created_at + description: Timestamp when the discount was created. + - name: customer_selection_all_customers + description: Whether the discount is available to all customers. + - name: ends_at + description: Timestamp when the discount ends or expires. + - name: starts_at + description: Timestamp when the discount becomes active. + - name: status + description: Current status of the discount (e.g. 'active', 'expired', 'scheduled'). + - name: title + description: The discount’s display name in the Shopify admin and to customers. + - name: total_sales_amount + description: The total sales amount that resulted from the usage of this discount. + - name: total_sales_currency_code + description: The currency code associated with `total_sales_amount`. + - name: updated_at + description: Timestamp when the discount was last updated. + - name: usage_limit + description: The total number of times the discount code can be used. + - name: allocation_method + description: > + The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items). + - name: target_selection + description: Indicates whether the discount applies to 'all' or 'entitled' items. + - name: target_type + description: The type of target this discount applies to (e.g., `line_item` or `shipping_line`). + - name: value + description: Numeric value of the discount (e.g., percentage or fixed amount). + - name: value_type + description: How the discount value is interpreted (e.g., 'percentage', 'fixed_amount'). + - name: value_currency_code + description: The three-letter currency code for the discount that represents a world currency used in a store. + - name: value_percentage + description: > + The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount) + - name: total_order_discount_amount + description: Total monetary amount (in shop currency) of discounts taken off of orders. + - name: total_abandoned_checkout_discount_amount + description: Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders. + - name: total_order_line_items_price + description: Total monetary amount (in shop currency) of line items for orders that have used this discount. + - name: total_order_shipping_cost + description: Total shipping costs for orders that used this discount. + - name: total_order_refund_amount + description: Total refunded amount (in shop currency) for orders that used this discount code. + - name: count_customers + description: Count of distinct customers who placed orders using this discount. + - name: count_customer_emails + description: Count of distinct customer emails who placed orders using this discount. + - name: avg_order_discount_amount + description: Average amount (in shop currency) of discount taken off orders. + - name: source_relation + description: "{{ doc('source_relation') }}" + - name: count_orders + description: Count of orders in which this discount code was applied. + - name: count_abandoned_checkouts + description: Count of abandoned checkouts in which this discount code was applied. + - name: count_abandoned_checkout_customers + description: Distinct count of customers who applied this discount in a checkout that they abandoned. + - name: count_abandoned_checkout_customer_emails + description: Distinct count of customer emails who applied this discount in a checkout that they abandoned. -# - name: shopify_gql__daily_shop -# description: > -# Each record represents a day in your Shop, enriched with a suite of metrics. -# columns: -# - name: date_day -# description: Day for which the shop activity is being measured. -# - name: shop_id -# description: The ID for the shop. A 64-bit unsigned integer. -# tests: -# - not_null -# - name: name -# description: The name of the shop. -# - name: domain -# description: The shop's domain. -# - name: is_deleted -# description: "{{ doc('_fivetran_deleted') }}" -# - name: currency -# description: The three-letter code (ISO 4217 format) for the shop's default currency. -# - name: enabled_presentment_currencies -# description: An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin. -# - name: iana_timezone -# description: The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones). -# - name: created_at -# description: The date and time (ISO 8601) when the shop was created. -# - name: count_orders -# description: Count of the distinct orders placed on this day. -# - name: count_line_items -# description: Count of the line items included in orders placed on this day. -# - name: count_customers -# description: Count of distinct customers who placed an order on this day. -# - name: count_customer_emails -# description: Count of distinct customer email addresses who placed an order on this day. -# - name: order_adjusted_total -# description: > -# Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: -# total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax -# The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange). -# - name: avg_order_value -# description: Average adjusted total per order placed on this day (in shop currency). -# - name: shipping_cost -# description: The shipping cost of the orders placed on this day (in shop currency). -# - name: order_adjustment_amount -# description: Total adjustment amount (in shop currency) applied to the orders placed on this day. -# - name: order_adjustment_tax_amount -# description: Total tax applied to adjustments (in shop currency) on the orders placed on this day. -# - name: refund_subtotal -# description: Total refund amount applied to the orders placed on this day. -# - name: refund_total_tax -# description: Total tax applied to the refund on the orders placed on this day (in shop currency). -# - name: total_discounts -# description: The total amount of the discount allocated to this day's orders in the shop's currency. -# - name: shipping_discount_amount -# description: The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day. -# - name: percentage_calc_discount_amount -# description: The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day. -# - name: fixed_amount_discount_amount -# description: The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day. -# - name: count_discount_codes_applied -# description: Distinct discount codes applied by customers on orders for this day. -# - name: count_locations_ordered_from -# description: Distinct locations with orders placed against them on this day. -# - name: count_orders_with_discounts -# description: Count of orders in which a discount was applied. -# - name: count_orders_with_refunds -# description: Count of orders in which there was a refund. -# - name: first_order_timestamp -# description: Timestamp of the first order of the day for the shop. -# - name: last_order_timestamp -# description: Timestamp of the last order of the day for the shop. -# - name: quantity_sold -# description: Total quantity sold from the inventory level. Includes refunds. -# - name: quantity_refunded -# description: The quantity of goods ORDERED on this day that have been refunded. -# - name: quantity_net -# description: Net quantity sold from this shop on this day. Excludes refunds. -# - name: count_variants_sold -# description: Distinct product variants sold on this day (includes refunds). -# - name: count_products_sold -# description: Distinct products sold on this day (includes refunds). -# - name: quantity_gift_cards_sold -# description: Quantity of gift cards sold on this day. -# - name: quantity_requiring_shipping -# description: Quantity of goods sold on this day that require shipping. -# - name: count_abandoned_checkouts -# description: Count of abandoned checkouts on this day. -# - name: count_customers_abandoned_checkout -# description: Count of distinct customers who abandoned checkouts on this day. -# - name: count_customer_emails_abandoned_checkout -# description: Count of distinct customer emails who abandoned checkouts on this day. -# - name: count_fulfillment_attempted_delivery -# description: Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed. -# - name: count_fulfillment_delivered -# description: Count of successful distinct fulfillments successfully delivered on this day. -# - name: count_fulfillment_failure -# description: Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled. -# - name: count_fulfillment_in_transit -# description: Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination. -# - name: count_fulfillment_out_for_delivery -# description: Count of distinct fulfillments being delivered to their final destination. -# - name: count_fulfillment_ready_for_pickup -# description: Count of distinct fulfillments ready for pickup at a shipping depot. -# - name: count_fulfillment_picked_up -# description: Count of distinct fulfillments successfully picked up on this day. -# - name: count_fulfillment_label_printed -# description: Count of distinct fulfillments for which a purchased shipping label has been printed on this day. -# - name: count_fulfillment_label_purchased -# description: Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day. -# - name: count_fulfillment_confirmed -# description: Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment. -# - name: count_fulfillment_delayed -# description: Count of delayed distinct fulfillments. -# - name: avg_line_item_count -# description: Average line item count for orders placed on this day. -# - name: avg_discount -# description: Average total discount placed on orders on this day (in shop currency). -# - name: avg_shipping_discount_amount -# description: Average discount amount (in shop currency) allocated toward shipping on orders placed on this day. -# - name: avg_percentage_calc_discount_amount -# description: Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day. -# - name: avg_fixed_amount_discount_amount -# description: Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day. -# - name: avg_quantity_sold -# description: Average quantity sold per order on this day. Includes refunds. (in shop currency) -# - name: avg_quantity_net -# description: Average net quantity sold per order on this day. Excludes refunds. (in shop currency) -# - name: source_relation -# description: "{{ doc('source_relation') }}" + - name: shopify_gql__daily_shop + description: > + Each record represents a day in your Shop, enriched with a suite of metrics. + columns: + - name: date_day + description: Day for which the shop activity is being measured. + - name: shop_id + description: The ID for the shop. A 64-bit unsigned integer. + tests: + - not_null + - name: name + description: The name of the shop. + - name: domain + description: The shop's domain. + - name: is_deleted + description: "{{ doc('_fivetran_deleted') }}" + - name: currency + description: The three-letter code (ISO 4217 format) for the shop's default currency. + - name: enabled_presentment_currencies + description: An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin. + - name: iana_timezone + description: The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones). + - name: created_at + description: The date and time (ISO 8601) when the shop was created. + - name: count_orders + description: Count of the distinct orders placed on this day. + - name: count_line_items + description: Count of the line items included in orders placed on this day. + - name: count_customers + description: Count of distinct customers who placed an order on this day. + - name: count_customer_emails + description: Count of distinct customer email addresses who placed an order on this day. + - name: order_adjusted_total + description: > + Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: + total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax + The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange). + - name: avg_order_value + description: Average adjusted total per order placed on this day (in shop currency). + - name: shipping_cost + description: The shipping cost of the orders placed on this day (in shop currency). + - name: order_adjustment_amount + description: Total adjustment amount (in shop currency) applied to the orders placed on this day. + - name: order_adjustment_tax_amount + description: Total tax applied to adjustments (in shop currency) on the orders placed on this day. + - name: refund_subtotal + description: Total refund amount applied to the orders placed on this day. + - name: refund_total_tax + description: Total tax applied to the refund on the orders placed on this day (in shop currency). + - name: total_discounts + description: The total amount of the discount allocated to this day's orders in the shop's currency. + - name: shipping_discount_amount + description: The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day. + - name: percentage_calc_discount_amount + description: The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day. + - name: fixed_amount_discount_amount + description: The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day. + - name: count_discount_codes_applied + description: Distinct discount codes applied by customers on orders for this day. + - name: count_locations_ordered_from + description: Distinct locations with orders placed against them on this day. + - name: count_orders_with_discounts + description: Count of orders in which a discount was applied. + - name: count_orders_with_refunds + description: Count of orders in which there was a refund. + - name: first_order_timestamp + description: Timestamp of the first order of the day for the shop. + - name: last_order_timestamp + description: Timestamp of the last order of the day for the shop. + - name: quantity_sold + description: Total quantity sold from the inventory level. Includes refunds. + - name: quantity_refunded + description: The quantity of goods ORDERED on this day that have been refunded. + - name: quantity_net + description: Net quantity sold from this shop on this day. Excludes refunds. + - name: count_variants_sold + description: Distinct product variants sold on this day (includes refunds). + - name: count_products_sold + description: Distinct products sold on this day (includes refunds). + - name: quantity_gift_cards_sold + description: Quantity of gift cards sold on this day. + - name: quantity_requiring_shipping + description: Quantity of goods sold on this day that require shipping. + - name: count_abandoned_checkouts + description: Count of abandoned checkouts on this day. + - name: count_customers_abandoned_checkout + description: Count of distinct customers who abandoned checkouts on this day. + - name: count_customer_emails_abandoned_checkout + description: Count of distinct customer emails who abandoned checkouts on this day. + - name: count_fulfillment_attempted_delivery + description: Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed. + - name: count_fulfillment_delivered + description: Count of successful distinct fulfillments successfully delivered on this day. + - name: count_fulfillment_failure + description: Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled. + - name: count_fulfillment_in_transit + description: Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination. + - name: count_fulfillment_out_for_delivery + description: Count of distinct fulfillments being delivered to their final destination. + - name: count_fulfillment_ready_for_pickup + description: Count of distinct fulfillments ready for pickup at a shipping depot. + - name: count_fulfillment_picked_up + description: Count of distinct fulfillments successfully picked up on this day. + - name: count_fulfillment_label_printed + description: Count of distinct fulfillments for which a purchased shipping label has been printed on this day. + - name: count_fulfillment_label_purchased + description: Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day. + - name: count_fulfillment_confirmed + description: Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment. + - name: count_fulfillment_delayed + description: Count of delayed distinct fulfillments. + - name: avg_line_item_count + description: Average line item count for orders placed on this day. + - name: avg_discount + description: Average total discount placed on orders on this day (in shop currency). + - name: avg_shipping_discount_amount + description: Average discount amount (in shop currency) allocated toward shipping on orders placed on this day. + - name: avg_percentage_calc_discount_amount + description: Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day. + - name: avg_fixed_amount_discount_amount + description: Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day. + - name: avg_quantity_sold + description: Average quantity sold per order on this day. Includes refunds. (in shop currency) + - name: avg_quantity_net + description: Average net quantity sold per order on this day. Excludes refunds. (in shop currency) + - name: source_relation + description: "{{ doc('source_relation') }}" diff --git a/packages.yml b/packages.yml index b3030e8e..6b52325c 100644 --- a/packages.yml +++ b/packages.yml @@ -1,6 +1,6 @@ packages: # - package: fivetran/shopify_source -# version: [">=0.18.0", "<0.19.0"] +# version: [">=0.19.0", "<0.20.0"] # - local: ../ECommerce/Shopify/dbt_shopify_source - git: https://github.com/fivetran/dbt_shopify_source.git - revision: update/graphql \ No newline at end of file + revision: update/graphql-jamie \ No newline at end of file From 5f7f19c8eb3ee69907cbd18794151950f7557332 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Thu, 24 Jul 2025 09:18:48 -0400 Subject: [PATCH 10/34] fix fanout in orders --- CHANGELOG.md | 13 +- .../base/int_shopify_gql__fulfillment.sql | 72 ----------- ...opify_gql__inventory_level__aggregates.sql | 2 +- ...ify_gql__order__fulfillment_aggregates.sql | 118 ++++++++++++++++++ models/graphql/shopify_gql__orders.sql | 18 +-- packages.yml | 2 +- 6 files changed, 136 insertions(+), 89 deletions(-) delete mode 100644 models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql create mode 100644 models/graphql/intermediate/int_shopify_gql__order__fulfillment_aggregates.sql diff --git a/CHANGELOG.md b/CHANGELOG.md index 5933b643..3ccf6939 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,19 @@ # dbt_shopify v0.20.0 -TODO +[PR #113](https://github.com/fivetran/dbt_shopify/pull/113) introduces the following updates: ## Feature Update: GraphQL API Support -[Shopify](https://shopify.dev/docs/apps/build/graphql) has deprecated the REST Admin API in favor of the GraphQL API. This release supports compatibility with GraphQL-based Fivetran Shopify connections. +In INSERT_DATE, Fivetran released a new version of the Shopify connector that leverages Shopify's newer [GraphQL](https://shopify.dev/docs/apps/build/graphql) API instead of the REST API, as Shopify deprecated the REST API in October 2024. The GraphQL and REST API-based schemas are slightly different, but this package is designed to run for either or, not both. It will do so based on the value of the `shopify_api` variable. + +By default, `shopify_api` is set to `rest` and will run the `shopify__*` models in the [rest](https://github.com/fivetran/dbt_shopify/tree/main/models/rest) folder. If you would like to run the package on a GraphQL-based schema, adjust `shopify_api` accordingly. This will run the `shopify_gql__*` models in the [graphql](https://github.com/fivetran/dbt_shopify/tree/main/models/graphql) folder: + +```yml +vars: + shopify_api: graphql # By default = rest. Must be lowercase +``` + +This variable is dynamically configured for you in Fivetran Quickstart based on your Shopify connection details. # dbt_shopify v0.19.0 diff --git a/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql b/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql deleted file mode 100644 index 9b8f8f57..00000000 --- a/models/graphql/intermediate/base/int_shopify_gql__fulfillment.sql +++ /dev/null @@ -1,72 +0,0 @@ -{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} - -with fulfillment as ( - - select * - from {{ var('shopify_gql_fulfillment') }} -) - -agg_fulfillment_services as ( - - select - fulfillment_id, - source_relation, - {{ fivetran_utils.string_agg("distinct cast(service as " ~ dbt.type_string() ~ ")", "', '") }} as fulfillment_services - from fulfillment - group by fulfillment_id, source_relation -), - -fulfillment_prep as ( - - select - fulfillment.*, - agg_fulfillment_services.fulfillment_services - from fulfillment - left join agg_fulfillment_services - on fulfillment.fulfillment_id = agg_fulfillment_services.fulfillment_id - and fulfillment.source_relation = agg_fulfillment_services.source_relation -) - -{% if var('shopify_gql_using_fulfillment_tracking_info', False) %} -, fulfillment_tracking_info as ( - - select * - from {{ var('shopify_gql_fulfillment_tracking_info') }} -), - -agg_fulfillment_tracking_info as ( - - select - fulfillment_id, - source_relation, - {{ fivetran_utils.string_agg("distinct cast(tracking_number as " ~ dbt.type_string() ~ ")", "', '") }} as tracking_numbers, - {{ fivetran_utils.string_agg("distinct cast(tracking_url as " ~ dbt.type_string() ~ ")", "', '") }} as tracking_urls, - {{ fivetran_utils.string_agg("distinct cast(tracking_company as " ~ dbt.type_string() ~ ")", "', '") }} as tracking_companies - from fulfillment_tracking_info - group by fulfillment_id, source_relation -), - -joined as ( - - select - fulfillment_prep.*, - agg_fulfillment_tracking_info.tracking_numbers, - agg_fulfillment_tracking_info.tracking_urls, - agg_fulfillment_tracking_info.tracking_companies - from fulfillment_prep - left join agg_fulfillment_tracking_info - on fulfillment_prep.fulfillment_id = agg_fulfillment_tracking_info.fulfillment_id - and fulfillment_prep.source_relation = agg_fulfillment_tracking_info.source_relation -) - -select * -from joined -{% else %} - -select - fulfillment_prep.*, - cast(null as {{ dbt.type_string() }}) as tracking_numbers, - cast(null as {{ dbt.type_string() }}) as tracking_urls, - cast(null as {{ dbt.type_string() }}) as tracking_companies -from fulfillment_prep -{% endif %} \ No newline at end of file diff --git a/models/graphql/intermediate/int_shopify_gql__inventory_level__aggregates.sql b/models/graphql/intermediate/int_shopify_gql__inventory_level__aggregates.sql index 7c19e5ac..45161333 100644 --- a/models/graphql/intermediate/int_shopify_gql__inventory_level__aggregates.sql +++ b/models/graphql/intermediate/int_shopify_gql__inventory_level__aggregates.sql @@ -9,7 +9,7 @@ with order_lines as ( fulfillment as ( select * - from {{ ref('int_shopify_gql__fulfillment') }} + from {{ var('shopify_gql_fulfillment') }} ), orders as ( diff --git a/models/graphql/intermediate/int_shopify_gql__order__fulfillment_aggregates.sql b/models/graphql/intermediate/int_shopify_gql__order__fulfillment_aggregates.sql new file mode 100644 index 00000000..50c43fe2 --- /dev/null +++ b/models/graphql/intermediate/int_shopify_gql__order__fulfillment_aggregates.sql @@ -0,0 +1,118 @@ +{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} + +with fulfillment as ( + + select * + from {{ var('shopify_gql_fulfillment') }} +), + +count_fulfillments as ( + -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query + select + order_id, + source_relation, + count(distinct fulfillment_id) as number_of_fulfillments + + from fulfillment + group by 1,2 +), + +{# agg_fulfillment_services as ( + + select + order_id, + source_relation, + {{ fivetran_utils.string_agg("distinct cast(service as " ~ dbt.type_string() ~ ")", "', '") }} as fulfillment_services + from fulfillment + group by fulfillment_id, source_relation +), + +fulfillment_prep as ( + + select + fulfillment.*, + agg_fulfillment_services.fulfillment_services + from fulfillment + left join agg_fulfillment_services + on fulfillment.fulfillment_id = agg_fulfillment_services.fulfillment_id + and fulfillment.source_relation = agg_fulfillment_services.source_relation +) #} + +{% if var('shopify_gql_using_fulfillment_tracking_info', False) %} +fulfillment_tracking_info as ( + + select * + from {{ var('shopify_gql_fulfillment_tracking_info') }} +), + +joined as ( + + select + fulfillment.order_id, + fulfillment.source_relation, + {{ fivetran_utils.string_agg("distinct cast(fulfillment_tracking_info.tracking_number as " ~ dbt.type_string() ~ ")", "', '") }} as tracking_numbers, + {{ fivetran_utils.string_agg("distinct cast(fulfillment_tracking_info.tracking_url as " ~ dbt.type_string() ~ ")", "', '") }} as tracking_urls, + {{ fivetran_utils.string_agg("distinct cast(fulfillment_tracking_info.tracking_company as " ~ dbt.type_string() ~ ")", "', '") }} as tracking_companies, + {{ fivetran_utils.string_agg("distinct cast(fulfillment.service as " ~ dbt.type_string() ~ ")", "', '") }} as fulfillment_services + from fulfillment + left join fulfillment_tracking_info + on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id + and fulfillment.source_relation = fulfillment_tracking_info.source_relation + group by 1,2 +), + +final as ( + + select + joined.order_id, + joined.source_relation, + joined.tracking_numbers, + joined.tracking_urls, + joined.tracking_companies, + joined.fulfillment_services, + count_fulfillments.number_of_fulfillments + from joined + left join count_fulfillments + on joined.order_id = count_fulfillments.order_id + and joined.source_relation = count_fulfillments.source_relation +) + +{# joined as ( + + select + fulfillment_prep.*, + agg_fulfillment_tracking_info.tracking_numbers, + agg_fulfillment_tracking_info.tracking_urls, + agg_fulfillment_tracking_info.tracking_companies + from fulfillment_prep + left join agg_fulfillment_tracking_info + on fulfillment_prep.fulfillment_id = agg_fulfillment_tracking_info.fulfillment_id + and fulfillment_prep.source_relation = agg_fulfillment_tracking_info.source_relation +) +select * +from joined + +#} + +{% else %} +final as ( + + select + fulfillment.order_id, + fulfillment.source_relation, + count_fulfillments.number_of_fulfillments, + max(cast(null as {{ dbt.type_string() }})) as tracking_numbers, + max(cast(null as {{ dbt.type_string() }})) as tracking_urls, + max(cast(null as {{ dbt.type_string() }})) as tracking_companies, + {{ fivetran_utils.string_agg("distinct cast(fulfillment.service as " ~ dbt.type_string() ~ ")", "', '") }} as fulfillment_services + + from fulfillment + left join count_fulfillments + on fulfillment.order_id = count_fulfillments.order_id + and fulfillment.source_relation = count_fulfillments.source_relation + group by 1,2,3 +) +{% endif %} + +select * +from final \ No newline at end of file diff --git a/models/graphql/shopify_gql__orders.sql b/models/graphql/shopify_gql__orders.sql index 3fb4e704..bacfc74e 100644 --- a/models/graphql/shopify_gql__orders.sql +++ b/models/graphql/shopify_gql__orders.sql @@ -12,6 +12,11 @@ with orders as ( select * from {{ ref('shopify_gql__orders__order_line_aggregates') }} +), fulfillments as ( + + select * + from {{ ref('int_shopify_gql__order__fulfillment_aggregates') }} + ), order_adjustments as ( select * @@ -68,19 +73,6 @@ with orders as ( from {{ var('shopify_gql_order_tag') }} group by 1,2 -), fulfillments as ( - - select - order_id, - source_relation, - tracking_companies, - tracking_numbers, - fulfillment_services, - count(distinct fulfillment_id) as number_of_fulfillments - - from {{ ref('int_shopify_gql__fulfillment') }} - {{ dbt_utils.group_by(n=5) }} - ), joined as ( select diff --git a/packages.yml b/packages.yml index 6b52325c..f677f20c 100644 --- a/packages.yml +++ b/packages.yml @@ -3,4 +3,4 @@ packages: # version: [">=0.19.0", "<0.20.0"] # - local: ../ECommerce/Shopify/dbt_shopify_source - git: https://github.com/fivetran/dbt_shopify_source.git - revision: update/graphql-jamie \ No newline at end of file + revision: update/graphql \ No newline at end of file From 26a8563ccf6e39029b38f54e1f67df9e4dffff90 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Thu, 24 Jul 2025 09:19:28 -0400 Subject: [PATCH 11/34] fix fanout in orders --- ...ify_gql__order__fulfillment_aggregates.sql | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/models/graphql/intermediate/int_shopify_gql__order__fulfillment_aggregates.sql b/models/graphql/intermediate/int_shopify_gql__order__fulfillment_aggregates.sql index 50c43fe2..f4ac2ebb 100644 --- a/models/graphql/intermediate/int_shopify_gql__order__fulfillment_aggregates.sql +++ b/models/graphql/intermediate/int_shopify_gql__order__fulfillment_aggregates.sql @@ -17,27 +17,6 @@ count_fulfillments as ( group by 1,2 ), -{# agg_fulfillment_services as ( - - select - order_id, - source_relation, - {{ fivetran_utils.string_agg("distinct cast(service as " ~ dbt.type_string() ~ ")", "', '") }} as fulfillment_services - from fulfillment - group by fulfillment_id, source_relation -), - -fulfillment_prep as ( - - select - fulfillment.*, - agg_fulfillment_services.fulfillment_services - from fulfillment - left join agg_fulfillment_services - on fulfillment.fulfillment_id = agg_fulfillment_services.fulfillment_id - and fulfillment.source_relation = agg_fulfillment_services.source_relation -) #} - {% if var('shopify_gql_using_fulfillment_tracking_info', False) %} fulfillment_tracking_info as ( @@ -77,23 +56,6 @@ final as ( and joined.source_relation = count_fulfillments.source_relation ) -{# joined as ( - - select - fulfillment_prep.*, - agg_fulfillment_tracking_info.tracking_numbers, - agg_fulfillment_tracking_info.tracking_urls, - agg_fulfillment_tracking_info.tracking_companies - from fulfillment_prep - left join agg_fulfillment_tracking_info - on fulfillment_prep.fulfillment_id = agg_fulfillment_tracking_info.fulfillment_id - and fulfillment_prep.source_relation = agg_fulfillment_tracking_info.source_relation -) -select * -from joined - -#} - {% else %} final as ( From 9077117dfa508e0432ca31d7a21a88758aac9fe6 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Thu, 24 Jul 2025 10:06:49 -0400 Subject: [PATCH 12/34] fix fulfillment seed --- integration_tests/seeds/shopify_gql_fulfillment_data.csv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration_tests/seeds/shopify_gql_fulfillment_data.csv b/integration_tests/seeds/shopify_gql_fulfillment_data.csv index 928ce475..bc0b3c95 100644 --- a/integration_tests/seeds/shopify_gql_fulfillment_data.csv +++ b/integration_tests/seeds/shopify_gql_fulfillment_data.csv @@ -2,10 +2,10 @@ _fivetran_synced,created_at,display_status,id,location_id,name,order_id,service_ 2025-07-18 10:10:00,2025-07-17 08:00:00,bea81c1795a612d8fc3a232b156467d0,6001,7001,bea81c1795a612d8fc3a232b156467d1,8001,bea81c1795a612d8fc3a232b156467d2,SUCCESS,2,2025-07-18 10:10:00 2025-07-18 10:11:00,2025-07-16 07:30:00,bea81c1795a612d8fc3a232b156467d3,6002,7002,bea81c1795a612d8fc3a232b156467d4,8002,bea81c1795a612d8fc3a232b156467d5,OPEN,1,2025-07-18 10:11:00 2025-07-18 10:12:00,2025-07-15 06:15:00,bea81c1795a612d8fc3a232b156467d6,6003,7003,bea81c1795a612d8fc3a232b156467d7,8003,bea81c1795a612d8fc3a232b156467d8,CANCELLED,3,2025-07-18 10:12:00 -2025-07-18 10:13:00,2025-07-14 05:45:00,bea81c1795a612d8fc3a232b156467d9,6004,7004,bea81c1795a612d8fc3a232b156467da,8004,bea81c1795a612d8fc3a232b156467db,DELIVERED,2,2025-07-18 10:13:00 +2025-07-18 10:13:00,2025-07-14 05:45:00,bea81c1795a612d8fc3a232b156467d9,6004,7004,bea81c1795a612d8fc3a232b156467da,8004,bea81c1795a612d8fc3a232b156467db,ERROR,2,2025-07-18 10:13:00 2025-07-18 10:14:00,2025-07-13 04:30:00,bea81c1795a612d8fc3a232b156467dc,6005,7005,bea81c1795a612d8fc3a232b156467dd,8005,bea81c1795a612d8fc3a232b156467de,SUCCESS,5,2025-07-18 10:14:00 2025-07-18 10:15:00,2025-07-12 03:20:00,bea81c1795a612d8fc3a232b156467df,6006,7006,bea81c1795a612d8fc3a232b156467e0,8006,bea81c1795a612d8fc3a232b156467e1,OPEN,1,2025-07-18 10:15:00 2025-07-18 10:16:00,2025-07-11 02:10:00,bea81c1795a612d8fc3a232b156467e2,6007,7007,bea81c1795a612d8fc3a232b156467e3,8007,bea81c1795a612d8fc3a232b156467e4,SUCCESS,4,2025-07-18 10:16:00 2025-07-18 10:17:00,2025-07-10 01:00:00,bea81c1795a612d8fc3a232b156467e5,6008,7008,bea81c1795a612d8fc3a232b156467e6,8008,bea81c1795a612d8fc3a232b156467e7,CANCELLED,2,2025-07-18 10:17:00 -2025-07-18 10:18:00,2025-07-09 00:30:00,bea81c1795a612d8fc3a232b156467e8,6009,7009,bea81c1795a612d8fc3a232b156467e9,8009,bea81c1795a612d8fc3a232b156467ea,DELIVERED,3,2025-07-18 10:18:00 +2025-07-18 10:18:00,2025-07-09 00:30:00,bea81c1795a612d8fc3a232b156467e8,6009,7009,bea81c1795a612d8fc3a232b156467e9,8009,bea81c1795a612d8fc3a232b156467ea,FAILURE,3,2025-07-18 10:18:00 2025-07-18 10:19:00,2025-07-08 00:00:00,bea81c1795a612d8fc3a232b156467eb,6010,7010,bea81c1795a612d8fc3a232b156467ec,8010,bea81c1795a612d8fc3a232b156467ed,OPEN,2,2025-07-18 10:19:00 \ No newline at end of file From def3aa0296a04bdb3158cd0c126d0c755a6d1671 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Fri, 1 Aug 2025 16:23:15 -0400 Subject: [PATCH 13/34] joe feedback --- .quickstart/quickstart.yml | 20 ++++++++++++ CHANGELOG.md | 8 +++-- README.md | 32 +++++++++++-------- dbt_project.yml | 8 +++-- integration_tests/dbt_project.yml | 6 +++- .../shopify_gql_discount_application_data.csv | 22 ++++++------- .../shopify_gql_discount_code_basic_data.csv | 22 ++++++------- ...y_gql_discount_code_free_shipping_data.csv | 22 ++++++------- .../seeds/shopify_gql_order_data.csv | 20 ++++++------ .../seeds/shopify_gql_transaction_data.csv | 22 ++++++------- .../base/int_shopify_gql__collection.sql | 3 +- .../int_shopify_gql__order_adjustment.sql | 2 +- .../base/int_shopify_gql__order_line.sql | 12 ++++++- ...opify_gql__customers_order_aggregates.sql} | 2 +- .../int_shopify_gql__daily_fulfillment.sql | 5 ++- .../int_shopify_gql__daily_orders.sql | 2 +- ...nt_shopify_gql__discount_code_enriched.sql | 8 ++--- ...fy_gql__discounts_abandoned_checkouts.sql} | 7 ---- ...opify_gql__discounts_order_aggregates.sql} | 2 +- ..._shopify_gql__emails_order_aggregates.sql} | 2 +- ...opify_gql__inventory_level_aggregates.sql} | 2 +- ...ify_gql__order_fulfillment_aggregates.sql} | 0 ...hopify_gql__order_shipping_aggregates.sql} | 0 ...ify_gql__orders_order_line_aggregates.sql} | 2 +- ...int_shopify_gql__orders_order_refunds.sql} | 0 ...fy_gql__product_order_line_aggregates.sql} | 0 .../graphql/shopify_gql__customer_emails.sql | 8 ++--- models/graphql/shopify_gql__customers.sql | 8 ++--- models/graphql/shopify_gql__daily_shop.sql | 2 +- models/graphql/shopify_gql__discounts.sql | 6 ++-- .../graphql/shopify_gql__inventory_levels.sql | 17 ++-------- models/graphql/shopify_gql__order_lines.sql | 14 +------- models/graphql/shopify_gql__orders.sql | 15 ++------- models/graphql/shopify_gql__products.sql | 2 +- .../shopify_gql__line_item_enhanced.sql | 2 +- models/shopify_graphql.yml | 26 +++++++-------- packages.yml | 6 ++-- 37 files changed, 168 insertions(+), 169 deletions(-) rename models/graphql/intermediate/{shopify_gql__customers__order_aggregates.sql => int_shopify_gql__customers_order_aggregates.sql} (97%) rename models/graphql/intermediate/{int_shopify_gql__discounts__abandoned_checkouts.sql => int_shopify_gql__discounts_abandoned_checkouts.sql} (90%) rename models/graphql/intermediate/{int_shopify_gql__discounts__order_aggregates.sql => int_shopify_gql__discounts_order_aggregates.sql} (89%) rename models/graphql/intermediate/{int_shopify_gql__emails__order_aggregates.sql => int_shopify_gql__emails_order_aggregates.sql} (98%) rename models/graphql/intermediate/{int_shopify_gql__inventory_level__aggregates.sql => int_shopify_gql__inventory_level_aggregates.sql} (97%) rename models/graphql/intermediate/{int_shopify_gql__order__fulfillment_aggregates.sql => int_shopify_gql__order_fulfillment_aggregates.sql} (100%) rename models/graphql/intermediate/{int_shopify_gql__order__shipping_aggregates.sql => int_shopify_gql__order_shipping_aggregates.sql} (100%) rename models/graphql/intermediate/{shopify_gql__orders__order_line_aggregates.sql => int_shopify_gql__orders_order_line_aggregates.sql} (97%) rename models/graphql/intermediate/{shopify_gql__orders__order_refunds.sql => int_shopify_gql__orders_order_refunds.sql} (100%) rename models/graphql/intermediate/{int_shopify_gql__product__order_line_aggregates.sql => int_shopify_gql__product_order_line_aggregates.sql} (100%) diff --git a/.quickstart/quickstart.yml b/.quickstart/quickstart.yml index de80cb8e..ff3d727b 100644 --- a/.quickstart/quickstart.yml +++ b/.quickstart/quickstart.yml @@ -17,6 +17,26 @@ table_variables: shopify_using_product_variant_media: - product_variant_media + shopify_gql_using_abandoned_checkout: + - abandoned_checkout + - abandoned_checkout_discount_code + shopify_gql_using_customer_visit: + - customer_visit + shopify_gql_using_fulfillment_order_line_item: + - fulfillment_order_line_item + shopify_gql_using_metafield: + - metafield + shopify_gql_using_collection_rule: + - collection_rule + shopify_gql_using_discount_code_app: + - discount_code_app + shopify_gql_using_fulfillment_event: + - fulfillment_event + shopify_gql_using_fulfillment_tracking_info: + - fulfillment_tracking_info + shopify_gql_using_product_variant_media: + - product_variant_media + destination_configurations: databricks: dispatch: diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ccf6939..65390199 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,16 +4,20 @@ ## Feature Update: GraphQL API Support -In INSERT_DATE, Fivetran released a new version of the Shopify connector that leverages Shopify's newer [GraphQL](https://shopify.dev/docs/apps/build/graphql) API instead of the REST API, as Shopify deprecated the REST API in October 2024. The GraphQL and REST API-based schemas are slightly different, but this package is designed to run for either or, not both. It will do so based on the value of the `shopify_api` variable. +On INSERT_DATE, Fivetran released a new version of the Shopify connector that leverages Shopify's newer [GraphQL](https://shopify.dev/docs/apps/build/graphql) API instead of the REST API, as Shopify deprecated the REST API in October 2024. The GraphQL and REST API-based schemas are slightly different, but this package is designed to run for either or, not both. It will do so based on the value of the `shopify_api` variable. By default, `shopify_api` is set to `rest` and will run the `shopify__*` models in the [rest](https://github.com/fivetran/dbt_shopify/tree/main/models/rest) folder. If you would like to run the package on a GraphQL-based schema, adjust `shopify_api` accordingly. This will run the `shopify_gql__*` models in the [graphql](https://github.com/fivetran/dbt_shopify/tree/main/models/graphql) folder: +> This variable is dynamically configured for you in Fivetran Quickstart based on your Shopify connection details. + ```yml vars: shopify_api: graphql # By default = rest. Must be lowercase ``` -This variable is dynamically configured for you in Fivetran Quickstart based on your Shopify connection details. +Overall, the package aims for parity across the different API versions and aligns column names with their REST names, **if the fields are supported in GraphQL**. There will be a 1:1 relationship between REST API and GraphQL based end models, but please note that the following source tables are not present in GraphQL and will therefore not be included in any transformations: +- `ABANDONED_CHECKOUT_SHIPPING_LINE`: The absence of this table will result in no `shopify_gql__discounts.total_abandoned_checkout_shipping_price` field. +- `ORDER_URL_TAG`: The absence of this table will result in no `shopify_gql__orders.order_url_tags` field. # dbt_shopify v0.19.0 diff --git a/README.md b/README.md index a2e34de7..3064ceeb 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Curious what these tables can do? Check out example visualizations from the [sho

### Materialized Models -Each Quickstart transformation job run materializes 107 models if all components of this data model are enabled. This count includes all staging, intermediate, and final models materialized as `view`, `table`, or `incremental`. +Each Quickstart transformation job run materializes 107 models if all components of this data model are enabled and a REST API-based Shopify schema is being used. This count includes all staging, intermediate, and final models materialized as `view`, `table`, or `incremental`. ## How do I use the dbt package? @@ -58,6 +58,8 @@ Each Quickstart transformation job run materializes 107 models if all components ### Step 1: Prerequisites To use this dbt package, you must have either at least one Fivetran REST API-based Shopify connection or one Fivetran GraphQL-based Shopify connection syncing these respective tables to your destination: +> If any table is not present, the package will create an empty staging model to ensure the success of downstream transformations. This behavior can be circumvented for select tables (see [Step 5](https://github.com/fivetran/dbt_shopify?tab=readme-ov-file#step-5-disable-models-for-non-existent-sources)). + #### Shopify REST API - customer - order_line_refund @@ -170,16 +172,20 @@ dispatch: ``` ### Step 3: Define REST API or GraphQL API Source -In INSERT_DATE, Fivetran released a new version of the Shopify connector that leverages Shopify's newer [GraphQL](https://shopify.dev/docs/apps/build/graphql) API instead of the REST API, as Shopify deprecated the REST API in October 2024. The GraphQL and REST API-based schemas are slightly different, but this package is designed to run for either or, not both. It will do so based on the value of the `shopify_api` variable. +On INSERT_DATE, Fivetran released a new version of the Shopify connector that leverages Shopify's newer [GraphQL](https://shopify.dev/docs/apps/build/graphql) API instead of the REST API, as Shopify deprecated the REST API in October 2024. The GraphQL and REST API-based schemas are slightly different, but this package is designed to run for either or, not both. It will do so based on the value of the `shopify_api` variable. By default, `shopify_api` is set to `rest` and will run the `shopify__*` models in the [rest](https://github.com/fivetran/dbt_shopify/tree/main/models/rest) folder. If you would like to run the package on a GraphQL-based schema, adjust `shopify_api` accordingly. This will run the `shopify_gql__*` models in the [graphql](https://github.com/fivetran/dbt_shopify/tree/main/models/graphql) folder: +> This variable is dynamically configured for you in Fivetran Quickstart based on your Shopify connection details. + ```yml vars: shopify_api: graphql # By default = rest. Must be lowercase ``` -This variable is dynamically configured for you in Fivetran Quickstart based on your Shopify connection details. +Overall, the package aims for parity across the different API versions and aligns column names with their REST names, **if the fields are supported in GraphQL**. There will be a 1:1 relationship between REST API and GraphQL based end models, but please note that the following source tables are not present in GraphQL and will therefore not be included in any transformations: +- `ABANDONED_CHECKOUT_SHIPPING_LINE`: The absence of this table will result in no `shopify_gql__discounts.total_abandoned_checkout_shipping_price` field. +- `ORDER_URL_TAG`: The absence of this table will result in no `shopify_gql__orders.order_url_tags` field. ### Step 4: Define database and schema variables #### Single connection @@ -219,11 +225,11 @@ The package takes into consideration that not every Shopify connection may have # dbt_project.yml vars: - shopify_using_fulfillment_event: true # false by default. - shopify_using_metafield: false #true by default. - shopify_using_discount_code_app: true #false by default. - shopify_using_product_variant_media: true #false by default. - shopify_using_abandoned_checkout: false # true by default. Setting to false will disable `abandoned_checkout`, `abandoned_checkout_discount_code`, and `abandoned_checkout_shipping_line`. + shopify_using_abandoned_checkout: false # TRUE by default. Setting to false will disable `abandoned_checkout`, `abandoned_checkout_discount_code`, and `abandoned_checkout_shipping_line`. + shopify_using_metafield: false # TRUE by default. + shopify_using_discount_code_app: true # FALSE by default. + shopify_using_fulfillment_event: true # FALSE by default. + shopify_using_product_variant_media: true # FALSE by default. ``` #### GraphQL API @@ -235,15 +241,15 @@ The package takes into consideration that not every Shopify connection may have # dbt_project.yml vars: - shopify_gql_using_fulfillment_event: true # FALSE by default. - shopify_gql_using_metafield: false # TRUE by default. - shopify_gql_using_discount_code_app: true # FALSE by default. - shopify_gql_using_product_variant_media: true # FALSE by default. shopify_gql_using_abandoned_checkout: false # TRUE by default. Setting to false will disable `abandoned_checkout` and `abandoned_checkout_discount_code` - shopify_gql_using_collection_rule: true # FALSE by default. shopify_gql_using_customer_visit: false # TRUE by default shopify_gql_using_fulfillment_order_line_item: false # TRUE by default + shopify_gql_using_metafield: false # TRUE by default. + shopify_gql_using_collection_rule: true # FALSE by default. + shopify_gql_using_discount_code_app: true # FALSE by default. + shopify_gql_using_fulfillment_event: true # FALSE by default. shopify_gql_using_fulfillment_tracking_info: true # FALSE by default. + shopify_gql_using_product_variant_media: true # FALSE by default. ``` ### Step 6: Setting your timezone diff --git a/dbt_project.yml b/dbt_project.yml index 286478a6..b07d6649 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -13,10 +13,12 @@ models: +materialized: view # so we can use the dbt_utils.star macro graphql: intermediate: - +schema: _int_shopify_gql # just for dev - # +materialized: ephemeral + +materialized: ephemeral int_shopify_gql__customer_email_rollup: +materialized: view # so we can use the dbt_utils.star macro + base: + int_shopify_gql__customer: + +materialized: view # so we can use the dbt_utils.star macro vars: shopify: @@ -63,7 +65,7 @@ vars: shopify_order_discount_code: "{{ ref('stg_shopify__order_discount_code') }}" shopify_abandoned_checkout_shipping_line: "{{ ref('stg_shopify__abandoned_checkout_shipping_line') }}" shopify_fulfillment_event: "{{ ref('stg_shopify__fulfillment_event') }}" -# add stuff here + shopify_gql_customer: "{{ ref('stg_shopify_gql__customer') }}" shopify_gql_order: "{{ ref('stg_shopify_gql__order') }}" shopify_gql_order_line: "{{ ref('stg_shopify_gql__order_line') }}" diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index e2c66c63..fd2e67a2 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -14,7 +14,11 @@ vars: # shopify_using_all_metafields: true # shopify_using_discount_code_app: true # shopify_using_product_variant_media: true - + # shopify_gql_using_discount_code_app: true # FALSE by default. + # shopify_gql_using_fulfillment_event: true # FALSE by default. + # shopify_gql_using_fulfillment_tracking_info: true # FALSE by default. + # shopify_gql_using_product_variant_media: true # FALSE by default. + shopify_schema: shopify_integration_tests_17 shopify_api_override: rest diff --git a/integration_tests/seeds/shopify_gql_discount_application_data.csv b/integration_tests/seeds/shopify_gql_discount_application_data.csv index cf31af7d..0edc90db 100644 --- a/integration_tests/seeds/shopify_gql_discount_application_data.csv +++ b/integration_tests/seeds/shopify_gql_discount_application_data.csv @@ -1,11 +1,11 @@ -_fivetran_synced,allocation_method,index,order_id,target_selection,target_type,value_amount,value_currency_code,value_percentage -2025-07-18 10:00:00,bea81c1795a612d8fc3a232b156467bc,0,10001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,10.00,USD,15.0 -2025-07-18 10:01:00,bea81c1795a612d8fc3a232b156467bd,1,10002,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,5.00,USD,10.0 -2025-07-18 10:02:00,bea81c1795a612d8fc3a232b156467be,2,10003,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,20.00,USD,25.0 -2025-07-18 10:03:00,bea81c1795a612d8fc3a232b156467bf,0,10004,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467bf,15.00,USD,20.0 -2025-07-18 10:04:00,bea81c1795a612d8fc3a232b156467c0,1,10005,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c0,7.50,USD,12.5 -2025-07-18 10:05:00,bea81c1795a612d8fc3a232b156467c1,0,10006,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,9.00,USD,14.0 -2025-07-18 10:06:00,bea81c1795a612d8fc3a232b156467c2,2,10007,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2,12.00,USD,18.0 -2025-07-18 10:07:00,bea81c1795a612d8fc3a232b156467c3,1,10008,bea81c1795a612d8fc3a232b156467c3,bea81c1795a612d8fc3a232b156467c3,3.00,USD,5.0 -2025-07-18 10:08:00,bea81c1795a612d8fc3a232b156467c4,0,10009,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c4,8.25,USD,13.0 -2025-07-18 10:09:00,bea81c1795a612d8fc3a232b156467c5,2,10010,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5,11.00,USD,16.5 \ No newline at end of file +_fivetran_synced,allocation_method,index,order_id,target_selection,target_type,value_amount,value_currency_code,value_percentage,code +2025-07-18 10:00:00,bea81c1795a612d8fc3a232b156467bc,0,10001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,10.00,USD,15.0,bea81c1795a612d8fc3a232b156467d1 +2025-07-18 10:01:00,bea81c1795a612d8fc3a232b156467bd,1,10002,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,5.00,USD,10.0,bea81c1795a612d8fc3a232b156467d2 +2025-07-18 10:02:00,bea81c1795a612d8fc3a232b156467be,2,10003,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,20.00,USD,25.0,bea81c1795a612d8fc3a232b156467d3 +2025-07-18 10:03:00,bea81c1795a612d8fc3a232b156467bf,0,10004,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467bf,15.00,USD,20.0,bea81c1795a612d8fc3a232b156467d4 +2025-07-18 10:04:00,bea81c1795a612d8fc3a232b156467c0,1,10005,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c0,7.50,USD,12.5,bea81c1795a612d8fc3a232b156467d5 +2025-07-18 10:05:00,bea81c1795a612d8fc3a232b156467c1,0,10006,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,9.00,USD,14.0,bea81c1795a612d8fc3a232b156467d6 +2025-07-18 10:06:00,bea81c1795a612d8fc3a232b156467c2,2,10007,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2,12.00,USD,18.0,bea81c1795a612d8fc3a232b156467d7 +2025-07-18 10:07:00,bea81c1795a612d8fc3a232b156467c3,1,10008,bea81c1795a612d8fc3a232b156467c3,bea81c1795a612d8fc3a232b156467c3,3.00,USD,5.0,bea81c1795a612d8fc3a232b156467d8 +2025-07-18 10:08:00,bea81c1795a612d8fc3a232b156467c4,0,10009,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c4,8.25,USD,13.0,bea81c1795a612d8fc3a232b156467d9 +2025-07-18 10:09:00,bea81c1795a612d8fc3a232b156467c5,2,10010,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5,11.00,USD,16.5,bea81c1795a612d8fc3a232b156467da \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_discount_code_basic_data.csv b/integration_tests/seeds/shopify_gql_discount_code_basic_data.csv index f43dba91..d43a389f 100644 --- a/integration_tests/seeds/shopify_gql_discount_code_basic_data.csv +++ b/integration_tests/seeds/shopify_gql_discount_code_basic_data.csv @@ -1,11 +1,11 @@ -_fivetran_synced,id,status,created_at,updated_at,starts_at,ends_at,recurring_cycle_limit,applies_once_per_customer,async_usage_count,usage_limit,codes_count,codes_precision,combines_with_order_discounts,combines_with_product_discounts,combines_with_shipping_discounts,customer_selection_all_customers,total_sales_amount,total_sales_currency_code -2025-07-18 11:00:00,2001,ACTIVE,2025-07-01 08:00:00,2025-07-10 09:00:00,2025-07-01 00:00:00,2025-08-01 00:00:00,3,TRUE,5,100,2,EXACT,TRUE,TRUE,FALSE,TRUE,100.0,USD -2025-07-18 11:01:00,2002,ARCHIVED,2025-06-15 07:30:00,2025-07-05 08:30:00,2025-06-15 00:00:00,2025-07-15 00:00:00,1,FALSE,10,50,1,ROUND,FALSE,FALSE,FALSE,FALSE,50.0,USD -2025-07-18 11:02:00,2003,ACTIVE,2025-07-05 10:15:00,2025-07-12 11:20:00,2025-07-05 00:00:00,2025-09-01 00:00:00,5,TRUE,7,150,3,EXACT,TRUE,FALSE,TRUE,TRUE,150.0,USD -2025-07-18 11:03:00,2004,DELETED,2025-05-10 09:00:00,2025-06-01 10:00:00,2025-05-10 00:00:00,2025-06-30 00:00:00,2,FALSE,0,0,0,EXACT,FALSE,FALSE,FALSE,FALSE,0.0,USD -2025-07-18 11:04:00,2005,ACTIVE,2025-07-10 12:00:00,2025-07-15 13:00:00,2025-07-10 00:00:00,2025-08-10 00:00:00,4,TRUE,2,80,2,ROUND,TRUE,TRUE,TRUE,TRUE,80.0,USD -2025-07-18 11:05:00,2006,ARCHIVED,2025-06-01 08:00:00,2025-06-20 09:00:00,2025-06-01 00:00:00,2025-07-01 00:00:00,1,FALSE,15,120,1,EXACT,FALSE,FALSE,TRUE,FALSE,120.0,USD -2025-07-18 11:06:00,2007,ACTIVE,2025-07-12 10:30:00,2025-07-18 11:00:00,2025-07-12 00:00:00,2025-08-12 00:00:00,6,TRUE,3,60,1,EXACT,TRUE,FALSE,FALSE,TRUE,60.0,USD -2025-07-18 11:07:00,2008,DELETED,2025-04-20 07:45:00,2025-05-01 08:30:00,2025-04-20 00:00:00,2025-05-20 00:00:00,0,FALSE,0,0,0,ROUND,FALSE,FALSE,FALSE,FALSE,0.0,USD -2025-07-18 11:08:00,2009,ACTIVE,2025-07-15 09:00:00,2025-07-17 10:00:00,2025-07-15 00:00:00,2025-09-15 00:00:00,3,TRUE,6,90,2,EXACT,TRUE,TRUE,FALSE,TRUE,90.0,USD -2025-07-18 11:09:00,2010,ARCHIVED,2025-06-10 06:00:00,2025-07-01 07:00:00,2025-06-10 00:00:00,2025-07-31 00:00:00,2,FALSE,9,110,3,ROUND,FALSE,FALSE,TRUE,FALSE,110.0,USD \ No newline at end of file +_fivetran_synced,id,status,title,created_at,updated_at,starts_at,ends_at,recurring_cycle_limit,applies_once_per_customer,async_usage_count,usage_limit,codes_count,codes_precision,combines_with_order_discounts,combines_with_product_discounts,combines_with_shipping_discounts,customer_selection_all_customers,total_sales_amount,total_sales_currency_code +2025-07-18 11:00:00,2001,ACTIVE,bea81c1795a612d8fc3a232b156467aa,2025-07-01 08:00:00,2025-07-10 09:00:00,2025-07-01 00:00:00,2025-08-01 00:00:00,3,TRUE,5,100,2,EXACT,TRUE,TRUE,FALSE,TRUE,100.0,USD +2025-07-18 11:01:00,2002,ARCHIVED,bea81c1795a612d8fc3a232b156467ab,2025-06-15 07:30:00,2025-07-05 08:30:00,2025-06-15 00:00:00,2025-07-15 00:00:00,1,FALSE,10,50,1,ROUND,FALSE,FALSE,FALSE,FALSE,50.0,USD +2025-07-18 11:02:00,2003,ACTIVE,bea81c1795a612d8fc3a232b156467ac,2025-07-05 10:15:00,2025-07-12 11:20:00,2025-07-05 00:00:00,2025-09-01 00:00:00,5,TRUE,7,150,3,EXACT,TRUE,FALSE,TRUE,TRUE,150.0,USD +2025-07-18 11:03:00,2004,DELETED,bea81c1795a612d8fc3a232b156467ad,2025-05-10 09:00:00,2025-06-01 10:00:00,2025-05-10 00:00:00,2025-06-30 00:00:00,2,FALSE,0,0,0,EXACT,FALSE,FALSE,FALSE,FALSE,0.0,USD +2025-07-18 11:04:00,2005,ACTIVE,bea81c1795a612d8fc3a232b156467ae,2025-07-10 12:00:00,2025-07-15 13:00:00,2025-07-10 00:00:00,2025-08-10 00:00:00,4,TRUE,2,80,2,ROUND,TRUE,TRUE,TRUE,TRUE,80.0,USD +2025-07-18 11:05:00,2006,ARCHIVED,bea81c1795a612d8fc3a232b156467af,2025-06-01 08:00:00,2025-06-20 09:00:00,2025-06-01 00:00:00,2025-07-01 00:00:00,1,FALSE,15,120,1,EXACT,FALSE,FALSE,TRUE,FALSE,120.0,USD +2025-07-18 11:06:00,2007,ACTIVE,bea81c1795a612d8fc3a232b156467b0,2025-07-12 10:30:00,2025-07-18 11:00:00,2025-07-12 00:00:00,2025-08-12 00:00:00,6,TRUE,3,60,1,EXACT,TRUE,FALSE,FALSE,TRUE,60.0,USD +2025-07-18 11:07:00,2008,DELETED,bea81c1795a612d8fc3a232b156467b1,2025-04-20 07:45:00,2025-05-01 08:30:00,2025-04-20 00:00:00,2025-05-20 00:00:00,0,FALSE,0,0,0,ROUND,FALSE,FALSE,FALSE,FALSE,0.0,USD +2025-07-18 11:08:00,2009,ACTIVE,bea81c1795a612d8fc3a232b156467b2,2025-07-15 09:00:00,2025-07-17 10:00:00,2025-07-15 00:00:00,2025-09-15 00:00:00,3,TRUE,6,90,2,EXACT,TRUE,TRUE,FALSE,TRUE,90.0,USD +2025-07-18 11:09:00,2010,ARCHIVED,bea81c1795a612d8fc3a232b156467b3,2025-06-10 06:00:00,2025-07-01 07:00:00,2025-06-10 00:00:00,2025-07-31 00:00:00,2,FALSE,9,110,3,ROUND,FALSE,FALSE,TRUE,FALSE,110.0,USD \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_discount_code_free_shipping_data.csv b/integration_tests/seeds/shopify_gql_discount_code_free_shipping_data.csv index 6114e694..96eb4ad2 100644 --- a/integration_tests/seeds/shopify_gql_discount_code_free_shipping_data.csv +++ b/integration_tests/seeds/shopify_gql_discount_code_free_shipping_data.csv @@ -1,11 +1,11 @@ -_fivetran_synced,id,status,created_at,updated_at,starts_at,ends_at,recurring_cycle_limit,applies_once_per_customer,async_usage_count,usage_limit,codes_count,codes_precision,combines_with_order_discounts,combines_with_product_discounts,combines_with_shipping_discounts,customer_selection_all_customers,total_sales_amount,total_sales_currency_code -2025-07-18 11:00:00,2001,ACTIVE,2025-07-01 00:00:00,2025-07-10 00:00:00,2025-07-01 00:00:00,2025-08-01 00:00:00,1,TRUE,5,100,10,EXACT,TRUE,FALSE,TRUE,TRUE,150.00,USD -2025-07-18 11:00:00,2002,EXPIRED,2025-06-01 00:00:00,2025-07-01 00:00:00,2025-06-01 00:00:00,2025-07-01 00:00:00,2,FALSE,10,200,20,EXACT,FALSE,TRUE,FALSE,TRUE,300.00,USD -2025-07-18 11:00:00,2003,ACTIVE,2025-07-05 00:00:00,2025-07-15 00:00:00,2025-07-05 00:00:00,2025-08-05 00:00:00,3,TRUE,3,50,5,ROUND,TRUE,TRUE,TRUE,FALSE,75.00,USD -2025-07-18 11:00:00,2004,DISABLED,2025-06-15 00:00:00,2025-07-12 00:00:00,2025-06-15 00:00:00,2025-07-31 00:00:00,4,FALSE,7,150,15,EXACT,FALSE,FALSE,FALSE,TRUE,0.00,USD -2025-07-18 11:00:00,2005,ACTIVE,2025-07-10 00:00:00,2025-07-16 00:00:00,2025-07-10 00:00:00,2025-08-10 00:00:00,5,TRUE,8,300,30,EXACT,TRUE,TRUE,FALSE,FALSE,125.50,USD -2025-07-18 11:00:00,2006,EXPIRED,2025-05-01 00:00:00,2025-06-01 00:00:00,2025-05-01 00:00:00,2025-06-01 00:00:00,1,FALSE,2,100,10,ROUND,FALSE,FALSE,TRUE,TRUE,210.75,USD -2025-07-18 11:00:00,2007,ACTIVE,2025-07-11 00:00:00,2025-07-17 00:00:00,2025-07-11 00:00:00,2025-08-11 00:00:00,6,TRUE,1,30,3,EXACT,TRUE,FALSE,FALSE,TRUE,95.00,USD -2025-07-18 11:00:00,2008,DISABLED,2025-06-20 00:00:00,2025-07-10 00:00:00,2025-06-20 00:00:00,2025-07-20 00:00:00,2,FALSE,4,120,12,EXACT,FALSE,FALSE,FALSE,FALSE,60.00,USD -2025-07-18 11:00:00,2009,ACTIVE,2025-07-15 00:00:00,2025-07-17 00:00:00,2025-07-15 00:00:00,2025-08-15 00:00:00,7,TRUE,9,500,50,ROUND,TRUE,TRUE,TRUE,TRUE,180.99,USD -2025-07-18 11:00:00,2010,EXPIRED,2025-04-01 00:00:00,2025-05-01 00:00:00,2025-04-01 00:00:00,2025-05-01 00:00:00,1,FALSE,0,75,7,EXACT,FALSE,FALSE,TRUE,FALSE,45.25,USD \ No newline at end of file +_fivetran_synced,id,status,title,created_at,updated_at,starts_at,ends_at,recurring_cycle_limit,applies_once_per_customer,async_usage_count,usage_limit,codes_count,codes_precision,combines_with_order_discounts,combines_with_product_discounts,combines_with_shipping_discounts,customer_selection_all_customers,total_sales_amount,total_sales_currency_code +2025-07-18 11:00:00,2001,ACTIVE,bea81c1795a612d8fc3a232b156467aa,2025-07-01 00:00:00,2025-07-10 00:00:00,2025-07-01 00:00:00,2025-08-01 00:00:00,1,TRUE,5,100,10,EXACT,TRUE,FALSE,TRUE,TRUE,150.00,USD +2025-07-18 11:00:00,2002,EXPIRED,bea81c1795a612d8fc3a232b156467ab,2025-06-01 00:00:00,2025-07-01 00:00:00,2025-06-01 00:00:00,2025-07-01 00:00:00,2,FALSE,10,200,20,EXACT,FALSE,TRUE,FALSE,TRUE,300.00,USD +2025-07-18 11:00:00,2003,ACTIVE,bea81c1795a612d8fc3a232b156467ac,2025-07-05 00:00:00,2025-07-15 00:00:00,2025-07-05 00:00:00,2025-08-05 00:00:00,3,TRUE,3,50,5,ROUND,TRUE,TRUE,TRUE,FALSE,75.00,USD +2025-07-18 11:00:00,2004,DISABLED,bea81c1795a612d8fc3a232b156467ad,2025-06-15 00:00:00,2025-07-12 00:00:00,2025-06-15 00:00:00,2025-07-31 00:00:00,4,FALSE,7,150,15,EXACT,FALSE,FALSE,FALSE,TRUE,0.00,USD +2025-07-18 11:00:00,2005,ACTIVE,bea81c1795a612d8fc3a232b156467ae,2025-07-10 00:00:00,2025-07-16 00:00:00,2025-07-10 00:00:00,2025-08-10 00:00:00,5,TRUE,8,300,30,EXACT,TRUE,TRUE,FALSE,FALSE,125.50,USD +2025-07-18 11:00:00,2006,EXPIRED,bea81c1795a612d8fc3a232b156467af,2025-05-01 00:00:00,2025-06-01 00:00:00,2025-05-01 00:00:00,2025-06-01 00:00:00,1,FALSE,2,100,10,ROUND,FALSE,FALSE,TRUE,TRUE,210.75,USD +2025-07-18 11:00:00,2007,ACTIVE,bea81c1795a612d8fc3a232b156467b0,2025-07-11 00:00:00,2025-07-17 00:00:00,2025-07-11 00:00:00,2025-08-11 00:00:00,6,TRUE,1,30,3,EXACT,TRUE,FALSE,FALSE,TRUE,95.00,USD +2025-07-18 11:00:00,2008,DISABLED,bea81c1795a612d8fc3a232b156467b1,2025-06-20 00:00:00,2025-07-10 00:00:00,2025-06-20 00:00:00,2025-07-20 00:00:00,2,FALSE,4,120,12,EXACT,FALSE,FALSE,FALSE,FALSE,60.00,USD +2025-07-18 11:00:00,2009,ACTIVE,bea81c1795a612d8fc3a232b156467b2,2025-07-15 00:00:00,2025-07-17 00:00:00,2025-07-15 00:00:00,2025-08-15 00:00:00,7,TRUE,9,500,50,ROUND,TRUE,TRUE,TRUE,TRUE,180.99,USD +2025-07-18 11:00:00,2010,EXPIRED,bea81c1795a612d8fc3a232b156467b3,2025-04-01 00:00:00,2025-05-01 00:00:00,2025-04-01 00:00:00,2025-05-01 00:00:00,1,FALSE,0,75,7,EXACT,FALSE,FALSE,TRUE,FALSE,45.25,USD \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_order_data.csv b/integration_tests/seeds/shopify_gql_order_data.csv index ddb9284b..8ace5b73 100644 --- a/integration_tests/seeds/shopify_gql_order_data.csv +++ b/integration_tests/seeds/shopify_gql_order_data.csv @@ -1,10 +1,10 @@ -_fivetran_deleted,_fivetran_synced,app_id,billing_address_address_1,billing_address_address_2,billing_address_city,billing_address_company,billing_address_country,billing_address_country_code,billing_address_first_name,billing_address_last_name,billing_address_latitude,billing_address_longitude,billing_address_name,billing_address_phone,billing_address_province,billing_address_province_code,billing_address_zip,cancel_reason,cancelled_at,client_ip,closed_at,confirmed,created_at,currency_code,customer_accepts_marketing,customer_id,customer_locale,display_financial_status,display_fulfillment_status,email,id,location_id,name,note,presentment_currency_code,processed_at,shipping_address_address_1,shipping_address_address_2,shipping_address_city,shipping_address_company,shipping_address_country,shipping_address_country_code,shipping_address_first_name,shipping_address_last_name,shipping_address_latitude,shipping_address_longitude,shipping_address_name,shipping_address_phone,shipping_address_province,shipping_address_province_code,shipping_address_zip,source_name,staff_member_id,status_page_url,subtotal_price_set_pres_amount,subtotal_price_set_pres_currency_code,subtotal_price_set_shop_amount,subtotal_price_set_shop_currency_code,taxes_included,test,total_discounts_set_pres_amount,total_discounts_set_pres_currency_code,total_discounts_set_shop_amount,total_discounts_set_shop_currency_code,total_price_set_pres_amount,total_price_set_pres_currency_code,total_price_set_shop_amount,total_price_set_shop_currency_code,total_shipping_price_set_pres_amount,total_shipping_price_set_pres_currency_code,total_shipping_price_set_shop_amount,total_shipping_price_set_shop_currency_code,total_tax_set_pres_amount,total_tax_set_pres_currency_code,total_tax_set_shop_amount,total_tax_set_shop_currency_code,total_tip_received_set_pres_amount,total_tip_received_set_pres_currency_code,total_tip_received_set_shop_amount,total_tip_received_set_shop_currency_code,total_weight,updated_at -FALSE,2025-07-19 09:00:00,2001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,US,US,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,12.3456,65.4321,bea81c1795a612d8fc3a232b156467bc,1111111111,CA,CA,12345,, ,192.168.1.1,2025-07-19 08:00:00,TRUE,2025-07-18 08:45:00,USD,TRUE,1001,en-US,PAID,UNFULFILLED,bea81c1795a612d8fc3a232b156467bc,4001,10001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,USD,2025-07-18 09:00:00,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,US,US,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,23.4567,45.6789,bea81c1795a612d8fc3a232b156467bd,2222222222,CA,CA,54321,online,5001,bea81c1795a612d8fc3a232b156467bc,49.99,USD,49.99,USD,TRUE,FALSE,5.00,USD,5.00,USD,55.00,USD,55.00,USD,2.00,USD,2.00,USD,3.00,USD,3.00,USD,1000,USD,1000,USD,,2025-07-18 09:00:00 -TRUE,2025-07-19 09:05:00,2002,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,CA,CA,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,13.0000,66.0000,bea81c1795a612d8fc3a232b156467bd,3333333333,ON,ON,54321,inventory,2025-07-18 14:00:00,10.0.0.2,2025-07-19 08:00:00,FALSE,2025-07-18 10:00:00,CAD,FALSE,1002,fr-CA,AUTHORIZED,PARTIALLY_FULFILLED,bea81c1795a612d8fc3a232b156467bd,4002,10002,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,CAD,2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,CA,CA,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,24.0000,46.0000,bea81c1795a612d8fc3a232b156467be,4444444444,ON,CA,98765,point_of_sale,5002,bea81c1795a612d8fc3a232b156467bd,59.99,CAD,59.99,CAD,FALSE,FALSE,0.00,CAD,0.00,CAD,59.99,CAD,59.99,CAD,5.00,CAD,5.00,CAD,0.00,CAD,0.00,CAD,1500,USD,1500,USD,,2025-07-18 09:00:00 -FALSE,2025-07-19 09:10:00,2003,bea81c1795a612d8fc3a232b156467be,,,,,,,,,,,,,,192.168.1.3,,2025-07-18 14:00:00,10.0.0.2,2025-07-19 08:00:00,TRUE,2025-07-18 10:00:00,USD,TRUE,1003,en-US,PAID,FULFILLED,bea81c1795a612d8fc3a232b156467be,4003,10001,bea81c1795a612d8fc3a232b156467bc,,,,,,,,,,,,,,,,CA,ON,54321,online,5001,bea81c1795a612d8fc3a232b156467bc,2.00,USD,2.00,USD,TRUE,FALSE,31.99,USD,3.00,USD,3.00,USD,2000,USD,5.00,USD,5.00,USD,3.00,USD,3.00,USD,5.00,USD,5.00,USD,,2025-07-18 09:00:00 -TRUE,2025-07-19 09:15:00,2004,bea81c1795a612d8fc3a232b156467bf,,,,,,,,,,,,,,10.0.0.4,,2025-07-16 11:00:00,10.0.0.2,2025-07-19 08:00:00,FALSE,2025-07-18 10:00:00,USD,TRUE,1004,en-US,PAID,UNFULFILLED,bea81c1795a612d8fc3a232b156467bf,4004,10002,bea81c1795a612d8fc3a232b156467bd,,,,,,,,,,,,,,,,ON,CA,54321,point_of_sale,5002,bea81c1795a612d8fc3a232b156467bd,10.00,USD,10.00,USD,FALSE,FALSE,69.00,USD,5.00,USD,5.00,USD,0.00,CAD,0.00,USD,5.00,CAD,0.00,CAD,0.00,CAD,10.00,USD,10.00,USD,,2025-07-18 09:00:00 -FALSE,2025-07-19 09:20:00,2005,bea81c1795a612d8fc3a232b156467c0,,,,,,,,,,,,,,192.168.1.5,,2025-07-16 11:00:00,10.0.0.2,2025-07-19 08:00:00,TRUE,2025-07-18 10:00:00,USD,TRUE,1005,en-US,PAID,PARTIALLY_FULFILLED,bea81c1795a612d8fc3a232b156467c0,4005,10001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467c1,USD,2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467c1,US,US,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,US,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467c2,46.0000,46.0000,FL,5555555555,CA,ON,54321,online,5001,bea81c1795a612d8fc3a232b156467bc,10.00,USD,10.00,USD,TRUE,FALSE,69.00,USD,5.00,USD,5.00,USD,0.00,USD,5.00,USD,5.00,USD,3.00,USD,3.00,USD,5.00,USD,5.00,USD,,2025-07-18 09:00:00 -TRUE,2025-07-19 09:25:00,2006,bea81c1795a612d8fc3a232b156467c1,,,,,,,,,,,,,,10.0.0.6,,2025-07-14 09:00:00,10.0.0.2,2025-07-19 08:00:00,FALSE,2025-07-18 10:00:00,USD,TRUE,1006,en-US,PAID,FULFILLED,bea81c1795a612d8fc3a232b156467c1,4006,10002,bea81c1795a612d8fc3a232b156467bd,,,,,,,,,,,,,,,,ON,CA,54321,point_of_sale,5002,bea81c1795a612d8fc3a232b156467bd,0.00,USD,0.00,USD,FALSE,FALSE,99.99,USD,8.00,USD,8.00,USD,2.00,CAD,2.00,USD,5.00,CAD,0.00,CAD,0.00,CAD,10.00,USD,10.00,USD,,2025-07-18 09:00:00 -FALSE,2025-07-19 09:30:00,2007,bea81c1795a612d8fc3a232b156467c2,,,,,,,,,,,,,,192.168.1.7,,2025-07-14 09:00:00,10.0.0.2,2025-07-19 08:00:00,TRUE,2025-07-18 10:00:00,USD,FALSE,1007,en-US,PAID,UNFULFILLED,bea81c1795a612d8fc3a232b156467c2,4007,10001,bea81c1795a612d8fc3a232b156467bc,,,,,,,,,,,,,,,,CA,ON,54321,online,5001,bea81c1795a612d8fc3a232b156467bc,3.00,USD,3.00,USD,TRUE,TRUE,38.00,USD,2.50,USD,2.50,USD,0.00,USD,0.00,USD,5.00,USD,3.00,USD,3.00,USD,5.00,USD,5.00,USD,,2025-07-18 09:00:00 -TRUE,2025-07-19 09:35:00,2008,bea81c1795a612d8fc3a232b156467c3,,,,,,,,,,,,,,10.0.0.8,,2025-07-12 07:00:00,10.0.0.2,2025-07-19 08:00:00,FALSE,2025-07-18 10:00:00,USD,FALSE,1008,en-US,PAID,PARTIALLY_FULFILLED,bea81c1795a612d8fc3a232b156467c3,4008,10002,bea81c1795a612d8fc3a232b156467bd,,,,,,,,,,,,,,,,ON,CA,54321,point_of_sale,5002,bea81c1795a612d8fc3a232b156467bd,1.00,USD,1.00,USD,FALSE,TRUE,16.00,USD,1.50,USD,1.50,USD,0.00,USD,0.00,USD,5.00,CAD,0.00,CAD,0.00,CAD,10.00,USD,10.00,USD,,2025-07-18 09:00:00 -FALSE,2025-07-19 09:40:00,2009,bea81c1795a612d8fc3a232b156467c4,,,,,,,,,,,,,,192.168.1.9,,2025-07-12 07:00:00,10.0.0.2,2025-07-19 08:00:00,TRUE,2025-07-18 10:00:00,USD,FALSE,1009,en-US,PAID,FULFILLED,bea81c1795a612d8fc3a232b156467c4,4009,10001,bea81c1795a612d8fc3a232b156467bc,,,,,,,,,,,,,,,,CA,ON,54321,point_of_sale,5001,bea81c1795a612d8fc3a232b156467bc,10.00,USD,10.00,USD,TRUE,FALSE,130.00,USD,7.00,USD,7.00,USD,0.00,USD,0.00,USD,5.00,USD,3.00,USD,3.00,USD,5.00,USD,5.00,USD,,2025-07-18 09:00:00 \ No newline at end of file +_fivetran_deleted,_fivetran_synced,app_id,billing_address_address_1,billing_address_address_2,billing_address_city,billing_address_company,billing_address_country,billing_address_country_code,billing_address_first_name,billing_address_last_name,billing_address_latitude,billing_address_longitude,billing_address_name,billing_address_phone,billing_address_province,billing_address_province_code,billing_address_zip,cancel_reason,cancelled_at,client_ip,closed_at,confirmed,created_at,currency_code,customer_accepts_marketing,customer_id,customer_locale,display_financial_status,display_fulfillment_status,email,id,location_id,name,note,number,presentment_currency_code,processed_at,shipping_address_address_1,shipping_address_address_2,shipping_address_city,shipping_address_company,shipping_address_country,shipping_address_country_code,shipping_address_first_name,shipping_address_last_name,shipping_address_latitude,shipping_address_longitude,shipping_address_name,shipping_address_phone,shipping_address_province,shipping_address_province_code,shipping_address_zip,source_name,staff_member_id,status_page_url,subtotal_price_set_pres_amount,subtotal_price_set_pres_currency_code,subtotal_price_set_shop_amount,subtotal_price_set_shop_currency_code,taxes_included,test,total_discounts_set_pres_amount,total_discounts_set_pres_currency_code,total_discounts_set_shop_amount,total_discounts_set_shop_currency_code,total_price_set_pres_amount,total_price_set_pres_currency_code,total_price_set_shop_amount,total_price_set_shop_currency_code,total_shipping_price_set_pres_amount,total_shipping_price_set_pres_currency_code,total_shipping_price_set_shop_amount,total_shipping_price_set_shop_currency_code,total_tax_set_pres_amount,total_tax_set_pres_currency_code,total_tax_set_shop_amount,total_tax_set_shop_currency_code,total_tip_received_set_pres_amount,total_tip_received_set_pres_currency_code,total_tip_received_set_shop_amount,total_tip_received_set_shop_currency_code,total_weight,updated_at +FALSE,2025-07-19 09:00:00,2001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,US,US,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,12.3456,65.4321,bea81c1795a612d8fc3a232b156467bc,1111111111,CA,CA,12345,, ,192.168.1.1,2025-07-19 08:00:00,TRUE,2025-07-18 08:45:00,USD,TRUE,1001,en-US,PAID,UNFULFILLED,bea81c1795a612d8fc3a232b156467bc,4001,10001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,1,USD,2025-07-18 09:00:00,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,US,US,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,23.4567,45.6789,bea81c1795a612d8fc3a232b156467bd,2222222222,CA,CA,54321,online,5001,bea81c1795a612d8fc3a232b156467bc,49.99,USD,49.99,USD,TRUE,FALSE,5.00,USD,5.00,USD,55.00,USD,55.00,USD,2.00,USD,2.00,USD,3.00,USD,3.00,USD,1000,USD,1000,USD,,2025-07-18 09:00:00 +TRUE,2025-07-19 09:05:00,2002,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,CA,CA,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,13.0000,66.0000,bea81c1795a612d8fc3a232b156467bd,3333333333,ON,ON,54321,inventory,2025-07-18 14:00:00,10.0.0.2,2025-07-19 08:00:00,FALSE,2025-07-18 10:00:00,CAD,FALSE,1002,fr-CA,AUTHORIZED,PARTIALLY_FULFILLED,bea81c1795a612d8fc3a232b156467bd,4002,10002,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,2,CAD,2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,CA,CA,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,24.0000,46.0000,bea81c1795a612d8fc3a232b156467be,4444444444,ON,CA,98765,point_of_sale,5002,bea81c1795a612d8fc3a232b156467bd,59.99,CAD,59.99,CAD,FALSE,FALSE,0.00,CAD,0.00,CAD,59.99,CAD,59.99,CAD,5.00,CAD,5.00,CAD,0.00,CAD,0.00,CAD,1500,USD,1500,USD,,2025-07-18 09:00:00 +FALSE,2025-07-19 09:10:00,2003,bea81c1795a612d8fc3a232b156467be,,,,,,,,,,,,,,192.168.1.3,,2025-07-18 14:00:00,10.0.0.2,2025-07-19 08:00:00,TRUE,2025-07-18 10:00:00,USD,TRUE,1003,en-US,PAID,FULFILLED,bea81c1795a612d8fc3a232b156467be,4003,10001,bea81c1795a612d8fc3a232b156467bc,,3,,,,,,,,,,,,,,,CA,ON,54321,online,5001,bea81c1795a612d8fc3a232b156467bc,2.00,USD,2.00,USD,TRUE,FALSE,31.99,USD,3.00,USD,3.00,USD,2000,USD,5.00,USD,5.00,USD,3.00,USD,3.00,USD,5.00,USD,5.00,USD,,2025-07-18 09:00:00 +TRUE,2025-07-19 09:15:00,2004,bea81c1795a612d8fc3a232b156467bf,,,,,,,,,,,,,,10.0.0.4,,2025-07-16 11:00:00,10.0.0.2,2025-07-19 08:00:00,FALSE,2025-07-18 10:00:00,USD,TRUE,1004,en-US,PAID,UNFULFILLED,bea81c1795a612d8fc3a232b156467bf,4004,10002,bea81c1795a612d8fc3a232b156467bd,,4,,,,,,,,,,,,,,,ON,CA,54321,point_of_sale,5002,bea81c1795a612d8fc3a232b156467bd,10.00,USD,10.00,USD,FALSE,FALSE,69.00,USD,5.00,USD,5.00,USD,0.00,CAD,0.00,USD,5.00,CAD,0.00,CAD,0.00,CAD,10.00,USD,10.00,USD,,2025-07-18 09:00:00 +FALSE,2025-07-19 09:20:00,2005,bea81c1795a612d8fc3a232b156467c0,,,,,,,,,,,,,,192.168.1.5,,2025-07-16 11:00:00,10.0.0.2,2025-07-19 08:00:00,TRUE,2025-07-18 10:00:00,USD,TRUE,1005,en-US,PAID,PARTIALLY_FULFILLED,bea81c1795a612d8fc3a232b156467c0,4005,10001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467c1,5,USD,2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467c1,US,US,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,US,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467c2,46.0000,46.0000,FL,5555555555,CA,ON,54321,online,5001,bea81c1795a612d8fc3a232b156467bc,10.00,USD,10.00,USD,TRUE,FALSE,69.00,USD,5.00,USD,5.00,USD,0.00,USD,5.00,USD,5.00,USD,3.00,USD,3.00,USD,5.00,USD,5.00,USD,,2025-07-18 09:00:00 +TRUE,2025-07-19 09:25:00,2006,bea81c1795a612d8fc3a232b156467c1,,,,,,,,,,,,,,10.0.0.6,,2025-07-14 09:00:00,10.0.0.2,2025-07-19 08:00:00,FALSE,2025-07-18 10:00:00,USD,TRUE,1006,en-US,PAID,FULFILLED,bea81c1795a612d8fc3a232b156467c1,4006,10002,bea81c1795a612d8fc3a232b156467bd,,6,,,,,,,,,,,,,,,ON,CA,54321,point_of_sale,5002,bea81c1795a612d8fc3a232b156467bd,0.00,USD,0.00,USD,FALSE,FALSE,99.99,USD,8.00,USD,8.00,USD,2.00,CAD,2.00,USD,5.00,CAD,0.00,CAD,0.00,CAD,10.00,USD,10.00,USD,,2025-07-18 09:00:00 +FALSE,2025-07-19 09:30:00,2007,bea81c1795a612d8fc3a232b156467c2,,,,,,,,,,,,,,192.168.1.7,,2025-07-14 09:00:00,10.0.0.2,2025-07-19 08:00:00,TRUE,2025-07-18 10:00:00,USD,FALSE,1007,en-US,PAID,UNFULFILLED,bea81c1795a612d8fc3a232b156467c2,4007,10001,bea81c1795a612d8fc3a232b156467bc,,7,,,,,,,,,,,,,,,CA,ON,54321,online,5001,bea81c1795a612d8fc3a232b156467bc,3.00,USD,3.00,USD,TRUE,TRUE,38.00,USD,2.50,USD,2.50,USD,0.00,USD,0.00,USD,5.00,USD,3.00,USD,3.00,USD,5.00,USD,5.00,USD,,2025-07-18 09:00:00 +TRUE,2025-07-19 09:35:00,2008,bea81c1795a612d8fc3a232b156467c3,,,,,,,,,,,,,,10.0.0.8,,2025-07-12 07:00:00,10.0.0.2,2025-07-19 08:00:00,FALSE,2025-07-18 10:00:00,USD,FALSE,1008,en-US,PAID,PARTIALLY_FULFILLED,bea81c1795a612d8fc3a232b156467c3,4008,10002,bea81c1795a612d8fc3a232b156467bd,,8,,,,,,,,,,,,,,,ON,CA,54321,point_of_sale,5002,bea81c1795a612d8fc3a232b156467bd,1.00,USD,1.00,USD,FALSE,TRUE,16.00,USD,1.50,USD,1.50,USD,0.00,USD,0.00,USD,5.00,CAD,0.00,CAD,0.00,CAD,10.00,USD,10.00,USD,,2025-07-18 09:00:00 +FALSE,2025-07-19 09:40:00,2009,bea81c1795a612d8fc3a232b156467c4,,,,,,,,,,,,,,192.168.1.9,,2025-07-12 07:00:00,10.0.0.2,2025-07-19 08:00:00,TRUE,2025-07-18 10:00:00,USD,FALSE,1009,en-US,PAID,FULFILLED,bea81c1795a612d8fc3a232b156467c4,4009,10001,bea81c1795a612d8fc3a232b156467bc,,9,,,,,,,,,,,,,,,CA,ON,54321,point_of_sale,5001,bea81c1795a612d8fc3a232b156467bc,10.00,USD,10.00,USD,TRUE,FALSE,130.00,USD,7.00,USD,7.00,USD,0.00,USD,0.00,USD,5.00,USD,3.00,USD,3.00,USD,5.00,USD,5.00,USD,,2025-07-18 09:00:00 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_transaction_data.csv b/integration_tests/seeds/shopify_gql_transaction_data.csv index f0b86703..19eb373d 100644 --- a/integration_tests/seeds/shopify_gql_transaction_data.csv +++ b/integration_tests/seeds/shopify_gql_transaction_data.csv @@ -1,11 +1,11 @@ -_fivetran_synced,amount_set_pres_amount,amount_set_pres_currency_code,amount_set_shop_amount,amount_set_shop_currency_code,authorization_code,authorization_expires_at,created_at,error_code,gateway,id,kind,order_id,parent_id,payment_avs_result_code,payment_credit_card_bin,payment_credit_card_company,payment_credit_card_number,payment_cvv_result_code,processed_at,refund_id,staff_member_id,status,test -2025-07-18 10:00:00,49.99,USD,49.99,USD,bea81c1795a612d8fc3a232b156467aa,2025-07-18 11:00:00,2025-07-18 09:00:00,,shopify_payments,10001,sale,60001,,Y,411111,Visa,**** **** **** 1111,M,2025-07-18 09:01:00,,3001,success,FALSE -2025-07-18 10:01:00,59.99,USD,59.99,USD,bea81c1795a612d8fc3a232b156467ab,2025-07-18 11:01:00,2025-07-18 09:01:00,,paypal,10002,authorization,60002,10001,N,550000,MasterCard,**** **** **** 0000,N,2025-07-18 09:02:00,,3002,success,FALSE -2025-07-18 10:02:00,35.00,USD,35.00,USD,bea81c1795a612d8fc3a232b156467ac,2025-07-18 11:02:00,2025-07-18 09:02:00,,shopify_payments,10003,capture,60003,10002,Y,340000,AmericanExpress,**** **** **** 0005,M,2025-07-18 09:03:00,,3003,success,FALSE -2025-07-18 10:03:00,10.00,USD,10.00,USD,bea81c1795a612d8fc3a232b156467ad,2025-07-18 11:03:00,2025-07-18 09:03:00,,stripe,10004,void,60004,10003,Y,300000,Discover,**** **** **** 0006,M,2025-07-18 09:04:00,,3004,success,TRUE -2025-07-18 10:04:00,120.00,USD,120.00,USD,bea81c1795a612d8fc3a232b156467ae,2025-07-18 11:04:00,2025-07-18 09:04:00,,shopify_payments,10005,refund,60005,10004,N,411111,Visa,**** **** **** 1111,N,2025-07-18 09:05:00,9001,3005,success,FALSE -2025-07-18 10:05:00,75.00,USD,75.00,USD,bea81c1795a612d8fc3a232b156467af,2025-07-18 11:05:00,2025-07-18 09:05:00,,paypal,10006,sale,60006,10005,Y,555555,MasterCard,**** **** **** 5555,M,2025-07-18 09:06:00,,3006,success,TRUE -2025-07-18 10:06:00,0.00,USD,0.00,USD,bea81c1795a612d8fc3a232b156467b0,2025-07-18 11:06:00,2025-07-18 09:06:00,card_declined,stripe,10007,authorization,60007,10006,Z,300300,Discover,**** **** **** 3003,N,2025-07-18 09:07:00,,3007,failure,FALSE -2025-07-18 10:07:00,89.99,USD,89.99,USD,bea81c1795a612d8fc3a232b156467b1,2025-07-18 11:07:00,2025-07-18 09:07:00,,shopify_payments,10008,sale,60008,,Y,411111,Visa,**** **** **** 1111,M,2025-07-18 09:08:00,,3008,success,FALSE -2025-07-18 10:08:00,15.50,USD,15.50,USD,bea81c1795a612d8fc3a232b156467b2,2025-07-18 11:08:00,2025-07-18 09:08:00,,paypal,10009,capture,60009,10008,Y,550000,MasterCard,**** **** **** 0000,M,2025-07-18 09:09:00,,3009,success,FALSE -2025-07-18 10:09:00,62.00,USD,62.00,USD,bea81c1795a612d8fc3a232b156467b3,2025-07-18 11:09:00,2025-07-18 09:09:00,,stripe,10010,refund,60010,10009,N,340000,AmericanExpress,**** **** **** 0005,N,2025-07-18 09:10:00,9002,3010,success,TRUE \ No newline at end of file +_fivetran_synced,amount_set_pres_amount,amount_set_pres_currency_code,amount_set_shop_amount,amount_set_shop_currency_code,authorization_code,authorization_expires_at,created_at,error_code,gateway,id,kind,order_id,parent_id,payment_avs_result_code,payment_credit_card_bin,payment_credit_card_company,payment_credit_card_number,payment_cvv_result_code,processed_at,refund_id,staff_member_id,status,test,device_id,currency_exchange_id,currency_exchange_adjustment,currency_exchange_original_amount,currency_exchange_final_amount,currency_exchange_currency +2025-07-18 10:00:00,49.99,USD,49.99,USD,bea81c1795a612d8fc3a232b156467aa,2025-07-18 11:00:00,2025-07-18 09:00:00,,shopify_payments,10001,sale,60001,,Y,411111,Visa,**** **** **** 1111,M,2025-07-18 09:01:00,,3001,success,FALSE,gwe4323,,,,, +2025-07-18 10:01:00,59.99,USD,59.99,USD,bea81c1795a612d8fc3a232b156467ab,2025-07-18 11:01:00,2025-07-18 09:01:00,,paypal,10002,authorization,60002,10001,N,550000,MasterCard,**** **** **** 0000,N,2025-07-18 09:02:00,,3002,success,FALSE,gn89542,,,,, +2025-07-18 10:02:00,35.00,USD,35.00,USD,bea81c1795a612d8fc3a232b156467ac,2025-07-18 11:02:00,2025-07-18 09:02:00,,shopify_payments,10003,capture,60003,10002,Y,340000,AmericanExpress,**** **** **** 0005,M,2025-07-18 09:03:00,,3003,success,FALSE,gb4ut43,,,,, +2025-07-18 10:03:00,10.00,USD,10.00,USD,bea81c1795a612d8fc3a232b156467ad,2025-07-18 11:03:00,2025-07-18 09:03:00,,stripe,10004,void,60004,10003,Y,300000,Discover,**** **** **** 0006,M,2025-07-18 09:04:00,,3004,success,TRUE,gti44g,,,,, +2025-07-18 10:04:00,120.00,USD,120.00,USD,bea81c1795a612d8fc3a232b156467ae,2025-07-18 11:04:00,2025-07-18 09:04:00,,shopify_payments,10005,refund,60005,10004,N,411111,Visa,**** **** **** 1111,N,2025-07-18 09:05:00,9001,3005,success,FALSE,ght45g2f,,,,, +2025-07-18 10:05:00,75.00,USD,75.00,USD,bea81c1795a612d8fc3a232b156467af,2025-07-18 11:05:00,2025-07-18 09:05:00,,paypal,10006,sale,60006,10005,Y,555555,MasterCard,**** **** **** 5555,M,2025-07-18 09:06:00,,3006,success,TRUE,gh942t,,,,, +2025-07-18 10:06:00,0.00,USD,0.00,USD,bea81c1795a612d8fc3a232b156467b0,2025-07-18 11:06:00,2025-07-18 09:06:00,card_declined,stripe,10007,authorization,60007,10006,Z,300300,Discover,**** **** **** 3003,N,2025-07-18 09:07:00,,3007,failure,FALSE,giu43g3,,,,, +2025-07-18 10:07:00,89.99,USD,89.99,USD,bea81c1795a612d8fc3a232b156467b1,2025-07-18 11:07:00,2025-07-18 09:07:00,,shopify_payments,10008,sale,60008,,Y,411111,Visa,**** **** **** 1111,M,2025-07-18 09:08:00,,3008,success,FALSE,g4hiu3g4,,,,, +2025-07-18 10:08:00,15.50,USD,15.50,USD,bea81c1795a612d8fc3a232b156467b2,2025-07-18 11:08:00,2025-07-18 09:08:00,,paypal,10009,capture,60009,10008,Y,550000,MasterCard,**** **** **** 0000,M,2025-07-18 09:09:00,,3009,success,FALSE,g4huu3bt,,,,, +2025-07-18 10:09:00,62.00,USD,62.00,USD,bea81c1795a612d8fc3a232b156467b3,2025-07-18 11:09:00,2025-07-18 09:09:00,,stripe,10010,refund,60010,10009,N,340000,AmericanExpress,**** **** **** 0005,N,2025-07-18 09:10:00,9002,3010,success,TRUE,g4o2,,,,, \ No newline at end of file diff --git a/models/graphql/intermediate/base/int_shopify_gql__collection.sql b/models/graphql/intermediate/base/int_shopify_gql__collection.sql index 9b887883..8b30dfd7 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__collection.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__collection.sql @@ -18,7 +18,6 @@ prep_collection_rule as ( select collection_id, source_relation, - {# QUESTION: should we lower() these fields? #} '{"column":"' || columns || '","relation":"' || relation || '","condition":"' || condition || '"}' as rule from collection_rule ), @@ -30,7 +29,7 @@ agg_collection_rule as ( source_relation, '[' || {{ fivetran_utils.string_agg("rule", "','") }} || ']' as rules from prep_collection_rule - group by collection_id, source_relation + group by 1,2 ), joined as ( diff --git a/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql b/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql index 5c562902..ae360730 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql @@ -16,7 +16,7 @@ joined as ( select order_adjustment.*, - refund.order_id -- QUESTION: just need this, does this need a base model? + refund.order_id from order_adjustment left join refund diff --git a/models/graphql/intermediate/base/int_shopify_gql__order_line.sql b/models/graphql/intermediate/base/int_shopify_gql__order_line.sql index 185abf1d..c6a79acd 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__order_line.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__order_line.sql @@ -22,11 +22,13 @@ tax_line_aggregated as ( group by 1,2 ), +{% if var('shopify_gql_using_fulfillment_order_line_item', True) %} fulfillment_order_line_item as ( select * from {{ var('shopify_gql_fulfillment_order_line_item') }} ), +{% endif %} joined as ( @@ -34,18 +36,26 @@ joined as ( order_line.*, coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price, tax_line_aggregated.order_line_tax, + {% if var('shopify_gql_using_fulfillment_order_line_item', True) %} fulfillment_order_line_item.remaining_quantity as fulfillable_quantity, - {# QUESTION: in REST order_line had a grams field. Should we include the following regardless of the weight unit, or pull out grams specifically? #} fulfillment_order_line_item.weight_unit, fulfillment_order_line_item.weight_value + {% else %} + cast(null as {{ dbt.type_int() }}) as fulfillable_quantity, + cast(null as {{ dbt.type_string() }}) as weight_unit, + cast(null as {{ dbt.type_float() }}) as weight_value + {% endif %} from order_line left join tax_line_aggregated on tax_line_aggregated.order_line_id = order_line.order_line_id and tax_line_aggregated.source_relation = order_line.source_relation + + {% if var('shopify_gql_using_fulfillment_order_line_item', True) %} left join fulfillment_order_line_item on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id and fulfillment_order_line_item.source_relation = order_line.source_relation + {% endif %} ) select * diff --git a/models/graphql/intermediate/shopify_gql__customers__order_aggregates.sql b/models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql similarity index 97% rename from models/graphql/intermediate/shopify_gql__customers__order_aggregates.sql rename to models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql index 3bd5e1a8..578c778b 100644 --- a/models/graphql/intermediate/shopify_gql__customers__order_aggregates.sql +++ b/models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql @@ -9,7 +9,7 @@ with orders as ( ), order_aggregates as ( select * - from {{ ref('shopify_gql__orders__order_line_aggregates') }} + from {{ ref('int_shopify_gql__orders_order_line_aggregates') }} ), transactions as ( diff --git a/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql b/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql index 33641ccf..e097368b 100644 --- a/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql +++ b/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql @@ -12,9 +12,8 @@ fulfillment_aggregates as ( source_relation, cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day - {# picked_up is not a status value in GQL docs: https://shopify.dev/docs/api/admin-graphql/latest/objects/fulfillmentevent#field-FulfillmentEvent.fields.status - QUESTION: should we remove? #} - {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%} + {# Possible status values: https://shopify.dev/docs/api/admin-graphql/latest/objects/fulfillmentevent#field-FulfillmentEvent.fields.status #} + {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%} , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }} {% endfor %} diff --git a/models/graphql/intermediate/int_shopify_gql__daily_orders.sql b/models/graphql/intermediate/int_shopify_gql__daily_orders.sql index c018608a..81b5a9b1 100644 --- a/models/graphql/intermediate/int_shopify_gql__daily_orders.sql +++ b/models/graphql/intermediate/int_shopify_gql__daily_orders.sql @@ -26,7 +26,7 @@ order_aggregates as ( count(distinct email) as count_customer_emails, sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total, avg(order_adjusted_total) as avg_order_value, - sum(coalesce(shipping_cost, 0)) as shipping_cost, + sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost, sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount, sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount, sum(coalesce(refund_subtotal, 0)) as refund_subtotal, diff --git a/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql b/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql index a5e064de..257a5a5c 100644 --- a/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql +++ b/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql @@ -29,7 +29,7 @@ unified_discount_codes as ( ends_at, starts_at, status, - null as title, + title, total_sales_amount, total_sales_currency_code, updated_at, @@ -79,7 +79,7 @@ unified_discount_codes as ( ends_at, starts_at, status, - null as title, + title, total_sales_amount, total_sales_currency_code, updated_at, @@ -132,11 +132,9 @@ discounts_with_applications as ( select discounts_with_codes.*, discount_applications.allocation_method, - {# discount_applications.description, #} discount_applications.target_selection, discount_applications.target_type, - {# discount_applications.type as application_type, #} - discount_applications.value_amount as value, -- QUESTION: should we be renaming this? + discount_applications.value_amount, discount_applications.value_currency_code, discount_applications.value_percentage, discount_applications.value_type diff --git a/models/graphql/intermediate/int_shopify_gql__discounts__abandoned_checkouts.sql b/models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql similarity index 90% rename from models/graphql/intermediate/int_shopify_gql__discounts__abandoned_checkouts.sql rename to models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql index 304c9e8d..c3cb67b0 100644 --- a/models/graphql/intermediate/int_shopify_gql__discounts__abandoned_checkouts.sql +++ b/models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql @@ -22,7 +22,6 @@ abandoned_checkout_discount_code as ( from {{ var('shopify_gql_abandoned_checkout_discount_code') }} ), -{# WIP #} join_abandoned_checkout_discount_code as ( select @@ -36,15 +35,10 @@ join_abandoned_checkout_discount_code as ( left join discount_application on abandoned_checkout_discount_code.code = discount_application.code and abandoned_checkout_discount_code.source_relation = discount_application.source_relation - -- and abandoned_checkout_discount_code.index = discount_application.index {# NEED CODE to prevent potential fanout #} where coalesce(discount_application.value_type, '') != '' ), -{# -abandoned_checkout_shipping_line TABLE HAS BEEN REMOVED -#} - abandoned_checkouts_aggregated as ( select @@ -53,7 +47,6 @@ abandoned_checkouts_aggregated as ( join_abandoned_checkout_discount_code.source_relation, sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount, sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price, - {# sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price, #} count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers, count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails, count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts diff --git a/models/graphql/intermediate/int_shopify_gql__discounts__order_aggregates.sql b/models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql similarity index 89% rename from models/graphql/intermediate/int_shopify_gql__discounts__order_aggregates.sql rename to models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql index 3ca067b6..1d797048 100644 --- a/models/graphql/intermediate/int_shopify_gql__discounts__order_aggregates.sql +++ b/models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql @@ -21,7 +21,7 @@ orders_aggregated as ( avg(order_discount_code.value_amount) as avg_order_discount_amount, sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount, max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order - max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order + max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order count(distinct customer_id) as count_customers, count(distinct email) as count_customer_emails, diff --git a/models/graphql/intermediate/int_shopify_gql__emails__order_aggregates.sql b/models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql similarity index 98% rename from models/graphql/intermediate/int_shopify_gql__emails__order_aggregates.sql rename to models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql index 3aa7b51b..3dde6227 100644 --- a/models/graphql/intermediate/int_shopify_gql__emails__order_aggregates.sql +++ b/models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql @@ -8,7 +8,7 @@ with orders as ( ), order_aggregates as ( select * - from {{ ref('shopify_gql__orders__order_line_aggregates') }} + from {{ ref('int_shopify_gql__orders_order_line_aggregates') }} ), transactions as ( diff --git a/models/graphql/intermediate/int_shopify_gql__inventory_level__aggregates.sql b/models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql similarity index 97% rename from models/graphql/intermediate/int_shopify_gql__inventory_level__aggregates.sql rename to models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql index 45161333..8ea3b800 100644 --- a/models/graphql/intermediate/int_shopify_gql__inventory_level__aggregates.sql +++ b/models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql @@ -22,7 +22,7 @@ orders as ( refunds as ( select * - from {{ ref('shopify_gql__orders__order_refunds') }} + from {{ ref('int_shopify_gql__orders_order_refunds') }} ), refunds_aggregated as ( diff --git a/models/graphql/intermediate/int_shopify_gql__order__fulfillment_aggregates.sql b/models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql similarity index 100% rename from models/graphql/intermediate/int_shopify_gql__order__fulfillment_aggregates.sql rename to models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql diff --git a/models/graphql/intermediate/int_shopify_gql__order__shipping_aggregates.sql b/models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql similarity index 100% rename from models/graphql/intermediate/int_shopify_gql__order__shipping_aggregates.sql rename to models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql diff --git a/models/graphql/intermediate/shopify_gql__orders__order_line_aggregates.sql b/models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql similarity index 97% rename from models/graphql/intermediate/shopify_gql__orders__order_line_aggregates.sql rename to models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql index e795b3bf..4a39b55d 100644 --- a/models/graphql/intermediate/shopify_gql__orders__order_line_aggregates.sql +++ b/models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql @@ -18,7 +18,7 @@ with order_line as ( select * - from {{ ref('int_shopify_gql__order__shipping_aggregates')}} + from {{ ref('int_shopify_gql__order_shipping_aggregates')}} ), tax_aggregates as ( diff --git a/models/graphql/intermediate/shopify_gql__orders__order_refunds.sql b/models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql similarity index 100% rename from models/graphql/intermediate/shopify_gql__orders__order_refunds.sql rename to models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql diff --git a/models/graphql/intermediate/int_shopify_gql__product__order_line_aggregates.sql b/models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql similarity index 100% rename from models/graphql/intermediate/int_shopify_gql__product__order_line_aggregates.sql rename to models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql diff --git a/models/graphql/shopify_gql__customer_emails.sql b/models/graphql/shopify_gql__customer_emails.sql index 7c695e42..dd2e3f61 100644 --- a/models/graphql/shopify_gql__customer_emails.sql +++ b/models/graphql/shopify_gql__customer_emails.sql @@ -9,10 +9,10 @@ with customer_emails as ( ), orders as ( select * - from {{ ref('int_shopify_gql__emails__order_aggregates' )}} + from {{ ref('int_shopify_gql__emails_order_aggregates' )}} where email is not null -{% if var('shopify_using_abandoned_checkout', True) %} +{% if var('shopify_gql_using_abandoned_checkout', True) %} ), abandoned as ( select @@ -29,7 +29,7 @@ with customer_emails as ( select customer_emails.*, - {% if var('shopify_using_abandoned_checkout', True) %} + {% if var('shopify_gql_using_abandoned_checkout', True) %} coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts, {% endif %} @@ -57,7 +57,7 @@ with customer_emails as ( on customer_emails.email = orders.email and customer_emails.source_relation = orders.source_relation - {% if var('shopify_using_abandoned_checkout', True) %} + {% if var('shopify_gql_using_abandoned_checkout', True) %} left join abandoned on customer_emails.email = abandoned.email and customer_emails.source_relation = abandoned.source_relation diff --git a/models/graphql/shopify_gql__customers.sql b/models/graphql/shopify_gql__customers.sql index 80e22f6a..61856353 100644 --- a/models/graphql/shopify_gql__customers.sql +++ b/models/graphql/shopify_gql__customers.sql @@ -9,9 +9,9 @@ with customers as ( ), orders as ( select * - from {{ ref('shopify_gql__customers__order_aggregates' )}} + from {{ ref('int_shopify_gql__customers_order_aggregates' )}} -{% if var('shopify_using_abandoned_checkout', True) %} +{% if var('shopify_gql_using_abandoned_checkout', True) %} ), abandoned as ( select @@ -38,7 +38,7 @@ with customers as ( select customers.*, - {% if var('shopify_using_abandoned_checkout', True) %} + {% if var('shopify_gql_using_abandoned_checkout', True) %} coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts, {% endif %} @@ -70,7 +70,7 @@ with customers as ( on customers.customer_id = customer_tags_aggregated.customer_id and customers.source_relation = customer_tags_aggregated.source_relation - {% if var('shopify_using_abandoned_checkout', True) %} + {% if var('shopify_gql_using_abandoned_checkout', True) %} left join abandoned on customers.customer_id = abandoned.customer_id and customers.source_relation = abandoned.source_relation diff --git a/models/graphql/shopify_gql__daily_shop.sql b/models/graphql/shopify_gql__daily_shop.sql index 8ba8c115..4f4e048e 100644 --- a/models/graphql/shopify_gql__daily_shop.sql +++ b/models/graphql/shopify_gql__daily_shop.sql @@ -102,7 +102,7 @@ final as ( {% endif %} {% if var('shopify_gql_using_fulfillment_event', false) %} - {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%} + {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%} , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }} {% endfor %} {% endif %} diff --git a/models/graphql/shopify_gql__discounts.sql b/models/graphql/shopify_gql__discounts.sql index 7e79dbf5..660ebbe2 100644 --- a/models/graphql/shopify_gql__discounts.sql +++ b/models/graphql/shopify_gql__discounts.sql @@ -10,14 +10,14 @@ with discounts_enriched as ( orders_aggregated as ( select * - from {{ ref('int_shopify_gql__discounts__order_aggregates')}} + from {{ ref('int_shopify_gql__discounts_order_aggregates')}} ), {% if var('shopify_gql_using_abandoned_checkout', True) %} abandoned_checkouts_aggregated as ( select * - from {{ ref('int_shopify_gql__discounts__abandoned_checkouts')}} + from {{ ref('int_shopify_gql__discounts_abandoned_checkouts')}} ), {% endif %} @@ -26,7 +26,6 @@ aggregates_joined as ( select discounts_enriched.*, - {# application_type is deprecated and not included - should i set a null field? #} coalesce(orders_aggregated.count_orders, 0) as count_orders, orders_aggregated.avg_order_discount_amount, coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount, @@ -38,7 +37,6 @@ aggregates_joined as ( {% if var('shopify_gql_using_abandoned_checkout', True) %} , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount, - {# coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price, #} coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts, coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers, coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails diff --git a/models/graphql/shopify_gql__inventory_levels.sql b/models/graphql/shopify_gql__inventory_levels.sql index e62a480d..b03ec032 100644 --- a/models/graphql/shopify_gql__inventory_levels.sql +++ b/models/graphql/shopify_gql__inventory_levels.sql @@ -39,7 +39,7 @@ product as ( inventory_level_aggregated as ( select * - from {{ ref('int_shopify_gql__inventory_level__aggregates') }} + from {{ ref('int_shopify_gql__inventory_level_aggregates') }} ), {% if var('shopify_gql_using_product_variant_media', False) %} @@ -83,7 +83,6 @@ joined_info as ( inventory_level.updated_at, inventory_level._fivetran_synced, inventory_level.source_relation, - inventory_item.sku, inventory_item.is_deleted as is_inventory_item_deleted, inventory_item.unit_cost_amount, @@ -103,7 +102,6 @@ joined_info as ( inventory_item.measurement_weight_unit, inventory_item.is_tracked_editable_locked, inventory_item.tracked_editable_reason, - location.name as location_name, location.is_deleted as is_location_deleted, location.is_active as is_location_active, @@ -112,7 +110,7 @@ joined_info as ( location.city, location.country, location.country_code, - location.country_name, -- New field introduced in GraphQL API + location.country_name, location.is_legacy as is_legacy_location, location.province, location.province_code, @@ -120,28 +118,19 @@ joined_info as ( location.zip, location.created_at as location_created_at, location.updated_at as location_updated_at, - product_variant.variant_id, product_variant.product_id, product_variant.title as variant_title, product_variant.inventory_policy as variant_inventory_policy, product_variant.price as variant_price, - + {% if var('shopify_gql_using_product_variant_media', False) %} product_variant_media.media_id as variant_media_id, {% endif %} - {# DEPRECATED: product_variant.fulfillment_service as variant_fulfillment_service, - product_variant.inventory_management as variant_inventory_management, #} product_variant.is_taxable as is_variant_taxable, product_variant.barcode as variant_barcode, - {# DEPRECATED: product_variant.grams as variant_grams, #} product_variant.inventory_quantity as variant_inventory_quantity, - {# DEPRECATED: product_variant.weight as variant_weight, - product_variant.weight_unit as variant_weight_unit, - product_variant.option_1 as variant_option_1, - product_variant.option_2 as variant_option_2, - product_variant.option_3 as variant_option_3, #} product_variant.tax_code as variant_tax_code, product_variant.created_timestamp as variant_created_at, product_variant.updated_timestamp as variant_updated_at, diff --git a/models/graphql/shopify_gql__order_lines.sql b/models/graphql/shopify_gql__order_lines.sql index 1e951608..0a3d5036 100644 --- a/models/graphql/shopify_gql__order_lines.sql +++ b/models/graphql/shopify_gql__order_lines.sql @@ -15,7 +15,7 @@ with order_lines as ( ), refunds as ( select * - from {{ ref('shopify_gql__orders__order_refunds') }} + from {{ ref('int_shopify_gql__orders_order_refunds') }} ), @@ -43,12 +43,10 @@ refunds_aggregated as ( select order_lines.*, refunds_aggregated.restock_types, - coalesce(refunds_aggregated.quantity,0) as refunded_quantity, coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal, order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds, order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds, - product_variants.created_timestamp as variant_created_at, product_variants.updated_timestamp as variant_updated_at, product_variants.inventory_item_id, @@ -62,21 +60,11 @@ refunds_aggregated as ( product_variants.position as variant_position, product_variants.inventory_policy as variant_inventory_policy, product_variants.compare_at_price as variant_compare_at_price, - {# deprecated: product_variants.fulfillment_service as variant_fulfillment_service, #} - product_variants.is_taxable as variant_is_taxable, product_variants.barcode as variant_barcode, product_variants.inventory_quantity as variant_inventory_quantity, product_variants.weight as variant_weight, product_variants.weight_unit as variant_weight_unit, - {# ALL DEPRECATED: - product_variants.grams as variant_grams, - product_variants.option_1 as variant_option_1, - product_variants.option_2 as variant_option_2, - product_variants.option_3 as variant_option_3, - #} - -- QUESTION: in REST, we have an order_line.tax_code field that is described identically to product_variants.tax_code, but it is not present in the GraphQL schema. - -- Should we create a tax_code field that is just a copy of product_variants.tax_code, or should we leave it out? product_variants.tax_code as variant_tax_code, product_variants.is_available_for_sale as variant_is_available_for_sale, product_variants.display_name as variant_display_name, diff --git a/models/graphql/shopify_gql__orders.sql b/models/graphql/shopify_gql__orders.sql index bacfc74e..c3a01646 100644 --- a/models/graphql/shopify_gql__orders.sql +++ b/models/graphql/shopify_gql__orders.sql @@ -10,12 +10,12 @@ with orders as ( ), order_lines as ( select * - from {{ ref('shopify_gql__orders__order_line_aggregates') }} + from {{ ref('int_shopify_gql__orders_order_line_aggregates') }} ), fulfillments as ( select * - from {{ ref('int_shopify_gql__order__fulfillment_aggregates') }} + from {{ ref('int_shopify_gql__order_fulfillment_aggregates') }} ), order_adjustments as ( @@ -34,7 +34,7 @@ with orders as ( ), refunds as ( select * - from {{ ref('shopify_gql__orders__order_refunds') }} + from {{ ref('int_shopify_gql__orders_order_refunds') }} ), refund_aggregates as ( select @@ -77,16 +77,10 @@ with orders as ( select orders.*, - {# QUESTION: in REST, we needed to parse a json to get this, but in gql it's already included in orders.* - but it has a slightly different name/is split out - should we include the below as well? #} - coalesce(shipping_cost_shop_amount, 0) as shipping_cost, - order_adjustments_aggregates.order_adjustment_amount, order_adjustments_aggregates.order_adjustment_tax_amount, - refund_aggregates.refund_subtotal, refund_aggregates.refund_total_tax, - (orders.total_price_shop_amount + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total, @@ -95,20 +89,17 @@ with orders as ( order_lines.total_line_items_price_shop_amount, order_lines.total_line_items_price_pres_currency_codes, order_lines.total_line_items_price_shop_currency_codes, - coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount, coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount, coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount, coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied, coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax, order_tag.order_tags, - {# QUESTION: order_url_tag was removed so no order_url_tag.order_url_tags -- should we set a null field? #} fulfillments.number_of_fulfillments, fulfillments.fulfillment_services, fulfillments.tracking_companies, fulfillments.tracking_numbers - from orders left join order_lines on orders.order_id = order_lines.order_id diff --git a/models/graphql/shopify_gql__products.sql b/models/graphql/shopify_gql__products.sql index 57cf6795..5f4ded47 100644 --- a/models/graphql/shopify_gql__products.sql +++ b/models/graphql/shopify_gql__products.sql @@ -8,7 +8,7 @@ with products as ( ), product_order_lines as ( select * - from {{ ref('int_shopify_gql__product__order_line_aggregates')}} + from {{ ref('int_shopify_gql__product_order_line_aggregates')}} ), joined as ( diff --git a/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql b/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql index 9a551595..b36115b4 100644 --- a/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql +++ b/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql @@ -57,7 +57,7 @@ with line_items as ( ), shipping as ( select * - from {{ ref('int_shopify_gql__order__shipping_aggregates')}} + from {{ ref('int_shopify_gql__order_shipping_aggregates')}} ), enhanced as ( diff --git a/models/shopify_graphql.yml b/models/shopify_graphql.yml index 9d7f3d1d..7d9e40ca 100644 --- a/models/shopify_graphql.yml +++ b/models/shopify_graphql.yml @@ -721,16 +721,16 @@ models: description: The transaction's type. - name: receipt description: A transaction receipt attached to the transaction by the gateway. - # - name: currency_exchange_id - # description: The ID of the adjustment. - # - name: currency_exchange_adjustment - # description: The difference between the amounts on the associated transaction and the parent transaction. - # - name: currency_exchange_original_amount - # description: The amount of the parent transaction in the shop currency. - # - name: currency_exchange_final_amount - # description: The amount of the associated transaction in the shop currency. - # - name: currency_exchange_currency - # description: The shop currency. + - name: currency_exchange_id + description: The ID of the adjustment. + - name: currency_exchange_adjustment + description: The difference between the amounts on the associated transaction and the parent transaction. + - name: currency_exchange_original_amount + description: The amount of the parent transaction in the shop currency. + - name: currency_exchange_final_amount + description: The amount of the associated transaction in the shop currency. + - name: currency_exchange_currency + description: The shop currency. - name: error_code description: A standardized error code, independent of the payment provider. - name: status @@ -1037,8 +1037,8 @@ models: description: Indicates whether the discount applies to 'all' or 'entitled' items. - name: target_type description: The type of target this discount applies to (e.g., `line_item` or `shipping_line`). - - name: value - description: Numeric value of the discount (e.g., percentage or fixed amount). + - name: value_amount + description: The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency. - name: value_type description: How the discount value is interpreted (e.g., 'percentage', 'fixed_amount'). - name: value_currency_code @@ -1174,8 +1174,6 @@ models: description: Count of distinct fulfillments being delivered to their final destination. - name: count_fulfillment_ready_for_pickup description: Count of distinct fulfillments ready for pickup at a shipping depot. - - name: count_fulfillment_picked_up - description: Count of distinct fulfillments successfully picked up on this day. - name: count_fulfillment_label_printed description: Count of distinct fulfillments for which a purchased shipping label has been printed on this day. - name: count_fulfillment_label_purchased diff --git a/packages.yml b/packages.yml index f677f20c..43396b30 100644 --- a/packages.yml +++ b/packages.yml @@ -1,6 +1,6 @@ packages: # - package: fivetran/shopify_source # version: [">=0.19.0", "<0.20.0"] -# - local: ../ECommerce/Shopify/dbt_shopify_source -- git: https://github.com/fivetran/dbt_shopify_source.git - revision: update/graphql \ No newline at end of file +- local: ../ECommerce/Shopify/dbt_shopify_source +# - git: https://github.com/fivetran/dbt_shopify_source.git +# revision: update/graphql \ No newline at end of file From a0ea490ed45ee9869f850517d0d45661e5de277b Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Fri, 1 Aug 2025 16:31:11 -0400 Subject: [PATCH 14/34] packages.yml --- packages.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages.yml b/packages.yml index 43396b30..f677f20c 100644 --- a/packages.yml +++ b/packages.yml @@ -1,6 +1,6 @@ packages: # - package: fivetran/shopify_source # version: [">=0.19.0", "<0.20.0"] -- local: ../ECommerce/Shopify/dbt_shopify_source -# - git: https://github.com/fivetran/dbt_shopify_source.git -# revision: update/graphql \ No newline at end of file +# - local: ../ECommerce/Shopify/dbt_shopify_source +- git: https://github.com/fivetran/dbt_shopify_source.git + revision: update/graphql \ No newline at end of file From 41e420c40afe41838f6df1c2195213142c5d8297 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Fri, 1 Aug 2025 16:58:39 -0400 Subject: [PATCH 15/34] docs --- .../graphql/shopify_gql__customer_emails.sql | 2 +- models/graphql/shopify_gql__customers.sql | 2 +- models/graphql/shopify_gql__discounts.sql | 2 +- models/graphql/shopify_gql__order_lines.sql | 4 +--- models/graphql/shopify_gql__orders.sql | 4 +--- models/graphql/shopify_gql__transactions.sql | 4 +--- models/shopify_graphql.yml | 24 +++++++++++-------- 7 files changed, 20 insertions(+), 22 deletions(-) diff --git a/models/graphql/shopify_gql__customer_emails.sql b/models/graphql/shopify_gql__customer_emails.sql index dd2e3f61..ed3b85b1 100644 --- a/models/graphql/shopify_gql__customer_emails.sql +++ b/models/graphql/shopify_gql__customer_emails.sql @@ -3,7 +3,7 @@ with customer_emails as ( select - {{ dbt_utils.star(from=ref('int_shopify_gql__customer_email_rollup'), except=["orders_count", "total_spent"]) }} + {{ dbt_utils.star(from=ref('int_shopify_gql__customer_email_rollup'), except=["orders_count", "total_spent", "unique_key"]) }} from {{ ref('int_shopify_gql__customer_email_rollup') }} ), orders as ( diff --git a/models/graphql/shopify_gql__customers.sql b/models/graphql/shopify_gql__customers.sql index 61856353..4e279168 100644 --- a/models/graphql/shopify_gql__customers.sql +++ b/models/graphql/shopify_gql__customers.sql @@ -3,7 +3,7 @@ with customers as ( select - {{ dbt_utils.star(from=ref('int_shopify_gql__customer'), except=["orders_count", "total_spent"]) }} + {{ dbt_utils.star(from=ref('int_shopify_gql__customer'), except=["orders_count", "total_spent", "unique_key"]) }} from {{ ref('int_shopify_gql__customer') }} ), orders as ( diff --git a/models/graphql/shopify_gql__discounts.sql b/models/graphql/shopify_gql__discounts.sql index 660ebbe2..5f2c5529 100644 --- a/models/graphql/shopify_gql__discounts.sql +++ b/models/graphql/shopify_gql__discounts.sql @@ -3,7 +3,7 @@ with discounts_enriched as ( select *, - {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as discounts_unique_key + {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as unique_key from {{ ref('int_shopify_gql__discount_code_enriched')}} ), diff --git a/models/graphql/shopify_gql__order_lines.sql b/models/graphql/shopify_gql__order_lines.sql index 0a3d5036..48335620 100644 --- a/models/graphql/shopify_gql__order_lines.sql +++ b/models/graphql/shopify_gql__order_lines.sql @@ -2,9 +2,7 @@ with order_lines as ( - select - *, - {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_line_id']) }} as order_lines_unique_key + select * from {{ ref('int_shopify_gql__order_line') }} ), product_variants as ( diff --git a/models/graphql/shopify_gql__orders.sql b/models/graphql/shopify_gql__orders.sql index c3a01646..8bafc4a7 100644 --- a/models/graphql/shopify_gql__orders.sql +++ b/models/graphql/shopify_gql__orders.sql @@ -2,9 +2,7 @@ with orders as ( - select - *, - {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_id']) }} as orders_unique_key + select * from {{ ref('int_shopify_gql__order') }} ), order_lines as ( diff --git a/models/graphql/shopify_gql__transactions.sql b/models/graphql/shopify_gql__transactions.sql index 20874994..55c06194 100644 --- a/models/graphql/shopify_gql__transactions.sql +++ b/models/graphql/shopify_gql__transactions.sql @@ -1,9 +1,7 @@ {{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }} with transactions as ( - select - *, - {{ dbt_utils.generate_surrogate_key(['source_relation', 'transaction_id'])}} as transactions_unique_id + select * from {{ var('shopify_gql_transaction') }} ), tender_transactions as ( diff --git a/models/shopify_graphql.yml b/models/shopify_graphql.yml index 7d9e40ca..49a78cf0 100644 --- a/models/shopify_graphql.yml +++ b/models/shopify_graphql.yml @@ -74,7 +74,7 @@ models: - name: shopify_gql__orders description: Each record represents an order in Shopify. columns: - - name: orders_unique_key + - name: unique_key description: Unique key representing an order. Hashed on 'order_id' and 'source_relation'. tests: - unique @@ -145,6 +145,8 @@ models: description: The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings. - name: note description: An optional note that a shop owner can attach to the order. + - name: number + description: The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store. - name: processed_timestamp description: The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports. - name: referring_site @@ -487,12 +489,12 @@ models: - name: shopify_gql__products description: Each record represents a product in Shopify. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - product_id - - source_relation columns: + - name: unique_key + description: Unique key representing a product. Hashed on 'product_id' and 'source_relation'. + tests: + - unique + - not_null - name: is_deleted description: Whether the record has been deleted in the source system. - name: _fivetran_synced @@ -555,7 +557,7 @@ models: - name: shopify_gql__order_lines description: Each record represents a line item of an order in Shopify. columns: - - name: order_lines_unique_key + - name: unique_key description: Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'. tests: - unique @@ -676,7 +678,7 @@ models: - name: shopify_gql__transactions description: Each record represents a transaction in Shopify. columns: - - name: transactions_unique_id + - name: unique_key description: Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'. tests: - unique @@ -759,7 +761,9 @@ models: description: Timestamp when the authorization expires. - name: authorization_code description: The authorization code associated with the transaction. - + - name: device_id + description: The ID for the device. + - name: shopify_gql__inventory_levels description: > Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of @@ -983,7 +987,7 @@ models: config: severity: warn # best practice for codes to be unique columns: - - name: discounts_unique_key + - name: unique_key description: Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'. tests: - unique From 25ece22504ff1ac913a3b8cc56cb4146ab1a90b3 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:09:23 -0400 Subject: [PATCH 16/34] model count --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 247dde76..45874d82 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Curious what these tables can do? Check out example visualizations from the [sho

### Materialized Models -Each Quickstart transformation job run materializes 107 models if all components of this data model are enabled and a REST API-based Shopify schema is being used. This count includes all staging, intermediate, and final models materialized as `view`, `table`, or `incremental`. +Each Quickstart transformation job run materializes 107 models if all components of this data model are enabled and a REST API-based Shopify schema is being used. It will materialize 114 models if run on a GraphQL API-based schema. This count includes all staging, intermediate, and final models materialized as `view`, `table`, or `incremental`. ## How do I use the dbt package? From ca225402c867228e620965c0723e3516064a92e1 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Mon, 4 Aug 2025 16:34:17 -0400 Subject: [PATCH 17/34] code --- ..._abandoned_checkout_discount_code_data.csv | 20 +++++++++---------- .../shopify_gql_order_discount_code_data.csv | 20 +++++++++---------- .../int_shopify_gql__order_discount_code.sql | 3 +-- ...ify_gql__discounts_abandoned_checkouts.sql | 1 - 4 files changed, 21 insertions(+), 23 deletions(-) diff --git a/integration_tests/seeds/shopify_gql_abandoned_checkout_discount_code_data.csv b/integration_tests/seeds/shopify_gql_abandoned_checkout_discount_code_data.csv index 2f74a6a6..33501b94 100644 --- a/integration_tests/seeds/shopify_gql_abandoned_checkout_discount_code_data.csv +++ b/integration_tests/seeds/shopify_gql_abandoned_checkout_discount_code_data.csv @@ -1,11 +1,11 @@ _fivetran_synced,checkout_id,code,index -2025-07-17 14:32:45,1001,bea81c1795a612d8fc3a232b156467bc,0 -2025-07-17 14:32:45,1002,fc1b3adf4c3740d5b04ea1c6d97fae91,1 -2025-07-17 14:32:45,1003,2c3f0d971d9a479c9630ab14beac676e,0 -2025-07-17 14:32:45,1004,9f43fd5b2c2b4e5b96ea4ad470abb2e1,0 -2025-07-17 14:32:45,1005,74c22128ed404a60aefb930c35c8a38c,1 -2025-07-17 14:32:45,1006,1c840b4c0418451bb0489e4b5ec9dfdd,0 -2025-07-17 14:32:45,1007,6c5d7716f4f04eafbb0d6f2295c9eacd,2 -2025-07-17 14:32:45,1008,b66a18a3c2cc4cabbf0bdfac08b0d1f7,0 -2025-07-17 14:32:45,1009,c45a59b6d5e34f26aa1b848c3e3cf89b,1 -2025-07-17 14:32:45,1010,ae81c12595694cc5aa1c2285e0f6880b,0 \ No newline at end of file +2025-07-17 14:32:45,1001,bea81c1795a612d8fc3a232b156467d1,0 +2025-07-17 14:32:45,1002,bea81c1795a612d8fc3a232b156467d2,1 +2025-07-17 14:32:45,1003,bea81c1795a612d8fc3a232b156467d3,0 +2025-07-17 14:32:45,1004,bea81c1795a612d8fc3a232b156467d4,0 +2025-07-17 14:32:45,1005,bea81c1795a612d8fc3a232b156467d5,1 +2025-07-17 14:32:45,1006,bea81c1795a612d8fc3a232b156467d6,0 +2025-07-17 14:32:45,1007,bea81c1795a612d8fc3a232b156467d7,2 +2025-07-17 14:32:45,1008,bea81c1795a612d8fc3a232b156467d8,0 +2025-07-17 14:32:45,1009,bea81c1795a612d8fc3a232b156467d9,1 +2025-07-17 14:32:45,1010,bea81c1795a612d8fc3a232b156467da,0 \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_order_discount_code_data.csv b/integration_tests/seeds/shopify_gql_order_discount_code_data.csv index 2557c8a3..3ecb4305 100644 --- a/integration_tests/seeds/shopify_gql_order_discount_code_data.csv +++ b/integration_tests/seeds/shopify_gql_order_discount_code_data.csv @@ -1,11 +1,11 @@ _fivetran_synced,code,index,order_id -2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467bc,0,5001 -2025-07-18 11:00:01,bea81c1795a612d8fc3a232b156467bd,1,5002 -2025-07-18 11:00:02,bea81c1795a612d8fc3a232b156467be,0,5003 -2025-07-18 11:00:03,bea81c1795a612d8fc3a232b156467bf,0,5004 -2025-07-18 11:00:04,bea81c1795a612d8fc3a232b156467c0,0,5005 -2025-07-18 11:00:05,bea81c1795a612d8fc3a232b156467c1,0,5006 -2025-07-18 11:00:06,bea81c1795a612d8fc3a232b156467c2,0,5007 -2025-07-18 11:00:07,bea81c1795a612d8fc3a232b156467c3,0,5008 -2025-07-18 11:00:08,bea81c1795a612d8fc3a232b156467c4,1,5009 -2025-07-18 11:00:09,bea81c1795a612d8fc3a232b156467c5,0,5010 \ No newline at end of file +2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467d1,0,5001 +2025-07-18 11:00:01,bea81c1795a612d8fc3a232b156467d2,1,5002 +2025-07-18 11:00:02,bea81c1795a612d8fc3a232b156467d3,0,5003 +2025-07-18 11:00:03,bea81c1795a612d8fc3a232b156467d4,0,5004 +2025-07-18 11:00:04,bea81c1795a612d8fc3a232b156467d5,0,5005 +2025-07-18 11:00:05,bea81c1795a612d8fc3a232b156467d6,0,5006 +2025-07-18 11:00:06,bea81c1795a612d8fc3a232b156467d7,0,5007 +2025-07-18 11:00:07,bea81c1795a612d8fc3a232b156467d8,0,5008 +2025-07-18 11:00:08,bea81c1795a612d8fc3a232b156467d9,1,5009 +2025-07-18 11:00:09,bea81c1795a612d8fc3a232b156467da,0,5010 \ No newline at end of file diff --git a/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql b/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql index 9d9ae847..4376525c 100644 --- a/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql +++ b/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql @@ -27,8 +27,7 @@ joined as ( from order_discount_code left join discount_application on order_discount_code.order_id = discount_application.order_id - {# OUTSTANDING: need code, or else some fanout will occur #} - {# and order_discount_code.index = discount_application.index #} + and order_discount_code.code = discount_application.code and order_discount_code.source_relation = discount_application.source_relation ) diff --git a/models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql b/models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql index c3cb67b0..b9642277 100644 --- a/models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql +++ b/models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql @@ -35,7 +35,6 @@ join_abandoned_checkout_discount_code as ( left join discount_application on abandoned_checkout_discount_code.code = discount_application.code and abandoned_checkout_discount_code.source_relation = discount_application.source_relation - {# NEED CODE to prevent potential fanout #} where coalesce(discount_application.value_type, '') != '' ), From 34fcf666074189527253d405c6271e6f462b0cfe Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Tue, 5 Aug 2025 10:35:25 -0400 Subject: [PATCH 18/34] seed data --- .../shopify_gql_discount_code_bxgy_data.csv | 20 +++++++++---------- ...y_gql_discount_code_free_shipping_data.csv | 20 +++++++++---------- ...nt_shopify_gql__discount_code_enriched.sql | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/integration_tests/seeds/shopify_gql_discount_code_bxgy_data.csv b/integration_tests/seeds/shopify_gql_discount_code_bxgy_data.csv index b59a62ec..64f96f35 100644 --- a/integration_tests/seeds/shopify_gql_discount_code_bxgy_data.csv +++ b/integration_tests/seeds/shopify_gql_discount_code_bxgy_data.csv @@ -1,11 +1,11 @@ _fivetran_synced,id,title,status,created_at,updated_at,starts_at,ends_at,applies_once_per_customer,async_usage_count,usage_limit,codes_count,codes_precision,combines_with_order_discounts,combines_with_product_discounts,combines_with_shipping_discounts,customer_selection_all_customers,total_sales_amount,total_sales_currency_code -2025-07-18 11:00:00,1001,bea81c1795a612d8fc3a232b156467bc,ACTIVE,2025-07-01 10:00:00,2025-07-10 12:00:00,2025-07-01 00:00:00,2025-07-31 23:59:59,TRUE,5,100,1,EXACT,FALSE,TRUE,FALSE,TRUE,150.00,USD -2025-07-18 11:01:00,1002,bea81c1795a612d8fc3a232b156467bd,ARCHIVED,2025-06-15 09:00:00,2025-07-05 08:30:00,2025-06-15 00:00:00,2025-07-15 23:59:59,FALSE,3,50,1,EXACT,TRUE,FALSE,TRUE,FALSE,75.50,USD -2025-07-18 11:02:00,1003,bea81c1795a612d8fc3a232b156467be,ACTIVE,2025-07-05 14:00:00,2025-07-17 15:45:00,2025-07-05 00:00:00,2025-07-25 23:59:59,TRUE,10,200,2,EXACT,TRUE,TRUE,TRUE,TRUE,300.00,USD -2025-07-18 11:03:00,1004,bea81c1795a612d8fc3a232b156467bf,EXPIRED,2025-05-20 12:00:00,2025-06-20 13:15:00,2025-05-20 00:00:00,2025-06-20 23:59:59,FALSE,2,30,1,EXACT,FALSE,FALSE,FALSE,FALSE,20.00,USD -2025-07-18 11:04:00,1005,bea81c1795a612d8fc3a232b156467c0,ACTIVE,2025-07-10 08:00:00,2025-07-18 10:00:00,2025-07-10 00:00:00,2025-08-10 23:59:59,TRUE,8,150,1,EXACT,TRUE,TRUE,FALSE,TRUE,180.75,USD -2025-07-18 11:05:00,1006,bea81c1795a612d8fc3a232b156467c1,ARCHIVED,2025-04-10 07:00:00,2025-05-10 09:00:00,2025-04-10 00:00:00,2025-05-10 23:59:59,FALSE,0,0,0,EXACT,FALSE,FALSE,FALSE,FALSE,0.00,USD -2025-07-18 11:06:00,1007,bea81c1795a612d8fc3a232b156467c2,ACTIVE,2025-07-15 11:00:00,2025-07-17 16:00:00,2025-07-15 00:00:00,2025-08-15 23:59:59,TRUE,6,80,1,EXACT,TRUE,FALSE,TRUE,TRUE,95.99,USD -2025-07-18 11:07:00,1008,bea81c1795a612d8fc3a232b156467c3,EXPIRED,2025-06-01 10:00:00,2025-07-01 10:30:00,2025-06-01 00:00:00,2025-07-01 23:59:59,FALSE,1,20,1,EXACT,FALSE,TRUE,FALSE,FALSE,10.50,USD -2025-07-18 11:08:00,1009,bea81c1795a612d8fc3a232b156467c4,ACTIVE,2025-07-18 09:00:00,2025-07-18 10:00:00,2025-07-18 00:00:00,2025-08-18 23:59:59,TRUE,4,90,2,EXACT,TRUE,TRUE,TRUE,TRUE,120.00,USD -2025-07-18 11:09:00,1010,bea81c1795a612d8fc3a232b156467c5,ARCHIVED,2025-03-01 08:00:00,2025-04-01 10:00:00,2025-03-01 00:00:00,2025-04-01 23:59:59,FALSE,2,40,1,EXACT,FALSE,FALSE,FALSE,FALSE,40.00,USD \ No newline at end of file +2025-07-18 11:00:00,3001,bea81c1795a612d8fc3a232b156467bc,ACTIVE,2025-07-01 10:00:00,2025-07-10 12:00:00,2025-07-01 00:00:00,2025-07-31 23:59:59,TRUE,5,100,1,EXACT,FALSE,TRUE,FALSE,TRUE,150.00,USD +2025-07-18 11:01:00,3002,bea81c1795a612d8fc3a232b156467bd,ARCHIVED,2025-06-15 09:00:00,2025-07-05 08:30:00,2025-06-15 00:00:00,2025-07-15 23:59:59,FALSE,3,50,1,EXACT,TRUE,FALSE,TRUE,FALSE,75.50,USD +2025-07-18 11:02:00,3003,bea81c1795a612d8fc3a232b156467be,ACTIVE,2025-07-05 14:00:00,2025-07-17 15:45:00,2025-07-05 00:00:00,2025-07-25 23:59:59,TRUE,10,200,2,EXACT,TRUE,TRUE,TRUE,TRUE,300.00,USD +2025-07-18 11:03:00,3004,bea81c1795a612d8fc3a232b156467bf,EXPIRED,2025-05-20 12:00:00,2025-06-20 13:15:00,2025-05-20 00:00:00,2025-06-20 23:59:59,FALSE,2,30,1,EXACT,FALSE,FALSE,FALSE,FALSE,20.00,USD +2025-07-18 11:04:00,3005,bea81c1795a612d8fc3a232b156467c0,ACTIVE,2025-07-10 08:00:00,2025-07-18 10:00:00,2025-07-10 00:00:00,2025-08-10 23:59:59,TRUE,8,150,1,EXACT,TRUE,TRUE,FALSE,TRUE,180.75,USD +2025-07-18 11:05:00,3006,bea81c1795a612d8fc3a232b156467c1,ARCHIVED,2025-04-10 07:00:00,2025-05-10 09:00:00,2025-04-10 00:00:00,2025-05-10 23:59:59,FALSE,0,0,0,EXACT,FALSE,FALSE,FALSE,FALSE,0.00,USD +2025-07-18 11:06:00,3007,bea81c1795a612d8fc3a232b156467c2,ACTIVE,2025-07-15 11:00:00,2025-07-17 16:00:00,2025-07-15 00:00:00,2025-08-15 23:59:59,TRUE,6,80,1,EXACT,TRUE,FALSE,TRUE,TRUE,95.99,USD +2025-07-18 11:07:00,3008,bea81c1795a612d8fc3a232b156467c3,EXPIRED,2025-06-01 10:00:00,2025-07-01 10:30:00,2025-06-01 00:00:00,2025-07-01 23:59:59,FALSE,1,20,1,EXACT,FALSE,TRUE,FALSE,FALSE,10.50,USD +2025-07-18 11:08:00,3009,bea81c1795a612d8fc3a232b156467c4,ACTIVE,2025-07-18 09:00:00,2025-07-18 10:00:00,2025-07-18 00:00:00,2025-08-18 23:59:59,TRUE,4,90,2,EXACT,TRUE,TRUE,TRUE,TRUE,120.00,USD +2025-07-18 11:09:00,3010,bea81c1795a612d8fc3a232b156467c5,ARCHIVED,2025-03-01 08:00:00,2025-04-01 10:00:00,2025-03-01 00:00:00,2025-04-01 23:59:59,FALSE,2,40,1,EXACT,FALSE,FALSE,FALSE,FALSE,40.00,USD \ No newline at end of file diff --git a/integration_tests/seeds/shopify_gql_discount_code_free_shipping_data.csv b/integration_tests/seeds/shopify_gql_discount_code_free_shipping_data.csv index 96eb4ad2..8499af39 100644 --- a/integration_tests/seeds/shopify_gql_discount_code_free_shipping_data.csv +++ b/integration_tests/seeds/shopify_gql_discount_code_free_shipping_data.csv @@ -1,11 +1,11 @@ _fivetran_synced,id,status,title,created_at,updated_at,starts_at,ends_at,recurring_cycle_limit,applies_once_per_customer,async_usage_count,usage_limit,codes_count,codes_precision,combines_with_order_discounts,combines_with_product_discounts,combines_with_shipping_discounts,customer_selection_all_customers,total_sales_amount,total_sales_currency_code -2025-07-18 11:00:00,2001,ACTIVE,bea81c1795a612d8fc3a232b156467aa,2025-07-01 00:00:00,2025-07-10 00:00:00,2025-07-01 00:00:00,2025-08-01 00:00:00,1,TRUE,5,100,10,EXACT,TRUE,FALSE,TRUE,TRUE,150.00,USD -2025-07-18 11:00:00,2002,EXPIRED,bea81c1795a612d8fc3a232b156467ab,2025-06-01 00:00:00,2025-07-01 00:00:00,2025-06-01 00:00:00,2025-07-01 00:00:00,2,FALSE,10,200,20,EXACT,FALSE,TRUE,FALSE,TRUE,300.00,USD -2025-07-18 11:00:00,2003,ACTIVE,bea81c1795a612d8fc3a232b156467ac,2025-07-05 00:00:00,2025-07-15 00:00:00,2025-07-05 00:00:00,2025-08-05 00:00:00,3,TRUE,3,50,5,ROUND,TRUE,TRUE,TRUE,FALSE,75.00,USD -2025-07-18 11:00:00,2004,DISABLED,bea81c1795a612d8fc3a232b156467ad,2025-06-15 00:00:00,2025-07-12 00:00:00,2025-06-15 00:00:00,2025-07-31 00:00:00,4,FALSE,7,150,15,EXACT,FALSE,FALSE,FALSE,TRUE,0.00,USD -2025-07-18 11:00:00,2005,ACTIVE,bea81c1795a612d8fc3a232b156467ae,2025-07-10 00:00:00,2025-07-16 00:00:00,2025-07-10 00:00:00,2025-08-10 00:00:00,5,TRUE,8,300,30,EXACT,TRUE,TRUE,FALSE,FALSE,125.50,USD -2025-07-18 11:00:00,2006,EXPIRED,bea81c1795a612d8fc3a232b156467af,2025-05-01 00:00:00,2025-06-01 00:00:00,2025-05-01 00:00:00,2025-06-01 00:00:00,1,FALSE,2,100,10,ROUND,FALSE,FALSE,TRUE,TRUE,210.75,USD -2025-07-18 11:00:00,2007,ACTIVE,bea81c1795a612d8fc3a232b156467b0,2025-07-11 00:00:00,2025-07-17 00:00:00,2025-07-11 00:00:00,2025-08-11 00:00:00,6,TRUE,1,30,3,EXACT,TRUE,FALSE,FALSE,TRUE,95.00,USD -2025-07-18 11:00:00,2008,DISABLED,bea81c1795a612d8fc3a232b156467b1,2025-06-20 00:00:00,2025-07-10 00:00:00,2025-06-20 00:00:00,2025-07-20 00:00:00,2,FALSE,4,120,12,EXACT,FALSE,FALSE,FALSE,FALSE,60.00,USD -2025-07-18 11:00:00,2009,ACTIVE,bea81c1795a612d8fc3a232b156467b2,2025-07-15 00:00:00,2025-07-17 00:00:00,2025-07-15 00:00:00,2025-08-15 00:00:00,7,TRUE,9,500,50,ROUND,TRUE,TRUE,TRUE,TRUE,180.99,USD -2025-07-18 11:00:00,2010,EXPIRED,bea81c1795a612d8fc3a232b156467b3,2025-04-01 00:00:00,2025-05-01 00:00:00,2025-04-01 00:00:00,2025-05-01 00:00:00,1,FALSE,0,75,7,EXACT,FALSE,FALSE,TRUE,FALSE,45.25,USD \ No newline at end of file +2025-07-18 11:00:00,4001,ACTIVE,bea81c1795a612d8fc3a232b156467aa,2025-07-01 00:00:00,2025-07-10 00:00:00,2025-07-01 00:00:00,2025-08-01 00:00:00,1,TRUE,5,100,10,EXACT,TRUE,FALSE,TRUE,TRUE,150.00,USD +2025-07-18 11:00:00,4002,EXPIRED,bea81c1795a612d8fc3a232b156467ab,2025-06-01 00:00:00,2025-07-01 00:00:00,2025-06-01 00:00:00,2025-07-01 00:00:00,2,FALSE,10,400,20,EXACT,FALSE,TRUE,FALSE,TRUE,300.00,USD +2025-07-18 11:00:00,4003,ACTIVE,bea81c1795a612d8fc3a232b156467ac,2025-07-05 00:00:00,2025-07-15 00:00:00,2025-07-05 00:00:00,2025-08-05 00:00:00,3,TRUE,3,50,5,ROUND,TRUE,TRUE,TRUE,FALSE,75.00,USD +2025-07-18 11:00:00,4004,DISABLED,bea81c1795a612d8fc3a232b156467ad,2025-06-15 00:00:00,2025-07-12 00:00:00,2025-06-15 00:00:00,2025-07-31 00:00:00,4,FALSE,7,150,15,EXACT,FALSE,FALSE,FALSE,TRUE,0.00,USD +2025-07-18 11:00:00,4005,ACTIVE,bea81c1795a612d8fc3a232b156467ae,2025-07-10 00:00:00,2025-07-16 00:00:00,2025-07-10 00:00:00,2025-08-10 00:00:00,5,TRUE,8,300,30,EXACT,TRUE,TRUE,FALSE,FALSE,125.50,USD +2025-07-18 11:00:00,4006,EXPIRED,bea81c1795a612d8fc3a232b156467af,2025-05-01 00:00:00,2025-06-01 00:00:00,2025-05-01 00:00:00,2025-06-01 00:00:00,1,FALSE,2,100,10,ROUND,FALSE,FALSE,TRUE,TRUE,210.75,USD +2025-07-18 11:00:00,4007,ACTIVE,bea81c1795a612d8fc3a232b156467b0,2025-07-11 00:00:00,2025-07-17 00:00:00,2025-07-11 00:00:00,2025-08-11 00:00:00,6,TRUE,1,30,3,EXACT,TRUE,FALSE,FALSE,TRUE,95.00,USD +2025-07-18 11:00:00,4008,DISABLED,bea81c1795a612d8fc3a232b156467b1,2025-06-20 00:00:00,2025-07-10 00:00:00,2025-06-20 00:00:00,2025-07-20 00:00:00,2,FALSE,4,120,12,EXACT,FALSE,FALSE,FALSE,FALSE,60.00,USD +2025-07-18 11:00:00,4009,ACTIVE,bea81c1795a612d8fc3a232b156467b2,2025-07-15 00:00:00,2025-07-17 00:00:00,2025-07-15 00:00:00,2025-08-15 00:00:00,7,TRUE,9,500,50,ROUND,TRUE,TRUE,TRUE,TRUE,180.99,USD +2025-07-18 11:00:00,4010,EXPIRED,bea81c1795a612d8fc3a232b156467b3,2025-04-01 00:00:00,2025-05-01 00:00:00,2025-04-01 00:00:00,2025-05-01 00:00:00,1,FALSE,0,75,7,EXACT,FALSE,FALSE,TRUE,FALSE,45.25,USD \ No newline at end of file diff --git a/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql b/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql index 257a5a5c..e1e0b7c7 100644 --- a/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql +++ b/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql @@ -140,7 +140,7 @@ discounts_with_applications as ( discount_applications.value_type from discounts_with_codes left join discount_applications - on discounts_with_codes.code = discount_applications.code -- NEED this + on discounts_with_codes.code = discount_applications.code and discounts_with_codes.source_relation = discount_applications.source_relation ) From dcb0e3219bba53cb4393987e736d0e0ff98e6946 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Wed, 6 Aug 2025 11:29:18 -0400 Subject: [PATCH 19/34] date --- CHANGELOG.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 792c2261..55819202 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ ## Feature Update: GraphQL API Support -On INSERT_DATE, Fivetran released a new version of the Shopify connector that leverages Shopify's newer [GraphQL](https://shopify.dev/docs/apps/build/graphql) API instead of the REST API, as Shopify deprecated the REST API in October 2024. The GraphQL and REST API-based schemas are slightly different, but this package is designed to run for either or, not both. It will do so based on the value of the `shopify_api` variable. +Fivetran very recently released a new version of the Shopify connector that leverages Shopify's newer [GraphQL](https://shopify.dev/docs/apps/build/graphql) API instead of the REST API, as Shopify deprecated the REST API in October 2024. The GraphQL and REST API-based schemas are slightly different, but this package is designed to run for either or, not both. It will do so based on the value of the `shopify_api` variable. By default, `shopify_api` is set to `rest` and will run the `shopify__*` models in the [rest](https://github.com/fivetran/dbt_shopify/tree/main/models/rest) folder. If you would like to run the package on a GraphQL-based schema, adjust `shopify_api` accordingly. This will run the `shopify_gql__*` models in the [graphql](https://github.com/fivetran/dbt_shopify/tree/main/models/graphql) folder: diff --git a/README.md b/README.md index 45874d82..40f5e76f 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ dispatch: ``` ### Step 3: Define REST API or GraphQL API Source -On INSERT_DATE, Fivetran released a new version of the Shopify connector that leverages Shopify's newer [GraphQL](https://shopify.dev/docs/apps/build/graphql) API instead of the REST API, as Shopify deprecated the REST API in October 2024. The GraphQL and REST API-based schemas are slightly different, but this package is designed to run for either or, not both. It will do so based on the value of the `shopify_api` variable. +Fivetran very recently released a new version of the Shopify connector that leverages Shopify's newer [GraphQL](https://shopify.dev/docs/apps/build/graphql) API instead of the REST API, as Shopify deprecated the REST API in October 2024. The GraphQL and REST API-based schemas are slightly different, but this package is designed to run for either or, not both. It will do so based on the value of the `shopify_api` variable. By default, `shopify_api` is set to `rest` and will run the `shopify__*` models in the [rest](https://github.com/fivetran/dbt_shopify/tree/main/models/rest) folder. If you would like to run the package on a GraphQL-based schema, adjust `shopify_api` accordingly. This will run the `shopify_gql__*` models in the [graphql](https://github.com/fivetran/dbt_shopify/tree/main/models/graphql) folder: From f32b40080e1b506639693dacc4d76e8e88e1796c Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Wed, 6 Aug 2025 13:53:45 -0400 Subject: [PATCH 20/34] docs generator seed data --- .../seeds/shopify_gql_metafield_data.csv | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/integration_tests/seeds/shopify_gql_metafield_data.csv b/integration_tests/seeds/shopify_gql_metafield_data.csv index 4d4f2f52..d8063d58 100644 --- a/integration_tests/seeds/shopify_gql_metafield_data.csv +++ b/integration_tests/seeds/shopify_gql_metafield_data.csv @@ -1,11 +1,11 @@ _fivetran_synced,created_at,description,id,key,namespace,owner_id,owner_resource,type,value_type,updated_at,value -2025-07-18 11:00:00,2025-07-17 10:00:00,bea81c1795a612d8fc3a232b156467bc,7001,bea81c1795a612d8fc3a232b156467bc,bea81c1795a612d8fc3a232b156467bc,5001,product,boolean,string,2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467bc -2025-07-18 11:01:00,2025-07-17 09:30:00,bea81c1795a612d8fc3a232b156467bd,7002,bea81c1795a612d8fc3a232b156467bd,bea81c1795a612d8fc3a232b156467bd,5002,collection,string,string,2025-07-18 11:01:00,bea81c1795a612d8fc3a232b156467bd -2025-07-18 11:02:00,2025-07-16 08:00:00,bea81c1795a612d8fc3a232b156467be,7003,bea81c1795a612d8fc3a232b156467be,bea81c1795a612d8fc3a232b156467be,5003,customer,integer,string,2025-07-18 11:02:00,bea81c1795a612d8fc3a232b156467be -2025-07-18 11:03:00,2025-07-15 07:00:00,bea81c1795a612d8fc3a232b156467bf,7004,bea81c1795a612d8fc3a232b156467bf,bea81c1795a612d8fc3a232b156467bf,5004,order,json,string,2025-07-18 11:03:00,bea81c1795a612d8fc3a232b156467bf -2025-07-18 11:04:00,2025-07-14 06:00:00,bea81c1795a612d8fc3a232b156467c0,7005,bea81c1795a612d8fc3a232b156467c0,bea81c1795a612d8fc3a232b156467c0,5005,draft_order,string,string,2025-07-18 11:04:00,bea81c1795a612d8fc3a232b156467c0 -2025-07-18 11:05:00,2025-07-13 05:00:00,bea81c1795a612d8fc3a232b156467c1,7006,bea81c1795a612d8fc3a232b156467c1,bea81c1795a612d8fc3a232b156467c1,5006,product_variant,boolean,string,2025-07-18 11:05:00,bea81c1795a612d8fc3a232b156467c1 -2025-07-18 11:06:00,2025-07-12 04:00:00,bea81c1795a612d8fc3a232b156467c2,7007,bea81c1795a612d8fc3a232b156467c2,bea81c1795a612d8fc3a232b156467c2,5007,product,integer,string,2025-07-18 11:06:00,bea81c1795a612d8fc3a232b156467c2 -2025-07-18 11:07:00,2025-07-11 03:00:00,bea81c1795a612d8fc3a232b156467c3,7008,bea81c1795a612d8fc3a232b156467c3,bea81c1795a612d8fc3a232b156467c3,5008,collection,string,string,2025-07-18 11:07:00,bea81c1795a612d8fc3a232b156467c3 -2025-07-18 11:08:00,2025-07-10 02:00:00,bea81c1795a612d8fc3a232b156467c4,7009,bea81c1795a612d8fc3a232b156467c4,bea81c1795a612d8fc3a232b156467c4,5009,customer,json,string,2025-07-18 11:08:00,bea81c1795a612d8fc3a232b156467c4 -2025-07-18 11:09:00,2025-07-09 01:00:00,bea81c1795a612d8fc3a232b156467c5,7010,bea81c1795a612d8fc3a232b156467c5,bea81c1795a612d8fc3a232b156467c5,5010,order,boolean,string,2025-07-18 11:09:00,bea81c1795a612d8fc3a232b156467c5 \ No newline at end of file +2025-07-18 11:00:00,2025-07-17 10:00:00,bea81c1795a612d8fc3a232b156467bc,7001,brenbre,bea81c1795a612d8fc3a232b156467bc,5001,product,boolean,string,2025-07-18 11:00:00,bea81c1795a612d8fc3a232b156467bc +2025-07-18 11:01:00,2025-07-17 09:30:00,bea81c1795a612d8fc3a232b156467bd,7002,gwhebwrb,bea81c1795a612d8fc3a232b156467bd,5002,collection,string,string,2025-07-18 11:01:00,bea81c1795a612d8fc3a232b156467bd +2025-07-18 11:02:00,2025-07-16 08:00:00,bea81c1795a612d8fc3a232b156467be,7003,bwrtbnwrj,bea81c1795a612d8fc3a232b156467be,5003,customer,integer,string,2025-07-18 11:02:00,bea81c1795a612d8fc3a232b156467be +2025-07-18 11:03:00,2025-07-15 07:00:00,bea81c1795a612d8fc3a232b156467bf,7004,htynetnbw,bea81c1795a612d8fc3a232b156467bf,5004,order,json,string,2025-07-18 11:03:00,bea81c1795a612d8fc3a232b156467bf +2025-07-18 11:04:00,2025-07-14 06:00:00,bea81c1795a612d8fc3a232b156467c0,7005,gwrgew,bea81c1795a612d8fc3a232b156467c0,5005,shop,string,string,2025-07-18 11:04:00,bea81c1795a612d8fc3a232b156467c0 +2025-07-18 11:05:00,2025-07-13 05:00:00,bea81c1795a612d8fc3a232b156467c1,7006,gterwbvre,bea81c1795a612d8fc3a232b156467c1,5006,product_variant,boolean,string,2025-07-18 11:05:00,bea81c1795a612d8fc3a232b156467c1 +2025-07-18 11:06:00,2025-07-12 04:00:00,bea81c1795a612d8fc3a232b156467c2,7007,gtbrwhbwbg42,bea81c1795a612d8fc3a232b156467c2,5007,product,integer,string,2025-07-18 11:06:00,bea81c1795a612d8fc3a232b156467c2 +2025-07-18 11:07:00,2025-07-11 03:00:00,bea81c1795a612d8fc3a232b156467c3,7008,wgewvevw,bea81c1795a612d8fc3a232b156467c3,5008,collection,string,string,2025-07-18 11:07:00,bea81c1795a612d8fc3a232b156467c3 +2025-07-18 11:08:00,2025-07-10 02:00:00,bea81c1795a612d8fc3a232b156467c4,7009,brewbrewbre,bea81c1795a612d8fc3a232b156467c4,5009,customer,json,string,2025-07-18 11:08:00,bea81c1795a612d8fc3a232b156467c4 +2025-07-18 11:09:00,2025-07-09 01:00:00,bea81c1795a612d8fc3a232b156467c5,7010,b4wrebrterhrbe,bea81c1795a612d8fc3a232b156467c5,5010,order,boolean,string,2025-07-18 11:09:00,bea81c1795a612d8fc3a232b156467c5 \ No newline at end of file From 2a65bcef2b435f24284eb28598e8b1d56ea4a501 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Wed, 6 Aug 2025 14:31:37 -0400 Subject: [PATCH 21/34] try materializing as views --- dbt_project.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index b07d6649..d248927c 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -17,8 +17,7 @@ models: int_shopify_gql__customer_email_rollup: +materialized: view # so we can use the dbt_utils.star macro base: - int_shopify_gql__customer: - +materialized: view # so we can use the dbt_utils.star macro + +materialized: view # so we can use the dbt_utils.star macro vars: shopify: From 38452d7c44d9e3f0d8551bb901b06b5439a81483 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 6 Aug 2025 18:36:47 +0000 Subject: [PATCH 22/34] Generate dbt docs via GitHub Actions --- docs/catalog.json | 2 +- docs/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/catalog.json b/docs/catalog.json index dfeeb281..d3839553 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.10.5", "generated_at": "2025-07-23T19:32:43.574128Z", "invocation_id": "b358fbbb-0b74-4925-bfa5-ecabf87949f8", "invocation_started_at": "2025-07-23T19:32:36.577418Z", "env": {}}, "nodes": {"seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_integration_tests.shopify_abandoned_checkout_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data"}, "seed.shopify_integration_tests.shopify_collection_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_data"}, "seed.shopify_integration_tests.shopify_collection_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data"}, "seed.shopify_integration_tests.shopify_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_data"}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data"}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_integration_tests.shopify_discount_allocation_data"}, "seed.shopify_integration_tests.shopify_discount_application_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data"}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data"}, "seed.shopify_integration_tests.shopify_discount_code_basic_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data"}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data"}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data"}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_integration_tests.shopify_discount_redeem_code_data"}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data"}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data"}, "seed.shopify_integration_tests.shopify_inventory_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data"}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data"}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data"}, "seed.shopify_integration_tests.shopify_location_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_integration_tests.shopify_location_data"}, "seed.shopify_integration_tests.shopify_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_data"}, "seed.shopify_integration_tests.shopify_media_image_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_image_data"}, "seed.shopify_integration_tests.shopify_metafield_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_metafield_data"}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data"}, "seed.shopify_integration_tests.shopify_order_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_data"}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data"}, "seed.shopify_integration_tests.shopify_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_data"}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data"}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data"}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data"}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data"}, "seed.shopify_integration_tests.shopify_order_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data"}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data"}, "seed.shopify_integration_tests.shopify_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_data"}, "seed.shopify_integration_tests.shopify_product_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_media_data"}, "seed.shopify_integration_tests.shopify_product_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data"}, "seed.shopify_integration_tests.shopify_product_variant_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data"}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_variant_media_data"}, "seed.shopify_integration_tests.shopify_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_integration_tests.shopify_refund_data"}, "seed.shopify_integration_tests.shopify_shop_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_shop_data"}, "seed.shopify_integration_tests.shopify_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data"}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_integration_tests.shopify_tender_transaction_data"}, "seed.shopify_integration_tests.shopify_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_transaction_data"}, "model.shopify.int_shopify__customer_email_rollup": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify__customer_email_rollup"}, "model.shopify.shopify__calendar": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__calendar", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__calendar"}, "model.shopify.shopify__collection_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__collection_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__collection_metafields"}, "model.shopify.shopify__customer_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "date", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_cohorts"}, "model.shopify.shopify__customer_email_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_email_cohorts"}, "model.shopify.shopify__customer_emails": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_emails", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 21, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_order_value": {"type": "double precision", "index": 24, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 25, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 26, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 27, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 28, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 29, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 30, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 31, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 32, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 33, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 34, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 35, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 36, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 37, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 38, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 39, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_emails"}, "model.shopify.shopify__customer_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "metafield_star_wars_firstname": {"type": "text", "index": 21, "name": "metafield_star_wars_firstname", "comment": null}, "metafield_star_wars_fullname": {"type": "text", "index": 22, "name": "metafield_star_wars_fullname", "comment": null}, "metafield_star_wars_isjedi": {"type": "text", "index": 23, "name": "metafield_star_wars_isjedi", "comment": null}, "metafield_star_wars_lastname": {"type": "text", "index": 24, "name": "metafield_star_wars_lastname", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_metafields"}, "model.shopify.shopify__customers": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customers", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 5, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 9, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 10, "name": "note", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 12, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 13, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 14, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 15, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 19, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_order_timestamp", "comment": null}, "customer_tags": {"type": "text", "index": 22, "name": "customer_tags", "comment": null}, "avg_order_value": {"type": "double precision", "index": 23, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 24, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 25, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 26, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 27, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 28, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 29, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 30, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 31, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 32, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 33, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 34, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 35, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 36, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 37, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 38, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customers"}, "model.shopify.shopify__daily_shop": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__daily_shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "shop_id": {"type": "integer", "index": 2, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "domain": {"type": "text", "index": 4, "name": "domain", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 7, "name": "enabled_presentment_currencies", "comment": null}, "iana_timezone": {"type": "text", "index": 8, "name": "iana_timezone", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "count_orders": {"type": "bigint", "index": 11, "name": "count_orders", "comment": null}, "count_line_items": {"type": "numeric", "index": 12, "name": "count_line_items", "comment": null}, "avg_line_item_count": {"type": "numeric", "index": 13, "name": "avg_line_item_count", "comment": null}, "count_customers": {"type": "bigint", "index": 14, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 15, "name": "count_customer_emails", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 16, "name": "order_adjusted_total", "comment": null}, "avg_order_value": {"type": "double precision", "index": 17, "name": "avg_order_value", "comment": null}, "shipping_cost": {"type": "double precision", "index": 18, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "numeric", "index": 19, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 20, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "numeric", "index": 21, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 22, "name": "refund_total_tax", "comment": null}, "total_discounts": {"type": "double precision", "index": 23, "name": "total_discounts", "comment": null}, "avg_discount": {"type": "double precision", "index": 24, "name": "avg_discount", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 25, "name": "shipping_discount_amount", "comment": null}, "avg_shipping_discount_amount": {"type": "double precision", "index": 26, "name": "avg_shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 27, "name": "percentage_calc_discount_amount", "comment": null}, "avg_percentage_calc_discount_amount": {"type": "double precision", "index": 28, "name": "avg_percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 29, "name": "fixed_amount_discount_amount", "comment": null}, "avg_fixed_amount_discount_amount": {"type": "double precision", "index": 30, "name": "avg_fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "numeric", "index": 31, "name": "count_discount_codes_applied", "comment": null}, "count_locations_ordered_from": {"type": "bigint", "index": 32, "name": "count_locations_ordered_from", "comment": null}, "count_orders_with_discounts": {"type": "bigint", "index": 33, "name": "count_orders_with_discounts", "comment": null}, "count_orders_with_refunds": {"type": "bigint", "index": 34, "name": "count_orders_with_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 36, "name": "last_order_timestamp", "comment": null}, "quantity_sold": {"type": "bigint", "index": 37, "name": "quantity_sold", "comment": null}, "quantity_refunded": {"type": "numeric", "index": 38, "name": "quantity_refunded", "comment": null}, "quantity_net": {"type": "numeric", "index": 39, "name": "quantity_net", "comment": null}, "avg_quantity_sold": {"type": "bigint", "index": 40, "name": "avg_quantity_sold", "comment": null}, "avg_quantity_net": {"type": "numeric", "index": 41, "name": "avg_quantity_net", "comment": null}, "count_variants_sold": {"type": "bigint", "index": 42, "name": "count_variants_sold", "comment": null}, "count_products_sold": {"type": "bigint", "index": 43, "name": "count_products_sold", "comment": null}, "quantity_gift_cards_sold": {"type": "numeric", "index": 44, "name": "quantity_gift_cards_sold", "comment": null}, "quantity_requiring_shipping": {"type": "numeric", "index": 45, "name": "quantity_requiring_shipping", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 46, "name": "count_abandoned_checkouts", "comment": null}, "count_customers_abandoned_checkout": {"type": "bigint", "index": 47, "name": "count_customers_abandoned_checkout", "comment": null}, "count_customer_emails_abandoned_checkout": {"type": "bigint", "index": 48, "name": "count_customer_emails_abandoned_checkout", "comment": null}, "count_fulfillment_attempted_delivery": {"type": "bigint", "index": 49, "name": "count_fulfillment_attempted_delivery", "comment": null}, "count_fulfillment_delayed": {"type": "bigint", "index": 50, "name": "count_fulfillment_delayed", "comment": null}, "count_fulfillment_delivered": {"type": "bigint", "index": 51, "name": "count_fulfillment_delivered", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 52, "name": "count_fulfillment_failure", "comment": null}, "count_fulfillment_in_transit": {"type": "bigint", "index": 53, "name": "count_fulfillment_in_transit", "comment": null}, "count_fulfillment_out_for_delivery": {"type": "bigint", "index": 54, "name": "count_fulfillment_out_for_delivery", "comment": null}, "count_fulfillment_ready_for_pickup": {"type": "bigint", "index": 55, "name": "count_fulfillment_ready_for_pickup", "comment": null}, "count_fulfillment_picked_up": {"type": "bigint", "index": 56, "name": "count_fulfillment_picked_up", "comment": null}, "count_fulfillment_label_printed": {"type": "bigint", "index": 57, "name": "count_fulfillment_label_printed", "comment": null}, "count_fulfillment_label_purchased": {"type": "bigint", "index": 58, "name": "count_fulfillment_label_purchased", "comment": null}, "count_fulfillment_confirmed": {"type": "bigint", "index": 59, "name": "count_fulfillment_confirmed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__daily_shop"}, "model.shopify.shopify__discounts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__discounts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"code": {"type": "character varying", "index": 1, "name": "code", "comment": null}, "discount_code_id": {"type": "bigint", "index": 2, "name": "discount_code_id", "comment": null}, "discount_type": {"type": "text", "index": 3, "name": "discount_type", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_count": {"type": "integer", "index": 5, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 14, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 15, "name": "status", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 17, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 18, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 20, "name": "usage_limit", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "allocation_method": {"type": "character varying", "index": 22, "name": "allocation_method", "comment": null}, "description": {"type": "character varying", "index": 23, "name": "description", "comment": null}, "target_selection": {"type": "character varying", "index": 24, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 25, "name": "target_type", "comment": null}, "application_type": {"type": "character varying", "index": 26, "name": "application_type", "comment": null}, "value": {"type": "double precision", "index": 27, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 28, "name": "value_type", "comment": null}, "discounts_unique_key": {"type": "text", "index": 29, "name": "discounts_unique_key", "comment": null}, "count_orders": {"type": "bigint", "index": 30, "name": "count_orders", "comment": null}, "avg_order_discount_amount": {"type": "double precision", "index": 31, "name": "avg_order_discount_amount", "comment": null}, "total_order_discount_amount": {"type": "double precision", "index": 32, "name": "total_order_discount_amount", "comment": null}, "total_order_line_items_price": {"type": "double precision", "index": 33, "name": "total_order_line_items_price", "comment": null}, "total_order_shipping_cost": {"type": "double precision", "index": 34, "name": "total_order_shipping_cost", "comment": null}, "total_order_refund_amount": {"type": "double precision", "index": 35, "name": "total_order_refund_amount", "comment": null}, "count_customers": {"type": "bigint", "index": 36, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 37, "name": "count_customer_emails", "comment": null}, "total_abandoned_checkout_discount_amount": {"type": "double precision", "index": 38, "name": "total_abandoned_checkout_discount_amount", "comment": null}, "total_abandoned_checkout_shipping_price": {"type": "double precision", "index": 39, "name": "total_abandoned_checkout_shipping_price", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 40, "name": "count_abandoned_checkouts", "comment": null}, "count_abandoned_checkout_customers": {"type": "bigint", "index": 41, "name": "count_abandoned_checkout_customers", "comment": null}, "count_abandoned_checkout_customer_emails": {"type": "bigint", "index": 42, "name": "count_abandoned_checkout_customer_emails", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__discounts"}, "model.shopify.shopify__inventory_levels": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__inventory_levels", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "sku": {"type": "text", "index": 10, "name": "sku", "comment": null}, "is_inventory_item_deleted": {"type": "boolean", "index": 11, "name": "is_inventory_item_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 14, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 15, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 16, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 17, "name": "is_inventory_quantity_tracked", "comment": null}, "inventory_item_created_at": {"type": "timestamp without time zone", "index": 18, "name": "inventory_item_created_at", "comment": null}, "inventory_item_updated_at": {"type": "timestamp without time zone", "index": 19, "name": "inventory_item_updated_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 20, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 21, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 22, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 23, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 24, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 25, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 26, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 27, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 28, "name": "tracked_editable_reason", "comment": null}, "location_name": {"type": "text", "index": 29, "name": "location_name", "comment": null}, "is_location_deleted": {"type": "boolean", "index": 30, "name": "is_location_deleted", "comment": null}, "is_location_active": {"type": "boolean", "index": 31, "name": "is_location_active", "comment": null}, "address_1": {"type": "text", "index": 32, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 33, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 34, "name": "city", "comment": null}, "country": {"type": "text", "index": 35, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 36, "name": "country_code", "comment": null}, "is_legacy_location": {"type": "boolean", "index": 37, "name": "is_legacy_location", "comment": null}, "province": {"type": "text", "index": 38, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 39, "name": "province_code", "comment": null}, "phone": {"type": "integer", "index": 40, "name": "phone", "comment": null}, "zip": {"type": "integer", "index": 41, "name": "zip", "comment": null}, "location_created_at": {"type": "timestamp without time zone", "index": 42, "name": "location_created_at", "comment": null}, "location_updated_at": {"type": "timestamp without time zone", "index": 43, "name": "location_updated_at", "comment": null}, "variant_id": {"type": "bigint", "index": 44, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 45, "name": "product_id", "comment": null}, "variant_title": {"type": "text", "index": 46, "name": "variant_title", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 47, "name": "variant_inventory_policy", "comment": null}, "variant_price": {"type": "double precision", "index": 48, "name": "variant_price", "comment": null}, "variant_media_id": {"type": "bigint", "index": 49, "name": "variant_media_id", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 50, "name": "variant_fulfillment_service", "comment": null}, "variant_inventory_management": {"type": "text", "index": 51, "name": "variant_inventory_management", "comment": null}, "is_variant_taxable": {"type": "boolean", "index": 52, "name": "is_variant_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 53, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 54, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 55, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 56, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 57, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 58, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 59, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 60, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 61, "name": "variant_tax_code", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 62, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 63, "name": "variant_updated_at", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 64, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 65, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 66, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 67, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 68, "name": "variant_sellable_online_quantity", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 69, "name": "subtotal_sold", "comment": null}, "quantity_sold": {"type": "bigint", "index": 70, "name": "quantity_sold", "comment": null}, "count_distinct_orders": {"type": "bigint", "index": 71, "name": "count_distinct_orders", "comment": null}, "count_distinct_customers": {"type": "bigint", "index": 72, "name": "count_distinct_customers", "comment": null}, "count_distinct_customer_emails": {"type": "bigint", "index": 73, "name": "count_distinct_customer_emails", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 74, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 75, "name": "last_order_timestamp", "comment": null}, "subtotal_sold_refunds": {"type": "numeric", "index": 76, "name": "subtotal_sold_refunds", "comment": null}, "quantity_sold_refunds": {"type": "numeric", "index": 77, "name": "quantity_sold_refunds", "comment": null}, "count_fulfillment_pending": {"type": "bigint", "index": 78, "name": "count_fulfillment_pending", "comment": null}, "count_fulfillment_open": {"type": "bigint", "index": 79, "name": "count_fulfillment_open", "comment": null}, "count_fulfillment_success": {"type": "bigint", "index": 80, "name": "count_fulfillment_success", "comment": null}, "count_fulfillment_cancelled": {"type": "bigint", "index": 81, "name": "count_fulfillment_cancelled", "comment": null}, "count_fulfillment_error": {"type": "bigint", "index": 82, "name": "count_fulfillment_error", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 83, "name": "count_fulfillment_failure", "comment": null}, "incoming_quantity": {"type": "bigint", "index": 84, "name": "incoming_quantity", "comment": null}, "on_hand_quantity": {"type": "bigint", "index": 85, "name": "on_hand_quantity", "comment": null}, "available_quantity": {"type": "bigint", "index": 86, "name": "available_quantity", "comment": null}, "committed_quantity": {"type": "bigint", "index": 87, "name": "committed_quantity", "comment": null}, "reserved_quantity": {"type": "bigint", "index": 88, "name": "reserved_quantity", "comment": null}, "damaged_quantity": {"type": "bigint", "index": 89, "name": "damaged_quantity", "comment": null}, "safety_stock_quantity": {"type": "bigint", "index": 90, "name": "safety_stock_quantity", "comment": null}, "quality_control_quantity": {"type": "bigint", "index": 91, "name": "quality_control_quantity", "comment": null}, "net_subtotal_sold": {"type": "numeric", "index": 92, "name": "net_subtotal_sold", "comment": null}, "net_quantity_sold": {"type": "numeric", "index": 93, "name": "net_quantity_sold", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__inventory_levels"}, "model.shopify.shopify__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"header_id": {"type": "bigint", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "numeric(28,6)", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "numeric(28,6)", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "numeric(28,6)", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "numeric(28,6)", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "numeric(28,6)", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "numeric(28,6)", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "text", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "double precision", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "text", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "bigint", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "source_relation": {"type": "text", "index": 37, "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.shopify.shopify__line_item_enhanced"}, "model.shopify.shopify__order_lines": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_lines", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "name": "source_relation", "comment": null}, "order_lines_unique_key": {"type": "text", "index": 29, "name": "order_lines_unique_key", "comment": null}, "restock_types": {"type": "text", "index": 30, "name": "restock_types", "comment": null}, "refunded_quantity": {"type": "bigint", "index": 31, "name": "refunded_quantity", "comment": null}, "refunded_subtotal": {"type": "bigint", "index": 32, "name": "refunded_subtotal", "comment": null}, "quantity_net_refunds": {"type": "bigint", "index": 33, "name": "quantity_net_refunds", "comment": null}, "subtotal_net_refunds": {"type": "bigint", "index": 34, "name": "subtotal_net_refunds", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 35, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 36, "name": "variant_updated_at", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 37, "name": "inventory_item_id", "comment": null}, "media_id": {"type": "bigint", "index": 38, "name": "media_id", "comment": null}, "variant_price": {"type": "double precision", "index": 39, "name": "variant_price", "comment": null}, "variant_sku": {"type": "text", "index": 40, "name": "variant_sku", "comment": null}, "variant_position": {"type": "integer", "index": 41, "name": "variant_position", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 42, "name": "variant_inventory_policy", "comment": null}, "variant_compare_at_price": {"type": "integer", "index": 43, "name": "variant_compare_at_price", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 44, "name": "variant_fulfillment_service", "comment": null}, "variant_is_taxable": {"type": "boolean", "index": 45, "name": "variant_is_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 46, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 47, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 48, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 49, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 50, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 51, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 52, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 53, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 54, "name": "variant_tax_code", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 55, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 56, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 57, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 58, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 59, "name": "variant_sellable_online_quantity", "comment": null}, "order_line_tax": {"type": "double precision", "index": 60, "name": "order_line_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_lines"}, "model.shopify.shopify__order_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 81, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_howmany": {"type": "text", "index": 82, "name": "metafield_avengers_howmany", "comment": null}, "metafield_star_wars_isinspace": {"type": "text", "index": 83, "name": "metafield_star_wars_isinspace", "comment": null}, "metafield_star_wars_numbersequels": {"type": "text", "index": 84, "name": "metafield_star_wars_numbersequels", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_metafields"}, "model.shopify.shopify__orders": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "orders_unique_key": {"type": "text", "index": 81, "name": "orders_unique_key", "comment": null}, "shipping_cost": {"type": "double precision", "index": 82, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "bigint", "index": 83, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 84, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "bigint", "index": 85, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 86, "name": "refund_total_tax", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 87, "name": "order_adjusted_total", "comment": null}, "line_item_count": {"type": "bigint", "index": 88, "name": "line_item_count", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 89, "name": "shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 90, "name": "percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 91, "name": "fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "bigint", "index": 92, "name": "count_discount_codes_applied", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 93, "name": "order_total_shipping_tax", "comment": null}, "order_tags": {"type": "text", "index": 94, "name": "order_tags", "comment": null}, "order_url_tags": {"type": "text", "index": 95, "name": "order_url_tags", "comment": null}, "number_of_fulfillments": {"type": "bigint", "index": 96, "name": "number_of_fulfillments", "comment": null}, "fulfillment_services": {"type": "text", "index": 97, "name": "fulfillment_services", "comment": null}, "tracking_companies": {"type": "text", "index": 98, "name": "tracking_companies", "comment": null}, "tracking_numbers": {"type": "text", "index": 99, "name": "tracking_numbers", "comment": null}, "customer_order_seq_number": {"type": "bigint", "index": 100, "name": "customer_order_seq_number", "comment": null}, "new_vs_repeat": {"type": "text", "index": 101, "name": "new_vs_repeat", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders"}, "model.shopify.shopify__orders__order_line_aggregates": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "line_item_count": {"type": "bigint", "index": 3, "name": "line_item_count", "comment": null}, "order_total_quantity": {"type": "bigint", "index": 4, "name": "order_total_quantity", "comment": null}, "order_total_tax": {"type": "double precision", "index": 5, "name": "order_total_tax", "comment": null}, "order_total_discount": {"type": "bigint", "index": 6, "name": "order_total_discount", "comment": null}, "order_total_shipping": {"type": "double precision", "index": 7, "name": "order_total_shipping", "comment": null}, "order_total_shipping_with_discounts": {"type": "double precision", "index": 8, "name": "order_total_shipping_with_discounts", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 9, "name": "order_total_shipping_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders__order_line_aggregates"}, "model.shopify.shopify__product_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__product_metafields"}, "model.shopify.shopify__product_variant_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 31, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_wherearethey": {"type": "text", "index": 32, "name": "metafield_avengers_wherearethey", "comment": null}, "metafield_star_wars_wheninspace": {"type": "text", "index": 33, "name": "metafield_star_wars_wheninspace", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__product_variant_metafields"}, "model.shopify.shopify__products": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__products", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "collections": {"type": "text", "index": 14, "name": "collections", "comment": null}, "tags": {"type": "text", "index": 15, "name": "tags", "comment": null}, "count_variants": {"type": "bigint", "index": 16, "name": "count_variants", "comment": null}, "has_product_media": {"type": "boolean", "index": 17, "name": "has_product_media", "comment": null}, "total_quantity_sold": {"type": "bigint", "index": 18, "name": "total_quantity_sold", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 19, "name": "subtotal_sold", "comment": null}, "quantity_sold_net_refunds": {"type": "numeric", "index": 20, "name": "quantity_sold_net_refunds", "comment": null}, "subtotal_sold_net_refunds": {"type": "numeric", "index": 21, "name": "subtotal_sold_net_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_quantity_per_order_line": {"type": "numeric", "index": 24, "name": "avg_quantity_per_order_line", "comment": null}, "product_total_discount": {"type": "bigint", "index": 25, "name": "product_total_discount", "comment": null}, "product_avg_discount_per_order_line": {"type": "numeric", "index": 26, "name": "product_avg_discount_per_order_line", "comment": null}, "product_total_tax": {"type": "double precision", "index": 27, "name": "product_total_tax", "comment": null}, "product_avg_tax_per_order_line": {"type": "double precision", "index": 28, "name": "product_avg_tax_per_order_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__products"}, "model.shopify.shopify__shop_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__shop_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify.shopify__shop_metafields"}, "model.shopify.shopify__transactions": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__transactions", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "name": "source_relation", "comment": null}, "transactions_unique_id": {"type": "text", "index": 33, "name": "transactions_unique_id", "comment": null}, "payment_method": {"type": "text", "index": 34, "name": "payment_method", "comment": null}, "parent_created_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "parent_created_timestamp", "comment": null}, "parent_kind": {"type": "text", "index": 36, "name": "parent_kind", "comment": null}, "parent_amount": {"type": "double precision", "index": 37, "name": "parent_amount", "comment": null}, "parent_status": {"type": "text", "index": 38, "name": "parent_status", "comment": null}, "exchange_rate": {"type": "numeric", "index": 39, "name": "exchange_rate", "comment": null}, "currency_exchange_calculated_amount": {"type": "double precision", "index": 40, "name": "currency_exchange_calculated_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__transactions"}, "model.shopify_source.stg_shopify__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 18, "name": "has_buyer_accepted_marketing", "comment": null}, "cart_token": {"type": "text", "index": 19, "name": "cart_token", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 20, "name": "created_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 21, "name": "closed_at", "comment": null}, "shop_currency": {"type": "text", "index": 22, "name": "shop_currency", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 24, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 25, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 26, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 27, "name": "gateway", "comment": null}, "checkout_id": {"type": "integer", "index": 28, "name": "checkout_id", "comment": null}, "landing_site_base_url": {"type": "text", "index": 29, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 30, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 31, "name": "name", "comment": null}, "note": {"type": "integer", "index": 32, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 33, "name": "phone", "comment": null}, "presentment_currency": {"type": "text", "index": 34, "name": "presentment_currency", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 36, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 37, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 38, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 39, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 40, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 41, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 42, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 43, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 44, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 45, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 46, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 47, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 48, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 49, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 50, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 51, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 52, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 53, "name": "has_taxes_included", "comment": null}, "token": {"type": "text", "index": 54, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_duties": {"type": "integer", "index": 56, "name": "total_duties", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 57, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 58, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 59, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 60, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 61, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 62, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 63, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 64, "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.shopify_source.stg_shopify__abandoned_checkout"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "discount_id": {"type": "bigint", "index": 3, "name": "discount_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "type": {"type": "character varying", "index": 5, "name": "type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 10, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"abandoned_checkout_shipping_line_id": {"type": "text", "index": 1, "name": "abandoned_checkout_shipping_line_id", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "shipping_code": {"type": "text", "index": 5, "name": "shipping_code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 7, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 8, "name": "delivery_expectation_range_max", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 9, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 10, "name": "delivery_expectation_type", "comment": null}, "discounted_price": {"type": "integer", "index": 11, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "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.shopify_source.stg_shopify__abandoned_checkout_shipping_line"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.stg_shopify__abandoned_checkout_tmp"}, "model.shopify_source.stg_shopify__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection"}, "model.shopify_source.stg_shopify__collection_product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection_product"}, "model.shopify_source.stg_shopify__collection_product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp"}, "model.shopify_source.stg_shopify__collection_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_tmp"}, "model.shopify_source.stg_shopify__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__customer"}, "model.shopify_source.stg_shopify__customer_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__customer_tag"}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp"}, "model.shopify_source.stg_shopify__customer_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tmp"}, "model.shopify_source.stg_shopify__discount_allocation": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"amount": {"type": "double precision", "index": 1, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 2, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 3, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 5, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 8, "name": "order_line_id", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_allocation"}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.stg_shopify__discount_allocation_tmp"}, "model.shopify_source.stg_shopify__discount_application": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocation_method": {"type": "character varying", "index": 1, "name": "allocation_method", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 3, "name": "description", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 5, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 6, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 7, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 8, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 9, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_application"}, "model.shopify_source.stg_shopify__discount_application_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp"}, "model.shopify_source.stg_shopify__discount_code_app": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_app"}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp"}, "model.shopify_source.stg_shopify__discount_code_basic": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_basic"}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp"}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_bxgy"}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp"}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_free_shipping"}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"}, "model.shopify_source.stg_shopify__discount_redeem_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_redeem_code"}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.stg_shopify__discount_redeem_code_tmp"}, "model.shopify_source.stg_shopify__fulfillment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "service": {"type": "text", "index": 5, "name": "service", "comment": null}, "shipment_status": {"type": "integer", "index": 6, "name": "shipment_status", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 8, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 9, "name": "tracking_number", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__fulfillment"}, "model.shopify_source.stg_shopify__fulfillment_event": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_event_id": {"type": "integer", "index": 1, "name": "fulfillment_event_id", "comment": null}, "fulfillment_id": {"type": "integer", "index": 2, "name": "fulfillment_id", "comment": null}, "shop_id": {"type": "integer", "index": 3, "name": "shop_id", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "message": {"type": "text", "index": 6, "name": "message", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 8, "name": "happened_at", "comment": null}, "address_1": {"type": "integer", "index": 9, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 10, "name": "city", "comment": null}, "province": {"type": "text", "index": 11, "name": "province", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "zip": {"type": "text", "index": 13, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 14, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 15, "name": "longitude", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "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.shopify_source.stg_shopify__fulfillment_event"}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp"}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp"}, "model.shopify_source.stg_shopify__inventory_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_item_id": {"type": "bigint", "index": 1, "name": "inventory_item_id", "comment": null}, "sku": {"type": "text", "index": 2, "name": "sku", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 4, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 5, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 6, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 7, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 8, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 9, "name": "is_inventory_quantity_tracked", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 10, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 11, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 12, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 13, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 14, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 15, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 16, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 17, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 18, "name": "tracked_editable_reason", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "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.shopify_source.stg_shopify__inventory_item"}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp"}, "model.shopify_source.stg_shopify__inventory_level": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "available_quantity": {"type": "integer", "index": 4, "name": "available_quantity", "comment": null}, "can_deactivate": {"type": "boolean", "index": 5, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_level"}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp"}, "model.shopify_source.stg_shopify__inventory_quantity": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_quantity_id": {"type": "bigint", "index": 1, "name": "inventory_quantity_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "inventory_state_name": {"type": "text", "index": 4, "name": "inventory_state_name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_quantity"}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp"}, "model.shopify_source.stg_shopify__location": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "is_active": {"type": "boolean", "index": 4, "name": "is_active", "comment": null}, "address_1": {"type": "text", "index": 5, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 6, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 10, "name": "country_name", "comment": null}, "is_legacy": {"type": "boolean", "index": 11, "name": "is_legacy", "comment": null}, "localized_country_name": {"type": "text", "index": 12, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 13, "name": "localized_province_name", "comment": null}, "phone": {"type": "integer", "index": 14, "name": "phone", "comment": null}, "province": {"type": "text", "index": 15, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 16, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 20, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 21, "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.shopify_source.stg_shopify__location"}, "model.shopify_source.stg_shopify__location_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.stg_shopify__location_tmp"}, "model.shopify_source.stg_shopify__media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media"}, "model.shopify_source.stg_shopify__media_image": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media_image"}, "model.shopify_source.stg_shopify__media_image_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_image_tmp"}, "model.shopify_source.stg_shopify__media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_tmp"}, "model.shopify_source.stg_shopify__metafield": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "stg_shopify__metafield", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"metafield_id": {"type": "bigint", "index": 1, "name": "metafield_id", "comment": null}, "description": {"type": "integer", "index": 2, "name": "description", "comment": null}, "namespace": {"type": "text", "index": 3, "name": "namespace", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "value_type": {"type": "text", "index": 6, "name": "value_type", "comment": null}, "owner_resource_id": {"type": "bigint", "index": 7, "name": "owner_resource_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "metafield_reference": {"type": "text", "index": 12, "name": "metafield_reference", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__metafield"}, "model.shopify_source.stg_shopify__metafield_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__metafield_tmp"}, "model.shopify_source.stg_shopify__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "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.shopify_source.stg_shopify__order"}, "model.shopify_source.stg_shopify__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "bigint", "index": 1, "name": "order_adjustment_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "amount_set": {"type": "integer", "index": 5, "name": "amount_set", "comment": null}, "tax_amount": {"type": "double precision", "index": 6, "name": "tax_amount", "comment": null}, "tax_amount_set": {"type": "integer", "index": 7, "name": "tax_amount_set", "comment": null}, "kind": {"type": "text", "index": 8, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 9, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_adjustment"}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp"}, "model.shopify_source.stg_shopify__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_discount_code"}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp"}, "model.shopify_source.stg_shopify__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "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.shopify_source.stg_shopify__order_line"}, "model.shopify_source.stg_shopify__order_line_refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_refund_id": {"type": "bigint", "index": 1, "name": "order_line_refund_id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "order_line_id": {"type": "bigint", "index": 3, "name": "order_line_id", "comment": null}, "subtotal": {"type": "integer", "index": 4, "name": "subtotal", "comment": null}, "subtotal_set": {"type": "integer", "index": 5, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 6, "name": "total_tax", "comment": null}, "total_tax_set": {"type": "integer", "index": 7, "name": "total_tax_set", "comment": null}, "quantity": {"type": "integer", "index": 8, "name": "quantity", "comment": null}, "refund_id": {"type": "bigint", "index": 9, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 10, "name": "restock_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_line_refund"}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp"}, "model.shopify_source.stg_shopify__order_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_tmp"}, "model.shopify_source.stg_shopify__order_note_attribute": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_note_attribute"}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp"}, "model.shopify_source.stg_shopify__order_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 3, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 5, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 6, "name": "discounted_price", "comment": null}, "discounted_price_set": {"type": "text", "index": 7, "name": "discounted_price_set", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 10, "name": "price_set", "comment": null}, "is_third_party_required": {"type": "boolean", "index": 11, "name": "is_third_party_required", "comment": null}, "source": {"type": "text", "index": 12, "name": "source", "comment": null}, "title": {"type": "text", "index": 13, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_line"}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp"}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_tax_line"}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"}, "model.shopify_source.stg_shopify__order_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_tag"}, "model.shopify_source.stg_shopify__order_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp"}, "model.shopify_source.stg_shopify__order_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tmp"}, "model.shopify_source.stg_shopify__order_url_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "key": {"type": "text", "index": 2, "name": "key", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_url_tag"}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp"}, "model.shopify_source.stg_shopify__product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product"}, "model.shopify_source.stg_shopify__product_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_media"}, "model.shopify_source.stg_shopify__product_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_media_tmp"}, "model.shopify_source.stg_shopify__product_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product_tag"}, "model.shopify_source.stg_shopify__product_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp"}, "model.shopify_source.stg_shopify__product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tmp"}, "model.shopify_source.stg_shopify__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "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.shopify_source.stg_shopify__product_variant"}, "model.shopify_source.stg_shopify__product_variant_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_variant_media"}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_variant_media_tmp"}, "model.shopify_source.stg_shopify__product_variant_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp"}, "model.shopify_source.stg_shopify__refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"refund_id": {"type": "bigint", "index": 1, "name": "refund_id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "order_id": {"type": "bigint", "index": 3, "name": "order_id", "comment": null}, "restock": {"type": "boolean", "index": 4, "name": "restock", "comment": null}, "total_duties_set": {"type": "integer", "index": 5, "name": "total_duties_set", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__refund"}, "model.shopify_source.stg_shopify__refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.stg_shopify__refund_tmp"}, "model.shopify_source.stg_shopify__shop": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify_source.stg_shopify__shop"}, "model.shopify_source.stg_shopify__shop_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__shop_tmp"}, "model.shopify_source.stg_shopify__tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tax_line"}, "model.shopify_source.stg_shopify__tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp"}, "model.shopify_source.stg_shopify__tender_transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "payment_method": {"type": "text", "index": 5, "name": "payment_method", "comment": null}, "remote_reference": {"type": "integer", "index": 6, "name": "remote_reference", "comment": null}, "user_id": {"type": "integer", "index": 7, "name": "user_id", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tender_transaction"}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.stg_shopify__tender_transaction_tmp"}, "model.shopify_source.stg_shopify__transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "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.shopify_source.stg_shopify__transaction"}, "model.shopify_source.stg_shopify__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__transaction_tmp"}}, "sources": {"source.shopify_source.shopify.abandoned_checkout": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.shopify.abandoned_checkout"}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code"}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line"}, "source.shopify_source.shopify.collection": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection"}, "source.shopify_source.shopify.collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection_product"}, "source.shopify_source.shopify.customer": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer"}, "source.shopify_source.shopify.customer_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer_tag"}, "source.shopify_source.shopify.discount_allocation": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.shopify.discount_allocation"}, "source.shopify_source.shopify.discount_application": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_application"}, "source.shopify_source.shopify.discount_code_app": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_app"}, "source.shopify_source.shopify.discount_code_basic": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_basic"}, "source.shopify_source.shopify.discount_code_bxgy": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_bxgy"}, "source.shopify_source.shopify.discount_code_free_shipping": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_free_shipping"}, "source.shopify_source.shopify.discount_redeem_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.shopify.discount_redeem_code"}, "source.shopify_source.shopify.fulfillment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment"}, "source.shopify_source.shopify.fulfillment_event": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment_event"}, "source.shopify_source.shopify.inventory_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_item"}, "source.shopify_source.shopify.inventory_level": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_level"}, "source.shopify_source.shopify.inventory_quantity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_quantity"}, "source.shopify_source.shopify.location": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.shopify.location"}, "source.shopify_source.shopify.media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media"}, "source.shopify_source.shopify.media_image": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media_image"}, "source.shopify_source.shopify.metafield": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.metafield"}, "source.shopify_source.shopify.order_adjustment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_adjustment"}, "source.shopify_source.shopify.order": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order"}, "source.shopify_source.shopify.order_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_discount_code"}, "source.shopify_source.shopify.order_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line"}, "source.shopify_source.shopify.order_line_refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line_refund"}, "source.shopify_source.shopify.order_note_attribute": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_note_attribute"}, "source.shopify_source.shopify.order_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_line"}, "source.shopify_source.shopify.order_shipping_tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_tax_line"}, "source.shopify_source.shopify.order_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_tag"}, "source.shopify_source.shopify.order_url_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_url_tag"}, "source.shopify_source.shopify.product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product"}, "source.shopify_source.shopify.product_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_media"}, "source.shopify_source.shopify.product_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_tag"}, "source.shopify_source.shopify.product_variant": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_variant"}, "source.shopify_source.shopify.product_variant_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_variant_media"}, "source.shopify_source.shopify.refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.shopify.refund"}, "source.shopify_source.shopify.shop": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.shop"}, "source.shopify_source.shopify.tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.tax_line"}, "source.shopify_source.shopify.tender_transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.shopify.tender_transaction"}, "source.shopify_source.shopify.transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.transaction"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.10.6", "generated_at": "2025-08-06T18:36:46.274690Z", "invocation_id": "7b951da8-da73-4286-8e42-6449333dcaa5", "invocation_started_at": "2025-08-06T18:36:31.067967Z", "env": {}}, "nodes": {"seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_integration_tests.shopify_abandoned_checkout_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data"}, "seed.shopify_integration_tests.shopify_collection_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_data"}, "seed.shopify_integration_tests.shopify_collection_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data"}, "seed.shopify_integration_tests.shopify_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_data"}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data"}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_integration_tests.shopify_discount_allocation_data"}, "seed.shopify_integration_tests.shopify_discount_application_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data"}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data"}, "seed.shopify_integration_tests.shopify_discount_code_basic_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data"}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data"}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data"}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_integration_tests.shopify_discount_redeem_code_data"}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data"}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data"}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_integration_tests.shopify_gql_abandoned_checkout_data"}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data"}, "seed.shopify_integration_tests.shopify_gql_collection_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_integration_tests.shopify_gql_collection_data"}, "seed.shopify_integration_tests.shopify_gql_collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_collection_product"}, "seed.shopify_integration_tests.shopify_gql_collection_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_collection_product_data"}, "seed.shopify_integration_tests.shopify_gql_collection_rule_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_rule_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "condition": {"type": "text", "index": 4, "name": "condition", "comment": null}, "relation": {"type": "text", "index": 5, "name": "relation", "comment": null}, "columns": {"type": "text", "index": 6, "name": "columns", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_rule_data"}, "seed.shopify_integration_tests.shopify_gql_customer_address_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_address_data"}, "seed.shopify_integration_tests.shopify_gql_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_data"}, "seed.shopify_integration_tests.shopify_gql_customer_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_tag_data"}, "seed.shopify_integration_tests.shopify_gql_customer_visit_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_visit_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_visit_data"}, "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_integration_tests.shopify_gql_discount_allocation_data"}, "seed.shopify_integration_tests.shopify_gql_discount_application_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_integration_tests.shopify_gql_discount_application_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_app_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_basic_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_bxgy_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data"}, "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_integration_tests.shopify_gql_discount_redeem_code_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_integration_tests.shopify_gql_fulfillment_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_integration_tests.shopify_gql_inventory_item_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_level_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_integration_tests.shopify_gql_inventory_level_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_integration_tests.shopify_gql_inventory_quantity_data"}, "seed.shopify_integration_tests.shopify_gql_location_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_location_data"}, "seed.shopify_integration_tests.shopify_gql_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_integration_tests.shopify_gql_media_data"}, "seed.shopify_integration_tests.shopify_gql_media_image_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_media_image_data"}, "seed.shopify_integration_tests.shopify_gql_metafield_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_metafield_data"}, "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_adjustment_data"}, "seed.shopify_integration_tests.shopify_gql_order_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_integration_tests.shopify_gql_order_data"}, "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_integration_tests.shopify_gql_order_discount_code_data"}, "seed.shopify_integration_tests.shopify_gql_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_integration_tests.shopify_gql_order_line_refund_data"}, "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data"}, "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_tag_data"}, "seed.shopify_integration_tests.shopify_gql_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_product_data"}, "seed.shopify_integration_tests.shopify_gql_product_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_product_media_data"}, "seed.shopify_integration_tests.shopify_gql_product_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_product_tag_data"}, "seed.shopify_integration_tests.shopify_gql_product_variant_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_integration_tests.shopify_gql_product_variant_data"}, "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_integration_tests.shopify_gql_product_variant_media_data"}, "seed.shopify_integration_tests.shopify_gql_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_integration_tests.shopify_gql_refund_data"}, "seed.shopify_integration_tests.shopify_gql_shop_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_shop_data"}, "seed.shopify_integration_tests.shopify_gql_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_tax_line_data"}, "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_integration_tests.shopify_gql_tender_transaction_data"}, "seed.shopify_integration_tests.shopify_gql_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_transaction_data"}, "seed.shopify_integration_tests.shopify_inventory_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data"}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data"}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data"}, "seed.shopify_integration_tests.shopify_location_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_integration_tests.shopify_location_data"}, "seed.shopify_integration_tests.shopify_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_data"}, "seed.shopify_integration_tests.shopify_media_image_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_image_data"}, "seed.shopify_integration_tests.shopify_metafield_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_metafield_data"}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data"}, "seed.shopify_integration_tests.shopify_order_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_data"}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data"}, "seed.shopify_integration_tests.shopify_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_data"}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data"}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data"}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data"}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data"}, "seed.shopify_integration_tests.shopify_order_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data"}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data"}, "seed.shopify_integration_tests.shopify_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_data"}, "seed.shopify_integration_tests.shopify_product_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_media_data"}, "seed.shopify_integration_tests.shopify_product_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data"}, "seed.shopify_integration_tests.shopify_product_variant_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data"}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_variant_media_data"}, "seed.shopify_integration_tests.shopify_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_integration_tests.shopify_refund_data"}, "seed.shopify_integration_tests.shopify_shop_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_shop_data"}, "seed.shopify_integration_tests.shopify_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data"}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_integration_tests.shopify_tender_transaction_data"}, "seed.shopify_integration_tests.shopify_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_transaction_data"}, "model.shopify.int_shopify__customer_email_rollup": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify__customer_email_rollup"}, "model.shopify.int_shopify_gql__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "checkout_id": {"type": "integer", "index": 20, "name": "checkout_id", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "note": {"type": "text", "index": 22, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 23, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 24, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 25, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 26, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 27, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 28, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 29, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 30, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 31, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 32, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 33, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 34, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 35, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 36, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 37, "name": "shipping_address_zip", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 38, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 39, "name": "subtotal_price_shop_currency_code", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_pres_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 42, "name": "has_taxes_included", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 43, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 44, "name": "total_discount_shop_currency_code", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_pres_currency_code", "comment": null}, "total_duties_shop_amount": {"type": "double precision", "index": 47, "name": "total_duties_shop_amount", "comment": null}, "total_duties_shop_currency_code": {"type": "text", "index": 48, "name": "total_duties_shop_currency_code", "comment": null}, "total_duties_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_pres_amount", "comment": null}, "total_duties_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_pres_currency_code", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 51, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_shop_currency_code": {"type": "text", "index": 52, "name": "total_line_items_price_shop_currency_code", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 55, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 56, "name": "total_price_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 59, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 60, "name": "total_tax_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_pres_currency_code", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 63, "name": "completed_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 64, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 65, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 66, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 67, "name": "unique_key", "comment": null}, "email": {"type": "text", "index": 68, "name": "email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__abandoned_checkout"}, "model.shopify.int_shopify_gql__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}, "rules": {"type": "text", "index": 11, "name": "rules", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__collection"}, "model.shopify.int_shopify_gql__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_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.shopify.int_shopify_gql__customer"}, "model.shopify.int_shopify_gql__customer_email_rollup": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__customer_email_rollup", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "account_state": {"type": "text", "index": 15, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 16, "name": "note", "comment": null}, "currency": {"type": "text", "index": 17, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 18, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 19, "name": "marketing_opt_in_level", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_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.shopify.int_shopify_gql__customer_email_rollup"}, "model.shopify.int_shopify_gql__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_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.shopify.int_shopify_gql__order"}, "model.shopify.int_shopify_gql__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "integer", "index": 1, "name": "order_adjustment_id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 3, "name": "amount_pres", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 4, "name": "amount_pres_currency_code", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 6, "name": "amount_shop_currency_code", "comment": null}, "tax_amount_pres": {"type": "double precision", "index": 7, "name": "tax_amount_pres", "comment": null}, "tax_amount_pres_currency_code": {"type": "text", "index": 8, "name": "tax_amount_pres_currency_code", "comment": null}, "tax_amount_shop": {"type": "double precision", "index": 9, "name": "tax_amount_shop", "comment": null}, "tax_amount_shop_currency_code": {"type": "text", "index": 10, "name": "tax_amount_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 11, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 14, "name": "unique_key", "comment": null}, "order_id": {"type": "integer", "index": 15, "name": "order_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.shopify.int_shopify_gql__order_adjustment"}, "model.shopify.int_shopify_gql__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}, "type": {"type": "text", "index": 7, "name": "type", "comment": null}, "value_amount": {"type": "double precision", "index": 8, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 9, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 10, "name": "value_percentage", "comment": null}, "target_type": {"type": "text", "index": 11, "name": "target_type", "comment": null}, "target_selection": {"type": "text", "index": 12, "name": "target_selection", "comment": null}, "allocation_method": {"type": "text", "index": 13, "name": "allocation_method", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__order_discount_code"}, "model.shopify.int_shopify_gql__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}, "pre_tax_price": {"type": "double precision", "index": 27, "name": "pre_tax_price", "comment": null}, "order_line_tax": {"type": "double precision", "index": 28, "name": "order_line_tax", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 29, "name": "fulfillable_quantity", "comment": null}, "weight_unit": {"type": "text", "index": 30, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 31, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__order_line"}, "model.shopify.int_shopify_gql__orders_order_line_aggregates": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_line_aggregates", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "line_item_count": {"type": "bigint", "index": 3, "name": "line_item_count", "comment": null}, "order_total_quantity": {"type": "bigint", "index": 4, "name": "order_total_quantity", "comment": null}, "order_total_tax": {"type": "double precision", "index": 5, "name": "order_total_tax", "comment": null}, "order_total_discount": {"type": "double precision", "index": 6, "name": "order_total_discount", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 8, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_pres_currency_codes": {"type": "text", "index": 9, "name": "total_line_items_price_pres_currency_codes", "comment": null}, "total_line_items_price_shop_currency_codes": {"type": "text", "index": 10, "name": "total_line_items_price_shop_currency_codes", "comment": null}, "order_total_shipping": {"type": "double precision", "index": 11, "name": "order_total_shipping", "comment": null}, "order_total_shipping_with_discounts": {"type": "double precision", "index": 12, "name": "order_total_shipping_with_discounts", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 13, "name": "order_total_shipping_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__orders_order_line_aggregates"}, "model.shopify.int_shopify_gql__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}, "weight": {"type": "double precision", "index": 24, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__product_variant"}, "model.shopify.shopify__calendar": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__calendar", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__calendar"}, "model.shopify.shopify__collection_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__collection_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__collection_metafields"}, "model.shopify.shopify__customer_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "date", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_cohorts"}, "model.shopify.shopify__customer_email_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_email_cohorts"}, "model.shopify.shopify__customer_emails": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_emails", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 21, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_order_value": {"type": "double precision", "index": 24, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 25, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 26, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 27, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 28, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 29, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 30, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 31, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 32, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 33, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 34, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 35, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 36, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 37, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 38, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 39, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_emails"}, "model.shopify.shopify__customer_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "metafield_star_wars_firstname": {"type": "text", "index": 21, "name": "metafield_star_wars_firstname", "comment": null}, "metafield_star_wars_fullname": {"type": "text", "index": 22, "name": "metafield_star_wars_fullname", "comment": null}, "metafield_star_wars_isjedi": {"type": "text", "index": 23, "name": "metafield_star_wars_isjedi", "comment": null}, "metafield_star_wars_lastname": {"type": "text", "index": 24, "name": "metafield_star_wars_lastname", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_metafields"}, "model.shopify.shopify__customers": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customers", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 5, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 9, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 10, "name": "note", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 12, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 13, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 14, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 15, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 19, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_order_timestamp", "comment": null}, "customer_tags": {"type": "text", "index": 22, "name": "customer_tags", "comment": null}, "avg_order_value": {"type": "double precision", "index": 23, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 24, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 25, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 26, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 27, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 28, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 29, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 30, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 31, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 32, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 33, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 34, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 35, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 36, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 37, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 38, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customers"}, "model.shopify.shopify__daily_shop": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__daily_shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "shop_id": {"type": "integer", "index": 2, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "domain": {"type": "text", "index": 4, "name": "domain", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 7, "name": "enabled_presentment_currencies", "comment": null}, "iana_timezone": {"type": "text", "index": 8, "name": "iana_timezone", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "count_orders": {"type": "bigint", "index": 11, "name": "count_orders", "comment": null}, "count_line_items": {"type": "numeric", "index": 12, "name": "count_line_items", "comment": null}, "avg_line_item_count": {"type": "numeric", "index": 13, "name": "avg_line_item_count", "comment": null}, "count_customers": {"type": "bigint", "index": 14, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 15, "name": "count_customer_emails", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 16, "name": "order_adjusted_total", "comment": null}, "avg_order_value": {"type": "double precision", "index": 17, "name": "avg_order_value", "comment": null}, "shipping_cost": {"type": "double precision", "index": 18, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "numeric", "index": 19, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 20, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "numeric", "index": 21, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 22, "name": "refund_total_tax", "comment": null}, "total_discounts": {"type": "double precision", "index": 23, "name": "total_discounts", "comment": null}, "avg_discount": {"type": "double precision", "index": 24, "name": "avg_discount", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 25, "name": "shipping_discount_amount", "comment": null}, "avg_shipping_discount_amount": {"type": "double precision", "index": 26, "name": "avg_shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 27, "name": "percentage_calc_discount_amount", "comment": null}, "avg_percentage_calc_discount_amount": {"type": "double precision", "index": 28, "name": "avg_percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 29, "name": "fixed_amount_discount_amount", "comment": null}, "avg_fixed_amount_discount_amount": {"type": "double precision", "index": 30, "name": "avg_fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "numeric", "index": 31, "name": "count_discount_codes_applied", "comment": null}, "count_locations_ordered_from": {"type": "bigint", "index": 32, "name": "count_locations_ordered_from", "comment": null}, "count_orders_with_discounts": {"type": "bigint", "index": 33, "name": "count_orders_with_discounts", "comment": null}, "count_orders_with_refunds": {"type": "bigint", "index": 34, "name": "count_orders_with_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 36, "name": "last_order_timestamp", "comment": null}, "quantity_sold": {"type": "bigint", "index": 37, "name": "quantity_sold", "comment": null}, "quantity_refunded": {"type": "numeric", "index": 38, "name": "quantity_refunded", "comment": null}, "quantity_net": {"type": "numeric", "index": 39, "name": "quantity_net", "comment": null}, "avg_quantity_sold": {"type": "bigint", "index": 40, "name": "avg_quantity_sold", "comment": null}, "avg_quantity_net": {"type": "numeric", "index": 41, "name": "avg_quantity_net", "comment": null}, "count_variants_sold": {"type": "bigint", "index": 42, "name": "count_variants_sold", "comment": null}, "count_products_sold": {"type": "bigint", "index": 43, "name": "count_products_sold", "comment": null}, "quantity_gift_cards_sold": {"type": "numeric", "index": 44, "name": "quantity_gift_cards_sold", "comment": null}, "quantity_requiring_shipping": {"type": "numeric", "index": 45, "name": "quantity_requiring_shipping", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 46, "name": "count_abandoned_checkouts", "comment": null}, "count_customers_abandoned_checkout": {"type": "bigint", "index": 47, "name": "count_customers_abandoned_checkout", "comment": null}, "count_customer_emails_abandoned_checkout": {"type": "bigint", "index": 48, "name": "count_customer_emails_abandoned_checkout", "comment": null}, "count_fulfillment_attempted_delivery": {"type": "bigint", "index": 49, "name": "count_fulfillment_attempted_delivery", "comment": null}, "count_fulfillment_delayed": {"type": "bigint", "index": 50, "name": "count_fulfillment_delayed", "comment": null}, "count_fulfillment_delivered": {"type": "bigint", "index": 51, "name": "count_fulfillment_delivered", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 52, "name": "count_fulfillment_failure", "comment": null}, "count_fulfillment_in_transit": {"type": "bigint", "index": 53, "name": "count_fulfillment_in_transit", "comment": null}, "count_fulfillment_out_for_delivery": {"type": "bigint", "index": 54, "name": "count_fulfillment_out_for_delivery", "comment": null}, "count_fulfillment_ready_for_pickup": {"type": "bigint", "index": 55, "name": "count_fulfillment_ready_for_pickup", "comment": null}, "count_fulfillment_picked_up": {"type": "bigint", "index": 56, "name": "count_fulfillment_picked_up", "comment": null}, "count_fulfillment_label_printed": {"type": "bigint", "index": 57, "name": "count_fulfillment_label_printed", "comment": null}, "count_fulfillment_label_purchased": {"type": "bigint", "index": 58, "name": "count_fulfillment_label_purchased", "comment": null}, "count_fulfillment_confirmed": {"type": "bigint", "index": 59, "name": "count_fulfillment_confirmed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__daily_shop"}, "model.shopify.shopify__discounts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__discounts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"code": {"type": "character varying", "index": 1, "name": "code", "comment": null}, "discount_code_id": {"type": "bigint", "index": 2, "name": "discount_code_id", "comment": null}, "discount_type": {"type": "text", "index": 3, "name": "discount_type", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_count": {"type": "integer", "index": 5, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 14, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 15, "name": "status", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 17, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 18, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 20, "name": "usage_limit", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "allocation_method": {"type": "character varying", "index": 22, "name": "allocation_method", "comment": null}, "description": {"type": "character varying", "index": 23, "name": "description", "comment": null}, "target_selection": {"type": "character varying", "index": 24, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 25, "name": "target_type", "comment": null}, "application_type": {"type": "character varying", "index": 26, "name": "application_type", "comment": null}, "value": {"type": "double precision", "index": 27, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 28, "name": "value_type", "comment": null}, "discounts_unique_key": {"type": "text", "index": 29, "name": "discounts_unique_key", "comment": null}, "count_orders": {"type": "bigint", "index": 30, "name": "count_orders", "comment": null}, "avg_order_discount_amount": {"type": "double precision", "index": 31, "name": "avg_order_discount_amount", "comment": null}, "total_order_discount_amount": {"type": "double precision", "index": 32, "name": "total_order_discount_amount", "comment": null}, "total_order_line_items_price": {"type": "double precision", "index": 33, "name": "total_order_line_items_price", "comment": null}, "total_order_shipping_cost": {"type": "double precision", "index": 34, "name": "total_order_shipping_cost", "comment": null}, "total_order_refund_amount": {"type": "double precision", "index": 35, "name": "total_order_refund_amount", "comment": null}, "count_customers": {"type": "bigint", "index": 36, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 37, "name": "count_customer_emails", "comment": null}, "total_abandoned_checkout_discount_amount": {"type": "double precision", "index": 38, "name": "total_abandoned_checkout_discount_amount", "comment": null}, "total_abandoned_checkout_shipping_price": {"type": "double precision", "index": 39, "name": "total_abandoned_checkout_shipping_price", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 40, "name": "count_abandoned_checkouts", "comment": null}, "count_abandoned_checkout_customers": {"type": "bigint", "index": 41, "name": "count_abandoned_checkout_customers", "comment": null}, "count_abandoned_checkout_customer_emails": {"type": "bigint", "index": 42, "name": "count_abandoned_checkout_customer_emails", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__discounts"}, "model.shopify.shopify__inventory_levels": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__inventory_levels", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "sku": {"type": "text", "index": 10, "name": "sku", "comment": null}, "is_inventory_item_deleted": {"type": "boolean", "index": 11, "name": "is_inventory_item_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 14, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 15, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 16, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 17, "name": "is_inventory_quantity_tracked", "comment": null}, "inventory_item_created_at": {"type": "timestamp without time zone", "index": 18, "name": "inventory_item_created_at", "comment": null}, "inventory_item_updated_at": {"type": "timestamp without time zone", "index": 19, "name": "inventory_item_updated_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 20, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 21, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 22, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 23, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 24, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 25, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 26, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 27, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 28, "name": "tracked_editable_reason", "comment": null}, "location_name": {"type": "text", "index": 29, "name": "location_name", "comment": null}, "is_location_deleted": {"type": "boolean", "index": 30, "name": "is_location_deleted", "comment": null}, "is_location_active": {"type": "boolean", "index": 31, "name": "is_location_active", "comment": null}, "address_1": {"type": "text", "index": 32, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 33, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 34, "name": "city", "comment": null}, "country": {"type": "text", "index": 35, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 36, "name": "country_code", "comment": null}, "is_legacy_location": {"type": "boolean", "index": 37, "name": "is_legacy_location", "comment": null}, "province": {"type": "text", "index": 38, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 39, "name": "province_code", "comment": null}, "phone": {"type": "integer", "index": 40, "name": "phone", "comment": null}, "zip": {"type": "integer", "index": 41, "name": "zip", "comment": null}, "location_created_at": {"type": "timestamp without time zone", "index": 42, "name": "location_created_at", "comment": null}, "location_updated_at": {"type": "timestamp without time zone", "index": 43, "name": "location_updated_at", "comment": null}, "variant_id": {"type": "bigint", "index": 44, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 45, "name": "product_id", "comment": null}, "variant_title": {"type": "text", "index": 46, "name": "variant_title", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 47, "name": "variant_inventory_policy", "comment": null}, "variant_price": {"type": "double precision", "index": 48, "name": "variant_price", "comment": null}, "variant_media_id": {"type": "bigint", "index": 49, "name": "variant_media_id", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 50, "name": "variant_fulfillment_service", "comment": null}, "variant_inventory_management": {"type": "text", "index": 51, "name": "variant_inventory_management", "comment": null}, "is_variant_taxable": {"type": "boolean", "index": 52, "name": "is_variant_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 53, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 54, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 55, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 56, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 57, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 58, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 59, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 60, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 61, "name": "variant_tax_code", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 62, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 63, "name": "variant_updated_at", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 64, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 65, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 66, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 67, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 68, "name": "variant_sellable_online_quantity", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 69, "name": "subtotal_sold", "comment": null}, "quantity_sold": {"type": "bigint", "index": 70, "name": "quantity_sold", "comment": null}, "count_distinct_orders": {"type": "bigint", "index": 71, "name": "count_distinct_orders", "comment": null}, "count_distinct_customers": {"type": "bigint", "index": 72, "name": "count_distinct_customers", "comment": null}, "count_distinct_customer_emails": {"type": "bigint", "index": 73, "name": "count_distinct_customer_emails", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 74, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 75, "name": "last_order_timestamp", "comment": null}, "subtotal_sold_refunds": {"type": "numeric", "index": 76, "name": "subtotal_sold_refunds", "comment": null}, "quantity_sold_refunds": {"type": "numeric", "index": 77, "name": "quantity_sold_refunds", "comment": null}, "count_fulfillment_pending": {"type": "bigint", "index": 78, "name": "count_fulfillment_pending", "comment": null}, "count_fulfillment_open": {"type": "bigint", "index": 79, "name": "count_fulfillment_open", "comment": null}, "count_fulfillment_success": {"type": "bigint", "index": 80, "name": "count_fulfillment_success", "comment": null}, "count_fulfillment_cancelled": {"type": "bigint", "index": 81, "name": "count_fulfillment_cancelled", "comment": null}, "count_fulfillment_error": {"type": "bigint", "index": 82, "name": "count_fulfillment_error", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 83, "name": "count_fulfillment_failure", "comment": null}, "incoming_quantity": {"type": "bigint", "index": 84, "name": "incoming_quantity", "comment": null}, "on_hand_quantity": {"type": "bigint", "index": 85, "name": "on_hand_quantity", "comment": null}, "available_quantity": {"type": "bigint", "index": 86, "name": "available_quantity", "comment": null}, "committed_quantity": {"type": "bigint", "index": 87, "name": "committed_quantity", "comment": null}, "reserved_quantity": {"type": "bigint", "index": 88, "name": "reserved_quantity", "comment": null}, "damaged_quantity": {"type": "bigint", "index": 89, "name": "damaged_quantity", "comment": null}, "safety_stock_quantity": {"type": "bigint", "index": 90, "name": "safety_stock_quantity", "comment": null}, "quality_control_quantity": {"type": "bigint", "index": 91, "name": "quality_control_quantity", "comment": null}, "net_subtotal_sold": {"type": "numeric", "index": 92, "name": "net_subtotal_sold", "comment": null}, "net_quantity_sold": {"type": "numeric", "index": 93, "name": "net_quantity_sold", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__inventory_levels"}, "model.shopify.shopify__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"header_id": {"type": "bigint", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "numeric(28,6)", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "numeric(28,6)", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "numeric(28,6)", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "numeric(28,6)", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "numeric(28,6)", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "numeric(28,6)", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "text", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "double precision", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "text", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "bigint", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "source_relation": {"type": "text", "index": 37, "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.shopify.shopify__line_item_enhanced"}, "model.shopify.shopify__order_lines": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_lines", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "name": "source_relation", "comment": null}, "order_lines_unique_key": {"type": "text", "index": 29, "name": "order_lines_unique_key", "comment": null}, "restock_types": {"type": "text", "index": 30, "name": "restock_types", "comment": null}, "refunded_quantity": {"type": "bigint", "index": 31, "name": "refunded_quantity", "comment": null}, "refunded_subtotal": {"type": "bigint", "index": 32, "name": "refunded_subtotal", "comment": null}, "quantity_net_refunds": {"type": "bigint", "index": 33, "name": "quantity_net_refunds", "comment": null}, "subtotal_net_refunds": {"type": "bigint", "index": 34, "name": "subtotal_net_refunds", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 35, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 36, "name": "variant_updated_at", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 37, "name": "inventory_item_id", "comment": null}, "media_id": {"type": "bigint", "index": 38, "name": "media_id", "comment": null}, "variant_price": {"type": "double precision", "index": 39, "name": "variant_price", "comment": null}, "variant_sku": {"type": "text", "index": 40, "name": "variant_sku", "comment": null}, "variant_position": {"type": "integer", "index": 41, "name": "variant_position", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 42, "name": "variant_inventory_policy", "comment": null}, "variant_compare_at_price": {"type": "integer", "index": 43, "name": "variant_compare_at_price", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 44, "name": "variant_fulfillment_service", "comment": null}, "variant_is_taxable": {"type": "boolean", "index": 45, "name": "variant_is_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 46, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 47, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 48, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 49, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 50, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 51, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 52, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 53, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 54, "name": "variant_tax_code", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 55, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 56, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 57, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 58, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 59, "name": "variant_sellable_online_quantity", "comment": null}, "order_line_tax": {"type": "double precision", "index": 60, "name": "order_line_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_lines"}, "model.shopify.shopify__order_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 81, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_howmany": {"type": "text", "index": 82, "name": "metafield_avengers_howmany", "comment": null}, "metafield_star_wars_isinspace": {"type": "text", "index": 83, "name": "metafield_star_wars_isinspace", "comment": null}, "metafield_star_wars_numbersequels": {"type": "text", "index": 84, "name": "metafield_star_wars_numbersequels", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_metafields"}, "model.shopify.shopify__orders": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "orders_unique_key": {"type": "text", "index": 81, "name": "orders_unique_key", "comment": null}, "shipping_cost": {"type": "double precision", "index": 82, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "bigint", "index": 83, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 84, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "bigint", "index": 85, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 86, "name": "refund_total_tax", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 87, "name": "order_adjusted_total", "comment": null}, "line_item_count": {"type": "bigint", "index": 88, "name": "line_item_count", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 89, "name": "shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 90, "name": "percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 91, "name": "fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "bigint", "index": 92, "name": "count_discount_codes_applied", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 93, "name": "order_total_shipping_tax", "comment": null}, "order_tags": {"type": "text", "index": 94, "name": "order_tags", "comment": null}, "order_url_tags": {"type": "text", "index": 95, "name": "order_url_tags", "comment": null}, "number_of_fulfillments": {"type": "bigint", "index": 96, "name": "number_of_fulfillments", "comment": null}, "fulfillment_services": {"type": "text", "index": 97, "name": "fulfillment_services", "comment": null}, "tracking_companies": {"type": "text", "index": 98, "name": "tracking_companies", "comment": null}, "tracking_numbers": {"type": "text", "index": 99, "name": "tracking_numbers", "comment": null}, "customer_order_seq_number": {"type": "bigint", "index": 100, "name": "customer_order_seq_number", "comment": null}, "new_vs_repeat": {"type": "text", "index": 101, "name": "new_vs_repeat", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders"}, "model.shopify.shopify__orders__order_line_aggregates": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "line_item_count": {"type": "bigint", "index": 3, "name": "line_item_count", "comment": null}, "order_total_quantity": {"type": "bigint", "index": 4, "name": "order_total_quantity", "comment": null}, "order_total_tax": {"type": "double precision", "index": 5, "name": "order_total_tax", "comment": null}, "order_total_discount": {"type": "bigint", "index": 6, "name": "order_total_discount", "comment": null}, "order_total_shipping": {"type": "double precision", "index": 7, "name": "order_total_shipping", "comment": null}, "order_total_shipping_with_discounts": {"type": "double precision", "index": 8, "name": "order_total_shipping_with_discounts", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 9, "name": "order_total_shipping_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders__order_line_aggregates"}, "model.shopify.shopify__product_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__product_metafields"}, "model.shopify.shopify__product_variant_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 31, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_wherearethey": {"type": "text", "index": 32, "name": "metafield_avengers_wherearethey", "comment": null}, "metafield_star_wars_wheninspace": {"type": "text", "index": 33, "name": "metafield_star_wars_wheninspace", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__product_variant_metafields"}, "model.shopify.shopify__products": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__products", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "collections": {"type": "text", "index": 14, "name": "collections", "comment": null}, "tags": {"type": "text", "index": 15, "name": "tags", "comment": null}, "count_variants": {"type": "bigint", "index": 16, "name": "count_variants", "comment": null}, "has_product_media": {"type": "boolean", "index": 17, "name": "has_product_media", "comment": null}, "total_quantity_sold": {"type": "bigint", "index": 18, "name": "total_quantity_sold", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 19, "name": "subtotal_sold", "comment": null}, "quantity_sold_net_refunds": {"type": "numeric", "index": 20, "name": "quantity_sold_net_refunds", "comment": null}, "subtotal_sold_net_refunds": {"type": "numeric", "index": 21, "name": "subtotal_sold_net_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_quantity_per_order_line": {"type": "numeric", "index": 24, "name": "avg_quantity_per_order_line", "comment": null}, "product_total_discount": {"type": "bigint", "index": 25, "name": "product_total_discount", "comment": null}, "product_avg_discount_per_order_line": {"type": "numeric", "index": 26, "name": "product_avg_discount_per_order_line", "comment": null}, "product_total_tax": {"type": "double precision", "index": 27, "name": "product_total_tax", "comment": null}, "product_avg_tax_per_order_line": {"type": "double precision", "index": 28, "name": "product_avg_tax_per_order_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__products"}, "model.shopify.shopify__shop_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__shop_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify.shopify__shop_metafields"}, "model.shopify.shopify__transactions": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__transactions", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "name": "source_relation", "comment": null}, "transactions_unique_id": {"type": "text", "index": 33, "name": "transactions_unique_id", "comment": null}, "payment_method": {"type": "text", "index": 34, "name": "payment_method", "comment": null}, "parent_created_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "parent_created_timestamp", "comment": null}, "parent_kind": {"type": "text", "index": 36, "name": "parent_kind", "comment": null}, "parent_amount": {"type": "double precision", "index": 37, "name": "parent_amount", "comment": null}, "parent_status": {"type": "text", "index": 38, "name": "parent_status", "comment": null}, "exchange_rate": {"type": "numeric", "index": 39, "name": "exchange_rate", "comment": null}, "currency_exchange_calculated_amount": {"type": "double precision", "index": 40, "name": "currency_exchange_calculated_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__transactions"}, "model.shopify.shopify_gql__collection_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__collection_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}, "rules": {"type": "text", "index": 11, "name": "rules", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb": {"type": "text", "index": 12, "name": "metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw": {"type": "text", "index": 13, "name": "metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__collection_metafields"}, "model.shopify.shopify_gql__customer_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify_gql__customer_cohorts"}, "model.shopify.shopify_gql__customer_email_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_email_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify_gql__customer_email_cohorts"}, "model.shopify.shopify_gql__customer_emails": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_emails", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "account_state": {"type": "text", "index": 15, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 16, "name": "note", "comment": null}, "currency": {"type": "text", "index": 17, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 18, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 19, "name": "marketing_opt_in_level", "comment": null}, "default_address_id": {"type": "integer", "index": 20, "name": "default_address_id", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 21, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_order_value": {"type": "double precision", "index": 24, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 25, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 26, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 27, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 28, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 29, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 30, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 31, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "double precision", "index": 32, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "double precision", "index": 33, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 34, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 35, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 36, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 37, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 38, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 39, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customer_emails"}, "model.shopify.shopify_gql__customer_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_id", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj": {"type": "text", "index": 22, "name": "metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre": {"type": "text", "index": 23, "name": "metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customer_metafields"}, "model.shopify.shopify_gql__customers": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customers", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "phone": {"type": "character varying", "index": 5, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 6, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 7, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 8, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 9, "name": "note", "comment": null}, "currency": {"type": "text", "index": 10, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 11, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 12, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 13, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 14, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 15, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 16, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}, "default_address_id": {"type": "integer", "index": 18, "name": "default_address_id", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 19, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_order_timestamp", "comment": null}, "customer_tags": {"type": "text", "index": 22, "name": "customer_tags", "comment": null}, "avg_order_value": {"type": "double precision", "index": 23, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 24, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 25, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 26, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 27, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 28, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 29, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 30, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "double precision", "index": 31, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "double precision", "index": 32, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 33, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 34, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 35, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 36, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 37, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 38, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customers"}, "model.shopify.shopify_gql__daily_shop": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__daily_shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "shop_id": {"type": "integer", "index": 2, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "domain": {"type": "text", "index": 4, "name": "domain", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 7, "name": "enabled_presentment_currencies", "comment": null}, "iana_timezone": {"type": "text", "index": 8, "name": "iana_timezone", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "count_orders": {"type": "bigint", "index": 11, "name": "count_orders", "comment": null}, "count_line_items": {"type": "numeric", "index": 12, "name": "count_line_items", "comment": null}, "avg_line_item_count": {"type": "numeric", "index": 13, "name": "avg_line_item_count", "comment": null}, "count_customers": {"type": "bigint", "index": 14, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 15, "name": "count_customer_emails", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 16, "name": "order_adjusted_total", "comment": null}, "avg_order_value": {"type": "double precision", "index": 17, "name": "avg_order_value", "comment": null}, "shipping_cost": {"type": "double precision", "index": 18, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "double precision", "index": 19, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 20, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "double precision", "index": 21, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 22, "name": "refund_total_tax", "comment": null}, "total_discounts": {"type": "double precision", "index": 23, "name": "total_discounts", "comment": null}, "avg_discount": {"type": "double precision", "index": 24, "name": "avg_discount", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 25, "name": "shipping_discount_amount", "comment": null}, "avg_shipping_discount_amount": {"type": "double precision", "index": 26, "name": "avg_shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 27, "name": "percentage_calc_discount_amount", "comment": null}, "avg_percentage_calc_discount_amount": {"type": "double precision", "index": 28, "name": "avg_percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 29, "name": "fixed_amount_discount_amount", "comment": null}, "avg_fixed_amount_discount_amount": {"type": "double precision", "index": 30, "name": "avg_fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "numeric", "index": 31, "name": "count_discount_codes_applied", "comment": null}, "count_locations_ordered_from": {"type": "bigint", "index": 32, "name": "count_locations_ordered_from", "comment": null}, "count_orders_with_discounts": {"type": "bigint", "index": 33, "name": "count_orders_with_discounts", "comment": null}, "count_orders_with_refunds": {"type": "bigint", "index": 34, "name": "count_orders_with_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 36, "name": "last_order_timestamp", "comment": null}, "quantity_sold": {"type": "bigint", "index": 37, "name": "quantity_sold", "comment": null}, "quantity_refunded": {"type": "double precision", "index": 38, "name": "quantity_refunded", "comment": null}, "quantity_net": {"type": "double precision", "index": 39, "name": "quantity_net", "comment": null}, "avg_quantity_sold": {"type": "bigint", "index": 40, "name": "avg_quantity_sold", "comment": null}, "avg_quantity_net": {"type": "double precision", "index": 41, "name": "avg_quantity_net", "comment": null}, "count_variants_sold": {"type": "bigint", "index": 42, "name": "count_variants_sold", "comment": null}, "count_products_sold": {"type": "bigint", "index": 43, "name": "count_products_sold", "comment": null}, "quantity_gift_cards_sold": {"type": "double precision", "index": 44, "name": "quantity_gift_cards_sold", "comment": null}, "quantity_requiring_shipping": {"type": "double precision", "index": 45, "name": "quantity_requiring_shipping", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 46, "name": "count_abandoned_checkouts", "comment": null}, "count_customers_abandoned_checkout": {"type": "bigint", "index": 47, "name": "count_customers_abandoned_checkout", "comment": null}, "count_customer_emails_abandoned_checkout": {"type": "bigint", "index": 48, "name": "count_customer_emails_abandoned_checkout", "comment": null}, "count_fulfillment_attempted_delivery": {"type": "bigint", "index": 49, "name": "count_fulfillment_attempted_delivery", "comment": null}, "count_fulfillment_delayed": {"type": "bigint", "index": 50, "name": "count_fulfillment_delayed", "comment": null}, "count_fulfillment_delivered": {"type": "bigint", "index": 51, "name": "count_fulfillment_delivered", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 52, "name": "count_fulfillment_failure", "comment": null}, "count_fulfillment_in_transit": {"type": "bigint", "index": 53, "name": "count_fulfillment_in_transit", "comment": null}, "count_fulfillment_out_for_delivery": {"type": "bigint", "index": 54, "name": "count_fulfillment_out_for_delivery", "comment": null}, "count_fulfillment_ready_for_pickup": {"type": "bigint", "index": 55, "name": "count_fulfillment_ready_for_pickup", "comment": null}, "count_fulfillment_label_printed": {"type": "bigint", "index": 56, "name": "count_fulfillment_label_printed", "comment": null}, "count_fulfillment_label_purchased": {"type": "bigint", "index": 57, "name": "count_fulfillment_label_purchased", "comment": null}, "count_fulfillment_confirmed": {"type": "bigint", "index": 58, "name": "count_fulfillment_confirmed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__daily_shop"}, "model.shopify.shopify_gql__discounts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__discounts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"code": {"type": "text", "index": 1, "name": "code", "comment": null}, "discount_code_id": {"type": "integer", "index": 2, "name": "discount_code_id", "comment": null}, "discount_type": {"type": "text", "index": 3, "name": "discount_type", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_count": {"type": "integer", "index": 5, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 14, "name": "starts_at", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 17, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 18, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 20, "name": "usage_limit", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "allocation_method": {"type": "text", "index": 22, "name": "allocation_method", "comment": null}, "target_selection": {"type": "text", "index": 23, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 24, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 25, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 26, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 27, "name": "value_percentage", "comment": null}, "value_type": {"type": "text", "index": 28, "name": "value_type", "comment": null}, "unique_key": {"type": "text", "index": 29, "name": "unique_key", "comment": null}, "count_orders": {"type": "bigint", "index": 30, "name": "count_orders", "comment": null}, "avg_order_discount_amount": {"type": "double precision", "index": 31, "name": "avg_order_discount_amount", "comment": null}, "total_order_discount_amount": {"type": "double precision", "index": 32, "name": "total_order_discount_amount", "comment": null}, "total_order_line_items_price": {"type": "double precision", "index": 33, "name": "total_order_line_items_price", "comment": null}, "total_order_shipping_cost": {"type": "double precision", "index": 34, "name": "total_order_shipping_cost", "comment": null}, "total_order_refund_amount": {"type": "double precision", "index": 35, "name": "total_order_refund_amount", "comment": null}, "count_customers": {"type": "bigint", "index": 36, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 37, "name": "count_customer_emails", "comment": null}, "total_abandoned_checkout_discount_amount": {"type": "double precision", "index": 38, "name": "total_abandoned_checkout_discount_amount", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 39, "name": "count_abandoned_checkouts", "comment": null}, "count_abandoned_checkout_customers": {"type": "bigint", "index": 40, "name": "count_abandoned_checkout_customers", "comment": null}, "count_abandoned_checkout_customer_emails": {"type": "bigint", "index": 41, "name": "count_abandoned_checkout_customer_emails", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__discounts"}, "model.shopify.shopify_gql__inventory_levels": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__inventory_levels", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "integer", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "sku": {"type": "text", "index": 10, "name": "sku", "comment": null}, "is_inventory_item_deleted": {"type": "boolean", "index": 11, "name": "is_inventory_item_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "text", "index": 14, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "text", "index": 15, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 16, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 17, "name": "is_inventory_quantity_tracked", "comment": null}, "inventory_item_created_at": {"type": "timestamp without time zone", "index": 18, "name": "inventory_item_created_at", "comment": null}, "inventory_item_updated_at": {"type": "timestamp without time zone", "index": 19, "name": "inventory_item_updated_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 20, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 21, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 22, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 23, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 24, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 25, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 26, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "boolean", "index": 27, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 28, "name": "tracked_editable_reason", "comment": null}, "location_name": {"type": "text", "index": 29, "name": "location_name", "comment": null}, "is_location_deleted": {"type": "boolean", "index": 30, "name": "is_location_deleted", "comment": null}, "is_location_active": {"type": "boolean", "index": 31, "name": "is_location_active", "comment": null}, "address_1": {"type": "text", "index": 32, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 33, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 34, "name": "city", "comment": null}, "country": {"type": "text", "index": 35, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 36, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 37, "name": "country_name", "comment": null}, "is_legacy_location": {"type": "boolean", "index": 38, "name": "is_legacy_location", "comment": null}, "province": {"type": "text", "index": 39, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 40, "name": "province_code", "comment": null}, "phone": {"type": "character varying", "index": 41, "name": "phone", "comment": null}, "zip": {"type": "integer", "index": 42, "name": "zip", "comment": null}, "location_created_at": {"type": "timestamp without time zone", "index": 43, "name": "location_created_at", "comment": null}, "location_updated_at": {"type": "timestamp without time zone", "index": 44, "name": "location_updated_at", "comment": null}, "variant_id": {"type": "integer", "index": 45, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 46, "name": "product_id", "comment": null}, "variant_title": {"type": "text", "index": 47, "name": "variant_title", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 48, "name": "variant_inventory_policy", "comment": null}, "variant_price": {"type": "double precision", "index": 49, "name": "variant_price", "comment": null}, "variant_media_id": {"type": "integer", "index": 50, "name": "variant_media_id", "comment": null}, "is_variant_taxable": {"type": "boolean", "index": 51, "name": "is_variant_taxable", "comment": null}, "variant_barcode": {"type": "text", "index": 52, "name": "variant_barcode", "comment": null}, "variant_inventory_quantity": {"type": "integer", "index": 53, "name": "variant_inventory_quantity", "comment": null}, "variant_tax_code": {"type": "text", "index": 54, "name": "variant_tax_code", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 55, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 56, "name": "variant_updated_at", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 57, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 58, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "integer", "index": 59, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 60, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 61, "name": "variant_sellable_online_quantity", "comment": null}, "subtotal_sold": {"type": "double precision", "index": 62, "name": "subtotal_sold", "comment": null}, "quantity_sold": {"type": "bigint", "index": 63, "name": "quantity_sold", "comment": null}, "count_distinct_orders": {"type": "bigint", "index": 64, "name": "count_distinct_orders", "comment": null}, "count_distinct_customers": {"type": "bigint", "index": 65, "name": "count_distinct_customers", "comment": null}, "count_distinct_customer_emails": {"type": "bigint", "index": 66, "name": "count_distinct_customer_emails", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 67, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 68, "name": "last_order_timestamp", "comment": null}, "subtotal_sold_refunds": {"type": "double precision", "index": 69, "name": "subtotal_sold_refunds", "comment": null}, "quantity_sold_refunds": {"type": "double precision", "index": 70, "name": "quantity_sold_refunds", "comment": null}, "count_fulfillment_pending": {"type": "bigint", "index": 71, "name": "count_fulfillment_pending", "comment": null}, "count_fulfillment_open": {"type": "bigint", "index": 72, "name": "count_fulfillment_open", "comment": null}, "count_fulfillment_success": {"type": "bigint", "index": 73, "name": "count_fulfillment_success", "comment": null}, "count_fulfillment_cancelled": {"type": "bigint", "index": 74, "name": "count_fulfillment_cancelled", "comment": null}, "count_fulfillment_error": {"type": "bigint", "index": 75, "name": "count_fulfillment_error", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 76, "name": "count_fulfillment_failure", "comment": null}, "incoming_quantity": {"type": "bigint", "index": 77, "name": "incoming_quantity", "comment": null}, "on_hand_quantity": {"type": "bigint", "index": 78, "name": "on_hand_quantity", "comment": null}, "available_quantity": {"type": "bigint", "index": 79, "name": "available_quantity", "comment": null}, "committed_quantity": {"type": "bigint", "index": 80, "name": "committed_quantity", "comment": null}, "reserved_quantity": {"type": "bigint", "index": 81, "name": "reserved_quantity", "comment": null}, "damaged_quantity": {"type": "bigint", "index": 82, "name": "damaged_quantity", "comment": null}, "safety_stock_quantity": {"type": "bigint", "index": 83, "name": "safety_stock_quantity", "comment": null}, "quality_control_quantity": {"type": "bigint", "index": 84, "name": "quality_control_quantity", "comment": null}, "net_subtotal_sold": {"type": "double precision", "index": 85, "name": "net_subtotal_sold", "comment": null}, "net_quantity_sold": {"type": "double precision", "index": 86, "name": "net_quantity_sold", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__inventory_levels"}, "model.shopify.shopify_gql__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__line_item_enhanced", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"header_id": {"type": "integer", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "numeric(28,6)", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "numeric(28,6)", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "numeric(28,6)", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "numeric(28,6)", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "numeric(28,6)", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "numeric(28,6)", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "text", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "double precision", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "text", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "integer", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "source_relation": {"type": "text", "index": 37, "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.shopify.shopify_gql__line_item_enhanced"}, "model.shopify.shopify_gql__order_lines": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__order_lines", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}, "pre_tax_price": {"type": "double precision", "index": 27, "name": "pre_tax_price", "comment": null}, "order_line_tax": {"type": "double precision", "index": 28, "name": "order_line_tax", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 29, "name": "fulfillable_quantity", "comment": null}, "weight_unit": {"type": "text", "index": 30, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 31, "name": "weight_value", "comment": null}, "restock_types": {"type": "text", "index": 32, "name": "restock_types", "comment": null}, "refunded_quantity": {"type": "double precision", "index": 33, "name": "refunded_quantity", "comment": null}, "refunded_subtotal": {"type": "double precision", "index": 34, "name": "refunded_subtotal", "comment": null}, "quantity_net_refunds": {"type": "double precision", "index": 35, "name": "quantity_net_refunds", "comment": null}, "subtotal_net_refunds": {"type": "double precision", "index": 36, "name": "subtotal_net_refunds", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 37, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 38, "name": "variant_updated_at", "comment": null}, "inventory_item_id": {"type": "integer", "index": 39, "name": "inventory_item_id", "comment": null}, "media_id": {"type": "integer", "index": 40, "name": "media_id", "comment": null}, "variant_price": {"type": "double precision", "index": 41, "name": "variant_price", "comment": null}, "variant_sku": {"type": "text", "index": 42, "name": "variant_sku", "comment": null}, "variant_position": {"type": "integer", "index": 43, "name": "variant_position", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 44, "name": "variant_inventory_policy", "comment": null}, "variant_compare_at_price": {"type": "character varying", "index": 45, "name": "variant_compare_at_price", "comment": null}, "variant_is_taxable": {"type": "boolean", "index": 46, "name": "variant_is_taxable", "comment": null}, "variant_barcode": {"type": "text", "index": 47, "name": "variant_barcode", "comment": null}, "variant_inventory_quantity": {"type": "integer", "index": 48, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 49, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 50, "name": "variant_weight_unit", "comment": null}, "variant_tax_code": {"type": "text", "index": 51, "name": "variant_tax_code", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 52, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 53, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "integer", "index": 54, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 55, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 56, "name": "variant_sellable_online_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.shopify.shopify_gql__order_lines"}, "model.shopify.shopify_gql__order_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__order_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_url", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw": {"type": "text", "index": 89, "name": "metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe": {"type": "text", "index": 90, "name": "metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__order_metafields"}, "model.shopify.shopify_gql__orders": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__orders", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_url", "comment": null}, "order_adjustment_amount": {"type": "double precision", "index": 89, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 90, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "double precision", "index": 91, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 92, "name": "refund_total_tax", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 93, "name": "order_adjusted_total", "comment": null}, "line_item_count": {"type": "bigint", "index": 94, "name": "line_item_count", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 95, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 96, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_pres_currency_codes": {"type": "text", "index": 97, "name": "total_line_items_price_pres_currency_codes", "comment": null}, "total_line_items_price_shop_currency_codes": {"type": "text", "index": 98, "name": "total_line_items_price_shop_currency_codes", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 99, "name": "shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 100, "name": "percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 101, "name": "fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "bigint", "index": 102, "name": "count_discount_codes_applied", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 103, "name": "order_total_shipping_tax", "comment": null}, "order_tags": {"type": "text", "index": 104, "name": "order_tags", "comment": null}, "number_of_fulfillments": {"type": "bigint", "index": 105, "name": "number_of_fulfillments", "comment": null}, "fulfillment_services": {"type": "text", "index": 106, "name": "fulfillment_services", "comment": null}, "tracking_companies": {"type": "text", "index": 107, "name": "tracking_companies", "comment": null}, "tracking_numbers": {"type": "text", "index": 108, "name": "tracking_numbers", "comment": null}, "customer_order_seq_number": {"type": "bigint", "index": 109, "name": "customer_order_seq_number", "comment": null}, "new_vs_repeat": {"type": "text", "index": 110, "name": "new_vs_repeat", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__orders"}, "model.shopify.shopify_gql__product_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__product_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bc_brenbre": {"type": "text", "index": 14, "name": "metafield_bea81c1795a612d8fc3a232b156467bc_brenbre", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42": {"type": "text", "index": 15, "name": "metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__product_metafields"}, "model.shopify.shopify_gql__product_variant_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__product_variant_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}, "weight": {"type": "double precision", "index": 24, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__product_variant_metafields"}, "model.shopify.shopify_gql__products": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__products", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}, "collections": {"type": "text", "index": 14, "name": "collections", "comment": null}, "tags": {"type": "text", "index": 15, "name": "tags", "comment": null}, "count_variants": {"type": "bigint", "index": 16, "name": "count_variants", "comment": null}, "has_product_media": {"type": "boolean", "index": 17, "name": "has_product_media", "comment": null}, "total_quantity_sold": {"type": "bigint", "index": 18, "name": "total_quantity_sold", "comment": null}, "subtotal_sold": {"type": "double precision", "index": 19, "name": "subtotal_sold", "comment": null}, "quantity_sold_net_refunds": {"type": "double precision", "index": 20, "name": "quantity_sold_net_refunds", "comment": null}, "subtotal_sold_net_refunds": {"type": "double precision", "index": 21, "name": "subtotal_sold_net_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_quantity_per_order_line": {"type": "numeric", "index": 24, "name": "avg_quantity_per_order_line", "comment": null}, "product_total_discount": {"type": "double precision", "index": 25, "name": "product_total_discount", "comment": null}, "product_avg_discount_per_order_line": {"type": "double precision", "index": 26, "name": "product_avg_discount_per_order_line", "comment": null}, "product_total_tax": {"type": "double precision", "index": 27, "name": "product_total_tax", "comment": null}, "product_avg_tax_per_order_line": {"type": "double precision", "index": 28, "name": "product_avg_tax_per_order_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__products"}, "model.shopify.shopify_gql__shop_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__shop_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 16, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 17, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 18, "name": "email", "comment": null}, "domain": {"type": "text", "index": 19, "name": "domain", "comment": null}, "phone": {"type": "character varying", "index": 20, "name": "phone", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 21, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 22, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 23, "name": "timezone_offset_minutes", "comment": null}, "iana_timezone": {"type": "text", "index": 24, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 25, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 26, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "has_shipping_taxes": {"type": "boolean", "index": 29, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 30, "name": "has_taxes_included_in_price", "comment": null}, "has_storefront": {"type": "boolean", "index": 31, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 32, "name": "has_checkout_api_supported", "comment": null}, "money_format": {"type": "text", "index": 33, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 34, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 35, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 36, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 37, "name": "plan_display_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 38, "name": "is_password_enabled", "comment": null}, "is_setup_required": {"type": "boolean", "index": 39, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 40, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 41, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 42, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 43, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 44, "name": "unique_key", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew": {"type": "text", "index": 45, "name": "metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__shop_metafields"}, "model.shopify.shopify_gql__transactions": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__transactions", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "integer", "index": 3, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 4, "name": "amount_pres", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "device_id": {"type": "text", "index": 6, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 7, "name": "gateway", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 8, "name": "amount_pres_currency_code", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 9, "name": "amount_shop_currency_code", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 11, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 12, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 13, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 14, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 15, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 17, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 18, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 19, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 20, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 21, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 22, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "text", "index": 23, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 24, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 26, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 29, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 30, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 31, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 32, "name": "unique_key", "comment": null}, "payment_method": {"type": "text", "index": 33, "name": "payment_method", "comment": null}, "parent_created_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "parent_created_timestamp", "comment": null}, "parent_kind": {"type": "text", "index": 35, "name": "parent_kind", "comment": null}, "parent_amount": {"type": "double precision", "index": 36, "name": "parent_amount", "comment": null}, "parent_status": {"type": "text", "index": 37, "name": "parent_status", "comment": null}, "location_id": {"type": "integer", "index": 38, "name": "location_id", "comment": null}, "source_name": {"type": "text", "index": 39, "name": "source_name", "comment": null}, "exchange_rate": {"type": "numeric", "index": 40, "name": "exchange_rate", "comment": null}, "currency_exchange_calculated_amount": {"type": "double precision", "index": 41, "name": "currency_exchange_calculated_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__transactions"}, "model.shopify_source.stg_shopify__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 18, "name": "has_buyer_accepted_marketing", "comment": null}, "cart_token": {"type": "text", "index": 19, "name": "cart_token", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 20, "name": "created_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 21, "name": "closed_at", "comment": null}, "shop_currency": {"type": "text", "index": 22, "name": "shop_currency", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 24, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 25, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 26, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 27, "name": "gateway", "comment": null}, "checkout_id": {"type": "integer", "index": 28, "name": "checkout_id", "comment": null}, "landing_site_base_url": {"type": "text", "index": 29, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 30, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 31, "name": "name", "comment": null}, "note": {"type": "integer", "index": 32, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 33, "name": "phone", "comment": null}, "presentment_currency": {"type": "text", "index": 34, "name": "presentment_currency", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 36, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 37, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 38, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 39, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 40, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 41, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 42, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 43, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 44, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 45, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 46, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 47, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 48, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 49, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 50, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 51, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 52, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 53, "name": "has_taxes_included", "comment": null}, "token": {"type": "text", "index": 54, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_duties": {"type": "integer", "index": 56, "name": "total_duties", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 57, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 58, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 59, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 60, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 61, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 62, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 63, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 64, "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.shopify_source.stg_shopify__abandoned_checkout"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "discount_id": {"type": "bigint", "index": 3, "name": "discount_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "type": {"type": "character varying", "index": 5, "name": "type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 10, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"abandoned_checkout_shipping_line_id": {"type": "text", "index": 1, "name": "abandoned_checkout_shipping_line_id", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "shipping_code": {"type": "text", "index": 5, "name": "shipping_code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 7, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 8, "name": "delivery_expectation_range_max", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 9, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 10, "name": "delivery_expectation_type", "comment": null}, "discounted_price": {"type": "integer", "index": 11, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "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.shopify_source.stg_shopify__abandoned_checkout_shipping_line"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.stg_shopify__abandoned_checkout_tmp"}, "model.shopify_source.stg_shopify__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection"}, "model.shopify_source.stg_shopify__collection_product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection_product"}, "model.shopify_source.stg_shopify__collection_product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp"}, "model.shopify_source.stg_shopify__collection_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_tmp"}, "model.shopify_source.stg_shopify__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__customer"}, "model.shopify_source.stg_shopify__customer_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__customer_tag"}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp"}, "model.shopify_source.stg_shopify__customer_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tmp"}, "model.shopify_source.stg_shopify__discount_allocation": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"amount": {"type": "double precision", "index": 1, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 2, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 3, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 5, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 8, "name": "order_line_id", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_allocation"}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.stg_shopify__discount_allocation_tmp"}, "model.shopify_source.stg_shopify__discount_application": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocation_method": {"type": "character varying", "index": 1, "name": "allocation_method", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 3, "name": "description", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 5, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 6, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 7, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 8, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 9, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_application"}, "model.shopify_source.stg_shopify__discount_application_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp"}, "model.shopify_source.stg_shopify__discount_code_app": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_app"}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp"}, "model.shopify_source.stg_shopify__discount_code_basic": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_basic"}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp"}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_bxgy"}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp"}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_free_shipping"}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"}, "model.shopify_source.stg_shopify__discount_redeem_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_redeem_code"}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.stg_shopify__discount_redeem_code_tmp"}, "model.shopify_source.stg_shopify__fulfillment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "service": {"type": "text", "index": 5, "name": "service", "comment": null}, "shipment_status": {"type": "integer", "index": 6, "name": "shipment_status", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 8, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 9, "name": "tracking_number", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__fulfillment"}, "model.shopify_source.stg_shopify__fulfillment_event": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_event_id": {"type": "integer", "index": 1, "name": "fulfillment_event_id", "comment": null}, "fulfillment_id": {"type": "integer", "index": 2, "name": "fulfillment_id", "comment": null}, "shop_id": {"type": "integer", "index": 3, "name": "shop_id", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "message": {"type": "text", "index": 6, "name": "message", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 8, "name": "happened_at", "comment": null}, "address_1": {"type": "integer", "index": 9, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 10, "name": "city", "comment": null}, "province": {"type": "text", "index": 11, "name": "province", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "zip": {"type": "text", "index": 13, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 14, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 15, "name": "longitude", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "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.shopify_source.stg_shopify__fulfillment_event"}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp"}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp"}, "model.shopify_source.stg_shopify__inventory_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_item_id": {"type": "bigint", "index": 1, "name": "inventory_item_id", "comment": null}, "sku": {"type": "text", "index": 2, "name": "sku", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 4, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 5, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 6, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 7, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 8, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 9, "name": "is_inventory_quantity_tracked", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 10, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 11, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 12, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 13, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 14, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 15, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 16, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 17, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 18, "name": "tracked_editable_reason", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "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.shopify_source.stg_shopify__inventory_item"}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp"}, "model.shopify_source.stg_shopify__inventory_level": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "available_quantity": {"type": "integer", "index": 4, "name": "available_quantity", "comment": null}, "can_deactivate": {"type": "boolean", "index": 5, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_level"}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp"}, "model.shopify_source.stg_shopify__inventory_quantity": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_quantity_id": {"type": "bigint", "index": 1, "name": "inventory_quantity_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "inventory_state_name": {"type": "text", "index": 4, "name": "inventory_state_name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_quantity"}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp"}, "model.shopify_source.stg_shopify__location": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "is_active": {"type": "boolean", "index": 4, "name": "is_active", "comment": null}, "address_1": {"type": "text", "index": 5, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 6, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 10, "name": "country_name", "comment": null}, "is_legacy": {"type": "boolean", "index": 11, "name": "is_legacy", "comment": null}, "localized_country_name": {"type": "text", "index": 12, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 13, "name": "localized_province_name", "comment": null}, "phone": {"type": "integer", "index": 14, "name": "phone", "comment": null}, "province": {"type": "text", "index": 15, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 16, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 20, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 21, "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.shopify_source.stg_shopify__location"}, "model.shopify_source.stg_shopify__location_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.stg_shopify__location_tmp"}, "model.shopify_source.stg_shopify__media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media"}, "model.shopify_source.stg_shopify__media_image": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media_image"}, "model.shopify_source.stg_shopify__media_image_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_image_tmp"}, "model.shopify_source.stg_shopify__media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_tmp"}, "model.shopify_source.stg_shopify__metafield": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "stg_shopify__metafield", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"metafield_id": {"type": "bigint", "index": 1, "name": "metafield_id", "comment": null}, "description": {"type": "integer", "index": 2, "name": "description", "comment": null}, "namespace": {"type": "text", "index": 3, "name": "namespace", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "value_type": {"type": "text", "index": 6, "name": "value_type", "comment": null}, "owner_resource_id": {"type": "bigint", "index": 7, "name": "owner_resource_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "metafield_reference": {"type": "text", "index": 12, "name": "metafield_reference", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__metafield"}, "model.shopify_source.stg_shopify__metafield_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__metafield_tmp"}, "model.shopify_source.stg_shopify__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "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.shopify_source.stg_shopify__order"}, "model.shopify_source.stg_shopify__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "bigint", "index": 1, "name": "order_adjustment_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "amount_set": {"type": "integer", "index": 5, "name": "amount_set", "comment": null}, "tax_amount": {"type": "double precision", "index": 6, "name": "tax_amount", "comment": null}, "tax_amount_set": {"type": "integer", "index": 7, "name": "tax_amount_set", "comment": null}, "kind": {"type": "text", "index": 8, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 9, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_adjustment"}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp"}, "model.shopify_source.stg_shopify__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_discount_code"}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp"}, "model.shopify_source.stg_shopify__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "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.shopify_source.stg_shopify__order_line"}, "model.shopify_source.stg_shopify__order_line_refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_refund_id": {"type": "bigint", "index": 1, "name": "order_line_refund_id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "order_line_id": {"type": "bigint", "index": 3, "name": "order_line_id", "comment": null}, "subtotal": {"type": "integer", "index": 4, "name": "subtotal", "comment": null}, "subtotal_set": {"type": "integer", "index": 5, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 6, "name": "total_tax", "comment": null}, "total_tax_set": {"type": "integer", "index": 7, "name": "total_tax_set", "comment": null}, "quantity": {"type": "integer", "index": 8, "name": "quantity", "comment": null}, "refund_id": {"type": "bigint", "index": 9, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 10, "name": "restock_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_line_refund"}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp"}, "model.shopify_source.stg_shopify__order_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_tmp"}, "model.shopify_source.stg_shopify__order_note_attribute": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_note_attribute"}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp"}, "model.shopify_source.stg_shopify__order_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 3, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 5, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 6, "name": "discounted_price", "comment": null}, "discounted_price_set": {"type": "text", "index": 7, "name": "discounted_price_set", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 10, "name": "price_set", "comment": null}, "is_third_party_required": {"type": "boolean", "index": 11, "name": "is_third_party_required", "comment": null}, "source": {"type": "text", "index": 12, "name": "source", "comment": null}, "title": {"type": "text", "index": 13, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_line"}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp"}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_tax_line"}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"}, "model.shopify_source.stg_shopify__order_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_tag"}, "model.shopify_source.stg_shopify__order_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp"}, "model.shopify_source.stg_shopify__order_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tmp"}, "model.shopify_source.stg_shopify__order_url_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "key": {"type": "text", "index": 2, "name": "key", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_url_tag"}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp"}, "model.shopify_source.stg_shopify__product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product"}, "model.shopify_source.stg_shopify__product_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_media"}, "model.shopify_source.stg_shopify__product_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_media_tmp"}, "model.shopify_source.stg_shopify__product_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product_tag"}, "model.shopify_source.stg_shopify__product_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp"}, "model.shopify_source.stg_shopify__product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tmp"}, "model.shopify_source.stg_shopify__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "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.shopify_source.stg_shopify__product_variant"}, "model.shopify_source.stg_shopify__product_variant_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_variant_media"}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_variant_media_tmp"}, "model.shopify_source.stg_shopify__product_variant_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp"}, "model.shopify_source.stg_shopify__refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"refund_id": {"type": "bigint", "index": 1, "name": "refund_id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "order_id": {"type": "bigint", "index": 3, "name": "order_id", "comment": null}, "restock": {"type": "boolean", "index": 4, "name": "restock", "comment": null}, "total_duties_set": {"type": "integer", "index": 5, "name": "total_duties_set", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__refund"}, "model.shopify_source.stg_shopify__refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.stg_shopify__refund_tmp"}, "model.shopify_source.stg_shopify__shop": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify_source.stg_shopify__shop"}, "model.shopify_source.stg_shopify__shop_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__shop_tmp"}, "model.shopify_source.stg_shopify__tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tax_line"}, "model.shopify_source.stg_shopify__tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp"}, "model.shopify_source.stg_shopify__tender_transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "payment_method": {"type": "text", "index": 5, "name": "payment_method", "comment": null}, "remote_reference": {"type": "integer", "index": 6, "name": "remote_reference", "comment": null}, "user_id": {"type": "integer", "index": 7, "name": "user_id", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tender_transaction"}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.stg_shopify__tender_transaction_tmp"}, "model.shopify_source.stg_shopify__transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "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.shopify_source.stg_shopify__transaction"}, "model.shopify_source.stg_shopify__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__transaction_tmp"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "checkout_id": {"type": "integer", "index": 20, "name": "checkout_id", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "note": {"type": "text", "index": 22, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 23, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 24, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 25, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 26, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 27, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 28, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 29, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 30, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 31, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 32, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 33, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 34, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 35, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 36, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 37, "name": "shipping_address_zip", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 38, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 39, "name": "subtotal_price_shop_currency_code", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_pres_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 42, "name": "has_taxes_included", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 43, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 44, "name": "total_discount_shop_currency_code", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_pres_currency_code", "comment": null}, "total_duties_shop_amount": {"type": "double precision", "index": 47, "name": "total_duties_shop_amount", "comment": null}, "total_duties_shop_currency_code": {"type": "text", "index": 48, "name": "total_duties_shop_currency_code", "comment": null}, "total_duties_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_pres_amount", "comment": null}, "total_duties_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_pres_currency_code", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 51, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_shop_currency_code": {"type": "text", "index": 52, "name": "total_line_items_price_shop_currency_code", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 55, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 56, "name": "total_price_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 59, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 60, "name": "total_tax_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_pres_currency_code", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 63, "name": "completed_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 64, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 65, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 66, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 67, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 5, "name": "index", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"}, "model.shopify_source.stg_shopify_gql__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__collection"}, "model.shopify_source.stg_shopify_gql__collection_product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 5, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__collection_product"}, "model.shopify_source.stg_shopify_gql__collection_product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.stg_shopify_gql__collection_product_tmp"}, "model.shopify_source.stg_shopify_gql__collection_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.stg_shopify_gql__collection_tmp"}, "model.shopify_source.stg_shopify_gql__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer"}, "model.shopify_source.stg_shopify_gql__customer_address": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_address_id": {"type": "integer", "index": 1, "name": "customer_address_id", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "company": {"type": "text", "index": 6, "name": "company", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 8, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 10, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 11, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 12, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 13, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 15, "name": "phone", "comment": null}, "province": {"type": "text", "index": 16, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 17, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 18, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 19, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 20, "name": "timezone", "comment": null}, "has_coordinates_validated": {"type": "boolean", "index": 21, "name": "has_coordinates_validated", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 22, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 23, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 24, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_address"}, "model.shopify_source.stg_shopify_gql__customer_address_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_address_tmp"}, "model.shopify_source.stg_shopify_gql__customer_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag"}, "model.shopify_source.stg_shopify_gql__customer_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag_tmp"}, "model.shopify_source.stg_shopify_gql__customer_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tmp"}, "model.shopify_source.stg_shopify_gql__customer_visit": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_visit_id": {"type": "integer", "index": 1, "name": "customer_visit_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 4, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 5, "name": "landing_page_html", "comment": null}, "referral_code": {"type": "text", "index": 6, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 7, "name": "referral_info_html", "comment": null}, "referring_site": {"type": "text", "index": 8, "name": "referring_site", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 10, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 11, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 12, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 13, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 14, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 15, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 16, "name": "utm_parameters_term", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 17, "name": "occurred_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit"}, "model.shopify_source.stg_shopify_gql__customer_visit_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit_tmp"}, "model.shopify_source.stg_shopify_gql__discount_allocation": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocated_pres_amount": {"type": "double precision", "index": 1, "name": "allocated_pres_amount", "comment": null}, "allocated_pres_currency_code": {"type": "text", "index": 2, "name": "allocated_pres_currency_code", "comment": null}, "allocated_shop_amount": {"type": "double precision", "index": 3, "name": "allocated_shop_amount", "comment": null}, "allocated_shop_currency_code": {"type": "text", "index": 4, "name": "allocated_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 5, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 6, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 7, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation"}, "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_source.stg_shopify_gql__discount_allocation_tmp"}, "model.shopify_source.stg_shopify_gql__discount_application": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocation_method": {"type": "text", "index": 1, "name": "allocation_method", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_percentage": {"type": "double precision", "index": 8, "name": "value_percentage", "comment": null}, "value_currency_code": {"type": "text", "index": 9, "name": "value_currency_code", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_application"}, "model.shopify_source.stg_shopify_gql__discount_application_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_source.stg_shopify_gql__discount_application_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_app": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app"}, "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_app_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_basic": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic"}, "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_basic_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 13, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 14, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 17, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 18, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy"}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping"}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"}, "model.shopify_source.stg_shopify_gql__discount_redeem_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code"}, "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "service": {"type": "text", "index": 5, "name": "service", "comment": null}, "shipment_status": {"type": "text", "index": 6, "name": "shipment_status", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 12, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment"}, "model.shopify_source.stg_shopify_gql__fulfillment_event": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_event_id": {"type": "integer", "index": 1, "name": "fulfillment_event_id", "comment": null}, "fulfillment_id": {"type": "integer", "index": 2, "name": "fulfillment_id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "message": {"type": "text", "index": 4, "name": "message", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 5, "name": "estimated_delivery_at", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 6, "name": "happened_at", "comment": null}, "address_1": {"type": "text", "index": 7, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "province": {"type": "text", "index": 9, "name": "province", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "zip": {"type": "text", "index": 11, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 12, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 13, "name": "longitude", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 17, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event"}, "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_order_line_item_id": {"type": "integer", "index": 1, "name": "fulfillment_order_line_item_id", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 5, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 6, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 7, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 9, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 10, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 11, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 12, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 13, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 15, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 16, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 17, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 18, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 19, "name": "weight_value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 20, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 22, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_source.stg_shopify_gql__fulfillment_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "tracking_company": {"type": "text", "index": 3, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "text", "index": 4, "name": "tracking_number", "comment": null}, "tracking_url": {"type": "text", "index": 5, "name": "tracking_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 8, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_item_id": {"type": "integer", "index": 1, "name": "inventory_item_id", "comment": null}, "sku": {"type": "text", "index": 2, "name": "sku", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 4, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 5, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "text", "index": 6, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "text", "index": 7, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 8, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 9, "name": "is_inventory_quantity_tracked", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 10, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 11, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 12, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 13, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 14, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 15, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 16, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "boolean", "index": 17, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item"}, "model.shopify_source.stg_shopify_gql__inventory_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.stg_shopify_gql__inventory_item_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_level": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "integer", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level"}, "model.shopify_source.stg_shopify_gql__inventory_level_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.stg_shopify_gql__inventory_level_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_quantity": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_quantity_id": {"type": "integer", "index": 1, "name": "inventory_quantity_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 3, "name": "inventory_level_id", "comment": null}, "inventory_state_name": {"type": "text", "index": 4, "name": "inventory_state_name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 9, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity"}, "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_source.stg_shopify_gql__inventory_quantity_tmp"}, "model.shopify_source.stg_shopify_gql__location": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__location", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "is_active": {"type": "boolean", "index": 4, "name": "is_active", "comment": null}, "address_1": {"type": "text", "index": 5, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 6, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 10, "name": "country_name", "comment": null}, "is_legacy": {"type": "boolean", "index": 11, "name": "is_legacy", "comment": null}, "phone": {"type": "character varying", "index": 12, "name": "phone", "comment": null}, "province": {"type": "text", "index": 13, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 14, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 15, "name": "zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__location"}, "model.shopify_source.stg_shopify_gql__location_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__location_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__location_tmp"}, "model.shopify_source.stg_shopify_gql__media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "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}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media"}, "model.shopify_source.stg_shopify_gql__media_image": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_image", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 8, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media_image"}, "model.shopify_source.stg_shopify_gql__media_image_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_image_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media_image_tmp"}, "model.shopify_source.stg_shopify_gql__media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_source.stg_shopify_gql__media_tmp"}, "model.shopify_source.stg_shopify_gql__metafield": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__metafield", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"metafield_id": {"type": "integer", "index": 1, "name": "metafield_id", "comment": null}, "description": {"type": "text", "index": 2, "name": "description", "comment": null}, "namespace": {"type": "text", "index": 3, "name": "namespace", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "value_type": {"type": "text", "index": 6, "name": "value_type", "comment": null}, "owner_resource_id": {"type": "integer", "index": 7, "name": "owner_resource_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "metafield_reference": {"type": "text", "index": 12, "name": "metafield_reference", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 15, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__metafield"}, "model.shopify_source.stg_shopify_gql__metafield_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__metafield_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__metafield_tmp"}, "model.shopify_source.stg_shopify_gql__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order"}, "model.shopify_source.stg_shopify_gql__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "integer", "index": 1, "name": "order_adjustment_id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 3, "name": "amount_pres", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 4, "name": "amount_pres_currency_code", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 6, "name": "amount_shop_currency_code", "comment": null}, "tax_amount_pres": {"type": "double precision", "index": 7, "name": "tax_amount_pres", "comment": null}, "tax_amount_pres_currency_code": {"type": "text", "index": 8, "name": "tax_amount_pres_currency_code", "comment": null}, "tax_amount_shop": {"type": "double precision", "index": 9, "name": "tax_amount_shop", "comment": null}, "tax_amount_shop_currency_code": {"type": "text", "index": 10, "name": "tax_amount_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 11, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 14, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment"}, "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment_tmp"}, "model.shopify_source.stg_shopify_gql__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code"}, "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_source.stg_shopify_gql__order_discount_code_tmp"}, "model.shopify_source.stg_shopify_gql__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line"}, "model.shopify_source.stg_shopify_gql__order_line_refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_refund_id": {"type": "integer", "index": 1, "name": "order_line_refund_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "subtotal_pres_amount": {"type": "double precision", "index": 4, "name": "subtotal_pres_amount", "comment": null}, "subtotal_pres_currency_code": {"type": "text", "index": 5, "name": "subtotal_pres_currency_code", "comment": null}, "subtotal_shop_amount": {"type": "double precision", "index": 6, "name": "subtotal_shop_amount", "comment": null}, "subtotal_shop_currency_code": {"type": "text", "index": 7, "name": "subtotal_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 8, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 9, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 10, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 11, "name": "total_tax_shop_currency_code", "comment": null}, "quantity": {"type": "double precision", "index": 12, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 13, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 14, "name": "restock_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 17, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund"}, "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_source.stg_shopify_gql__order_line_refund_tmp"}, "model.shopify_source.stg_shopify_gql__order_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_note_attribute": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute"}, "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"}, "model.shopify_source.stg_shopify_gql__order_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "carrier_identifier": {"type": "text", "index": 3, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "delivery_category": {"type": "text", "index": 5, "name": "delivery_category", "comment": null}, "discounted_price_pres_amount": {"type": "double precision", "index": 6, "name": "discounted_price_pres_amount", "comment": null}, "discounted_price_pres_currency_code": {"type": "text", "index": 7, "name": "discounted_price_pres_currency_code", "comment": null}, "discounted_price_shop_amount": {"type": "double precision", "index": 8, "name": "discounted_price_shop_amount", "comment": null}, "discounted_price_shop_currency_code": {"type": "text", "index": 9, "name": "discounted_price_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 10, "name": "phone", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 11, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 12, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 13, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 14, "name": "price_shop_currency_code", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 19, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line"}, "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 3, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 4, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 5, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 6, "name": "price_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 7, "name": "rate", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_tag"}, "model.shopify_source.stg_shopify_gql__order_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_tag_tmp"}, "model.shopify_source.stg_shopify_gql__order_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_source.stg_shopify_gql__order_tmp"}, "model.shopify_source.stg_shopify_gql__product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product"}, "model.shopify_source.stg_shopify_gql__product_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "unique_key": {"type": "text", "index": 5, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_media"}, "model.shopify_source.stg_shopify_gql__product_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.stg_shopify_gql__product_media_tmp"}, "model.shopify_source.stg_shopify_gql__product_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tag"}, "model.shopify_source.stg_shopify_gql__product_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tag_tmp"}, "model.shopify_source.stg_shopify_gql__product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tmp"}, "model.shopify_source.stg_shopify_gql__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_variant"}, "model.shopify_source.stg_shopify_gql__product_variant_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 4, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media"}, "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_source.stg_shopify_gql__product_variant_media_tmp"}, "model.shopify_source.stg_shopify_gql__product_variant_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.stg_shopify_gql__product_variant_tmp"}, "model.shopify_source.stg_shopify_gql__refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"refund_id": {"type": "integer", "index": 1, "name": "refund_id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 4, "name": "user_id", "comment": null}, "return_id": {"type": "integer", "index": 5, "name": "return_id", "comment": null}, "total_refunded_pres_amount": {"type": "double precision", "index": 6, "name": "total_refunded_pres_amount", "comment": null}, "total_refunded_pres_currency_code": {"type": "text", "index": 7, "name": "total_refunded_pres_currency_code", "comment": null}, "total_refunded_shop_amount": {"type": "double precision", "index": 8, "name": "total_refunded_shop_amount", "comment": null}, "total_refunded_shop_currency_code": {"type": "text", "index": 9, "name": "total_refunded_shop_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__refund"}, "model.shopify_source.stg_shopify_gql__refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_source.stg_shopify_gql__refund_tmp"}, "model.shopify_source.stg_shopify_gql__shop": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 16, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 17, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 18, "name": "email", "comment": null}, "domain": {"type": "text", "index": 19, "name": "domain", "comment": null}, "phone": {"type": "character varying", "index": 20, "name": "phone", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 21, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 22, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 23, "name": "timezone_offset_minutes", "comment": null}, "iana_timezone": {"type": "text", "index": 24, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 25, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 26, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "has_shipping_taxes": {"type": "boolean", "index": 29, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 30, "name": "has_taxes_included_in_price", "comment": null}, "has_storefront": {"type": "boolean", "index": 31, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 32, "name": "has_checkout_api_supported", "comment": null}, "money_format": {"type": "text", "index": 33, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 34, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 35, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 36, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 37, "name": "plan_display_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 38, "name": "is_password_enabled", "comment": null}, "is_setup_required": {"type": "boolean", "index": 39, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 40, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 41, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 42, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 43, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 44, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__shop"}, "model.shopify_source.stg_shopify_gql__shop_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__shop_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__shop_tmp"}, "model.shopify_source.stg_shopify_gql__tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 3, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 4, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 5, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 6, "name": "price_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 7, "name": "rate", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tax_line"}, "model.shopify_source.stg_shopify_gql__tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tax_line_tmp"}, "model.shopify_source.stg_shopify_gql__tender_transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "payment_method": {"type": "text", "index": 5, "name": "payment_method", "comment": null}, "remote_reference": {"type": "text", "index": 6, "name": "remote_reference", "comment": null}, "user_id": {"type": "integer", "index": 7, "name": "user_id", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction"}, "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_source.stg_shopify_gql__tender_transaction_tmp"}, "model.shopify_source.stg_shopify_gql__transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "integer", "index": 3, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 4, "name": "amount_pres", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "device_id": {"type": "text", "index": 6, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 7, "name": "gateway", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 8, "name": "amount_pres_currency_code", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 9, "name": "amount_shop_currency_code", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 11, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 12, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 13, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 14, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 15, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 17, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 18, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 19, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 20, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 21, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 22, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "text", "index": 23, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 24, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 26, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 29, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 30, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 31, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 32, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__transaction"}, "model.shopify_source.stg_shopify_gql__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__transaction_tmp"}}, "sources": {"source.shopify_source.shopify.abandoned_checkout": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.shopify.abandoned_checkout"}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code"}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line"}, "source.shopify_source.shopify.collection": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection"}, "source.shopify_source.shopify.collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection_product"}, "source.shopify_source.shopify.customer": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer"}, "source.shopify_source.shopify.customer_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer_tag"}, "source.shopify_source.shopify.discount_allocation": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.shopify.discount_allocation"}, "source.shopify_source.shopify.discount_application": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_application"}, "source.shopify_source.shopify.discount_code_app": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_app"}, "source.shopify_source.shopify.discount_code_basic": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_basic"}, "source.shopify_source.shopify.discount_code_bxgy": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_bxgy"}, "source.shopify_source.shopify.discount_code_free_shipping": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_free_shipping"}, "source.shopify_source.shopify.discount_redeem_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.shopify.discount_redeem_code"}, "source.shopify_source.shopify.fulfillment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment"}, "source.shopify_source.shopify.fulfillment_event": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment_event"}, "source.shopify_source.shopify_graphql.abandoned_checkout": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_source.shopify_graphql.abandoned_checkout"}, "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"}, "source.shopify_source.shopify_graphql.collection": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.shopify_graphql.collection"}, "source.shopify_source.shopify_graphql.collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.shopify_graphql.collection_product"}, "source.shopify_source.shopify_graphql.customer_address": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_address"}, "source.shopify_source.shopify_graphql.customer": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer"}, "source.shopify_source.shopify_graphql.customer_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_tag"}, "source.shopify_source.shopify_graphql.customer_visit": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_visit_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_visit"}, "source.shopify_source.shopify_graphql.discount_allocation": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_source.shopify_graphql.discount_allocation"}, "source.shopify_source.shopify_graphql.discount_application": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_source.shopify_graphql.discount_application"}, "source.shopify_source.shopify_graphql.discount_code_app": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_app"}, "source.shopify_source.shopify_graphql.discount_code_basic": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_basic"}, "source.shopify_source.shopify_graphql.discount_code_bxgy": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_bxgy"}, "source.shopify_source.shopify_graphql.discount_code_free_shipping": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_free_shipping"}, "source.shopify_source.shopify_graphql.discount_redeem_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_source.shopify_graphql.discount_redeem_code"}, "source.shopify_source.shopify_graphql.fulfillment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_source.shopify_graphql.fulfillment"}, "source.shopify_source.shopify_graphql.fulfillment_event": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_event"}, "source.shopify_source.shopify_graphql.fulfillment_order_line_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_order_line_item"}, "source.shopify_source.shopify_graphql.fulfillment_tracking_info": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_tracking_info"}, "source.shopify_source.shopify_graphql.inventory_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.shopify_graphql.inventory_item"}, "source.shopify_source.shopify_graphql.inventory_level": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.shopify_graphql.inventory_level"}, "source.shopify_source.shopify_graphql.inventory_quantity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_source.shopify_graphql.inventory_quantity"}, "source.shopify_source.shopify_graphql.location": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.location"}, "source.shopify_source.shopify_graphql.media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_source.shopify_graphql.media"}, "source.shopify_source.shopify_graphql.media_image": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.media_image"}, "source.shopify_source.shopify_graphql.metafield": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.metafield"}, "source.shopify_source.shopify_graphql.order_adjustment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_adjustment"}, "source.shopify_source.shopify_graphql.order": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_source.shopify_graphql.order"}, "source.shopify_source.shopify_graphql.order_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_source.shopify_graphql.order_discount_code"}, "source.shopify_source.shopify_graphql.order_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_line"}, "source.shopify_source.shopify_graphql.order_line_refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_source.shopify_graphql.order_line_refund"}, "source.shopify_source.shopify_graphql.order_note_attribute": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_note_attribute"}, "source.shopify_source.shopify_graphql.order_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_shipping_line"}, "source.shopify_source.shopify_graphql.order_shipping_tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_shipping_tax_line"}, "source.shopify_source.shopify_graphql.order_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_tag"}, "source.shopify_source.shopify_graphql.product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.product"}, "source.shopify_source.shopify_graphql.product_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.shopify_graphql.product_media"}, "source.shopify_source.shopify_graphql.product_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.product_tag"}, "source.shopify_source.shopify_graphql.product_variant": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.shopify_graphql.product_variant"}, "source.shopify_source.shopify_graphql.product_variant_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_source.shopify_graphql.product_variant_media"}, "source.shopify_source.shopify_graphql.refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_source.shopify_graphql.refund"}, "source.shopify_source.shopify_graphql.shop": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.shop"}, "source.shopify_source.shopify_graphql.tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.tax_line"}, "source.shopify_source.shopify_graphql.tender_transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_source.shopify_graphql.tender_transaction"}, "source.shopify_source.shopify_graphql.transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.transaction"}, "source.shopify_source.shopify.inventory_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_item"}, "source.shopify_source.shopify.inventory_level": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_level"}, "source.shopify_source.shopify.inventory_quantity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_quantity"}, "source.shopify_source.shopify.location": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.shopify.location"}, "source.shopify_source.shopify.media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media"}, "source.shopify_source.shopify.media_image": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media_image"}, "source.shopify_source.shopify.metafield": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.metafield"}, "source.shopify_source.shopify.order_adjustment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_adjustment"}, "source.shopify_source.shopify.order": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order"}, "source.shopify_source.shopify.order_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_discount_code"}, "source.shopify_source.shopify.order_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line"}, "source.shopify_source.shopify.order_line_refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line_refund"}, "source.shopify_source.shopify.order_note_attribute": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_note_attribute"}, "source.shopify_source.shopify.order_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_line"}, "source.shopify_source.shopify.order_shipping_tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_tax_line"}, "source.shopify_source.shopify.order_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_tag"}, "source.shopify_source.shopify.order_url_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_url_tag"}, "source.shopify_source.shopify.product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product"}, "source.shopify_source.shopify.product_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_media"}, "source.shopify_source.shopify.product_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_tag"}, "source.shopify_source.shopify.product_variant": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_variant"}, "source.shopify_source.shopify.product_variant_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_variant_media"}, "source.shopify_source.shopify.refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.shopify.refund"}, "source.shopify_source.shopify.shop": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.shop"}, "source.shopify_source.shopify.tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.tax_line"}, "source.shopify_source.shopify.tender_transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.shopify.tender_transaction"}, "source.shopify_source.shopify.transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.transaction"}}, "errors": null} \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index 5cb6c690..c201f4a4 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v12.json", "dbt_version": "1.10.5", "generated_at": "2025-07-23T19:32:37.357253Z", "invocation_id": "b358fbbb-0b74-4925-bfa5-ecabf87949f8", "invocation_started_at": "2025-07-23T19:32:19.844749+00:00", "env": {}, "project_name": "shopify_integration_tests", "project_id": "c39719ba3d679fd569bed21921e72e32", "user_id": null, "send_anonymous_usage_stats": false, "adapter_type": "postgres", "quoting": {"database": true, "schema": true, "identifier": true, "column": null}}, "nodes": {"seed.shopify_integration_tests.shopify_discount_code_basic_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_basic_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_basic_data.csv", "original_file_path": "seeds/shopify_discount_code_basic_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_basic_data"], "alias": "shopify_discount_code_basic_data", "checksum": {"name": "sha256", "checksum": "dc25a6ca420db34e1ce13e0749f1e65e949cef3a260c736e1eb6e53b7db15ace"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1753299142.6819472, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_order_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_discount_code_data.csv", "original_file_path": "seeds/shopify_order_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_order_discount_code_data"], "alias": "shopify_order_discount_code_data", "checksum": {"name": "sha256", "checksum": "f4e391a3f00ebb1f7444487e4577dc95e28c39745e40f6c0fcb1bd90562833f6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"order_id": "bigint", "amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float"}}, "created_at": 1753299142.6894393, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_data": {"database": "postgres", "schema": "public", "name": "shopify_order_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_data.csv", "original_file_path": "seeds/shopify_order_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_data", "fqn": ["shopify_integration_tests", "shopify_order_data"], "alias": "shopify_order_data", "checksum": {"name": "sha256", "checksum": "274aec2c5b1f7cd936359683f33c830d2ef7067e6e445469df0c3b460ad9d56c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "bigint", "customer_id": "bigint", "location_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1753299142.6927674, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_tag_data.csv", "original_file_path": "seeds/shopify_order_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_tag_data"], "alias": "shopify_order_tag_data", "checksum": {"name": "sha256", "checksum": "c448adfe655f83dcaf6370ad2ef36f0ad6991c1b6d001e3aab317fd17359b129"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1753299142.6958911, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_redeem_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_redeem_code_data.csv", "original_file_path": "seeds/shopify_discount_redeem_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_redeem_code_data", "fqn": ["shopify_integration_tests", "shopify_discount_redeem_code_data"], "alias": "shopify_discount_redeem_code_data", "checksum": {"name": "sha256", "checksum": "801a010544f98b358371e38d9af1023f4e91747d6f4e488c5a65358794bc3ab5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "discount_id": "bigint", "created_by_id": "bigint", "async_usage_count": "integer", "code": "varchar", "discount_type": "varchar", "created_by_description": "varchar", "created_by_title": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "created_by_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "async_usage_count": "integer", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1753299142.69923, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_application_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_application_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_application_data.csv", "original_file_path": "seeds/shopify_discount_application_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data", "fqn": ["shopify_integration_tests", "shopify_discount_application_data"], "alias": "shopify_discount_application_data", "checksum": {"name": "sha256", "checksum": "9d678050ac7442f36d8aa9a5b0b013aeea7ab64a785a564a31aa41fa6a6ee70a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"allocation_method": "varchar", "code": "varchar", "description": "varchar", "index": "integer", "order_id": "bigint", "target_selection": "varchar", "target_type": "varchar", "title": "varchar", "type": "varchar", "value": "float", "value_type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"allocation_method": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "index": "integer", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "target_selection": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "target_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "value": "float", "value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1753299142.7025635, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_refund_data.csv", "original_file_path": "seeds/shopify_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_refund_data", "fqn": ["shopify_integration_tests", "shopify_refund_data"], "alias": "shopify_refund_data", "checksum": {"name": "sha256", "checksum": "8d8bc98681d9b0d57a43af3fc99ff13cc42401d97e49bba41c1fafb28f858d23"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1753299142.705817, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_product_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_product_data.csv", "original_file_path": "seeds/shopify_collection_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data", "fqn": ["shopify_integration_tests", "shopify_collection_product_data"], "alias": "shopify_collection_product_data", "checksum": {"name": "sha256", "checksum": "f0829ff9b0c3116846c83d4cb2dfae170594e230d3586b8abae97a31d4a51c55"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1753299142.7088902, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_data.csv", "original_file_path": "seeds/shopify_customer_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_data", "fqn": ["shopify_integration_tests", "shopify_customer_data"], "alias": "shopify_customer_data", "checksum": {"name": "sha256", "checksum": "72ba9c7141e483ec3a8715cb27d57c8e36f8ca293b0a507676391c8804c717f2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint", "default_address_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "default_address_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1753299142.7120738, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_media_data.csv", "original_file_path": "seeds/shopify_product_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_media_data", "fqn": ["shopify_integration_tests", "shopify_product_media_data"], "alias": "shopify_product_media_data", "checksum": {"name": "sha256", "checksum": "b38d774b588961b4cd6e5b8cdb9c0319dd694bcdd474a54a68e062b3cf488d44"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1753299142.7152371, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_tax_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_tax_line_data"], "alias": "shopify_order_shipping_tax_line_data", "checksum": {"name": "sha256", "checksum": "279d995731cd3b85aa948f6721ada5f455324347f7ac3211a98bf2f3bb72f899"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float"}}, "created_at": 1753299142.7183723, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_image_data": {"database": "postgres", "schema": "public", "name": "shopify_media_image_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_image_data.csv", "original_file_path": "seeds/shopify_media_image_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_image_data", "fqn": ["shopify_integration_tests", "shopify_media_image_data"], "alias": "shopify_media_image_data", "checksum": {"name": "sha256", "checksum": "98621ab1fd6334df5ffa045d9642644d5e465d8684cd635dd5bf8c157f964966"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"media_id": "bigint", "image_id": "bigint", "image_alt_text": "varchar", "image_height": "integer", "image_url": "varchar", "image_width": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_alt_text": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_height": "integer", "image_url": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_width": "integer"}}, "created_at": 1753299142.7215304, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_data": {"database": "postgres", "schema": "public", "name": "shopify_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_data.csv", "original_file_path": "seeds/shopify_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_data", "fqn": ["shopify_integration_tests", "shopify_product_data"], "alias": "shopify_product_data", "checksum": {"name": "sha256", "checksum": "e3e37227f60cd1960dc29421bf94785a59c058e4b6a4cd01262376f34947e320"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1753299142.7248209, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_refund_data.csv", "original_file_path": "seeds/shopify_order_line_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data", "fqn": ["shopify_integration_tests", "shopify_order_line_refund_data"], "alias": "shopify_order_line_refund_data", "checksum": {"name": "sha256", "checksum": "5d28c17ac30b49f32cb92c5ade7643c3322d0a18e38094140cf06ace9fc85e72"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "id": "bigint", "location_id": "bigint", "refund_id": "bigint", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1753299142.728022, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_item_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_item_data.csv", "original_file_path": "seeds/shopify_inventory_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data", "fqn": ["shopify_integration_tests", "shopify_inventory_item_data"], "alias": "shopify_inventory_item_data", "checksum": {"name": "sha256", "checksum": "11076fbaaf5cb0b1a1cdfdcb8520fc3c6049ef627ff305251d40f1e562dfcd52"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "measurement_id": "bigint", "legacy_resource_id": "bigint", "updated_at": "timestamp", "created_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "measurement_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "updated_at": "timestamp", "created_at": "timestamp"}}, "created_at": 1753299142.731222, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_quantity_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_quantity_data.csv", "original_file_path": "seeds/shopify_inventory_quantity_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data", "fqn": ["shopify_integration_tests", "shopify_inventory_quantity_data"], "alias": "shopify_inventory_quantity_data", "checksum": {"name": "sha256", "checksum": "8fa9f26df5501b6f7a065d74a2da5bf70329b7197e8c11139cda950874243d1c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "inventory_level_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_level_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1753299142.7343996, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_bxgy_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_bxgy_data.csv", "original_file_path": "seeds/shopify_discount_code_bxgy_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_bxgy_data"], "alias": "shopify_discount_code_bxgy_data", "checksum": {"name": "sha256", "checksum": "676970b98658b2da21aec24691e589c9d1bd42703e266864d7af1d310f57fc53"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "varchar", "summary": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "summary": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}}, "created_at": 1753299142.7378023, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_data.csv", "original_file_path": "seeds/shopify_order_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_data", "fqn": ["shopify_integration_tests", "shopify_order_line_data"], "alias": "shopify_order_line_data", "checksum": {"name": "sha256", "checksum": "a4e65b3c0ee73ff8755aec89198632427baa2dbcc39d2e97659a8a976a92b8cd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "order_id": "bigint", "id": "bigint", "product_id": "bigint", "variant_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1753299142.7412078, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_free_shipping_data.csv", "original_file_path": "seeds/shopify_discount_code_free_shipping_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_free_shipping_data"], "alias": "shopify_discount_code_free_shipping_data", "checksum": {"name": "sha256", "checksum": "55e37730e02503078ff03a624def743c4413c5feda1bdcdd38cc7d0dbe47e2bd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1753299142.7445831, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"database": "postgres", "schema": "public", "name": "shopify_order_adjustment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_adjustment_data.csv", "original_file_path": "seeds/shopify_order_adjustment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data", "fqn": ["shopify_integration_tests", "shopify_order_adjustment_data"], "alias": "shopify_order_adjustment_data", "checksum": {"name": "sha256", "checksum": "48ce96540f19450088c661fd48bd8f6d58bb4ca13a1f048880e9984be367172e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1753299142.747901, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_product_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_tag_data.csv", "original_file_path": "seeds/shopify_product_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data", "fqn": ["shopify_integration_tests", "shopify_product_tag_data"], "alias": "shopify_product_tag_data", "checksum": {"name": "sha256", "checksum": "10203c8ee30c2d400a7f5126732f6c17985017df02cd4eceff90ef483e1c0729"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1753299142.750987, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_shop_data": {"database": "postgres", "schema": "public", "name": "shopify_shop_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_shop_data.csv", "original_file_path": "seeds/shopify_shop_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_shop_data", "fqn": ["shopify_integration_tests", "shopify_shop_data"], "alias": "shopify_shop_data", "checksum": {"name": "sha256", "checksum": "1029ea325d95c96dbdf0c52a9fd8ef272516b15f99f834a507bff27eda689bba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}}, "created_at": 1753299142.7544181, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_data.csv", "original_file_path": "seeds/shopify_fulfillment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_data"], "alias": "shopify_fulfillment_data", "checksum": {"name": "sha256", "checksum": "36993dd7ab6cd0951d3229c9d72237f4115292350e2659bdb717866f8fe8ebd8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1753299142.7575898, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_data.csv", "original_file_path": "seeds/shopify_collection_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_data", "fqn": ["shopify_integration_tests", "shopify_collection_data"], "alias": "shopify_collection_data", "checksum": {"name": "sha256", "checksum": "27cb0f0a37833f86bc7d0eb153acacdca987a69caf07dccdea4a072895f0a518"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1753299142.7606514, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"database": "postgres", "schema": "public", "name": "shopify_order_note_attribute_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_note_attribute_data.csv", "original_file_path": "seeds/shopify_order_note_attribute_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data", "fqn": ["shopify_integration_tests", "shopify_order_note_attribute_data"], "alias": "shopify_order_note_attribute_data", "checksum": {"name": "sha256", "checksum": "9076f469c15ad5e18c4365039836b6739c2d7fc79ed987564ab8c1849994309c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1753299142.7636783, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_discount_code_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_discount_code_data"], "alias": "shopify_abandoned_checkout_discount_code_data", "checksum": {"name": "sha256", "checksum": "f60365d56b94e348893476184122a98c6a4b939de1c7de1f7f3684e2ba344e48"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"checkout_id": "bigint", "discount_id": "bigint", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "varchar", "type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"checkout_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1753299142.7667797, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_event_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_event_data.csv", "original_file_path": "seeds/shopify_fulfillment_event_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_event_data"], "alias": "shopify_fulfillment_event_data", "checksum": {"name": "sha256", "checksum": "ae538cd22df11081f1f4d2b6970c945d432f92af0e96fac2e10e1e09d886abef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1753299142.769925, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_line_data"], "alias": "shopify_order_shipping_line_data", "checksum": {"name": "sha256", "checksum": "7a83a6e1121c088d6cd6ab3a944c683bfe4ac72ac440fcf97d55c3ca709b88a8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"discounted_price": "float", "price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"discounted_price": "float", "price": "float"}}, "created_at": 1753299142.7729461, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_data"], "alias": "shopify_abandoned_checkout_data", "checksum": {"name": "sha256", "checksum": "1fc66dc1ee0e84111cc6c3de1b49c3e172d477eadda206ec80095dbae720a7b4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"total_line_items_price": "float", "billing_address_phone": "varchar", "shipping_address_phone": "varchar", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"total_line_items_price": "float", "billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1753299142.7760782, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_location_data": {"database": "postgres", "schema": "public", "name": "shopify_location_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_location_data.csv", "original_file_path": "seeds/shopify_location_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_location_data", "fqn": ["shopify_integration_tests", "shopify_location_data"], "alias": "shopify_location_data", "checksum": {"name": "sha256", "checksum": "781bb070fbf96fd7e01d4229ccbac91f77bcd52726ffea2de9fa36abe6804b38"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1753299142.7791142, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_data.csv", "original_file_path": "seeds/shopify_product_variant_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_data"], "alias": "shopify_product_variant_data", "checksum": {"name": "sha256", "checksum": "2c7c29665cf22fea389ed017edcd174d97384f19f5fa65e1e70073b6e29de1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "product_id": "bigint", "inventory_item_id": "bigint", "legacy_resource_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1753299142.7822816, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_tag_data.csv", "original_file_path": "seeds/shopify_customer_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data", "fqn": ["shopify_integration_tests", "shopify_customer_tag_data"], "alias": "shopify_customer_tag_data", "checksum": {"name": "sha256", "checksum": "27dad4d9a29bfd94903c156e01cdee4c0b33cfb2c5d88af98b89c19287596e5c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1753299142.7853854, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_metafield_data": {"database": "postgres", "schema": "public", "name": "shopify_metafield_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_metafield_data.csv", "original_file_path": "seeds/shopify_metafield_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_metafield_data", "fqn": ["shopify_integration_tests", "shopify_metafield_data"], "alias": "shopify_metafield_data", "checksum": {"name": "sha256", "checksum": "f9586af820e5f4c1d04e71e5a8fc699080ecb101b85735abe9724a8ea9bf0d97"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"value_type": "varchar", "type": "varchar", "id": "bigint", "owner_id": "bigint", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "owner_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1753299142.7885535, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_level_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_level_data.csv", "original_file_path": "seeds/shopify_inventory_level_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data", "fqn": ["shopify_integration_tests", "shopify_inventory_level_data"], "alias": "shopify_inventory_level_data", "checksum": {"name": "sha256", "checksum": "d8bde61ad5a46b099f9e615464abf20677a00869ba308860ce0c80e59ebf40bb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "location_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1753299142.7917151, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_transaction_data.csv", "original_file_path": "seeds/shopify_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_transaction_data", "fqn": ["shopify_integration_tests", "shopify_transaction_data"], "alias": "shopify_transaction_data", "checksum": {"name": "sha256", "checksum": "def7b7fc64e42148b900dcd1f7327b470e5d3b0ed8e73f263e46a715ecb09199"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1753299142.7948427, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_data": {"database": "postgres", "schema": "public", "name": "shopify_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_data.csv", "original_file_path": "seeds/shopify_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_data", "fqn": ["shopify_integration_tests", "shopify_media_data"], "alias": "shopify_media_data", "checksum": {"name": "sha256", "checksum": "7c6234841dd8ff01ec7cd72fb11d8f933c4b12efbf8470324f0671f6afb6e266"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "status": "varchar", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1753299142.798147, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_url_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_url_tag_data.csv", "original_file_path": "seeds/shopify_order_url_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_url_tag_data"], "alias": "shopify_order_url_tag_data", "checksum": {"name": "sha256", "checksum": "18d23ae4cb9bb569772db2a5622ab7f84281f3391b6c9295973a8fed3d887567"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1753299142.8012495, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_allocation_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_allocation_data.csv", "original_file_path": "seeds/shopify_discount_allocation_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_allocation_data", "fqn": ["shopify_integration_tests", "shopify_discount_allocation_data"], "alias": "shopify_discount_allocation_data", "checksum": {"name": "sha256", "checksum": "22cd7acd65491fcbbd2d2de60dc69b993fa1ac45d90b41dee7976905d6418fcf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "varchar", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "varchar", "discount_application_index": "integer", "index": "integer", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_application_index": "integer", "index": "integer", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1753299142.8043768, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_tender_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tender_transaction_data.csv", "original_file_path": "seeds/shopify_tender_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tender_transaction_data", "fqn": ["shopify_integration_tests", "shopify_tender_transaction_data"], "alias": "shopify_tender_transaction_data", "checksum": {"name": "sha256", "checksum": "7d1b7ebc547f9068b258e49431a3955f9143b99afa151664aa26a2ad9c5b479c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1753299142.8074875, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tax_line_data.csv", "original_file_path": "seeds/shopify_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_tax_line_data"], "alias": "shopify_tax_line_data", "checksum": {"name": "sha256", "checksum": "af3615f675a22513590ef6a8abcce714b286f06c7532e650a56787c6afbd36de"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float", "rate": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float", "rate": "float"}}, "created_at": 1753299142.810644, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_shipping_line_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_shipping_line_data"], "alias": "shopify_abandoned_checkout_shipping_line_data", "checksum": {"name": "sha256", "checksum": "9b1e873b952f85626352f2ca85b67b7a14e54e7edd01467951653fc2716023d5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"markup": "varchar", "price": "float", "original_shop_markup": "varchar", "original_shop_price": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "price": "float", "original_shop_markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "original_shop_price": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1753299142.8138256, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_app_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_app_data.csv", "original_file_path": "seeds/shopify_discount_code_app_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_app_data"], "alias": "shopify_discount_code_app_data", "checksum": {"name": "sha256", "checksum": "079a9204224ded648d6e15b794bf77034e41f319b72801fcfee0f5b1c9e37d77"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1753299142.8172178, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_media_data.csv", "original_file_path": "seeds/shopify_product_variant_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_media_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_media_data"], "alias": "shopify_product_variant_media_data", "checksum": {"name": "sha256", "checksum": "ffa08a9130b2aa66803955797f46a610fc32abcdb404635c6c1dc3a8b289e48b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_variant_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1753299142.8204865, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "model.shopify.shopify__customer_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_cohorts", "resource_type": "model", "package_name": "shopify", "path": "shopify__customer_cohorts.sql", "original_file_path": "models/shopify__customer_cohorts.sql", "unique_id": "model.shopify.shopify__customer_cohorts", "fqn": ["shopify", "shopify__customer_cohorts"], "alias": "shopify__customer_cohorts", "checksum": {"name": "sha256", "checksum": "eaae13d08e96bac9c531c0be1720c1a96df1b027ddb25711e069ac54fb56b959"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "created_at": 1753299145.315912, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"", "raw_code": "{{\n config(\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'customer_id'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify__customer_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-07-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customers\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast(date_trunc('month', first_order_timestamp) as date) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n customer_id\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-07-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify__customer_email_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "resource_type": "model", "package_name": "shopify", "path": "shopify__customer_email_cohorts.sql", "original_file_path": "models/shopify__customer_email_cohorts.sql", "unique_id": "model.shopify.shopify__customer_email_cohorts", "fqn": ["shopify", "shopify__customer_email_cohorts"], "alias": "shopify__customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "86b868be698fb7ab2628a03701166b68217305348a80d05f37da91cc0ee28092"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's (on the EMAIL grain) performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "created_at": 1753299145.317564, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"", "raw_code": "{{\n config(\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'email'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customer_emails') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customer_emails", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify__customer_email_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-07-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customer_emails\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n email\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-07-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.email as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify__inventory_levels": {"database": "postgres", "schema": "public_shopify", "name": "shopify__inventory_levels", "resource_type": "model", "package_name": "shopify", "path": "shopify__inventory_levels.sql", "original_file_path": "models/shopify__inventory_levels.sql", "unique_id": "model.shopify.shopify__inventory_levels", "fqn": ["shopify", "shopify__inventory_levels"], "alias": "shopify__inventory_levels", "checksum": {"name": "sha256", "checksum": "b29653b2f6648671893aa4f9a28b256b40ffdfbdcd7a0c574922b0ae1f783ec7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of inventory items (which have a 1:1 relationship with product variants) and locations. \nInventory Level = Inventory item @ a Location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_item_deleted": {"name": "is_inventory_item_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "(DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_created_at": {"name": "inventory_item_created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_updated_at": {"name": "inventory_item_updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_location_deleted": {"name": "is_location_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_location_active": {"name": "is_location_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_created_at": {"name": "location_created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy_location": {"name": "is_legacy_location", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_name": {"name": "location_name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_updated_at": {"name": "location_updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_media_id": {"name": "variant_media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_variant_taxable": {"name": "is_variant_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_orders": {"name": "count_distinct_orders", "description": "The number of distinct orders placed from this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customers": {"name": "count_distinct_customers", "description": "The number of distinct customers (based on customer_id) that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customer_emails": {"name": "count_distinct_customer_emails", "description": "The number of distinct customer emails that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timetamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "The timestamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_refunds": {"name": "subtotal_sold_refunds", "description": "The monetary amount (in shop currency) of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_refunds": {"name": "quantity_sold_refunds", "description": "The quantity of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_subtotal_sold": {"name": "net_subtotal_sold", "description": "Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_quantity_sold": {"name": "net_quantity_sold", "description": "Net quantity sold from this inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_pending": {"name": "count_fulfillment_pending", "description": "Count of currently pending distinct fulfillments for this inventory level. \"Pending\" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_open": {"name": "count_fulfillment_open", "description": "Count of currently open distinct fulfillments for this inventory level. \"Open\" = The fulfillment has been acknowledged by the service and is in processing.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_success": {"name": "count_fulfillment_success", "description": "Count of successful distinct fulfillments for this inventory level. \"Success\" = The fulfillment was successful.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_cancelled": {"name": "count_fulfillment_cancelled", "description": "Count of cancelled distinct fulfillments for this inventory level. \"Cancelled\" = The fulfillment was cancelled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_error": {"name": "count_fulfillment_error", "description": "Count of distinct fulfillments for this inventory level that encountered an error. \"Error\" = There was an error with the fulfillment request.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of distinct fulfillments for this inventory level that failed. \"Failure\" = The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "available_quantity": {"name": "available_quantity", "description": "The available quantity that a merchant can sell, determined by coalescing the `quantity` where inventory_state_name = 'available' from `stg_shopify__inventory_quantity`and `available_quantity` from the deprecated `stg_shopify__inventory_level`. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "incoming_quantity": {"name": "incoming_quantity", "description": "The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "on_hand_quantity": {"name": "on_hand_quantity", "description": "The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "committed_quantity": {"name": "committed_quantity", "description": "The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reserved_quantity": {"name": "reserved_quantity", "description": "The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "damaged_quantity": {"name": "damaged_quantity", "description": "The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "safety_stock_quantity": {"name": "safety_stock_quantity", "description": "The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quality_control_quantity": {"name": "quality_control_quantity", "description": "The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1753299145.4316487, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__inventory_levels\"", "raw_code": "with inventory_level as (\n\n select *\n from {{ var('shopify_inventory_level') }}\n), \n\ninventory_item as (\n\n select *\n from {{ var('shopify_inventory_item') }}\n),\n\ninventory_quantity as (\n\n select *\n from {{ var('shopify_inventory_quantity') }}\n),\n\nlocation as (\n\n select *\n from {{ var('shopify_location') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n),\n\nproduct as (\n\n select *\n from {{ var('shopify_product') }}\n),\n\ninventory_level_aggregated as (\n\n select *\n from {{ ref('int_shopify__inventory_level__aggregates') }}\n),\n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%}\n {% for inventory_state in inventory_states -%}\n , sum(case when lower(inventory_state_name) = {{ \"'\" ~ inventory_state|lower ~ \"'\" }}\n {% if inventory_state|lower == 'available ' -%}\n then coalesce(inventory_quantity.quantity, inventory_level.available_quantity)\n {% else -%}\n then inventory_quantity.quantity\n {% endif -%}\n end) as {{ inventory_state }}_quantity\n {% endfor -%}\n\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id as variant_media_id,\n {% endif %}\n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }}\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n {% endif %}\n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n\n {% for inventory_state in inventory_states -%}\n , inventory_quantity_aggregated.{{ inventory_state }}_quantity\n {% endfor -%}\n\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level", "package": null, "version": null}, {"name": "stg_shopify__inventory_item", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity", "package": null, "version": null}, {"name": "stg_shopify__location", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "int_shopify__inventory_level__aggregates", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/shopify__inventory_levels.sql", "compiled": true, "compiled_code": "with __dbt__cte__shopify__orders__order_refunds as (\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify__inventory_level__aggregates as (\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), inventory_level as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"\n), \n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\n),\n\ninventory_quantity as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"\n),\n\nlocation as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__location\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n),\n\nproduct as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n),\n\ninventory_level_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__inventory_level__aggregates\n),\n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n , sum(case when lower(inventory_state_name) = 'incoming'\n then inventory_quantity.quantity\n end) as incoming_quantity\n , sum(case when lower(inventory_state_name) = 'on_hand'\n then inventory_quantity.quantity\n end) as on_hand_quantity\n , sum(case when lower(inventory_state_name) = 'available'\n then inventory_quantity.quantity\n end) as available_quantity\n , sum(case when lower(inventory_state_name) = 'committed'\n then inventory_quantity.quantity\n end) as committed_quantity\n , sum(case when lower(inventory_state_name) = 'reserved'\n then inventory_quantity.quantity\n end) as reserved_quantity\n , sum(case when lower(inventory_state_name) = 'damaged'\n then inventory_quantity.quantity\n end) as damaged_quantity\n , sum(case when lower(inventory_state_name) = 'safety_stock'\n then inventory_quantity.quantity\n end) as safety_stock_quantity\n , sum(case when lower(inventory_state_name) = 'quality_control'\n then inventory_quantity.quantity\n end) as quality_control_quantity\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n \n product_variant_media.media_id as variant_media_id,\n \n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n \n\n\n\n\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n \n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n \n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n \n , coalesce(inventory_level_aggregated.count_fulfillment_pending, 0) as count_fulfillment_pending\n \n , coalesce(inventory_level_aggregated.count_fulfillment_open, 0) as count_fulfillment_open\n \n , coalesce(inventory_level_aggregated.count_fulfillment_success, 0) as count_fulfillment_success\n \n , coalesce(inventory_level_aggregated.count_fulfillment_cancelled, 0) as count_fulfillment_cancelled\n \n , coalesce(inventory_level_aggregated.count_fulfillment_error, 0) as count_fulfillment_error\n \n , coalesce(inventory_level_aggregated.count_fulfillment_failure, 0) as count_fulfillment_failure\n \n\n , inventory_quantity_aggregated.incoming_quantity\n , inventory_quantity_aggregated.on_hand_quantity\n , inventory_quantity_aggregated.available_quantity\n , inventory_quantity_aggregated.committed_quantity\n , inventory_quantity_aggregated.reserved_quantity\n , inventory_quantity_aggregated.damaged_quantity\n , inventory_quantity_aggregated.safety_stock_quantity\n , inventory_quantity_aggregated.quality_control_quantity\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify__inventory_level__aggregates", "sql": " __dbt__cte__int_shopify__inventory_level__aggregates as (\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "location_id"], "time_spine": null}, "model.shopify.shopify__discounts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__discounts", "resource_type": "model", "package_name": "shopify", "path": "shopify__discounts.sql", "original_file_path": "models/shopify__discounts.sql", "unique_id": "model.shopify.shopify__discounts", "fqn": ["shopify", "shopify__discounts"], "alias": "shopify__discounts", "checksum": {"name": "sha256", "checksum": "8dbd7e1cb4b6423e89eea3bfe645c3ddf051ef85df72b48bddbfb7ce18cba7f3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts.\n", "columns": {"discounts_unique_key": {"name": "discounts_unique_key", "description": "Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "The case-insensitive discount code that customers use at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether the discount can be used only once per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "Number of times the discount has been used (asynchronously updated).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "Number of unique redeem codes associated with the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether `codes_count` is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "Timestamp when the discount ends or expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "Timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "Current status of the discount (e.g. 'active', 'expired', 'scheduled').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount\u2019s display name in the Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to 'all' or 'entitled' items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "application_type": {"name": "application_type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Numeric value of the discount (e.g., percentage or fixed amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "How the discount value is interpreted (e.g., 'percentage', 'fixed_amount').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_discount_amount": {"name": "total_order_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off of orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_discount_amount": {"name": "total_abandoned_checkout_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_line_items_price": {"name": "total_order_line_items_price", "description": "Total monetary amount (in shop currency) of line items for orders that have used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_shipping_cost": {"name": "total_order_shipping_cost", "description": "Total shipping costs for orders that used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_shipping_price": {"name": "total_abandoned_checkout_shipping_price", "description": "Total projected shipping costs for abandoned checkouts that applied this discount first.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_refund_amount": {"name": "total_order_refund_amount", "description": "Total refunded amount (in shop currency) for orders that used this discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer emails who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_discount_amount": {"name": "avg_order_discount_amount", "description": "Average amount (in shop currency) of discount taken off orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "count_orders": {"name": "count_orders", "description": "Count of orders in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customers": {"name": "count_abandoned_checkout_customers", "description": "Distinct count of customers who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customer_emails": {"name": "count_abandoned_checkout_customer_emails", "description": "Distinct count of customer emails who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1753299145.4505403, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__discounts\"", "raw_code": "with discounts_enriched as (\n\n select *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as discounts_unique_key\n from {{ ref('int_shopify__discount_code_enriched')}}\n),\n\norders_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__order_aggregates')}}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\nabandoned_checkouts_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__abandoned_checkouts')}}\n),\n{% endif %}\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n {% endif %} \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n {% endif %}\n)\n\nselect * \nfrom aggregates_joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discount_code_enriched", "package": null, "version": null}, {"name": "int_shopify__discounts__order_aggregates", "package": null, "version": null}, {"name": "int_shopify__discounts__abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__discounts__abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/shopify__discounts.sql", "compiled": true, "compiled_code": "with __dbt__cte__int_shopify__discount_code_enriched as (\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n), __dbt__cte__int_shopify__discounts__order_aggregates as (\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), discounts_enriched as (\n\n select *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_code_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as discounts_unique_key\n from __dbt__cte__int_shopify__discount_code_enriched\n),\n\norders_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__order_aggregates\n),\n\n\nabandoned_checkouts_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__abandoned_checkouts\n),\n\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n \n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n \n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n \n)\n\nselect * \nfrom aggregates_joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discount_code_enriched", "sql": " __dbt__cte__int_shopify__discount_code_enriched as (\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n)"}, {"id": "model.shopify.int_shopify__discounts__order_aggregates", "sql": " __dbt__cte__int_shopify__discounts__order_aggregates as (\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}, {"id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "sql": " __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discounts_unique_key"], "time_spine": null}, "model.shopify.shopify__customers": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers", "resource_type": "model", "package_name": "shopify", "path": "shopify__customers.sql", "original_file_path": "models/shopify__customers.sql", "unique_id": "model.shopify.shopify__customers", "fqn": ["shopify", "shopify__customers"], "alias": "shopify__customers", "checksum": {"name": "sha256", "checksum": "39f51ada86e0457604bd52c44043711d09e1c716c11d1df4025c04b52b5b45ac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money in shop currency that the customer has spent on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1753299145.364476, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customers\"", "raw_code": "with customers as (\n\n select \n {{ dbt_utils.star(from=ref('stg_shopify__customer'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ var('shopify_customer') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__customers__order_aggregates' )}}\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where customer_id is not null\n group by 1,2\n{% endif %}\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags\n\n from {{ var('shopify_customer_tag' )}}\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n {% endif %}\n\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "shopify__customers__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/shopify__customers.sql", "compiled": true, "compiled_code": "with __dbt__cte__shopify__customers__order_aggregates as (\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n), customers as (\n\n select \n \"customer_id\",\n \"email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"phone\",\n \"account_state\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"marketing_consent_updated_at\",\n \"created_timestamp\",\n \"updated_timestamp\",\n \"_fivetran_synced\",\n \"source_relation\"\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), orders as (\n\n select *\n from __dbt__cte__shopify__customers__order_aggregates\n\n\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where customer_id is not null\n group by 1,2\n\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as customer_tags\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n \n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__customers__order_aggregates", "sql": " __dbt__cte__shopify__customers__order_aggregates as (\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders", "resource_type": "model", "package_name": "shopify", "path": "shopify__orders.sql", "original_file_path": "models/shopify__orders.sql", "unique_id": "model.shopify.shopify__orders", "fqn": ["shopify", "shopify__orders"], "alias": "shopify__orders", "checksum": {"name": "sha256", "checksum": "ae65b84e25a8ac17050fc34dfac3a68d55826c6ef8601434e8bebaaf1d006572"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"orders_unique_key": {"name": "orders_unique_key", "description": "Unique key representing an order. Hashed on 'order_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count": {"name": "line_item_count", "description": "Number of line items included in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_order_seq_number": {"name": "customer_order_seq_number", "description": "The sequential number of the order as it relates to the customer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "new_vs_repeat": {"name": "new_vs_repeat", "description": "Whether the order was a new or repeat order for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to the adjustment on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "The checkout token applied to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price set to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_total_shipping_tax": {"name": "order_total_shipping_tax", "description": "Total shipping tax attributed to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_tags": {"name": "order_tags", "description": "List of tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_url_tags": {"name": "order_url_tags", "description": "List of url tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number_of_fulfillments": {"name": "number_of_fulfillments", "description": "Total fulfillments for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_services": {"name": "fulfillment_services", "description": "List of fulfillment services for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_companies": {"name": "tracking_companies", "description": "List of tracking companies for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "List of tracking numbers for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied on the order", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1753299145.3532634, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders\"", "raw_code": "with orders as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_id']) }} as orders_unique_key\n from {{ var('shopify_order') }}\n \n), order_lines as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), order_adjustments as (\n\n select *\n from {{ var('shopify_order_adjustment') }}\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from {{ var('shopify_order_discount_code') }}\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_tags\n \n from {{ var('shopify_order_tag') }}\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_url_tags\n \n from {{ var('shopify_order_url_tag') }}\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n {{ fivetran_utils.string_agg(\"distinct cast(service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_company as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_number as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_numbers\n\n from {{ var('shopify_fulfillment') }}\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast({{ fivetran_utils.json_parse(\"total_shipping_price_set\",[\"shop_money\",\"amount\"]) }} as {{ dbt.type_float() }}) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify__order_tag", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.json_parse", "macro.dbt.type_float", "macro.shopify.shopify_partition_by_cols"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag", "model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify/models/shopify__orders.sql", "compiled": true, "compiled_code": "with __dbt__cte__shopify__orders__order_refunds as (\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), orders as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as orders_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n \n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), order_adjustments as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_url_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n \n string_agg(distinct cast(service as TEXT), ', ')\n\n as fulfillment_services,\n \n string_agg(distinct cast(tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(tracking_number as TEXT), ', ')\n\n as tracking_numbers\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast(\n\n total_shipping_price_set::json #>> '{shop_money,amount}'\n\n as float) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by \n\n\n customer_id\n\n\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["orders_unique_key"], "time_spine": null}, "model.shopify.shopify__transactions": {"database": "postgres", "schema": "public_shopify", "name": "shopify__transactions", "resource_type": "model", "package_name": "shopify", "path": "shopify__transactions.sql", "original_file_path": "models/shopify__transactions.sql", "unique_id": "model.shopify.shopify__transactions", "fqn": ["shopify", "shopify__transactions"], "alias": "shopify__transactions", "checksum": {"name": "sha256", "checksum": "e55559a9c4ed474f509c385cb104c0405b37fed7627ad5e8022c59a09120d256"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transactions_unique_id": {"name": "transactions_unique_id", "description": "Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of the date the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "exchange_rate": {"name": "exchange_rate", "description": "The exchange rate between the home currency and the currency of sale at the time of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_calculated_amount": {"name": "currency_exchange_calculated_amount", "description": "The total amount of the transaction with the currency exchange rate applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Method of payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_created_timestamp": {"name": "parent_created_timestamp", "description": "Created on timestamp of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_kind": {"name": "parent_kind", "description": "Kind of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_amount": {"name": "parent_amount", "description": "Amount of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_status": {"name": "parent_status", "description": "Status of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "Timestamp when the authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1753299145.408395, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__transactions\"", "raw_code": "with transactions as (\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'transaction_id'])}} as transactions_unique_id\n from {{ var('shopify_transaction') }} \n\n), tender_transactions as (\n\n select *\n from {{ var('shopify_tender_transaction') }}\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.json_parse", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify/models/shopify__transactions.sql", "compiled": true, "compiled_code": "with transactions as (\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as transactions_unique_id\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\" \n\n), tender_transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) as exchange_rate,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["transactions_unique_id"], "time_spine": null}, "model.shopify.shopify__order_lines": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_lines", "resource_type": "model", "package_name": "shopify", "path": "shopify__order_lines.sql", "original_file_path": "models/shopify__order_lines.sql", "unique_id": "model.shopify.shopify__order_lines", "fqn": ["shopify", "shopify__order_lines"], "alias": "shopify__order_lines", "checksum": {"name": "sha256", "checksum": "0d56e01084bae39a6b2a67ec1e46cd4dba818bcd956ebfde2ee1712a65606400"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item of an order in Shopify.", "columns": {"order_lines_unique_key": {"name": "order_lines_unique_key", "description": "Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_quantity": {"name": "refunded_quantity", "description": "Quantity of the item that has been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net_refunds": {"name": "quantity_net_refunds", "description": "Quantity ordered, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_compare_at_price": {"name": "variant_compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_position": {"name": "variant_position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sku": {"name": "variant_sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_taxable": {"name": "variant_is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_subtotal": {"name": "refunded_subtotal", "description": "Subtotal amount of the refund applied to the order line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_net_refunds": {"name": "subtotal_net_refunds", "description": "Subtotal of the order line with refunds subtracted in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_types": {"name": "restock_types", "description": "List of how this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_tax": {"name": "order_line_tax", "description": "Total taxes for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The total pre tax price of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1753299145.3964188, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_lines\"", "raw_code": "with order_lines as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_line_id']) }} as order_lines_unique_key\n from {{ var('shopify_order_line') }}\n\n), product_variants as (\n\n select *\n from {{ var('shopify_product_variant') }}\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), \n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n {{ fivetran_utils.string_agg(\"distinct cast(refunds.restock_type as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from {{ var('shopify_tax_line')}}\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id,\n {% endif %}\n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"]}, "compiled_path": "target/compiled/shopify/models/shopify__order_lines.sql", "compiled": true, "compiled_code": "with __dbt__cte__shopify__orders__order_refunds as (\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as order_lines_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), \n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n \n string_agg(distinct cast(refunds.restock_type as TEXT), ', ')\n\n as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n \n product_variant_media.media_id,\n \n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n \n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_lines_unique_key"], "time_spine": null}, "model.shopify.shopify__products": {"database": "postgres", "schema": "public_shopify", "name": "shopify__products", "resource_type": "model", "package_name": "shopify", "path": "shopify__products.sql", "original_file_path": "models/shopify__products.sql", "unique_id": "model.shopify.shopify__products", "fqn": ["shopify", "shopify__products"], "alias": "shopify__products", "checksum": {"name": "sha256", "checksum": "8309d2ec598065b10841326f064dfe2dba9d373329e88af3f4455c11e045323f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity_sold": {"name": "total_quantity_sold", "description": "Quantity of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (in shop currency) of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_net_refunds": {"name": "quantity_sold_net_refunds", "description": "Quantity of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_net_refunds": {"name": "subtotal_sold_net_refunds", "description": "Total amount (in shop currency) of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the product was first ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the product was most recently ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order_line": {"name": "avg_quantity_per_order_line", "description": "Average quantity per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_discount": {"name": "product_total_discount", "description": "Total discounts associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_discount_per_order_line": {"name": "product_avg_discount_per_order_line", "description": "Average discount per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_tax": {"name": "product_total_tax", "description": "Total taxes associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_tax_per_order_line": {"name": "product_avg_tax_per_order_line", "description": "Average taxes per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants": {"name": "count_variants", "description": "Count of product variants.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_product_media": {"name": "has_product_media", "description": "If the product has media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collections": {"name": "collections", "description": "Comma-separated list of collections associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tags": {"name": "tags", "description": "Comma-separated list of tags associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1753299145.3770049, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__products\"", "raw_code": "with products as (\n\n select *\n from {{ ref('int_shopify__products_with_aggregates') }}\n\n), product_order_lines as (\n\n select *\n from {{ ref('int_shopify__product__order_line_aggregates')}}\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__products_with_aggregates", "package": null, "version": null}, {"name": "int_shopify__product__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.int_shopify__product__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/shopify__products.sql", "compiled": true, "compiled_code": "with __dbt__cte__int_shopify__products_with_aggregates as (\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify__product__order_line_aggregates as (\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), products as (\n\n select *\n from __dbt__cte__int_shopify__products_with_aggregates\n\n), product_order_lines as (\n\n select *\n from __dbt__cte__int_shopify__product__order_line_aggregates\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__products_with_aggregates", "sql": " __dbt__cte__int_shopify__products_with_aggregates as (\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify__product__order_line_aggregates", "sql": " __dbt__cte__int_shopify__product__order_line_aggregates as (\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__daily_shop": {"database": "postgres", "schema": "public_shopify", "name": "shopify__daily_shop", "resource_type": "model", "package_name": "shopify", "path": "shopify__daily_shop.sql", "original_file_path": "models/shopify__daily_shop.sql", "unique_id": "model.shopify.shopify__daily_shop", "fqn": ["shopify", "shopify__daily_shop"], "alias": "shopify__daily_shop", "checksum": {"name": "sha256", "checksum": "f9aec062eb481d13b417411a0940b98a7a169905c45ae9e7f122e341b4cfa1b2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a day in your Shop, enriched with a suite of metrics.\n", "columns": {"date_day": {"name": "date_day", "description": "Day for which the shop activity is being measured.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders": {"name": "count_orders", "description": "Count of the distinct orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_line_items": {"name": "count_line_items", "description": "Count of the line items included in orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer email addresses who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "Average adjusted total per order placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount (in shop currency) applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to adjustments (in shop currency) on the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of the discount allocated to this day's orders in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied by customers on orders for this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_locations_ordered_from": {"name": "count_locations_ordered_from", "description": "Distinct locations with orders placed against them on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_discounts": {"name": "count_orders_with_discounts", "description": "Count of orders in which a discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_refunds": {"name": "count_orders_with_refunds", "description": "Count of orders in which there was a refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "Timestamp of the first order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "Timestamp of the last order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_refunded": {"name": "quantity_refunded", "description": "The quantity of goods ORDERED on this day that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net": {"name": "quantity_net", "description": "Net quantity sold from this shop on this day. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants_sold": {"name": "count_variants_sold", "description": "Distinct product variants sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_products_sold": {"name": "count_products_sold", "description": "Distinct products sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_gift_cards_sold": {"name": "quantity_gift_cards_sold", "description": "Quantity of gift cards sold on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_requiring_shipping": {"name": "quantity_requiring_shipping", "description": "Quantity of goods sold on this day that require shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers_abandoned_checkout": {"name": "count_customers_abandoned_checkout", "description": "Count of distinct customers who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails_abandoned_checkout": {"name": "count_customer_emails_abandoned_checkout", "description": "Count of distinct customer emails who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_attempted_delivery": {"name": "count_fulfillment_attempted_delivery", "description": "Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delivered": {"name": "count_fulfillment_delivered", "description": "Count of successful distinct fulfillments successfully delivered on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_in_transit": {"name": "count_fulfillment_in_transit", "description": "Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_out_for_delivery": {"name": "count_fulfillment_out_for_delivery", "description": "Count of distinct fulfillments being delivered to their final destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_ready_for_pickup": {"name": "count_fulfillment_ready_for_pickup", "description": "Count of distinct fulfillments ready for pickup at a shipping depot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_picked_up": {"name": "count_fulfillment_picked_up", "description": "Count of distinct fulfillments successfully picked up on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_printed": {"name": "count_fulfillment_label_printed", "description": "Count of distinct fulfillments for which a purchased shipping label has been printed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_purchased": {"name": "count_fulfillment_label_purchased", "description": "Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_confirmed": {"name": "count_fulfillment_confirmed", "description": "Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delayed": {"name": "count_fulfillment_delayed", "description": "Count of delayed distinct fulfillments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_line_item_count": {"name": "avg_line_item_count", "description": "Average line item count for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount": {"name": "avg_discount", "description": "Average total discount placed on orders on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_discount_amount": {"name": "avg_shipping_discount_amount", "description": "Average discount amount (in shop currency) allocated toward shipping on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_percentage_calc_discount_amount": {"name": "avg_percentage_calc_discount_amount", "description": "Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_fixed_amount_discount_amount": {"name": "avg_fixed_amount_discount_amount", "description": "Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_sold": {"name": "avg_quantity_sold", "description": "Average quantity sold per order on this day. Includes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_net": {"name": "avg_quantity_net", "description": "Average net quantity sold per order on this day. Excludes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1753299145.4677703, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__daily_shop\"", "raw_code": "with shop as (\n\n select *\n from {{ var('shopify_shop') }}\n),\n\ncalendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from {{ ref('int_shopify__daily_orders') }}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\ndaily_abandoned_checkouts as (\n\n select *\n from {{ ref('int_shopify__daily_abandoned_checkouts') }}\n),\n{% endif %}\n\n{% if var('shopify_using_fulfillment_event', false) %}\ndaily_fulfillment as (\n\n select *\n from {{ ref('int_shopify__daily_fulfillment') }}\n),\n{% endif %}\n\nshop_calendar as (\n\n select\n cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n {% endif %}\n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n {% endif %}\n \n)\n\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "shopify__calendar", "package": null, "version": null}, {"name": "int_shopify__daily_orders", "package": null, "version": null}, {"name": "int_shopify__daily_abandoned_checkouts", "package": null, "version": null}, {"name": "int_shopify__daily_fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__shop", "model.shopify.shopify__calendar", "model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment"]}, "compiled_path": "target/compiled/shopify/models/shopify__daily_shop.sql", "compiled": true, "compiled_code": "with __dbt__cte__int_shopify__daily_orders as (\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n), __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n), __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n), shop as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n),\n\ncalendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('day', date_day) as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from __dbt__cte__int_shopify__daily_orders\n),\n\n\ndaily_abandoned_checkouts as (\n\n select *\n from __dbt__cte__int_shopify__daily_abandoned_checkouts\n),\n\n\n\ndaily_fulfillment as (\n\n select *\n from __dbt__cte__int_shopify__daily_fulfillment\n),\n\n\nshop_calendar as (\n\n select\n cast(date_trunc('day', calendar.date_day) as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n \n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n \n\n \n \n , coalesce(count_fulfillment_attempted_delivery, 0) as count_fulfillment_attempted_delivery\n \n , coalesce(count_fulfillment_delayed, 0) as count_fulfillment_delayed\n \n , coalesce(count_fulfillment_delivered, 0) as count_fulfillment_delivered\n \n , coalesce(count_fulfillment_failure, 0) as count_fulfillment_failure\n \n , coalesce(count_fulfillment_in_transit, 0) as count_fulfillment_in_transit\n \n , coalesce(count_fulfillment_out_for_delivery, 0) as count_fulfillment_out_for_delivery\n \n , coalesce(count_fulfillment_ready_for_pickup, 0) as count_fulfillment_ready_for_pickup\n \n , coalesce(count_fulfillment_picked_up, 0) as count_fulfillment_picked_up\n \n , coalesce(count_fulfillment_label_printed, 0) as count_fulfillment_label_printed\n \n , coalesce(count_fulfillment_label_purchased, 0) as count_fulfillment_label_purchased\n \n , coalesce(count_fulfillment_confirmed, 0) as count_fulfillment_confirmed\n \n \n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n \n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n \n\n \n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n \n \n)\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__daily_orders", "sql": " __dbt__cte__int_shopify__daily_orders as (\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify__daily_abandoned_checkouts", "sql": " __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n)"}, {"id": "model.shopify.int_shopify__daily_fulfillment", "sql": " __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_emails": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_emails", "resource_type": "model", "package_name": "shopify", "path": "shopify__customer_emails.sql", "original_file_path": "models/shopify__customer_emails.sql", "unique_id": "model.shopify.shopify__customer_emails", "fqn": ["shopify", "shopify__customer_emails"], "alias": "shopify__customer_emails", "checksum": {"name": "sha256", "checksum": "a8afc1928eb21dcbbdd039bce0e6e9eaa7597c0319b08e5dade79a5e1eaae0d0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer email in Shopify.", "columns": {"last_fivetran_synced": {"name": "last_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_ids": {"name": "customer_ids", "description": "Comma-separated list of customer IDs associated with the email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone_numbers": {"name": "phone_numbers", "description": "Comma-separated list of phone numbers associated with this email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_updated_at": {"name": "last_updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money that the customer has spent on orders across their order history (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_account_created_at": {"name": "first_account_created_at", "description": "Timestamp of when the first account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_account_created_at": {"name": "last_account_created_at", "description": "Timestamp of when the last account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1753299145.3687568, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_emails\"", "raw_code": "with customer_emails as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify__customer_email_rollup'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ ref('int_shopify__customer_email_rollup') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify__emails__order_aggregates' )}}\n where email is not null\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where email is not null\n group by 1,2\n{% endif %}\n\n), joined as (\n\n select \n customer_emails.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__emails__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star"], "nodes": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/shopify__customer_emails.sql", "compiled": true, "compiled_code": "with __dbt__cte__int_shopify__emails__order_aggregates as (\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), customer_emails as (\n\n select \n \"email\",\n \"source_relation\",\n \"customer_ids\",\n \"phone_numbers\",\n \"customer_tags\",\n \"first_account_created_at\",\n \"last_account_created_at\",\n \"last_updated_at\",\n \"marketing_consent_updated_at\",\n \"last_fivetran_synced\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"account_state\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\"\n from \"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify__emails__order_aggregates\n where email is not null\n\n\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where email is not null\n group by 1,2\n\n\n), joined as (\n\n select \n customer_emails.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n \n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__emails__order_aggregates", "sql": " __dbt__cte__int_shopify__emails__order_aggregates as (\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__inventory_level__aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__inventory_level__aggregates", "resource_type": "model", "package_name": "shopify", "path": "intermediate/int_shopify__inventory_level__aggregates.sql", "original_file_path": "models/intermediate/int_shopify__inventory_level__aggregates.sql", "unique_id": "model.shopify.int_shopify__inventory_level__aggregates", "fqn": ["shopify", "intermediate", "int_shopify__inventory_level__aggregates"], "alias": "int_shopify__inventory_level__aggregates", "checksum": {"name": "sha256", "checksum": "058b7a288667703f9eb3e15b60c057fd1764b987f886f1f3b21e00712bba7854"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral"}, "created_at": 1753299145.6262286, "relation_name": null, "raw_code": "with order_lines as (\n\n select *\n from {{ var('shopify_order_line') }}\n),\n\nfulfillment as (\n\n select *\n from {{ var('shopify_fulfillment') }}\n),\n\norders as (\n\n select *\n from {{ var('shopify_order') }}\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n {{ dbt_utils.group_by(n=3) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_refunds"]}, "compiled_path": "target/compiled/shopify/models/intermediate/int_shopify__inventory_level__aggregates.sql", "compiled": true, "compiled_code": "with __dbt__cte__shopify__orders__order_refunds as (\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["location_id", "source_relation", "variant_id"], "time_spine": null}, "model.shopify.int_shopify__product__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__product__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "intermediate/int_shopify__product__order_line_aggregates.sql", "original_file_path": "models/intermediate/int_shopify__product__order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify__product__order_line_aggregates", "fqn": ["shopify", "intermediate", "int_shopify__product__order_line_aggregates"], "alias": "int_shopify__product__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "a1d9197bb23b4599a4ac7fad74e9b1efe64f4850934a1b3ce02eea3bc80e3937"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral"}, "created_at": 1753299145.6282558, "relation_name": null, "raw_code": "with order_lines as (\n\n select *\n from {{ ref('shopify__order_lines') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders')}}\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/intermediate/int_shopify__product__order_line_aggregates.sql", "compiled": true, "compiled_code": "with order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__products_with_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__products_with_aggregates", "resource_type": "model", "package_name": "shopify", "path": "intermediate/int_shopify__products_with_aggregates.sql", "original_file_path": "models/intermediate/int_shopify__products_with_aggregates.sql", "unique_id": "model.shopify.int_shopify__products_with_aggregates", "fqn": ["shopify", "intermediate", "int_shopify__products_with_aggregates"], "alias": "int_shopify__products_with_aggregates", "checksum": {"name": "sha256", "checksum": "aa8200a37abd180cba490ed96ef7e7bc6fce4d314bdbd799995afebf107e2ba4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral"}, "created_at": 1753299145.628766, "relation_name": null, "raw_code": "with products as (\n\n select *\n from {{ var('shopify_product') }}\n), \n\ncollection_product as (\n\n select *\n from {{ var('shopify_collection_product') }}\n),\n\ncollection as (\n\n select *\n from {{ var('shopify_collection') }}\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from {{ var('shopify_product_tag') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n), \n\nproduct_media as (\n\n select *\n from {{ var('shopify_product_media') }}\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter=\"', '\") }} as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='value', delimiter=\"', '\") }} as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__collection_product", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__product_tag", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify/models/intermediate/int_shopify__products_with_aggregates.sql", "compiled": true, "compiled_code": "with products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__discount_code_enriched": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discount_code_enriched", "resource_type": "model", "package_name": "shopify", "path": "intermediate/int_shopify__discount_code_enriched.sql", "original_file_path": "models/intermediate/int_shopify__discount_code_enriched.sql", "unique_id": "model.shopify.int_shopify__discount_code_enriched", "fqn": ["shopify", "intermediate", "int_shopify__discount_code_enriched"], "alias": "int_shopify__discount_code_enriched", "checksum": {"name": "sha256", "checksum": "6063215438747a7456fa74071549f0b470e24e4e8d26d6ffc1b37e0972265276"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral"}, "created_at": 1753299143.3328223, "relation_name": null, "raw_code": "with discount_redeem_codes as (\n \n select *\n from {{ var('shopify_discount_redeem_code') }}\n),\n\ndiscount_applications as (\n\n select *\n from {{ var('shopify_discount_application') }}\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_basic') }}\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_bxgy') }}\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_free_shipping') }}\n\n {% if var('shopify_using_discount_code_app', False) %}\n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_app') }}\n {% endif %}\n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_application", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code", "model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify/models/intermediate/int_shopify__discount_code_enriched.sql", "compiled": true, "compiled_code": "with discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__daily_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "intermediate/int_shopify__daily_abandoned_checkouts.sql", "original_file_path": "models/intermediate/int_shopify__daily_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__daily_abandoned_checkouts", "fqn": ["shopify", "intermediate", "int_shopify__daily_abandoned_checkouts"], "alias": "int_shopify__daily_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "82baf85a508d2b8348b16e2f5d1b2154004e9eae6acf35dc66880b388f9680e9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1753299143.3442485, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_using_abandoned_checkout', True)) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/intermediate/int_shopify__daily_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__order__shipping_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__order__shipping_aggregates", "resource_type": "model", "package_name": "shopify", "path": "intermediate/int_shopify__order__shipping_aggregates.sql", "original_file_path": "models/intermediate/int_shopify__order__shipping_aggregates.sql", "unique_id": "model.shopify.int_shopify__order__shipping_aggregates", "fqn": ["shopify", "intermediate", "int_shopify__order__shipping_aggregates"], "alias": "int_shopify__order__shipping_aggregates", "checksum": {"name": "sha256", "checksum": "86c15f2aa0570dc71557db52cdd9c433b5b6a9dca050f981ab8136012f0f470f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral"}, "created_at": 1753299145.627757, "relation_name": null, "raw_code": "with order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from {{ var('shopify_order_shipping_line') }}\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from {{ var('shopify_order_shipping_tax_line') }}\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify/models/intermediate/int_shopify__order__shipping_aggregates.sql", "compiled": true, "compiled_code": "with order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "intermediate/shopify__orders__order_line_aggregates.sql", "original_file_path": "models/intermediate/shopify__orders__order_line_aggregates.sql", "unique_id": "model.shopify.shopify__orders__order_line_aggregates", "fqn": ["shopify", "intermediate", "shopify__orders__order_line_aggregates"], "alias": "shopify__orders__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "d5560999f6cddaf9f36ab2783f209800ec0b4af4de7ca772a10901ac4f24d294"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1753299145.6242263, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"", "raw_code": "{{ config(materialized='table') }}\n\nwith order_line as (\n\n select *\n from {{ var('shopify_order_line') }}\n\n), tax as (\n\n select\n *\n from {{ var('shopify_tax_line') }}\n\n), shipping as (\n\n select\n *\n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/intermediate/shopify__orders__order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), order_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), tax as (\n\n select\n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), shipping as (\n\n select\n *\n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__daily_orders": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_orders", "resource_type": "model", "package_name": "shopify", "path": "intermediate/int_shopify__daily_orders.sql", "original_file_path": "models/intermediate/int_shopify__daily_orders.sql", "unique_id": "model.shopify.int_shopify__daily_orders", "fqn": ["shopify", "intermediate", "int_shopify__daily_orders"], "alias": "int_shopify__daily_orders", "checksum": {"name": "sha256", "checksum": "7c36ff8121f95cc7cb439601be47bb4da2aed71d5ad1fc7cd7cc0332b4df5811"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral"}, "created_at": 1753299143.3694608, "relation_name": null, "raw_code": "with orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from {{ ref('shopify__order_lines') }}\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.shopify__orders", "model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/intermediate/int_shopify__daily_orders.sql", "compiled": true, "compiled_code": "with orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__customer_email_rollup": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "resource_type": "model", "package_name": "shopify", "path": "intermediate/int_shopify__customer_email_rollup.sql", "original_file_path": "models/intermediate/int_shopify__customer_email_rollup.sql", "unique_id": "model.shopify.int_shopify__customer_email_rollup", "fqn": ["shopify", "intermediate", "int_shopify__customer_email_rollup"], "alias": "int_shopify__customer_email_rollup", "checksum": {"name": "sha256", "checksum": "749547bd2069f90ac9da04db3e4a6fa95c2532a4bd216bd1be7c03291d751a57"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.6257093, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"", "raw_code": "with customers as (\n\n select \n *,\n row_number() over(\n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by created_timestamp desc) \n as customer_index\n\n from {{ var('shopify_customer') }}\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from {{ var('shopify_customer_tag' )}}\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n {{ fivetran_utils.string_agg(\"distinct cast(customers.customer_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_ids,\n {{ fivetran_utils.string_agg(\"distinct cast(customers.phone as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as phone_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(customer_tags.value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n {{ fivetran_utils.max_bool(\"case when customers.customer_index = 1 then customers.is_tax_exempt else null end\") }} as is_tax_exempt, -- since this changes every year\n {{ fivetran_utils.max_bool(\"customers.is_verified_email\") }} as is_verified_email\n\n -- for all other fields, just take the latest value\n {% set cols = adapter.get_columns_in_relation(ref('stg_shopify__customer')) %}\n {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', \n 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp',\n 'is_tax_exempt', 'is_verified_email'] %}\n {% for col in cols %}\n {% if col.column|lower not in except_cols %}\n , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }}\n {% endif %}\n {% endfor %}\n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_partition_by_cols", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.max_bool"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/intermediate/int_shopify__customer_email_rollup.sql", "compiled": true, "compiled_code": "with customers as (\n\n select \n *,\n row_number() over(\n partition by \n\n\n email\n\n\n order by created_timestamp desc) \n as customer_index\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n \n string_agg(distinct cast(customers.customer_id as TEXT), ', ')\n\n as customer_ids,\n \n string_agg(distinct cast(customers.phone as TEXT), ', ')\n\n as phone_numbers,\n \n string_agg(distinct cast(customer_tags.value as TEXT), ', ')\n\n as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n \n\n bool_or( case when customers.customer_index = 1 then customers.is_tax_exempt else null end )\n\n as is_tax_exempt, -- since this changes every year\n \n\n bool_or( customers.is_verified_email )\n\n as is_verified_email\n\n -- for all other fields, just take the latest value\n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.first_name else null end) as first_name\n \n \n \n , max(case when customers.customer_index = 1 then customers.last_name else null end) as last_name\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.default_address_id else null end) as default_address_id\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.account_state else null end) as account_state\n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.note else null end) as note\n \n \n \n , max(case when customers.customer_index = 1 then customers.currency else null end) as currency\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_consent_state else null end) as marketing_consent_state\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_opt_in_level else null end) as marketing_opt_in_level\n \n \n \n \n \n \n \n \n \n \n \n \n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders__order_refunds": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_refunds", "resource_type": "model", "package_name": "shopify", "path": "intermediate/shopify__orders__order_refunds.sql", "original_file_path": "models/intermediate/shopify__orders__order_refunds.sql", "unique_id": "model.shopify.shopify__orders__order_refunds", "fqn": ["shopify", "intermediate", "shopify__orders__order_refunds"], "alias": "shopify__orders__order_refunds", "checksum": {"name": "sha256", "checksum": "b3ef35b4caf837155133c8e3023704d7591c4dedd83597fb26fd2c35b3ef2103"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral"}, "created_at": 1753299145.6246955, "relation_name": null, "raw_code": "with refunds as (\n\n select *\n from {{ var('shopify_refund') }}\n\n), order_line_refunds as (\n\n select *\n from {{ var('shopify_order_line_refund') }}\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__refund", "model.shopify_source.stg_shopify__order_line_refund"]}, "compiled_path": "target/compiled/shopify/models/intermediate/shopify__orders__order_refunds.sql", "compiled": true, "compiled_code": "with refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "intermediate/int_shopify__discounts__abandoned_checkouts.sql", "original_file_path": "models/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "fqn": ["shopify", "intermediate", "int_shopify__discounts__abandoned_checkouts"], "alias": "int_shopify__discounts__abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "8c63376af41e25f771d2058d29155e579389d0ba83b078e3eab40df77bbe8de5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1753299145.6272388, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_using_abandoned_checkout', True)) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from {{ var('shopify_abandoned_checkout_discount_code') }}\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from {{ var('shopify_abandoned_checkout_shipping_line') }}\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify/models/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["code", "source_relation", "type"], "time_spine": null}, "model.shopify.int_shopify__emails__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__emails__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "intermediate/int_shopify__emails__order_aggregates.sql", "original_file_path": "models/intermediate/int_shopify__emails__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__emails__order_aggregates", "fqn": ["shopify", "intermediate", "int_shopify__emails__order_aggregates"], "alias": "int_shopify__emails__order_aggregates", "checksum": {"name": "sha256", "checksum": "a634e4aae220414328b7ab66cf8f782b7c6b722bf70dc8fa6c0888e84a8075a2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral"}, "created_at": 1753299145.6252174, "relation_name": null, "raw_code": "with orders as (\n\n select *\n from {{ var('shopify_order') }}\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from {{ var('shopify_customer') }}\n where email is not null\n {{ dbt_utils.group_by(n=3) }}\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/intermediate/int_shopify__emails__order_aggregates.sql", "compiled": true, "compiled_code": "with orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__daily_fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_fulfillment", "resource_type": "model", "package_name": "shopify", "path": "intermediate/int_shopify__daily_fulfillment.sql", "original_file_path": "models/intermediate/int_shopify__daily_fulfillment.sql", "unique_id": "model.shopify.int_shopify__daily_fulfillment", "fqn": ["shopify", "intermediate", "int_shopify__daily_fulfillment"], "alias": "int_shopify__daily_fulfillment", "checksum": {"name": "sha256", "checksum": "219a579cbe3a8cfff98087ceee90515e31492dafde2188ff6d0052087c97d574"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1753299143.4222217, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_using_fulfillment_event', false)) }}\n\nwith fulfillment_event as (\n\n select *\n from {{ var('shopify_fulfillment_event') }}\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day\n\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify/models/intermediate/int_shopify__daily_fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "intermediate/int_shopify__discounts__order_aggregates.sql", "original_file_path": "models/intermediate/int_shopify__discounts__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__discounts__order_aggregates", "fqn": ["shopify", "intermediate", "int_shopify__discounts__order_aggregates"], "alias": "int_shopify__discounts__order_aggregates", "checksum": {"name": "sha256", "checksum": "4beb1b1d58378cfd7da7cc12d8fa5b63c869432ad2d5700740a65e30a4495b5d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral"}, "created_at": 1753299145.6267207, "relation_name": null, "raw_code": "with order_discount_code as (\n\n select *\n from {{ var('shopify_order_discount_code') }}\n),\n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_discount_code", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/intermediate/int_shopify__discounts__order_aggregates.sql", "compiled": true, "compiled_code": "with order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["code", "source_relation", "type"], "time_spine": null}, "model.shopify.shopify__customers__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "intermediate/shopify__customers__order_aggregates.sql", "original_file_path": "models/intermediate/shopify__customers__order_aggregates.sql", "unique_id": "model.shopify.shopify__customers__order_aggregates", "fqn": ["shopify", "intermediate", "shopify__customers__order_aggregates"], "alias": "shopify__customers__order_aggregates", "checksum": {"name": "sha256", "checksum": "82336e6cc02d146583af1cc45dee1a1c7bfb4ef96d4855188e5cabf3e5f5e90b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral"}, "created_at": 1753299145.6236706, "relation_name": null, "raw_code": "with orders as (\n\n select *\n from {{ var('shopify_order') }}\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n {{ dbt_utils.group_by(n=2) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/intermediate/shopify__customers__order_aggregates.sql", "compiled": true, "compiled_code": "with orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__product_variant_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "resource_type": "model", "package_name": "shopify", "path": "metafields/shopify__product_variant_metafields.sql", "original_file_path": "models/metafields/shopify__product_variant_metafields.sql", "unique_id": "model.shopify.shopify__product_variant_metafields", "fqn": ["shopify", "metafields", "shopify__product_variant_metafields"], "alias": "shopify__product_variant_metafields", "checksum": {"name": "sha256", "checksum": "d3036f12bb8e1528f465a28bff7017f37c3992d68e1ba8d85a893095efd7a2ab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product_variant model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1753299145.6841955, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_variant_metafields\"", "raw_code": "{{ config(enabled=var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product_variant\",\n reference_values = ['variant', 'productvariant'],\n id_column = \"variant_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"]}, "compiled_path": "target/compiled/shopify/models/metafields/shopify__product_variant_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_wherearethey'\n then value\n else null\n end\n )\n \n \n as avengers_wherearethey\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_wheninspace'\n then value\n else null\n end\n )\n \n \n as star_wars_wheninspace\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.variant_id,\n \n source_table.product_id,\n \n source_table.inventory_item_id,\n \n source_table.title,\n \n source_table.price,\n \n source_table.sku,\n \n source_table.position,\n \n source_table.inventory_policy,\n \n source_table.compare_at_price,\n \n source_table.fulfillment_service,\n \n source_table.inventory_management,\n \n source_table.is_taxable,\n \n source_table.barcode,\n \n source_table.grams,\n \n source_table.inventory_quantity,\n \n source_table.is_available_for_sale,\n \n source_table.display_name,\n \n source_table.legacy_resource_id,\n \n source_table.has_components_required,\n \n source_table.sellable_online_quantity,\n \n source_table.weight,\n \n source_table.weight_unit,\n \n source_table.option_1,\n \n source_table.option_2,\n \n source_table.option_3,\n \n source_table.tax_code,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_wherearethey) as metafield_avengers_wherearethey\n \n , max(lookup_object.star_wars_wheninspace) as metafield_star_wars_wheninspace\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.variant_id\n and lower(lookup_object.owner_resource) in ('variant', 'productvariant')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__order_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_metafields", "resource_type": "model", "package_name": "shopify", "path": "metafields/shopify__order_metafields.sql", "original_file_path": "models/metafields/shopify__order_metafields.sql", "unique_id": "model.shopify.shopify__order_metafields", "fqn": ["shopify", "metafields", "shopify__order_metafields"], "alias": "shopify__order_metafields", "checksum": {"name": "sha256", "checksum": "1cc0e1cff3fe52de7d415062d585a672e7af49e19c0596c993a5f874c0c10d9c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__order model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1753299145.6832027, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_metafields\"", "raw_code": "{{ config(enabled=var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__order\", \n reference_values = ['order'],\n id_column = \"order_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"]}, "compiled_path": "target/compiled/shopify/models/metafields/shopify__order_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_howmany'\n then value\n else null\n end\n )\n \n \n as avengers_howmany\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isinspace'\n then value\n else null\n end\n )\n \n \n as star_wars_isinspace\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_numbersequels'\n then value\n else null\n end\n )\n \n \n as star_wars_numbersequels\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.order_id,\n \n source_table.user_id,\n \n source_table.total_discounts,\n \n source_table.total_discounts_set,\n \n source_table.total_line_items_price,\n \n source_table.total_line_items_price_set,\n \n source_table.total_price,\n \n source_table.total_price_set,\n \n source_table.total_tax_set,\n \n source_table.total_tax,\n \n source_table.source_name,\n \n source_table.subtotal_price,\n \n source_table.has_taxes_included,\n \n source_table.total_weight,\n \n source_table.total_tip_received,\n \n source_table.landing_site_base_url,\n \n source_table.location_id,\n \n source_table.name,\n \n source_table.note,\n \n source_table.number,\n \n source_table.order_number,\n \n source_table.cancel_reason,\n \n source_table.cart_token,\n \n source_table.checkout_token,\n \n source_table.created_timestamp,\n \n source_table.cancelled_timestamp,\n \n source_table.closed_timestamp,\n \n source_table.processed_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.currency,\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.financial_status,\n \n source_table.fulfillment_status,\n \n source_table.referring_site,\n \n source_table.billing_address_address_1,\n \n source_table.billing_address_address_2,\n \n source_table.billing_address_city,\n \n source_table.billing_address_company,\n \n source_table.billing_address_country,\n \n source_table.billing_address_country_code,\n \n source_table.billing_address_first_name,\n \n source_table.billing_address_last_name,\n \n source_table.billing_address_latitude,\n \n source_table.billing_address_longitude,\n \n source_table.billing_address_name,\n \n source_table.billing_address_phone,\n \n source_table.billing_address_province,\n \n source_table.billing_address_province_code,\n \n source_table.billing_address_zip,\n \n source_table.browser_ip,\n \n source_table.total_shipping_price_set,\n \n source_table.shipping_address_address_1,\n \n source_table.shipping_address_address_2,\n \n source_table.shipping_address_city,\n \n source_table.shipping_address_company,\n \n source_table.shipping_address_country,\n \n source_table.shipping_address_country_code,\n \n source_table.shipping_address_first_name,\n \n source_table.shipping_address_last_name,\n \n source_table.shipping_address_latitude,\n \n source_table.shipping_address_longitude,\n \n source_table.shipping_address_name,\n \n source_table.shipping_address_phone,\n \n source_table.shipping_address_province,\n \n source_table.shipping_address_province_code,\n \n source_table.shipping_address_zip,\n \n source_table.token,\n \n source_table.app_id,\n \n source_table.checkout_id,\n \n source_table.client_details_user_agent,\n \n source_table.customer_locale,\n \n source_table.order_status_url,\n \n source_table.presentment_currency,\n \n source_table.is_test_order,\n \n source_table.is_deleted,\n \n source_table.has_buyer_accepted_marketing,\n \n source_table.is_confirmed,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_howmany) as metafield_avengers_howmany\n \n , max(lookup_object.star_wars_isinspace) as metafield_star_wars_isinspace\n \n , max(lookup_object.star_wars_numbersequels) as metafield_star_wars_numbersequels\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.order_id\n and lower(lookup_object.owner_resource) in ('order')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__product_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_metafields", "resource_type": "model", "package_name": "shopify", "path": "metafields/shopify__product_metafields.sql", "original_file_path": "models/metafields/shopify__product_metafields.sql", "unique_id": "model.shopify.shopify__product_metafields", "fqn": ["shopify", "metafields", "shopify__product_metafields"], "alias": "shopify__product_metafields", "checksum": {"name": "sha256", "checksum": "e5eadf2dfafe206d14047eac2577eeabfff0bef0f6364867550723efbf8f2ba9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1753299145.6836987, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_metafields\"", "raw_code": "{{ config(enabled=var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product\", \n reference_values = ['product'],\n id_column = \"product_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"]}, "compiled_path": "target/compiled/shopify/models/metafields/shopify__product_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_metafields", "resource_type": "model", "package_name": "shopify", "path": "metafields/shopify__customer_metafields.sql", "original_file_path": "models/metafields/shopify__customer_metafields.sql", "unique_id": "model.shopify.shopify__customer_metafields", "fqn": ["shopify", "metafields", "shopify__customer_metafields"], "alias": "shopify__customer_metafields", "checksum": {"name": "sha256", "checksum": "be6fb7ef63dd45770625be1b1d0f51cd1d50757e606f83212132059784286e40"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__customer model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1753299145.6826692, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_metafields\"", "raw_code": "{{ config(enabled=var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__customer\", \n reference_values = ['customer'],\n id_column = \"customer_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/metafields/shopify__customer_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'star_wars_firstname'\n then value\n else null\n end\n )\n \n \n as star_wars_firstname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_fullname'\n then value\n else null\n end\n )\n \n \n as star_wars_fullname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isjedi'\n then value\n else null\n end\n )\n \n \n as star_wars_isjedi\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_lastname'\n then value\n else null\n end\n )\n \n \n as star_wars_lastname\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.first_name,\n \n source_table.last_name,\n \n source_table.orders_count,\n \n source_table.default_address_id,\n \n source_table.phone,\n \n source_table.account_state,\n \n source_table.is_tax_exempt,\n \n source_table.total_spent,\n \n source_table.is_verified_email,\n \n source_table.note,\n \n source_table.currency,\n \n source_table.marketing_consent_state,\n \n source_table.marketing_opt_in_level,\n \n source_table.marketing_consent_updated_at,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.star_wars_firstname) as metafield_star_wars_firstname\n \n , max(lookup_object.star_wars_fullname) as metafield_star_wars_fullname\n \n , max(lookup_object.star_wars_isjedi) as metafield_star_wars_isjedi\n \n , max(lookup_object.star_wars_lastname) as metafield_star_wars_lastname\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.customer_id\n and lower(lookup_object.owner_resource) in ('customer')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__shop_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__shop_metafields", "resource_type": "model", "package_name": "shopify", "path": "metafields/shopify__shop_metafields.sql", "original_file_path": "models/metafields/shopify__shop_metafields.sql", "unique_id": "model.shopify.shopify__shop_metafields", "fqn": ["shopify", "metafields", "shopify__shop_metafields"], "alias": "shopify__shop_metafields", "checksum": {"name": "sha256", "checksum": "6bd5459a4ec334f784c926efe1d3e5f72bd2abff18c5c6940037740a17f00fcf"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__shop model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1753299145.6846662, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__shop_metafields\"", "raw_code": "{{ config(enabled=var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__shop\", \n reference_values = ['shop'],\n id_column = \"shop_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify/models/metafields/shopify__shop_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__collection_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__collection_metafields", "resource_type": "model", "package_name": "shopify", "path": "metafields/shopify__collection_metafields.sql", "original_file_path": "models/metafields/shopify__collection_metafields.sql", "unique_id": "model.shopify.shopify__collection_metafields", "fqn": ["shopify", "metafields", "shopify__collection_metafields"], "alias": "shopify__collection_metafields", "checksum": {"name": "sha256", "checksum": "d41cda86572ae6aca208f8ba0de410df95ba41efef66928f720fc3771a2365ca"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__collection model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1753299145.6821713, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__collection_metafields\"", "raw_code": "{{ config(enabled=var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__collection\", \n reference_values = ['collection'],\n id_column = \"collection_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify/models/metafields/shopify__collection_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__calendar": {"database": "postgres", "schema": "public_shopify", "name": "shopify__calendar", "resource_type": "model", "package_name": "shopify", "path": "utils/shopify__calendar.sql", "original_file_path": "models/utils/shopify__calendar.sql", "unique_id": "model.shopify.shopify__calendar", "fqn": ["shopify", "utils", "shopify__calendar"], "alias": "shopify__calendar", "checksum": {"name": "sha256", "checksum": "5295fe06c949deb345450af0ad6b0335b6edc25b2e883a4f2452ae276a3e85f4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1753299143.5266175, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__calendar\"", "raw_code": "{% set start_date = var('shopify__calendar_start_date', '2019-01-01') %}\n\n{{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date=\"cast('\" ~ start_date ~ \"' as date)\",\n end_date=\"current_date\"\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.date_spine"], "nodes": []}, "compiled_path": "target/compiled/shopify/models/utils/shopify__calendar.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 2395\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2019-01-01' as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= current_date\n\n)\n\nselect * from filtered\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__line_item_enhanced": {"database": "postgres", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "resource_type": "model", "package_name": "shopify", "path": "standardized_models/shopify__line_item_enhanced.sql", "original_file_path": "models/standardized_models/shopify__line_item_enhanced.sql", "unique_id": "model.shopify.shopify__line_item_enhanced", "fqn": ["shopify", "standardized_models", "shopify__line_item_enhanced"], "alias": "shopify__line_item_enhanced", "checksum": {"name": "sha256", "checksum": "34642a170ab43bf01bbc17505abce1af80fa9850b3bd72c88a98783867e51f11"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It\u2019s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details.", "columns": {"header_id": {"name": "header_id", "description": "Id of corresponding order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_id": {"name": "line_item_id", "description": "Order line item id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_index": {"name": "line_item_index", "description": "Unique index of each line item id for each order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "record_type": {"name": "record_type", "description": "header or line_item", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the order was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "header_status": {"name": "header_status", "description": "Status of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_type": {"name": "billing_type", "description": "NA for Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "Currency used in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "Product ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_name": {"name": "product_name", "description": "Product name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "Product type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_type": {"name": "transaction_type", "description": "Transaction type (Charge, Refund, etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of units of this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_amount": {"name": "unit_amount", "description": "Amount per unit, or the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_amount": {"name": "discount_amount", "description": "The discount amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "The tax amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_amount": {"name": "total_amount", "description": "Order total", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_id": {"name": "payment_id", "description": "Transaction ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Transaction gateway for Shopify ('gift card', 'shopify payments', etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method_id": {"name": "payment_method_id", "description": "Shopify does not have a particular payment_method_id, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_at": {"name": "payment_at", "description": "Transaction processed timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fee_amount": {"name": "fee_amount", "description": "The total shipping fee associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_amount": {"name": "refund_amount", "description": "Refund amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_id": {"name": "subscription_id", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_plan": {"name": "subscription_plan", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_started_at": {"name": "subscription_period_started_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_ended_at": {"name": "subscription_period_ended_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_status": {"name": "subscription_status", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "Customer associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_created_at": {"name": "customer_created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_level": {"name": "customer_level", "description": "Whether 'account' or 'customer'. For Shopify, the level is 'customer'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_name": {"name": "customer_name", "description": "Customer name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_company": {"name": "customer_company", "description": "Associated customer's company noted on the shipping address if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "Customer email", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_city": {"name": "customer_city", "description": "Customer's shipping address city", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_country": {"name": "customer_country", "description": "Customer's shipping address country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/standardized_models/shopify__standardized_models.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1753299145.6962144, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__line_item_enhanced\"", "raw_code": "{{ config(enabled=var('shopify__standardized_billing_model_enabled', True)) }}\n\nwith line_items as (\n\n select * \n from {{ var('shopify_order_line')}}\n\n), orders as ( \n\n select * \n from {{ var('shopify_order')}}\n\n), product as (\n\n select *\n from {{ var('shopify_product')}}\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n {{ fivetran_utils.string_agg(\"cast (transaction_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} AS transaction_id,\n {{ fivetran_utils.string_agg(\"cast (processed_timestamp as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as processed_timestamp,\n {{ fivetran_utils.string_agg('gateway', \"', '\") }} as gateway\n\n from {{ var('shopify_transaction')}}\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from {{ var('shopify_transaction')}}\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from {{ var('shopify_order_line_refund')}}\n group by 1,2\n\n), customer as (\n\n select *\n from {{ var('shopify_customer')}}\n\n), shipping as (\n\n select * \n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as {{ dbt.type_string() }}) as subscription_id,\n cast(null as {{ dbt.type_string() }}) as subscription_plan,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at,\n cast(null as {{ dbt.type_string() }}) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n {{ dbt.concat([\"c.first_name\", \"''\", \"c.last_name\"]) }} as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id,\n cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as {{ dbt.type_numeric() }}) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as {{ dbt.type_numeric() }}) as quantity,\n cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,\n cast(null as {{ dbt.type_numeric() }}) as discount_amount,\n cast(null as {{ dbt.type_numeric() }}) as tax_amount,\n cast(total_amount as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as {{ dbt.type_numeric() }}) as fee_amount,\n cast(null as {{ dbt.type_numeric() }}) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as {{ dbt.type_numeric() }}) as line_item_id,\n cast(0 as {{ dbt.type_numeric() }}) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as {{ dbt.type_numeric() }}) as product_id,\n cast(null as {{ dbt.type_string() }}) as product_name,\n transaction_type,\n billing_type,\n cast(null as {{ dbt.type_string() }}) as product_type,\n cast(null as {{ dbt.type_numeric() }}) as quantity,\n cast(null as {{ dbt.type_numeric() }}) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.dbt.type_timestamp", "macro.dbt.concat", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__customer", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/standardized_models/shopify__line_item_enhanced.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), line_items as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), orders as ( \n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n \n string_agg(cast (transaction_id as TEXT), ', ')\n\n AS transaction_id,\n \n string_agg(cast (processed_timestamp as TEXT), ', ')\n\n as processed_timestamp,\n \n string_agg(gateway, ', ')\n\n as gateway\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n group by 1,2\n\n), customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), shipping as (\n\n select * \n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as TEXT) as subscription_id,\n cast(null as TEXT) as subscription_plan,\n cast(null as timestamp) as subscription_period_started_at,\n cast(null as timestamp) as subscription_period_ended_at,\n cast(null as TEXT) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n c.first_name || '' || c.last_name as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as numeric(28,6)) as line_item_id,\n cast(line_item_index as numeric(28,6)) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as numeric(28,6)) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as numeric(28,6)) as quantity,\n cast(unit_amount as numeric(28,6)) as unit_amount,\n cast(null as numeric(28,6)) as discount_amount,\n cast(null as numeric(28,6)) as tax_amount,\n cast(total_amount as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as numeric(28,6)) as fee_amount,\n cast(null as numeric(28,6)) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as numeric(28,6)) as line_item_id,\n cast(0 as numeric(28,6)) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as numeric(28,6)) as product_id,\n cast(null as TEXT) as product_name,\n transaction_type,\n billing_type,\n cast(null as TEXT) as product_type,\n cast(null as numeric(28,6)) as quantity,\n cast(null as numeric(28,6)) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["header_id", "line_item_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__order_shipping_line.sql", "original_file_path": "models/stg_shopify__order_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line", "fqn": ["shopify_source", "stg_shopify__order_shipping_line"], "alias": "stg_shopify__order_shipping_line", "checksum": {"name": "sha256", "checksum": "60447357fa4d65272c980aac4d5b2d117e24bcaeb4bf208e1b40ca8a72d03c08"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_third_party_required": {"name": "is_third_party_required", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.770627, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_line_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_shopify__order_shipping_line_tmp')),\n staging_columns=get_order_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__order_shipping_line.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n discounted_price_set\n \n as \n \n discounted_price_set\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_shipping_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__discount_allocation.sql", "original_file_path": "models/stg_shopify__discount_allocation.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation", "fqn": ["shopify_source", "stg_shopify__discount_allocation"], "alias": "stg_shopify__discount_allocation", "checksum": {"name": "sha256", "checksum": "562d0514ef2c4b64ba1b8308392568adbf80f98ae24a6c95b75b690fd0c778f9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing allocation amounts from discount applications across specific order lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The presentment money currency code for the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The shop money currency code for the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to. Used to join with the discount application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount allocation within the list of allocations on an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.8017814, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__discount_allocation_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_shopify__discount_allocation_tmp')),\n staging_columns=get_discount_allocation_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_allocation_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__discount_allocation.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set_presentment_money_amount\n \n as \n \n amount_set_presentment_money_amount\n \n, \n \n \n amount_set_presentment_money_currency_code\n \n as \n \n amount_set_presentment_money_currency_code\n \n, \n \n \n amount_set_shop_money_amount\n \n as \n \n amount_set_shop_money_amount\n \n, \n \n \n amount_set_shop_money_currency_code\n \n as \n \n amount_set_shop_money_currency_code\n \n, \n \n \n discount_application_index\n \n as \n \n discount_application_index\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_application_index", "order_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__order.sql", "original_file_path": "models/stg_shopify__order.sql", "unique_id": "model.shopify_source.stg_shopify__order", "fqn": ["shopify_source", "stg_shopify__order"], "alias": "stg_shopify__order", "checksum": {"name": "sha256", "checksum": "419b0efac21852d6fc0a38e22d9d3511229d023c164f88214a641cf300598649"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7240567, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order\"", "raw_code": "{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__order_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_order_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n {{ shopify_source.json_to_string(\"total_discounts_set\", source_columns_in_relation) }} as total_discounts_set,\n total_line_items_price,\n {{ shopify_source.json_to_string(\"total_line_items_price_set\", source_columns_in_relation) }} as total_line_items_price_set,\n total_price,\n {{ shopify_source.json_to_string(\"total_price_set\", source_columns_in_relation) }} as total_price_set,\n {{ shopify_source.json_to_string(\"total_tax_set\", source_columns_in_relation) }} as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(cancelled_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as cancelled_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n {{ shopify_source.json_to_string(\"total_shipping_price_set\", source_columns_in_relation) }} as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__order.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n cast(null as TEXT) as \n \n total_discounts_set\n \n , \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n cast(null as TEXT) as \n \n total_line_items_price_set\n \n , \n \n \n total_price\n \n as \n \n total_price\n \n, \n cast(null as TEXT) as \n \n total_price_set\n \n , \n cast(null as TEXT) as \n \n total_tax_set\n \n , \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n cast(null as float) as \n \n total_tip_received\n \n , \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n order_number\n \n as \n \n order_number\n \n, \n \n \n cancel_reason\n \n as \n \n cancel_reason\n \n, \n \n \n cancelled_at\n \n as \n \n cancelled_at\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n checkout_token\n \n as \n \n checkout_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n financial_status\n \n as \n \n financial_status\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n browser_ip\n \n as \n \n browser_ip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n cast(null as TEXT) as \n \n total_shipping_price_set\n \n , \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as integer) as \n \n app_id\n \n , \n cast(null as integer) as \n \n checkout_id\n \n , \n cast(null as TEXT) as \n \n client_details_user_agent\n \n , \n cast(null as TEXT) as \n \n customer_locale\n \n , \n cast(null as TEXT) as \n \n order_status_url\n \n , \n cast(null as TEXT) as \n \n presentment_currency\n \n , \n cast(null as boolean) as \n \n confirmed\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n total_discounts_set as total_discounts_set,\n total_line_items_price,\n total_line_items_price_set as total_line_items_price_set,\n total_price,\n total_price_set as total_price_set,\n total_tax_set as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(cancelled_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as cancelled_timestamp,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n total_shipping_price_set as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__transaction.sql", "original_file_path": "models/stg_shopify__transaction.sql", "unique_id": "model.shopify_source.stg_shopify__transaction", "fqn": ["shopify_source", "stg_shopify__transaction"], "alias": "stg_shopify__transaction", "checksum": {"name": "sha256", "checksum": "89736219af1d7e93c5dabe8ff77c0501d4176d854d4b2b85daa9491ee62143b6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7349782, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction\"", "raw_code": "{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__transaction_tmp')) %}\n\nwith base as (\n\n select * from {{ ref('stg_shopify__transaction_tmp') }}\n\n),\n\nfields as (\n\n select\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n {{ shopify_source.json_to_string(\"receipt\", source_columns_in_relation) }} as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(authorization_expires_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as authorization_expires_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('transaction_pass_through_columns') }}\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * from \"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"\n\n),\n\nfields as (\n\n select\n\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\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 processed_at\n \n as \n \n processed_at\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n payment_avs_result_code\n \n as \n \n payment_avs_result_code\n \n, \n \n \n payment_credit_card_bin\n \n as \n \n payment_credit_card_bin\n \n, \n \n \n payment_cvv_result_code\n \n as \n \n payment_cvv_result_code\n \n, \n \n \n payment_credit_card_number\n \n as \n \n payment_credit_card_number\n \n, \n \n \n payment_credit_card_company\n \n as \n \n payment_credit_card_company\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n receipt\n \n as \n \n receipt\n \n, \n \n \n currency_exchange_id\n \n as \n \n currency_exchange_id\n \n, \n \n \n currency_exchange_adjustment\n \n as \n \n currency_exchange_adjustment\n \n, \n \n \n currency_exchange_original_amount\n \n as \n \n currency_exchange_original_amount\n \n, \n \n \n currency_exchange_final_amount\n \n as \n \n currency_exchange_final_amount\n \n, \n \n \n currency_exchange_currency\n \n as \n \n currency_exchange_currency\n \n, \n \n \n error_code\n \n as \n \n error_code\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as timestamp) as \n \n authorization_expires_at\n \n , \n \n \n \n \n \"authorization\"\n \n \n \n as authorization_code \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n receipt as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(authorization_expires_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as authorization_expires_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["source_relation", "transaction_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__discount_code_basic.sql", "original_file_path": "models/stg_shopify__discount_code_basic.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic", "fqn": ["shopify_source", "stg_shopify__discount_code_basic"], "alias": "stg_shopify__discount_code_basic", "checksum": {"name": "sha256", "checksum": "eb6b9ac52b7ebfe0b14d81a4dc0a6f3eb87423d165d90a37f9a90af5f197c0c5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata about basic discount codes created by merchants.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.8063414, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_basic_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_shopify__discount_code_basic_tmp')),\n staging_columns=get_discount_code_basic_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_basic_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__discount_code_basic.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as TEXT) as \n \n title\n \n , \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__fulfillment.sql", "original_file_path": "models/stg_shopify__fulfillment.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment", "fqn": ["shopify_source", "stg_shopify__fulfillment"], "alias": "stg_shopify__fulfillment", "checksum": {"name": "sha256", "checksum": "98224ac48f62eb5f7c693678d67e80eea20df836fb90999c6477e19c56712325"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.751843, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_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_shopify__fulfillment_tmp')),\n staging_columns=get_fulfillment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__fulfillment.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n shipment_status\n \n as \n \n shipment_status\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n tracking_company\n \n as \n \n tracking_company\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n tracking_numbers\n \n as \n \n tracking_numbers\n \n, \n \n \n tracking_urls\n \n as \n \n tracking_urls\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["fulfillment_id"], "time_spine": null}, "model.shopify_source.stg_shopify__metafield": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__metafield.sql", "original_file_path": "models/stg_shopify__metafield.sql", "unique_id": "model.shopify_source.stg_shopify__metafield", "fqn": ["shopify_source", "stg_shopify__metafield"], "alias": "stg_shopify__metafield", "checksum": {"name": "sha256", "checksum": "f9c09eadced554c99d1f6c872357d30f0b85b71fff80491b345c1cf7dcc23140"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_id": {"name": "metafield_id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource_id": {"name": "owner_resource_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Coalescing of type and value_type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_reference": {"name": "metafield_reference", "description": "Combination of the namespace and key columns. This field is key for metafield mapping in downstream models.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating the most up to date record identified by the most recent updated_at field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1753299145.766242, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield\"", "raw_code": "{{ config(enabled=var('shopify_using_metafield', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__metafield_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_shopify__metafield_tmp')),\n staging_columns=get_metafield_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n lower({{ dbt.concat([\"namespace\",\"'_'\",\"key\"]) }}) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield_tmp", "package": null, "version": null}, {"name": "stg_shopify__metafield_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_metafield_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt.concat"], "nodes": ["model.shopify_source.stg_shopify__metafield_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__metafield.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n 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 id\n \n as \n \n id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n namespace\n \n as \n \n namespace\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n owner_resource\n \n as \n \n owner_resource\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n lower(namespace || '_' || key) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["metafield_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__discount_code_bxgy.sql", "original_file_path": "models/stg_shopify__discount_code_bxgy.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy", "fqn": ["shopify_source", "stg_shopify__discount_code_bxgy"], "alias": "stg_shopify__discount_code_bxgy", "checksum": {"name": "sha256", "checksum": "ee880eaf5c0b4981a2aaa8c4935c90b0af1dace93b9b032921155f3b06fb90b2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for Buy X Get Y-style discount codes in Shopify, where discounts are applied based on product quantity thresholds.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.80781, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_bxgy_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_shopify__discount_code_bxgy_tmp')),\n staging_columns=get_discount_code_bxgy_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_bxgy_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__discount_code_bxgy.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n cast(null as integer) as \n \n recurring_cycle_limit\n \n , \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__tender_transaction.sql", "original_file_path": "models/stg_shopify__tender_transaction.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction", "fqn": ["shopify_source", "stg_shopify__tender_transaction"], "alias": "stg_shopify__tender_transaction", "checksum": {"name": "sha256", "checksum": "79d0360cdcc7f2de22a59bce3189883deb021e3efcdf78ca62356c02a2e69fe7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.789861, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__tender_transaction_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_shopify__tender_transaction_tmp')),\n staging_columns=get_tender_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tender_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__tender_transaction.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n payment_method\n \n as \n \n payment_method\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n remote_reference\n \n as \n \n remote_reference\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["transaction_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__order_shipping_tax_line.sql", "original_file_path": "models/stg_shopify__order_shipping_tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line", "fqn": ["shopify_source", "stg_shopify__order_shipping_tax_line"], "alias": "stg_shopify__order_shipping_tax_line", "checksum": {"name": "sha256", "checksum": "9901e96fa254e13cad86d18a8c959880ed2f8304ef2f1de3ba72a41f3a60aa0d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this record is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7720733, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_tax_line_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_shopify__order_shipping_tax_line_tmp')),\n staging_columns=get_order_shipping_tax_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__order_shipping_tax_line.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_shipping_line_id\n \n as \n \n order_shipping_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_shipping_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__shop": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__shop.sql", "original_file_path": "models/stg_shopify__shop.sql", "unique_id": "model.shopify_source.stg_shopify__shop", "fqn": ["shopify_source", "stg_shopify__shop"], "alias": "stg_shopify__shop", "checksum": {"name": "sha256", "checksum": "e93e262ba36af43fe2673d5ffa7cb633b98583c53bb59004ecb35abeb88d22fb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_checkout_api_supported": {"name": "has_checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_county_taxes": {"name": "has_county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_card_reader_giveaway": {"name": "is_eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_payments": {"name": "is_eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_google_apps_login_enabled": {"name": "is_google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_password_enabled": {"name": "is_password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_pre_launch_enabled": {"name": "is_pre_launch_enabled", "description": "Boolean representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_extra_payments_agreement_required": {"name": "is_extra_payments_agreement_required", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_setup_required": {"name": "is_setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_shipping_taxes": {"name": "has_shipping_taxes", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included_in_price": {"name": "has_taxes_included_in_price", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7884061, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop\"", "raw_code": "{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__shop_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__shop_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_shop_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n {{ shopify_source.json_to_string(\"enabled_presentment_currencies\", source_columns_in_relation) }} as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop_tmp", "package": null, "version": null}, {"name": "stg_shopify__shop_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_shop_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__shop_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__shop.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\n \n, \n \n \n checkout_api_supported\n \n as \n \n checkout_api_supported\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n cookie_consent_level\n \n as \n \n cookie_consent_level\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n county_taxes\n \n as \n \n county_taxes\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_email\n \n as \n \n customer_email\n \n, \n \n \n domain\n \n as \n \n domain\n \n, \n \n \n eligible_for_card_reader_giveaway\n \n as \n \n eligible_for_card_reader_giveaway\n \n, \n \n \n eligible_for_payments\n \n as \n \n eligible_for_payments\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n enabled_presentment_currencies\n \n as \n \n enabled_presentment_currencies\n \n, \n \n \n google_apps_domain\n \n as \n \n google_apps_domain\n \n, \n \n \n google_apps_login_enabled\n \n as \n \n google_apps_login_enabled\n \n, \n \n \n has_discounts\n \n as \n \n has_discounts\n \n, \n \n \n has_gift_cards\n \n as \n \n has_gift_cards\n \n, \n \n \n has_storefront\n \n as \n \n has_storefront\n \n, \n \n \n iana_timezone\n \n as \n \n iana_timezone\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 longitude\n \n as \n \n longitude\n \n, \n \n \n money_format\n \n as \n \n money_format\n \n, \n \n \n money_in_emails_format\n \n as \n \n money_in_emails_format\n \n, \n \n \n money_with_currency_format\n \n as \n \n money_with_currency_format\n \n, \n \n \n money_with_currency_in_emails_format\n \n as \n \n money_with_currency_in_emails_format\n \n, \n \n \n myshopify_domain\n \n as \n \n myshopify_domain\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n password_enabled\n \n as \n \n password_enabled\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n plan_display_name\n \n as \n \n plan_display_name\n \n, \n \n \n plan_name\n \n as \n \n plan_name\n \n, \n \n \n pre_launch_enabled\n \n as \n \n pre_launch_enabled\n \n, \n \n \n primary_locale\n \n as \n \n primary_locale\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n requires_extra_payments_agreement\n \n as \n \n requires_extra_payments_agreement\n \n, \n \n \n setup_required\n \n as \n \n setup_required\n \n, \n \n \n shop_owner\n \n as \n \n shop_owner\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n tax_shipping\n \n as \n \n tax_shipping\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n enabled_presentment_currencies as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["shop_id"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__inventory_level.sql", "original_file_path": "models/stg_shopify__inventory_level.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level", "fqn": ["shopify_source", "stg_shopify__inventory_level"], "alias": "stg_shopify__inventory_level", "checksum": {"name": "sha256", "checksum": "76f7a4c26960cc6f2207b28168367e72cb9159f21f32f6b9cd1cdb28489cfe07"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available_quantity": {"name": "available_quantity", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7547617, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__inventory_level_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_shopify__inventory_level_tmp')),\n staging_columns=get_inventory_level_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_level_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_level_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__inventory_level.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n can_deactivate\n \n as \n \n can_deactivate\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deactivation_alert\n \n as \n \n deactivation_alert\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as integer) as \n \n available\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "inventory_level_id", "location_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__discount_redeem_code.sql", "original_file_path": "models/stg_shopify__discount_redeem_code.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code", "fqn": ["shopify_source", "stg_shopify__discount_redeem_code"], "alias": "stg_shopify__discount_redeem_code", "checksum": {"name": "sha256", "checksum": "ed2797a0f3e8d6b1292802d4c962a8c45aa6049297527bd3b58b3175e4ae1762"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each redeem code is tied to a parent discount and may be created by an app or manually.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This is updated asynchronously and may differ from real-time usage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (typically an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount the redeem code is associated with (e.g., `discount_code_basic`, `discount_code_app`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.8115482, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__discount_redeem_code_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_shopify__discount_redeem_code_tmp')),\n staging_columns=get_discount_redeem_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_redeem_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__discount_redeem_code.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_by_description\n \n as \n \n created_by_description\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_by_title\n \n as \n \n created_by_title\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n discount_type\n \n as \n \n discount_type\n \n, \n \n \n id\n \n as \n \n id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__customer": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__customer.sql", "original_file_path": "models/stg_shopify__customer.sql", "unique_id": "model.shopify_source.stg_shopify__customer", "fqn": ["shopify_source", "stg_shopify__customer"], "alias": "stg_shopify__customer", "checksum": {"name": "sha256", "checksum": "3e8007ecdfa35443e18d5886a2b27c18fc78f3bdb51b692ff97e86786c552f3b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7158875, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__customer_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n {{ shopify_source.fivetran_convert_timezone(column='cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as marketing_consent_updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n {{ fivetran_utils.fill_pass_through_columns('customer_pass_through_columns') }}\n\n from fields\n \n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__customer_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__customer.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accepts_marketing\n \n as \n \n accepts_marketing\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n default_address_id\n \n as \n \n default_address_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n orders_count\n \n as \n \n orders_count\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n tax_exempt\n \n as \n \n tax_exempt\n \n, \n \n \n total_spent\n \n as \n \n total_spent\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n verified_email\n \n as \n \n verified_email\n \n, \n cast(null as timestamp) as \n \n email_marketing_consent_consent_updated_at\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_opt_in_level\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_state\n \n , \n cast(null as TEXT) as \n \n note\n \n , \n cast(null as timestamp) as \n \n accepts_marketing_updated_at\n \n , \n cast(null as TEXT) as \n \n marketing_opt_in_level\n \n , \n cast(null as TEXT) as \n \n currency\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n cast(\n cast(cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as marketing_consent_updated_at,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n \n\n\n\n\n\n from fields\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__inventory_item.sql", "original_file_path": "models/stg_shopify__inventory_item.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item", "fqn": ["shopify_source", "stg_shopify__inventory_item"], "alias": "stg_shopify__inventory_item", "checksum": {"name": "sha256", "checksum": "d4fe927c0ccfc5b13c80fb7dfb667a1f16c4771bfe67199f55c72b05e5da59b9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item. Coalesced with the deprecated `cost` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7533731, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__inventory_item_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_shopify__inventory_item_tmp')),\n staging_columns=get_inventory_item_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__inventory_item.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country_code_of_origin\n \n as \n \n country_code_of_origin\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n province_code_of_origin\n \n as \n \n province_code_of_origin\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tracked\n \n as \n \n tracked\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n duplicate_sku_count\n \n as \n \n duplicate_sku_count\n \n, \n \n \n harmonized_system_code\n \n as \n \n harmonized_system_code\n \n, \n \n \n inventory_history_url\n \n as \n \n inventory_history_url\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n measurement_id\n \n as \n \n measurement_id\n \n, \n \n \n measurement_weight_value\n \n as \n \n measurement_weight_value\n \n, \n \n \n measurement_weight_unit\n \n as \n \n measurement_weight_unit\n \n, \n \n \n tracked_editable_locked\n \n as \n \n tracked_editable_locked\n \n, \n \n \n tracked_editable_reason\n \n as \n \n tracked_editable_reason\n \n, \n \n \n unit_cost_amount\n \n as \n \n unit_cost_amount\n \n, \n \n \n unit_cost_currency_code\n \n as \n \n unit_cost_currency_code\n \n, \n cast(null as float) as \n \n cost\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id"], "time_spine": null}, "model.shopify_source.stg_shopify__collection": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__collection.sql", "original_file_path": "models/stg_shopify__collection.sql", "unique_id": "model.shopify_source.stg_shopify__collection", "fqn": ["shopify_source", "stg_shopify__collection"], "alias": "stg_shopify__collection", "checksum": {"name": "sha256", "checksum": "002ce7e819382653872becc99fcd029220a379a64d18794ef3274ac95a4c23b0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "rule_logic": {"name": "rule_logic", "description": "Whether the `rules` are disjunctive (logical `OR`) or conjunctive (logical `AND`)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparative relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values incline - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7476866, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection\"", "raw_code": "{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__collection_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__collection_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_collection_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n {{ shopify_source.json_to_string(\"rules\", source_columns_in_relation) }} as rules,\n sort_order,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__collection.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n disjunctive\n \n as \n \n disjunctive\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\n \n, \n \n \n rules\n \n as \n \n rules\n \n, \n \n \n sort_order\n \n as \n \n sort_order\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\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n rules as rules,\n sort_order,\n title,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["collection_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__order_adjustment.sql", "original_file_path": "models/stg_shopify__order_adjustment.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment", "fqn": ["shopify_source", "stg_shopify__order_adjustment"], "alias": "stg_shopify__order_adjustment", "checksum": {"name": "sha256", "checksum": "9f9a4654fedb090903b41a3681545cf207093e6f71992f2cf4d3bf32c177e65c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"order_adjustment_id": {"name": "order_adjustment_id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in the shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7393572, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"", "raw_code": "-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_adjustment_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_adjustment_tmp')),\n staging_columns=get_order_adjustment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_adjustment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_adjustment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__order_adjustment.sql", "compiled": true, "compiled_code": "-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set\n \n as \n \n amount_set\n \n, \n \n \n tax_amount\n \n as \n \n tax_amount\n \n, \n \n \n tax_amount_set\n \n as \n \n tax_amount_set\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_adjustment_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__media.sql", "original_file_path": "models/stg_shopify__media.sql", "unique_id": "model.shopify_source.stg_shopify__media", "fqn": ["shopify_source", "stg_shopify__media"], "alias": "stg_shopify__media", "checksum": {"name": "sha256", "checksum": "be5e1e1567e6c29ade27baabccefb3edab49a04595d58d04ac13f56ab2b22125"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing media metadata, including status and timestamps.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7602704, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_tmp')),\n staging_columns=get_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__media.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__discount_application.sql", "original_file_path": "models/stg_shopify__discount_application.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application", "fqn": ["shopify_source", "stg_shopify__discount_application"], "alias": "stg_shopify__discount_application", "checksum": {"name": "sha256", "checksum": "9a7dbbd28059e6d3634701a3674f9bff27a6366bf869ee2b52e3920bac6a0eda"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing discount applications, which define how discounts were applied at the order level.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code associated with the application, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to all line items (`all`) or only those that are specifically entitled (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name or title of the discount as defined in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The value of the discount. If `value_type` is `percentage`, this represents a percentage. If `fixed_amount`, this is a fixed currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount value is a `percentage` or `fixed_amount`. If `target_type` is `shipping_line`, only `percentage` is accepted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.8030097, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__discount_application_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_shopify__discount_application_tmp')),\n staging_columns=get_discount_application_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_application_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_application_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__discount_application.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocation_method\n \n as \n \n allocation_method\n \n, \n \n \n code\n \n as \n \n code\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 order_id\n \n as \n \n order_id\n \n, \n \n \n target_selection\n \n as \n \n target_selection\n \n, \n \n \n target_type\n \n as \n \n target_type\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value\n \n as \n \n value\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__inventory_quantity.sql", "original_file_path": "models/stg_shopify__inventory_quantity.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity", "fqn": ["shopify_source", "stg_shopify__inventory_quantity"], "alias": "stg_shopify__inventory_quantity", "checksum": {"name": "sha256", "checksum": "8f1a3a244a746d1b078aeb1bda2485ce72a7172d008c91943db89bd5a6757259"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The total quantity of the inventory item available at all locations.", "columns": {"inventory_quantity_id": {"name": "inventory_quantity_id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_state_name": {"name": "inventory_state_name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.756302, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__inventory_quantity_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_shopify__inventory_quantity_tmp')),\n staging_columns=get_inventory_quantity_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_quantity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__inventory_quantity.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_level_id\n \n as \n \n inventory_level_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "inventory_level_id", "inventory_quantity_id", "inventory_state_name", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__product_tag.sql", "original_file_path": "models/stg_shopify__product_tag.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag", "fqn": ["shopify_source", "stg_shopify__product_tag"], "alias": "stg_shopify__product_tag", "checksum": {"name": "sha256", "checksum": "ae6f7ea3469f488f934fff8e9d1ccccc5ba2df565fef1788164310c61f8d2556"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.777013, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__product_tag_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_shopify__product_tag_tmp')),\n staging_columns=get_product_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__product_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__product_tag.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__product_variant.sql", "original_file_path": "models/stg_shopify__product_variant.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant", "fqn": ["shopify_source", "stg_shopify__product_variant"], "alias": "stg_shopify__product_variant", "checksum": {"name": "sha256", "checksum": "3da4914a7c0bd0d37d32e4ebff9d544f7d8c0dd878fd6d5ffe3afb6f855fa9ba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_available_for_sale": {"name": "is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_components_required": {"name": "has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7326486, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_tmp')),\n staging_columns=get_product_variant_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_variant_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_variant_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__product_variant.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\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 updated_at\n \n as \n \n updated_at\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n position\n \n as \n \n position\n \n, \n \n \n inventory_policy\n \n as \n \n inventory_policy\n \n, \n \n \n compare_at_price\n \n as \n \n compare_at_price\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n barcode\n \n as \n \n barcode\n \n, \n cast(null as numeric(28,6)) as \n \n old_inventory_quantity\n \n , \n \n \n inventory_quantity\n \n as \n \n inventory_quantity\n \n, \n \n \n tax_code\n \n as \n \n tax_code\n \n, \n \n \n available_for_sale\n \n as \n \n available_for_sale\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n requires_components\n \n as \n \n requires_components\n \n, \n \n \n sellable_online_quantity\n \n as \n \n sellable_online_quantity\n \n, \n cast(null as TEXT) as \n \n fulfillment_service\n \n , \n cast(null as float) as \n \n grams\n \n , \n cast(null as TEXT) as \n \n inventory_management\n \n , \n cast(null as float) as \n \n weight\n \n , \n cast(null as TEXT) as \n \n weight_unit\n \n , \n cast(null as TEXT) as \n \n option_1\n \n , \n cast(null as TEXT) as \n \n option_2\n \n , \n cast(null as TEXT) as \n \n option_3\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["source_relation", "variant_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__order_discount_code.sql", "original_file_path": "models/stg_shopify__order_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code", "fqn": ["shopify_source", "stg_shopify__order_discount_code"], "alias": "stg_shopify__order_discount_code", "checksum": {"name": "sha256", "checksum": "b7d94153528bb2f9bb331a599e695c5f56632d9cd621a038d8764341aa87635e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7921362, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__order_discount_code_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_shopify__order_discount_code_tmp')),\n staging_columns=get_order_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__order_discount_code.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__media_image": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__media_image.sql", "original_file_path": "models/stg_shopify__media_image.sql", "unique_id": "model.shopify_source.stg_shopify__media_image", "fqn": ["shopify_source", "stg_shopify__media_image"], "alias": "stg_shopify__media_image", "checksum": {"name": "sha256", "checksum": "8eeba942a65f57c744a70ec79932794a1f6dd478449cac36c7928be22c6d9fd1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "Specifies the location of the product image, hashed for privacy. Coalesced with the deprecated `src` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7628005, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__media_image_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_image_tmp')),\n staging_columns=get_media_image_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_image_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_image_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__media_image_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__media_image.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["image_id", "media_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__order_line.sql", "original_file_path": "models/stg_shopify__order_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_line", "fqn": ["shopify_source", "stg_shopify__order_line"], "alias": "stg_shopify__order_line", "checksum": {"name": "sha256", "checksum": "e6915a60aff91c953c376bed58426879544cec3ed9038f3dfbde583567ec890f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7200913, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__order_line_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_tmp')),\n staging_columns=get_order_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_pass_through_columns') }}\n\n from fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__order_line.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fulfillable_quantity\n \n as \n \n fulfillable_quantity\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n gift_card\n \n as \n \n gift_card\n \n, \n \n \n grams\n \n as \n \n grams\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n pre_tax_price\n \n as \n \n pre_tax_price\n \n, \n cast(null as TEXT) as \n \n pre_tax_price_set\n \n , \n \n \n price\n \n as \n \n price\n \n, \n cast(null as TEXT) as \n \n price_set\n \n , \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n cast(null as TEXT) as \n \n tax_code\n \n , \n \n \n title\n \n as \n \n title\n \n, \n \n \n total_discount\n \n as \n \n total_discount\n \n, \n cast(null as TEXT) as \n \n total_discount_set\n \n , \n \n \n variant_id\n \n as \n \n variant_id\n \n, \n cast(null as TEXT) as \n \n variant_title\n \n , \n cast(null as TEXT) as \n \n variant_inventory_management\n \n , \n \n \n vendor\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n properties\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_line_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__discount_code_free_shipping.sql", "original_file_path": "models/stg_shopify__discount_code_free_shipping.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping", "fqn": ["shopify_source", "stg_shopify__discount_code_free_shipping"], "alias": "stg_shopify__discount_code_free_shipping", "checksum": {"name": "sha256", "checksum": "4804693d5537bcdd5ad21a24fa943c5ca5319552bc2fe0b5edf77e17a8ffb12e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for free shipping discount codes in Shopify, where shipping costs are discounted based on qualifying conditions.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.8092818, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_free_shipping_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_shopify__discount_code_free_shipping_tmp')),\n staging_columns=get_discount_code_free_shipping_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_free_shipping_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__discount_code_free_shipping.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__fulfillment_event.sql", "original_file_path": "models/stg_shopify__fulfillment_event.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event", "fqn": ["shopify_source", "stg_shopify__fulfillment_event"], "alias": "stg_shopify__fulfillment_event", "checksum": {"name": "sha256", "checksum": "5d9ed05cb2cb9fb1f61f1c690c0dad5a8a4c562db1bc4d46efe4ca9f842c5305"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_event_id": {"name": "fulfillment_event_id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1753299145.7981203, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"", "raw_code": "{{ config(enabled=var('shopify_using_fulfillment_event', false)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_event_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_shopify__fulfillment_event_tmp')),\n staging_columns=get_fulfillment_event_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n {{ shopify_source.fivetran_convert_timezone(column='cast(estimated_delivery_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as estimated_delivery_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(happened_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__fulfillment_event.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\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 created_at\n \n as \n \n created_at\n \n, \n \n \n estimated_delivery_at\n \n as \n \n estimated_delivery_at\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n happened_at\n \n as \n \n happened_at\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 longitude\n \n as \n \n longitude\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n shop_id\n \n as \n \n shop_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n cast(\n cast(cast(estimated_delivery_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as estimated_delivery_at,\n cast(\n cast(cast(happened_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["fulfillment_event_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__order_note_attribute.sql", "original_file_path": "models/stg_shopify__order_note_attribute.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute", "fqn": ["shopify_source", "stg_shopify__order_note_attribute"], "alias": "stg_shopify__order_note_attribute", "checksum": {"name": "sha256", "checksum": "ff9809e03c58c8e99e63ab8c7e7ba064f9abe7a86e191d19a8047912bdc19157"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7671359, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__order_note_attribute_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_shopify__order_note_attribute_tmp')),\n staging_columns=get_order_note_attribute_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_note_attribute_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__order_note_attribute.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["name", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__order_line_refund.sql", "original_file_path": "models/stg_shopify__order_line_refund.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund", "fqn": ["shopify_source", "stg_shopify__order_line_refund"], "alias": "stg_shopify__order_line_refund", "checksum": {"name": "sha256", "checksum": "41a80dea1f78e2e841a43d38181b4b4048c25a5c3e5175f05168e227808d5a06"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_line_refund_id": {"name": "order_line_refund_id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7182531, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"", "raw_code": "-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_line_refund_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_refund_tmp')),\n staging_columns=get_order_line_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_refund_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__order_line_refund.sql", "compiled": true, "compiled_code": "-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n subtotal\n \n as \n \n subtotal\n \n, \n \n \n subtotal_set\n \n as \n \n subtotal_set\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_tax_set\n \n as \n \n total_tax_set\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n restock_type\n \n as \n \n restock_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_line_refund_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__refund.sql", "original_file_path": "models/stg_shopify__refund.sql", "unique_id": "model.shopify_source.stg_shopify__refund", "fqn": ["shopify_source", "stg_shopify__refund"], "alias": "stg_shopify__refund", "checksum": {"name": "sha256", "checksum": "078fa28eb283f851e8ac07032ba4a928433d06a3c094119600b6cf45b8b4b735"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a refund within Shopify.", "columns": {"refund_id": {"name": "refund_id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.736989, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund\"", "raw_code": "-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__refund_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__refund_tmp')),\n staging_columns=get_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__refund.sql", "compiled": true, "compiled_code": "-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n restock\n \n as \n \n restock\n \n, \n \n \n total_duties_set\n \n as \n \n total_duties_set\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["refund_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__customer_tag.sql", "original_file_path": "models/stg_shopify__customer_tag.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag", "fqn": ["shopify_source", "stg_shopify__customer_tag"], "alias": "stg_shopify__customer_tag", "checksum": {"name": "sha256", "checksum": "d8c8968e08d280b97b6ddf488a628c91e19ddb19ceb23affa8d0bbf32f942590"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7485728, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__customer_tag_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_shopify__customer_tag_tmp')),\n staging_columns=get_customer_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__customer_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__customer_tag.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "index"], "time_spine": null}, "model.shopify_source.stg_shopify__product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__product.sql", "original_file_path": "models/stg_shopify__product.sql", "unique_id": "model.shopify_source.stg_shopify__product", "fqn": ["shopify_source", "stg_shopify__product"], "alias": "stg_shopify__product", "checksum": {"name": "sha256", "checksum": "139f6bbf55c9d1a28414d50303476259701ff93ac9ab3714bda3a12af905b2aa"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.725223, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__product_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_tmp')),\n staging_columns=get_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_pass_through_columns') }}\n\nfrom fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__product.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"\n\n),\n\nfields as (\n\n select\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 handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\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\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n status\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\nfrom fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__order_tag.sql", "original_file_path": "models/stg_shopify__order_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag", "fqn": ["shopify_source", "stg_shopify__order_tag"], "alias": "stg_shopify__order_tag", "checksum": {"name": "sha256", "checksum": "b89da512bcc4443685f63f4bcb4309a60c1d978cf87798cc19b99d4f4d95a934"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7729583, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__order_tag_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_shopify__order_tag_tmp')),\n staging_columns=get_order_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__order_tag.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__location": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__location.sql", "original_file_path": "models/stg_shopify__location.sql", "unique_id": "model.shopify_source.stg_shopify__location", "fqn": ["shopify_source", "stg_shopify__location"], "alias": "stg_shopify__location", "checksum": {"name": "sha256", "checksum": "72a0851105ecde3f3bb9e972c615c0fdd70759637019a359e0b54f38bfd3cc65"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy": {"name": "is_legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7594178, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__location_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_shopify__location_tmp')),\n staging_columns=get_location_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location_tmp", "package": null, "version": null}, {"name": "stg_shopify__location_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_location_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__location_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__location.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\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_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n legacy\n \n as \n \n legacy\n \n, \n \n \n localized_country_name\n \n as \n \n localized_country_name\n \n, \n \n \n localized_province_name\n \n as \n \n localized_province_name\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["location_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__order_url_tag.sql", "original_file_path": "models/stg_shopify__order_url_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag", "fqn": ["shopify_source", "stg_shopify__order_url_tag"], "alias": "stg_shopify__order_url_tag", "checksum": {"name": "sha256", "checksum": "0475883fe6c9a0cd351b16a0640b4e5f1a9b1530d784c245588c8fa148a4d5a4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7738488, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__order_url_tag_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_shopify__order_url_tag_tmp')),\n staging_columns=get_order_url_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_url_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__order_url_tag.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["key", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__product_media.sql", "original_file_path": "models/stg_shopify__product_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_media", "fqn": ["shopify_source", "stg_shopify__product_media"], "alias": "stg_shopify__product_media", "checksum": {"name": "sha256", "checksum": "8bdfed0d02d4ccc52e230b7f400e143fdb29ffb2f80ce48e69c571872dbe2003"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7746315, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__product_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_media_tmp')),\n staging_columns=get_product_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__product_media.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__product_variant_media.sql", "original_file_path": "models/stg_shopify__product_variant_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media", "fqn": ["shopify_source", "stg_shopify__product_variant_media"], "alias": "stg_shopify__product_variant_media", "checksum": {"name": "sha256", "checksum": "c9a6a9e3c9d764346f90eb9ee7ffeacb86c2b58095420b481c7912e0a6f61163"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1753299145.7757604, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"", "raw_code": "{{ config(enabled=var('shopify_using_product_variant_media', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_media_tmp')),\n staging_columns=get_product_variant_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__product_variant_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id", "product_variant_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__abandoned_checkout.sql", "original_file_path": "models/stg_shopify__abandoned_checkout.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout", "fqn": ["shopify_source", "stg_shopify__abandoned_checkout"], "alias": "stg_shopify__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "50e24769ed34e9f1c87814af32eb761b74ea05c76beef93f45b5ea37b4146741"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_currency": {"name": "shop_currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1753299145.7439923, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"", "raw_code": "{{ config(enabled=var('shopify_using_abandoned_checkout', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_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_shopify__abandoned_checkout_tmp')),\n staging_columns=get_abandoned_checkout_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n abandoned_checkout_url\n \n as \n \n abandoned_checkout_url\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n cast(null as TEXT) as \n \n billing_address_address_2\n \n , \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_locale\n \n as \n \n customer_locale\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n presentment_currency\n \n as \n \n presentment_currency\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n cast(null as TEXT) as \n \n shipping_address_address_2\n \n , \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n \n \n total_duties\n \n as \n \n total_duties\n \n, \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n \n \n total_price\n \n as \n \n total_price\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n user_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__discount_code_app.sql", "original_file_path": "models/stg_shopify__discount_code_app.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app", "fqn": ["shopify_source", "stg_shopify__discount_code_app"], "alias": "stg_shopify__discount_code_app", "checksum": {"name": "sha256", "checksum": "cf7b324e4e7512dc4a33591da333ac56808ef16b752088cb7604dcbcb9fb745c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for discount codes created through third-party apps in Shopify.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1753299145.8048615, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"", "raw_code": "{{ config(enabled=var('shopify_using_discount_code_app', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_app_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_shopify__discount_code_app_tmp')),\n staging_columns=get_discount_code_app_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_app_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__discount_code_app.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count_count\n \n as \n \n codes_count_count\n \n, \n \n \n codes_count_precision\n \n as \n \n codes_count_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__abandoned_checkout_discount_code.sql", "original_file_path": "models/stg_shopify__abandoned_checkout_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "fqn": ["shopify_source", "stg_shopify__abandoned_checkout_discount_code"], "alias": "stg_shopify__abandoned_checkout_discount_code", "checksum": {"name": "sha256", "checksum": "61c63b2f952a3f40414efb2ef6691c80b67eb55985761d38ce7aa0b397e590ee"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1753299145.7911785, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_using_abandoned_checkout', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_discount_code_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_shopify__abandoned_checkout_discount_code_tmp')),\n staging_columns=get_abandoned_checkout_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__abandoned_checkout_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n type\n \n as \n \n type\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 TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__abandoned_checkout_shipping_line.sql", "original_file_path": "models/stg_shopify__abandoned_checkout_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line", "fqn": ["shopify_source", "stg_shopify__abandoned_checkout_shipping_line"], "alias": "stg_shopify__abandoned_checkout_shipping_line", "checksum": {"name": "sha256", "checksum": "2249b71680563851e9100842b8fae99c4f9460f2177f53e6dc8d2b8f0b6f1f8c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_code": {"name": "shipping_code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "abandoned_checkout_shipping_line_id": {"name": "abandoned_checkout_shipping_line_id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1753299145.7956743, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"", "raw_code": "{{ config(enabled=var('shopify_using_abandoned_checkout', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_shipping_line_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_shopify__abandoned_checkout_shipping_line_tmp')),\n staging_columns=get_abandoned_checkout_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__abandoned_checkout_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n delivery_expectation_range\n \n as \n \n delivery_expectation_range\n \n, \n \n \n delivery_expectation_range_max\n \n as \n \n delivery_expectation_range_max\n \n, \n \n \n delivery_expectation_range_min\n \n as \n \n delivery_expectation_range_min\n \n, \n \n \n delivery_expectation_type\n \n as \n \n delivery_expectation_type\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id", "index", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__tax_line.sql", "original_file_path": "models/stg_shopify__tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line", "fqn": ["shopify_source", "stg_shopify__tax_line"], "alias": "stg_shopify__tax_line", "checksum": {"name": "sha256", "checksum": "90875598324200dffbb5608032a8cb0a1ea613f0bb19453c2aa855f7d4c43b47"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7989964, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__tax_line_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_shopify__tax_line_tmp')),\n staging_columns=get_tax_line_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__tax_line.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_line_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product", "resource_type": "model", "package_name": "shopify_source", "path": "stg_shopify__collection_product.sql", "original_file_path": "models/stg_shopify__collection_product.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product", "fqn": ["shopify_source", "stg_shopify__collection_product"], "alias": "stg_shopify__collection_product", "checksum": {"name": "sha256", "checksum": "33aa97b8e2e7827160f9fb2b3efe355c79abdecdd86f96720425c3726458f0e2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.7452216, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_shopify__collection_product_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_shopify__collection_product_tmp')),\n staging_columns=get_collection_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify__collection_product.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n collection_id\n \n as \n \n collection_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["collection_id", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__metafield_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__metafield_tmp.sql", "original_file_path": "models/tmp/stg_shopify__metafield_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__metafield_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__metafield_tmp"], "alias": "stg_shopify__metafield_tmp", "checksum": {"name": "sha256", "checksum": "486bab03fb66045594a1f7e9388888278fbe623b0ce0e64a6062e130be94ed22"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1753299144.7974048, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"", "raw_code": "{{ config(enabled=var('shopify_using_metafield', True)) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='metafield', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='metafield_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "metafield"], ["shopify", "metafield"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.metafield"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__metafield_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_metafield_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__discount_code_bxgy_tmp.sql", "original_file_path": "models/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__discount_code_bxgy_tmp"], "alias": "stg_shopify__discount_code_bxgy_tmp", "checksum": {"name": "sha256", "checksum": "ab851cc836cf18f34f5de56d4411a609d08875df6f181680a88d333a69cf417c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.833988, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_bxgy', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_bxgy_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_bxgy"], ["shopify", "discount_code_bxgy"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__fulfillment_tmp.sql", "original_file_path": "models/tmp/stg_shopify__fulfillment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__fulfillment_tmp"], "alias": "stg_shopify__fulfillment_tmp", "checksum": {"name": "sha256", "checksum": "82ff263fd38a0deffc05c810f434c4a207e8925ffd99ca3ee476da5a5ab3df13"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.841404, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment"], ["shopify", "fulfillment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__fulfillment_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__product_variant_tmp.sql", "original_file_path": "models/tmp/stg_shopify__product_variant_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__product_variant_tmp"], "alias": "stg_shopify__product_variant_tmp", "checksum": {"name": "sha256", "checksum": "4c4fe423298bfd8b9a80bf101f5fd05814acd2e8d7c5de7e2e5c630674e8e480"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.848917, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant"], ["shopify", "product_variant"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__product_variant_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__collection_tmp.sql", "original_file_path": "models/tmp/stg_shopify__collection_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__collection_tmp"], "alias": "stg_shopify__collection_tmp", "checksum": {"name": "sha256", "checksum": "63ca1d11cf49ec0f1c1d7838691d6a198856b21ea836ba6a6abe60180dd8b311"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.8563895, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='collection', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection"], ["shopify", "collection"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__collection_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__order_discount_code_tmp.sql", "original_file_path": "models/tmp/stg_shopify__order_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__order_discount_code_tmp"], "alias": "stg_shopify__order_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "d6dd64c5741349f018090f19824455f1bb8d727022bbed2e7c22a447ee705954"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.863866, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='order_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_discount_code"], ["shopify", "order_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__order_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__order_url_tag_tmp.sql", "original_file_path": "models/tmp/stg_shopify__order_url_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__order_url_tag_tmp"], "alias": "stg_shopify__order_url_tag_tmp", "checksum": {"name": "sha256", "checksum": "4f28f9c797a1b8fc5192916f334b4e5ffa54dd6acbada669173542cc0fb01644"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.8724864, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='order_url_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_url_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_url_tag"], ["shopify", "order_url_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__order_url_tag_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_url_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__product_tmp.sql", "original_file_path": "models/tmp/stg_shopify__product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__product_tmp"], "alias": "stg_shopify__product_tmp", "checksum": {"name": "sha256", "checksum": "6e0ec47bb03cd45a1f88b08e349350aecbaf472cdb2df5a13b9e6c2cd6a11f09"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.8799753, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product"], ["shopify", "product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__product_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__order_tag_tmp.sql", "original_file_path": "models/tmp/stg_shopify__order_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__order_tag_tmp"], "alias": "stg_shopify__order_tag_tmp", "checksum": {"name": "sha256", "checksum": "e23ce290098ef334a05f9bd0ee0218bd6ed80924ec5450e8d6a8ad3a5819e94d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.8874605, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='order_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_tag"], ["shopify", "order_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__order_tag_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__inventory_quantity_tmp.sql", "original_file_path": "models/tmp/stg_shopify__inventory_quantity_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__inventory_quantity_tmp"], "alias": "stg_shopify__inventory_quantity_tmp", "checksum": {"name": "sha256", "checksum": "d913ba79865986c6d9c308813959a8c9626d60a30b68f4ff4be07b891c889dff"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.8948233, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_quantity', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_quantity_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_quantity"], ["shopify", "inventory_quantity"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__inventory_quantity_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__tax_line_tmp.sql", "original_file_path": "models/tmp/stg_shopify__tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__tax_line_tmp"], "alias": "stg_shopify__tax_line_tmp", "checksum": {"name": "sha256", "checksum": "b5700643c05cb11dbca046ab8cd054e4ca2fb21fe5b1eee975a5f2a8566566b7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.9033782, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tax_line"], ["shopify", "tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__tax_line_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__customer_tag_tmp.sql", "original_file_path": "models/tmp/stg_shopify__customer_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__customer_tag_tmp"], "alias": "stg_shopify__customer_tag_tmp", "checksum": {"name": "sha256", "checksum": "f0a87965c0aeef7017bacf17cca0491f64a2524ac5711cd3db0b80876afeaa61"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.9109273, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='customer_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer_tag"], ["shopify", "customer_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__customer_tag_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__discount_allocation_tmp.sql", "original_file_path": "models/tmp/stg_shopify__discount_allocation_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__discount_allocation_tmp"], "alias": "stg_shopify__discount_allocation_tmp", "checksum": {"name": "sha256", "checksum": "961a236e4e1ce7b565f092b7964f53e012b39b5d336f5532e76dc9e9584f95b9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.918297, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='discount_allocation', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_allocation_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_allocation"], ["shopify", "discount_allocation"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__discount_allocation_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_allocation_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_image_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__media_image_tmp.sql", "original_file_path": "models/tmp/stg_shopify__media_image_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_image_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__media_image_tmp"], "alias": "stg_shopify__media_image_tmp", "checksum": {"name": "sha256", "checksum": "8eb01ea0a0a55049f86fb6520c9bbe4152755e01a50e5b5a25d44442d3f572fc"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.925761, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='media_image', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_image_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media_image"], ["shopify", "media_image"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media_image"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__media_image_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_image_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__media_tmp.sql", "original_file_path": "models/tmp/stg_shopify__media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__media_tmp"], "alias": "stg_shopify__media_tmp", "checksum": {"name": "sha256", "checksum": "68b75238072b006956d12f55258531ab8ea44787fba868ca698eba709879daa3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.9333215, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media"], ["shopify", "media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__media_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__refund_tmp.sql", "original_file_path": "models/tmp/stg_shopify__refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__refund_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__refund_tmp"], "alias": "stg_shopify__refund_tmp", "checksum": {"name": "sha256", "checksum": "71f695efce335891a6d02136c9415bd892fe5eb2a2d0a8151a0886deda61a3a2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.9420235, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"", "raw_code": "-- this model will be all NULL until you create a refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "refund"], ["shopify", "refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.refund"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__refund_tmp.sql", "compiled": true, "compiled_code": "-- this model will be all NULL until you create a refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__location_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__location_tmp.sql", "original_file_path": "models/tmp/stg_shopify__location_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__location_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__location_tmp"], "alias": "stg_shopify__location_tmp", "checksum": {"name": "sha256", "checksum": "b1b4fac87a55077449436c05fbcd6c7513b4d26a0ea1fedcfb6c5cec1e31d674"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.9496095, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='location', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='location_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "location"], ["shopify", "location"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.location"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__location_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__inventory_level_tmp.sql", "original_file_path": "models/tmp/stg_shopify__inventory_level_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__inventory_level_tmp"], "alias": "stg_shopify__inventory_level_tmp", "checksum": {"name": "sha256", "checksum": "ac984d550fe65c52e105c1517a2f0156ddba8714ac6ccc46ee6eaa65e4168320"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.957096, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_level', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_level_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_level"], ["shopify", "inventory_level"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__inventory_level_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_level_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__order_shipping_line_tmp.sql", "original_file_path": "models/tmp/stg_shopify__order_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__order_shipping_line_tmp"], "alias": "stg_shopify__order_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "c3f678ea135c8bc8de40cd53d49e5b26d01758a1419ad1a869e37a4b7e29b566"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.964416, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_line"], ["shopify", "order_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__order_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "original_file_path": "models/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__abandoned_checkout_discount_code_tmp"], "alias": "stg_shopify__abandoned_checkout_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "eb1698b6dc4b740cce7fb25cd0d1dce3317a200f2ec9d5e7f24bafbe0380674f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1753299144.9729362, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_using_abandoned_checkout', True)) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_discount_code"], ["shopify", "abandoned_checkout_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__fulfillment_event_tmp.sql", "original_file_path": "models/tmp/stg_shopify__fulfillment_event_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__fulfillment_event_tmp"], "alias": "stg_shopify__fulfillment_event_tmp", "checksum": {"name": "sha256", "checksum": "642c30aeecfa3b633eaa3cc6d4e1f888299406d7afd20047fb19c0cb52b78c4e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1753299144.980895, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"", "raw_code": "{{ config(enabled=var('shopify_using_fulfillment_event', false)) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_event', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_event_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment_event"], ["shopify", "fulfillment_event"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__fulfillment_event_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__order_line_refund_tmp.sql", "original_file_path": "models/tmp/stg_shopify__order_line_refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__order_line_refund_tmp"], "alias": "stg_shopify__order_line_refund_tmp", "checksum": {"name": "sha256", "checksum": "62495e36aa92d9ef930eec1dbd028108534cc27f682e59124211e2fbd774f530"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299144.9886835, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"", "raw_code": "-- this model will be all NULL until you have made an order line refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line_refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line_refund"], ["shopify", "order_line_refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__order_line_refund_tmp.sql", "compiled": true, "compiled_code": "-- this model will be all NULL until you have made an order line refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__discount_code_app_tmp.sql", "original_file_path": "models/tmp/stg_shopify__discount_code_app_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__discount_code_app_tmp"], "alias": "stg_shopify__discount_code_app_tmp", "checksum": {"name": "sha256", "checksum": "a5b1c55d1d84494ba420cfc0a9d7c4eb126ea577434930fc55ed9591cb917308"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1753299144.9962065, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"", "raw_code": "{{ config(enabled=var('shopify_using_discount_code_app', False)) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_app', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_app_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_app"], ["shopify", "discount_code_app"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__discount_code_app_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_app_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__shop_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__shop_tmp.sql", "original_file_path": "models/tmp/stg_shopify__shop_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__shop_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__shop_tmp"], "alias": "stg_shopify__shop_tmp", "checksum": {"name": "sha256", "checksum": "14e0c7df59bb78319d8115bbc76a4d4b01069f32116ba8221ac751a48eca7a2e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.0040884, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='shop', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='shop_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "shop"], ["shopify", "shop"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.shop"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__shop_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_shop_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__transaction_tmp.sql", "original_file_path": "models/tmp/stg_shopify__transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__transaction_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__transaction_tmp"], "alias": "stg_shopify__transaction_tmp", "checksum": {"name": "sha256", "checksum": "0653b8a8bb9e4ea494142cf25444ddde325cb513d2bc86c79ff698aa96585459"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.0128348, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "transaction"], ["shopify", "transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.transaction"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__transaction_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__product_variant_media_tmp.sql", "original_file_path": "models/tmp/stg_shopify__product_variant_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__product_variant_media_tmp"], "alias": "stg_shopify__product_variant_media_tmp", "checksum": {"name": "sha256", "checksum": "e7d0e8236fd31f9fd5c3d089af4e6286d2d3c205225500477c1bd80de50ef7b4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1753299145.0201747, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_using_product_variant_media', False)) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant_media"], ["shopify", "product_variant_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__product_variant_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__order_line_tmp.sql", "original_file_path": "models/tmp/stg_shopify__order_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__order_line_tmp"], "alias": "stg_shopify__order_line_tmp", "checksum": {"name": "sha256", "checksum": "14f8c710a86047e9c3bc755231b78a14fb81f0034dc10a87c8928da6f9325b79"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.028122, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='order_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line"], ["shopify", "order_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__order_line_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__product_media_tmp.sql", "original_file_path": "models/tmp/stg_shopify__product_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_media_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__product_media_tmp"], "alias": "stg_shopify__product_media_tmp", "checksum": {"name": "sha256", "checksum": "8db5af7fd2255f92eec51cbee85ac58cef7613753796195106802f67426184ca"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.0355842, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='product_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_media"], ["shopify", "product_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_media"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__product_media_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__discount_code_basic_tmp.sql", "original_file_path": "models/tmp/stg_shopify__discount_code_basic_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__discount_code_basic_tmp"], "alias": "stg_shopify__discount_code_basic_tmp", "checksum": {"name": "sha256", "checksum": "b32bb53d4b6ad68a0e1223f64fd16680d998e93e7b8a3d84c08ff41a90b762e1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.0440793, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_basic', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_basic_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_basic"], ["shopify", "discount_code_basic"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__discount_code_basic_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "original_file_path": "models/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__order_shipping_tax_line_tmp"], "alias": "stg_shopify__order_shipping_tax_line_tmp", "checksum": {"name": "sha256", "checksum": "e6bbf0d3747b89566e9265edd0ac4c1bb442b79b23e6be1e3ee365f48741aeac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.0515468, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_tax_line"], ["shopify", "order_shipping_tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__order_note_attribute_tmp.sql", "original_file_path": "models/tmp/stg_shopify__order_note_attribute_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__order_note_attribute_tmp"], "alias": "stg_shopify__order_note_attribute_tmp", "checksum": {"name": "sha256", "checksum": "71e5541b35e919adc7979db9cea6a4d5c3622c6d6059e776828ecddf851c94c0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.0590265, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='order_note_attribute', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_note_attribute_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_note_attribute"], ["shopify", "order_note_attribute"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__order_note_attribute_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__discount_application_tmp.sql", "original_file_path": "models/tmp/stg_shopify__discount_application_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__discount_application_tmp"], "alias": "stg_shopify__discount_application_tmp", "checksum": {"name": "sha256", "checksum": "d19f5a421f9ff5f619cbef04b22b2381da2e6f1c869195efa873b831bbb08350"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.0665088, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='discount_application', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_application_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_application"], ["shopify", "discount_application"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__discount_application_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_application_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__tender_transaction_tmp.sql", "original_file_path": "models/tmp/stg_shopify__tender_transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__tender_transaction_tmp"], "alias": "stg_shopify__tender_transaction_tmp", "checksum": {"name": "sha256", "checksum": "d672579ba505eb38398ce575b38c6212f1f015ad1a42d9602799e9c2c3d11581"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.0738506, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='tender_transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tender_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tender_transaction"], ["shopify", "tender_transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__tender_transaction_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tender_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "original_file_path": "models/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__discount_code_free_shipping_tmp"], "alias": "stg_shopify__discount_code_free_shipping_tmp", "checksum": {"name": "sha256", "checksum": "ccd80aae868ee6271bfcca95d6ab3d838e75ee3e7a232dc0a76e6e231c923461"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.082539, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_free_shipping', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_free_shipping_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_free_shipping"], ["shopify", "discount_code_free_shipping"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__product_tag_tmp.sql", "original_file_path": "models/tmp/stg_shopify__product_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__product_tag_tmp"], "alias": "stg_shopify__product_tag_tmp", "checksum": {"name": "sha256", "checksum": "e462111618395d0e18b6e92f37cf7c86a0c54d0516a95d32e88286dd66e4e190"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.0900154, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='product_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_tag"], ["shopify", "product_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__product_tag_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__inventory_item_tmp.sql", "original_file_path": "models/tmp/stg_shopify__inventory_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__inventory_item_tmp"], "alias": "stg_shopify__inventory_item_tmp", "checksum": {"name": "sha256", "checksum": "065c7e0531fbd3d7a70390edaf9efc9f6dab0f801d58aa40ddd75161edcfcf3e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.0974116, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_item"], ["shopify", "inventory_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__inventory_item_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__order_tmp.sql", "original_file_path": "models/tmp/stg_shopify__order_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__order_tmp"], "alias": "stg_shopify__order_tmp", "checksum": {"name": "sha256", "checksum": "a27b074681d173802dbe795b83dfae9dd53ced77341a38923431d90d1386cdca"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.1054301, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='order',\n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order"], ["shopify", "order"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__order_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__discount_redeem_code_tmp.sql", "original_file_path": "models/tmp/stg_shopify__discount_redeem_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__discount_redeem_code_tmp"], "alias": "stg_shopify__discount_redeem_code_tmp", "checksum": {"name": "sha256", "checksum": "989653672289195365934f27b35afa4a9fbd99a0f5a07a1680f25dc3a16a3ddb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.114011, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='discount_redeem_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_redeem_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_redeem_code"], ["shopify", "discount_redeem_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__discount_redeem_code_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__customer_tmp.sql", "original_file_path": "models/tmp/stg_shopify__customer_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__customer_tmp"], "alias": "stg_shopify__customer_tmp", "checksum": {"name": "sha256", "checksum": "e7c2249d0010e549e9ce39452878c185bdd2576af58f74d7cbde93ed400308a4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.1213875, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='customer', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer"], ["shopify", "customer"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__customer_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__order_adjustment_tmp.sql", "original_file_path": "models/tmp/stg_shopify__order_adjustment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__order_adjustment_tmp"], "alias": "stg_shopify__order_adjustment_tmp", "checksum": {"name": "sha256", "checksum": "0dac797bcc892e629367b80b49a8d4ea7de967783b3243eab291179eaaa95fd8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.128859, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"", "raw_code": "-- this model will be all NULL until you have made an order adjustment in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_adjustment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_adjustment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_adjustment"], ["shopify", "order_adjustment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__order_adjustment_tmp.sql", "compiled": true, "compiled_code": "-- this model will be all NULL until you have made an order adjustment in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_adjustment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "original_file_path": "models/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__abandoned_checkout_shipping_line_tmp"], "alias": "stg_shopify__abandoned_checkout_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "481c835fcc2c677171a0cb540afe6ec1b181258b631924283ebbb4bc18e9202e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1753299145.1363192, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_using_abandoned_checkout', True)) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_shipping_line"], ["shopify", "abandoned_checkout_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__collection_product_tmp.sql", "original_file_path": "models/tmp/stg_shopify__collection_product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__collection_product_tmp"], "alias": "stg_shopify__collection_product_tmp", "checksum": {"name": "sha256", "checksum": "82d1ae1797de6303549e60a16cc386c7a74e94fba1653c447e9a7801f5a340ee"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view"}, "created_at": 1753299145.1452596, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"", "raw_code": "{{\n shopify_source.shopify_union_data(\n table_identifier='collection_product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection_product"], ["shopify", "collection_product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__collection_product_tmp.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "tmp/stg_shopify__abandoned_checkout_tmp.sql", "original_file_path": "models/tmp/stg_shopify__abandoned_checkout_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_tmp", "fqn": ["shopify_source", "tmp", "stg_shopify__abandoned_checkout_tmp"], "alias": "stg_shopify__abandoned_checkout_tmp", "checksum": {"name": "sha256", "checksum": "9713f197c13ecae1022f943134f8faaeaf6b14cc1bd673f5ee706e5d466cd141"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1753299145.2165928, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"", "raw_code": "{{ config(enabled=var('shopify_using_abandoned_checkout', True)) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout"], ["shopify", "abandoned_checkout"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/tmp/stg_shopify__abandoned_checkout_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a", "fqn": ["shopify", "unique_shopify__customer_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.5390463, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "fqn": ["shopify", "not_null_shopify__customer_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.5416677, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182", "fqn": ["shopify", "unique_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.5440695, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "fqn": ["shopify", "not_null_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.5463896, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51", "fqn": ["shopify", "unique_shopify__orders_orders_unique_key"], "alias": "unique_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.54892, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n orders_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is not null\ngroup by orders_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "fqn": ["shopify", "not_null_shopify__orders_orders_unique_key"], "alias": "not_null_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.551248, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect orders_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696"}, "created_at": 1753299145.553643, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customers"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__customers\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customers", "attached_node": "model.shopify.shopify__customers", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customers')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation"], "alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f"}, "created_at": 1753299145.5777292, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_emails", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_emails"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__customer_emails\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customer_emails", "attached_node": "model.shopify.shopify__customer_emails", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customer_emails')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa"}, "created_at": 1753299145.5836785, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__products"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__products\"\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__products", "attached_node": "model.shopify.shopify__products", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__products')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e", "fqn": ["shopify", "unique_shopify__order_lines_order_lines_unique_key"], "alias": "unique_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.588894, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_lines_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is not null\ngroup by order_lines_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "unique", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "fqn": ["shopify", "not_null_shopify__order_lines_order_lines_unique_key"], "alias": "not_null_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.5912645, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_lines_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981", "fqn": ["shopify", "unique_shopify__transactions_transactions_unique_id"], "alias": "unique_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.5936065, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n transactions_unique_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is not null\ngroup by transactions_unique_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "fqn": ["shopify", "not_null_shopify__transactions_transactions_unique_id"], "alias": "not_null_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.5960715, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transactions_unique_id\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_inventory_item_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_inventory_item_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "fqn": ["shopify", "not_null_shopify__inventory_levels_inventory_item_id"], "alias": "not_null_shopify__inventory_levels_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.5984175, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_location_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_location_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0", "fqn": ["shopify", "not_null_shopify__inventory_levels_location_id"], "alias": "not_null_shopify__inventory_levels_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.600773, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b"}, "created_at": 1753299145.6032746, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\n group by inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f", "fqn": ["shopify", "unique_shopify__discounts_discounts_unique_key"], "alias": "unique_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.6084423, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n discounts_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is not null\ngroup by discounts_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "fqn": ["shopify", "not_null_shopify__discounts_discounts_unique_key"], "alias": "not_null_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.610802, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discounts_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discount_code_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discount_code_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "fqn": ["shopify", "not_null_shopify__discounts_discount_code_id"], "alias": "not_null_shopify__discounts_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.6131256, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation"], "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e"}, "created_at": 1753299145.6161067, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n code, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__discounts\"\n group by code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__daily_shop_shop_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__daily_shop_shop_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f", "fqn": ["shopify", "not_null_shopify__daily_shop_shop_id"], "alias": "not_null_shopify__daily_shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.6211946, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__daily_shop"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__daily_shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"shopify__daily_shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.shopify__daily_shop", "attached_node": "model.shopify.shopify__daily_shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('shopify__daily_shop')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3.sql", "original_file_path": "models/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9", "fqn": ["shopify", "intermediate", "dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3"}, "created_at": 1753299145.6297784, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customers__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customers__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/intermediate/intermediate.yml/dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__shopify__customers__order_aggregates as (\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n customer_id, source_relation\n from __dbt__cte__shopify__customers__order_aggregates\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": [{"id": "model.shopify.shopify__customers__order_aggregates", "sql": " __dbt__cte__shopify__customers__order_aggregates as (\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customers__order_aggregates", "attached_node": "model.shopify.shopify__customers__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customers__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04.sql", "original_file_path": "models/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473", "fqn": ["shopify", "intermediate", "dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04"}, "created_at": 1753299145.6349552, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__orders__order_line_aggregates", "attached_node": "model.shopify.shopify__orders__order_line_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__orders__order_line_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1.sql", "original_file_path": "models/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a", "fqn": ["shopify", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation"], "alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1"}, "created_at": 1753299145.6402102, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__emails__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__emails__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__emails__order_aggregates as (\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n email, source_relation\n from __dbt__cte__int_shopify__emails__order_aggregates\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__emails__order_aggregates", "sql": " __dbt__cte__int_shopify__emails__order_aggregates as (\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__emails__order_aggregates", "attached_node": "model.shopify.int_shopify__emails__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__emails__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce.sql", "original_file_path": "models/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda", "fqn": ["shopify", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation"], "alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce"}, "created_at": 1753299145.6454282, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__customer_email_rollup", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__customer_email_rollup"]}, "compiled_path": "target/compiled/shopify/models/intermediate/intermediate.yml/dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__customer_email_rollup", "attached_node": "model.shopify.int_shopify__customer_email_rollup", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__customer_email_rollup')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e.sql", "original_file_path": "models/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114", "fqn": ["shopify", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e"}, "created_at": 1753299145.6505022, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__inventory_level__aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__inventory_level__aggregates"]}, "compiled_path": "target/compiled/shopify/models/intermediate/intermediate.yml/dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__shopify__orders__order_refunds as (\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify__inventory_level__aggregates as (\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n variant_id, location_id, source_relation\n from __dbt__cte__int_shopify__inventory_level__aggregates\n group by variant_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify__inventory_level__aggregates", "sql": " __dbt__cte__int_shopify__inventory_level__aggregates as (\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__inventory_level__aggregates", "attached_node": "model.shopify.int_shopify__inventory_level__aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["variant_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__inventory_level__aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13.sql", "original_file_path": "models/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca", "fqn": ["shopify", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation"], "alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13"}, "created_at": 1753299145.6557126, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discounts__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__discounts__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/intermediate/intermediate.yml/dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__discounts__order_aggregates as (\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), validation_errors as (\n\n select\n code, type, source_relation\n from __dbt__cte__int_shopify__discounts__order_aggregates\n group by code, type, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discounts__order_aggregates", "sql": " __dbt__cte__int_shopify__discounts__order_aggregates as (\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__discounts__order_aggregates", "attached_node": "model.shopify.int_shopify__discounts__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "type", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__discounts__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936.sql", "original_file_path": "models/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795", "fqn": ["shopify", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation"], "alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936"}, "created_at": 1753299145.6612973, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discounts__abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__discounts__abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/intermediate/intermediate.yml/dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), validation_errors as (\n\n select\n code, type, source_relation\n from __dbt__cte__int_shopify__discounts__abandoned_checkouts\n group by code, type, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "sql": " __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__discounts__abandoned_checkouts", "attached_node": "model.shopify.int_shopify__discounts__abandoned_checkouts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "type", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__discounts__abandoned_checkouts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac.sql", "original_file_path": "models/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867", "fqn": ["shopify", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac"}, "created_at": 1753299145.6665094, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/intermediate/intermediate.yml/dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), validation_errors as (\n\n select\n order_id, source_relation\n from __dbt__cte__int_shopify__order__shipping_aggregates\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__order__shipping_aggregates", "attached_node": "model.shopify.int_shopify__order__shipping_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__order__shipping_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28.sql", "original_file_path": "models/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683", "fqn": ["shopify", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28"}, "created_at": 1753299145.6715739, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__product__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__product__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__product__order_line_aggregates as (\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), validation_errors as (\n\n select\n product_id, source_relation\n from __dbt__cte__int_shopify__product__order_line_aggregates\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__product__order_line_aggregates", "sql": " __dbt__cte__int_shopify__product__order_line_aggregates as (\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__product__order_line_aggregates", "attached_node": "model.shopify.int_shopify__product__order_line_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__product__order_line_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04.sql", "original_file_path": "models/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c", "fqn": ["shopify", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04"}, "created_at": 1753299145.6772363, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__products_with_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__products_with_aggregates"]}, "compiled_path": "target/compiled/shopify/models/intermediate/intermediate.yml/dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__products_with_aggregates as (\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), validation_errors as (\n\n select\n product_id, source_relation\n from __dbt__cte__int_shopify__products_with_aggregates\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__products_with_aggregates", "sql": " __dbt__cte__int_shopify__products_with_aggregates as (\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__products_with_aggregates", "attached_node": "model.shopify.int_shopify__products_with_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__products_with_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95.sql", "original_file_path": "models/standardized_models/shopify__standardized_models.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae", "fqn": ["shopify", "standardized_models", "dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95"}, "created_at": 1753299145.6972618, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__line_item_enhanced"]}, "compiled_path": "target/compiled/shopify/models/standardized_models/shopify__standardized_models.yml/dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n header_id, line_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__line_item_enhanced\"\n group by header_id, line_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__line_item_enhanced", "attached_node": "model.shopify.shopify__line_item_enhanced", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["header_id", "line_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__line_item_enhanced')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be"}, "created_at": 1753299145.8125753, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__customer", "attached_node": "model.shopify_source.stg_shopify__customer", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__customer')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation"], "alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3"}, "created_at": 1753299145.8177435, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_refund_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n group by order_line_refund_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_line_refund", "attached_node": "model.shopify_source.stg_shopify__order_line_refund", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_line_refund')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec"}, "created_at": 1753299145.822951, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n group by order_line_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_line", "attached_node": "model.shopify_source.stg_shopify__order_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e"}, "created_at": 1753299145.8284857, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order", "attached_node": "model.shopify_source.stg_shopify__order", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d"}, "created_at": 1753299145.8335452, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product", "attached_node": "model.shopify_source.stg_shopify__product", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation"], "alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e"}, "created_at": 1753299145.9005818, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n variant_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n group by variant_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_variant", "attached_node": "model.shopify_source.stg_shopify__product_variant", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["variant_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_variant')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation"], "alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92"}, "created_at": 1753299145.905885, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n group by transaction_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__transaction", "attached_node": "model.shopify_source.stg_shopify__transaction", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__transaction')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation"], "alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659"}, "created_at": 1753299145.9111683, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__refund"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__refund", "attached_node": "model.shopify_source.stg_shopify__refund", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__refund')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207"}, "created_at": 1753299145.9163773, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_adjustment_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"\n group by order_adjustment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_adjustment", "attached_node": "model.shopify_source.stg_shopify__order_adjustment", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_adjustment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_adjustment')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db", "fqn": ["shopify_source", "not_null_stg_shopify__abandoned_checkout_checkout_id"], "alias": "not_null_stg_shopify__abandoned_checkout_checkout_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.92139, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation"], "alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f"}, "created_at": 1753299145.9239905, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n group by checkout_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_collection_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "fqn": ["shopify_source", "not_null_stg_shopify__collection_product_collection_id"], "alias": "not_null_stg_shopify__collection_product_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.929007, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__collection_product_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_product_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1", "fqn": ["shopify_source", "not_null_stg_shopify__collection_product_product_id"], "alias": "not_null_stg_shopify__collection_product_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.9315848, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__collection_product_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e"}, "created_at": 1753299145.9340281, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n collection_id, product_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n group by collection_id, product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["collection_id", "product_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_collection_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2", "fqn": ["shopify_source", "not_null_stg_shopify__collection_collection_id"], "alias": "not_null_stg_shopify__collection_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.9392865, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__collection_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection", "attached_node": "model.shopify_source.stg_shopify__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation"], "alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad"}, "created_at": 1753299145.941727, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n collection_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n group by collection_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__collection", "attached_node": "model.shopify_source.stg_shopify__collection", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["collection_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__collection')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_index.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd", "fqn": ["shopify_source", "not_null_stg_shopify__customer_tag_index"], "alias": "not_null_stg_shopify__customer_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.9469893, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__customer_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_customer_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_customer_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "fqn": ["shopify_source", "not_null_stg_shopify__customer_tag_customer_id"], "alias": "not_null_stg_shopify__customer_tag_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.9494305, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__customer_tag_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6"}, "created_at": 1753299145.951815, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n group by customer_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__fulfillment_fulfillment_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__fulfillment_fulfillment_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e", "fqn": ["shopify_source", "not_null_stg_shopify__fulfillment_fulfillment_id"], "alias": "not_null_stg_shopify__fulfillment_fulfillment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.9570081, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__fulfillment_fulfillment_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fulfillment_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\nwhere fulfillment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fulfillment_id", "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fulfillment_id", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70", "fqn": ["shopify_source", "accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure"], "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd"}, "created_at": 1753299145.9594202, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'pending','open','success','cancelled','error','failure'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["pending", "open", "success", "cancelled", "error", "failure"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation"], "alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01"}, "created_at": 1753299145.9707286, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n fulfillment_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by fulfillment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["fulfillment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__inventory_item_inventory_item_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__inventory_item_inventory_item_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe", "fqn": ["shopify_source", "not_null_stg_shopify__inventory_item_inventory_item_id"], "alias": "not_null_stg_shopify__inventory_item_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.9759717, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__inventory_item_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.stg_shopify__inventory_item", "attached_node": "model.shopify_source.stg_shopify__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('stg_shopify__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f"}, "created_at": 1753299145.9783397, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\n group by inventory_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_item", "attached_node": "model.shopify_source.stg_shopify__inventory_item", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_item')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014"}, "created_at": 1753299145.9835966, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_level_id, inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"\n group by inventory_level_id, inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_level", "attached_node": "model.shopify_source.stg_shopify__inventory_level", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_level_id", "inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_level')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation"], "alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6"}, "created_at": 1753299145.9893496, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_quantity_id, inventory_item_id, inventory_level_id, inventory_state_name, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"\n group by inventory_quantity_id, inventory_item_id, inventory_level_id, inventory_state_name, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify__inventory_quantity", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_quantity_id", "inventory_item_id", "inventory_level_id", "inventory_state_name", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_quantity')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__location_location_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__location_location_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf", "fqn": ["shopify_source", "not_null_stg_shopify__location_location_id"], "alias": "not_null_stg_shopify__location_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299145.9946086, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__location"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__location_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__location\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_shopify__location", "attached_node": "model.shopify_source.stg_shopify__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_shopify__location')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646"}, "created_at": 1753299145.9970639, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__location"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__location\"\n group by location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__location", "attached_node": "model.shopify_source.stg_shopify__location", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__location')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_media_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066", "fqn": ["shopify_source", "not_null_stg_shopify__media_media_id"], "alias": "not_null_stg_shopify__media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0022182, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media", "attached_node": "model.shopify_source.stg_shopify__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e"}, "created_at": 1753299146.0048358, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__media\"\n group by media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__media", "attached_node": "model.shopify_source.stg_shopify__media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_image_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_image_media_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b", "fqn": ["shopify_source", "not_null_stg_shopify__media_image_media_id"], "alias": "not_null_stg_shopify__media_image_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0098917, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__media_image_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media_image\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media_image", "attached_node": "model.shopify_source.stg_shopify__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__media_image_image_id.a62b445b8b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_image_image_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_image_image_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_image_image_id.a62b445b8b", "fqn": ["shopify_source", "not_null_stg_shopify__media_image_image_id"], "alias": "not_null_stg_shopify__media_image_image_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0124276, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__media_image_image_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect image_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media_image\"\nwhere image_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "image_id", "file_key_name": "models.stg_shopify__media_image", "attached_node": "model.shopify_source.stg_shopify__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "image_id", "model": "{{ get_where_subquery(ref('stg_shopify__media_image')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation"], "alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75"}, "created_at": 1753299146.014836, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n media_id, image_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__media_image\"\n group by media_id, image_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__media_image", "attached_node": "model.shopify_source.stg_shopify__media_image", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["media_id", "image_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__media_image')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__metafield_metafield_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__metafield_metafield_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6", "fqn": ["shopify_source", "not_null_stg_shopify__metafield_metafield_id"], "alias": "not_null_stg_shopify__metafield_metafield_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0200334, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__metafield_metafield_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metafield_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\nwhere metafield_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metafield_id", "file_key_name": "models.stg_shopify__metafield", "attached_node": "model.shopify_source.stg_shopify__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "metafield_id", "model": "{{ get_where_subquery(ref('stg_shopify__metafield')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation"], "alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea"}, "created_at": 1753299146.0224137, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n metafield_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n group by metafield_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__metafield", "attached_node": "model.shopify_source.stg_shopify__metafield", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["metafield_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__metafield')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_name", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_name.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "fqn": ["shopify_source", "not_null_stg_shopify__order_note_attribute_name"], "alias": "not_null_stg_shopify__order_note_attribute_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0276244, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect name\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_order_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375", "fqn": ["shopify_source", "not_null_stg_shopify__order_note_attribute_order_id"], "alias": "not_null_stg_shopify__order_note_attribute_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0300384, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation"], "alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d"}, "created_at": 1753299146.0324342, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, name, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\n group by order_id, name, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "name", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613", "fqn": ["shopify_source", "not_null_stg_shopify__order_shipping_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1"}, "created_at": 1753299146.0376263, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation"], "alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36"}, "created_at": 1753299146.0400057, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_shipping_line_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by order_shipping_line_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_shipping_line_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_shipping_tax_line_index.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "fqn": ["shopify_source", "not_null_stg_shopify__order_shipping_tax_line_index"], "alias": "not_null_stg_shopify__order_shipping_tax_line_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0451763, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__order_shipping_tax_line_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295", "fqn": ["shopify_source", "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858"}, "created_at": 1753299146.0475335, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f"}, "created_at": 1753299146.0498874, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_shipping_line_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by order_shipping_line_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_shipping_line_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_index.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "fqn": ["shopify_source", "not_null_stg_shopify__order_tag_index"], "alias": "not_null_stg_shopify__order_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0550835, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__order_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_order_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6", "fqn": ["shopify_source", "not_null_stg_shopify__order_tag_order_id"], "alias": "not_null_stg_shopify__order_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0574195, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__order_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a"}, "created_at": 1753299146.059777, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\n group by 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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_key.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "fqn": ["shopify_source", "not_null_stg_shopify__order_url_tag_key"], "alias": "not_null_stg_shopify__order_url_tag_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0649798, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__order_url_tag_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "key", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "key", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_order_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1", "fqn": ["shopify_source", "not_null_stg_shopify__order_url_tag_order_id"], "alias": "not_null_stg_shopify__order_url_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0673223, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__order_url_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation"], "alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f"}, "created_at": 1753299146.0696633, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, key, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\n group by order_id, key, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "key", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_product_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab", "fqn": ["shopify_source", "not_null_stg_shopify__product_media_product_id"], "alias": "not_null_stg_shopify__product_media_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0748622, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__product_media_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_media_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "fqn": ["shopify_source", "not_null_stg_shopify__product_media_media_id"], "alias": "not_null_stg_shopify__product_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0771823, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__product_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110"}, "created_at": 1753299146.0796418, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n group by product_id, media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_product_variant_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_product_variant_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9", "fqn": ["shopify_source", "not_null_stg_shopify__product_variant_media_product_variant_id"], "alias": "not_null_stg_shopify__product_variant_media_product_variant_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0846548, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__product_variant_media_product_variant_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_variant_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere product_variant_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_variant_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_variant_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_media_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "fqn": ["shopify_source", "not_null_stg_shopify__product_variant_media_media_id"], "alias": "not_null_stg_shopify__product_variant_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0875497, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__product_variant_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c"}, "created_at": 1753299146.0899146, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_variant_id, media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n group by product_variant_id, media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_variant_id", "media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_index.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "fqn": ["shopify_source", "not_null_stg_shopify__product_tag_index"], "alias": "not_null_stg_shopify__product_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.0951025, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__product_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_product_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3", "fqn": ["shopify_source", "not_null_stg_shopify__product_tag_product_id"], "alias": "not_null_stg_shopify__product_tag_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.097424, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__product_tag_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed"}, "created_at": 1753299146.099767, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n group by product_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__shop_shop_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__shop_shop_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe", "fqn": ["shopify_source", "not_null_stg_shopify__shop_shop_id"], "alias": "not_null_stg_shopify__shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.1049175, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.stg_shopify__shop", "attached_node": "model.shopify_source.stg_shopify__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('stg_shopify__shop')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation"], "alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e"}, "created_at": 1753299146.107287, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n shop_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n group by shop_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__shop", "attached_node": "model.shopify_source.stg_shopify__shop", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["shop_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__shop')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__tender_transaction_transaction_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__tender_transaction_transaction_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1", "fqn": ["shopify_source", "not_null_stg_shopify__tender_transaction_transaction_id"], "alias": "not_null_stg_shopify__tender_transaction_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.112424, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__tender_transaction_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_shopify__tender_transaction", "attached_node": "model.shopify_source.stg_shopify__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_shopify__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473"}, "created_at": 1753299146.1147952, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\n group by transaction_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__tender_transaction", "attached_node": "model.shopify_source.stg_shopify__tender_transaction", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__tender_transaction')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7", "fqn": ["shopify_source", "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id"], "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c"}, "created_at": 1753299146.1199775, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation"], "alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1"}, "created_at": 1753299146.1223686, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, code, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n group by checkout_id, code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "code", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_discount_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_code", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_code.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "fqn": ["shopify_source", "not_null_stg_shopify__order_discount_code_code"], "alias": "not_null_stg_shopify__order_discount_code_code", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.1276891, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__order_discount_code_code.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect code\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "code", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "code", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_order_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d", "fqn": ["shopify_source", "not_null_stg_shopify__order_discount_code_order_id"], "alias": "not_null_stg_shopify__order_discount_code_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.130101, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__order_discount_code_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0"}, "created_at": 1753299146.1324701, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n group by 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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2"}, "created_at": 1753299146.1377575, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n group by checkout_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout_shipping_line", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_shipping_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27", "fqn": ["shopify_source", "accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed"], "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc"}, "created_at": 1753299146.1430185, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'attempted_delivery','delayed','delivered','failure','in_transit','out_for_delivery','ready_for_pickup','picked_up','label_printed','label_purchased','confirmed'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify__fulfillment_event", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["attempted_delivery", "delayed", "delivered", "failure", "in_transit", "out_for_delivery", "ready_for_pickup", "picked_up", "label_printed", "label_purchased", "confirmed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation"], "alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd"}, "created_at": 1753299146.1519308, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n fulfillment_event_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n group by fulfillment_event_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify__fulfillment_event", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["fulfillment_event_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment_event')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136"}, "created_at": 1753299146.1572485, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n group by order_line_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__tax_line", "attached_node": "model.shopify_source.stg_shopify__tax_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__tax_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "fqn": ["shopify_source", "not_null_stg_shopify__discount_allocation_discount_application_index"], "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca"}, "created_at": 1753299146.162536, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_application_index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere discount_application_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_application_index", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_application_index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_order_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_allocation_order_line_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330", "fqn": ["shopify_source", "not_null_stg_shopify__discount_allocation_order_line_id"], "alias": "not_null_stg_shopify__discount_allocation_order_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.164929, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__discount_allocation_order_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere order_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_line_id", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation"], "alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98"}, "created_at": 1753299146.1673408, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, discount_application_index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\n group by order_line_id, discount_application_index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "discount_application_index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_index.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "fqn": ["shopify_source", "not_null_stg_shopify__discount_application_index"], "alias": "not_null_stg_shopify__discount_application_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.17255, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__discount_application_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_order_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3", "fqn": ["shopify_source", "not_null_stg_shopify__discount_application_order_id"], "alias": "not_null_stg_shopify__discount_application_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.1749294, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__discount_application_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed"}, "created_at": 1753299146.177348, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n index, order_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n group by index, order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["index", "order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_app_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_app_discount_code_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186", "fqn": ["shopify_source", "not_null_stg_shopify__discount_code_app_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_app_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.1831675, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__discount_code_app_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_app", "attached_node": "model.shopify_source.stg_shopify__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd"}, "created_at": 1753299146.1855164, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_app", "attached_node": "model.shopify_source.stg_shopify__discount_code_app", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_app')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_basic_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e", "fqn": ["shopify_source", "not_null_stg_shopify__discount_code_basic_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_basic_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.190783, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125"}, "created_at": 1753299146.1931732, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify__discount_code_basic", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_basic')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a", "fqn": ["shopify_source", "not_null_stg_shopify__discount_code_bxgy_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.198435, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976"}, "created_at": 1753299146.2008193, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify__discount_code_bxgy", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_bxgy')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_free_shipping_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade", "fqn": ["shopify_source", "not_null_stg_shopify__discount_code_free_shipping_discount_code_id"], "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354"}, "created_at": 1753299146.2061222, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce"}, "created_at": 1753299146.2084832, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify__discount_code_free_shipping", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_free_shipping')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb", "fqn": ["shopify_source", "not_null_stg_shopify__discount_redeem_code_discount_code_id"], "alias": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1753299146.2137215, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4.sql", "original_file_path": "models/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c", "fqn": ["shopify_source", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4"}, "created_at": 1753299146.2161565, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/stg_shopify.yml/dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify__discount_redeem_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_redeem_code')) }}"}, "namespace": "dbt_utils"}}}, "sources": {"source.shopify_source.shopify.order": {"database": "postgres", "schema": "public", "name": "order", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order", "fqn": ["shopify_source", "shopify", "order"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_data", "quoting": {"database": null, "schema": null, "identifier": true, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_at": {"name": "cancelled_at", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "confirmed": {"name": "confirmed", "description": "Whether inventory has been reserved for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_identifier": {"name": "source_identifier", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "created_at": 1753299146.4306614, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer": {"database": "postgres", "schema": "public", "name": "customer", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer", "fqn": ["shopify_source", "shopify", "customer"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "accepts_marketing": {"name": "accepts_marketing", "description": "Whether the customer has consented to receive marketing material via email. Deprecated and will be coalesced with `email_marketing_consent_state`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "state": {"name": "state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_exempt": {"name": "tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "verified_email": {"name": "verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_state": {"name": "email_marketing_consent_state", "description": "The current email marketing state for the customer. New version of `accepts_marketing` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_opt_in_level": {"name": "email_marketing_consent_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. New version of `marketing_opt_in_level` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_consent_updated_at": {"name": "email_marketing_consent_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. New version of `accepts_marketing_updated_at` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "accepts_marketing_updated_at": {"name": "accepts_marketing_updated_at", "description": "Deprecated. The package will coalesce with `email_marketing_consent_consent_updated_at`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "Deprecated. The package will coalesce with `email_marketing_consent_opt_in_level`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "created_at": 1753299146.4327607, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line": {"database": "postgres", "schema": "public", "name": "order_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line", "fqn": ["shopify_source", "shopify", "order_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item for an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gift_card": {"name": "gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "created_at": 1753299146.433493, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line_refund": {"database": "postgres", "schema": "public", "name": "order_line_refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line_refund", "fqn": ["shopify_source", "shopify", "order_line_refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item refund in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "created_at": 1753299146.434786, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product": {"database": "postgres", "schema": "public", "name": "product", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product", "fqn": ["shopify_source", "shopify", "product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product in Shopify.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "created_at": 1753299146.435432, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant": {"database": "postgres", "schema": "public", "name": "product_variant", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant", "fqn": ["shopify_source", "shopify", "product_variant"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "old_inventory_quantity": {"name": "old_inventory_quantity", "description": "(DEPRECATED 2025-01-06) Use the InventoryLevel resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "(DEPRECATED 2025-01-06) Use the `requires_shipping` property on the InventoryItem resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "available_for_sale": {"name": "available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield": {"name": "metafield", "description": "A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_components": {"name": "requires_components", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "created_at": 1753299146.436151, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.transaction": {"database": "postgres", "schema": "public", "name": "transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.transaction", "fqn": ["shopify_source", "shopify", "transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a transaction in Shopify.", "columns": {"id": {"name": "id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization": {"name": "authorization", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "created_at": 1753299146.4369297, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.refund": {"database": "postgres", "schema": "public", "name": "refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.refund", "fqn": ["shopify_source", "shopify", "refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a refund within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "created_at": 1753299146.4375563, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_adjustment": {"database": "postgres", "schema": "public", "name": "order_adjustment", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_adjustment", "fqn": ["shopify_source", "shopify", "order_adjustment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_adjustment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "created_at": 1753299146.4381907, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout": {"database": "postgres", "schema": "public", "name": "abandoned_checkout", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout", "fqn": ["shopify_source", "shopify", "abandoned_checkout"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "created_at": 1753299146.4390292, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection_product": {"database": "postgres", "schema": "public", "name": "collection_product", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection_product", "fqn": ["shopify_source", "shopify", "collection_product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "created_at": 1753299146.4396236, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection": {"database": "postgres", "schema": "public", "name": "collection", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection", "fqn": ["shopify_source", "shopify", "collection"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "disjunctive": {"name": "disjunctive", "description": "Boolean representing whether the `rules` or disjuctive (logical `OR`) or not. True = disjuctive, false = conjunctive (logical `AND`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparitive relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values inclide - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "created_at": 1753299146.4402583, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer_tag": {"database": "postgres", "schema": "public", "name": "customer_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer_tag", "fqn": ["shopify_source", "shopify", "customer_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "created_at": 1753299146.4409513, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment": {"database": "postgres", "schema": "public", "name": "fulfillment", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment", "fqn": ["shopify_source", "shopify", "fulfillment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt_authorization": {"name": "receipt_authorization", "description": "The authorization code from the receipt.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was succesfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "created_at": 1753299146.4416387, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_item": {"database": "postgres", "schema": "public", "name": "inventory_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_item", "fqn": ["shopify_source", "shopify", "inventory_item"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked": {"name": "tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_locked": {"name": "tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "created_at": 1753299146.4423232, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_level": {"database": "postgres", "schema": "public", "name": "inventory_level", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_level", "fqn": ["shopify_source", "shopify", "inventory_level"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_level_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available": {"name": "available", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "created_at": 1753299146.4429626, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_quantity": {"database": "postgres", "schema": "public", "name": "inventory_quantity", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_quantity", "fqn": ["shopify_source", "shopify", "inventory_quantity"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_quantity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The total quantity of the inventory item available at all locations.", "columns": {"id": {"name": "id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "created_at": 1753299146.4435685, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.location": {"database": "postgres", "schema": "public", "name": "location", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.location", "fqn": ["shopify_source", "shopify", "location"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_location_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "active": {"name": "active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy": {"name": "legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "created_at": 1753299146.44428, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.metafield": {"database": "postgres", "schema": "public", "name": "metafield", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.metafield", "fqn": ["shopify_source", "shopify", "metafield"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_metafield_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_id": {"name": "owner_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Use this instead of `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "created_at": 1753299146.4449558, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_note_attribute": {"database": "postgres", "schema": "public", "name": "order_note_attribute", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_note_attribute", "fqn": ["shopify_source", "shopify", "order_note_attribute"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_note_attribute_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "created_at": 1753299146.4455485, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_line": {"database": "postgres", "schema": "public", "name": "order_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_line", "fqn": ["shopify_source", "shopify", "order_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "created_at": 1753299146.4462712, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_tax_line": {"database": "postgres", "schema": "public", "name": "order_shipping_tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_tax_line", "fqn": ["shopify_source", "shopify", "order_shipping_tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this recod is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "created_at": 1753299146.4469016, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_tag": {"database": "postgres", "schema": "public", "name": "order_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_tag", "fqn": ["shopify_source", "shopify", "order_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "created_at": 1753299146.4474912, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_url_tag": {"database": "postgres", "schema": "public", "name": "order_url_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_url_tag", "fqn": ["shopify_source", "shopify", "order_url_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_url_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "created_at": 1753299146.4480872, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media": {"database": "postgres", "schema": "public", "name": "media", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media", "fqn": ["shopify_source", "shopify", "media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing media metadata, including status and timestamps.", "columns": {"id": {"name": "id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "created_at": 1753299146.4486787, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media_image": {"database": "postgres", "schema": "public", "name": "media_image", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media_image", "fqn": ["shopify_source", "shopify", "media_image"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_image_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "created_at": 1753299146.4493465, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_media": {"database": "postgres", "schema": "public", "name": "product_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_media", "fqn": ["shopify_source", "shopify", "product_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "created_at": 1753299146.4500263, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant_media": {"database": "postgres", "schema": "public", "name": "product_variant_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant_media", "fqn": ["shopify_source", "shopify", "product_variant_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping product variants to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "created_at": 1753299146.4506302, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_tag": {"database": "postgres", "schema": "public", "name": "product_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_tag", "fqn": ["shopify_source", "shopify", "product_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "created_at": 1753299146.4512544, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.shop": {"database": "postgres", "schema": "public", "name": "shop", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.shop", "fqn": ["shopify_source", "shopify", "shop"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_shop_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_api_supported": {"name": "checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "county_taxes": {"name": "county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_card_reader_giveaway": {"name": "eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_payments": {"name": "eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "force_ssl": {"name": "force_ssl", "description": "DEPRECATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_login_enabled": {"name": "google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "multi_location_enabled": {"name": "multi_location_enabled", "description": "DEPRECATED and hard-coded to `true`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "password_enabled": {"name": "password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_launch_enabled": {"name": "pre_launch_enabled", "description": "Boolen representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_location_id": {"name": "primary_location_id", "description": "DEPRECATED. Formerly used for the ID of the shipping origin location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_extra_payments_agreement": {"name": "requires_extra_payments_agreement", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "setup_required": {"name": "setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_shipping": {"name": "tax_shipping", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "created_at": 1753299146.4520347, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tender_transaction": {"database": "postgres", "schema": "public", "name": "tender_transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tender_transaction", "fqn": ["shopify_source", "shopify", "tender_transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tender_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the tender transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "created_at": 1753299146.4526758, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code", "fqn": ["shopify_source", "shopify", "abandoned_checkout_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index (from 1) representing the application of the discount to the checkout. Use the latest (highest index)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "created_at": 1753299146.453298, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_discount_code": {"database": "postgres", "schema": "public", "name": "order_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_discount_code", "fqn": ["shopify_source", "shopify", "order_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "created_at": 1753299146.453921, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line", "fqn": ["shopify_source", "shopify", "abandoned_checkout_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_shop_price": {"name": "original_shop_price", "description": "The pre-tax shipping price without any discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "created_at": 1753299146.454562, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment_event": {"database": "postgres", "schema": "public", "name": "fulfillment_event", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment_event", "fqn": ["shopify_source", "shopify", "fulfillment_event"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_event_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "created_at": 1753299146.455217, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tax_line": {"database": "postgres", "schema": "public", "name": "tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tax_line", "fqn": ["shopify_source", "shopify", "tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "created_at": 1753299146.455861, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_allocation": {"database": "postgres", "schema": "public", "name": "discount_allocation", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_allocation", "fqn": ["shopify_source", "shopify", "discount_allocation"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_allocation_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing allocation amounts applied to order lines from discount applications. Discount allocations indicate how much of the discount was applied and how it was split across line items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The currency code associated with the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The currency code associated with the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of this allocation in the list of discount allocations applied to an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "created_at": 1753299146.4564686, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_application": {"database": "postgres", "schema": "public", "name": "discount_application", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_application", "fqn": ["shopify_source", "shopify", "discount_application"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_application_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount applications, which define how discounts were applied to an order. This includes metadata like allocation method, target type, and value type.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The allocation method used to apply the discount. Valid values include `each` (the discount is applied to each entitled item) and `across` (the discount is applied across all entitled items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A short description of the discount, usually derived from the associated rule or promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Specifies whether the discount applies to all items (`all`) or only entitled ones (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "Indicates whether the discount applies to `line_item` or `shipping_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the discount as displayed in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Possible values include `manual`, `automatic`, or `script`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The numerical value of the discount. This may be a flat amount or a percentage, depending on `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount is a `percentage` or a `fixed_amount`. When the target type is `shipping_line`, only `percentage` is allowed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "created_at": 1753299146.4571116, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_app": {"database": "postgres", "schema": "public", "name": "discount_code_app", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_app", "fqn": ["shopify_source", "shopify", "discount_code_app"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_app_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount codes created and managed through apps using Shopify Functions. These app-based discounts support advanced, dynamic behavior and custom targeting.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_count": {"name": "codes_count_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_precision": {"name": "codes_count_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "created_at": 1753299146.457773, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_basic": {"database": "postgres", "schema": "public", "name": "discount_code_basic", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_basic", "fqn": ["shopify_source", "shopify", "discount_code_basic"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_basic_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing basic discount codes and their metadata. This includes usage limits, timeframes, eligible customers, combination rules, and tracked usage.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "Number of billing cycles the discount can be applied for (used for subscriptions).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is an exact number or an estimate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "created_at": 1753299146.4584484, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_bxgy": {"database": "postgres", "schema": "public", "name": "discount_code_bxgy", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_bxgy", "fqn": ["shopify_source", "shopify", "discount_code_bxgy"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_bxgy_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing Buy X Get Y discount codes, including conditions for what customers must buy, what they receive, and metadata such as usage, status, and combination eligibility.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "uses_per_order_limit": {"name": "uses_per_order_limit", "description": "The maximum number of times the discount can be applied to a single order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "created_at": 1753299146.4590995, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_free_shipping": {"database": "postgres", "schema": "public", "name": "discount_code_free_shipping", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_free_shipping", "fqn": ["shopify_source", "shopify", "discount_code_free_shipping"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_free_shipping_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing free shipping discount codes and metadata, including subscription and one-time purchase applicability, eligible countries, usage limits, and combination rules.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "created_at": 1753299146.4597588, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_redeem_code": {"database": "postgres", "schema": "public", "name": "discount_redeem_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/src_shopify.yml", "original_file_path": "models/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_redeem_code", "fqn": ["shopify_source", "shopify", "discount_redeem_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_redeem_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each code is tied to a parent discount and may be created by an app or manually by a merchant.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This value is updated asynchronously and may not match real-time usage counts.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (usually an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount this redeem code is associated with (e.g., `discount_code_basic`, `discount_code_bxgy`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "created_at": 1753299146.4603791, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.772098, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7725108, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7727475, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7729766, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7731965, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\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 when 'm' then 'MATERIALIZED 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 where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- 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', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\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{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7750874, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7757828, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7767692, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7770283, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.781366, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7824376, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7830558, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.783646, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.784551, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7853782, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7857113, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7863765, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7871158, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7886531, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7890463, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7896447, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.790179, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7910163, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n {% if relation.type == 'materialized_view' -%}\n {% set relation_type = \"materialized view\" %}\n {%- else -%}\n {%- set relation_type = relation.type -%}\n {%- endif -%}\n comment on {{ relation_type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7917602, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7929265, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.793322, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7935553, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7939088, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7941916, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n update {{ target }}\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }}::text = {{ target }}.{{ columns.dbt_scd_id }}::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n {% if config.get(\"dbt_valid_to_current\") %}\n and ({{ target }}.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }} or {{ target }}.{{ columns.dbt_valid_to }} is null);\n {% else %}\n and {{ target }}.{{ columns.dbt_valid_to }} is null;\n {% endif %}\n\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7965236, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7973924, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_microbatch_sql": {"name": "postgres__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_microbatch_sql", "macro_sql": "{% macro postgres__get_incremental_microbatch_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"dbt-postgres 'microbatch' requires a `unique_key` config\") }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_merge_sql", "macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7980378, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7988272, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.7991211, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8001165, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8039262, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8043606, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8052745, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8055584, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.805916, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.807105, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8073905, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}{{ ';' if not loop.last else \"\" }}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8082025, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8087747, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8091192, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.810155, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }}\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\t{{ ';' if not loop.last else \"\" }}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.811307, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config.model) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.811895, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8121789, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8124533, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8128026, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.813809, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8143759, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8149772, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8155534, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8172266, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8176115, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8179235, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8182096, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.81849, "supported_languages": null}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8202677, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8221362, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8225932, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation.render() %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8235629, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8239555, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.82423, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8245084, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8247583, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8250792, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8253152, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8262563, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8266232, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8289788, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation.render())) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8340113, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n {% do create_indexes(intermediate_relation) %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8380628, "supported_languages": ["sql"]}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.842017, "supported_languages": ["sql"]}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8449662, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8457456, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.846238, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation.render() ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation.render() ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8487148, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8491743, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.850441, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8516474, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8521137, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8524702, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.85304, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8533964, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8539639, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8543212, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.854837, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8553147, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8556252, "supported_languages": null}, "macro.dbt.get_incremental_microbatch_sql": {"name": "get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_microbatch_sql", "macro_sql": "{% macro get_incremental_microbatch_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_microbatch_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_microbatch_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8560064, "supported_languages": null}, "macro.dbt.default__get_incremental_microbatch_sql": {"name": "default__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_microbatch_sql", "macro_sql": "{% macro default__get_incremental_microbatch_sql(arg_dict) %}\n\n {{ exceptions.raise_not_implemented('microbatch materialization strategy not implemented for adapter ' + adapter.type()) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8563268, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8568923, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8584208, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.859475, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8607256, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8611898, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.862573, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8645818, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set source_unique_key = (\"DBT_INTERNAL_SOURCE.\" ~ unique_key) | trim %}\n\t {% set target_unique_key = (\"DBT_INTERNAL_DEST.\" ~ unique_key) | trim %}\n\t {% set unique_key_match = equals(source_unique_key, target_unique_key) | trim %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.868041, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8685513, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is string %}\n {% set unique_key = [unique_key] %}\n {% endif %}\n\n {%- set unique_key_str = unique_key|join(', ') -%}\n\n delete from {{ target }} as DBT_INTERNAL_DEST\n where ({{ unique_key_str }}) in (\n select distinct {{ unique_key_str }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8699753, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.870476, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.871717, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% set relation_for_indexes = target_relation %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set relation_for_indexes = intermediate_relation %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% set relation_for_indexes = temp_relation %}\n {% set contract_config = config.get('contract') %}\n {% if not contract_config or not contract_config.enforced %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {% endif %}\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_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(relation_for_indexes) %}\n {% endif %}\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 {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.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": 1753299140.879897, "supported_languages": ["sql"]}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.881043, "supported_languages": null}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8832176, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8855143, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8878288, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.889442, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8899279, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.890169, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation.render() ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% if target_relation.database == defer_relation.database and\n target_relation.schema == defer_relation.schema and\n target_relation.identifier == defer_relation.identifier %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation.render()) }}\n {% else %}\n {% call statement('main') %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endcall %}\n {% endif %}\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8951893, "supported_languages": ["sql"]}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.895788, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation.render() }} clone {{ defer_relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8961275, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.8998983, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9002433, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.900691, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set primary_key = config.get('unique_key') %}\n {% set updated_at = config.get('updated_at') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\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 }}.{{ columns.dbt_valid_from }} < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9025743, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9029202, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9032514, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9058983, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set check_cols_config = config.get('check_cols') %}\n {% set primary_key = config.get('unique_key') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set updated_at = config.get('updated_at') or 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_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9087741, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.909568, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n merge into {{ target.render() }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }} = DBT_INTERNAL_DEST.{{ columns.dbt_scd_id }}\n\n when matched\n {% if config.get(\"dbt_valid_to_current\") %}\n\t{% set source_unique_key = (\"DBT_INTERNAL_DEST.\" ~ columns.dbt_valid_to) | trim %}\n\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\tand ({{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null)\n\n {% else %}\n and DBT_INTERNAL_DEST.{{ columns.dbt_valid_to }} is null\n {% endif %}\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9111474, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.91485, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation.render() }} add column {{ adapter.quote(column.name) }} {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9154825, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9158428, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9160411, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9163296, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9165633, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.916974, "supported_languages": null}, "macro.dbt.get_snapshot_table_column_names": {"name": "get_snapshot_table_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_snapshot_table_column_names", "macro_sql": "{% macro get_snapshot_table_column_names() %}\n {{ return({'dbt_valid_to': 'dbt_valid_to', 'dbt_valid_from': 'dbt_valid_from', 'dbt_scd_id': 'dbt_scd_id', 'dbt_updated_at': 'dbt_updated_at', 'dbt_is_deleted': 'dbt_is_deleted'}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.917446, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n {% if strategy.hard_deletes == 'new_record' %}\n {% set new_scd_id = snapshot_hash_arguments([columns.dbt_scd_id, snapshot_get_time()]) %}\n {% endif %}\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }}\n from {{ target_relation }}\n where\n {% if config.get('dbt_valid_to_current') %}\n\t\t{% set source_unique_key = columns.dbt_valid_to | trim %}\n\t\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\n\t\t{# The exact equals semantics between NULL values depends on the current behavior flag set. Also, update records if the source field is null #}\n ( {{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null )\n {% else %}\n {{ columns.dbt_valid_to }} is null\n {% endif %}\n\n ),\n\n insertions_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }},\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }}\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_to }}\n\n from snapshot_query\n ),\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n\n deletes_source_data as (\n\n select *, {{ unique_key_fields(strategy.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 {%- if strategy.hard_deletes == 'new_record' -%}\n ,'False' as {{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from insertions_source_data as source_data\n left outer join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"snapshotted_data\") }}\n or ({{ unique_key_is_not_null(strategy.unique_key, \"snapshotted_data\") }} and (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from updates_source_data as source_data\n join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n )\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n ,\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_to }},\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n and not (\n --avoid updating the record's valid_to if the latest entry is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n {%- endif %}\n )\n {%- endif %}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n {% set snapshotted_cols = get_list_of_column_names(get_columns_in_relation(target_relation)) %}\n {% set source_sql_cols = get_column_schema_from_query(source_sql) %}\n ,\n deletion_records as (\n\n select\n 'insert' as dbt_change_type,\n {#\n If a column has been added to the source it won't yet exist in the\n snapshotted table so we insert a null value as a placeholder for the column.\n #}\n {%- for col in source_sql_cols -%}\n {%- if col.name in snapshotted_cols -%}\n snapshotted_data.{{ adapter.quote(col.column) }},\n {%- else -%}\n NULL as {{ adapter.quote(col.column) }},\n {%- endif -%}\n {% endfor -%}\n {%- if strategy.unique_key | is_list -%}\n {%- for key in strategy.unique_key -%}\n snapshotted_data.{{ key }} as dbt_unique_key_{{ loop.index }},\n {% endfor -%}\n {%- else -%}\n snapshotted_data.dbt_unique_key as dbt_unique_key,\n {% endif -%}\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n snapshotted_data.{{ columns.dbt_valid_to }} as {{ columns.dbt_valid_to }},\n {{ new_scd_id }} as {{ columns.dbt_scd_id }},\n 'True' as {{ columns.dbt_is_deleted }}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n and not (\n --avoid inserting a new record if the latest one is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletes\n {%- endif %}\n {%- if strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletion_records\n {%- endif %}\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments", "macro.dbt.snapshot_get_time", "macro.dbt.unique_key_fields", "macro.dbt.equals", "macro.dbt.get_dbt_valid_to_current", "macro.dbt.unique_key_join_on", "macro.dbt.unique_key_is_null", "macro.dbt.unique_key_is_not_null", "macro.dbt.get_list_of_column_names", "macro.dbt.get_columns_in_relation", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9252975, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9257076, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n\n select *,\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , 'False' as {{ columns.dbt_is_deleted }}\n {% endif -%}\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.get_dbt_valid_to_current"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.926702, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9275324, "supported_languages": null}, "macro.dbt.get_updated_at_column_data_type": {"name": "get_updated_at_column_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_updated_at_column_data_type", "macro_sql": "{% macro get_updated_at_column_data_type(snapshot_sql) %}\n {% set snapshot_sql_column_schema = get_column_schema_from_query(snapshot_sql) %}\n {% set dbt_updated_at_data_type = null %}\n {% set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {% set ns.dbt_updated_at_data_type = null -%}\n {% for column in snapshot_sql_column_schema %}\n {% if ((column.column == 'dbt_updated_at') or (column.column == 'DBT_UPDATED_AT')) %}\n {% set ns.dbt_updated_at_data_type = column.dtype %}\n {% endif %}\n {% endfor %}\n {{ return(ns.dbt_updated_at_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9286542, "supported_languages": null}, "macro.dbt.check_time_data_types": {"name": "check_time_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.check_time_data_types", "macro_sql": "{% macro check_time_data_types(sql) %}\n {% set dbt_updated_at_data_type = get_updated_at_column_data_type(sql) %}\n {% set snapshot_get_time_data_type = get_snapshot_get_time_data_type() %}\n {% if snapshot_get_time_data_type is not none and dbt_updated_at_data_type is not none and snapshot_get_time_data_type != dbt_updated_at_data_type %}\n {% if exceptions.warn_snapshot_timestamp_data_types %}\n {{ exceptions.warn_snapshot_timestamp_data_types(snapshot_get_time_data_type, dbt_updated_at_data_type) }}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_updated_at_column_data_type", "macro.dbt.get_snapshot_get_time_data_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9294763, "supported_languages": null}, "macro.dbt.get_dbt_valid_to_current": {"name": "get_dbt_valid_to_current", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_dbt_valid_to_current", "macro_sql": "{% macro get_dbt_valid_to_current(strategy, columns) %}\n {% set dbt_valid_to_current = config.get('dbt_valid_to_current') or \"null\" %}\n coalesce(nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}), {{dbt_valid_to_current}})\n as {{ columns.dbt_valid_to }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9300485, "supported_languages": null}, "macro.dbt.unique_key_fields": {"name": "unique_key_fields", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_fields", "macro_sql": "{% macro unique_key_fields(unique_key) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n {{ key }} as dbt_unique_key_{{ loop.index }}\n {%- if not loop.last %} , {%- endif %}\n {% endfor %}\n {% else %}\n {{ unique_key }} as dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9308233, "supported_languages": null}, "macro.dbt.unique_key_join_on": {"name": "unique_key_join_on", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_join_on", "macro_sql": "{% macro unique_key_join_on(unique_key, identifier, from_identifier) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n\t {% set source_unique_key = (identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {% set target_unique_key = (from_identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {{ equals(source_unique_key, target_unique_key) }}\n {%- if not loop.last %} and {%- endif %}\n {% endfor %}\n {% else %}\n {{ identifier }}.dbt_unique_key = {{ from_identifier }}.dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.931931, "supported_languages": null}, "macro.dbt.unique_key_is_null": {"name": "unique_key_is_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_null", "macro_sql": "{% macro unique_key_is_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is null\n {% else %}\n {{ identifier }}.dbt_unique_key is null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9323518, "supported_languages": null}, "macro.dbt.unique_key_is_not_null": {"name": "unique_key_is_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_not_null", "macro_sql": "{% macro unique_key_is_not_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is not null\n {% else %}\n {{ identifier }}.dbt_unique_key is not null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9327707, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n\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 {# The model['config'] parameter below is no longer used, but passing anyway for compatibility #}\n {# It was a dictionary of config, instead of the config object from the context #}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", model['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 build_or_select_sql = build_sql %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\n\n {{ adapter.assert_valid_snapshot_target_given_strategy(target_relation, columns, strategy) }}\n\n {% set build_or_select_sql = snapshot_staging_table(strategy, sql, target_relation) %}\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 remove_columns = ['dbt_change_type', 'DBT_CHANGE_TYPE', 'dbt_unique_key', 'DBT_UNIQUE_KEY'] %}\n {% if unique_key | is_list %}\n {% for key in strategy.unique_key %}\n {{ remove_columns.append('dbt_unique_key_' + loop.index|string) }}\n {{ remove_columns.append('DBT_UNIQUE_KEY_' + loop.index|string) }}\n {% endfor %}\n {% endif %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'in', remove_columns)\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', 'in', remove_columns)\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\n {{ check_time_data_types(build_or_select_sql) }}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_staging_table", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.check_time_data_types", "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": 1753299140.940429, "supported_languages": ["sql"]}, "macro.dbt.materialization_unit_default": {"name": "materialization_unit_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/unit.sql", "original_file_path": "macros/materializations/tests/unit.sql", "unique_id": "macro.dbt.materialization_unit_default", "macro_sql": "{%- materialization unit, default -%}\n\n {% set relations = [] %}\n\n {% set expected_rows = config.get('expected_rows') %}\n {% set expected_sql = config.get('expected_sql') %}\n {% set tested_expected_column_names = expected_rows[0].keys() if (expected_rows | length ) > 0 else get_columns_in_query(sql) %} %}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {% do run_query(get_create_table_as_sql(True, temp_relation, get_empty_subquery_sql(sql))) %}\n {%- set columns_in_relation = adapter.get_columns_in_relation(temp_relation) -%}\n {%- set column_name_to_data_types = {} -%}\n {%- for column in columns_in_relation -%}\n {%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n {%- endfor -%}\n\n {% if not expected_sql %}\n {% set expected_sql = get_expected_sql(expected_rows, column_name_to_data_types) %}\n {% endif %}\n {% set unit_test_sql = get_unit_test_sql(sql, expected_sql, tested_expected_column_names) %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ unit_test_sql }}\n\n {%- endcall %}\n\n {% do adapter.drop_relation(temp_relation) %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt.make_temp_relation", "macro.dbt.run_query", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_empty_subquery_sql", "macro.dbt.get_expected_sql", "macro.dbt.get_unit_test_sql", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.943342, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n {% set limit = config.get('limit') %}\n\n {% set sql_with_limit %}\n {{ get_limit_subquery_sql(sql, limit) }}\n {% endset %}\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\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql_with_limit) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {# Since the test failures have already been saved to the database, reuse that result rather than querying again #}\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_with_limit %}\n\n {% endif %}\n\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 {# The limit has already been included above, and we do not want to duplicate it again. We also want to be safe for macro overrides treating `limit` as a required parameter. #}\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit=none)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9477, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9487276, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9493537, "supported_languages": null}, "macro.dbt.get_unit_test_sql": {"name": "get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_unit_test_sql", "macro_sql": "{% macro get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n {{ adapter.dispatch('get_unit_test_sql', 'dbt')(main_sql, expected_fixture_sql, expected_column_names) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_unit_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9497664, "supported_languages": null}, "macro.dbt.default__get_unit_test_sql": {"name": "default__get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_unit_test_sql", "macro_sql": "{% macro default__get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n-- Build actual result given inputs\nwith dbt_internal_unit_test_actual as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%},{% endif %}{%- endfor -%}, {{ dbt.string_literal(\"actual\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ main_sql }}\n ) _dbt_internal_unit_test_actual\n),\n-- Build expected result\ndbt_internal_unit_test_expected as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%}, {% endif %}{%- endfor -%}, {{ dbt.string_literal(\"expected\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ expected_fixture_sql }}\n ) _dbt_internal_unit_test_expected\n)\n-- Union actual and expected results\nselect * from dbt_internal_unit_test_actual\nunion all\nselect * from dbt_internal_unit_test_expected\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9509177, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9515152, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9522574, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9527075, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9536922, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9542668, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9548414, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9556706, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9559877, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9562778, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9564922, "supported_languages": null}, "macro.dbt.get_snapshot_get_time_data_type": {"name": "get_snapshot_get_time_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.get_snapshot_get_time_data_type", "macro_sql": "{% macro get_snapshot_get_time_data_type() %}\n {% set snapshot_time = adapter.dispatch('snapshot_get_time', 'dbt')() %}\n {% set time_data_type_sql = 'select ' ~ snapshot_time ~ ' as dbt_snapshot_time' %}\n {% set snapshot_time_column_schema = get_column_schema_from_query(time_data_type_sql) %}\n {% set time_data_type = snapshot_time_column_schema[0].dtype %}\n {{ return(time_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt_postgres.postgres__snapshot_get_time", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.957409, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.957751, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9579148, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9582329, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9585495, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.959151, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9595056, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.959832, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9601963, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9616907, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9622078, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9625933, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.963102, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.963454, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9637775, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.964124, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9645844, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9649844, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9655516, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9660516, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.966363, "supported_languages": null}, "macro.dbt.get_catalog_for_single_relation": {"name": "get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_for_single_relation", "macro_sql": "{% macro get_catalog_for_single_relation(relation) %}\n {{ return(adapter.dispatch('get_catalog_for_single_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_catalog_for_single_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9667137, "supported_languages": null}, "macro.dbt.default__get_catalog_for_single_relation": {"name": "default__get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_for_single_relation", "macro_sql": "{% macro default__get_catalog_for_single_relation(relation) %}\n {{ exceptions.raise_not_implemented(\n 'get_catalog_for_single_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9670415, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9673598, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9676518, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9680574, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.968385, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9691868, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9695148, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9699192, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9702423, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9707627, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9716506, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9721918, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9726202, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9746857, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9750159, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9756122, "supported_languages": null}, "macro.dbt.get_list_of_column_names": {"name": "get_list_of_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_list_of_column_names", "macro_sql": "\n\n{%- macro get_list_of_column_names(columns) -%}\n {% set col_names = [] %}\n {% for col in columns %}\n {% do col_names.append(col.name) %}\n {% endfor %}\n {{ return(col_names) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9763215, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9767487, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9771452, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9774861, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n {{ cast('null', col['data_type']) }} as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9797435, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9804106, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9807744, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9814217, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9818857, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation.render() }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation.render() }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation.render() }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation.render() }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.983155, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9836373, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation.render() }}\n\n {% for column in add_columns %}\n add column {{ column.quoted }} {{ 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.quoted }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9851756, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header is not none -%}\n {{ sql_header }}\n {%- endif %}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9859204, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "\n{%- macro get_limit_subquery_sql(sql, limit) -%}\n {{ adapter.dispatch('get_limit_sql', 'dbt')(sql, limit) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_limit_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9862876, "supported_languages": null}, "macro.dbt.default__get_limit_sql": {"name": "default__get_limit_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_sql", "macro_sql": "{% macro default__get_limit_sql(sql, limit) %}\n {{ sql }}\n {% if limit is not none %}\n limit {{ limit }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9866593, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.987939, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9882689, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {#-- This ensures microbatch batches get unique temp relations to avoid clobbering --#}\n {% if suffix == '__dbt_tmp' and model.batch %}\n {% set suffix = suffix ~ '_' ~ model.batch.id %}\n {% endif %}\n\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9890313, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9897478, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9902146, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9908378, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.99119, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation.render() }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.99155, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9920394, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.993104, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9935389, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9938352, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9947126, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9950032, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9953167, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9961033, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9964612, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9967484, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9970622, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9973097, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.998154, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.998953, "supported_languages": null}, "macro.dbt.collect_freshness_custom_sql": {"name": "collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness_custom_sql", "macro_sql": "{% macro collect_freshness_custom_sql(source, loaded_at_query) %}\n {{ return(adapter.dispatch('collect_freshness_custom_sql', 'dbt')(source, loaded_at_query))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness_custom_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299140.9994938, "supported_languages": null}, "macro.dbt.default__collect_freshness_custom_sql": {"name": "default__collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness_custom_sql", "macro_sql": "{% macro default__collect_freshness_custom_sql(source, loaded_at_query) %}\n {% call statement('collect_freshness_custom_sql', fetch_result=True, auto_begin=False) -%}\n with source_query as (\n {{ loaded_at_query }}\n )\n select\n (select * from source_query) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n {% endcall %}\n {{ return(load_result('collect_freshness_custom_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0001035, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0020375, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0022771, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0026007, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.002843, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0034955, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.003872, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0041134, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0045373, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation.render() }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0049531, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.005383, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation.render() }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0058222, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0062869, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.007584, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.007966, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0084422, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0088956, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation.render() ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.011219, "supported_languages": null}, "macro.dbt.get_fixture_sql": {"name": "get_fixture_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_fixture_sql", "macro_sql": "{% macro get_fixture_sql(rows, column_name_to_data_types) %}\n-- Fixture for {{ model.name }}\n{% set default_row = {} %}\n\n{%- if not column_name_to_data_types -%}\n{#-- Use defer_relation IFF it is available in the manifest and 'this' is missing from the database --#}\n{%- set this_or_defer_relation = defer_relation if (defer_relation and not load_relation(this)) else this -%}\n{%- set columns_in_relation = adapter.get_columns_in_relation(this_or_defer_relation) -%}\n\n{%- set column_name_to_data_types = {} -%}\n{%- for column in columns_in_relation -%}\n{#-- This needs to be a case-insensitive comparison --#}\n{%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n{%- endfor -%}\n{%- endif -%}\n\n{%- if not column_name_to_data_types -%}\n {{ exceptions.raise_compiler_error(\"Not able to get columns for unit test '\" ~ model.name ~ \"' from relation \" ~ this ~ \" because the relation doesn't exist\") }}\n{%- endif -%}\n\n{%- for column_name, column_type in column_name_to_data_types.items() -%}\n {%- do default_row.update({column_name: (safe_cast(\"null\", column_type) | trim )}) -%}\n{%- endfor -%}\n\n{{ validate_fixture_rows(rows, row_number) }}\n\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\n{%- set default_row_copy = default_row.copy() -%}\n{%- do default_row_copy.update(formatted_row) -%}\nselect\n{%- for column_name, column_value in default_row_copy.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n\n{%- if (rows | length) == 0 -%}\n select\n {%- for column_name, column_value in default_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%},{%- endif %}\n {%- endfor %}\n limit 0\n{%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.safe_cast", "macro.dbt.validate_fixture_rows", "macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0158212, "supported_languages": null}, "macro.dbt.get_expected_sql": {"name": "get_expected_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_expected_sql", "macro_sql": "{% macro get_expected_sql(rows, column_name_to_data_types) %}\n\n{%- if (rows | length) == 0 -%}\n select * from dbt_internal_unit_test_actual\n limit 0\n{%- else -%}\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\nselect\n{%- for column_name, column_value in formatted_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0168889, "supported_languages": null}, "macro.dbt.format_row": {"name": "format_row", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.format_row", "macro_sql": "\n\n{%- macro format_row(row, column_name_to_data_types) -%}\n {#-- generate case-insensitive formatted row --#}\n {% set formatted_row = {} %}\n {%- for column_name, column_value in row.items() -%}\n {% set column_name = column_name|lower %}\n\n {%- if column_name not in column_name_to_data_types %}\n {#-- if user-provided row contains column name that relation does not contain, raise an error --#}\n {% set fixture_name = \"expected output\" if model.resource_type == 'unit_test' else (\"'\" ~ model.name ~ \"'\") %}\n {{ exceptions.raise_compiler_error(\n \"Invalid column name: '\" ~ column_name ~ \"' in unit test fixture for \" ~ fixture_name ~ \".\"\n \"\\nAccepted columns for \" ~ fixture_name ~ \" are: \" ~ (column_name_to_data_types.keys()|list)\n ) }}\n {%- endif -%}\n\n {%- set column_type = column_name_to_data_types[column_name] %}\n\n {#-- sanitize column_value: wrap yaml strings in quotes, apply cast --#}\n {%- set column_value_clean = column_value -%}\n {%- if column_value is string -%}\n {%- set column_value_clean = dbt.string_literal(dbt.escape_single_quotes(column_value)) -%}\n {%- elif column_value is none -%}\n {%- set column_value_clean = 'null' -%}\n {%- endif -%}\n\n {%- set row_update = {column_name: safe_cast(column_value_clean, column_type) } -%}\n {%- do formatted_row.update(row_update) -%}\n {%- endfor -%}\n {{ return(formatted_row) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.string_literal", "macro.dbt.escape_single_quotes", "macro.dbt.safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0189934, "supported_languages": null}, "macro.dbt.validate_fixture_rows": {"name": "validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.validate_fixture_rows", "macro_sql": "{%- macro validate_fixture_rows(rows, row_number) -%}\n {{ return(adapter.dispatch('validate_fixture_rows', 'dbt')(rows, row_number)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__validate_fixture_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.019408, "supported_languages": null}, "macro.dbt.default__validate_fixture_rows": {"name": "default__validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.default__validate_fixture_rows", "macro_sql": "{%- macro default__validate_fixture_rows(rows, row_number) -%}\n {# This is an abstract method for adapter overrides as needed #}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0196013, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0209322, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0212317, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n\n {#\n We want to get the string of the returned relation by calling .render() in order to skip sample/empty\n mode rendering logic. However, people override the default ref macro, and often return a string instead\n of a relation (like the ref macro does by default). Thus, to make sure we dont blow things up, we have\n to ensure the resolved relation has a .render() method.\n #}\n {%- if resolved.render is defined and resolved.render is callable -%}\n {%- set resolved = resolved.render() -%}\n {%- endif -%}\n\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0230417, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0238795, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.025048, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.025947, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.026107, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0275, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0298645, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0312688, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0317104, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0341496, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0352378, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0358207, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.036506, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.037022, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0378542, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.038382, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0389495, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0396423, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0403745, "supported_languages": null}, "macro.dbt.equals": {"name": "equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.equals", "macro_sql": "{% macro equals(expr1, expr2) %}\n {{ return(adapter.dispatch('equals', 'dbt') (expr1, expr2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.040991, "supported_languages": null}, "macro.dbt.default__equals": {"name": "default__equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.default__equals", "macro_sql": "{% macro default__equals(expr1, expr2) -%}\n{%- if adapter.behavior.enable_truthy_nulls_equals_macro.no_warn %}\n case when (({{ expr1 }} = {{ expr2 }}) or ({{ expr1 }} is null and {{ expr2 }} is null))\n then 0\n else 1\n end = 0\n{%- else -%}\n ({{ expr1 }} = {{ expr2 }})\n{%- endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0415616, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0421078, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.04238, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0428197, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0429785, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0434365, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0436451, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0446746, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0451546, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0458465, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0461743, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.046606, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0470824, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.047292, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0477097, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0479057, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0488064, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0499465, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0503867, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.051097, "supported_languages": null}, "macro.dbt.cast": {"name": "cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.cast", "macro_sql": "{% macro cast(field, type) %}\n {{ return(adapter.dispatch('cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0516267, "supported_languages": null}, "macro.dbt.default__cast": {"name": "default__cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.default__cast", "macro_sql": "{% macro default__cast(field, type) %}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.051906, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0527089, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0535276, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0539138, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.055053, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0555859, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0558672, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0563378, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0565505, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0570524, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0573692, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.058611, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0589285, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0592494, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.059547, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.059883, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0601788, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0604913, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0608456, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0611567, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0614567, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0617862, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.062199, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0625153, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0628111, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0632772, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0635235, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0640483, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0643122, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0648258, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0651033, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0655613, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.06579, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0666192, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0674164, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0679793, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0682557, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.068863, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0691886, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0697746, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0701015, "supported_languages": null}, "macro.dbt.date": {"name": "date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.date", "macro_sql": "{% macro date(year, month, day) %}\n {{ return(adapter.dispatch('date', 'dbt') (year, month, day)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0706956, "supported_languages": null}, "macro.dbt.default__date": {"name": "default__date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.default__date", "macro_sql": "{% macro default__date(year, month, day) -%}\n {%- set dt = modules.datetime.date(year, month, day) -%}\n {%- set iso_8601_formatted_date = dt.strftime('%Y-%m-%d') -%}\n to_date('{{ iso_8601_formatted_date }}', 'YYYY-MM-DD')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0713785, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0719266, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0721917, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0727046, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0729904, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0735512, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0738964, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.074482, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0750003, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.075297, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0757685, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0760903, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0769176, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation.render() }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0776603, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0780268, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0784116, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0788007, "supported_languages": null}, "macro.dbt.drop_schema_named": {"name": "drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.drop_schema_named", "macro_sql": "{% macro drop_schema_named(schema_name) %}\n {{ return(adapter.dispatch('drop_schema_named', 'dbt') (schema_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_schema_named"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0792928, "supported_languages": null}, "macro.dbt.default__drop_schema_named": {"name": "default__drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.default__drop_schema_named", "macro_sql": "{% macro default__drop_schema_named(schema_name) %}\n {% set schema_relation = api.Relation.create(schema=schema_name) %}\n {{ adapter.drop_schema(schema_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.079839, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.080534, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0814166, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0820143, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.082519, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0833828, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0842135, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0846102, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation.render() }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.085205, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.085786, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0861936, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0867796, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0871804, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0878124, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0882885, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.089299, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation.type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0917158, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{- adapter.dispatch('drop_table', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0922177, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0924723, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0936162, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0939898, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.094805, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0961056, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0970066, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0973656, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0977097, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0982304, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.098517, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0990303, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0993357, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{- adapter.dispatch('drop_materialized_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.0998042, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1000583, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1005447, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1008456, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1013298, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1017456, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1026967, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.103078, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.103599, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.103901, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1044526, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1047153, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1052227, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1055105, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{- adapter.dispatch('drop_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1059763, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1062222, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.10691, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1072226, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1075666, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation.render() }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1083999, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.10891, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.109192, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.110121, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.110406, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1125946, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1129885, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation.render() ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.113438, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1148248, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1150663, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.116078, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1164012, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1166656, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.119089, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1198204, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1204557, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1212785, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1217606, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.122338, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.122908, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1236675, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1252306, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1257725, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1262624, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1268706, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1271443, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1274102, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.127673, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.129149, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1298583, "supported_languages": null}, "macro.dbt_utils.redshift__get_tables_by_pattern_sql": {"name": "redshift__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.redshift__get_tables_by_pattern_sql", "macro_sql": "{% macro redshift__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% set sql %}\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from \"{{ database }}\".\"information_schema\".\"tables\"\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n union all\n select distinct\n schemaname as {{ adapter.quote('table_schema') }},\n tablename as {{ adapter.quote('table_name') }},\n 'external' as {{ adapter.quote('table_type') }}\n from svv_external_tables\n where redshift_database_name = '{{ database }}'\n and schemaname ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n {% endset %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1311421, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1325068, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.133476, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1341383, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1351788, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1359024, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1364424, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1369734, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1372428, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1381269, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1393628, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1398196, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1404955, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1413012, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1420884, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1424506, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.143445, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1440654, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1450908, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, quote_identifiers)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1465235, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n {%- set current_col_name = adapter.quote(col.column) if quote_identifiers else col.column -%}\n select\n {%- for exclude_col in exclude %}\n {{ adapter.quote(exclude_col) if quote_identifiers else exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ adapter.quote(field_name) if quote_identifiers else field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(current_col_name) }}\n {% else %}\n {{ current_col_name }}\n {% endif %}\n as {{ cast_to }}) as {{ adapter.quote(value_name) if quote_identifiers else value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1501632, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.151092, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1526897, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1535192, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1540637, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.155134, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1566815, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1577494, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1581802, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }} as tt\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1585145, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1589105, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1592402, "supported_languages": null}, "macro.dbt_utils.databricks__deduplicate": {"name": "databricks__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.databricks__deduplicate", "macro_sql": "\n{%- macro databricks__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1595688, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.159925, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.160551, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1610155, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1616423, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.162904, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1634853, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1641452, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.165608, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1672368, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1691706, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1758764, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1767268, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1776147, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1780114, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1787658, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1801398, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1807628, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.181443, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1821375, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1833475, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1842349, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1858318, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1871765, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1899743, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1913004, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.194183, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.194785, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1953917, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.195969, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1968405, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1974597, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1986804, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.1991675, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.199493, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.200017, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2003865, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2008815, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2011995, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{% if not string %}\n{{ return('') }}\n{% endif %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2025695, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2040215, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2048683, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2057207, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2066345, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.207637, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2093604, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2104328, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2124767, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2132716, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2139988, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.21491, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n {% if group_by_columns|length() == 0 %}\n where {{ column_name }} is not null\n limit 1\n {% endif %}\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2165596, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2175984, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.219525, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns, exclude_columns, precision)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2216203, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n\n{%- if compare_columns and exclude_columns -%}\n {{ exceptions.raise_compiler_error(\"Both a compare and an ignore list were provided to the `equality` macro. Only one is allowed\") }}\n{%- endif -%}\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\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{# Ensure there are no extra columns in the compare_model vs model #}\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- do dbt_utils._is_ephemeral(compare_model, 'test_equality') -%}\n\n {%- set model_columns = adapter.get_columns_in_relation(model) -%}\n {%- set compare_model_columns = adapter.get_columns_in_relation(compare_model) -%}\n\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- set include_model_columns = [] %}\n {%- for column in model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n {%- for column in compare_model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_model_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns_set = set(include_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(include_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- else -%}\n {%- set compare_columns_set = set(model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(compare_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- endif -%}\n\n {% if compare_columns_set != compare_model_columns_set %}\n {{ exceptions.raise_compiler_error(compare_model ~\" has less columns than \" ~ model ~ \", please ensure they have the same columns or use the `compare_columns` or `exclude_columns` arguments to subset them.\") }}\n {% endif %}\n\n\n{% endif %}\n\n{%- if not precision -%}\n {%- if not compare_columns -%}\n {# \n You cannot get the columns in an ephemeral model (due to not existing in the information schema),\n so if the user does not provide an explicit list of columns we must error in the case it is ephemeral\n #}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model)-%}\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- for column in compare_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns = include_columns | map(attribute='quoted') %}\n {%- else -%} {# Compare columns provided #}\n {%- set compare_columns = compare_columns | map(attribute='quoted') %}\n {%- endif -%}\n {%- endif -%}\n\n {% set compare_cols_csv = compare_columns | join(', ') %}\n\n{% else %} {# Precision required #}\n {#-\n If rounding is required, we need to get the types, so it cannot be ephemeral even if they provide column names\n -#}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set columns = adapter.get_columns_in_relation(model) -%}\n\n {% set columns_list = [] %}\n {%- for col in columns -%}\n {%- if (\n (col.name|lower in compare_columns|map('lower') or not compare_columns) and\n (col.name|lower not in exclude_columns|map('lower') or not exclude_columns)\n ) -%}\n {# Databricks double type is not picked up by any number type checks in dbt #}\n {%- if col.is_float() or col.is_numeric() or col.data_type == 'double' -%}\n {# Cast is required due to postgres not having round for a double precision number #}\n {%- do columns_list.append('round(cast(' ~ col.quoted ~ ' as ' ~ dbt.type_numeric() ~ '),' ~ precision ~ ') as ' ~ col.quoted) -%}\n {%- else -%} {# Non-numeric type #}\n {%- do columns_list.append(col.quoted) -%}\n {%- endif -%}\n {% endif %}\n {%- endfor -%}\n\n {% set compare_cols_csv = columns_list | join(', ') %}\n\n{% endif %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_numeric", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2289848, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.230499, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2333655, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2342038, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as {{ dbt.type_numeric() }}) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2358208, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2366898, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2373497, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2381463, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2393646, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2401402, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2408876, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2415688, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2421553, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2431257, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2448294, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2455451, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2462482, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2470026, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.247891, "supported_languages": null}, "macro.shopify.shopify_lookback": {"name": "shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.shopify_lookback", "macro_sql": "{% macro shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n{{ adapter.dispatch('shopify_lookback', 'shopify') (from_date, datepart, interval, safety_date='2010-01-01') }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_lookback"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2486296, "supported_languages": null}, "macro.shopify.default__shopify_lookback": {"name": "default__shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.default__shopify_lookback", "macro_sql": "{% macro default__shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n {% set sql_statement %}\n select coalesce({{ from_date }}, {{ \"'\" ~ safety_date ~ \"'\" }})\n from {{ this }}\n {%- endset -%}\n\n {%- set result = dbt_utils.get_single_value(sql_statement) %}\n\n {{ dbt.dateadd(datepart=datepart, interval=-interval, from_date_or_timestamp=\"cast('\" ~ result ~ \"' as date)\") }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_single_value", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2494736, "supported_languages": null}, "macro.shopify.shopify_is_databricks_sql_warehouse": {"name": "shopify_is_databricks_sql_warehouse", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_is_databricks_sql_warehouse.sql", "original_file_path": "macros/shopify_is_databricks_sql_warehouse.sql", "unique_id": "macro.shopify.shopify_is_databricks_sql_warehouse", "macro_sql": "{% macro shopify_is_databricks_sql_warehouse() %}\n {% if target.type in ('databricks') %}\n {% set re = modules.re %}\n {% set path_match = target.http_path %}\n {% set regex_pattern = \"sql/.+/warehouses/\" %}\n {% set match_result = re.search(regex_pattern, path_match) %}\n {% if match_result %}\n {{ return(True) }}\n {% else %}\n {{ return(False) }}\n {% endif %}\n {% else %}\n {{ return(False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2508554, "supported_languages": null}, "macro.shopify.shopify_partition_by_cols": {"name": "shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.shopify_partition_by_cols", "macro_sql": "{% macro shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n\n{{ adapter.dispatch('shopify_partition_by_cols', 'shopify') (base_col, source_relation) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_partition_by_cols"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2516654, "supported_languages": null}, "macro.shopify.default__shopify_partition_by_cols": {"name": "default__shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.default__shopify_partition_by_cols", "macro_sql": "{% macro default__shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n {%- if var('shopify_union_schemas', false) or var('shopify_union_databases', false) -%}\n {{ base_col }}, {{ source_relation }}\n {%- else %}\n {{ base_col }}\n {%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2522833, "supported_languages": null}, "macro.shopify.get_metafields": {"name": "get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.get_metafields", "macro_sql": "{% macro get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n {{ return(adapter.dispatch('get_metafields', 'shopify')(source_object, reference_values, id_column, lookup_object, key_field, key_value, reference_field)) }} \n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__get_metafields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2536256, "supported_languages": null}, "macro.shopify.default__get_metafields": {"name": "default__get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.default__get_metafields", "macro_sql": "{% macro default__get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n\n{# Manually quote and join reference values #}\n{% set quoted_values = [] %}\n{% for value in reference_values %}\n {% do quoted_values.append(\"'\" ~ value | lower | trim ~ \"'\") %}\n{% endfor %}\n{% set reference_values_clause = quoted_values | join(\", \") %}\n\n{# Get the pivot fields dynamically based on the reference values #}\n{% set pivot_fields = dbt_utils.get_column_values(\n table=ref(lookup_object),\n column=key_field,\n where=\"lower(\" ~ reference_field ~ \") in (\" ~ reference_values_clause ~ \")\"\n) %}\n\n{% set source_columns = adapter.get_columns_in_relation(ref(source_object)) %}\n{% set source_column_count = source_columns | length %}\n\nwith source_table as (\n select *\n from {{ ref(source_object) }}\n)\n\n{% if pivot_fields is not none %},\nlookup_object as (\n select \n *,\n {{ dbt_utils.pivot(\n column=key_field, \n values=pivot_fields, \n agg='', \n then_value=key_value, \n else_value=\"null\",\n quote_identifiers=false\n ) \n }}\n from {{ ref(lookup_object) }}\n where is_most_recent_record\n),\n\nfinal as (\n select\n {% for column in source_columns %}\n source_table.{{ column.name }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% for fields in pivot_fields %}\n , max(lookup_object.{{ dbt_utils.slugify(fields) }}) as metafield_{{ dbt_utils.slugify(fields) }}\n {% endfor %}\n from source_table\n left join lookup_object \n on lookup_object.{{ reference_field }}_id = source_table.{{ id_column }}\n and lower(lookup_object.{{ reference_field }}) in ({{ reference_values_clause }})\n {{ dbt_utils.group_by(source_column_count) }}\n)\n\nselect *\nfrom final\n{% else %}\n\nselect *\nfrom source_table\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_column_values", "macro.dbt_utils.pivot", "macro.dbt_utils.slugify", "macro.dbt_utils.group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.256669, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2581208, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2602534, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2685888, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2711573, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2719274, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2726579, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2740183, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2743485, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2746704, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2750008, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2782457, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2794576, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2801814, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2806857, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2809181, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2811267, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2813313, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.28212, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2824483, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2827861, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.283112, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2834013, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2837205, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.284205, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2844129, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.284618, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2859213, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.28686, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.287141, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.287805, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2883577, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2886186, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2888932, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2891529, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.289407, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2901428, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2921576, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2932465, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2941873, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2945297, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2960908, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.297202, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2976887, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2981951, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2986705, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2991536, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.2996707, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3003235, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.300814, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3015094, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3025882, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.303475, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3057718, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3065407, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3068676, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3071902, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3075294, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3078532, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3081565, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.308646, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3094037, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.309726, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3100607, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3103774, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3106916, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.311044, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3130376, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3135207, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3137498, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3139591, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3192387, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.320029, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.320726, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3213327, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.321558, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.321807, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3220184, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3222241, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3230226, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3249154, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3260715, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.326636, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.326944, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.327328, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3279543, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3282323, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3285058, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.32878, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3290522, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3297904, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3305054, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.330979, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.332026, "supported_languages": null}, "macro.spark_utils.get_tables": {"name": "get_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_tables", "macro_sql": "{% macro get_tables(table_regex_pattern='.*') %}\n\n {% set tables = [] %}\n {% for database in spark__list_schemas('not_used') %}\n {% for table in spark__list_relations_without_caching(database[0]) %}\n {% set db_tablename = database[0] ~ \".\" ~ table[1] %}\n {% set is_match = modules.re.match(table_regex_pattern, db_tablename) %}\n {% if is_match %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('type', 'TYPE', 'Type'))|first %}\n {% if table_type[1]|lower != 'view' %}\n {{ tables.append(db_tablename) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n {{ return(tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3353007, "supported_languages": null}, "macro.spark_utils.get_delta_tables": {"name": "get_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_delta_tables", "macro_sql": "{% macro get_delta_tables(table_regex_pattern='.*') %}\n\n {% set delta_tables = [] %}\n {% for db_tablename in get_tables(table_regex_pattern) %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('provider', 'PROVIDER', 'Provider'))|first %}\n {% if table_type[1]|lower == 'delta' %}\n {{ delta_tables.append(db_tablename) }}\n {% endif %}\n {% endfor %}\n {{ return(delta_tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.336623, "supported_languages": null}, "macro.spark_utils.get_statistic_columns": {"name": "get_statistic_columns", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_statistic_columns", "macro_sql": "{% macro get_statistic_columns(table) %}\n\n {% call statement('input_columns', fetch_result=True) %}\n SHOW COLUMNS IN {{ table }}\n {% endcall %}\n {% set input_columns = load_result('input_columns').table %}\n\n {% set output_columns = [] %}\n {% for column in input_columns %}\n {% call statement('column_information', fetch_result=True) %}\n DESCRIBE TABLE {{ table }} `{{ column[0] }}`\n {% endcall %}\n {% if not load_result('column_information').table[1][1].startswith('struct') and not load_result('column_information').table[1][1].startswith('array') %}\n {{ output_columns.append('`' ~ column[0] ~ '`') }}\n {% endif %}\n {% endfor %}\n {{ return(output_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3382921, "supported_languages": null}, "macro.spark_utils.spark_optimize_delta_tables": {"name": "spark_optimize_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_optimize_delta_tables", "macro_sql": "{% macro spark_optimize_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Optimizing \" ~ table) }}\n {% do run_query(\"optimize \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.339665, "supported_languages": null}, "macro.spark_utils.spark_vacuum_delta_tables": {"name": "spark_vacuum_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "macro_sql": "{% macro spark_vacuum_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Vacuuming \" ~ table) }}\n {% do run_query(\"vacuum \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3410459, "supported_languages": null}, "macro.spark_utils.spark_analyze_tables": {"name": "spark_analyze_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_analyze_tables", "macro_sql": "{% macro spark_analyze_tables(table_regex_pattern='.*') %}\n\n {% for table in get_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set columns = get_statistic_columns(table) | join(',') %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Analyzing \" ~ table) }}\n {% if columns != '' %}\n {% do run_query(\"analyze table \" ~ table ~ \" compute statistics for columns \" ~ columns) %}\n {% endif %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.spark_utils.get_statistic_columns", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3427715, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_pattern": {"name": "spark__get_relations_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "macro_sql": "{% macro spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n show table extended in {{ schema_pattern }} like '{{ table_pattern }}'\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=None,\n schema=row[0],\n identifier=row[1],\n type=('view' if 'Type: VIEW' in row[3] else 'table')\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.345465, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_prefix": {"name": "spark__get_relations_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "macro_sql": "{% macro spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {% set table_pattern = table_pattern ~ '*' %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3464231, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_pattern": {"name": "spark__get_tables_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "macro_sql": "{% macro spark__get_tables_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3470435, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_prefix": {"name": "spark__get_tables_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "macro_sql": "{% macro spark__get_tables_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3475692, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp": {"name": "spark__current_timestamp", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3478584, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp_in_utc": {"name": "spark__current_timestamp_in_utc", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3480241, "supported_languages": null}, "macro.spark_utils.spark__split_part": {"name": "spark__split_part", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "unique_id": "macro.spark_utils.spark__split_part", "macro_sql": "{% macro spark__split_part(string_text, delimiter_text, part_number) %}\n\n {% set delimiter_expr %}\n \n -- escape if starts with a special character\n case when regexp_extract({{ delimiter_text }}, '([^A-Za-z0-9])(.*)', 1) != '_'\n then concat('\\\\', {{ delimiter_text }})\n else {{ delimiter_text }} end\n \n {% endset %}\n\n {% set split_part_expr %}\n \n split(\n {{ string_text }},\n {{ delimiter_expr }}\n )[({{ part_number - 1 }})]\n \n {% endset %}\n \n {{ return(split_part_expr) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3489783, "supported_languages": null}, "macro.spark_utils.spark__type_numeric": {"name": "spark__type_numeric", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "unique_id": "macro.spark_utils.spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3492146, "supported_languages": null}, "macro.spark_utils.spark__concat": {"name": "spark__concat", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "unique_id": "macro.spark_utils.spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.349552, "supported_languages": null}, "macro.spark_utils.spark__datediff": {"name": "spark__datediff", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "unique_id": "macro.spark_utils.spark__datediff", "macro_sql": "{% macro spark__datediff(first_date, second_date, datepart) %}\n\n {%- if datepart in ['day', 'week', 'month', 'quarter', 'year'] -%}\n \n {# make sure the dates are real, otherwise raise an error asap #}\n {% set first_date = spark_utils.assert_not_null('date', first_date) %}\n {% set second_date = spark_utils.assert_not_null('date', second_date) %}\n \n {%- endif -%}\n \n {%- if datepart == 'day' -%}\n \n datediff({{second_date}}, {{first_date}})\n \n {%- elif datepart == 'week' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(datediff({{second_date}}, {{first_date}})/7)\n else ceil(datediff({{second_date}}, {{first_date}})/7)\n end\n \n -- did we cross a week boundary (Sunday)?\n + case\n when {{first_date}} < {{second_date}} and dayofweek({{second_date}}) < dayofweek({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofweek({{second_date}}) > dayofweek({{first_date}}) then -1\n else 0 end\n\n {%- elif datepart == 'month' -%}\n\n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}})))\n else ceil(months_between(date({{second_date}}), date({{first_date}})))\n end\n \n -- did we cross a month boundary?\n + case\n when {{first_date}} < {{second_date}} and dayofmonth({{second_date}}) < dayofmonth({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofmonth({{second_date}}) > dayofmonth({{first_date}}) then -1\n else 0 end\n \n {%- elif datepart == 'quarter' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}}))/3)\n else ceil(months_between(date({{second_date}}), date({{first_date}}))/3)\n end\n \n -- did we cross a quarter boundary?\n + case\n when {{first_date}} < {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n < (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then 1\n when {{first_date}} > {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n > (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then -1\n else 0 end\n\n {%- elif datepart == 'year' -%}\n \n year({{second_date}}) - year({{first_date}})\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set divisor -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n case when {{first_date}} < {{second_date}}\n then ceil((\n {# make sure the timestamps are real, otherwise raise an error asap #}\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n else floor((\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n end\n \n {% if datepart == 'millisecond' %}\n + cast(date_format({{second_date}}, 'SSS') as int)\n - cast(date_format({{first_date}}, 'SSS') as int)\n {% endif %}\n \n {% if datepart == 'microsecond' %} \n {% set capture_str = '[0-9]{4}-[0-9]{2}-[0-9]{2}.[0-9]{2}:[0-9]{2}:[0-9]{2}.([0-9]{6})' %}\n -- Spark doesn't really support microseconds, so this is a massive hack!\n -- It will only work if the timestamp-string is of the format\n -- 'yyyy-MM-dd-HH mm.ss.SSSSSS'\n + cast(regexp_extract({{second_date}}, '{{capture_str}}', 1) as int)\n - cast(regexp_extract({{first_date}}, '{{capture_str}}', 1) as int) \n {% endif %}\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro datediff not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3577774, "supported_languages": null}, "macro.spark_utils.spark__dateadd": {"name": "spark__dateadd", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "unique_id": "macro.spark_utils.spark__dateadd", "macro_sql": "{% macro spark__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {%- set clock_component -%}\n {# make sure the dates + timestamps are real, otherwise raise an error asap #}\n to_unix_timestamp({{ spark_utils.assert_not_null('to_timestamp', from_date_or_timestamp) }})\n - to_unix_timestamp({{ spark_utils.assert_not_null('date', from_date_or_timestamp) }})\n {%- endset -%}\n\n {%- if datepart in ['day', 'week'] -%}\n \n {%- set multiplier = 7 if datepart == 'week' else 1 -%}\n\n to_timestamp(\n to_unix_timestamp(\n date_add(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ['month', 'quarter', 'year'] -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'month' -%} 1\n {%- elif datepart == 'quarter' -%} 3\n {%- elif datepart == 'year' -%} 12\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n to_unix_timestamp(\n add_months(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n {{ spark_utils.assert_not_null('to_unix_timestamp', from_date_or_timestamp) }}\n + cast({{interval}} * {{multiplier}} as int)\n )\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro dateadd not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3614666, "supported_languages": null}, "macro.spark_utils.assert_not_null": {"name": "assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3620813, "supported_languages": null}, "macro.spark_utils.default__assert_not_null": {"name": "default__assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.default__assert_not_null", "macro_sql": "{% macro default__assert_not_null(function, arg) %}\n\n coalesce({{function}}({{arg}}), nvl2({{function}}({{arg}}), assert_true({{function}}({{arg}}) is not null), null))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3624856, "supported_languages": null}, "macro.spark_utils.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "unique_id": "macro.spark_utils.spark__convert_timezone", "macro_sql": "{% macro spark__convert_timezone(in_tz, out_tz, in_timestamp) %}\n from_utc_timestamp(to_utc_timestamp({{in_timestamp}}, {{in_tz}}), {{out_tz}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3629253, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_shipping_line_columns": {"name": "get_abandoned_checkout_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "original_file_path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro_sql": "{% macro get_abandoned_checkout_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range_max\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_range_min\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.366193, "supported_languages": null}, "macro.shopify_source.get_tender_transaction_columns": {"name": "get_tender_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tender_transaction_columns.sql", "original_file_path": "macros/get_tender_transaction_columns.sql", "unique_id": "macro.shopify_source.get_tender_transaction_columns", "macro_sql": "{% macro get_tender_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"remote_reference\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3682787, "supported_languages": null}, "macro.shopify_source.get_fulfillment_event_columns": {"name": "get_fulfillment_event_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_event_columns.sql", "original_file_path": "macros/get_fulfillment_event_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_event_columns", "macro_sql": "{% macro get_fulfillment_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"estimated_delivery_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"happened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shop_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3717844, "supported_languages": null}, "macro.shopify_source.get_product_media_columns": {"name": "get_product_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_media_columns.sql", "original_file_path": "macros/get_product_media_columns.sql", "unique_id": "macro.shopify_source.get_product_media_columns", "macro_sql": "{% macro get_product_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3725367, "supported_languages": null}, "macro.shopify_source.get_order_columns": {"name": "get_order_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "unique_id": "macro.shopify_source.get_order_columns", "macro_sql": "{% macro get_order_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tip_received\", \"datatype\": dbt.type_float()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cancel_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancelled_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"financial_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"browser_ip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_shipping_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"app_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"client_details_user_agent\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_status_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"confirmed\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3860989, "supported_languages": null}, "macro.shopify_source.get_discount_code_free_shipping_columns": {"name": "get_discount_code_free_shipping_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_free_shipping_columns.sql", "original_file_path": "macros/get_discount_code_free_shipping_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_free_shipping_columns", "macro_sql": "{% macro get_discount_code_free_shipping_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3898475, "supported_languages": null}, "macro.shopify_source.json_to_string": {"name": "json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.json_to_string", "macro_sql": "{%- macro json_to_string(column, column_list) -%}\n {{ return(adapter.dispatch('json_to_string', 'shopify_source')(column, column_list)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__json_to_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3905592, "supported_languages": null}, "macro.shopify_source.default__json_to_string": {"name": "default__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.default__json_to_string", "macro_sql": "{%- macro default__json_to_string(column, column_list) -%}\n {{ column }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3908012, "supported_languages": null}, "macro.shopify_source.bigquery__json_to_string": {"name": "bigquery__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.bigquery__json_to_string", "macro_sql": "{%- macro bigquery__json_to_string(column, column_list) -%}\n {%- set columns = column_list -%}\n {%- set ns = namespace(column_type='string') -%}\n\n {%- for col in columns -%}\n {%- if col.name|lower == column|lower -%}\n {%- set ns.column_type = col.dtype|lower -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- if ns.column_type == 'json' -%}\n to_json_string({{ column }})\n {%- else -%}\n {{ column }}\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3917766, "supported_languages": null}, "macro.shopify_source.get_product_columns": {"name": "get_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_columns.sql", "original_file_path": "macros/get_product_columns.sql", "unique_id": "macro.shopify_source.get_product_columns", "macro_sql": "{% macro get_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3943996, "supported_languages": null}, "macro.shopify_source.get_collection_columns": {"name": "get_collection_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_columns.sql", "original_file_path": "macros/get_collection_columns.sql", "unique_id": "macro.shopify_source.get_collection_columns", "macro_sql": "{% macro get_collection_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"disjunctive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"rules\", \"datatype\": dbt.type_string()},\n {\"name\": \"sort_order\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3966923, "supported_languages": null}, "macro.shopify_source.get_customer_tag_columns": {"name": "get_customer_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_tag_columns.sql", "original_file_path": "macros/get_customer_tag_columns.sql", "unique_id": "macro.shopify_source.get_customer_tag_columns", "macro_sql": "{% macro get_customer_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.3978007, "supported_languages": null}, "macro.shopify_source.get_shop_columns": {"name": "get_shop_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_shop_columns.sql", "original_file_path": "macros/get_shop_columns.sql", "unique_id": "macro.shopify_source.get_shop_columns", "macro_sql": "{% macro get_shop_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_api_supported\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"cookie_consent_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"county_taxes\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_card_reader_giveaway\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"eligible_for_payments\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"enabled_presentment_currencies\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_login_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_gift_cards\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_storefront\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"iana_timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"money_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"myshopify_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"password_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"pre_launch_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"primary_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_extra_payments_agreement\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"setup_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"shop_owner\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4068096, "supported_languages": null}, "macro.shopify_source.get_order_url_tag_columns": {"name": "get_order_url_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_url_tag_columns.sql", "original_file_path": "macros/get_order_url_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_url_tag_columns", "macro_sql": "{% macro get_order_url_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4079442, "supported_languages": null}, "macro.shopify_source.get_order_shipping_line_columns": {"name": "get_order_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_line_columns.sql", "original_file_path": "macros/get_order_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_line_columns", "macro_sql": "{% macro get_order_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4106243, "supported_languages": null}, "macro.shopify_source.get_customer_columns": {"name": "get_customer_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "unique_id": "macro.shopify_source.get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_address_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"orders_count\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_spent\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"verified_email\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email_marketing_consent_consent_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_marketing_consent_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepts_marketing_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"marketing_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customer_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.414798, "supported_languages": null}, "macro.shopify_source.shopify_union_data": {"name": "shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.shopify_union_data", "macro_sql": "{%- macro shopify_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('shopify_union_data', 'shopify_source') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema,\n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__shopify_union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4170089, "supported_languages": null}, "macro.shopify_source.default__shopify_union_data": {"name": "default__shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.default__shopify_union_data", "macro_sql": "{%- macro default__shopify_union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4258537, "supported_languages": null}, "macro.shopify_source.get_transaction_columns": {"name": "get_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_transaction_columns.sql", "original_file_path": "macros/get_transaction_columns.sql", "unique_id": "macro.shopify_source.get_transaction_columns", "macro_sql": "{% macro get_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"payment_avs_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_bin\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_cvv_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"receipt\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_exchange_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_adjustment\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_original_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_final_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"error_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"authorization_expires_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{% if target.type in ('redshift','postgres') %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"quote\": True, \"alias\": \"authorization_code\"}) }}\n{% else %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"alias\": \"authorization_code\"}) }}\n{% endif %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.432488, "supported_languages": null}, "macro.shopify_source.get_location_columns": {"name": "get_location_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_location_columns.sql", "original_file_path": "macros/get_location_columns.sql", "unique_id": "macro.shopify_source.get_location_columns", "macro_sql": "{% macro get_location_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"legacy\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"localized_country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"localized_province_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4362257, "supported_languages": null}, "macro.shopify_source.get_discount_code_app_columns": {"name": "get_discount_code_app_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_app_columns.sql", "original_file_path": "macros/get_discount_code_app_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_app_columns", "macro_sql": "{% macro get_discount_code_app_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.439956, "supported_languages": null}, "macro.shopify_source.get_order_adjustment_columns": {"name": "get_order_adjustment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_adjustment_columns.sql", "original_file_path": "macros/get_order_adjustment_columns.sql", "unique_id": "macro.shopify_source.get_order_adjustment_columns", "macro_sql": "{% macro get_order_adjustment_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4420204, "supported_languages": null}, "macro.shopify_source.get_discount_allocation_columns": {"name": "get_discount_allocation_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_allocation_columns.sql", "original_file_path": "macros/get_discount_allocation_columns.sql", "unique_id": "macro.shopify_source.get_discount_allocation_columns", "macro_sql": "{% macro get_discount_allocation_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_application_index\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4439347, "supported_languages": null}, "macro.shopify_source.get_discount_redeem_code_columns": {"name": "get_discount_redeem_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_redeem_code_columns.sql", "original_file_path": "macros/get_discount_redeem_code_columns.sql", "unique_id": "macro.shopify_source.get_discount_redeem_code_columns", "macro_sql": "{% macro get_discount_redeem_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"created_by_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"discount_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4459124, "supported_languages": null}, "macro.shopify_source.get_order_tag_columns": {"name": "get_order_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_tag_columns.sql", "original_file_path": "macros/get_order_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_tag_columns", "macro_sql": "{% macro get_order_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4470172, "supported_languages": null}, "macro.shopify_source.get_order_shipping_tax_line_columns": {"name": "get_order_shipping_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_tax_line_columns.sql", "original_file_path": "macros/get_order_shipping_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_tax_line_columns", "macro_sql": "{% macro get_order_shipping_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_shipping_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4485712, "supported_languages": null}, "macro.shopify_source.get_refund_columns": {"name": "get_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_refund_columns.sql", "original_file_path": "macros/get_refund_columns.sql", "unique_id": "macro.shopify_source.get_refund_columns", "macro_sql": "{% macro get_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"restock\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_duties_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4504638, "supported_languages": null}, "macro.shopify_source.get_inventory_item_columns": {"name": "get_inventory_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_item_columns.sql", "original_file_path": "macros/get_inventory_item_columns.sql", "unique_id": "macro.shopify_source.get_inventory_item_columns", "macro_sql": "{% macro get_inventory_item_columns() %}\n\n{# Columns below line 26 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"province_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duplicate_sku_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"harmonized_system_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_history_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_weight_value\", \"datatype\": dbt.type_float()},\n {\"name\": \"measurement_weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked_editable_locked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()}\n ,\n {\"name\": \"cost\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4546046, "supported_languages": null}, "macro.shopify_source.get_tax_line_columns": {"name": "get_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tax_line_columns.sql", "original_file_path": "macros/get_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_tax_line_columns", "macro_sql": "{% macro get_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4562194, "supported_languages": null}, "macro.shopify_source.get_discount_code_basic_columns": {"name": "get_discount_code_basic_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_basic_columns.sql", "original_file_path": "macros/get_discount_code_basic_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_basic_columns", "macro_sql": "{% macro get_discount_code_basic_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.459924, "supported_languages": null}, "macro.shopify_source.get_product_variant_media_columns": {"name": "get_product_variant_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_media_columns.sql", "original_file_path": "macros/get_product_variant_media_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_media_columns", "macro_sql": "{% macro get_product_variant_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4608479, "supported_languages": null}, "macro.shopify_source.get_order_discount_code_columns": {"name": "get_order_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_discount_code_columns.sql", "original_file_path": "macros/get_order_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_order_discount_code_columns", "macro_sql": "{% macro get_order_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4623208, "supported_languages": null}, "macro.shopify_source.get_media_image_columns": {"name": "get_media_image_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_image_columns.sql", "original_file_path": "macros/get_media_image_columns.sql", "unique_id": "macro.shopify_source.get_media_image_columns", "macro_sql": "{% macro get_media_image_columns() %}\n\n{% set columns = [\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.463729, "supported_languages": null}, "macro.shopify_source.get_fulfillment_columns": {"name": "get_fulfillment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_columns.sql", "original_file_path": "macros/get_fulfillment_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_columns", "macro_sql": "{% macro get_fulfillment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_numbers\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.466422, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_columns": {"name": "get_abandoned_checkout_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_columns.sql", "original_file_path": "macros/get_abandoned_checkout_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_columns", "macro_sql": "{% macro get_abandoned_checkout_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"abandoned_checkout_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4771225, "supported_languages": null}, "macro.shopify_source.get_collection_product_columns": {"name": "get_collection_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_product_columns.sql", "original_file_path": "macros/get_collection_product_columns.sql", "unique_id": "macro.shopify_source.get_collection_product_columns", "macro_sql": "{% macro get_collection_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.478102, "supported_languages": null}, "macro.shopify_source.get_order_line_columns": {"name": "get_order_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_columns.sql", "original_file_path": "macros/get_order_line_columns.sql", "unique_id": "macro.shopify_source.get_order_line_columns", "macro_sql": "{% macro get_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillable_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"gift_card\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"grams\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"index\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"pre_tax_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"pre_tax_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"properties\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4832954, "supported_languages": null}, "macro.shopify_source.get_order_line_refund_columns": {"name": "get_order_line_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_refund_columns.sql", "original_file_path": "macros/get_order_line_refund_columns.sql", "unique_id": "macro.shopify_source.get_order_line_refund_columns", "macro_sql": "{% macro get_order_line_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"restock_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_refund_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4857004, "supported_languages": null}, "macro.shopify_source.get_product_variant_columns": {"name": "get_product_variant_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_columns.sql", "original_file_path": "macros/get_product_variant_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_columns", "macro_sql": "{% macro get_product_variant_columns() %}\n\n{# Columns below line 28 to be deprecated. #}\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"position\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"compare_at_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"barcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"old_inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"available_for_sale\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"requires_components\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sellable_online_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"fulfillment_service\", \"datatype\": dbt.type_string()},\n {\"name\": \"grams\", \"datatype\": dbt.type_float()},\n {\"name\": \"inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_3\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_variant_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_boolean", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.491245, "supported_languages": null}, "macro.shopify_source.get_product_tag_columns": {"name": "get_product_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_tag_columns.sql", "original_file_path": "macros/get_product_tag_columns.sql", "unique_id": "macro.shopify_source.get_product_tag_columns", "macro_sql": "{% macro get_product_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4923544, "supported_languages": null}, "macro.shopify_source.get_media_columns": {"name": "get_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_columns.sql", "original_file_path": "macros/get_media_columns.sql", "unique_id": "macro.shopify_source.get_media_columns", "macro_sql": "{% macro get_media_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}, \n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()}, \n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()} \n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4934125, "supported_languages": null}, "macro.shopify_source.get_discount_application_columns": {"name": "get_discount_application_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_application_columns.sql", "original_file_path": "macros/get_discount_application_columns.sql", "unique_id": "macro.shopify_source.get_discount_application_columns", "macro_sql": "{% macro get_discount_application_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocation_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"target_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value\", \"datatype\": dbt.type_float()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4958224, "supported_languages": null}, "macro.shopify_source.get_inventory_quantity_columns": {"name": "get_inventory_quantity_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_quantity_columns.sql", "original_file_path": "macros/get_inventory_quantity_columns.sql", "unique_id": "macro.shopify_source.get_inventory_quantity_columns", "macro_sql": "{% macro get_inventory_quantity_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_level_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4974003, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_discount_code_columns": {"name": "get_abandoned_checkout_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_discount_code_columns.sql", "original_file_path": "macros/get_abandoned_checkout_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro_sql": "{% macro get_abandoned_checkout_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.4992576, "supported_languages": null}, "macro.shopify_source.get_discount_code_bxgy_columns": {"name": "get_discount_code_bxgy_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_bxgy_columns.sql", "original_file_path": "macros/get_discount_code_bxgy_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_bxgy_columns", "macro_sql": "{% macro get_discount_code_bxgy_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.5028703, "supported_languages": null}, "macro.shopify_source.get_inventory_level_columns": {"name": "get_inventory_level_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_level_columns.sql", "original_file_path": "macros/get_inventory_level_columns.sql", "unique_id": "macro.shopify_source.get_inventory_level_columns", "macro_sql": "{% macro get_inventory_level_columns() %}\n\n{# Columns below line 13 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"can_deactivate\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deactivation_alert\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n ,\n {\"name\": \"available\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.5048, "supported_languages": null}, "macro.shopify_source.get_order_note_attribute_columns": {"name": "get_order_note_attribute_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_note_attribute_columns.sql", "original_file_path": "macros/get_order_note_attribute_columns.sql", "unique_id": "macro.shopify_source.get_order_note_attribute_columns", "macro_sql": "{% macro get_order_note_attribute_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.5058823, "supported_languages": null}, "macro.shopify_source.get_metafield_columns": {"name": "get_metafield_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_metafield_columns.sql", "original_file_path": "macros/get_metafield_columns.sql", "unique_id": "macro.shopify_source.get_metafield_columns", "macro_sql": "{% macro get_metafield_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"namespace\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"owner_resource\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.5082579, "supported_languages": null}, "macro.shopify_source.fivetran_convert_timezone": {"name": "fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.fivetran_convert_timezone", "macro_sql": "{%- macro fivetran_convert_timezone(column, target_tz=None, source_tz=None) -%}\n{%- set source_tz = \"UTC\" if not source_tz else source_tz -%}\n{%- set target_tz = \"UTC\" if not target_tz else target_tz -%}\n{{ return(adapter.dispatch('fivetran_convert_timezone', 'shopify_source') (column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.5094552, "supported_languages": null}, "macro.shopify_source.default__fivetran_convert_timezone": {"name": "default__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.default__fivetran_convert_timezone", "macro_sql": "{% macro default__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ dbt.type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.5098743, "supported_languages": null}, "macro.shopify_source.bigquery__fivetran_convert_timezone": {"name": "bigquery__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.bigquery__fivetran_convert_timezone", "macro_sql": "{%- macro bigquery__fivetran_convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.510183, "supported_languages": null}, "macro.shopify_source.postgres__fivetran_convert_timezone": {"name": "postgres__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.postgres__fivetran_convert_timezone", "macro_sql": "{% macro postgres__fivetran_convert_timezone(column, target_tz, source_tz) -%}\ncast(\n cast({{ column }} as {{ dbt.type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt.type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.5106397, "supported_languages": null}, "macro.shopify_source.redshift__fivetran_convert_timezone": {"name": "redshift__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.redshift__fivetran_convert_timezone", "macro_sql": "{%- macro redshift__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.default__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.5110233, "supported_languages": null}, "macro.shopify_source.duckdb__fivetran_convert_timezone": {"name": "duckdb__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.duckdb__fivetran_convert_timezone", "macro_sql": "{% macro duckdb__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.postgres__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.511388, "supported_languages": null}, "macro.shopify_source.spark__fivetran_convert_timezone": {"name": "spark__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.spark__fivetran_convert_timezone", "macro_sql": "{%- macro spark__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nfrom_utc_timestamp(\n to_utc_timestamp({{ column }}, '{{ source_tz }}'),\n '{{ target_tz }}'\n )\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1753299141.5117135, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.shopify_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_synced", "block_contents": "The time when a record was last updated by Fivetran."}, "doc.shopify_source._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_deleted", "block_contents": "Boolean representing whether the record was soft-deleted in Shopify."}, "doc.shopify_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source.source_relation", "block_contents": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {"test.shopify_integration_tests.consistency_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_discounts.sql", "original_file_path": "tests/consistency/consistency_discounts.sql", "unique_id": "test.shopify_integration_tests.consistency_discounts", "fqn": ["shopify_integration_tests", "consistency", "consistency_discounts"], "alias": "consistency_discounts", "checksum": {"name": "sha256", "checksum": "c4c0089722a912fc6859d3f23b928425253c88ad16955dc1ec30dd47328d24b8"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.3854055, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__discounts\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__discounts\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_transactions": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_transactions", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_transactions.sql", "original_file_path": "tests/consistency/consistency_transactions.sql", "unique_id": "test.shopify_integration_tests.consistency_transactions", "fqn": ["shopify_integration_tests", "consistency", "consistency_transactions"], "alias": "consistency_transactions", "checksum": {"name": "sha256", "checksum": "4a35a742a91f9610e5f2f43d798aa32b4a7a03316db67fa95804ae894a6bddbd"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.416594, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__transactions\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__transactions\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced_count": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced_count", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced_count.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced_count.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced_count", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced_count"], "alias": "consistency_line_item_enhanced_count", "checksum": {"name": "sha256", "checksum": "5966fa4f5d6392d55c6776983375aba21f63ec6d2bce09807769e2f807973074"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.4229505, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure the rows counts are the same between versions\nwith prod as (\n select count(*) as prod_rows\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select count(*) as dev_rows\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n)\n\n-- test will return values and fail if the row counts don't match\nselect *\nfrom prod\njoin dev\n on prod.prod_rows != dev.dev_rows", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced"], "alias": "consistency_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "bafda328d8951e5c1315715ae2af2b6db591c008cfb2e3e87102e102a927127d"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.428661, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_email_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_email_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_email_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_email_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_email_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_email_cohorts"], "alias": "consistency_customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "9c68a37c8316395c4e9454f955bf9a88a8ec0f0a1b8e8b92f0324c30118b0a38"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.4345899, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_email_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_email_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_emails": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_emails", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_emails.sql", "original_file_path": "tests/consistency/consistency_customer_emails.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_emails", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_emails"], "alias": "consistency_customer_emails", "checksum": {"name": "sha256", "checksum": "f65921899974fb386942217898b874b933b185b03ba96b7b4393a21c57749faf"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.4400845, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customer_emails\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customer_emails\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_inventory_levels": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_inventory_levels", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_inventory_levels.sql", "original_file_path": "tests/consistency/consistency_inventory_levels.sql", "unique_id": "test.shopify_integration_tests.consistency_inventory_levels", "fqn": ["shopify_integration_tests", "consistency", "consistency_inventory_levels"], "alias": "consistency_inventory_levels", "checksum": {"name": "sha256", "checksum": "5c4bf90e9896cd512f8251e7b55deaf76564f860f24c9332b2379854562145fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.445524, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__inventory_levels\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_order_lines": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_order_lines", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_order_lines.sql", "original_file_path": "tests/consistency/consistency_order_lines.sql", "unique_id": "test.shopify_integration_tests.consistency_order_lines", "fqn": ["shopify_integration_tests", "consistency", "consistency_order_lines"], "alias": "consistency_order_lines", "checksum": {"name": "sha256", "checksum": "0a6491b31602ef2fecc145804b8b8f386801aba35815ea3dc70e4bc0aaf5c3d9"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.4517896, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__order_lines\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__order_lines\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customers.sql", "original_file_path": "tests/consistency/consistency_customers.sql", "unique_id": "test.shopify_integration_tests.consistency_customers", "fqn": ["shopify_integration_tests", "consistency", "consistency_customers"], "alias": "consistency_customers", "checksum": {"name": "sha256", "checksum": "b585f5c5f4001fd7febda99275ce6e83ccc77d28d5113615025a883a10b3fe75"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.4572177, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customers\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customers\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_daily_shop": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_daily_shop", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_daily_shop.sql", "original_file_path": "tests/consistency/consistency_daily_shop.sql", "unique_id": "test.shopify_integration_tests.consistency_daily_shop", "fqn": ["shopify_integration_tests", "consistency", "consistency_daily_shop"], "alias": "consistency_daily_shop", "checksum": {"name": "sha256", "checksum": "c6b82febd4b38d78edcc9e3b3f8dba293d1754d7223d5c16828b5f48f01742f5"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.4626327, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_prod.shopify__daily_shop\n group by 1,2,3\n),\n\ndev as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_dev.shopify__daily_shop\n group by 1,2,3\n),\n\nfinal as (\n select \n prod.date_day as prod_date_day,\n dev.date_day as dev_date_day,\n prod.shop_id as prod_shop_id,\n dev.shop_id as dev_shop_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.count_orders as prod_count_orders,\n dev.count_orders as dev_count_orders,\n prod.count_customers as prod_count_customers,\n dev.count_customers as dev_count_customers,\n prod.order_adjusted_total as prod_order_adjusted_total,\n dev.order_adjusted_total as dev_order_adjusted_total,\n prod.count_abandoned_checkouts as prod_count_abandoned_checkouts,\n dev.count_abandoned_checkouts as dev_count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , prod.count_fulfillment_attempted_delivery as prod_count_fulfillment_attempted_delivery\n , dev.count_fulfillment_attempted_delivery as dev_count_fulfillment_attempted_delivery\n , prod.count_fulfillment_confirmed as prod_count_fulfillment_confirmed\n , dev.count_fulfillment_confirmed as dev_count_fulfillment_confirmed\n {% endif %}\n\n from prod\n full outer join dev \n on dev.date_day = prod.date_day\n and dev.shop_id = prod.shop_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_date_day != dev_date_day or\n prod_shop_id != dev_shop_id or\n prod_source_relation != dev_source_relation or\n abs(prod_count_orders - dev_count_orders) > .001 or\n abs(prod_count_customers - dev_count_customers) > .001 or\n abs(prod_order_adjusted_total - dev_order_adjusted_total) > .001 or\n abs(prod_count_abandoned_checkouts - dev_count_abandoned_checkouts) > .001\n \n {% if var('shopify_using_fulfillment_event', false) %}\n or abs(prod_count_fulfillment_attempted_delivery - dev_count_fulfillment_attempted_delivery) > .001\n or abs(prod_count_fulfillment_confirmed - dev_count_fulfillment_confirmed) > .001\n {% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_cohorts"], "alias": "consistency_customer_cohorts", "checksum": {"name": "sha256", "checksum": "389c12079464cf20fe1f6888a7e40c8bb469148349a20931a8ba997e2f0023fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.4696972, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_orders.sql", "original_file_path": "tests/consistency/consistency_orders.sql", "unique_id": "test.shopify_integration_tests.consistency_orders", "fqn": ["shopify_integration_tests", "consistency", "consistency_orders"], "alias": "consistency_orders", "checksum": {"name": "sha256", "checksum": "0ab8c3335aa456106375ec248d3f309d35588f35d3654b13270a44eadb27faf6"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.4761093, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__orders\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__orders\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_line_item_enhanced.sql", "original_file_path": "tests/integrity/vertical_integrity_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_line_item_enhanced", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_line_item_enhanced"], "alias": "vertical_integrity_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "efc2b1e0ac6bc26d2581903d83d1d56be172c14cfff1d8d6d7fa6b6eb160c7f7"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.481455, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure there is no fanout between the staging order_line_table and the line_item_enhanced model.\nwith stg_order_line as (\n select\n 1 as join_key,\n count(*) as order_line_count,\n count(distinct order_id) as order_count\n from {{ ref('stg_shopify__order_line') }}\n),\n\nline_item_enhanced as (\n select\n 1 as join_key,\n count(*) as line_item_enhanced_count\n from {{ ref('shopify__line_item_enhanced') }}\n),\n\n-- test will return values and fail if the row counts don't match\n\nfinal as (\n select \n stg_order_line.join_key,\n stg_order_line.order_line_count + stg_order_line.order_count as total_line_and_order_count,\n line_item_enhanced.line_item_enhanced_count\n from stg_order_line\n join line_item_enhanced\n on stg_order_line.join_key = line_item_enhanced.join_key\n) \n\nselect *\nfrom final\nwhere total_line_and_order_count != line_item_enhanced_count", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "shopify__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_daily_shop_fulfillment", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_daily_shop_fulfillment.sql", "original_file_path": "tests/integrity/vertical_integrity_daily_shop_fulfillment.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_daily_shop_fulfillment"], "alias": "vertical_integrity_daily_shop_fulfillment", "checksum": {"name": "sha256", "checksum": "ba5dfc5af503b2012b977cd000daf131bf61c08241aad583df03926212225016"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.4875164, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n-- test will only run if shopify_using_fulfillment_event is set to True\n\nwith source as (\n\n select *\n from {{ ref('stg_shopify__fulfillment_event') }}\n),\n\nsource_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day,\n shop_id,\n count(distinct case when status = 'delayed' then fulfillment_id end) as count_fulfillment_delayed,\n count(distinct case when status = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit,\n count(distinct case when status = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed,\n count(distinct case when status = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n\n from source\n where happened_at > '2020-01-01' and happened_at < '2024-06-10'\n group by 1,2,3\n),\n\nmodel as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\nmodel_metrics as (\n\n select \n source_relation,\n date_day,\n shop_id,\n sum(count_fulfillment_delayed) as count_fulfillment_delayed,\n sum(count_fulfillment_in_transit) as count_fulfillment_in_transit,\n sum(count_fulfillment_confirmed) as count_fulfillment_confirmed,\n sum(count_fulfillment_delivered) as count_fulfillment_delivered\n\n from model\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2,3\n),\n\nfinal as (\n\n select\n model_metrics.source_relation,\n model_metrics.shop_id as model_shop_id,\n source_metrics.shop_id as source_shop_id,\n model_metrics.date_day as model_date_day,\n source_metrics.date_day as source_date_day,\n coalesce(model_metrics.count_fulfillment_delayed, 0) as model_count_fulfillment_delayed,\n coalesce(source_metrics.count_fulfillment_delayed, 0) as source_count_fulfillment_delayed,\n coalesce(model_metrics.count_fulfillment_in_transit, 0) as model_count_fulfillment_in_transit,\n coalesce(source_metrics.count_fulfillment_in_transit, 0) as source_count_fulfillment_in_transit,\n coalesce(model_metrics.count_fulfillment_confirmed, 0) as model_count_fulfillment_confirmed,\n coalesce(source_metrics.count_fulfillment_confirmed, 0) as source_count_fulfillment_confirmed,\n coalesce(model_metrics.count_fulfillment_delivered, 0) as model_count_fulfillment_delivered,\n coalesce(source_metrics.count_fulfillment_delivered, 0) as source_count_fulfillment_delivered\n\n from model_metrics\n full outer join source_metrics\n on model_metrics.source_relation = source_metrics.source_relation\n and model_metrics.shop_id = source_metrics.shop_id\n and model_metrics.date_day = source_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \nmodel_count_fulfillment_delayed != source_count_fulfillment_delayed or\nmodel_count_fulfillment_in_transit != source_count_fulfillment_in_transit or\nmodel_count_fulfillment_confirmed != source_count_fulfillment_confirmed or\nmodel_count_fulfillment_delivered != source_count_fulfillment_delivered", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.integrity_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_customers.sql", "original_file_path": "tests/integrity/integrity_customers.sql", "unique_id": "test.shopify_integration_tests.integrity_customers", "fqn": ["shopify_integration_tests", "integrity", "integrity_customers"], "alias": "integrity_customers", "checksum": {"name": "sha256", "checksum": "690ac16cf903e5fd89a08680246fd495bf3fbdc94a622f0b9b1ce6f6988d8a74"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.4963343, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n customer_id,\n count(*) as source_customer_tag_count\n from {{ target.schema }}_shopify_dev.stg_shopify__customer_tag\n group by 1\n),\n\ntransform as (\n select\n customer_id,\n array_length(split(customer_tags, ',')) as transform_customer_tag_count -- Only BigQuery compatible for the time being\n from {{ target.schema }}_shopify_dev.shopify__customers\n where customer_tags is not null\n group by customer_id, customer_tags\n), \n\ncompare as (\n select\n source.customer_id,\n source.source_customer_tag_count,\n transform.transform_customer_tag_count\n from source\n full outer join transform\n on source.customer_id = transform.customer_id\n where source.source_customer_tag_count != transform.transform_customer_tag_count\n )\n\nselect *\nfrom compare", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.integrity_inventory_level": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_inventory_level", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_inventory_level.sql", "original_file_path": "tests/integrity/integrity_inventory_level.sql", "unique_id": "test.shopify_integration_tests.integrity_inventory_level", "fqn": ["shopify_integration_tests", "integrity", "integrity_inventory_level"], "alias": "integrity_inventory_level", "checksum": {"name": "sha256", "checksum": "2f633fb0d91b0bebe0152b97a141df7481c08e0df5557ee4962f8d0ebe7bd7ee"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.5018291, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n count(*) as source_count\n from {{ target.schema }}_shopify_dev.stg_shopify__inventory_level as il\n join {{ target.schema }}_shopify_dev.stg_shopify__inventory_item as ii\n on il.inventory_item_id = ii.inventory_item_id \n and il.source_relation = ii.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__location as lo\n on il.location_id = lo.location_id \n and il.source_relation = lo.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__product_variant as pv\n on il.inventory_item_id = pv.inventory_item_id\n and il.source_relation = pv.source_relation\n),\n\ntransform as (\n select\n count(*) as transform_count\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\ncompare as (\n select *\n from source\n cross join transform\n)\n\nselect *\nfrom compare\nwhere source_count != transform_count", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_discounts.sql", "original_file_path": "tests/integrity/vertical_integrity_discounts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_discounts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_discounts"], "alias": "vertical_integrity_discounts", "checksum": {"name": "sha256", "checksum": "591dfe08097b58fd9433339a17d0388c891a6d3eef65c042f13c227737e9ff65"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.5086937, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith discount_redeem_code as (\n\n select \n code,\n discount_code_id,\n source_relation\n from {{ ref('stg_shopify__discount_redeem_code') }} \n group by 1, 2, 3\n),\n\ndiscount_codes_unioned as (\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_basic') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_bxgy') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_free_shipping') }} \n group by 1, 2\n\n {% if var('shopify_using_discount_code_app', False) %}\n\n union all\n \n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_app') }} \n group by 1, 2\n {% endif %}\n),\n\ndiscount_codes_source as (\n \n select \n discount_redeem_code.code, \n discount_redeem_code.source_relation,\n count(*) as code_count_source\n from discount_redeem_code\n left join discount_codes_unioned\n on discount_redeem_code.discount_code_id = discount_codes_unioned.discount_code_id\n and discount_redeem_code.source_relation = discount_codes_unioned.source_relation\n group by 1, 2\n),\n\n\ndiscount_codes_end as (\n\n select \n code, \n source_relation,\n count(*) as code_count_end\n from {{ ref('shopify__discounts') }}\n group by 1, 2\n),\n\n\nfinal as (\n\n select \n discount_codes_source.code,\n discount_codes_source.source_relation,\n coalesce(discount_codes_source.code_count_source, 0) as code_count_source,\n coalesce(discount_codes_end.code_count_end, 0) as code_count_end\n from discount_codes_source\n full outer join discount_codes_end\n on discount_codes_source.code = discount_codes_end.code\n and discount_codes_source.source_relation = discount_codes_end.source_relation\n)\n\nselect *\nfrom final\nwhere code_count_source != code_count_end", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}, {"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "horizontal_integrity_daily_shop_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/horizontal_integrity_daily_shop_orders.sql", "original_file_path": "tests/integrity/horizontal_integrity_daily_shop_orders.sql", "unique_id": "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders", "fqn": ["shopify_integration_tests", "integrity", "horizontal_integrity_daily_shop_orders"], "alias": "horizontal_integrity_daily_shop_orders", "checksum": {"name": "sha256", "checksum": "addd76b5760975069f87aac715bd3ade9a52af4049104f635902fd87b8b41b1a"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.51571, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norder_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from orders\n where created_timestamp > '2020-01-01' and created_timestamp < '2024-06-10'\n group by 1,2\n),\n\ndaily_shop as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\ndaily_shop_metrics as (\n\n select \n source_relation,\n date_day,\n sum(count_orders) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from daily_shop\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2\n),\n\nfinal as (\n\n select\n daily_shop_metrics.source_relation,\n coalesce(daily_shop_metrics.count_orders, 0) as daily_shop_count_orders,\n coalesce(order_metrics.count_orders, 0) as order_count_orders,\n coalesce(daily_shop_metrics.order_adjusted_total, 0) as daily_shop_order_adjusted_total,\n coalesce(order_metrics.order_adjusted_total, 0) as order_order_adjusted_total\n\n from daily_shop_metrics\n full outer join order_metrics\n on daily_shop_metrics.source_relation = order_metrics.source_relation\n and daily_shop_metrics.date_day = order_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \n abs(daily_shop_count_orders - order_count_orders) > 0 or\n abs(daily_shop_order_adjusted_total - order_order_adjusted_total) > .1", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_customer_cohorts.sql", "original_file_path": "tests/integrity/vertical_integrity_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_customer_cohorts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_customer_cohorts"], "alias": "vertical_integrity_customer_cohorts", "checksum": {"name": "sha256", "checksum": "19553b1bce28d0577a330dc5544f21b9326b91d673b50fdfdc0ca5980b17f7ff"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1753299142.522293, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n), \n\ncustomers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), \n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), \n\ncustomer_cohort_source as (\n\n select \n customers.source_relation,\n count(*) as source_rows \n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n group by 1\n),\n\ncustomer_cohort_end as (\n\n select \n source_relation,\n count(*) as end_rows\n from {{ ref('shopify__customer_cohorts') }}\n group by 1\n),\n\nfinal as (\n select\n customer_cohort_source.source_relation,\n source_rows,\n end_rows\n from customer_cohort_source\n join customer_cohort_end\n on customer_cohort_source.source_relation = customer_cohort_end.source_relation\n where customer_cohort_source.source_rows != customer_cohort_end.end_rows\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}]}, "parent_map": {"seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "model.shopify.shopify__customer_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"], "model.shopify.shopify__customer_email_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"], "model.shopify.shopify__inventory_levels": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media"], "model.shopify.shopify__discounts": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.int_shopify__discounts__order_aggregates"], "model.shopify.shopify__customers": ["model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.shopify__orders": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag"], "model.shopify.shopify__transactions": ["model.shopify_source.stg_shopify__tender_transaction", "model.shopify_source.stg_shopify__transaction"], "model.shopify.shopify__order_lines": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.shopify__products": ["model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.int_shopify__products_with_aggregates"], "model.shopify.shopify__daily_shop": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment", "model.shopify.int_shopify__daily_orders", "model.shopify.shopify__calendar", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__customer_emails": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_media", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_app", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.shopify__orders__order_refunds": ["model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__refund"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order"], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__orders", "model.shopify_source.stg_shopify__order_discount_code"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__order"], "model.shopify.shopify__product_variant_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.shopify__order_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"], "model.shopify.shopify__product_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"], "model.shopify.shopify__customer_metafields": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__metafield"], "model.shopify.shopify__shop_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__collection_metafields": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__metafield"], "model.shopify.shopify__calendar": [], "model.shopify.shopify__line_item_enhanced": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "model.shopify_source.stg_shopify__discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "model.shopify_source.stg_shopify__order": ["model.shopify_source.stg_shopify__order_tmp"], "model.shopify_source.stg_shopify__transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "model.shopify_source.stg_shopify__metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "model.shopify_source.stg_shopify__shop": ["model.shopify_source.stg_shopify__shop_tmp"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"], "model.shopify_source.stg_shopify__customer": ["model.shopify_source.stg_shopify__customer_tmp"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "model.shopify_source.stg_shopify__collection": ["model.shopify_source.stg_shopify__collection_tmp"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "model.shopify_source.stg_shopify__media": ["model.shopify_source.stg_shopify__media_tmp"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "model.shopify_source.stg_shopify__media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "model.shopify_source.stg_shopify__order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "model.shopify_source.stg_shopify__order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "model.shopify_source.stg_shopify__refund": ["model.shopify_source.stg_shopify__refund_tmp"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "model.shopify_source.stg_shopify__product": ["model.shopify_source.stg_shopify__product_tmp"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "model.shopify_source.stg_shopify__location": ["model.shopify_source.stg_shopify__location_tmp"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "model.shopify_source.stg_shopify__product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "model.shopify_source.stg_shopify__metafield_tmp": ["source.shopify_source.shopify.metafield"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["source.shopify_source.shopify.discount_code_bxgy"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["source.shopify_source.shopify.fulfillment"], "model.shopify_source.stg_shopify__product_variant_tmp": ["source.shopify_source.shopify.product_variant"], "model.shopify_source.stg_shopify__collection_tmp": ["source.shopify_source.shopify.collection"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["source.shopify_source.shopify.order_discount_code"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["source.shopify_source.shopify.order_url_tag"], "model.shopify_source.stg_shopify__product_tmp": ["source.shopify_source.shopify.product"], "model.shopify_source.stg_shopify__order_tag_tmp": ["source.shopify_source.shopify.order_tag"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["source.shopify_source.shopify.inventory_quantity"], "model.shopify_source.stg_shopify__tax_line_tmp": ["source.shopify_source.shopify.tax_line"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["source.shopify_source.shopify.customer_tag"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["source.shopify_source.shopify.discount_allocation"], "model.shopify_source.stg_shopify__media_image_tmp": ["source.shopify_source.shopify.media_image"], "model.shopify_source.stg_shopify__media_tmp": ["source.shopify_source.shopify.media"], "model.shopify_source.stg_shopify__refund_tmp": ["source.shopify_source.shopify.refund"], "model.shopify_source.stg_shopify__location_tmp": ["source.shopify_source.shopify.location"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["source.shopify_source.shopify.inventory_level"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["source.shopify_source.shopify.order_shipping_line"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["source.shopify_source.shopify.abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["source.shopify_source.shopify.fulfillment_event"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["source.shopify_source.shopify.order_line_refund"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["source.shopify_source.shopify.discount_code_app"], "model.shopify_source.stg_shopify__shop_tmp": ["source.shopify_source.shopify.shop"], "model.shopify_source.stg_shopify__transaction_tmp": ["source.shopify_source.shopify.transaction"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["source.shopify_source.shopify.product_variant_media"], "model.shopify_source.stg_shopify__order_line_tmp": ["source.shopify_source.shopify.order_line"], "model.shopify_source.stg_shopify__product_media_tmp": ["source.shopify_source.shopify.product_media"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["source.shopify_source.shopify.discount_code_basic"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["source.shopify_source.shopify.order_shipping_tax_line"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["source.shopify_source.shopify.order_note_attribute"], "model.shopify_source.stg_shopify__discount_application_tmp": ["source.shopify_source.shopify.discount_application"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["source.shopify_source.shopify.tender_transaction"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["source.shopify_source.shopify.discount_code_free_shipping"], "model.shopify_source.stg_shopify__product_tag_tmp": ["source.shopify_source.shopify.product_tag"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["source.shopify_source.shopify.inventory_item"], "model.shopify_source.stg_shopify__order_tmp": ["source.shopify_source.shopify.order"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["source.shopify_source.shopify.discount_redeem_code"], "model.shopify_source.stg_shopify__customer_tmp": ["source.shopify_source.shopify.customer"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["source.shopify_source.shopify.order_adjustment"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__collection_product_tmp": ["source.shopify_source.shopify.collection_product"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["source.shopify_source.shopify.abandoned_checkout"], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": ["model.shopify.shopify__customer_cohorts"], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": ["model.shopify.shopify__customer_cohorts"], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": ["model.shopify.shopify__orders"], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": ["model.shopify.shopify__orders"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": ["model.shopify.shopify__customers"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": ["model.shopify.shopify__customer_emails"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": ["model.shopify.shopify__products"], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": ["model.shopify.shopify__order_lines"], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": ["model.shopify.shopify__order_lines"], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": ["model.shopify.shopify__inventory_levels"], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": ["model.shopify.shopify__inventory_levels"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": ["model.shopify.shopify__inventory_levels"], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": ["model.shopify.shopify__discounts"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": ["model.shopify.shopify__daily_shop"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": ["model.shopify.shopify__customers__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": ["model.shopify.shopify__orders__order_line_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": ["model.shopify.int_shopify__emails__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": ["model.shopify.int_shopify__customer_email_rollup"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": ["model.shopify.int_shopify__inventory_level__aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": ["model.shopify.int_shopify__discounts__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": ["model.shopify.int_shopify__discounts__abandoned_checkouts"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": ["model.shopify.int_shopify__order__shipping_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": ["model.shopify.int_shopify__product__order_line_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": ["model.shopify.int_shopify__products_with_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": ["model.shopify.shopify__line_item_enhanced"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": ["model.shopify_source.stg_shopify__customer"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": ["model.shopify_source.stg_shopify__order_line_refund"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": ["model.shopify_source.stg_shopify__order_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": ["model.shopify_source.stg_shopify__order"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": ["model.shopify_source.stg_shopify__product"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": ["model.shopify_source.stg_shopify__product_variant"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": ["model.shopify_source.stg_shopify__transaction"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": ["model.shopify_source.stg_shopify__refund"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": ["model.shopify_source.stg_shopify__order_adjustment"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": ["model.shopify_source.stg_shopify__abandoned_checkout"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": ["model.shopify_source.stg_shopify__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": ["model.shopify_source.stg_shopify__collection"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": ["model.shopify_source.stg_shopify__collection"], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": ["model.shopify_source.stg_shopify__inventory_item"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": ["model.shopify_source.stg_shopify__inventory_item"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": ["model.shopify_source.stg_shopify__inventory_level"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": ["model.shopify_source.stg_shopify__inventory_quantity"], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": ["model.shopify_source.stg_shopify__location"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": ["model.shopify_source.stg_shopify__location"], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": ["model.shopify_source.stg_shopify__media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": ["model.shopify_source.stg_shopify__media"], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": ["model.shopify_source.stg_shopify__media_image"], "test.shopify_source.not_null_stg_shopify__media_image_image_id.a62b445b8b": ["model.shopify_source.stg_shopify__media_image"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": ["model.shopify_source.stg_shopify__media_image"], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": ["model.shopify_source.stg_shopify__metafield"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": ["model.shopify_source.stg_shopify__metafield"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": ["model.shopify_source.stg_shopify__order_shipping_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": ["model.shopify_source.stg_shopify__order_shipping_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": ["model.shopify_source.stg_shopify__shop"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": ["model.shopify_source.stg_shopify__shop"], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": ["model.shopify_source.stg_shopify__tender_transaction"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": ["model.shopify_source.stg_shopify__tender_transaction"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": ["model.shopify_source.stg_shopify__fulfillment_event"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": ["model.shopify_source.stg_shopify__fulfillment_event"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": ["model.shopify_source.stg_shopify__tax_line"], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": ["model.shopify_source.stg_shopify__discount_code_app"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": ["model.shopify_source.stg_shopify__discount_code_app"], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": ["model.shopify_source.stg_shopify__discount_code_basic"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": ["model.shopify_source.stg_shopify__discount_code_basic"], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": ["model.shopify_source.stg_shopify__discount_redeem_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": ["model.shopify_source.stg_shopify__discount_redeem_code"], "source.shopify_source.shopify.order": [], "source.shopify_source.shopify.customer": [], "source.shopify_source.shopify.order_line": [], "source.shopify_source.shopify.order_line_refund": [], "source.shopify_source.shopify.product": [], "source.shopify_source.shopify.product_variant": [], "source.shopify_source.shopify.transaction": [], "source.shopify_source.shopify.refund": [], "source.shopify_source.shopify.order_adjustment": [], "source.shopify_source.shopify.abandoned_checkout": [], "source.shopify_source.shopify.collection_product": [], "source.shopify_source.shopify.collection": [], "source.shopify_source.shopify.customer_tag": [], "source.shopify_source.shopify.fulfillment": [], "source.shopify_source.shopify.inventory_item": [], "source.shopify_source.shopify.inventory_level": [], "source.shopify_source.shopify.inventory_quantity": [], "source.shopify_source.shopify.location": [], "source.shopify_source.shopify.metafield": [], "source.shopify_source.shopify.order_note_attribute": [], "source.shopify_source.shopify.order_shipping_line": [], "source.shopify_source.shopify.order_shipping_tax_line": [], "source.shopify_source.shopify.order_tag": [], "source.shopify_source.shopify.order_url_tag": [], "source.shopify_source.shopify.media": [], "source.shopify_source.shopify.media_image": [], "source.shopify_source.shopify.product_media": [], "source.shopify_source.shopify.product_variant_media": [], "source.shopify_source.shopify.product_tag": [], "source.shopify_source.shopify.shop": [], "source.shopify_source.shopify.tender_transaction": [], "source.shopify_source.shopify.abandoned_checkout_discount_code": [], "source.shopify_source.shopify.order_discount_code": [], "source.shopify_source.shopify.abandoned_checkout_shipping_line": [], "source.shopify_source.shopify.fulfillment_event": [], "source.shopify_source.shopify.tax_line": [], "source.shopify_source.shopify.discount_allocation": [], "source.shopify_source.shopify.discount_application": [], "source.shopify_source.shopify.discount_code_app": [], "source.shopify_source.shopify.discount_code_basic": [], "source.shopify_source.shopify.discount_code_bxgy": [], "source.shopify_source.shopify.discount_code_free_shipping": [], "source.shopify_source.shopify.discount_redeem_code": []}, "child_map": {"seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "model.shopify.shopify__customer_cohorts": ["test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a"], "model.shopify.shopify__customer_email_cohorts": ["test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182"], "model.shopify.shopify__inventory_levels": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606", "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0"], "model.shopify.shopify__discounts": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f", "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f"], "model.shopify.shopify__customers": ["model.shopify.shopify__customer_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469"], "model.shopify.shopify__orders": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51"], "model.shopify.shopify__transactions": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981"], "model.shopify.shopify__order_lines": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__product__order_line_aggregates", "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e"], "model.shopify.shopify__products": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a"], "model.shopify.shopify__daily_shop": ["test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f"], "model.shopify.shopify__customer_emails": ["model.shopify.shopify__customer_email_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__inventory_levels", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__products", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify.shopify__products", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify.shopify__discounts"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__orders", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify.shopify__customer_emails", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda"], "model.shopify.shopify__orders__order_refunds": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify.shopify__discounts", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__customer_emails", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a"], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__discounts", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__customers", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9"], "model.shopify.shopify__product_variant_metafields": [], "model.shopify.shopify__order_metafields": [], "model.shopify.shopify__product_metafields": [], "model.shopify.shopify__customer_metafields": [], "model.shopify.shopify__shop_metafields": [], "model.shopify.shopify__collection_metafields": [], "model.shopify.shopify__calendar": ["model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "model.shopify.shopify__daily_shop"], "model.shopify.shopify__line_item_enhanced": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933", "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613"], "model.shopify_source.stg_shopify__discount_allocation": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300", "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330"], "model.shopify_source.stg_shopify__order": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_metafields", "model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1"], "model.shopify_source.stg_shopify__transaction": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__transactions", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5", "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__orders", "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a", "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e"], "model.shopify_source.stg_shopify__metafield": ["model.shopify.shopify__collection_metafields", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__order_metafields", "model.shopify.shopify__product_metafields", "model.shopify.shopify__product_variant_metafields", "model.shopify.shopify__shop_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca", "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7", "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify.shopify__transactions", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b", "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295"], "model.shopify_source.stg_shopify__shop": ["model.shopify.shopify__daily_shop", "model.shopify.shopify__shop_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415", "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c", "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb"], "model.shopify_source.stg_shopify__customer": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__customers", "model.shopify.shopify__line_item_enhanced", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84", "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe"], "model.shopify_source.stg_shopify__collection": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__collection_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878", "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0"], "model.shopify_source.stg_shopify__media": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f", "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c", "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc", "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "model.shopify.shopify__product_variant_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26", "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d"], "model.shopify_source.stg_shopify__media_image": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5", "test.shopify_source.not_null_stg_shopify__media_image_image_id.a62b445b8b", "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b"], "model.shopify_source.stg_shopify__order_line": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032", "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify.int_shopify__daily_fulfillment", "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a"], "model.shopify_source.stg_shopify__order_note_attribute": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0", "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_refunds", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29"], "model.shopify_source.stg_shopify__refund": ["model.shopify.shopify__orders__order_refunds", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.shopify__customers", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f", "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd"], "model.shopify_source.stg_shopify__product": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__product_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07", "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6"], "model.shopify_source.stg_shopify__location": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9", "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf", "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1"], "model.shopify_source.stg_shopify__product_media": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea", "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19", "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.shopify__customer_emails", "model.shopify.shopify__customers", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c", "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify.int_shopify__discounts__abandoned_checkouts", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify.int_shopify__discounts__abandoned_checkouts", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e", "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1"], "model.shopify_source.stg_shopify__metafield_tmp": ["model.shopify_source.stg_shopify__metafield"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["model.shopify_source.stg_shopify__fulfillment"], "model.shopify_source.stg_shopify__product_variant_tmp": ["model.shopify_source.stg_shopify__product_variant"], "model.shopify_source.stg_shopify__collection_tmp": ["model.shopify_source.stg_shopify__collection"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["model.shopify_source.stg_shopify__order_discount_code"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["model.shopify_source.stg_shopify__order_url_tag"], "model.shopify_source.stg_shopify__product_tmp": ["model.shopify_source.stg_shopify__product"], "model.shopify_source.stg_shopify__order_tag_tmp": ["model.shopify_source.stg_shopify__order_tag"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["model.shopify_source.stg_shopify__inventory_quantity"], "model.shopify_source.stg_shopify__tax_line_tmp": ["model.shopify_source.stg_shopify__tax_line"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["model.shopify_source.stg_shopify__customer_tag"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["model.shopify_source.stg_shopify__discount_allocation"], "model.shopify_source.stg_shopify__media_image_tmp": ["model.shopify_source.stg_shopify__media_image"], "model.shopify_source.stg_shopify__media_tmp": ["model.shopify_source.stg_shopify__media"], "model.shopify_source.stg_shopify__refund_tmp": ["model.shopify_source.stg_shopify__refund"], "model.shopify_source.stg_shopify__location_tmp": ["model.shopify_source.stg_shopify__location"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["model.shopify_source.stg_shopify__inventory_level"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_line"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["model.shopify_source.stg_shopify__order_line_refund"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["model.shopify_source.stg_shopify__discount_code_app"], "model.shopify_source.stg_shopify__shop_tmp": ["model.shopify_source.stg_shopify__shop"], "model.shopify_source.stg_shopify__transaction_tmp": ["model.shopify_source.stg_shopify__transaction"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["model.shopify_source.stg_shopify__product_variant_media"], "model.shopify_source.stg_shopify__order_line_tmp": ["model.shopify_source.stg_shopify__order_line"], "model.shopify_source.stg_shopify__product_media_tmp": ["model.shopify_source.stg_shopify__product_media"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["model.shopify_source.stg_shopify__discount_code_basic"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["model.shopify_source.stg_shopify__order_note_attribute"], "model.shopify_source.stg_shopify__discount_application_tmp": ["model.shopify_source.stg_shopify__discount_application"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["model.shopify_source.stg_shopify__tender_transaction"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "model.shopify_source.stg_shopify__product_tag_tmp": ["model.shopify_source.stg_shopify__product_tag"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["model.shopify_source.stg_shopify__inventory_item"], "model.shopify_source.stg_shopify__order_tmp": ["model.shopify_source.stg_shopify__order"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify_source.stg_shopify__customer_tmp": ["model.shopify_source.stg_shopify__customer"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["model.shopify_source.stg_shopify__order_adjustment"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__collection_product_tmp": ["model.shopify_source.stg_shopify__collection_product"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout"], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": [], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": [], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": [], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": [], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": [], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": [], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": [], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": [], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": [], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": [], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": [], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": [], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": [], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": [], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": [], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": [], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": [], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": [], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": [], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": [], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": [], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": [], "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": [], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": [], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": [], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": [], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": [], "test.shopify_source.not_null_stg_shopify__media_image_image_id.a62b445b8b": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": [], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": [], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": [], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": [], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": [], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": [], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": [], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": [], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": [], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": [], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": [], "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": [], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": [], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": [], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": [], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": [], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": [], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": [], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": [], "source.shopify_source.shopify.order": ["model.shopify_source.stg_shopify__order_tmp"], "source.shopify_source.shopify.customer": ["model.shopify_source.stg_shopify__customer_tmp"], "source.shopify_source.shopify.order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "source.shopify_source.shopify.order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "source.shopify_source.shopify.product": ["model.shopify_source.stg_shopify__product_tmp"], "source.shopify_source.shopify.product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "source.shopify_source.shopify.transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "source.shopify_source.shopify.refund": ["model.shopify_source.stg_shopify__refund_tmp"], "source.shopify_source.shopify.order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "source.shopify_source.shopify.abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "source.shopify_source.shopify.collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "source.shopify_source.shopify.collection": ["model.shopify_source.stg_shopify__collection_tmp"], "source.shopify_source.shopify.customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "source.shopify_source.shopify.fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "source.shopify_source.shopify.inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "source.shopify_source.shopify.inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "source.shopify_source.shopify.inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "source.shopify_source.shopify.location": ["model.shopify_source.stg_shopify__location_tmp"], "source.shopify_source.shopify.metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "source.shopify_source.shopify.order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "source.shopify_source.shopify.order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "source.shopify_source.shopify.order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "source.shopify_source.shopify.order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "source.shopify_source.shopify.order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "source.shopify_source.shopify.media": ["model.shopify_source.stg_shopify__media_tmp"], "source.shopify_source.shopify.media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "source.shopify_source.shopify.product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "source.shopify_source.shopify.product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "source.shopify_source.shopify.product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "source.shopify_source.shopify.shop": ["model.shopify_source.stg_shopify__shop_tmp"], "source.shopify_source.shopify.tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "source.shopify_source.shopify.abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "source.shopify_source.shopify.order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "source.shopify_source.shopify.abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "source.shopify_source.shopify.fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "source.shopify_source.shopify.tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "source.shopify_source.shopify.discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "source.shopify_source.shopify.discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "source.shopify_source.shopify.discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "source.shopify_source.shopify.discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "source.shopify_source.shopify.discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "source.shopify_source.shopify.discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "source.shopify_source.shopify.discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}, "unit_tests": {}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v12.json", "dbt_version": "1.10.6", "generated_at": "2025-08-06T18:36:32.084285Z", "invocation_id": "7b951da8-da73-4286-8e42-6449333dcaa5", "invocation_started_at": "2025-08-06T18:35:59.028824+00:00", "env": {}, "project_name": "shopify_integration_tests", "project_id": "c39719ba3d679fd569bed21921e72e32", "user_id": null, "send_anonymous_usage_stats": false, "adapter_type": "postgres", "quoting": {"database": true, "schema": true, "identifier": true, "column": null}}, "nodes": {"seed.shopify_integration_tests.shopify_gql_product_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_tag_data.csv", "original_file_path": "seeds/shopify_gql_product_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_tag_data"], "alias": "shopify_gql_product_tag_data", "checksum": {"name": "sha256", "checksum": "8c043c435f2de4a4004471419a272adaf066c1e9e36fa2e9de62a6562d4d2e26"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.6505668, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_event_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_event_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_event_data"], "alias": "shopify_gql_fulfillment_event_data", "checksum": {"name": "sha256", "checksum": "c8df472434961ad12566344da5a47483bd18c4b9cb7b5eafd44f96f284aaebea"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.6583812, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_metafield_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_metafield_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_metafield_data.csv", "original_file_path": "seeds/shopify_gql_metafield_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_metafield_data", "fqn": ["shopify_integration_tests", "shopify_gql_metafield_data"], "alias": "shopify_gql_metafield_data", "checksum": {"name": "sha256", "checksum": "b698e66e6a1d23c772fe5d1c36943dd9e5be8609f08b7f0990b1c20417e3f4d1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.661744, "relation_name": "\"postgres\".\"public\".\"shopify_gql_metafield_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_basic_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_basic_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_basic_data.csv", "original_file_path": "seeds/shopify_discount_code_basic_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_basic_data"], "alias": "shopify_discount_code_basic_data", "checksum": {"name": "sha256", "checksum": "dc25a6ca420db34e1ce13e0749f1e65e949cef3a260c736e1eb6e53b7db15ace"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1754505362.6652782, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_order_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_discount_code_data.csv", "original_file_path": "seeds/shopify_order_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_order_discount_code_data"], "alias": "shopify_order_discount_code_data", "checksum": {"name": "sha256", "checksum": "f4e391a3f00ebb1f7444487e4577dc95e28c39745e40f6c0fcb1bd90562833f6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"order_id": "bigint", "amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float"}}, "created_at": 1754505362.6690586, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_data": {"database": "postgres", "schema": "public", "name": "shopify_order_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_data.csv", "original_file_path": "seeds/shopify_order_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_data", "fqn": ["shopify_integration_tests", "shopify_order_data"], "alias": "shopify_order_data", "checksum": {"name": "sha256", "checksum": "274aec2c5b1f7cd936359683f33c830d2ef7067e6e445469df0c3b460ad9d56c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "bigint", "customer_id": "bigint", "location_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.6725023, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_basic_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_basic_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_basic_data"], "alias": "shopify_gql_discount_code_basic_data", "checksum": {"name": "sha256", "checksum": "d42fbb32c0fcf3c168a45013a7a5c9b9e9c8871e7b2079d5973741f88543c079"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"total_sales_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"total_sales_amount": "float"}}, "created_at": 1754505362.6758137, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_line_data.csv", "original_file_path": "seeds/shopify_gql_order_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_line_data"], "alias": "shopify_gql_order_line_data", "checksum": {"name": "sha256", "checksum": "c4ef70509cf12a7e963b4427bd4ecaf67fa4597191c62bd6da8844e0c448a3ef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.6790128, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_tag_data.csv", "original_file_path": "seeds/shopify_order_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_tag_data"], "alias": "shopify_order_tag_data", "checksum": {"name": "sha256", "checksum": "c448adfe655f83dcaf6370ad2ef36f0ad6991c1b6d001e3aab317fd17359b129"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.6822762, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_tracking_info_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_tracking_info_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_tracking_info_data"], "alias": "shopify_gql_fulfillment_tracking_info_data", "checksum": {"name": "sha256", "checksum": "0ce5041eae13306e77b2f03c364a8e5767be39e68e711fbb1b76709e51191b12"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.6853943, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_redeem_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_redeem_code_data.csv", "original_file_path": "seeds/shopify_discount_redeem_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_redeem_code_data", "fqn": ["shopify_integration_tests", "shopify_discount_redeem_code_data"], "alias": "shopify_discount_redeem_code_data", "checksum": {"name": "sha256", "checksum": "801a010544f98b358371e38d9af1023f4e91747d6f4e488c5a65358794bc3ab5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "discount_id": "bigint", "created_by_id": "bigint", "async_usage_count": "integer", "code": "varchar", "discount_type": "varchar", "created_by_description": "varchar", "created_by_title": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "created_by_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "async_usage_count": "integer", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.6886663, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_application_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_application_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_application_data.csv", "original_file_path": "seeds/shopify_discount_application_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data", "fqn": ["shopify_integration_tests", "shopify_discount_application_data"], "alias": "shopify_discount_application_data", "checksum": {"name": "sha256", "checksum": "9d678050ac7442f36d8aa9a5b0b013aeea7ab64a785a564a31aa41fa6a6ee70a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"allocation_method": "varchar", "code": "varchar", "description": "varchar", "index": "integer", "order_id": "bigint", "target_selection": "varchar", "target_type": "varchar", "title": "varchar", "type": "varchar", "value": "float", "value_type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"allocation_method": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "index": "integer", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "target_selection": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "target_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "value": "float", "value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.6921067, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_data.csv", "original_file_path": "seeds/shopify_gql_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_data"], "alias": "shopify_gql_product_data", "checksum": {"name": "sha256", "checksum": "5c3d5008de7c87b129567ced494177bc809a49587033e462e8e099dfe3c02662"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.695435, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_address_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_address_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_address_data.csv", "original_file_path": "seeds/shopify_gql_customer_address_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_address_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_address_data"], "alias": "shopify_gql_customer_address_data", "checksum": {"name": "sha256", "checksum": "55643b705646db36fbaeb65e2786f9981acc20dbcd95996c0ee31afacef123b6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.6986012, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_free_shipping_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_free_shipping_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_free_shipping_data"], "alias": "shopify_gql_discount_code_free_shipping_data", "checksum": {"name": "sha256", "checksum": "0d9313224e67ae163a3b90d05629775d330a68deef8c6826316ffa88d75254a2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7017307, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_refund_data.csv", "original_file_path": "seeds/shopify_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_refund_data", "fqn": ["shopify_integration_tests", "shopify_refund_data"], "alias": "shopify_refund_data", "checksum": {"name": "sha256", "checksum": "8d8bc98681d9b0d57a43af3fc99ff13cc42401d97e49bba41c1fafb28f858d23"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.7048516, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_product_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_product_data.csv", "original_file_path": "seeds/shopify_collection_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data", "fqn": ["shopify_integration_tests", "shopify_collection_product_data"], "alias": "shopify_collection_product_data", "checksum": {"name": "sha256", "checksum": "f0829ff9b0c3116846c83d4cb2dfae170594e230d3586b8abae97a31d4a51c55"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7079306, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_abandoned_checkout_discount_code_data.csv", "original_file_path": "seeds/shopify_gql_abandoned_checkout_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_abandoned_checkout_discount_code_data"], "alias": "shopify_gql_abandoned_checkout_discount_code_data", "checksum": {"name": "sha256", "checksum": "90c5089352dfe1ea90e277813ae7824053992fa838896d4d55130c1ca0e51b82"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.711141, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_shipping_tax_line_data.csv", "original_file_path": "seeds/shopify_gql_order_shipping_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_shipping_tax_line_data"], "alias": "shopify_gql_order_shipping_tax_line_data", "checksum": {"name": "sha256", "checksum": "4c0d33725e1979f861188e46f54626db2fa5d1dc12a23b6dec4d67b2617e8493"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7141683, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_data.csv", "original_file_path": "seeds/shopify_customer_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_data", "fqn": ["shopify_integration_tests", "shopify_customer_data"], "alias": "shopify_customer_data", "checksum": {"name": "sha256", "checksum": "72ba9c7141e483ec3a8715cb27d57c8e36f8ca293b0a507676391c8804c717f2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint", "default_address_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "default_address_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.7172792, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_media_data.csv", "original_file_path": "seeds/shopify_product_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_media_data", "fqn": ["shopify_integration_tests", "shopify_product_media_data"], "alias": "shopify_product_media_data", "checksum": {"name": "sha256", "checksum": "b38d774b588961b4cd6e5b8cdb9c0319dd694bcdd474a54a68e062b3cf488d44"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.720478, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_tax_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_tax_line_data"], "alias": "shopify_order_shipping_tax_line_data", "checksum": {"name": "sha256", "checksum": "279d995731cd3b85aa948f6721ada5f455324347f7ac3211a98bf2f3bb72f899"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float"}}, "created_at": 1754505362.7237113, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_image_data": {"database": "postgres", "schema": "public", "name": "shopify_media_image_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_image_data.csv", "original_file_path": "seeds/shopify_media_image_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_image_data", "fqn": ["shopify_integration_tests", "shopify_media_image_data"], "alias": "shopify_media_image_data", "checksum": {"name": "sha256", "checksum": "98621ab1fd6334df5ffa045d9642644d5e465d8684cd635dd5bf8c157f964966"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"media_id": "bigint", "image_id": "bigint", "image_alt_text": "varchar", "image_height": "integer", "image_url": "varchar", "image_width": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_alt_text": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_height": "integer", "image_url": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_width": "integer"}}, "created_at": 1754505362.7269406, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_allocation_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_allocation_data.csv", "original_file_path": "seeds/shopify_gql_discount_allocation_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_allocation_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_allocation_data"], "alias": "shopify_gql_discount_allocation_data", "checksum": {"name": "sha256", "checksum": "66070d7edfd03f95cce45261aff8868c52ac272d23457e8b00d31f89bee13bb2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7300746, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_data": {"database": "postgres", "schema": "public", "name": "shopify_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_data.csv", "original_file_path": "seeds/shopify_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_data", "fqn": ["shopify_integration_tests", "shopify_product_data"], "alias": "shopify_product_data", "checksum": {"name": "sha256", "checksum": "e3e37227f60cd1960dc29421bf94785a59c058e4b6a4cd01262376f34947e320"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.733214, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_refund_data.csv", "original_file_path": "seeds/shopify_order_line_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data", "fqn": ["shopify_integration_tests", "shopify_order_line_refund_data"], "alias": "shopify_order_line_refund_data", "checksum": {"name": "sha256", "checksum": "5d28c17ac30b49f32cb92c5ade7643c3322d0a18e38094140cf06ace9fc85e72"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "id": "bigint", "location_id": "bigint", "refund_id": "bigint", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.7364523, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_item_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_item_data.csv", "original_file_path": "seeds/shopify_inventory_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data", "fqn": ["shopify_integration_tests", "shopify_inventory_item_data"], "alias": "shopify_inventory_item_data", "checksum": {"name": "sha256", "checksum": "11076fbaaf5cb0b1a1cdfdcb8520fc3c6049ef627ff305251d40f1e562dfcd52"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "measurement_id": "bigint", "legacy_resource_id": "bigint", "updated_at": "timestamp", "created_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "measurement_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "updated_at": "timestamp", "created_at": "timestamp"}}, "created_at": 1754505362.7398045, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_data.csv", "original_file_path": "seeds/shopify_gql_customer_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_data"], "alias": "shopify_gql_customer_data", "checksum": {"name": "sha256", "checksum": "ccd33f05c9942cd47dc7bf8abef925334aa740a60181b9ce13657323fe63267d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.743002, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_visit_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_visit_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_visit_data.csv", "original_file_path": "seeds/shopify_gql_customer_visit_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_visit_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_visit_data"], "alias": "shopify_gql_customer_visit_data", "checksum": {"name": "sha256", "checksum": "33bcb50366b3a771c4a408cf198e0ba0ed4308af90d0d9066fcf5b8a0cb74ce6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7461154, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_abandoned_checkout_data.csv", "original_file_path": "seeds/shopify_gql_abandoned_checkout_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data", "fqn": ["shopify_integration_tests", "shopify_gql_abandoned_checkout_data"], "alias": "shopify_gql_abandoned_checkout_data", "checksum": {"name": "sha256", "checksum": "f3999e4554d821e95b65fc49d14ab501151f3026c8936871197cabfbac47e25a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar", "shipping_address_phone": "varchar", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_discount_set_shop_amount": "float", "total_discount_set_pres_amount": "float", "total_duties_set_shop_amount": "float", "total_duties_set_pres_amount": "float", "total_line_items_price_set_shop_amount": "float", "total_line_items_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_tax_set_pres_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_discount_set_shop_amount": "float", "total_discount_set_pres_amount": "float", "total_duties_set_shop_amount": "float", "total_duties_set_pres_amount": "float", "total_line_items_price_set_shop_amount": "float", "total_line_items_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_tax_set_pres_amount": "float"}}, "created_at": 1754505362.7493846, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_quantity_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_quantity_data.csv", "original_file_path": "seeds/shopify_inventory_quantity_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data", "fqn": ["shopify_integration_tests", "shopify_inventory_quantity_data"], "alias": "shopify_inventory_quantity_data", "checksum": {"name": "sha256", "checksum": "8fa9f26df5501b6f7a065d74a2da5bf70329b7197e8c11139cda950874243d1c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "inventory_level_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_level_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.7527542, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_variant_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_variant_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_variant_data.csv", "original_file_path": "seeds/shopify_gql_product_variant_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_variant_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_variant_data"], "alias": "shopify_gql_product_variant_data", "checksum": {"name": "sha256", "checksum": "fba49f77a3f4d25f1d1ab0cb5fbf89e4309fffa50c45a5c2b51eccd816888748"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"compare_at_price": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"compare_at_price": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.7559671, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_bxgy_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_bxgy_data.csv", "original_file_path": "seeds/shopify_discount_code_bxgy_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_bxgy_data"], "alias": "shopify_discount_code_bxgy_data", "checksum": {"name": "sha256", "checksum": "676970b98658b2da21aec24691e589c9d1bd42703e266864d7af1d310f57fc53"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "varchar", "summary": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "summary": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}}, "created_at": 1754505362.7594543, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_data.csv", "original_file_path": "seeds/shopify_order_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_data", "fqn": ["shopify_integration_tests", "shopify_order_line_data"], "alias": "shopify_order_line_data", "checksum": {"name": "sha256", "checksum": "a4e65b3c0ee73ff8755aec89198632427baa2dbcc39d2e97659a8a976a92b8cd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "order_id": "bigint", "id": "bigint", "product_id": "bigint", "variant_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.7628653, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_media_data.csv", "original_file_path": "seeds/shopify_gql_product_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_media_data"], "alias": "shopify_gql_product_media_data", "checksum": {"name": "sha256", "checksum": "9b99a3ca51b4ecd63cc1d2a8a83a5a96dbf52e878990055a8e3a03b89666272d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7659638, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_quantity_data.csv", "original_file_path": "seeds/shopify_gql_inventory_quantity_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_quantity_data"], "alias": "shopify_gql_inventory_quantity_data", "checksum": {"name": "sha256", "checksum": "aa5cdc0d5565496916a0f61055b029546d99b6aab2a2433c11f936abeeafcb1b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7690985, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_shipping_line_data.csv", "original_file_path": "seeds/shopify_gql_order_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_shipping_line_data"], "alias": "shopify_gql_order_shipping_line_data", "checksum": {"name": "sha256", "checksum": "5e77fbe4d6a87d50fcee326d856b97033aa850a6bc3edab4b70064c89498c01b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.7721934, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_free_shipping_data.csv", "original_file_path": "seeds/shopify_discount_code_free_shipping_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_free_shipping_data"], "alias": "shopify_discount_code_free_shipping_data", "checksum": {"name": "sha256", "checksum": "55e37730e02503078ff03a624def743c4413c5feda1bdcdd38cc7d0dbe47e2bd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1754505362.7756424, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_tax_line_data.csv", "original_file_path": "seeds/shopify_gql_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_tax_line_data"], "alias": "shopify_gql_tax_line_data", "checksum": {"name": "sha256", "checksum": "08f6ab93144ae307e2e9f808278e5e6f13b1c76a609df067a7b3e18c52623bc2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7789154, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_variant_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_variant_media_data.csv", "original_file_path": "seeds/shopify_gql_product_variant_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_variant_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_variant_media_data"], "alias": "shopify_gql_product_variant_media_data", "checksum": {"name": "sha256", "checksum": "42fdae13aac1a3868e29e1586fa30cb8c01f5265ecb6040353c147ede2a30f9e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7820535, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_tag_data.csv", "original_file_path": "seeds/shopify_gql_order_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_tag_data"], "alias": "shopify_gql_order_tag_data", "checksum": {"name": "sha256", "checksum": "6fb78d3ccb69ab26e0ab8d781865dece254bfa951b1e1e57efe800e4c3c9aa9d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7850783, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_order_line_item_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_order_line_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_order_line_item_data"], "alias": "shopify_gql_fulfillment_order_line_item_data", "checksum": {"name": "sha256", "checksum": "038512c381c821457b427a8a6d19049e6eb9302f5acfaaebdf56896f31aa0c01"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7880812, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_product_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_product_data.csv", "original_file_path": "seeds/shopify_gql_collection_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_product_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_product_data"], "alias": "shopify_gql_collection_product_data", "checksum": {"name": "sha256", "checksum": "97528489feaf3fe056bfad2e1d5704c7a27d9fd0e90253b3fd64eceecfe31a7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7910879, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_data"], "alias": "shopify_gql_fulfillment_data", "checksum": {"name": "sha256", "checksum": "707d77c094f00fb4c21d1968550d66a131bbfbec48addd7d7137936b00aca500"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7940712, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_data.csv", "original_file_path": "seeds/shopify_gql_order_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_data"], "alias": "shopify_gql_order_data", "checksum": {"name": "sha256", "checksum": "5f2c9bc0a1d81234edf8945c72a99425ebe0450aad71cf418ca24b12c0ab3fd3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar", "shipping_address_phone": "varchar", "total_shipping_price_set_pres_amount": "float", "total_shipping_price_set_shop_amount": "float", "total_tax_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_discounts_set_pres_amount": "float", "total_discounts_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_tip_received_set_pres_amount": "float", "total_tip_received_set_shop_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_shipping_price_set_pres_amount": "float", "total_shipping_price_set_shop_amount": "float", "total_tax_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_discounts_set_pres_amount": "float", "total_discounts_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_tip_received_set_pres_amount": "float", "total_tip_received_set_shop_amount": "float"}}, "created_at": 1754505362.7980182, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_tender_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_tender_transaction_data.csv", "original_file_path": "seeds/shopify_gql_tender_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_tender_transaction_data", "fqn": ["shopify_integration_tests", "shopify_gql_tender_transaction_data"], "alias": "shopify_gql_tender_transaction_data", "checksum": {"name": "sha256", "checksum": "6e660fced8b377b4a7c7a3ea5c4cb1e8dff259e0b3596bfff56868873a7348dc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.801257, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_refund_data.csv", "original_file_path": "seeds/shopify_gql_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_refund_data", "fqn": ["shopify_integration_tests", "shopify_gql_refund_data"], "alias": "shopify_gql_refund_data", "checksum": {"name": "sha256", "checksum": "f8767945248aa31df8667d9a302c98da70ecfa3200f09ae9a8a08e56f648b1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.8042731, "relation_name": "\"postgres\".\"public\".\"shopify_gql_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"database": "postgres", "schema": "public", "name": "shopify_order_adjustment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_adjustment_data.csv", "original_file_path": "seeds/shopify_order_adjustment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data", "fqn": ["shopify_integration_tests", "shopify_order_adjustment_data"], "alias": "shopify_order_adjustment_data", "checksum": {"name": "sha256", "checksum": "48ce96540f19450088c661fd48bd8f6d58bb4ca13a1f048880e9984be367172e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.807363, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_product_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_tag_data.csv", "original_file_path": "seeds/shopify_product_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data", "fqn": ["shopify_integration_tests", "shopify_product_tag_data"], "alias": "shopify_product_tag_data", "checksum": {"name": "sha256", "checksum": "10203c8ee30c2d400a7f5126732f6c17985017df02cd4eceff90ef483e1c0729"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.8821514, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_shop_data": {"database": "postgres", "schema": "public", "name": "shopify_shop_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_shop_data.csv", "original_file_path": "seeds/shopify_shop_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_shop_data", "fqn": ["shopify_integration_tests", "shopify_shop_data"], "alias": "shopify_shop_data", "checksum": {"name": "sha256", "checksum": "1029ea325d95c96dbdf0c52a9fd8ef272516b15f99f834a507bff27eda689bba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}}, "created_at": 1754505362.8858209, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_line_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_line_refund_data.csv", "original_file_path": "seeds/shopify_gql_order_line_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_refund_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_line_refund_data"], "alias": "shopify_gql_order_line_refund_data", "checksum": {"name": "sha256", "checksum": "f42ec092931b7b6629fad2c44ca9d9cfa5b655980dd1140d69d8b687178b8d32"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"quantity": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"quantity": "float"}}, "created_at": 1754505362.8891497, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_adjustment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_adjustment_data.csv", "original_file_path": "seeds/shopify_gql_order_adjustment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_adjustment_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_adjustment_data"], "alias": "shopify_gql_order_adjustment_data", "checksum": {"name": "sha256", "checksum": "5477a81fe785b813c63156e1f04d73748f431cd6f247ad0f5ac75785a9cc1325"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.8923006, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_rule_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_rule_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_rule_data.csv", "original_file_path": "seeds/shopify_gql_collection_rule_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_rule_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_rule_data"], "alias": "shopify_gql_collection_rule_data", "checksum": {"name": "sha256", "checksum": "fc43b048e1c1c4e2dc67460f2d7ad884ccc7a3f02ba7d749a766459199c1a6aa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.8954396, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_rule_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_data.csv", "original_file_path": "seeds/shopify_fulfillment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_data"], "alias": "shopify_fulfillment_data", "checksum": {"name": "sha256", "checksum": "36993dd7ab6cd0951d3229c9d72237f4115292350e2659bdb717866f8fe8ebd8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.8984697, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_data.csv", "original_file_path": "seeds/shopify_collection_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_data", "fqn": ["shopify_integration_tests", "shopify_collection_data"], "alias": "shopify_collection_data", "checksum": {"name": "sha256", "checksum": "27cb0f0a37833f86bc7d0eb153acacdca987a69caf07dccdea4a072895f0a518"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754505362.9015872, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"database": "postgres", "schema": "public", "name": "shopify_order_note_attribute_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_note_attribute_data.csv", "original_file_path": "seeds/shopify_order_note_attribute_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data", "fqn": ["shopify_integration_tests", "shopify_order_note_attribute_data"], "alias": "shopify_order_note_attribute_data", "checksum": {"name": "sha256", "checksum": "9076f469c15ad5e18c4365039836b6739c2d7fc79ed987564ab8c1849994309c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9047108, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_discount_code_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_discount_code_data"], "alias": "shopify_abandoned_checkout_discount_code_data", "checksum": {"name": "sha256", "checksum": "f60365d56b94e348893476184122a98c6a4b939de1c7de1f7f3684e2ba344e48"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"checkout_id": "bigint", "discount_id": "bigint", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "varchar", "type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"checkout_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.907994, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_event_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_event_data.csv", "original_file_path": "seeds/shopify_fulfillment_event_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_event_data"], "alias": "shopify_fulfillment_event_data", "checksum": {"name": "sha256", "checksum": "ae538cd22df11081f1f4d2b6970c945d432f92af0e96fac2e10e1e09d886abef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9111958, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_media_data.csv", "original_file_path": "seeds/shopify_gql_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_media_data"], "alias": "shopify_gql_media_data", "checksum": {"name": "sha256", "checksum": "ffa3f564a810c9230c529066f5be55051045d32e14bfee4c04479ec3e5140a3c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9142485, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_bxgy_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_bxgy_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_bxgy_data"], "alias": "shopify_gql_discount_code_bxgy_data", "checksum": {"name": "sha256", "checksum": "93dd6da3ac1575fe61eed846dd3e2db2d75f16237571cfd4a4647f33ec612a28"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9175682, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_line_data"], "alias": "shopify_order_shipping_line_data", "checksum": {"name": "sha256", "checksum": "7a83a6e1121c088d6cd6ab3a944c683bfe4ac72ac440fcf97d55c3ca709b88a8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"discounted_price": "float", "price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"discounted_price": "float", "price": "float"}}, "created_at": 1754505362.9208128, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_item_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_item_data.csv", "original_file_path": "seeds/shopify_gql_inventory_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_item_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_item_data"], "alias": "shopify_gql_inventory_item_data", "checksum": {"name": "sha256", "checksum": "cb50caac3e13ddc3c4011ecbd1929f2c6876a6010e0e055ce0d32891a2caa6f0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.924015, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_data"], "alias": "shopify_abandoned_checkout_data", "checksum": {"name": "sha256", "checksum": "1fc66dc1ee0e84111cc6c3de1b49c3e172d477eadda206ec80095dbae720a7b4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"total_line_items_price": "float", "billing_address_phone": "varchar", "shipping_address_phone": "varchar", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"total_line_items_price": "float", "billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754505362.927239, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_location_data": {"database": "postgres", "schema": "public", "name": "shopify_location_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_location_data.csv", "original_file_path": "seeds/shopify_location_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_location_data", "fqn": ["shopify_integration_tests", "shopify_location_data"], "alias": "shopify_location_data", "checksum": {"name": "sha256", "checksum": "781bb070fbf96fd7e01d4229ccbac91f77bcd52726ffea2de9fa36abe6804b38"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9304318, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_location_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_location_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_location_data.csv", "original_file_path": "seeds/shopify_gql_location_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_location_data", "fqn": ["shopify_integration_tests", "shopify_gql_location_data"], "alias": "shopify_gql_location_data", "checksum": {"name": "sha256", "checksum": "0e3fcbfcccb24bff1a397108c5284f013e54846463ce693db515c9e843d65c82"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.9335546, "relation_name": "\"postgres\".\"public\".\"shopify_gql_location_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_data.csv", "original_file_path": "seeds/shopify_product_variant_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_data"], "alias": "shopify_product_variant_data", "checksum": {"name": "sha256", "checksum": "2c7c29665cf22fea389ed017edcd174d97384f19f5fa65e1e70073b6e29de1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "product_id": "bigint", "inventory_item_id": "bigint", "legacy_resource_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.9368868, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_shop_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_shop_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_shop_data.csv", "original_file_path": "seeds/shopify_gql_shop_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_shop_data", "fqn": ["shopify_integration_tests", "shopify_gql_shop_data"], "alias": "shopify_gql_shop_data", "checksum": {"name": "sha256", "checksum": "e691117d38fb0c6a9ad757f7adc677a8a3454f881d6c9f7d3fd625611addb1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.9400907, "relation_name": "\"postgres\".\"public\".\"shopify_gql_shop_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_tag_data.csv", "original_file_path": "seeds/shopify_gql_customer_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_tag_data"], "alias": "shopify_gql_customer_tag_data", "checksum": {"name": "sha256", "checksum": "b9990af8b8157368df2e7cd54ad712620ce79cfb8bcddbce8ceac25314d1f98f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9431813, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_tag_data.csv", "original_file_path": "seeds/shopify_customer_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data", "fqn": ["shopify_integration_tests", "shopify_customer_tag_data"], "alias": "shopify_customer_tag_data", "checksum": {"name": "sha256", "checksum": "27dad4d9a29bfd94903c156e01cdee4c0b33cfb2c5d88af98b89c19287596e5c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.9462678, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_note_attribute_data.csv", "original_file_path": "seeds/shopify_gql_order_note_attribute_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_note_attribute_data"], "alias": "shopify_gql_order_note_attribute_data", "checksum": {"name": "sha256", "checksum": "fdc162afb1aaf6ccc432a5df8eb1d42ebe945151101a43edf6176d98c3cd4ec6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.949351, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_metafield_data": {"database": "postgres", "schema": "public", "name": "shopify_metafield_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_metafield_data.csv", "original_file_path": "seeds/shopify_metafield_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_metafield_data", "fqn": ["shopify_integration_tests", "shopify_metafield_data"], "alias": "shopify_metafield_data", "checksum": {"name": "sha256", "checksum": "f9586af820e5f4c1d04e71e5a8fc699080ecb101b85735abe9724a8ea9bf0d97"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"value_type": "varchar", "type": "varchar", "id": "bigint", "owner_id": "bigint", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "owner_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754505362.9525816, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_level_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_level_data.csv", "original_file_path": "seeds/shopify_inventory_level_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data", "fqn": ["shopify_integration_tests", "shopify_inventory_level_data"], "alias": "shopify_inventory_level_data", "checksum": {"name": "sha256", "checksum": "d8bde61ad5a46b099f9e615464abf20677a00869ba308860ce0c80e59ebf40bb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "location_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.9558501, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_transaction_data.csv", "original_file_path": "seeds/shopify_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_transaction_data", "fqn": ["shopify_integration_tests", "shopify_transaction_data"], "alias": "shopify_transaction_data", "checksum": {"name": "sha256", "checksum": "def7b7fc64e42148b900dcd1f7327b470e5d3b0ed8e73f263e46a715ecb09199"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.9591663, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_data": {"database": "postgres", "schema": "public", "name": "shopify_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_data.csv", "original_file_path": "seeds/shopify_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_data", "fqn": ["shopify_integration_tests", "shopify_media_data"], "alias": "shopify_media_data", "checksum": {"name": "sha256", "checksum": "7c6234841dd8ff01ec7cd72fb11d8f933c4b12efbf8470324f0671f6afb6e266"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "status": "varchar", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754505362.9624126, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_redeem_code_data.csv", "original_file_path": "seeds/shopify_gql_discount_redeem_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_redeem_code_data"], "alias": "shopify_gql_discount_redeem_code_data", "checksum": {"name": "sha256", "checksum": "0b1fd8ebdc11adc10b729eb22fe80d4e8f69d29dbc42114ea54d5977fdb6d638"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.965623, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_data.csv", "original_file_path": "seeds/shopify_gql_collection_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_data"], "alias": "shopify_gql_collection_data", "checksum": {"name": "sha256", "checksum": "29e0276fbf7a043b812e101d81438672484cca31a69ba9c4ce2df96dc215a3b2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9687173, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_application_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_application_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_application_data.csv", "original_file_path": "seeds/shopify_gql_discount_application_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_application_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_application_data"], "alias": "shopify_gql_discount_application_data", "checksum": {"name": "sha256", "checksum": "02bf15863aaf29b404a84ab214ff73121e4ee411f2e6fecf3f757e179b6c9c2e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9717584, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_url_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_url_tag_data.csv", "original_file_path": "seeds/shopify_order_url_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_url_tag_data"], "alias": "shopify_order_url_tag_data", "checksum": {"name": "sha256", "checksum": "18d23ae4cb9bb569772db2a5622ab7f84281f3391b6c9295973a8fed3d887567"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.974798, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_app_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_app_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_app_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_app_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_app_data"], "alias": "shopify_gql_discount_code_app_data", "checksum": {"name": "sha256", "checksum": "b6ea6c09ffbae0eedd94577b2ec3a6074bff0d33b6338d895111b7f9521ce049"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9778373, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_allocation_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_allocation_data.csv", "original_file_path": "seeds/shopify_discount_allocation_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_allocation_data", "fqn": ["shopify_integration_tests", "shopify_discount_allocation_data"], "alias": "shopify_discount_allocation_data", "checksum": {"name": "sha256", "checksum": "22cd7acd65491fcbbd2d2de60dc69b993fa1ac45d90b41dee7976905d6418fcf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "varchar", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "varchar", "discount_application_index": "integer", "index": "integer", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_application_index": "integer", "index": "integer", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.9811244, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_discount_code_data.csv", "original_file_path": "seeds/shopify_gql_order_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_discount_code_data"], "alias": "shopify_gql_order_discount_code_data", "checksum": {"name": "sha256", "checksum": "aafb732b582b0f19c9f004febfb986cf33a2d090c53d87dc5d9875584d1c9643"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9842792, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_transaction_data.csv", "original_file_path": "seeds/shopify_gql_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_transaction_data", "fqn": ["shopify_integration_tests", "shopify_gql_transaction_data"], "alias": "shopify_gql_transaction_data", "checksum": {"name": "sha256", "checksum": "6daf1a707db559a969488734847d9996d22fc0c1eb96d91c6ae621e6fa0c9a53"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9872966, "relation_name": "\"postgres\".\"public\".\"shopify_gql_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_product": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_product", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_product.csv", "original_file_path": "seeds/shopify_gql_collection_product.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_product", "fqn": ["shopify_integration_tests", "shopify_gql_collection_product"], "alias": "shopify_gql_collection_product", "checksum": {"name": "sha256", "checksum": "97528489feaf3fe056bfad2e1d5704c7a27d9fd0e90253b3fd64eceecfe31a7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9903212, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_tender_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tender_transaction_data.csv", "original_file_path": "seeds/shopify_tender_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tender_transaction_data", "fqn": ["shopify_integration_tests", "shopify_tender_transaction_data"], "alias": "shopify_tender_transaction_data", "checksum": {"name": "sha256", "checksum": "7d1b7ebc547f9068b258e49431a3955f9143b99afa151664aa26a2ad9c5b479c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.993488, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tax_line_data.csv", "original_file_path": "seeds/shopify_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_tax_line_data"], "alias": "shopify_tax_line_data", "checksum": {"name": "sha256", "checksum": "af3615f675a22513590ef6a8abcce714b286f06c7532e650a56787c6afbd36de"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float", "rate": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float", "rate": "float"}}, "created_at": 1754505362.9966197, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_level_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_level_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_level_data.csv", "original_file_path": "seeds/shopify_gql_inventory_level_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_level_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_level_data"], "alias": "shopify_gql_inventory_level_data", "checksum": {"name": "sha256", "checksum": "aceaf50aec7f3b9a2fe70cc7a95c7c5a9206d11c10469987fdb88503051a0a3f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9997716, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_shipping_line_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_shipping_line_data"], "alias": "shopify_abandoned_checkout_shipping_line_data", "checksum": {"name": "sha256", "checksum": "9b1e873b952f85626352f2ca85b67b7a14e54e7edd01467951653fc2716023d5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"markup": "varchar", "price": "float", "original_shop_markup": "varchar", "original_shop_price": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "price": "float", "original_shop_markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "original_shop_price": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505363.0029619, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_app_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_app_data.csv", "original_file_path": "seeds/shopify_discount_code_app_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_app_data"], "alias": "shopify_discount_code_app_data", "checksum": {"name": "sha256", "checksum": "079a9204224ded648d6e15b794bf77034e41f319b72801fcfee0f5b1c9e37d77"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1754505363.0064452, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_media_data.csv", "original_file_path": "seeds/shopify_product_variant_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_media_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_media_data"], "alias": "shopify_product_variant_media_data", "checksum": {"name": "sha256", "checksum": "ffa08a9130b2aa66803955797f46a610fc32abcdb404635c6c1dc3a8b289e48b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_variant_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505363.0098722, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_media_image_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_media_image_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_media_image_data.csv", "original_file_path": "seeds/shopify_gql_media_image_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_media_image_data", "fqn": ["shopify_integration_tests", "shopify_gql_media_image_data"], "alias": "shopify_gql_media_image_data", "checksum": {"name": "sha256", "checksum": "6581609f609de50cc0b430e64d53a728502cdaea962a90bffd1e5f72079cfc47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505363.012954, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_image_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "model.shopify.shopify__calendar": {"database": "postgres", "schema": "public_shopify", "name": "shopify__calendar", "resource_type": "model", "package_name": "shopify", "path": "utils/shopify__calendar.sql", "original_file_path": "models/utils/shopify__calendar.sql", "unique_id": "model.shopify.shopify__calendar", "fqn": ["shopify", "utils", "shopify__calendar"], "alias": "shopify__calendar", "checksum": {"name": "sha256", "checksum": "5295fe06c949deb345450af0ad6b0335b6edc25b2e883a4f2452ae276a3e85f4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1754505363.2389095, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__calendar\"", "raw_code": "{% set start_date = var('shopify__calendar_start_date', '2019-01-01') %}\n\n{{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date=\"cast('\" ~ start_date ~ \"' as date)\",\n end_date=\"current_date\"\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.date_spine"], "nodes": []}, "compiled_path": "target/compiled/shopify/models/utils/shopify__calendar.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 2409\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2019-01-01' as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= current_date\n\n)\n\nselect * from filtered\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_cohorts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_cohorts.sql", "original_file_path": "models/rest/shopify__customer_cohorts.sql", "unique_id": "model.shopify.shopify__customer_cohorts", "fqn": ["shopify", "rest", "shopify__customer_cohorts"], "alias": "shopify__customer_cohorts", "checksum": {"name": "sha256", "checksum": "8b92c597e275f6464fbf1375ffb22714ad640588e7f163bb322202ef25f70304"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "created_at": 1754505368.255918, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == 'rest',\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'customer_id'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customers\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast(date_trunc('month', first_order_timestamp) as date) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n customer_id\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify__customer_email_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_email_cohorts.sql", "original_file_path": "models/rest/shopify__customer_email_cohorts.sql", "unique_id": "model.shopify.shopify__customer_email_cohorts", "fqn": ["shopify", "rest", "shopify__customer_email_cohorts"], "alias": "shopify__customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "3c60f6ffa19bb9a0e60b9b3a02e5c5a3a5baa560bcfa85b39e38194b2bae552a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's (on the EMAIL grain) performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "created_at": 1754505368.2571669, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == 'rest',\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'email'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customer_emails') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customer_emails", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_email_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customer_emails\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n email\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.email as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify__inventory_levels": {"database": "postgres", "schema": "public_shopify", "name": "shopify__inventory_levels", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__inventory_levels.sql", "original_file_path": "models/rest/shopify__inventory_levels.sql", "unique_id": "model.shopify.shopify__inventory_levels", "fqn": ["shopify", "rest", "shopify__inventory_levels"], "alias": "shopify__inventory_levels", "checksum": {"name": "sha256", "checksum": "002b6af06d7fddeab16ac942f625a60d1d40315396b4f4a5c1013ac3febbbb93"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of inventory items (which have a 1:1 relationship with product variants) and locations. \nInventory Level = Inventory item @ a Location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_item_deleted": {"name": "is_inventory_item_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "(DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_created_at": {"name": "inventory_item_created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_updated_at": {"name": "inventory_item_updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_location_deleted": {"name": "is_location_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_location_active": {"name": "is_location_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_created_at": {"name": "location_created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy_location": {"name": "is_legacy_location", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_name": {"name": "location_name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_updated_at": {"name": "location_updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_media_id": {"name": "variant_media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_variant_taxable": {"name": "is_variant_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_orders": {"name": "count_distinct_orders", "description": "The number of distinct orders placed from this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customers": {"name": "count_distinct_customers", "description": "The number of distinct customers (based on customer_id) that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customer_emails": {"name": "count_distinct_customer_emails", "description": "The number of distinct customer emails that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timetamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "The timestamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_refunds": {"name": "subtotal_sold_refunds", "description": "The monetary amount (in shop currency) of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_refunds": {"name": "quantity_sold_refunds", "description": "The quantity of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_subtotal_sold": {"name": "net_subtotal_sold", "description": "Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_quantity_sold": {"name": "net_quantity_sold", "description": "Net quantity sold from this inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_pending": {"name": "count_fulfillment_pending", "description": "Count of currently pending distinct fulfillments for this inventory level. \"Pending\" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_open": {"name": "count_fulfillment_open", "description": "Count of currently open distinct fulfillments for this inventory level. \"Open\" = The fulfillment has been acknowledged by the service and is in processing.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_success": {"name": "count_fulfillment_success", "description": "Count of successful distinct fulfillments for this inventory level. \"Success\" = The fulfillment was successful.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_cancelled": {"name": "count_fulfillment_cancelled", "description": "Count of cancelled distinct fulfillments for this inventory level. \"Cancelled\" = The fulfillment was cancelled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_error": {"name": "count_fulfillment_error", "description": "Count of distinct fulfillments for this inventory level that encountered an error. \"Error\" = There was an error with the fulfillment request.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of distinct fulfillments for this inventory level that failed. \"Failure\" = The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "available_quantity": {"name": "available_quantity", "description": "The available quantity that a merchant can sell, determined by coalescing the `quantity` where inventory_state_name = 'available' from `stg_shopify__inventory_quantity`and `available_quantity` from the deprecated `stg_shopify__inventory_level`. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "incoming_quantity": {"name": "incoming_quantity", "description": "The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "on_hand_quantity": {"name": "on_hand_quantity", "description": "The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "committed_quantity": {"name": "committed_quantity", "description": "The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reserved_quantity": {"name": "reserved_quantity", "description": "The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "damaged_quantity": {"name": "damaged_quantity", "description": "The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "safety_stock_quantity": {"name": "safety_stock_quantity", "description": "The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quality_control_quantity": {"name": "quality_control_quantity", "description": "The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3676093, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__inventory_levels\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith inventory_level as (\n\n select *\n from {{ var('shopify_inventory_level') }}\n), \n\ninventory_item as (\n\n select *\n from {{ var('shopify_inventory_item') }}\n),\n\ninventory_quantity as (\n\n select *\n from {{ var('shopify_inventory_quantity') }}\n),\n\nlocation as (\n\n select *\n from {{ var('shopify_location') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n),\n\nproduct as (\n\n select *\n from {{ var('shopify_product') }}\n),\n\ninventory_level_aggregated as (\n\n select *\n from {{ ref('int_shopify__inventory_level__aggregates') }}\n),\n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%}\n {% for inventory_state in inventory_states -%}\n , sum(case when lower(inventory_state_name) = {{ \"'\" ~ inventory_state|lower ~ \"'\" }}\n {% if inventory_state|lower == 'available ' -%}\n then coalesce(inventory_quantity.quantity, inventory_level.available_quantity)\n {% else -%}\n then inventory_quantity.quantity\n {% endif -%}\n end) as {{ inventory_state }}_quantity\n {% endfor -%}\n\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id as variant_media_id,\n {% endif %}\n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }}\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n {% endif %}\n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n\n {% for inventory_state in inventory_states -%}\n , inventory_quantity_aggregated.{{ inventory_state }}_quantity\n {% endfor -%}\n\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level", "package": null, "version": null}, {"name": "stg_shopify__inventory_item", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity", "package": null, "version": null}, {"name": "stg_shopify__location", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "int_shopify__inventory_level__aggregates", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__inventory_levels.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), inventory_level as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"\n), \n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\n),\n\ninventory_quantity as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"\n),\n\nlocation as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__location\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n),\n\nproduct as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n),\n\ninventory_level_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__inventory_level__aggregates\n),\n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n , sum(case when lower(inventory_state_name) = 'incoming'\n then inventory_quantity.quantity\n end) as incoming_quantity\n , sum(case when lower(inventory_state_name) = 'on_hand'\n then inventory_quantity.quantity\n end) as on_hand_quantity\n , sum(case when lower(inventory_state_name) = 'available'\n then inventory_quantity.quantity\n end) as available_quantity\n , sum(case when lower(inventory_state_name) = 'committed'\n then inventory_quantity.quantity\n end) as committed_quantity\n , sum(case when lower(inventory_state_name) = 'reserved'\n then inventory_quantity.quantity\n end) as reserved_quantity\n , sum(case when lower(inventory_state_name) = 'damaged'\n then inventory_quantity.quantity\n end) as damaged_quantity\n , sum(case when lower(inventory_state_name) = 'safety_stock'\n then inventory_quantity.quantity\n end) as safety_stock_quantity\n , sum(case when lower(inventory_state_name) = 'quality_control'\n then inventory_quantity.quantity\n end) as quality_control_quantity\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n \n product_variant_media.media_id as variant_media_id,\n \n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n \n\n\n\n\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n \n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n \n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n \n , coalesce(inventory_level_aggregated.count_fulfillment_pending, 0) as count_fulfillment_pending\n \n , coalesce(inventory_level_aggregated.count_fulfillment_open, 0) as count_fulfillment_open\n \n , coalesce(inventory_level_aggregated.count_fulfillment_success, 0) as count_fulfillment_success\n \n , coalesce(inventory_level_aggregated.count_fulfillment_cancelled, 0) as count_fulfillment_cancelled\n \n , coalesce(inventory_level_aggregated.count_fulfillment_error, 0) as count_fulfillment_error\n \n , coalesce(inventory_level_aggregated.count_fulfillment_failure, 0) as count_fulfillment_failure\n \n\n , inventory_quantity_aggregated.incoming_quantity\n , inventory_quantity_aggregated.on_hand_quantity\n , inventory_quantity_aggregated.available_quantity\n , inventory_quantity_aggregated.committed_quantity\n , inventory_quantity_aggregated.reserved_quantity\n , inventory_quantity_aggregated.damaged_quantity\n , inventory_quantity_aggregated.safety_stock_quantity\n , inventory_quantity_aggregated.quality_control_quantity\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify__inventory_level__aggregates", "sql": " __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "location_id"], "time_spine": null}, "model.shopify.shopify__discounts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__discounts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__discounts.sql", "original_file_path": "models/rest/shopify__discounts.sql", "unique_id": "model.shopify.shopify__discounts", "fqn": ["shopify", "rest", "shopify__discounts"], "alias": "shopify__discounts", "checksum": {"name": "sha256", "checksum": "62fa5f60084ea0263c89743d8e99e3642dc01df675b0f810158be89eba5984aa"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts.\n", "columns": {"discounts_unique_key": {"name": "discounts_unique_key", "description": "Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "The case-insensitive discount code that customers use at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether the discount can be used only once per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "Number of times the discount has been used (asynchronously updated).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "Number of unique redeem codes associated with the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether `codes_count` is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "Timestamp when the discount ends or expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "Timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "Current status of the discount (e.g. 'active', 'expired', 'scheduled').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount\u2019s display name in the Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to 'all' or 'entitled' items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "application_type": {"name": "application_type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Numeric value of the discount (e.g., percentage or fixed amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "How the discount value is interpreted (e.g., 'percentage', 'fixed_amount').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_discount_amount": {"name": "total_order_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off of orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_discount_amount": {"name": "total_abandoned_checkout_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_line_items_price": {"name": "total_order_line_items_price", "description": "Total monetary amount (in shop currency) of line items for orders that have used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_shipping_cost": {"name": "total_order_shipping_cost", "description": "Total shipping costs for orders that used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_shipping_price": {"name": "total_abandoned_checkout_shipping_price", "description": "Total projected shipping costs for abandoned checkouts that applied this discount first.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_refund_amount": {"name": "total_order_refund_amount", "description": "Total refunded amount (in shop currency) for orders that used this discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer emails who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_discount_amount": {"name": "avg_order_discount_amount", "description": "Average amount (in shop currency) of discount taken off orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "count_orders": {"name": "count_orders", "description": "Count of orders in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customers": {"name": "count_abandoned_checkout_customers", "description": "Distinct count of customers who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customer_emails": {"name": "count_abandoned_checkout_customer_emails", "description": "Distinct count of customer emails who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3721654, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__discounts\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith discounts_enriched as (\n\n select *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as discounts_unique_key\n from {{ ref('int_shopify__discount_code_enriched')}}\n),\n\norders_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__order_aggregates')}}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\nabandoned_checkouts_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__abandoned_checkouts')}}\n),\n{% endif %}\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n {% endif %} \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n {% endif %}\n)\n\nselect * \nfrom aggregates_joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discount_code_enriched", "package": null, "version": null}, {"name": "int_shopify__discounts__order_aggregates", "package": null, "version": null}, {"name": "int_shopify__discounts__abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__discounts__abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__discounts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n), __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), discounts_enriched as (\n\n select *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_code_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as discounts_unique_key\n from __dbt__cte__int_shopify__discount_code_enriched\n),\n\norders_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__order_aggregates\n),\n\n\nabandoned_checkouts_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__abandoned_checkouts\n),\n\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n \n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n \n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n \n)\n\nselect * \nfrom aggregates_joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discount_code_enriched", "sql": " __dbt__cte__int_shopify__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n)"}, {"id": "model.shopify.int_shopify__discounts__order_aggregates", "sql": " __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}, {"id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "sql": " __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discounts_unique_key"], "time_spine": null}, "model.shopify.shopify__customers": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customers.sql", "original_file_path": "models/rest/shopify__customers.sql", "unique_id": "model.shopify.shopify__customers", "fqn": ["shopify", "rest", "shopify__customers"], "alias": "shopify__customers", "checksum": {"name": "sha256", "checksum": "0ecd7f0b22e3a25224a922e9f02cfa4d5deadd8d3b62d124e6caff3602c729c0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money in shop currency that the customer has spent on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3476858, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customers\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customers as (\n\n select \n {{ dbt_utils.star(from=ref('stg_shopify__customer'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ var('shopify_customer') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__customers__order_aggregates' )}}\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where customer_id is not null\n group by 1,2\n{% endif %}\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags\n\n from {{ var('shopify_customer_tag' )}}\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n {% endif %}\n\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "shopify__customers__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customers.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n), customers as (\n\n select \n \"customer_id\",\n \"email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"phone\",\n \"account_state\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"marketing_consent_updated_at\",\n \"created_timestamp\",\n \"updated_timestamp\",\n \"_fivetran_synced\",\n \"source_relation\"\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), orders as (\n\n select *\n from __dbt__cte__shopify__customers__order_aggregates\n\n\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where customer_id is not null\n group by 1,2\n\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as customer_tags\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n \n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__customers__order_aggregates", "sql": " __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__orders.sql", "original_file_path": "models/rest/shopify__orders.sql", "unique_id": "model.shopify.shopify__orders", "fqn": ["shopify", "rest", "shopify__orders"], "alias": "shopify__orders", "checksum": {"name": "sha256", "checksum": "391f81515fc070ec8ddcf72d17f302ea6b76c9341329302d11ed57e3ff96b0e0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"orders_unique_key": {"name": "orders_unique_key", "description": "Unique key representing an order. Hashed on 'order_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count": {"name": "line_item_count", "description": "Number of line items included in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_order_seq_number": {"name": "customer_order_seq_number", "description": "The sequential number of the order as it relates to the customer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "new_vs_repeat": {"name": "new_vs_repeat", "description": "Whether the order was a new or repeat order for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to the adjustment on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "The checkout token applied to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price set to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_total_shipping_tax": {"name": "order_total_shipping_tax", "description": "Total shipping tax attributed to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_tags": {"name": "order_tags", "description": "List of tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_url_tags": {"name": "order_url_tags", "description": "List of url tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number_of_fulfillments": {"name": "number_of_fulfillments", "description": "Total fulfillments for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_services": {"name": "fulfillment_services", "description": "List of fulfillment services for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_companies": {"name": "tracking_companies", "description": "List of tracking companies for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "List of tracking numbers for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied on the order", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3451393, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_id']) }} as orders_unique_key\n from {{ var('shopify_order') }}\n \n), order_lines as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), order_adjustments as (\n\n select *\n from {{ var('shopify_order_adjustment') }}\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from {{ var('shopify_order_discount_code') }}\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_tags\n \n from {{ var('shopify_order_tag') }}\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_url_tags\n \n from {{ var('shopify_order_url_tag') }}\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n {{ fivetran_utils.string_agg(\"distinct cast(service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_company as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_number as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_numbers\n\n from {{ var('shopify_fulfillment') }}\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast({{ fivetran_utils.json_parse(\"total_shipping_price_set\",[\"shop_money\",\"amount\"]) }} as {{ dbt.type_float() }}) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify__order_tag", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.json_parse", "macro.dbt.type_float", "macro.shopify.shopify_partition_by_cols"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag", "model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__orders.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), orders as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as orders_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n \n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), order_adjustments as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_url_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n \n string_agg(distinct cast(service as TEXT), ', ')\n\n as fulfillment_services,\n \n string_agg(distinct cast(tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(tracking_number as TEXT), ', ')\n\n as tracking_numbers\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast(\n\n total_shipping_price_set::json #>> '{shop_money,amount}'\n\n as float) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by \n\n\n customer_id\n\n\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["orders_unique_key"], "time_spine": null}, "model.shopify.shopify__transactions": {"database": "postgres", "schema": "public_shopify", "name": "shopify__transactions", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__transactions.sql", "original_file_path": "models/rest/shopify__transactions.sql", "unique_id": "model.shopify.shopify__transactions", "fqn": ["shopify", "rest", "shopify__transactions"], "alias": "shopify__transactions", "checksum": {"name": "sha256", "checksum": "4c15f502fa243723bce0834561afdefee97a2ca1dee9e4bebadad7e2e2f42c1a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transactions_unique_id": {"name": "transactions_unique_id", "description": "Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of the date the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "exchange_rate": {"name": "exchange_rate", "description": "The exchange rate between the home currency and the currency of sale at the time of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_calculated_amount": {"name": "currency_exchange_calculated_amount", "description": "The total amount of the transaction with the currency exchange rate applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Method of payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_created_timestamp": {"name": "parent_created_timestamp", "description": "Created on timestamp of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_kind": {"name": "parent_kind", "description": "Kind of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_amount": {"name": "parent_amount", "description": "Amount of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_status": {"name": "parent_status", "description": "Status of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "Timestamp when the authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3632274, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__transactions\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith transactions as (\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'transaction_id'])}} as transactions_unique_id\n from {{ var('shopify_transaction') }} \n\n), tender_transactions as (\n\n select *\n from {{ var('shopify_tender_transaction') }}\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.json_parse", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__transactions.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as transactions_unique_id\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\" \n\n), tender_transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) as exchange_rate,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["transactions_unique_id"], "time_spine": null}, "model.shopify.shopify__order_lines": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_lines", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__order_lines.sql", "original_file_path": "models/rest/shopify__order_lines.sql", "unique_id": "model.shopify.shopify__order_lines", "fqn": ["shopify", "rest", "shopify__order_lines"], "alias": "shopify__order_lines", "checksum": {"name": "sha256", "checksum": "4bea1545ae004b8d366bcf551eead0be215407510cf95a048869e1346d111116"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item of an order in Shopify.", "columns": {"order_lines_unique_key": {"name": "order_lines_unique_key", "description": "Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_quantity": {"name": "refunded_quantity", "description": "Quantity of the item that has been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net_refunds": {"name": "quantity_net_refunds", "description": "Quantity ordered, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_compare_at_price": {"name": "variant_compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_position": {"name": "variant_position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sku": {"name": "variant_sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_taxable": {"name": "variant_is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_subtotal": {"name": "refunded_subtotal", "description": "Subtotal amount of the refund applied to the order line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_net_refunds": {"name": "subtotal_net_refunds", "description": "Subtotal of the order line with refunds subtracted in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_types": {"name": "restock_types", "description": "List of how this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_tax": {"name": "order_line_tax", "description": "Total taxes for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The total pre tax price of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3599467, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_lines\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_line_id']) }} as order_lines_unique_key\n from {{ var('shopify_order_line') }}\n\n), product_variants as (\n\n select *\n from {{ var('shopify_product_variant') }}\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), \n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n {{ fivetran_utils.string_agg(\"distinct cast(refunds.restock_type as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from {{ var('shopify_tax_line')}}\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id,\n {% endif %}\n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__order_lines.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as order_lines_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), \n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n \n string_agg(distinct cast(refunds.restock_type as TEXT), ', ')\n\n as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n \n product_variant_media.media_id,\n \n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n \n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_lines_unique_key"], "time_spine": null}, "model.shopify.shopify__products": {"database": "postgres", "schema": "public_shopify", "name": "shopify__products", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__products.sql", "original_file_path": "models/rest/shopify__products.sql", "unique_id": "model.shopify.shopify__products", "fqn": ["shopify", "rest", "shopify__products"], "alias": "shopify__products", "checksum": {"name": "sha256", "checksum": "cfa6ebbb138e82d7287894a9ab6ea7d2ae5511199880dd0650bea0aeaf4f09a8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity_sold": {"name": "total_quantity_sold", "description": "Quantity of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (in shop currency) of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_net_refunds": {"name": "quantity_sold_net_refunds", "description": "Quantity of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_net_refunds": {"name": "subtotal_sold_net_refunds", "description": "Total amount (in shop currency) of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the product was first ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the product was most recently ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order_line": {"name": "avg_quantity_per_order_line", "description": "Average quantity per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_discount": {"name": "product_total_discount", "description": "Total discounts associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_discount_per_order_line": {"name": "product_avg_discount_per_order_line", "description": "Average discount per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_tax": {"name": "product_total_tax", "description": "Total taxes associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_tax_per_order_line": {"name": "product_avg_tax_per_order_line", "description": "Average taxes per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants": {"name": "count_variants", "description": "Count of product variants.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_product_media": {"name": "has_product_media", "description": "If the product has media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collections": {"name": "collections", "description": "Comma-separated list of collections associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tags": {"name": "tags", "description": "Comma-separated list of tags associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3521218, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__products\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith products as (\n\n select *\n from {{ ref('int_shopify__products_with_aggregates') }}\n\n), product_order_lines as (\n\n select *\n from {{ ref('int_shopify__product__order_line_aggregates')}}\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__products_with_aggregates", "package": null, "version": null}, {"name": "int_shopify__product__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.int_shopify__product__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__products.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), products as (\n\n select *\n from __dbt__cte__int_shopify__products_with_aggregates\n\n), product_order_lines as (\n\n select *\n from __dbt__cte__int_shopify__product__order_line_aggregates\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__products_with_aggregates", "sql": " __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify__product__order_line_aggregates", "sql": " __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__daily_shop": {"database": "postgres", "schema": "public_shopify", "name": "shopify__daily_shop", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__daily_shop.sql", "original_file_path": "models/rest/shopify__daily_shop.sql", "unique_id": "model.shopify.shopify__daily_shop", "fqn": ["shopify", "rest", "shopify__daily_shop"], "alias": "shopify__daily_shop", "checksum": {"name": "sha256", "checksum": "26b5fbd6bc74a61de3e6051ace6b3c123b9a789b1871f098d3803e2a0a348335"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a day in your Shop, enriched with a suite of metrics.\n", "columns": {"date_day": {"name": "date_day", "description": "Day for which the shop activity is being measured.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders": {"name": "count_orders", "description": "Count of the distinct orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_line_items": {"name": "count_line_items", "description": "Count of the line items included in orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer email addresses who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "Average adjusted total per order placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount (in shop currency) applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to adjustments (in shop currency) on the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of the discount allocated to this day's orders in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied by customers on orders for this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_locations_ordered_from": {"name": "count_locations_ordered_from", "description": "Distinct locations with orders placed against them on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_discounts": {"name": "count_orders_with_discounts", "description": "Count of orders in which a discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_refunds": {"name": "count_orders_with_refunds", "description": "Count of orders in which there was a refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "Timestamp of the first order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "Timestamp of the last order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_refunded": {"name": "quantity_refunded", "description": "The quantity of goods ORDERED on this day that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net": {"name": "quantity_net", "description": "Net quantity sold from this shop on this day. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants_sold": {"name": "count_variants_sold", "description": "Distinct product variants sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_products_sold": {"name": "count_products_sold", "description": "Distinct products sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_gift_cards_sold": {"name": "quantity_gift_cards_sold", "description": "Quantity of gift cards sold on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_requiring_shipping": {"name": "quantity_requiring_shipping", "description": "Quantity of goods sold on this day that require shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers_abandoned_checkout": {"name": "count_customers_abandoned_checkout", "description": "Count of distinct customers who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails_abandoned_checkout": {"name": "count_customer_emails_abandoned_checkout", "description": "Count of distinct customer emails who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_attempted_delivery": {"name": "count_fulfillment_attempted_delivery", "description": "Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delivered": {"name": "count_fulfillment_delivered", "description": "Count of successful distinct fulfillments successfully delivered on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_in_transit": {"name": "count_fulfillment_in_transit", "description": "Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_out_for_delivery": {"name": "count_fulfillment_out_for_delivery", "description": "Count of distinct fulfillments being delivered to their final destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_ready_for_pickup": {"name": "count_fulfillment_ready_for_pickup", "description": "Count of distinct fulfillments ready for pickup at a shipping depot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_picked_up": {"name": "count_fulfillment_picked_up", "description": "Count of distinct fulfillments successfully picked up on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_printed": {"name": "count_fulfillment_label_printed", "description": "Count of distinct fulfillments for which a purchased shipping label has been printed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_purchased": {"name": "count_fulfillment_label_purchased", "description": "Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_confirmed": {"name": "count_fulfillment_confirmed", "description": "Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delayed": {"name": "count_fulfillment_delayed", "description": "Count of delayed distinct fulfillments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_line_item_count": {"name": "avg_line_item_count", "description": "Average line item count for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount": {"name": "avg_discount", "description": "Average total discount placed on orders on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_discount_amount": {"name": "avg_shipping_discount_amount", "description": "Average discount amount (in shop currency) allocated toward shipping on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_percentage_calc_discount_amount": {"name": "avg_percentage_calc_discount_amount", "description": "Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_fixed_amount_discount_amount": {"name": "avg_fixed_amount_discount_amount", "description": "Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_sold": {"name": "avg_quantity_sold", "description": "Average quantity sold per order on this day. Includes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_net": {"name": "avg_quantity_net", "description": "Average net quantity sold per order on this day. Excludes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3755093, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__daily_shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith shop as (\n\n select *\n from {{ var('shopify_shop') }}\n),\n\ncalendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from {{ ref('int_shopify__daily_orders') }}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\ndaily_abandoned_checkouts as (\n\n select *\n from {{ ref('int_shopify__daily_abandoned_checkouts') }}\n),\n{% endif %}\n\n{% if var('shopify_using_fulfillment_event', false) %}\ndaily_fulfillment as (\n\n select *\n from {{ ref('int_shopify__daily_fulfillment') }}\n),\n{% endif %}\n\nshop_calendar as (\n\n select\n cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n {% endif %}\n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n {% endif %}\n \n)\n\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "shopify__calendar", "package": null, "version": null}, {"name": "int_shopify__daily_orders", "package": null, "version": null}, {"name": "int_shopify__daily_abandoned_checkouts", "package": null, "version": null}, {"name": "int_shopify__daily_fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__shop", "model.shopify.shopify__calendar", "model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__daily_shop.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n), __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n), __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n), shop as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n),\n\ncalendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('day', date_day) as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from __dbt__cte__int_shopify__daily_orders\n),\n\n\ndaily_abandoned_checkouts as (\n\n select *\n from __dbt__cte__int_shopify__daily_abandoned_checkouts\n),\n\n\n\ndaily_fulfillment as (\n\n select *\n from __dbt__cte__int_shopify__daily_fulfillment\n),\n\n\nshop_calendar as (\n\n select\n cast(date_trunc('day', calendar.date_day) as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n \n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n \n\n \n \n , coalesce(count_fulfillment_attempted_delivery, 0) as count_fulfillment_attempted_delivery\n \n , coalesce(count_fulfillment_delayed, 0) as count_fulfillment_delayed\n \n , coalesce(count_fulfillment_delivered, 0) as count_fulfillment_delivered\n \n , coalesce(count_fulfillment_failure, 0) as count_fulfillment_failure\n \n , coalesce(count_fulfillment_in_transit, 0) as count_fulfillment_in_transit\n \n , coalesce(count_fulfillment_out_for_delivery, 0) as count_fulfillment_out_for_delivery\n \n , coalesce(count_fulfillment_ready_for_pickup, 0) as count_fulfillment_ready_for_pickup\n \n , coalesce(count_fulfillment_picked_up, 0) as count_fulfillment_picked_up\n \n , coalesce(count_fulfillment_label_printed, 0) as count_fulfillment_label_printed\n \n , coalesce(count_fulfillment_label_purchased, 0) as count_fulfillment_label_purchased\n \n , coalesce(count_fulfillment_confirmed, 0) as count_fulfillment_confirmed\n \n \n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n \n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n \n\n \n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n \n \n)\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__daily_orders", "sql": " __dbt__cte__int_shopify__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify__daily_abandoned_checkouts", "sql": " __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n)"}, {"id": "model.shopify.int_shopify__daily_fulfillment", "sql": " __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_emails": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_emails", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_emails.sql", "original_file_path": "models/rest/shopify__customer_emails.sql", "unique_id": "model.shopify.shopify__customer_emails", "fqn": ["shopify", "rest", "shopify__customer_emails"], "alias": "shopify__customer_emails", "checksum": {"name": "sha256", "checksum": "950e6e68218fd53bf2bd11f089af340c092a4251e1fd9d8c9230bf9c298af01f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer email in Shopify.", "columns": {"last_fivetran_synced": {"name": "last_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_ids": {"name": "customer_ids", "description": "Comma-separated list of customer IDs associated with the email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone_numbers": {"name": "phone_numbers", "description": "Comma-separated list of phone numbers associated with this email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_updated_at": {"name": "last_updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money that the customer has spent on orders across their order history (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_account_created_at": {"name": "first_account_created_at", "description": "Timestamp of when the first account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_account_created_at": {"name": "last_account_created_at", "description": "Timestamp of when the last account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3500593, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_emails\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customer_emails as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify__customer_email_rollup'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ ref('int_shopify__customer_email_rollup') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify__emails__order_aggregates' )}}\n where email is not null\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where email is not null\n group by 1,2\n{% endif %}\n\n), joined as (\n\n select \n customer_emails.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__emails__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star"], "nodes": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_emails.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), customer_emails as (\n\n select \n \"email\",\n \"source_relation\",\n \"customer_ids\",\n \"phone_numbers\",\n \"customer_tags\",\n \"first_account_created_at\",\n \"last_account_created_at\",\n \"last_updated_at\",\n \"marketing_consent_updated_at\",\n \"last_fivetran_synced\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"account_state\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\"\n from \"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify__emails__order_aggregates\n where email is not null\n\n\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where email is not null\n group by 1,2\n\n\n), joined as (\n\n select \n customer_emails.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n \n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__emails__order_aggregates", "sql": " __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__inventory_level__aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__inventory_level__aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__inventory_level__aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__inventory_level__aggregates.sql", "unique_id": "model.shopify.int_shopify__inventory_level__aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__inventory_level__aggregates"], "alias": "int_shopify__inventory_level__aggregates", "checksum": {"name": "sha256", "checksum": "71c148adee52b31e8a96b36110d93dba3f37be66f265625ca908744297ac0a92"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.4437087, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select *\n from {{ var('shopify_order_line') }}\n),\n\nfulfillment as (\n\n select *\n from {{ var('shopify_fulfillment') }}\n),\n\norders as (\n\n select *\n from {{ var('shopify_order') }}\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n {{ dbt_utils.group_by(n=3) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_refunds"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__inventory_level__aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["location_id", "source_relation", "variant_id"], "time_spine": null}, "model.shopify.int_shopify__product__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__product__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__product__order_line_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__product__order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify__product__order_line_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__product__order_line_aggregates"], "alias": "int_shopify__product__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "7318e3e5faba66745a27e59d40674690031727a7c2719c8660c8c73a685e3896"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.4457364, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select *\n from {{ ref('shopify__order_lines') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders')}}\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__product__order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__products_with_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__products_with_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__products_with_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__products_with_aggregates.sql", "unique_id": "model.shopify.int_shopify__products_with_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__products_with_aggregates"], "alias": "int_shopify__products_with_aggregates", "checksum": {"name": "sha256", "checksum": "f76affed4b8f7e1cbce3598d02d4114978ee18b9e5b4583720285c3c7c19750d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.4462428, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith products as (\n\n select *\n from {{ var('shopify_product') }}\n), \n\ncollection_product as (\n\n select *\n from {{ var('shopify_collection_product') }}\n),\n\ncollection as (\n\n select *\n from {{ var('shopify_collection') }}\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from {{ var('shopify_product_tag') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n), \n\nproduct_media as (\n\n select *\n from {{ var('shopify_product_media') }}\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter=\"', '\") }} as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='value', delimiter=\"', '\") }} as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__collection_product", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__product_tag", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__products_with_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__discount_code_enriched": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discount_code_enriched", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discount_code_enriched.sql", "original_file_path": "models/rest/intermediate/int_shopify__discount_code_enriched.sql", "unique_id": "model.shopify.int_shopify__discount_code_enriched", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discount_code_enriched"], "alias": "int_shopify__discount_code_enriched", "checksum": {"name": "sha256", "checksum": "bcf513cc78532e595d895f3b33240d906515eaf4979369990586897a7bb64e84"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505363.5333118, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith discount_redeem_codes as (\n \n select *\n from {{ var('shopify_discount_redeem_code') }}\n),\n\ndiscount_applications as (\n\n select *\n from {{ var('shopify_discount_application') }}\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_basic') }}\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_bxgy') }}\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_free_shipping') }}\n\n {% if var('shopify_using_discount_code_app', False) %}\n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_app') }}\n {% endif %}\n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_application", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code", "model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discount_code_enriched.sql", "compiled": true, "compiled_code": "\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__daily_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__daily_abandoned_checkouts", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_abandoned_checkouts"], "alias": "int_shopify__daily_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "3ed79baa28d3b9160647ad92b70096d29c4bffe408b4d69e2fcd790e124f9074"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505363.5452983, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__order__shipping_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__order__shipping_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__order__shipping_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__order__shipping_aggregates.sql", "unique_id": "model.shopify.int_shopify__order__shipping_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__order__shipping_aggregates"], "alias": "int_shopify__order__shipping_aggregates", "checksum": {"name": "sha256", "checksum": "0b62dd0d5d3643dd2d497124c55db965c77cbf556e68645f15965bf80f3d3a82"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.4452364, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from {{ var('shopify_order_shipping_line') }}\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from {{ var('shopify_order_shipping_tax_line') }}\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__order__shipping_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__orders__order_line_aggregates.sql", "original_file_path": "models/rest/intermediate/shopify__orders__order_line_aggregates.sql", "unique_id": "model.shopify.shopify__orders__order_line_aggregates", "fqn": ["shopify", "rest", "intermediate", "shopify__orders__order_line_aggregates"], "alias": "shopify__orders__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "dc06ee54fe54de8c7cd7a17fc15bb4ab1331d5d1f7ea6b71aabce4a6d9cc3a3f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.4416628, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"", "raw_code": "{{ config(materialized='table', enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_line as (\n\n select *\n from {{ var('shopify_order_line') }}\n\n), tax as (\n\n select\n *\n from {{ var('shopify_tax_line') }}\n\n), shipping as (\n\n select\n *\n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__orders__order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), order_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), tax as (\n\n select\n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), shipping as (\n\n select\n *\n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__daily_orders": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_orders", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_orders.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_orders.sql", "unique_id": "model.shopify.int_shopify__daily_orders", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_orders"], "alias": "int_shopify__daily_orders", "checksum": {"name": "sha256", "checksum": "f866152e2f91cf3593173286eeb1d4337212bc81a34a1b8550189f69081f69a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505363.5724657, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from {{ ref('shopify__order_lines') }}\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.shopify__orders", "model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_orders.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__customer_email_rollup": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__customer_email_rollup.sql", "original_file_path": "models/rest/intermediate/int_shopify__customer_email_rollup.sql", "unique_id": "model.shopify.int_shopify__customer_email_rollup", "fqn": ["shopify", "rest", "intermediate", "int_shopify__customer_email_rollup"], "alias": "int_shopify__customer_email_rollup", "checksum": {"name": "sha256", "checksum": "37f30d45093b6c1ed887121ee7e4b1ff6dafc2f9353024e4255b86946a64b431"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.4432082, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by created_timestamp desc) \n as customer_index\n\n from {{ var('shopify_customer') }}\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from {{ var('shopify_customer_tag' )}}\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n {{ fivetran_utils.string_agg(\"distinct cast(customers.customer_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_ids,\n {{ fivetran_utils.string_agg(\"distinct cast(customers.phone as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as phone_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(customer_tags.value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n {{ fivetran_utils.max_bool(\"case when customers.customer_index = 1 then customers.is_tax_exempt else null end\") }} as is_tax_exempt, -- since this changes every year\n {{ fivetran_utils.max_bool(\"customers.is_verified_email\") }} as is_verified_email\n\n -- for all other fields, just take the latest value\n {% set cols = adapter.get_columns_in_relation(ref('stg_shopify__customer')) %}\n {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', \n 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp',\n 'is_tax_exempt', 'is_verified_email'] %}\n {% for col in cols %}\n {% if col.column|lower not in except_cols %}\n , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }}\n {% endif %}\n {% endfor %}\n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_partition_by_cols", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.max_bool"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__customer_email_rollup.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by \n\n\n email\n\n\n order by created_timestamp desc) \n as customer_index\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n \n string_agg(distinct cast(customers.customer_id as TEXT), ', ')\n\n as customer_ids,\n \n string_agg(distinct cast(customers.phone as TEXT), ', ')\n\n as phone_numbers,\n \n string_agg(distinct cast(customer_tags.value as TEXT), ', ')\n\n as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n \n\n bool_or( case when customers.customer_index = 1 then customers.is_tax_exempt else null end )\n\n as is_tax_exempt, -- since this changes every year\n \n\n bool_or( customers.is_verified_email )\n\n as is_verified_email\n\n -- for all other fields, just take the latest value\n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.first_name else null end) as first_name\n \n \n \n , max(case when customers.customer_index = 1 then customers.last_name else null end) as last_name\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.default_address_id else null end) as default_address_id\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.account_state else null end) as account_state\n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.note else null end) as note\n \n \n \n , max(case when customers.customer_index = 1 then customers.currency else null end) as currency\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_consent_state else null end) as marketing_consent_state\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_opt_in_level else null end) as marketing_opt_in_level\n \n \n \n \n \n \n \n \n \n \n \n \n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders__order_refunds": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_refunds", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__orders__order_refunds.sql", "original_file_path": "models/rest/intermediate/shopify__orders__order_refunds.sql", "unique_id": "model.shopify.shopify__orders__order_refunds", "fqn": ["shopify", "rest", "intermediate", "shopify__orders__order_refunds"], "alias": "shopify__orders__order_refunds", "checksum": {"name": "sha256", "checksum": "b2779287393dd936f29751f0839d05d36aa9ac1ec21f071744d6d1c3047adc11"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.4421666, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith refunds as (\n\n select *\n from {{ var('shopify_refund') }}\n\n), order_line_refunds as (\n\n select *\n from {{ var('shopify_order_line_refund') }}\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__refund", "model.shopify_source.stg_shopify__order_line_refund"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__orders__order_refunds.sql", "compiled": true, "compiled_code": "\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "original_file_path": "models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discounts__abandoned_checkouts"], "alias": "int_shopify__discounts__abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "4db18a80ca151075ad7431fe218c35b61b96196951cf2da104512d277ca94f83"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.4447248, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from {{ var('shopify_abandoned_checkout_discount_code') }}\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from {{ var('shopify_abandoned_checkout_shipping_line') }}\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["code", "source_relation", "type"], "time_spine": null}, "model.shopify.int_shopify__emails__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__emails__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__emails__order_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__emails__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__emails__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__emails__order_aggregates"], "alias": "int_shopify__emails__order_aggregates", "checksum": {"name": "sha256", "checksum": "1b106193505d9a5cbf6f64b6fbc51c6eb010151e48da445481c726fc0a5a1f46"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.4426873, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_order') }}\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from {{ var('shopify_customer') }}\n where email is not null\n {{ dbt_utils.group_by(n=3) }}\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__emails__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__daily_fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_fulfillment", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_fulfillment.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_fulfillment.sql", "unique_id": "model.shopify.int_shopify__daily_fulfillment", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_fulfillment"], "alias": "int_shopify__daily_fulfillment", "checksum": {"name": "sha256", "checksum": "5d07c22ba6468bebf18c3be8c5d123914dc91b33eb036c4bc75feb1bd4f7529c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505363.628562, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith fulfillment_event as (\n\n select *\n from {{ var('shopify_fulfillment_event') }}\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day\n\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discounts__order_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__discounts__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__discounts__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discounts__order_aggregates"], "alias": "int_shopify__discounts__order_aggregates", "checksum": {"name": "sha256", "checksum": "bf596881f17db03334a269b53a5856d2cddfe92d6bd8dffc26b5b779e874a480"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.444224, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_discount_code as (\n\n select *\n from {{ var('shopify_order_discount_code') }}\n),\n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_discount_code", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discounts__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["code", "source_relation", "type"], "time_spine": null}, "model.shopify.shopify__customers__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__customers__order_aggregates.sql", "original_file_path": "models/rest/intermediate/shopify__customers__order_aggregates.sql", "unique_id": "model.shopify.shopify__customers__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "shopify__customers__order_aggregates"], "alias": "shopify__customers__order_aggregates", "checksum": {"name": "sha256", "checksum": "e1af84adc51e48a677e22660a99ca8e7d48ee8fabc49c0b4505c8fc1c7233264"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.441077, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_order') }}\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n {{ dbt_utils.group_by(n=2) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__customers__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__product_variant_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__product_variant_metafields.sql", "original_file_path": "models/rest/metafields/shopify__product_variant_metafields.sql", "unique_id": "model.shopify.shopify__product_variant_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__product_variant_metafields"], "alias": "shopify__product_variant_metafields", "checksum": {"name": "sha256", "checksum": "aa2cdc58708d40d191a197a74aaa246cf15f5a6f3d984f70f378309283819367"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product_variant model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5020807, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_variant_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product_variant\",\n reference_values = ['variant', 'productvariant'],\n id_column = \"variant_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__product_variant_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_wherearethey'\n then value\n else null\n end\n )\n \n \n as avengers_wherearethey\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_wheninspace'\n then value\n else null\n end\n )\n \n \n as star_wars_wheninspace\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.variant_id,\n \n source_table.product_id,\n \n source_table.inventory_item_id,\n \n source_table.title,\n \n source_table.price,\n \n source_table.sku,\n \n source_table.position,\n \n source_table.inventory_policy,\n \n source_table.compare_at_price,\n \n source_table.fulfillment_service,\n \n source_table.inventory_management,\n \n source_table.is_taxable,\n \n source_table.barcode,\n \n source_table.grams,\n \n source_table.inventory_quantity,\n \n source_table.is_available_for_sale,\n \n source_table.display_name,\n \n source_table.legacy_resource_id,\n \n source_table.has_components_required,\n \n source_table.sellable_online_quantity,\n \n source_table.weight,\n \n source_table.weight_unit,\n \n source_table.option_1,\n \n source_table.option_2,\n \n source_table.option_3,\n \n source_table.tax_code,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_wherearethey) as metafield_avengers_wherearethey\n \n , max(lookup_object.star_wars_wheninspace) as metafield_star_wars_wheninspace\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.variant_id\n and lower(lookup_object.owner_resource) in ('variant', 'productvariant')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__order_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__order_metafields.sql", "original_file_path": "models/rest/metafields/shopify__order_metafields.sql", "unique_id": "model.shopify.shopify__order_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__order_metafields"], "alias": "shopify__order_metafields", "checksum": {"name": "sha256", "checksum": "bb661fd29f14623b4e28a900a1a3b19cd679f288fdcc6b2db556b48c38756164"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__order model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5011063, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__order\", \n reference_values = ['order'],\n id_column = \"order_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__order_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_howmany'\n then value\n else null\n end\n )\n \n \n as avengers_howmany\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isinspace'\n then value\n else null\n end\n )\n \n \n as star_wars_isinspace\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_numbersequels'\n then value\n else null\n end\n )\n \n \n as star_wars_numbersequels\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.order_id,\n \n source_table.user_id,\n \n source_table.total_discounts,\n \n source_table.total_discounts_set,\n \n source_table.total_line_items_price,\n \n source_table.total_line_items_price_set,\n \n source_table.total_price,\n \n source_table.total_price_set,\n \n source_table.total_tax_set,\n \n source_table.total_tax,\n \n source_table.source_name,\n \n source_table.subtotal_price,\n \n source_table.has_taxes_included,\n \n source_table.total_weight,\n \n source_table.total_tip_received,\n \n source_table.landing_site_base_url,\n \n source_table.location_id,\n \n source_table.name,\n \n source_table.note,\n \n source_table.number,\n \n source_table.order_number,\n \n source_table.cancel_reason,\n \n source_table.cart_token,\n \n source_table.checkout_token,\n \n source_table.created_timestamp,\n \n source_table.cancelled_timestamp,\n \n source_table.closed_timestamp,\n \n source_table.processed_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.currency,\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.financial_status,\n \n source_table.fulfillment_status,\n \n source_table.referring_site,\n \n source_table.billing_address_address_1,\n \n source_table.billing_address_address_2,\n \n source_table.billing_address_city,\n \n source_table.billing_address_company,\n \n source_table.billing_address_country,\n \n source_table.billing_address_country_code,\n \n source_table.billing_address_first_name,\n \n source_table.billing_address_last_name,\n \n source_table.billing_address_latitude,\n \n source_table.billing_address_longitude,\n \n source_table.billing_address_name,\n \n source_table.billing_address_phone,\n \n source_table.billing_address_province,\n \n source_table.billing_address_province_code,\n \n source_table.billing_address_zip,\n \n source_table.browser_ip,\n \n source_table.total_shipping_price_set,\n \n source_table.shipping_address_address_1,\n \n source_table.shipping_address_address_2,\n \n source_table.shipping_address_city,\n \n source_table.shipping_address_company,\n \n source_table.shipping_address_country,\n \n source_table.shipping_address_country_code,\n \n source_table.shipping_address_first_name,\n \n source_table.shipping_address_last_name,\n \n source_table.shipping_address_latitude,\n \n source_table.shipping_address_longitude,\n \n source_table.shipping_address_name,\n \n source_table.shipping_address_phone,\n \n source_table.shipping_address_province,\n \n source_table.shipping_address_province_code,\n \n source_table.shipping_address_zip,\n \n source_table.token,\n \n source_table.app_id,\n \n source_table.checkout_id,\n \n source_table.client_details_user_agent,\n \n source_table.customer_locale,\n \n source_table.order_status_url,\n \n source_table.presentment_currency,\n \n source_table.is_test_order,\n \n source_table.is_deleted,\n \n source_table.has_buyer_accepted_marketing,\n \n source_table.is_confirmed,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_howmany) as metafield_avengers_howmany\n \n , max(lookup_object.star_wars_isinspace) as metafield_star_wars_isinspace\n \n , max(lookup_object.star_wars_numbersequels) as metafield_star_wars_numbersequels\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.order_id\n and lower(lookup_object.owner_resource) in ('order')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__product_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__product_metafields.sql", "original_file_path": "models/rest/metafields/shopify__product_metafields.sql", "unique_id": "model.shopify.shopify__product_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__product_metafields"], "alias": "shopify__product_metafields", "checksum": {"name": "sha256", "checksum": "4ecabbfee204dd6d41c39d99eafd9e4627db1710831547eaf6b5ecc38ddb012a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5015898, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product\", \n reference_values = ['product'],\n id_column = \"product_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__product_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__customer_metafields.sql", "original_file_path": "models/rest/metafields/shopify__customer_metafields.sql", "unique_id": "model.shopify.shopify__customer_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__customer_metafields"], "alias": "shopify__customer_metafields", "checksum": {"name": "sha256", "checksum": "1d183df4efbd1c05e74961913c1e9eda390a0aa59312a8e7914d2e26ac02f0f8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__customer model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5006144, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__customer\", \n reference_values = ['customer'],\n id_column = \"customer_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__customer_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'star_wars_firstname'\n then value\n else null\n end\n )\n \n \n as star_wars_firstname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_fullname'\n then value\n else null\n end\n )\n \n \n as star_wars_fullname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isjedi'\n then value\n else null\n end\n )\n \n \n as star_wars_isjedi\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_lastname'\n then value\n else null\n end\n )\n \n \n as star_wars_lastname\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.first_name,\n \n source_table.last_name,\n \n source_table.orders_count,\n \n source_table.default_address_id,\n \n source_table.phone,\n \n source_table.account_state,\n \n source_table.is_tax_exempt,\n \n source_table.total_spent,\n \n source_table.is_verified_email,\n \n source_table.note,\n \n source_table.currency,\n \n source_table.marketing_consent_state,\n \n source_table.marketing_opt_in_level,\n \n source_table.marketing_consent_updated_at,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.star_wars_firstname) as metafield_star_wars_firstname\n \n , max(lookup_object.star_wars_fullname) as metafield_star_wars_fullname\n \n , max(lookup_object.star_wars_isjedi) as metafield_star_wars_isjedi\n \n , max(lookup_object.star_wars_lastname) as metafield_star_wars_lastname\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.customer_id\n and lower(lookup_object.owner_resource) in ('customer')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__shop_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__shop_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__shop_metafields.sql", "original_file_path": "models/rest/metafields/shopify__shop_metafields.sql", "unique_id": "model.shopify.shopify__shop_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__shop_metafields"], "alias": "shopify__shop_metafields", "checksum": {"name": "sha256", "checksum": "a6c83b00e994807860ae5fbe8c7766fe0ace4300cfd53c5ba206ea6bf1831f3c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__shop model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5025465, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__shop_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__shop\", \n reference_values = ['shop'],\n id_column = \"shop_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__shop_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__collection_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__collection_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__collection_metafields.sql", "original_file_path": "models/rest/metafields/shopify__collection_metafields.sql", "unique_id": "model.shopify.shopify__collection_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__collection_metafields"], "alias": "shopify__collection_metafields", "checksum": {"name": "sha256", "checksum": "9a0e96e6e6a37a4a6acea599ac4a0e4fec53dbb44e8a29d52c87ed7ac596bbde"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__collection model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5001237, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__collection_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__collection\", \n reference_values = ['collection'],\n id_column = \"collection_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__collection_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__line_item_enhanced": {"database": "postgres", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "resource_type": "model", "package_name": "shopify", "path": "rest/standardized_models/shopify__line_item_enhanced.sql", "original_file_path": "models/rest/standardized_models/shopify__line_item_enhanced.sql", "unique_id": "model.shopify.shopify__line_item_enhanced", "fqn": ["shopify", "rest", "standardized_models", "shopify__line_item_enhanced"], "alias": "shopify__line_item_enhanced", "checksum": {"name": "sha256", "checksum": "b7aba2e3c1eb834a55bcb5174c0e3ad5db1e8699f88d14469d04cbdcbefe0e5c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It\u2019s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details.", "columns": {"header_id": {"name": "header_id", "description": "Id of corresponding order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_id": {"name": "line_item_id", "description": "Order line item id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_index": {"name": "line_item_index", "description": "Unique index of each line item id for each order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "record_type": {"name": "record_type", "description": "header or line_item", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the order was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "header_status": {"name": "header_status", "description": "Status of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_type": {"name": "billing_type", "description": "NA for Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "Currency used in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "Product ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_name": {"name": "product_name", "description": "Product name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "Product type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_type": {"name": "transaction_type", "description": "Transaction type (Charge, Refund, etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of units of this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_amount": {"name": "unit_amount", "description": "Amount per unit, or the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_amount": {"name": "discount_amount", "description": "The discount amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "The tax amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_amount": {"name": "total_amount", "description": "Order total", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_id": {"name": "payment_id", "description": "Transaction ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Transaction gateway for Shopify ('gift card', 'shopify payments', etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method_id": {"name": "payment_method_id", "description": "Shopify does not have a particular payment_method_id, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_at": {"name": "payment_at", "description": "Transaction processed timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fee_amount": {"name": "fee_amount", "description": "The total shipping fee associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_amount": {"name": "refund_amount", "description": "Refund amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_id": {"name": "subscription_id", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_plan": {"name": "subscription_plan", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_started_at": {"name": "subscription_period_started_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_ended_at": {"name": "subscription_period_ended_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_status": {"name": "subscription_status", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "Customer associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_created_at": {"name": "customer_created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_level": {"name": "customer_level", "description": "Whether 'account' or 'customer'. For Shopify, the level is 'customer'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_name": {"name": "customer_name", "description": "Customer name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_company": {"name": "customer_company", "description": "Associated customer's company noted on the shipping address if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "Customer email", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_city": {"name": "customer_city", "description": "Customer's shipping address city", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_country": {"name": "customer_country", "description": "Customer's shipping address country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/standardized_models/shopify__standardized_models.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5140126, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__line_item_enhanced\"", "raw_code": "{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith line_items as (\n\n select * \n from {{ var('shopify_order_line')}}\n\n), orders as ( \n\n select * \n from {{ var('shopify_order')}}\n\n), product as (\n\n select *\n from {{ var('shopify_product')}}\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n {{ fivetran_utils.string_agg(\"cast (transaction_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} AS transaction_id,\n {{ fivetran_utils.string_agg(\"cast (processed_timestamp as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as processed_timestamp,\n {{ fivetran_utils.string_agg('gateway', \"', '\") }} as gateway\n\n from {{ var('shopify_transaction')}}\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from {{ var('shopify_transaction')}}\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from {{ var('shopify_order_line_refund')}}\n group by 1,2\n\n), customer as (\n\n select *\n from {{ var('shopify_customer')}}\n\n), shipping as (\n\n select * \n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as {{ dbt.type_string() }}) as subscription_id,\n cast(null as {{ dbt.type_string() }}) as subscription_plan,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at,\n cast(null as {{ dbt.type_string() }}) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n {{ dbt.concat([\"c.first_name\", \"''\", \"c.last_name\"]) }} as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id,\n cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as {{ dbt.type_numeric() }}) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as {{ dbt.type_numeric() }}) as quantity,\n cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,\n cast(null as {{ dbt.type_numeric() }}) as discount_amount,\n cast(null as {{ dbt.type_numeric() }}) as tax_amount,\n cast(total_amount as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as {{ dbt.type_numeric() }}) as fee_amount,\n cast(null as {{ dbt.type_numeric() }}) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as {{ dbt.type_numeric() }}) as line_item_id,\n cast(0 as {{ dbt.type_numeric() }}) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as {{ dbt.type_numeric() }}) as product_id,\n cast(null as {{ dbt.type_string() }}) as product_name,\n transaction_type,\n billing_type,\n cast(null as {{ dbt.type_string() }}) as product_type,\n cast(null as {{ dbt.type_numeric() }}) as quantity,\n cast(null as {{ dbt.type_numeric() }}) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.dbt.type_timestamp", "macro.dbt.concat", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__customer", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/standardized_models/shopify__line_item_enhanced.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), line_items as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), orders as ( \n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n \n string_agg(cast (transaction_id as TEXT), ', ')\n\n AS transaction_id,\n \n string_agg(cast (processed_timestamp as TEXT), ', ')\n\n as processed_timestamp,\n \n string_agg(gateway, ', ')\n\n as gateway\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n group by 1,2\n\n), customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), shipping as (\n\n select * \n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as TEXT) as subscription_id,\n cast(null as TEXT) as subscription_plan,\n cast(null as timestamp) as subscription_period_started_at,\n cast(null as timestamp) as subscription_period_ended_at,\n cast(null as TEXT) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n c.first_name || '' || c.last_name as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as numeric(28,6)) as line_item_id,\n cast(line_item_index as numeric(28,6)) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as numeric(28,6)) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as numeric(28,6)) as quantity,\n cast(unit_amount as numeric(28,6)) as unit_amount,\n cast(null as numeric(28,6)) as discount_amount,\n cast(null as numeric(28,6)) as tax_amount,\n cast(total_amount as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as numeric(28,6)) as fee_amount,\n cast(null as numeric(28,6)) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as numeric(28,6)) as line_item_id,\n cast(0 as numeric(28,6)) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as numeric(28,6)) as product_id,\n cast(null as TEXT) as product_name,\n transaction_type,\n billing_type,\n cast(null as TEXT) as product_type,\n cast(null as numeric(28,6)) as quantity,\n cast(null as numeric(28,6)) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["header_id", "line_item_id", "source_relation"], "time_spine": null}, "model.shopify.shopify_gql__customer_email_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_email_cohorts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_email_cohorts.sql", "original_file_path": "models/graphql/shopify_gql__customer_email_cohorts.sql", "unique_id": "model.shopify.shopify_gql__customer_email_cohorts", "fqn": ["shopify", "graphql", "shopify_gql__customer_email_cohorts"], "alias": "shopify_gql__customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "44ea3b7181f25acbd8740e7b4084080f926680aeac54311144a29cf6dd814708"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's (on the EMAIL grain) performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "created_at": 1754505367.9546983, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'),\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'email'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify_gql__customer_emails') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify_gql__customer_emails", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customer_emails", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_email_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n email\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.email as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify_gql__customers": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customers", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customers.sql", "original_file_path": "models/graphql/shopify_gql__customers.sql", "unique_id": "model.shopify.shopify_gql__customers", "fqn": ["shopify", "graphql", "shopify_gql__customers"], "alias": "shopify_gql__customers", "checksum": {"name": "sha256", "checksum": "9c21a0b94a0b4b535719777ad86c81e3780eabb5274d18ef3bffa0b82fa98633"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money in shop currency that the customer has spent on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.0040622, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customers\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customers as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify_gql__customer'), except=[\"orders_count\", \"total_spent\", \"unique_key\"]) }}\n from {{ ref('int_shopify_gql__customer') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__customers_order_aggregates' )}}\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_gql_abandoned_checkout' )}}\n where customer_id is not null\n group by 1,2\n{% endif %}\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags\n\n from {{ var('shopify_gql_customer_tag' )}}\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n {% endif %}\n\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customers_order_aggregates", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customers.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__customers_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated\n), customers as (\n\n select \n \"customer_id\",\n \"email\",\n \"first_name\",\n \"last_name\",\n \"phone\",\n \"account_state\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"marketing_consent_updated_at\",\n \"created_timestamp\",\n \"updated_timestamp\",\n \"_fivetran_synced\",\n \"source_relation\",\n \"default_address_id\"\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__customers_order_aggregates\n\n\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n where customer_id is not null\n group by 1,2\n\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as customer_tags\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n \n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__customers_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__customers_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify_gql__order_lines": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__order_lines", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__order_lines.sql", "original_file_path": "models/graphql/shopify_gql__order_lines.sql", "unique_id": "model.shopify.shopify_gql__order_lines", "fqn": ["shopify", "graphql", "shopify_gql__order_lines"], "alias": "shopify_gql__order_lines", "checksum": {"name": "sha256", "checksum": "05e8538403e3ee72811dc4d13bee21fd937ef51018cc15f1b72b25fb9f047d03"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item of an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_quantity": {"name": "refunded_quantity", "description": "Quantity of the item that has been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net_refunds": {"name": "quantity_net_refunds", "description": "Quantity ordered, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_compare_at_price": {"name": "variant_compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_position": {"name": "variant_position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sku": {"name": "variant_sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_taxable": {"name": "variant_is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "The weight value of the variant's inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "The unit of measurement for the variant's inventory item's weight.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_subtotal": {"name": "refunded_subtotal", "description": "Subtotal amount of the refund applied to the order line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_net_refunds": {"name": "subtotal_net_refunds", "description": "Subtotal of the order line with refunds subtracted in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_types": {"name": "restock_types", "description": "List of how this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_tax": {"name": "order_line_tax", "description": "Total taxes for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The total pre tax price of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.0339906, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__order_line') }}\n\n), product_variants as (\n\n select *\n from {{ ref('int_shopify_gql__product_variant') }}\n\n), refunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), \n\n{% if var('shopify_gql_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_gql_product_variant_media') }}\n),\n{% endif %}\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n {{ fivetran_utils.string_agg(\"distinct cast(refunds.restock_type as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as restock_types\n from refunds\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n refunds_aggregated.restock_types,\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n product_variant_media.media_id,\n {% endif %}\n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_line", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__product_variant", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__order_lines.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_line\"\n\n), product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"\n\n), refunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), \n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\n),\n\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n \n string_agg(distinct cast(refunds.restock_type as TEXT), ', ')\n\n as restock_types\n from refunds\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n refunds_aggregated.restock_types,\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n \n product_variant_media.media_id,\n \n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n\n \n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__transactions": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__transactions", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__transactions.sql", "original_file_path": "models/graphql/shopify_gql__transactions.sql", "unique_id": "model.shopify.shopify_gql__transactions", "fqn": ["shopify", "graphql", "shopify_gql__transactions"], "alias": "shopify_gql__transactions", "checksum": {"name": "sha256", "checksum": "a515293deae8b33e3c0c262d12f78da246ceff07bf83ee3f6d3458d27c8d7234"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of money included in the transaction in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of money included in the transaction in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of the date the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "exchange_rate": {"name": "exchange_rate", "description": "The exchange rate between the home currency and the currency of sale at the time of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_calculated_amount": {"name": "currency_exchange_calculated_amount", "description": "The total amount of the transaction with the currency exchange rate applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Method of payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_created_timestamp": {"name": "parent_created_timestamp", "description": "Created on timestamp of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_kind": {"name": "parent_kind", "description": "Kind of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_amount": {"name": "parent_amount", "description": "Amount of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_status": {"name": "parent_status", "description": "Status of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "Timestamp when the authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.0460987, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__transactions\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith transactions as (\n select *\n from {{ var('shopify_gql_transaction') }} \n\n), tender_transactions as (\n\n select *\n from {{ var('shopify_gql_tender_transaction') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__order') }}\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount_shop as parent_amount,\n parent_transactions.status as parent_status,\n orders.location_id,\n orders.source_name \n\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n left join orders\n on transactions.order_id = orders.order_id\n and transactions.source_relation = orders.source_relation\n\n), exchange_rate as (\n\n select\n *,\n {# QUESTION/ISSUE: Cannot confirm if receipt looks the same in GraphQL #}\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount_shop as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.json_parse", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction", "model.shopify_source.stg_shopify_gql__tender_transaction", "model.shopify.int_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__transactions.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\" \n\n), tender_transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount_shop as parent_amount,\n parent_transactions.status as parent_status,\n orders.location_id,\n orders.source_name \n\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n left join orders\n on transactions.order_id = orders.order_id\n and transactions.source_relation = orders.source_relation\n\n), exchange_rate as (\n\n select\n *,\n \n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) as exchange_rate,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) * amount_shop as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__customer_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_cohorts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_cohorts.sql", "original_file_path": "models/graphql/shopify_gql__customer_cohorts.sql", "unique_id": "model.shopify.shopify_gql__customer_cohorts", "fqn": ["shopify", "graphql", "shopify_gql__customer_cohorts"], "alias": "shopify_gql__customer_cohorts", "checksum": {"name": "sha256", "checksum": "ee60abfcf8dbc62b9076eba78f3ae9049684e928f2bb727d820ae9bff594820c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "created_at": 1754505367.9517624, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'),\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'customer_id'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify_gql__customers') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify_gql__customers", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customers", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__customers\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n customer_id\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify_gql__discounts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__discounts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__discounts.sql", "original_file_path": "models/graphql/shopify_gql__discounts.sql", "unique_id": "model.shopify.shopify_gql__discounts", "fqn": ["shopify", "graphql", "shopify_gql__discounts"], "alias": "shopify_gql__discounts", "checksum": {"name": "sha256", "checksum": "7a569223e2c4c3386f19482d1460516239b38fe1ff56f7c435ad56adcbe8a5e3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The case-insensitive discount code that customers use at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether the discount can be used only once per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "Number of times the discount has been used (asynchronously updated).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "Number of unique redeem codes associated with the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether `codes_count` is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "Timestamp when the discount ends or expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "Timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "Current status of the discount (e.g. 'active', 'expired', 'scheduled').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount\u2019s display name in the Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to 'all' or 'entitled' items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "How the discount value is interpreted (e.g., 'percentage', 'fixed_amount').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_discount_amount": {"name": "total_order_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off of orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_discount_amount": {"name": "total_abandoned_checkout_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_line_items_price": {"name": "total_order_line_items_price", "description": "Total monetary amount (in shop currency) of line items for orders that have used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_shipping_cost": {"name": "total_order_shipping_cost", "description": "Total shipping costs for orders that used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_refund_amount": {"name": "total_order_refund_amount", "description": "Total refunded amount (in shop currency) for orders that used this discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer emails who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_discount_amount": {"name": "avg_order_discount_amount", "description": "Average amount (in shop currency) of discount taken off orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "count_orders": {"name": "count_orders", "description": "Count of orders in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customers": {"name": "count_abandoned_checkout_customers", "description": "Distinct count of customers who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customer_emails": {"name": "count_abandoned_checkout_customer_emails", "description": "Distinct count of customer emails who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.082826, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__discounts\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith discounts_enriched as (\n\n select *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as unique_key\n from {{ ref('int_shopify_gql__discount_code_enriched')}}\n),\n\norders_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__discounts_order_aggregates')}}\n),\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\nabandoned_checkouts_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__discounts_abandoned_checkouts')}}\n),\n{% endif %}\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n {% endif %} \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n {% endif %}\n)\n\nselect * \nfrom aggregates_joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__discount_code_enriched", "package": null, "version": null}, {"name": "int_shopify_gql__discounts_order_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__discounts_abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__discounts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n), __dbt__cte__int_shopify_gql__discounts_order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), discounts_enriched as (\n\n select *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_code_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n from __dbt__cte__int_shopify_gql__discount_code_enriched\n),\n\norders_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__discounts_order_aggregates\n),\n\n\nabandoned_checkouts_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts\n),\n\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n \n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n \n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n \n)\n\nselect * \nfrom aggregates_joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__discount_code_enriched", "sql": " __dbt__cte__int_shopify_gql__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n)"}, {"id": "model.shopify.int_shopify_gql__discounts_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__discounts_order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}, {"id": "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "sql": " __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__inventory_levels": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__inventory_levels", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__inventory_levels.sql", "original_file_path": "models/graphql/shopify_gql__inventory_levels.sql", "unique_id": "model.shopify.shopify_gql__inventory_levels", "fqn": ["shopify", "graphql", "shopify_gql__inventory_levels"], "alias": "shopify_gql__inventory_levels", "checksum": {"name": "sha256", "checksum": "4445bf0d90a7fc6692d5de872684081dc6e76bd29a80094451a7b855651b8cba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of inventory items (which have a 1:1 relationship with product variants) and locations. \nInventory Level = Inventory item @ a Location.\n", "columns": {"inventory_level_id": {"name": "inventory_level_id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The name of the country where the inventory level is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_item_deleted": {"name": "is_inventory_item_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "(DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_created_at": {"name": "inventory_item_created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_updated_at": {"name": "inventory_item_updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_location_deleted": {"name": "is_location_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_location_active": {"name": "is_location_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_created_at": {"name": "location_created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy_location": {"name": "is_legacy_location", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_name": {"name": "location_name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_updated_at": {"name": "location_updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_media_id": {"name": "variant_media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_variant_taxable": {"name": "is_variant_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_orders": {"name": "count_distinct_orders", "description": "The number of distinct orders placed from this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customers": {"name": "count_distinct_customers", "description": "The number of distinct customers (based on customer_id) that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customer_emails": {"name": "count_distinct_customer_emails", "description": "The number of distinct customer emails that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timetamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "The timestamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_refunds": {"name": "subtotal_sold_refunds", "description": "The monetary amount (in shop currency) of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_refunds": {"name": "quantity_sold_refunds", "description": "The quantity of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_subtotal_sold": {"name": "net_subtotal_sold", "description": "Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_quantity_sold": {"name": "net_quantity_sold", "description": "Net quantity sold from this inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_pending": {"name": "count_fulfillment_pending", "description": "Count of currently pending distinct fulfillments for this inventory level. \"Pending\" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_open": {"name": "count_fulfillment_open", "description": "Count of currently open distinct fulfillments for this inventory level. \"Open\" = The fulfillment has been acknowledged by the service and is in processing.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_success": {"name": "count_fulfillment_success", "description": "Count of successful distinct fulfillments for this inventory level. \"Success\" = The fulfillment was successful.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_cancelled": {"name": "count_fulfillment_cancelled", "description": "Count of cancelled distinct fulfillments for this inventory level. \"Cancelled\" = The fulfillment was cancelled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_error": {"name": "count_fulfillment_error", "description": "Count of distinct fulfillments for this inventory level that encountered an error. \"Error\" = There was an error with the fulfillment request.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of distinct fulfillments for this inventory level that failed. \"Failure\" = The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "available_quantity": {"name": "available_quantity", "description": "The available quantity that a merchant can sell, determined by coalescing the `quantity` where inventory_state_name = 'available' from `stg_shopify_gql__inventory_quantity`and `available_quantity` from the deprecated `stg_shopify_gql__inventory_level`. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "incoming_quantity": {"name": "incoming_quantity", "description": "The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "on_hand_quantity": {"name": "on_hand_quantity", "description": "The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "committed_quantity": {"name": "committed_quantity", "description": "The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reserved_quantity": {"name": "reserved_quantity", "description": "The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "damaged_quantity": {"name": "damaged_quantity", "description": "The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "safety_stock_quantity": {"name": "safety_stock_quantity", "description": "The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quality_control_quantity": {"name": "quality_control_quantity", "description": "The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.069594, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith inventory_level as (\n\n select *\n from {{ var('shopify_gql_inventory_level') }}\n), \n\ninventory_item as (\n\n select *\n from {{ var('shopify_gql_inventory_item') }}\n),\n\ninventory_quantity as (\n\n select *\n from {{ var('shopify_gql_inventory_quantity') }}\n),\n\nlocation as (\n\n select *\n from {{ var('shopify_gql_location') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n),\n\nproduct as (\n\n select *\n from {{ var('shopify_gql_product') }}\n),\n\ninventory_level_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__inventory_level_aggregates') }}\n),\n\n{% if var('shopify_gql_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_gql_product_variant_media') }}\n),\n{% endif %}\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%}\n {% for inventory_state in inventory_states -%}\n , sum(case when lower(inventory_state_name) = {{ \"'\" ~ inventory_state|lower ~ \"'\" }}\n then inventory_quantity.quantity end) as {{ inventory_state }}_quantity\n {% endfor -%}\n\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.country_name,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n product_variant_media.media_id as variant_media_id,\n {% endif %}\n\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }}\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n {% endif %}\n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n\n {% for inventory_state in inventory_states -%}\n , inventory_quantity_aggregated.{{ inventory_state }}_quantity\n {% endfor -%}\n\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}, {"name": "stg_shopify_gql__location", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "int_shopify_gql__inventory_level_aggregates", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level", "model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__inventory_quantity", "model.shopify_source.stg_shopify_gql__location", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product", "model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__inventory_levels.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify_gql__inventory_level_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), inventory_level as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\n), \n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\n),\n\ninventory_quantity as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\n),\n\nlocation as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n),\n\nproduct as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n),\n\ninventory_level_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__inventory_level_aggregates\n),\n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\n),\n\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n , sum(case when lower(inventory_state_name) = 'incoming'\n then inventory_quantity.quantity end) as incoming_quantity\n , sum(case when lower(inventory_state_name) = 'on_hand'\n then inventory_quantity.quantity end) as on_hand_quantity\n , sum(case when lower(inventory_state_name) = 'available'\n then inventory_quantity.quantity end) as available_quantity\n , sum(case when lower(inventory_state_name) = 'committed'\n then inventory_quantity.quantity end) as committed_quantity\n , sum(case when lower(inventory_state_name) = 'reserved'\n then inventory_quantity.quantity end) as reserved_quantity\n , sum(case when lower(inventory_state_name) = 'damaged'\n then inventory_quantity.quantity end) as damaged_quantity\n , sum(case when lower(inventory_state_name) = 'safety_stock'\n then inventory_quantity.quantity end) as safety_stock_quantity\n , sum(case when lower(inventory_state_name) = 'quality_control'\n then inventory_quantity.quantity end) as quality_control_quantity\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.country_name,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n\n \n product_variant_media.media_id as variant_media_id,\n \n\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n \n\n\n\n\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n \n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n \n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n \n , coalesce(inventory_level_aggregated.count_fulfillment_pending, 0) as count_fulfillment_pending\n \n , coalesce(inventory_level_aggregated.count_fulfillment_open, 0) as count_fulfillment_open\n \n , coalesce(inventory_level_aggregated.count_fulfillment_success, 0) as count_fulfillment_success\n \n , coalesce(inventory_level_aggregated.count_fulfillment_cancelled, 0) as count_fulfillment_cancelled\n \n , coalesce(inventory_level_aggregated.count_fulfillment_error, 0) as count_fulfillment_error\n \n , coalesce(inventory_level_aggregated.count_fulfillment_failure, 0) as count_fulfillment_failure\n \n\n , inventory_quantity_aggregated.incoming_quantity\n , inventory_quantity_aggregated.on_hand_quantity\n , inventory_quantity_aggregated.available_quantity\n , inventory_quantity_aggregated.committed_quantity\n , inventory_quantity_aggregated.reserved_quantity\n , inventory_quantity_aggregated.damaged_quantity\n , inventory_quantity_aggregated.safety_stock_quantity\n , inventory_quantity_aggregated.quality_control_quantity\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify_gql__inventory_level_aggregates", "sql": " __dbt__cte__int_shopify_gql__inventory_level_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "location_id"], "time_spine": null}, "model.shopify.shopify_gql__customer_emails": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_emails", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_emails.sql", "original_file_path": "models/graphql/shopify_gql__customer_emails.sql", "unique_id": "model.shopify.shopify_gql__customer_emails", "fqn": ["shopify", "graphql", "shopify_gql__customer_emails"], "alias": "shopify_gql__customer_emails", "checksum": {"name": "sha256", "checksum": "af89662d410ca87ac66c148c1f5f7e4194cec7c47a6939591c5bc3b2bc113825"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer email in Shopify.", "columns": {"last_fivetran_synced": {"name": "last_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_ids": {"name": "customer_ids", "description": "Comma-separated list of customer IDs associated with the email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone_numbers": {"name": "phone_numbers", "description": "Comma-separated list of phone numbers associated with this email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_updated_at": {"name": "last_updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money that the customer has spent on orders across their order history (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_account_created_at": {"name": "first_account_created_at", "description": "Timestamp of when the first account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_account_created_at": {"name": "last_account_created_at", "description": "Timestamp of when the last account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.0086029, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customer_emails as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify_gql__customer_email_rollup'), except=[\"orders_count\", \"total_spent\", \"unique_key\"]) }}\n from {{ ref('int_shopify_gql__customer_email_rollup') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__emails_order_aggregates' )}}\n where email is not null\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ ref('int_shopify_gql__abandoned_checkout' )}}\n where email is not null\n group by 1,2\n{% endif %}\n\n), joined as (\n\n select \n customer_emails.*,\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify_gql__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify_gql__emails_order_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star"], "nodes": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.int_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_emails.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__emails_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), customer_emails as (\n\n select \n \"email\",\n \"source_relation\",\n \"customer_ids\",\n \"phone_numbers\",\n \"customer_tags\",\n \"first_account_created_at\",\n \"last_account_created_at\",\n \"last_updated_at\",\n \"marketing_consent_updated_at\",\n \"last_fivetran_synced\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"first_name\",\n \"last_name\",\n \"account_state\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"default_address_id\"\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer_email_rollup\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__emails_order_aggregates\n where email is not null\n\n\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"\n where email is not null\n group by 1,2\n\n\n), joined as (\n\n select \n customer_emails.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n \n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__emails_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__emails_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.shopify_gql__daily_shop": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__daily_shop", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__daily_shop.sql", "original_file_path": "models/graphql/shopify_gql__daily_shop.sql", "unique_id": "model.shopify.shopify_gql__daily_shop", "fqn": ["shopify", "graphql", "shopify_gql__daily_shop"], "alias": "shopify_gql__daily_shop", "checksum": {"name": "sha256", "checksum": "cab8dd258f8ec32221ccbf94b62a452a5070fc9714d799c939ee0fa6c48f9a5e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a day in your Shop, enriched with a suite of metrics.\n", "columns": {"date_day": {"name": "date_day", "description": "Day for which the shop activity is being measured.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders": {"name": "count_orders", "description": "Count of the distinct orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_line_items": {"name": "count_line_items", "description": "Count of the line items included in orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer email addresses who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "Average adjusted total per order placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount (in shop currency) applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to adjustments (in shop currency) on the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of the discount allocated to this day's orders in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied by customers on orders for this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_locations_ordered_from": {"name": "count_locations_ordered_from", "description": "Distinct locations with orders placed against them on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_discounts": {"name": "count_orders_with_discounts", "description": "Count of orders in which a discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_refunds": {"name": "count_orders_with_refunds", "description": "Count of orders in which there was a refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "Timestamp of the first order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "Timestamp of the last order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_refunded": {"name": "quantity_refunded", "description": "The quantity of goods ORDERED on this day that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net": {"name": "quantity_net", "description": "Net quantity sold from this shop on this day. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants_sold": {"name": "count_variants_sold", "description": "Distinct product variants sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_products_sold": {"name": "count_products_sold", "description": "Distinct products sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_gift_cards_sold": {"name": "quantity_gift_cards_sold", "description": "Quantity of gift cards sold on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_requiring_shipping": {"name": "quantity_requiring_shipping", "description": "Quantity of goods sold on this day that require shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers_abandoned_checkout": {"name": "count_customers_abandoned_checkout", "description": "Count of distinct customers who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails_abandoned_checkout": {"name": "count_customer_emails_abandoned_checkout", "description": "Count of distinct customer emails who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_attempted_delivery": {"name": "count_fulfillment_attempted_delivery", "description": "Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delivered": {"name": "count_fulfillment_delivered", "description": "Count of successful distinct fulfillments successfully delivered on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_in_transit": {"name": "count_fulfillment_in_transit", "description": "Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_out_for_delivery": {"name": "count_fulfillment_out_for_delivery", "description": "Count of distinct fulfillments being delivered to their final destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_ready_for_pickup": {"name": "count_fulfillment_ready_for_pickup", "description": "Count of distinct fulfillments ready for pickup at a shipping depot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_printed": {"name": "count_fulfillment_label_printed", "description": "Count of distinct fulfillments for which a purchased shipping label has been printed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_purchased": {"name": "count_fulfillment_label_purchased", "description": "Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_confirmed": {"name": "count_fulfillment_confirmed", "description": "Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delayed": {"name": "count_fulfillment_delayed", "description": "Count of delayed distinct fulfillments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_line_item_count": {"name": "avg_line_item_count", "description": "Average line item count for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount": {"name": "avg_discount", "description": "Average total discount placed on orders on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_discount_amount": {"name": "avg_shipping_discount_amount", "description": "Average discount amount (in shop currency) allocated toward shipping on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_percentage_calc_discount_amount": {"name": "avg_percentage_calc_discount_amount", "description": "Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_fixed_amount_discount_amount": {"name": "avg_fixed_amount_discount_amount", "description": "Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_sold": {"name": "avg_quantity_sold", "description": "Average quantity sold per order on this day. Includes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_net": {"name": "avg_quantity_net", "description": "Average net quantity sold per order on this day. Excludes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.0964885, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__daily_shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith shop as (\n\n select *\n from {{ var('shopify_gql_shop') }}\n),\n\ncalendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from {{ ref('int_shopify_gql__daily_orders') }}\n),\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\ndaily_abandoned_checkouts as (\n\n select *\n from {{ ref('int_shopify_gql__daily_abandoned_checkouts') }}\n),\n{% endif %}\n\n{% if var('shopify_gql_using_fulfillment_event', false) %}\ndaily_fulfillment as (\n\n select *\n from {{ ref('int_shopify_gql__daily_fulfillment') }}\n),\n{% endif %}\n\nshop_calendar as (\n\n select\n cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n {% endif %}\n\n {% if var('shopify_gql_using_fulfillment_event', false) %}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%}\n , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n {% endif %}\n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n {% endif %}\n\n {% if var('shopify_gql_using_fulfillment_event', false) %}\n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n {% endif %}\n \n)\n\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "shopify__calendar", "package": null, "version": null}, {"name": "int_shopify_gql__daily_orders", "package": null, "version": null}, {"name": "int_shopify_gql__daily_abandoned_checkouts", "package": null, "version": null}, {"name": "int_shopify_gql__daily_fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify_gql__shop", "model.shopify.shopify__calendar", "model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__daily_fulfillment"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__daily_shop.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n), __dbt__cte__int_shopify_gql__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n), __dbt__cte__int_shopify_gql__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n), shop as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\n),\n\ncalendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('day', date_day) as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_orders\n),\n\n\ndaily_abandoned_checkouts as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_abandoned_checkouts\n),\n\n\n\ndaily_fulfillment as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_fulfillment\n),\n\n\nshop_calendar as (\n\n select\n cast(date_trunc('day', calendar.date_day) as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n \n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n \n\n \n \n , coalesce(count_fulfillment_attempted_delivery, 0) as count_fulfillment_attempted_delivery\n \n , coalesce(count_fulfillment_delayed, 0) as count_fulfillment_delayed\n \n , coalesce(count_fulfillment_delivered, 0) as count_fulfillment_delivered\n \n , coalesce(count_fulfillment_failure, 0) as count_fulfillment_failure\n \n , coalesce(count_fulfillment_in_transit, 0) as count_fulfillment_in_transit\n \n , coalesce(count_fulfillment_out_for_delivery, 0) as count_fulfillment_out_for_delivery\n \n , coalesce(count_fulfillment_ready_for_pickup, 0) as count_fulfillment_ready_for_pickup\n \n , coalesce(count_fulfillment_label_printed, 0) as count_fulfillment_label_printed\n \n , coalesce(count_fulfillment_label_purchased, 0) as count_fulfillment_label_purchased\n \n , coalesce(count_fulfillment_confirmed, 0) as count_fulfillment_confirmed\n \n \n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n \n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n \n\n \n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n \n \n)\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__daily_orders", "sql": " __dbt__cte__int_shopify_gql__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "sql": " __dbt__cte__int_shopify_gql__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n)"}, {"id": "model.shopify.int_shopify_gql__daily_fulfillment", "sql": " __dbt__cte__int_shopify_gql__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__products": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__products", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__products.sql", "original_file_path": "models/graphql/shopify_gql__products.sql", "unique_id": "model.shopify.shopify_gql__products", "fqn": ["shopify", "graphql", "shopify_gql__products"], "alias": "shopify_gql__products", "checksum": {"name": "sha256", "checksum": "2f676f8591456d8c9e51c9c86d2a748f05045aea58b9b9f9d470c5a5f09e0320"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a product. Hashed on 'product_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity_sold": {"name": "total_quantity_sold", "description": "Quantity of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (in shop currency) of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_net_refunds": {"name": "quantity_sold_net_refunds", "description": "Quantity of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_net_refunds": {"name": "subtotal_sold_net_refunds", "description": "Total amount (in shop currency) of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the product was first ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the product was most recently ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order_line": {"name": "avg_quantity_per_order_line", "description": "Average quantity per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_discount": {"name": "product_total_discount", "description": "Total discounts associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_discount_per_order_line": {"name": "product_avg_discount_per_order_line", "description": "Average discount per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_tax": {"name": "product_total_tax", "description": "Total taxes associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_tax_per_order_line": {"name": "product_avg_tax_per_order_line", "description": "Average taxes per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants": {"name": "count_variants", "description": "Count of product variants.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_product_media": {"name": "has_product_media", "description": "If the product has media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collections": {"name": "collections", "description": "Comma-separated list of collections associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tags": {"name": "tags", "description": "Comma-separated list of tags associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.016624, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__products\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith products as (\n\n select *\n from {{ ref('int_shopify_gql__products_with_aggregates') }}\n\n), product_order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__product_order_line_aggregates')}}\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__products_with_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__product_order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.int_shopify_gql__product_order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__products.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__product_order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), products as (\n\n select *\n from __dbt__cte__int_shopify_gql__products_with_aggregates\n\n), product_order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__product_order_line_aggregates\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__products_with_aggregates", "sql": " __dbt__cte__int_shopify_gql__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__product_order_line_aggregates", "sql": " __dbt__cte__int_shopify_gql__product_order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__orders": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__orders", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__orders.sql", "original_file_path": "models/graphql/shopify_gql__orders.sql", "unique_id": "model.shopify.shopify_gql__orders", "fqn": ["shopify", "graphql", "shopify_gql__orders"], "alias": "shopify_gql__orders", "checksum": {"name": "sha256", "checksum": "2ecbe0d27380045217fefb1d40c135d7557dd131145cb6c48ae86521585cd5e5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing an order. Hashed on 'order_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_amount": {"name": "total_discounts_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_amount": {"name": "total_discounts_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_currency_code": {"name": "total_discounts_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_currency_code": {"name": "total_discounts_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_amount": {"name": "total_line_items_price_shop_amount", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_amount": {"name": "total_line_items_price_pres_amount", "description": "The sum of all line item prices in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_currency_codes": {"name": "total_line_items_price_shop_currency_codes", "description": "The three-letter codes (ISO 4217 format) for the shop currency used to display the total line item price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_currency_codes": {"name": "total_line_items_price_pres_currency_codes", "description": "The three-letter codes (ISO 4217 format) for the presentment currency used to display the total line item price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count": {"name": "line_item_count", "description": "Number of line items included in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_order_seq_number": {"name": "customer_order_seq_number", "description": "The sequential number of the order as it relates to the customer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "new_vs_repeat": {"name": "new_vs_repeat", "description": "Whether the order was a new or repeat order for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_amount": {"name": "shipping_cost_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_amount": {"name": "shipping_cost_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_currency_code": {"name": "shipping_cost_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_currency_code": {"name": "shipping_cost_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to the adjustment on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_total_shipping_tax": {"name": "order_total_shipping_tax", "description": "Total shipping tax attributed to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_tags": {"name": "order_tags", "description": "List of tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number_of_fulfillments": {"name": "number_of_fulfillments", "description": "Total fulfillments for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_services": {"name": "fulfillment_services", "description": "List of fulfillment services for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_companies": {"name": "tracking_companies", "description": "List of tracking companies for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "List of tracking numbers for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_amount": {"name": "total_tip_received_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_amount": {"name": "total_tip_received_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_currency_code": {"name": "total_tip_received_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_currency_code": {"name": "total_tip_received_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied on the order", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505367.9926808, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__orders\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ ref('int_shopify_gql__order') }}\n\n), order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), fulfillments as (\n\n select *\n from {{ ref('int_shopify_gql__order_fulfillment_aggregates') }}\n \n), order_adjustments as (\n\n select *\n from {{ ref('int_shopify_gql__order_adjustment') }}\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount_shop) as order_adjustment_amount,\n sum(tax_amount_shop) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from {{ ref('int_shopify_gql__order_discount_code') }}\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then value_amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then value_amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then value_amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_tags\n \n from {{ var('shopify_gql_order_tag') }}\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n (orders.total_price_shop_amount\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n order_lines.total_line_items_price_pres_amount,\n order_lines.total_line_items_price_shop_amount,\n order_lines.total_line_items_price_pres_currency_codes,\n order_lines.total_line_items_price_shop_currency_codes,\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__order_fulfillment_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__order_adjustment", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}, {"name": "int_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.shopify.shopify_partition_by_cols"], "nodes": ["model.shopify.int_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.int_shopify_gql__order_discount_code", "model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__orders.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_fulfillment_aggregates as (\n\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), fulfillments as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_fulfillment_aggregates\n \n), order_adjustments as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_adjustment\"\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount_shop) as order_adjustment_amount,\n sum(tax_amount_shop) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_discount_code\"\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then value_amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then value_amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then value_amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n (orders.total_price_shop_amount\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n order_lines.total_line_items_price_pres_amount,\n order_lines.total_line_items_price_shop_amount,\n order_lines.total_line_items_price_pres_currency_codes,\n order_lines.total_line_items_price_shop_currency_codes,\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by \n\n\n customer_id\n\n\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_fulfillment_aggregates as (\n\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.int_shopify_gql__discount_code_enriched": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discount_code_enriched", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "unique_id": "model.shopify.int_shopify_gql__discount_code_enriched", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discount_code_enriched"], "alias": "int_shopify_gql__discount_code_enriched", "checksum": {"name": "sha256", "checksum": "d268ffc342662037c84c650aab638ba29d2e2136da8c908bc04508c9a7ddc129"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.0123038, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith discount_redeem_codes as (\n \n select *\n from {{ var('shopify_gql_discount_redeem_code') }}\n),\n\ndiscount_applications as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_basic') }}\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_bxgy') }}\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_free_shipping') }}\n\n {% if var('shopify_gql_using_discount_code_app', False) %}\n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_app') }}\n {% endif %}\n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code", "model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__discount_code_basic", "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "compiled": true, "compiled_code": "\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__products_with_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__products_with_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__products_with_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__products_with_aggregates"], "alias": "int_shopify_gql__products_with_aggregates", "checksum": {"name": "sha256", "checksum": "e193bda9d00349acc767910a46f163e2c0cbf21e745ac7e7268ab3a8429e3cac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.0252645, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith products as (\n\n select *\n from {{ var('shopify_gql_product') }}\n), \n\ncollection_product as (\n\n select *\n from {{ var('shopify_gql_collection_product') }}\n),\n\ncollection as (\n\n select *\n from {{ ref('int_shopify_gql__collection') }}\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from {{ var('shopify_gql_product_tag') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n), \n\nproduct_media as (\n\n select *\n from {{ var('shopify_gql_product_media') }}\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter=\"', '\") }} as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='value', delimiter=\"', '\") }} as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_product", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tag", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__collection_product", "model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__product_tag", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customers_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customers_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__customers_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__customers_order_aggregates"], "alias": "int_shopify_gql__customers_order_aggregates", "checksum": {"name": "sha256", "checksum": "d0a702cbdb5b6a1fb0b18326465045024d5cf44d97d55a324cb07c68f6927844"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.0382025, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify_gql__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_orders": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_orders", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_orders.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_orders.sql", "unique_id": "model.shopify.int_shopify_gql__daily_orders", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_orders"], "alias": "int_shopify_gql__daily_orders", "checksum": {"name": "sha256", "checksum": "65a52e078d07bc36095bbfe50d4c57f831d112c3229bd68887265843aaf50be4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.0467684, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from {{ ref('shopify_gql__order_lines') }}\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}, {"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.shopify_gql__orders", "model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_orders.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__emails_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__emails_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__emails_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__emails_order_aggregates"], "alias": "int_shopify_gql__emails_order_aggregates", "checksum": {"name": "sha256", "checksum": "46a6101b635fbaac9e4c4f48883e0c13893e9a0ea161d2e182bb07a5a8c5bf81"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.057061, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n\n), order_aggregates as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify_gql__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from {{ var('shopify_gql_customer') }}\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "shopify_gql__transactions", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_shipping_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_shipping_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__order_shipping_aggregates"], "alias": "int_shopify_gql__order_shipping_aggregates", "checksum": {"name": "sha256", "checksum": "26bcfed5649b9547dd26cec0717b663322f2a11fe33a1018bba98b4a41ec0dce"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.0664005, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from {{ var('shopify_gql_order_shipping_line') }}\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from {{ var('shopify_gql_order_shipping_tax_line') }}\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line", "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_fulfillment_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_fulfillment_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__order_fulfillment_aggregates"], "alias": "int_shopify_gql__order_fulfillment_aggregates", "checksum": {"name": "sha256", "checksum": "eab4b050977a64c32a911238f62cd031e55c7fdf4d70257621648e0100ef3bb6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.0753753, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith fulfillment as (\n\n select *\n from {{ var('shopify_gql_fulfillment') }}\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n{% if var('shopify_gql_using_fulfillment_tracking_info', False) %}\nfulfillment_tracking_info as (\n\n select *\n from {{ var('shopify_gql_fulfillment_tracking_info') }}\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_number as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_url as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_urls,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_company as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment.service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n{% else %}\nfinal as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n count_fulfillments.number_of_fulfillments,\n max(cast(null as {{ dbt.type_string() }})) as tracking_numbers,\n max(cast(null as {{ dbt.type_string() }})) as tracking_urls,\n max(cast(null as {{ dbt.type_string() }})) as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment.service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services\n \n from fulfillment\n left join count_fulfillments\n on fulfillment.order_id = count_fulfillments.order_id\n and fulfillment.source_relation = count_fulfillments.source_relation\n group by 1,2,3\n)\n{% endif %}\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__product_order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__product_order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__product_order_line_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__product_order_line_aggregates"], "alias": "int_shopify_gql__product_order_line_aggregates", "checksum": {"name": "sha256", "checksum": "920e1fc150f4213e06a67d88602663cef81d03069da2be99d221bea87c439370"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.090725, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('shopify_gql__order_lines') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders')}}\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__orders_order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__orders_order_line_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__orders_order_line_aggregates"], "alias": "int_shopify_gql__orders_order_line_aggregates", "checksum": {"name": "sha256", "checksum": "d4920955a26e1fe0a86640c97e6cf61a18199255c10350c485aad97d1706beab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505364.0995219, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"", "raw_code": "{{ config(\n materialized='table', \n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')\n) }}\n\nwith order_line as (\n\n select *\n from {{ var('shopify_gql_order_line') }}\n\n), tax as (\n\n select\n *\n from {{ var('shopify_gql_tax_line') }}\n\n), shipping as (\n\n select\n *\n from {{ ref('int_shopify_gql__order_shipping_aggregates')}}\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(coalesce(order_line.quantity, 0)) as order_total_quantity,\n sum(coalesce(tax_aggregates.price, 0)) as order_total_tax,\n sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount,\n sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount,\n sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount,\n {{ fivetran_utils.string_agg(\"distinct cast(order_line.price_pres_currency_code as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as total_line_items_price_pres_currency_codes,\n {{ fivetran_utils.string_agg(\"distinct cast(order_line.price_shop_currency_code as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as total_line_items_price_shop_currency_codes\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n order_line_aggregates.total_line_items_price_pres_amount,\n order_line_aggregates.total_line_items_price_shop_amount,\n order_line_aggregates.total_line_items_price_pres_currency_codes,\n order_line_aggregates.total_line_items_price_shop_currency_codes,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line", "package": null, "version": null}, {"name": "int_shopify_gql__order_shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line", "model.shopify.int_shopify_gql__order_shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), order_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n\n), tax as (\n\n select\n *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n\n), shipping as (\n\n select\n *\n from __dbt__cte__int_shopify_gql__order_shipping_aggregates\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(coalesce(order_line.quantity, 0)) as order_total_quantity,\n sum(coalesce(tax_aggregates.price, 0)) as order_total_tax,\n sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount,\n sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount,\n sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount,\n \n string_agg(distinct cast(order_line.price_pres_currency_code as TEXT), ', ')\n\n as total_line_items_price_pres_currency_codes,\n \n string_agg(distinct cast(order_line.price_shop_currency_code as TEXT), ', ')\n\n as total_line_items_price_shop_currency_codes\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n order_line_aggregates.total_line_items_price_pres_amount,\n order_line_aggregates.total_line_items_price_shop_amount,\n order_line_aggregates.total_line_items_price_pres_currency_codes,\n order_line_aggregates.total_line_items_price_shop_currency_codes,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discounts_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discounts_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__discounts_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discounts_order_aggregates"], "alias": "int_shopify_gql__discounts_order_aggregates", "checksum": {"name": "sha256", "checksum": "28bcab684975ed061e765767dcc92ed6ca7a8c8f7235aee1d6c1ac349bae7799"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.1112921, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_discount_code as (\n\n select *\n from {{ ref('int_shopify_gql__order_discount_code') }}\n),\n\norders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__order_discount_code", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_fulfillment", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "unique_id": "model.shopify.int_shopify_gql__daily_fulfillment", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_fulfillment"], "alias": "int_shopify_gql__daily_fulfillment", "checksum": {"name": "sha256", "checksum": "6093ddf8463f9914ea1a6f6798a01d89e77af1f43f0ef6f475ceb741b0824740"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.1189463, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', false) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith fulfillment_event as (\n\n select *\n from {{ var('shopify_gql_fulfillment_event') }}\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day\n\n {# Possible status values: https://shopify.dev/docs/api/admin-graphql/latest/objects/fulfillmentevent#field-FulfillmentEvent.fields.status #}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%}\n , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customer_email_rollup": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customer_email_rollup", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "unique_id": "model.shopify.int_shopify_gql__customer_email_rollup", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__customer_email_rollup"], "alias": "int_shopify_gql__customer_email_rollup", "checksum": {"name": "sha256", "checksum": "64c2801aa55efb47b328ad86e87224082a02e6ca3e915d5820e53f09078cd22a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.128778, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__customer_email_rollup\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by created_timestamp desc) \n as customer_index\n\n from {{ ref('int_shopify_gql__customer') }}\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from {{ var('shopify_gql_customer_tag' )}}\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n {{ fivetran_utils.string_agg(\"distinct cast(customers.customer_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_ids,\n {{ fivetran_utils.string_agg(\"distinct cast(customers.phone as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as phone_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(customer_tags.value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n {{ fivetran_utils.max_bool(\"case when customers.customer_index = 1 then customers.is_tax_exempt else null end\") }} as is_tax_exempt, -- since this changes every year\n {{ fivetran_utils.max_bool(\"customers.is_verified_email\") }} as is_verified_email\n\n -- for all other fields, just take the latest value\n {% set cols = adapter.get_columns_in_relation(ref('int_shopify_gql__customer')) %}\n {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', \n 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp',\n 'is_tax_exempt', 'is_verified_email'] %}\n {% for col in cols %}\n {% if col.column|lower not in except_cols %}\n , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }}\n {% endif %}\n {% endfor %}\n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_partition_by_cols", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.max_bool"], "nodes": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by \n\n\n email\n\n\n order by created_timestamp desc) \n as customer_index\n\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n \n string_agg(distinct cast(customers.customer_id as TEXT), ', ')\n\n as customer_ids,\n \n string_agg(distinct cast(customers.phone as TEXT), ', ')\n\n as phone_numbers,\n \n string_agg(distinct cast(customer_tags.value as TEXT), ', ')\n\n as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n \n\n bool_or( case when customers.customer_index = 1 then customers.is_tax_exempt else null end )\n\n as is_tax_exempt, -- since this changes every year\n \n\n bool_or( customers.is_verified_email )\n\n as is_verified_email\n\n -- for all other fields, just take the latest value\n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.first_name else null end) as first_name\n \n \n \n , max(case when customers.customer_index = 1 then customers.last_name else null end) as last_name\n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.account_state else null end) as account_state\n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.note else null end) as note\n \n \n \n , max(case when customers.customer_index = 1 then customers.currency else null end) as currency\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_consent_state else null end) as marketing_consent_state\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_opt_in_level else null end) as marketing_opt_in_level\n \n \n \n \n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.unique_key else null end) as unique_key\n \n \n \n , max(case when customers.customer_index = 1 then customers.default_address_id else null end) as default_address_id\n \n \n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__orders_order_refunds": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_refunds", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "unique_id": "model.shopify.int_shopify_gql__orders_order_refunds", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__orders_order_refunds"], "alias": "int_shopify_gql__orders_order_refunds", "checksum": {"name": "sha256", "checksum": "5c76fbeaab2dd2bff9d13131a4e4fb19a7716c825c70436c6c42ff0f8f1f6234"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.146446, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith refunds as (\n\n select *\n from {{ var('shopify_gql_refund') }}\n\n), order_line_refunds as (\n\n select *\n from {{ var('shopify_gql_order_line_refund') }}\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__refund", "model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "compiled": true, "compiled_code": "\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discounts_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discounts_abandoned_checkouts"], "alias": "int_shopify_gql__discounts_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "ab9f8f0b086697ca51e0f7ffc6005ff2797126920b53eb844a2e5e9ed34f5da7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.1551018, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ ref('int_shopify_gql__abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from {{ var('shopify_gql_abandoned_checkout_discount_code') }}\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_abandoned_checkouts"], "alias": "int_shopify_gql__daily_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "0afd0194490f924273b15c246f6827d0a5fe61b0a084cbaf0673a36995d63d7b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.1644013, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ ref('int_shopify_gql__abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.int_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__inventory_level_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__inventory_level_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__inventory_level_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__inventory_level_aggregates"], "alias": "int_shopify_gql__inventory_level_aggregates", "checksum": {"name": "sha256", "checksum": "e25fd92bb71fc3846d1c2e59cf59c2bbdb36b4d99ba571160394a38b4854625a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.1726582, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__order_line') }}\n),\n\nfulfillment as (\n\n select *\n from {{ var('shopify_gql_fulfillment') }}\n),\n\norders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n {# open and pending are set to be deprecated in the future by Shopify #}\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n {{ dbt_utils.group_by(n=3) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}, {"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify.int_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_refunds"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_adjustment", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "unique_id": "model.shopify.int_shopify_gql__order_adjustment", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_adjustment"], "alias": "int_shopify_gql__order_adjustment", "checksum": {"name": "sha256", "checksum": "566b80b0396e349d2332bee356ba5a1d82377b770a0ff4905c5e8d0ab17ddcb8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.1843262, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_adjustment as (\n\n select *\n from {{ var('shopify_gql_order_adjustment') }}\n),\n\nrefund as (\n\n select *\n from {{ var('shopify_gql_refund') }}\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}, {"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment", "model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "compiled": true, "compiled_code": "\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_discount_code", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "unique_id": "model.shopify.int_shopify_gql__order_discount_code", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_discount_code"], "alias": "int_shopify_gql__order_discount_code", "checksum": {"name": "sha256", "checksum": "2c39fac4f334420b741ddf5b87e22b5ace34b1e5183fde13fefd3564e4a85353"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.192971, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_discount_code as (\n\n select *\n from {{ var('shopify_gql_order_discount_code') }}\n),\n\ndiscount_application as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code", "model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order.sql", "unique_id": "model.shopify.int_shopify_gql__order", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order"], "alias": "int_shopify_gql__order", "checksum": {"name": "sha256", "checksum": "d39c46fbe7a2d41c1b096e78f78ba70cf0d6930f622f93b2424f3c03517cf0ef"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.2015407, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select * \n from {{ var('shopify_gql_order') }}\n)\n\n{% if var('shopify_gql_using_customer_visit', True) %}\n, customer_visit as (\n \n select * \n from {{ var('shopify_gql_customer_visit') }}\n),\n\njoined as (\n\n select \n orders.*,\n customer_visit.referring_site,\n customer_visit.landing_page as landing_site_base_url\n from orders\n left join customer_visit\n on orders.order_id = customer_visit.order_id\n and orders.source_relation = customer_visit.source_relation\n)\n\nselect *\nfrom joined\n\n{% else %}\n\nselect \n orders.*,\n cast(null as {{ dbt.type_string() }}) as referring_site,\n cast(null as {{ dbt.type_string() }}) as landing_site_base_url\nfrom orders\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n)\n\n\n, customer_visit as (\n \n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\n),\n\njoined as (\n\n select \n orders.*,\n customer_visit.referring_site,\n customer_visit.landing_page as landing_site_base_url\n from orders\n left join customer_visit\n on orders.order_id = customer_visit.order_id\n and orders.source_relation = customer_visit.source_relation\n)\n\nselect *\nfrom joined\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__product_variant", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__product_variant.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__product_variant.sql", "unique_id": "model.shopify.int_shopify_gql__product_variant", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__product_variant"], "alias": "int_shopify_gql__product_variant", "checksum": {"name": "sha256", "checksum": "9fd96455970237120c405b947004cecc05bd570910786e801daa7df3cf823a5b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.2111673, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith product_variants as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n),\n\ninventory_item as (\n\n select *\n from {{ var('shopify_gql_inventory_item') }}\n),\n\njoined as (\n\n select\n product_variants.*,\n inventory_item.measurement_weight_value as weight,\n inventory_item.measurement_weight_unit as weight_unit\n\n from product_variants\n left join inventory_item\n on product_variants.inventory_item_id = inventory_item.inventory_item_id\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n),\n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\n),\n\njoined as (\n\n select\n product_variants.*,\n inventory_item.measurement_weight_value as weight,\n inventory_item.measurement_weight_unit as weight_unit\n\n from product_variants\n left join inventory_item\n on product_variants.inventory_item_id = inventory_item.inventory_item_id\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__collection": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__collection", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__collection.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__collection.sql", "unique_id": "model.shopify.int_shopify_gql__collection", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__collection"], "alias": "int_shopify_gql__collection", "checksum": {"name": "sha256", "checksum": "79c88599b5c946df080af1c74d71b27aed4f7771a481e1c5f675687ea792341a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.221243, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith collection as (\n\n select *\n from {{ var('shopify_gql_collection') }}\n)\n\n{% if var('shopify_gql_using_collection_rule', False) %}\n, collection_rule as (\n\n select *\n from {{ var('shopify_gql_collection_rule') }}\n),\n\nprep_collection_rule as (\n\n select \n collection_id,\n source_relation,\n '{\"column\":\"' || columns || '\",\"relation\":\"' || relation || '\",\"condition\":\"' || condition || '\"}' as rule\n from collection_rule\n),\n\nagg_collection_rule as (\n \n select \n collection_id,\n source_relation,\n '[' || {{ fivetran_utils.string_agg(\"rule\", \"','\") }} || ']' as rules\n from prep_collection_rule\n group by 1,2\n),\n\njoined as (\n\n select \n collection.*,\n agg_collection_rule.rules\n from collection\n left join agg_collection_rule\n on collection.collection_id = agg_collection_rule.collection_id\n and collection.source_relation = agg_collection_rule.source_relation\n)\n\nselect *\nfrom joined\n\n{% else %}\nselect \n collection.*,\n cast(null as {{ dbt.type_string() }}) as rules\nfrom collection\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__collection.sql", "compiled": true, "compiled_code": "\n\nwith collection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\n)\n\n\nselect \n collection.*,\n cast(null as TEXT) as rules\nfrom collection\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__abandoned_checkout", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "unique_id": "model.shopify.int_shopify_gql__abandoned_checkout", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__abandoned_checkout"], "alias": "int_shopify_gql__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "1fbb259948ecde6f3a26ef67f85419e23adb92a76099e8951574038b36f320eb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.2306714, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_gql_abandoned_checkout') }}\n),\n\ncustomer as (\n\n select *\n from {{ var('shopify_gql_customer') }}\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customer": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customer", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__customer.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__customer.sql", "unique_id": "model.shopify.int_shopify_gql__customer", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__customer"], "alias": "int_shopify_gql__customer", "checksum": {"name": "sha256", "checksum": "42669a857b1fdc53d88ee34544dfc078e52ceb729cfe1fe4fc47b48691288e07"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.2397711, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customer as (\n\n select *\n from {{ var('shopify_gql_customer') }}\n),\n\ncustomer_address as (\n\n select *\n from {{ var('shopify_gql_customer_address') }}\n),\n\ncustomer_default_address as (\n\n select *\n from customer_address\n where coalesce(is_default, false)\n),\n\njoined as (\n\n select \n customer.*,\n customer_default_address.customer_address_id as default_address_id\n {# QUESTION: maybe add other fields that are helpful (would be new)? #}\n \n from customer \n left join customer_default_address\n on customer_default_address.customer_id = customer.customer_id\n and customer_default_address.source_relation = customer.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__customer.sql", "compiled": true, "compiled_code": "\n\nwith customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\ncustomer_address as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\n),\n\ncustomer_default_address as (\n\n select *\n from customer_address\n where coalesce(is_default, false)\n),\n\njoined as (\n\n select \n customer.*,\n customer_default_address.customer_address_id as default_address_id\n \n \n from customer \n left join customer_default_address\n on customer_default_address.customer_id = customer.customer_id\n and customer_default_address.source_relation = customer.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_line": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_line", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_line.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_line.sql", "unique_id": "model.shopify.int_shopify_gql__order_line", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_line"], "alias": "int_shopify_gql__order_line", "checksum": {"name": "sha256", "checksum": "d31c98c59428343bb271372b984f57abf5a5c0ef5b2acc38050034d694a12bc2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.2484317, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_line as (\n \n select *\n from {{ var('shopify_gql_order_line') }}\n),\n\ntax_line as (\n\n select *\n from {{ var('shopify_gql_tax_line') }}\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n{% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\nfulfillment_order_line_item as (\n\n select *\n from {{ var('shopify_gql_fulfillment_order_line_item') }}\n),\n{% endif %}\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n {% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n {% else %}\n cast(null as {{ dbt.type_int() }}) as fulfillable_quantity,\n cast(null as {{ dbt.type_string() }}) as weight_unit,\n cast(null as {{ dbt.type_float() }}) as weight_value\n {% endif %}\n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n {% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line", "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_line.sql", "compiled": true, "compiled_code": "\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__product_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__product_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__product_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__product_metafields.sql", "unique_id": "model.shopify.shopify_gql__product_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__product_metafields"], "alias": "shopify_gql__product_metafields", "checksum": {"name": "sha256", "checksum": "e662128efd355a0a62e3fdd489bcec4cbec57e7f5630e356a1ce31cdbf150fa5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__product model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5214336, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__product_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify_gql__product\", \n reference_values = ['product'],\n id_column = \"product_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__product_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bc_brenbre'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bc_brenbre\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.product_id,\n \n source_table.handle,\n \n source_table.product_type,\n \n source_table.title,\n \n source_table.vendor,\n \n source_table.status,\n \n source_table.is_deleted,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.published_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bc_brenbre) as metafield_bea81c1795a612d8fc3a232b156467bc_brenbre\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42) as metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.product_id\n and lower(lookup_object.owner_resource) in ('product')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__collection_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__collection_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__collection_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__collection_metafields.sql", "unique_id": "model.shopify.shopify_gql__collection_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__collection_metafields"], "alias": "shopify_gql__collection_metafields", "checksum": {"name": "sha256", "checksum": "32b746ed89b86970bc65491e90337339d95f490f4b53efbad3c2d67b17c29056"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__collection model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.519958, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__collection_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__collection\", \n reference_values = ['collection'],\n id_column = \"collection_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__collection_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bd_gwhebwrb'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bd_gwhebwrb\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c3_wgewvevw'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c3_wgewvevw\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.collection_id,\n \n source_table.is_deleted,\n \n source_table.rule_logic,\n \n source_table.handle,\n \n source_table.sort_order,\n \n source_table.title,\n \n source_table.updated_at,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.rules\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bd_gwhebwrb) as metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c3_wgewvevw) as metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.collection_id\n and lower(lookup_object.owner_resource) in ('collection')\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__customer_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__customer_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__customer_metafields.sql", "unique_id": "model.shopify.shopify_gql__customer_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__customer_metafields"], "alias": "shopify_gql__customer_metafields", "checksum": {"name": "sha256", "checksum": "6baad0e1b580a1d84fbd7b945503df32990beafd0d64caa90296378d893291fb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__customer model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.520468, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__customer\", \n reference_values = ['customer'],\n id_column = \"customer_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__customer_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467be_bwrtbnwrj'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467be_bwrtbnwrj\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c4_brewbrewbre'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c4_brewbrewbre\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.first_name,\n \n source_table.last_name,\n \n source_table.orders_count,\n \n source_table.phone,\n \n source_table.account_state,\n \n source_table.is_tax_exempt,\n \n source_table.total_spent,\n \n source_table.is_verified_email,\n \n source_table.note,\n \n source_table.currency,\n \n source_table.marketing_consent_state,\n \n source_table.marketing_opt_in_level,\n \n source_table.marketing_consent_updated_at,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.default_address_id\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467be_bwrtbnwrj) as metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c4_brewbrewbre) as metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.customer_id\n and lower(lookup_object.owner_resource) in ('customer')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__shop_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__shop_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__shop_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__shop_metafields.sql", "unique_id": "model.shopify.shopify_gql__shop_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__shop_metafields"], "alias": "shopify_gql__shop_metafields", "checksum": {"name": "sha256", "checksum": "e4981591a733469551b3e4de1f177957b0575b0f2a7a2fd1a9c87926c9be0fad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__shop model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5223813, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__shop_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify_gql__shop\", \n reference_values = ['shop'],\n id_column = \"shop_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__shop_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c0_gwrgew'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c0_gwrgew\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.shop_id,\n \n source_table.name,\n \n source_table.is_deleted,\n \n source_table.address_1,\n \n source_table.address_2,\n \n source_table.city,\n \n source_table.province,\n \n source_table.province_code,\n \n source_table.country,\n \n source_table.country_code,\n \n source_table.country_name,\n \n source_table.zip,\n \n source_table.latitude,\n \n source_table.longitude,\n \n source_table.currency,\n \n source_table.enabled_presentment_currencies,\n \n source_table.customer_email,\n \n source_table.email,\n \n source_table.domain,\n \n source_table.phone,\n \n source_table.timezone_abbreviation,\n \n source_table.timezone_offset,\n \n source_table.timezone_offset_minutes,\n \n source_table.iana_timezone,\n \n source_table.primary_locale,\n \n source_table.weight_unit,\n \n source_table.myshopify_domain,\n \n source_table.shop_owner,\n \n source_table.has_shipping_taxes,\n \n source_table.has_taxes_included_in_price,\n \n source_table.has_storefront,\n \n source_table.has_checkout_api_supported,\n \n source_table.money_format,\n \n source_table.money_in_emails_format,\n \n source_table.money_with_currency_format,\n \n source_table.money_with_currency_in_emails_format,\n \n source_table.plan_display_name,\n \n source_table.is_password_enabled,\n \n source_table.is_setup_required,\n \n source_table.created_at,\n \n source_table.updated_at,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c0_gwrgew) as metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.shop_id\n and lower(lookup_object.owner_resource) in ('shop')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__order_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__order_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__order_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__order_metafields.sql", "unique_id": "model.shopify.shopify_gql__order_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__order_metafields"], "alias": "shopify_gql__order_metafields", "checksum": {"name": "sha256", "checksum": "9fac4f22b24cd29d081991b5d98aa549f4e86f07b07d203a5ff11c21b304b7a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__order model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.520943, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__order_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__order\", \n reference_values = ['order'],\n id_column = \"order_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}\n\n{# Does not contain total_line_items_price columns as these are calculated in shopify_gql_orders__order_line_aggregates in GraphQL #}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__order_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bf_htynetnbw'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bf_htynetnbw\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.order_id,\n \n source_table.user_id,\n \n source_table.total_discounts_pres_amount,\n \n source_table.total_discounts_pres_currency_code,\n \n source_table.total_discounts_shop_amount,\n \n source_table.total_discounts_shop_currency_code,\n \n source_table.total_price_pres_amount,\n \n source_table.total_price_pres_currency_code,\n \n source_table.total_price_shop_amount,\n \n source_table.total_price_shop_currency_code,\n \n source_table.total_tax_pres_amount,\n \n source_table.total_tax_pres_currency_code,\n \n source_table.total_tax_shop_amount,\n \n source_table.total_tax_shop_currency_code,\n \n source_table.source_name,\n \n source_table.subtotal_price_pres_amount,\n \n source_table.subtotal_price_pres_currency_code,\n \n source_table.subtotal_price_shop_amount,\n \n source_table.subtotal_price_shop_currency_code,\n \n source_table.has_taxes_included,\n \n source_table.total_weight,\n \n source_table.total_tip_received_pres_amount,\n \n source_table.total_tip_received_pres_currency_code,\n \n source_table.total_tip_received_shop_amount,\n \n source_table.total_tip_received_shop_currency_code,\n \n source_table.location_id,\n \n source_table.name,\n \n source_table.note,\n \n source_table.number,\n \n source_table.cancel_reason,\n \n source_table.created_timestamp,\n \n source_table.cancelled_timestamp,\n \n source_table.closed_timestamp,\n \n source_table.processed_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.currency,\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.financial_status,\n \n source_table.fulfillment_status,\n \n source_table.billing_address_address_1,\n \n source_table.billing_address_address_2,\n \n source_table.billing_address_city,\n \n source_table.billing_address_company,\n \n source_table.billing_address_country,\n \n source_table.billing_address_country_code,\n \n source_table.billing_address_first_name,\n \n source_table.billing_address_last_name,\n \n source_table.billing_address_latitude,\n \n source_table.billing_address_longitude,\n \n source_table.billing_address_name,\n \n source_table.billing_address_phone,\n \n source_table.billing_address_province,\n \n source_table.billing_address_province_code,\n \n source_table.billing_address_zip,\n \n source_table.browser_ip,\n \n source_table.shipping_cost_pres_amount,\n \n source_table.shipping_cost_pres_currency_code,\n \n source_table.shipping_cost_shop_amount,\n \n source_table.shipping_cost_shop_currency_code,\n \n source_table.shipping_address_address_1,\n \n source_table.shipping_address_address_2,\n \n source_table.shipping_address_city,\n \n source_table.shipping_address_company,\n \n source_table.shipping_address_country,\n \n source_table.shipping_address_country_code,\n \n source_table.shipping_address_first_name,\n \n source_table.shipping_address_last_name,\n \n source_table.shipping_address_latitude,\n \n source_table.shipping_address_longitude,\n \n source_table.shipping_address_name,\n \n source_table.shipping_address_phone,\n \n source_table.shipping_address_province,\n \n source_table.shipping_address_province_code,\n \n source_table.shipping_address_zip,\n \n source_table.app_id,\n \n source_table.customer_locale,\n \n source_table.order_status_url,\n \n source_table.presentment_currency,\n \n source_table.is_test_order,\n \n source_table.is_deleted,\n \n source_table.has_buyer_accepted_marketing,\n \n source_table.is_confirmed,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.referring_site,\n \n source_table.landing_site_base_url\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bf_htynetnbw) as metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe) as metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.order_id\n and lower(lookup_object.owner_resource) in ('order')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88\n)\n\nselect *\nfrom final\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__product_variant_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__product_variant_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__product_variant_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__product_variant_metafields.sql", "unique_id": "model.shopify.shopify_gql__product_variant_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__product_variant_metafields"], "alias": "shopify_gql__product_variant_metafields", "checksum": {"name": "sha256", "checksum": "78d300b3aa3591fe3640572e9da4b3d8deb530699a6526cbcc9eb6b629ef698b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__product_variant model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5218987, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__product_variant_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__product_variant\",\n reference_values = ['variant', 'productvariant'],\n id_column = \"variant_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__product_variant_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__line_item_enhanced": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__line_item_enhanced", "resource_type": "model", "package_name": "shopify", "path": "graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "original_file_path": "models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "unique_id": "model.shopify.shopify_gql__line_item_enhanced", "fqn": ["shopify", "graphql", "standardized_models", "shopify_gql__line_item_enhanced"], "alias": "shopify_gql__line_item_enhanced", "checksum": {"name": "sha256", "checksum": "397d1387f769ec2a75bd7c041e9c6fd40a46cd420f15904cd27c12ca712fcc84"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It\u2019s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details.", "columns": {"header_id": {"name": "header_id", "description": "Id of corresponding order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_id": {"name": "line_item_id", "description": "Order line item id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_index": {"name": "line_item_index", "description": "Unique index of each line item id for each order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "record_type": {"name": "record_type", "description": "header or line_item", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the order was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "header_status": {"name": "header_status", "description": "Status of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_type": {"name": "billing_type", "description": "NA for Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "Currency used in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "Product ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_name": {"name": "product_name", "description": "Product name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "Product type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_type": {"name": "transaction_type", "description": "Transaction type (Charge, Refund, etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of units of this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_amount": {"name": "unit_amount", "description": "Amount per unit, or the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_amount": {"name": "discount_amount", "description": "The discount amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "The tax amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_amount": {"name": "total_amount", "description": "Order total", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_id": {"name": "payment_id", "description": "Transaction ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Transaction gateway for Shopify ('gift card', 'shopify payments', etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method_id": {"name": "payment_method_id", "description": "Shopify does not have a particular payment_method_id, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_at": {"name": "payment_at", "description": "Transaction processed timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fee_amount": {"name": "fee_amount", "description": "The total shipping fee associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_amount": {"name": "refund_amount", "description": "Refund amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_id": {"name": "subscription_id", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_plan": {"name": "subscription_plan", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_started_at": {"name": "subscription_period_started_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_ended_at": {"name": "subscription_period_ended_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_status": {"name": "subscription_status", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "Customer associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_created_at": {"name": "customer_created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_level": {"name": "customer_level", "description": "Whether 'account' or 'customer'. For Shopify, the level is 'customer'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_name": {"name": "customer_name", "description": "Customer name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_company": {"name": "customer_company", "description": "Associated customer's company noted on the shipping address if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "Customer email", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_city": {"name": "customer_city", "description": "Customer's shipping address city", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_country": {"name": "customer_country", "description": "Customer's shipping address country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/standardized_models/shopify__standardized_models.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5247023, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__line_item_enhanced\"", "raw_code": "{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith line_items as (\n\n select * \n from {{ var('shopify_gql_order_line')}}\n\n), orders as ( \n\n select * \n from {{ var('shopify_gql_order')}}\n\n), product as (\n\n select *\n from {{ var('shopify_gql_product')}}\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n {{ fivetran_utils.string_agg(\"cast (transaction_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} AS transaction_id,\n {{ fivetran_utils.string_agg(\"cast (processed_timestamp as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as processed_timestamp,\n {{ fivetran_utils.string_agg('gateway', \"', '\") }} as gateway\n\n from {{ var('shopify_gql_transaction')}}\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount_shop) as total_order_refund_amount\n from {{ var('shopify_gql_transaction')}}\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal_shop_amount + total_tax_shop_amount) as total_refund_amount\n from {{ var('shopify_gql_order_line_refund')}}\n group by 1,2\n\n), customer as (\n\n select *\n from {{ var('shopify_gql_customer')}}\n\n), shipping as (\n\n select * \n from {{ ref('int_shopify_gql__order_shipping_aggregates')}}\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price_shop_amount as unit_amount,\n o.total_discounts_shop_amount as discount_amount,\n o.total_tax_shop_amount as tax_amount,\n (li.quantity * li.price_shop_amount) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as {{ dbt.type_string() }}) as subscription_id,\n cast(null as {{ dbt.type_string() }}) as subscription_plan,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at,\n cast(null as {{ dbt.type_string() }}) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n {{ dbt.concat([\"c.first_name\", \"''\", \"c.last_name\"]) }} as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id,\n cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as {{ dbt.type_numeric() }}) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as {{ dbt.type_numeric() }}) as quantity,\n cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,\n cast(null as {{ dbt.type_numeric() }}) as discount_amount,\n cast(null as {{ dbt.type_numeric() }}) as tax_amount,\n cast(total_amount as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as {{ dbt.type_numeric() }}) as fee_amount,\n cast(null as {{ dbt.type_numeric() }}) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as {{ dbt.type_numeric() }}) as line_item_id,\n cast(0 as {{ dbt.type_numeric() }}) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as {{ dbt.type_numeric() }}) as product_id,\n cast(null as {{ dbt.type_string() }}) as product_name,\n transaction_type,\n billing_type,\n cast(null as {{ dbt.type_string() }}) as product_type,\n cast(null as {{ dbt.type_numeric() }}) as quantity,\n cast(null as {{ dbt.type_numeric() }}) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__order_shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.dbt.type_timestamp", "macro.dbt.concat", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__transaction", "model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__customer", "model.shopify.int_shopify_gql__order_shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), line_items as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n\n), orders as ( \n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n \n string_agg(cast (transaction_id as TEXT), ', ')\n\n AS transaction_id,\n \n string_agg(cast (processed_timestamp as TEXT), ', ')\n\n as processed_timestamp,\n \n string_agg(gateway, ', ')\n\n as gateway\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount_shop) as total_order_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal_shop_amount + total_tax_shop_amount) as total_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n group by 1,2\n\n), customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n\n), shipping as (\n\n select * \n from __dbt__cte__int_shopify_gql__order_shipping_aggregates\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price_shop_amount as unit_amount,\n o.total_discounts_shop_amount as discount_amount,\n o.total_tax_shop_amount as tax_amount,\n (li.quantity * li.price_shop_amount) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as TEXT) as subscription_id,\n cast(null as TEXT) as subscription_plan,\n cast(null as timestamp) as subscription_period_started_at,\n cast(null as timestamp) as subscription_period_ended_at,\n cast(null as TEXT) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n c.first_name || '' || c.last_name as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as numeric(28,6)) as line_item_id,\n cast(line_item_index as numeric(28,6)) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as numeric(28,6)) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as numeric(28,6)) as quantity,\n cast(unit_amount as numeric(28,6)) as unit_amount,\n cast(null as numeric(28,6)) as discount_amount,\n cast(null as numeric(28,6)) as tax_amount,\n cast(total_amount as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as numeric(28,6)) as fee_amount,\n cast(null as numeric(28,6)) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as numeric(28,6)) as line_item_id,\n cast(0 as numeric(28,6)) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as numeric(28,6)) as product_id,\n cast(null as TEXT) as product_name,\n transaction_type,\n billing_type,\n cast(null as TEXT) as product_type,\n cast(null as numeric(28,6)) as quantity,\n cast(null as numeric(28,6)) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["header_id", "line_item_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_shipping_line.sql", "original_file_path": "models/rest/stg_shopify__order_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_shipping_line"], "alias": "stg_shopify__order_shipping_line", "checksum": {"name": "sha256", "checksum": "2a53345accb04b023d123b631a1fe94ad8a69fd7e81658e7f9b0c26389f4fa02"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_third_party_required": {"name": "is_third_party_required", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5997775, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_line_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_shopify__order_shipping_line_tmp')),\n staging_columns=get_order_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n discounted_price_set\n \n as \n \n discounted_price_set\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_shipping_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_allocation.sql", "original_file_path": "models/rest/stg_shopify__discount_allocation.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation", "fqn": ["shopify_source", "rest", "stg_shopify__discount_allocation"], "alias": "stg_shopify__discount_allocation", "checksum": {"name": "sha256", "checksum": "834136ae3fedb83876370eb77b57f96fe24028aee02681d1dc2ac6d0d7d3553e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing allocation amounts from discount applications across specific order lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The presentment money currency code for the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The shop money currency code for the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to. Used to join with the discount application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount allocation within the list of allocations on an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6313517, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_allocation_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_shopify__discount_allocation_tmp')),\n staging_columns=get_discount_allocation_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_allocation_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_allocation.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set_presentment_money_amount\n \n as \n \n amount_set_presentment_money_amount\n \n, \n \n \n amount_set_presentment_money_currency_code\n \n as \n \n amount_set_presentment_money_currency_code\n \n, \n \n \n amount_set_shop_money_amount\n \n as \n \n amount_set_shop_money_amount\n \n, \n \n \n amount_set_shop_money_currency_code\n \n as \n \n amount_set_shop_money_currency_code\n \n, \n \n \n discount_application_index\n \n as \n \n discount_application_index\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_application_index", "order_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order.sql", "original_file_path": "models/rest/stg_shopify__order.sql", "unique_id": "model.shopify_source.stg_shopify__order", "fqn": ["shopify_source", "rest", "stg_shopify__order"], "alias": "stg_shopify__order", "checksum": {"name": "sha256", "checksum": "6610716cd337bcefb217f0cf6588b855c6ecf4045a690e229a1c57b19b48241e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5544114, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__order_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_order_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n {{ shopify_source.json_to_string(\"total_discounts_set\", source_columns_in_relation) }} as total_discounts_set,\n total_line_items_price,\n {{ shopify_source.json_to_string(\"total_line_items_price_set\", source_columns_in_relation) }} as total_line_items_price_set,\n total_price,\n {{ shopify_source.json_to_string(\"total_price_set\", source_columns_in_relation) }} as total_price_set,\n {{ shopify_source.json_to_string(\"total_tax_set\", source_columns_in_relation) }} as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(cancelled_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as cancelled_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n {{ shopify_source.json_to_string(\"total_shipping_price_set\", source_columns_in_relation) }} as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n cast(null as TEXT) as \n \n total_discounts_set\n \n , \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n cast(null as TEXT) as \n \n total_line_items_price_set\n \n , \n \n \n total_price\n \n as \n \n total_price\n \n, \n cast(null as TEXT) as \n \n total_price_set\n \n , \n cast(null as TEXT) as \n \n total_tax_set\n \n , \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n cast(null as float) as \n \n total_tip_received\n \n , \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n order_number\n \n as \n \n order_number\n \n, \n \n \n cancel_reason\n \n as \n \n cancel_reason\n \n, \n \n \n cancelled_at\n \n as \n \n cancelled_at\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n checkout_token\n \n as \n \n checkout_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n financial_status\n \n as \n \n financial_status\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n browser_ip\n \n as \n \n browser_ip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n cast(null as TEXT) as \n \n total_shipping_price_set\n \n , \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as integer) as \n \n app_id\n \n , \n cast(null as integer) as \n \n checkout_id\n \n , \n cast(null as TEXT) as \n \n client_details_user_agent\n \n , \n cast(null as TEXT) as \n \n customer_locale\n \n , \n cast(null as TEXT) as \n \n order_status_url\n \n , \n cast(null as TEXT) as \n \n presentment_currency\n \n , \n cast(null as boolean) as \n \n confirmed\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n total_discounts_set as total_discounts_set,\n total_line_items_price,\n total_line_items_price_set as total_line_items_price_set,\n total_price,\n total_price_set as total_price_set,\n total_tax_set as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(cancelled_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as cancelled_timestamp,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n total_shipping_price_set as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__transaction.sql", "original_file_path": "models/rest/stg_shopify__transaction.sql", "unique_id": "model.shopify_source.stg_shopify__transaction", "fqn": ["shopify_source", "rest", "stg_shopify__transaction"], "alias": "stg_shopify__transaction", "checksum": {"name": "sha256", "checksum": "d1c4d552029ac5491af20f77ec0fd7a2a98236f3c25c2dc1e6a613a4dbbb10ad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5644112, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__transaction_tmp')) %}\n\nwith base as (\n\n select * from {{ ref('stg_shopify__transaction_tmp') }}\n\n),\n\nfields as (\n\n select\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n {{ shopify_source.json_to_string(\"receipt\", source_columns_in_relation) }} as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(authorization_expires_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as authorization_expires_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('transaction_pass_through_columns') }}\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__transaction.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * from \"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"\n\n),\n\nfields as (\n\n select\n\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\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 processed_at\n \n as \n \n processed_at\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n payment_avs_result_code\n \n as \n \n payment_avs_result_code\n \n, \n \n \n payment_credit_card_bin\n \n as \n \n payment_credit_card_bin\n \n, \n \n \n payment_cvv_result_code\n \n as \n \n payment_cvv_result_code\n \n, \n \n \n payment_credit_card_number\n \n as \n \n payment_credit_card_number\n \n, \n \n \n payment_credit_card_company\n \n as \n \n payment_credit_card_company\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n receipt\n \n as \n \n receipt\n \n, \n \n \n currency_exchange_id\n \n as \n \n currency_exchange_id\n \n, \n \n \n currency_exchange_adjustment\n \n as \n \n currency_exchange_adjustment\n \n, \n \n \n currency_exchange_original_amount\n \n as \n \n currency_exchange_original_amount\n \n, \n \n \n currency_exchange_final_amount\n \n as \n \n currency_exchange_final_amount\n \n, \n \n \n currency_exchange_currency\n \n as \n \n currency_exchange_currency\n \n, \n \n \n error_code\n \n as \n \n error_code\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as timestamp) as \n \n authorization_expires_at\n \n , \n \n \n \n \n \"authorization\"\n \n \n \n as authorization_code \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n receipt as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(authorization_expires_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as authorization_expires_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["source_relation", "transaction_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_basic.sql", "original_file_path": "models/rest/stg_shopify__discount_code_basic.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_basic"], "alias": "stg_shopify__discount_code_basic", "checksum": {"name": "sha256", "checksum": "36e6431d35cf4791624e49bc76a0f3124e087452e777031fcfb250818ba0b9b5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata about basic discount codes created by merchants.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6360023, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_basic_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_shopify__discount_code_basic_tmp')),\n staging_columns=get_discount_code_basic_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_basic_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_basic.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as TEXT) as \n \n title\n \n , \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__fulfillment.sql", "original_file_path": "models/rest/stg_shopify__fulfillment.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment", "fqn": ["shopify_source", "rest", "stg_shopify__fulfillment"], "alias": "stg_shopify__fulfillment", "checksum": {"name": "sha256", "checksum": "ca3697aa2d2acc4e0714a2689336a063495e3bc64cc9515944e36f7ee55f1810"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5817506, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_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_shopify__fulfillment_tmp')),\n staging_columns=get_fulfillment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n shipment_status\n \n as \n \n shipment_status\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n tracking_company\n \n as \n \n tracking_company\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n tracking_numbers\n \n as \n \n tracking_numbers\n \n, \n \n \n tracking_urls\n \n as \n \n tracking_urls\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["fulfillment_id"], "time_spine": null}, "model.shopify_source.stg_shopify__metafield": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__metafield.sql", "original_file_path": "models/rest/stg_shopify__metafield.sql", "unique_id": "model.shopify_source.stg_shopify__metafield", "fqn": ["shopify_source", "rest", "stg_shopify__metafield"], "alias": "stg_shopify__metafield", "checksum": {"name": "sha256", "checksum": "e7e2a824bf892f5c1d89602d012a6ccdce8e45362840db93f341c741eb754596"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_id": {"name": "metafield_id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource_id": {"name": "owner_resource_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Coalescing of type and value_type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_reference": {"name": "metafield_reference", "description": "Combination of the namespace and key columns. This field is key for metafield mapping in downstream models.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating the most up to date record identified by the most recent updated_at field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5954292, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield\"", "raw_code": "{{ config(enabled=(var('shopify_using_metafield', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__metafield_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_shopify__metafield_tmp')),\n staging_columns=get_metafield_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n lower({{ dbt.concat([\"namespace\",\"'_'\",\"key\"]) }}) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield_tmp", "package": null, "version": null}, {"name": "stg_shopify__metafield_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_metafield_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt.concat"], "nodes": ["model.shopify_source.stg_shopify__metafield_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__metafield.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n 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 id\n \n as \n \n id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n namespace\n \n as \n \n namespace\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n owner_resource\n \n as \n \n owner_resource\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n lower(namespace || '_' || key) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["metafield_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_bxgy.sql", "original_file_path": "models/rest/stg_shopify__discount_code_bxgy.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_bxgy"], "alias": "stg_shopify__discount_code_bxgy", "checksum": {"name": "sha256", "checksum": "b47ced0eb2ea79958678c2ed4453bb46573b8b484f255c2e709af7ebe51453b8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for Buy X Get Y-style discount codes in Shopify, where discounts are applied based on product quantity thresholds.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6375039, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_bxgy_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_shopify__discount_code_bxgy_tmp')),\n staging_columns=get_discount_code_bxgy_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_bxgy_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_bxgy.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n cast(null as integer) as \n \n recurring_cycle_limit\n \n , \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__tender_transaction.sql", "original_file_path": "models/rest/stg_shopify__tender_transaction.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction", "fqn": ["shopify_source", "rest", "stg_shopify__tender_transaction"], "alias": "stg_shopify__tender_transaction", "checksum": {"name": "sha256", "checksum": "d4d8a6ff82d57efdf1f1814199d70d44444154dc08519b85aad3258b7fadeaa6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6189394, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__tender_transaction_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_shopify__tender_transaction_tmp')),\n staging_columns=get_tender_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tender_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__tender_transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n payment_method\n \n as \n \n payment_method\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n remote_reference\n \n as \n \n remote_reference\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["transaction_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_shipping_tax_line.sql", "original_file_path": "models/rest/stg_shopify__order_shipping_tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_shipping_tax_line"], "alias": "stg_shopify__order_shipping_tax_line", "checksum": {"name": "sha256", "checksum": "26fc98d9b37f25a22d931bc0786714888c2e7809a61b9e2cdd84c6c02c1deee4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this record is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6012182, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_tax_line_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_shopify__order_shipping_tax_line_tmp')),\n staging_columns=get_order_shipping_tax_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_shipping_tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_shipping_line_id\n \n as \n \n order_shipping_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_shipping_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__shop": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__shop.sql", "original_file_path": "models/rest/stg_shopify__shop.sql", "unique_id": "model.shopify_source.stg_shopify__shop", "fqn": ["shopify_source", "rest", "stg_shopify__shop"], "alias": "stg_shopify__shop", "checksum": {"name": "sha256", "checksum": "5530f9eaba5fde4a59b8556a0f242759bc63e380c45442ae1d5bc2a95225c3af"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_checkout_api_supported": {"name": "has_checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_county_taxes": {"name": "has_county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_card_reader_giveaway": {"name": "is_eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_payments": {"name": "is_eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_google_apps_login_enabled": {"name": "is_google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_password_enabled": {"name": "is_password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_pre_launch_enabled": {"name": "is_pre_launch_enabled", "description": "Boolean representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_extra_payments_agreement_required": {"name": "is_extra_payments_agreement_required", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_setup_required": {"name": "is_setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_shipping_taxes": {"name": "has_shipping_taxes", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included_in_price": {"name": "has_taxes_included_in_price", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6174755, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__shop_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__shop_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_shop_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n {{ shopify_source.json_to_string(\"enabled_presentment_currencies\", source_columns_in_relation) }} as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop_tmp", "package": null, "version": null}, {"name": "stg_shopify__shop_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_shop_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__shop_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__shop.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\n \n, \n \n \n checkout_api_supported\n \n as \n \n checkout_api_supported\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n cookie_consent_level\n \n as \n \n cookie_consent_level\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n county_taxes\n \n as \n \n county_taxes\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_email\n \n as \n \n customer_email\n \n, \n \n \n domain\n \n as \n \n domain\n \n, \n \n \n eligible_for_card_reader_giveaway\n \n as \n \n eligible_for_card_reader_giveaway\n \n, \n \n \n eligible_for_payments\n \n as \n \n eligible_for_payments\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n enabled_presentment_currencies\n \n as \n \n enabled_presentment_currencies\n \n, \n \n \n google_apps_domain\n \n as \n \n google_apps_domain\n \n, \n \n \n google_apps_login_enabled\n \n as \n \n google_apps_login_enabled\n \n, \n \n \n has_discounts\n \n as \n \n has_discounts\n \n, \n \n \n has_gift_cards\n \n as \n \n has_gift_cards\n \n, \n \n \n has_storefront\n \n as \n \n has_storefront\n \n, \n \n \n iana_timezone\n \n as \n \n iana_timezone\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 longitude\n \n as \n \n longitude\n \n, \n \n \n money_format\n \n as \n \n money_format\n \n, \n \n \n money_in_emails_format\n \n as \n \n money_in_emails_format\n \n, \n \n \n money_with_currency_format\n \n as \n \n money_with_currency_format\n \n, \n \n \n money_with_currency_in_emails_format\n \n as \n \n money_with_currency_in_emails_format\n \n, \n \n \n myshopify_domain\n \n as \n \n myshopify_domain\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n password_enabled\n \n as \n \n password_enabled\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n plan_display_name\n \n as \n \n plan_display_name\n \n, \n \n \n plan_name\n \n as \n \n plan_name\n \n, \n \n \n pre_launch_enabled\n \n as \n \n pre_launch_enabled\n \n, \n \n \n primary_locale\n \n as \n \n primary_locale\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n requires_extra_payments_agreement\n \n as \n \n requires_extra_payments_agreement\n \n, \n \n \n setup_required\n \n as \n \n setup_required\n \n, \n \n \n shop_owner\n \n as \n \n shop_owner\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n tax_shipping\n \n as \n \n tax_shipping\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n enabled_presentment_currencies as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["shop_id"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_level.sql", "original_file_path": "models/rest/stg_shopify__inventory_level.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_level"], "alias": "stg_shopify__inventory_level", "checksum": {"name": "sha256", "checksum": "79a7a96d7bd30b27bd745353030e4bd5a8f5bfa29cdc816e938a7b323d0a1d01"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available_quantity": {"name": "available_quantity", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.584398, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_level_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_shopify__inventory_level_tmp')),\n staging_columns=get_inventory_level_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_level_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_level_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_level.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n can_deactivate\n \n as \n \n can_deactivate\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deactivation_alert\n \n as \n \n deactivation_alert\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as integer) as \n \n available\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "inventory_level_id", "location_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_redeem_code.sql", "original_file_path": "models/rest/stg_shopify__discount_redeem_code.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code", "fqn": ["shopify_source", "rest", "stg_shopify__discount_redeem_code"], "alias": "stg_shopify__discount_redeem_code", "checksum": {"name": "sha256", "checksum": "999024fc5a37f651b415e8f306756d8c0a6c78043c125950dd1cb95377237b6d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each redeem code is tied to a parent discount and may be created by an app or manually.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This is updated asynchronously and may differ from real-time usage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (typically an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount the redeem code is associated with (e.g., `discount_code_basic`, `discount_code_app`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6413093, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_redeem_code_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_shopify__discount_redeem_code_tmp')),\n staging_columns=get_discount_redeem_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_redeem_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_redeem_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_by_description\n \n as \n \n created_by_description\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_by_title\n \n as \n \n created_by_title\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n discount_type\n \n as \n \n discount_type\n \n, \n \n \n id\n \n as \n \n id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__customer": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__customer.sql", "original_file_path": "models/rest/stg_shopify__customer.sql", "unique_id": "model.shopify_source.stg_shopify__customer", "fqn": ["shopify_source", "rest", "stg_shopify__customer"], "alias": "stg_shopify__customer", "checksum": {"name": "sha256", "checksum": "2493d71ed3533a8938368c51239486949c4a399cd4005d846f8008eb82b945e6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5461206, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__customer_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n {{ shopify_source.fivetran_convert_timezone(column='cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as marketing_consent_updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n {{ fivetran_utils.fill_pass_through_columns('customer_pass_through_columns') }}\n\n from fields\n \n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__customer_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__customer.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accepts_marketing\n \n as \n \n accepts_marketing\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n default_address_id\n \n as \n \n default_address_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n orders_count\n \n as \n \n orders_count\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n tax_exempt\n \n as \n \n tax_exempt\n \n, \n \n \n total_spent\n \n as \n \n total_spent\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n verified_email\n \n as \n \n verified_email\n \n, \n cast(null as timestamp) as \n \n email_marketing_consent_consent_updated_at\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_opt_in_level\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_state\n \n , \n cast(null as TEXT) as \n \n note\n \n , \n cast(null as timestamp) as \n \n accepts_marketing_updated_at\n \n , \n cast(null as TEXT) as \n \n marketing_opt_in_level\n \n , \n cast(null as TEXT) as \n \n currency\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n cast(\n cast(cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as marketing_consent_updated_at,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n \n\n\n\n\n\n from fields\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_item.sql", "original_file_path": "models/rest/stg_shopify__inventory_item.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_item"], "alias": "stg_shopify__inventory_item", "checksum": {"name": "sha256", "checksum": "853a6e06a16707a06826f7d445f609b75da97e7990fdb4386fb2bf47b5cd088b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item. Coalesced with the deprecated `cost` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5833132, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_item_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_shopify__inventory_item_tmp')),\n staging_columns=get_inventory_item_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country_code_of_origin\n \n as \n \n country_code_of_origin\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n province_code_of_origin\n \n as \n \n province_code_of_origin\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tracked\n \n as \n \n tracked\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n duplicate_sku_count\n \n as \n \n duplicate_sku_count\n \n, \n \n \n harmonized_system_code\n \n as \n \n harmonized_system_code\n \n, \n \n \n inventory_history_url\n \n as \n \n inventory_history_url\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n measurement_id\n \n as \n \n measurement_id\n \n, \n \n \n measurement_weight_value\n \n as \n \n measurement_weight_value\n \n, \n \n \n measurement_weight_unit\n \n as \n \n measurement_weight_unit\n \n, \n \n \n tracked_editable_locked\n \n as \n \n tracked_editable_locked\n \n, \n \n \n tracked_editable_reason\n \n as \n \n tracked_editable_reason\n \n, \n \n \n unit_cost_amount\n \n as \n \n unit_cost_amount\n \n, \n \n \n unit_cost_currency_code\n \n as \n \n unit_cost_currency_code\n \n, \n cast(null as float) as \n \n cost\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id"], "time_spine": null}, "model.shopify_source.stg_shopify__collection": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__collection.sql", "original_file_path": "models/rest/stg_shopify__collection.sql", "unique_id": "model.shopify_source.stg_shopify__collection", "fqn": ["shopify_source", "rest", "stg_shopify__collection"], "alias": "stg_shopify__collection", "checksum": {"name": "sha256", "checksum": "b14f356bbf20e962744b82a4ba45e57c6b82e6a988d3cfe60ce1cdf23b849904"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "rule_logic": {"name": "rule_logic", "description": "Whether the `rules` are disjunctive (logical `OR`) or conjunctive (logical `AND`)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparative relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values incline - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5775921, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__collection_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__collection_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_collection_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n {{ shopify_source.json_to_string(\"rules\", source_columns_in_relation) }} as rules,\n sort_order,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__collection.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n disjunctive\n \n as \n \n disjunctive\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\n \n, \n \n \n rules\n \n as \n \n rules\n \n, \n \n \n sort_order\n \n as \n \n sort_order\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\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n rules as rules,\n sort_order,\n title,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["collection_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_adjustment.sql", "original_file_path": "models/rest/stg_shopify__order_adjustment.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment", "fqn": ["shopify_source", "rest", "stg_shopify__order_adjustment"], "alias": "stg_shopify__order_adjustment", "checksum": {"name": "sha256", "checksum": "c4ddb2ba573ce5e01cef92e306dabe987669b60eaee828727876182dec8d4537"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"order_adjustment_id": {"name": "order_adjustment_id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in the shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5687695, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_adjustment_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_adjustment_tmp')),\n staging_columns=get_order_adjustment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_adjustment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_adjustment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_adjustment.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set\n \n as \n \n amount_set\n \n, \n \n \n tax_amount\n \n as \n \n tax_amount\n \n, \n \n \n tax_amount_set\n \n as \n \n tax_amount_set\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_adjustment_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__media.sql", "original_file_path": "models/rest/stg_shopify__media.sql", "unique_id": "model.shopify_source.stg_shopify__media", "fqn": ["shopify_source", "rest", "stg_shopify__media"], "alias": "stg_shopify__media", "checksum": {"name": "sha256", "checksum": "fbddf6477f3a1498b88f3a0699a65e4395a7631bb615234a6338242df8580429"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing media metadata, including status and timestamps.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5895936, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_tmp')),\n staging_columns=get_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_application.sql", "original_file_path": "models/rest/stg_shopify__discount_application.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application", "fqn": ["shopify_source", "rest", "stg_shopify__discount_application"], "alias": "stg_shopify__discount_application", "checksum": {"name": "sha256", "checksum": "eb9d6cd583dcf8522153a756ebd4b6179a68ebce8da489c17bee9b294d173ba8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing discount applications, which define how discounts were applied at the order level.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code associated with the application, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to all line items (`all`) or only those that are specifically entitled (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name or title of the discount as defined in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The value of the discount. If `value_type` is `percentage`, this represents a percentage. If `fixed_amount`, this is a fixed currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount value is a `percentage` or `fixed_amount`. If `target_type` is `shipping_line`, only `percentage` is accepted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6326, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_application_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_shopify__discount_application_tmp')),\n staging_columns=get_discount_application_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_application_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_application_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_application.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocation_method\n \n as \n \n allocation_method\n \n, \n \n \n code\n \n as \n \n code\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 order_id\n \n as \n \n order_id\n \n, \n \n \n target_selection\n \n as \n \n target_selection\n \n, \n \n \n target_type\n \n as \n \n target_type\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value\n \n as \n \n value\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_quantity.sql", "original_file_path": "models/rest/stg_shopify__inventory_quantity.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_quantity"], "alias": "stg_shopify__inventory_quantity", "checksum": {"name": "sha256", "checksum": "ceec14a24511cf768af52d91c6ee0c193dc4871c832b3a4136ed4ed7497f98dc"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The total quantity of the inventory item available at all locations.", "columns": {"inventory_quantity_id": {"name": "inventory_quantity_id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_state_name": {"name": "inventory_state_name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.585929, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_quantity_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_shopify__inventory_quantity_tmp')),\n staging_columns=get_inventory_quantity_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_quantity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_quantity.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_level_id\n \n as \n \n inventory_level_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "inventory_level_id", "inventory_quantity_id", "inventory_state_name", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_tag.sql", "original_file_path": "models/rest/stg_shopify__product_tag.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag", "fqn": ["shopify_source", "rest", "stg_shopify__product_tag"], "alias": "stg_shopify__product_tag", "checksum": {"name": "sha256", "checksum": "30ae521143e47b36580f3e0c4bc03bf3a2b2d39e2f219078194419fd2ef0ba08"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6058984, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_tag_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_shopify__product_tag_tmp')),\n staging_columns=get_product_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__product_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_variant.sql", "original_file_path": "models/rest/stg_shopify__product_variant.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant", "fqn": ["shopify_source", "rest", "stg_shopify__product_variant"], "alias": "stg_shopify__product_variant", "checksum": {"name": "sha256", "checksum": "8a25c78869bc4281ee618d06cc2a9154294d3a4d475d473f133a59ea72532f1a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_available_for_sale": {"name": "is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_components_required": {"name": "has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.562123, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_tmp')),\n staging_columns=get_product_variant_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_variant_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_variant_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\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 updated_at\n \n as \n \n updated_at\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n position\n \n as \n \n position\n \n, \n \n \n inventory_policy\n \n as \n \n inventory_policy\n \n, \n \n \n compare_at_price\n \n as \n \n compare_at_price\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n barcode\n \n as \n \n barcode\n \n, \n cast(null as numeric(28,6)) as \n \n old_inventory_quantity\n \n , \n \n \n inventory_quantity\n \n as \n \n inventory_quantity\n \n, \n \n \n tax_code\n \n as \n \n tax_code\n \n, \n \n \n available_for_sale\n \n as \n \n available_for_sale\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n requires_components\n \n as \n \n requires_components\n \n, \n \n \n sellable_online_quantity\n \n as \n \n sellable_online_quantity\n \n, \n cast(null as TEXT) as \n \n fulfillment_service\n \n , \n cast(null as float) as \n \n grams\n \n , \n cast(null as TEXT) as \n \n inventory_management\n \n , \n cast(null as float) as \n \n weight\n \n , \n cast(null as TEXT) as \n \n weight_unit\n \n , \n cast(null as TEXT) as \n \n option_1\n \n , \n cast(null as TEXT) as \n \n option_2\n \n , \n cast(null as TEXT) as \n \n option_3\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["source_relation", "variant_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_discount_code.sql", "original_file_path": "models/rest/stg_shopify__order_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code", "fqn": ["shopify_source", "rest", "stg_shopify__order_discount_code"], "alias": "stg_shopify__order_discount_code", "checksum": {"name": "sha256", "checksum": "e8738ee571f2712e359118c5799400f39259f8aef959df3c6df84aa83d819b71"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.621325, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_discount_code_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_shopify__order_discount_code_tmp')),\n staging_columns=get_order_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__media_image": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__media_image.sql", "original_file_path": "models/rest/stg_shopify__media_image.sql", "unique_id": "model.shopify_source.stg_shopify__media_image", "fqn": ["shopify_source", "rest", "stg_shopify__media_image"], "alias": "stg_shopify__media_image", "checksum": {"name": "sha256", "checksum": "3a6ae116ff7a7f495476ef47c6bd942d29fe17f4e5a683e88323c3e05877e556"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "Specifies the location of the product image, hashed for privacy. Coalesced with the deprecated `src` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.592035, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__media_image_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_image_tmp')),\n staging_columns=get_media_image_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_image_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_image_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__media_image_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__media_image.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_line.sql", "original_file_path": "models/rest/stg_shopify__order_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_line"], "alias": "stg_shopify__order_line", "checksum": {"name": "sha256", "checksum": "36ea0a90f4476fd400178aa8b6a37b2d30c8bc5325f7ff8dc0670ecd740f5def"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5503356, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_line_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_tmp')),\n staging_columns=get_order_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_pass_through_columns') }}\n\n from fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fulfillable_quantity\n \n as \n \n fulfillable_quantity\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n gift_card\n \n as \n \n gift_card\n \n, \n \n \n grams\n \n as \n \n grams\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n pre_tax_price\n \n as \n \n pre_tax_price\n \n, \n cast(null as TEXT) as \n \n pre_tax_price_set\n \n , \n \n \n price\n \n as \n \n price\n \n, \n cast(null as TEXT) as \n \n price_set\n \n , \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n cast(null as TEXT) as \n \n tax_code\n \n , \n \n \n title\n \n as \n \n title\n \n, \n \n \n total_discount\n \n as \n \n total_discount\n \n, \n cast(null as TEXT) as \n \n total_discount_set\n \n , \n \n \n variant_id\n \n as \n \n variant_id\n \n, \n cast(null as TEXT) as \n \n variant_title\n \n , \n cast(null as TEXT) as \n \n variant_inventory_management\n \n , \n \n \n vendor\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n properties\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_line_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_free_shipping.sql", "original_file_path": "models/rest/stg_shopify__discount_code_free_shipping.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_free_shipping"], "alias": "stg_shopify__discount_code_free_shipping", "checksum": {"name": "sha256", "checksum": "6cfeea54c8a7056fa680b926c2ae6ceeb594bf4e1a9857799b875bae0d73fc53"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for free shipping discount codes in Shopify, where shipping costs are discounted based on qualifying conditions.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.638984, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_free_shipping_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_shopify__discount_code_free_shipping_tmp')),\n staging_columns=get_discount_code_free_shipping_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_free_shipping_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_free_shipping.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__fulfillment_event.sql", "original_file_path": "models/rest/stg_shopify__fulfillment_event.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event", "fqn": ["shopify_source", "rest", "stg_shopify__fulfillment_event"], "alias": "stg_shopify__fulfillment_event", "checksum": {"name": "sha256", "checksum": "2aa34203a0c3980df4a385721479ddf040698998be9432e7334d403a7e525e56"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_event_id": {"name": "fulfillment_event_id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6276622, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"", "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_event_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_shopify__fulfillment_event_tmp')),\n staging_columns=get_fulfillment_event_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n {{ shopify_source.fivetran_convert_timezone(column='cast(estimated_delivery_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as estimated_delivery_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(happened_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__fulfillment_event.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\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 created_at\n \n as \n \n created_at\n \n, \n \n \n estimated_delivery_at\n \n as \n \n estimated_delivery_at\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n happened_at\n \n as \n \n happened_at\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 longitude\n \n as \n \n longitude\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n shop_id\n \n as \n \n shop_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n cast(\n cast(cast(estimated_delivery_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as estimated_delivery_at,\n cast(\n cast(cast(happened_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["fulfillment_event_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_note_attribute.sql", "original_file_path": "models/rest/stg_shopify__order_note_attribute.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute", "fqn": ["shopify_source", "rest", "stg_shopify__order_note_attribute"], "alias": "stg_shopify__order_note_attribute", "checksum": {"name": "sha256", "checksum": "e2c49df60461bef5bfebae6311cc92fa0bef64467a5d22e5dcf31d0d18b31250"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5963142, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_note_attribute_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_shopify__order_note_attribute_tmp')),\n staging_columns=get_order_note_attribute_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_note_attribute_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_note_attribute.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["name", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_line_refund.sql", "original_file_path": "models/rest/stg_shopify__order_line_refund.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund", "fqn": ["shopify_source", "rest", "stg_shopify__order_line_refund"], "alias": "stg_shopify__order_line_refund", "checksum": {"name": "sha256", "checksum": "aa4df0e851d252ad4d9a27a7c0f36bcc0577026ab1e9b016b645a6250dd9d0c6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_line_refund_id": {"name": "order_line_refund_id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.548579, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_line_refund_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_refund_tmp')),\n staging_columns=get_order_line_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_refund_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_line_refund.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n subtotal\n \n as \n \n subtotal\n \n, \n \n \n subtotal_set\n \n as \n \n subtotal_set\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_tax_set\n \n as \n \n total_tax_set\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n restock_type\n \n as \n \n restock_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_line_refund_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__refund.sql", "original_file_path": "models/rest/stg_shopify__refund.sql", "unique_id": "model.shopify_source.stg_shopify__refund", "fqn": ["shopify_source", "rest", "stg_shopify__refund"], "alias": "stg_shopify__refund", "checksum": {"name": "sha256", "checksum": "bda33a385dc2880adba5bbe2cf033de9509cc5389c76ef11e2c4923f757ef0b8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a refund within Shopify.", "columns": {"refund_id": {"name": "refund_id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5663924, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__refund_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__refund_tmp')),\n staging_columns=get_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__refund.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n restock\n \n as \n \n restock\n \n, \n \n \n total_duties_set\n \n as \n \n total_duties_set\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["refund_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__customer_tag.sql", "original_file_path": "models/rest/stg_shopify__customer_tag.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag", "fqn": ["shopify_source", "rest", "stg_shopify__customer_tag"], "alias": "stg_shopify__customer_tag", "checksum": {"name": "sha256", "checksum": "7ddbfed95b8851221f0fcec884872362a389f01cf7a6e0fdfcf21fae5de68c35"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5784926, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__customer_tag_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_shopify__customer_tag_tmp')),\n staging_columns=get_customer_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__customer_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__customer_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "index"], "time_spine": null}, "model.shopify_source.stg_shopify__product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product.sql", "original_file_path": "models/rest/stg_shopify__product.sql", "unique_id": "model.shopify_source.stg_shopify__product", "fqn": ["shopify_source", "rest", "stg_shopify__product"], "alias": "stg_shopify__product", "checksum": {"name": "sha256", "checksum": "6a92711673f429c4465f05d51488c01ce9e270cbd8df0434bcbeac8809f3d370"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5555568, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_tmp')),\n staging_columns=get_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_pass_through_columns') }}\n\nfrom fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"\n\n),\n\nfields as (\n\n select\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 handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\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\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n status\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\nfrom fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_tag.sql", "original_file_path": "models/rest/stg_shopify__order_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag", "fqn": ["shopify_source", "rest", "stg_shopify__order_tag"], "alias": "stg_shopify__order_tag", "checksum": {"name": "sha256", "checksum": "e4d40846975eafeecc76f411ee433af97b1ffe1a24fd2d27a11b6a0b17f8096f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6020985, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_tag_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_shopify__order_tag_tmp')),\n staging_columns=get_order_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__location": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__location.sql", "original_file_path": "models/rest/stg_shopify__location.sql", "unique_id": "model.shopify_source.stg_shopify__location", "fqn": ["shopify_source", "rest", "stg_shopify__location"], "alias": "stg_shopify__location", "checksum": {"name": "sha256", "checksum": "9c5af83aa1e6cb6cae684e11bc8c6a6aea6e040e08b32e7e0ce556e6a657df69"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy": {"name": "is_legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5887506, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__location_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_shopify__location_tmp')),\n staging_columns=get_location_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location_tmp", "package": null, "version": null}, {"name": "stg_shopify__location_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_location_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__location_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__location.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\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_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n legacy\n \n as \n \n legacy\n \n, \n \n \n localized_country_name\n \n as \n \n localized_country_name\n \n, \n \n \n localized_province_name\n \n as \n \n localized_province_name\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["location_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_url_tag.sql", "original_file_path": "models/rest/stg_shopify__order_url_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag", "fqn": ["shopify_source", "rest", "stg_shopify__order_url_tag"], "alias": "stg_shopify__order_url_tag", "checksum": {"name": "sha256", "checksum": "c20d1f6f0095e9d95f7694143ef693d91dc3438b40d254a451662414c1aa9699"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6029708, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_url_tag_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_shopify__order_url_tag_tmp')),\n staging_columns=get_order_url_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_url_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_url_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["key", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_media.sql", "original_file_path": "models/rest/stg_shopify__product_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_media", "fqn": ["shopify_source", "rest", "stg_shopify__product_media"], "alias": "stg_shopify__product_media", "checksum": {"name": "sha256", "checksum": "e866179624b96dced4df610afe1303d19b741bd9fba169f6c706a897330f9556"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6037836, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_media_tmp')),\n staging_columns=get_product_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_variant_media.sql", "original_file_path": "models/rest/stg_shopify__product_variant_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media", "fqn": ["shopify_source", "rest", "stg_shopify__product_variant_media"], "alias": "stg_shopify__product_variant_media", "checksum": {"name": "sha256", "checksum": "2a19d359137d9e352d5ab42327cf191199d918cef118124f2aee0272c513bb70"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6048946, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"", "raw_code": "{{ config(enabled=(var('shopify_using_product_variant_media', False) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_media_tmp')),\n staging_columns=get_product_variant_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_variant_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id", "product_variant_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout"], "alias": "stg_shopify__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "f8f4974bab648fcae4b0a95ec02701aad1981cc01d748404977a3bfac64de65a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_currency": {"name": "shop_currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.57391, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_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_shopify__abandoned_checkout_tmp')),\n staging_columns=get_abandoned_checkout_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n abandoned_checkout_url\n \n as \n \n abandoned_checkout_url\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n cast(null as TEXT) as \n \n billing_address_address_2\n \n , \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_locale\n \n as \n \n customer_locale\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n presentment_currency\n \n as \n \n presentment_currency\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n cast(null as TEXT) as \n \n shipping_address_address_2\n \n , \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n \n \n total_duties\n \n as \n \n total_duties\n \n, \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n \n \n total_price\n \n as \n \n total_price\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n user_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_app.sql", "original_file_path": "models/rest/stg_shopify__discount_code_app.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_app"], "alias": "stg_shopify__discount_code_app", "checksum": {"name": "sha256", "checksum": "3ff36db72d417bd6de0b40cba77865f1fcb5f0e5f3b6dc9fff266db6324a3b13"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for discount codes created through third-party apps in Shopify.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6344876, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"", "raw_code": "{{ config(enabled=(var('shopify_using_discount_code_app', False) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_app_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_shopify__discount_code_app_tmp')),\n staging_columns=get_discount_code_app_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_app_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_app.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count_count\n \n as \n \n codes_count_count\n \n, \n \n \n codes_count_precision\n \n as \n \n codes_count_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout_discount_code.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout_discount_code"], "alias": "stg_shopify__abandoned_checkout_discount_code", "checksum": {"name": "sha256", "checksum": "4f79565f0c0b60aaa4b9e6d55bb3d8e69dbc5e52a2bc952224ec9fc2777d5a08"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the discount codes from abandoned checkouts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6203485, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_discount_code_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_shopify__abandoned_checkout_discount_code_tmp')),\n staging_columns=get_abandoned_checkout_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n type\n \n as \n \n type\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 TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout_shipping_line.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout_shipping_line"], "alias": "stg_shopify__abandoned_checkout_shipping_line", "checksum": {"name": "sha256", "checksum": "fbf2d9940115326795a88f5c018c2e369638ef804e59a09602f65814824ba483"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_code": {"name": "shipping_code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "abandoned_checkout_shipping_line_id": {"name": "abandoned_checkout_shipping_line_id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6251967, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_shipping_line_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_shopify__abandoned_checkout_shipping_line_tmp')),\n staging_columns=get_abandoned_checkout_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n delivery_expectation_range\n \n as \n \n delivery_expectation_range\n \n, \n \n \n delivery_expectation_range_max\n \n as \n \n delivery_expectation_range_max\n \n, \n \n \n delivery_expectation_range_min\n \n as \n \n delivery_expectation_range_min\n \n, \n \n \n delivery_expectation_type\n \n as \n \n delivery_expectation_type\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id", "index", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__tax_line.sql", "original_file_path": "models/rest/stg_shopify__tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line", "fqn": ["shopify_source", "rest", "stg_shopify__tax_line"], "alias": "stg_shopify__tax_line", "checksum": {"name": "sha256", "checksum": "d69e6962393ead5e08c53a74bb2310b91352db44f50335ebb42e923f996baba5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6285727, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__tax_line_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_shopify__tax_line_tmp')),\n staging_columns=get_tax_line_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_line_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__collection_product.sql", "original_file_path": "models/rest/stg_shopify__collection_product.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product", "fqn": ["shopify_source", "rest", "stg_shopify__collection_product"], "alias": "stg_shopify__collection_product", "checksum": {"name": "sha256", "checksum": "0abb81383bce80941338fce6c30579fd7e729cce5a443d0921752640c0450779"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5751395, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__collection_product_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_shopify__collection_product_tmp')),\n staging_columns=get_collection_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__collection_product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n collection_id\n \n as \n \n collection_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["collection_id", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__metafield_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__metafield_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__metafield_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__metafield_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__metafield_tmp"], "alias": "stg_shopify__metafield_tmp", "checksum": {"name": "sha256", "checksum": "5414a4c10292fcacadde27a458e5df75130c4f8c14e5b38887bc42eefb8a0b53"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.6234593, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_metafield', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='metafield', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='metafield_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "metafield"], ["shopify", "metafield"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__metafield_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_metafield_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_bxgy_tmp"], "alias": "stg_shopify__discount_code_bxgy_tmp", "checksum": {"name": "sha256", "checksum": "bc9ed40d3831d9595a9522c0dd7c6afddc3ff313c1959896e1bc498d17f12551"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.6620116, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_bxgy', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_bxgy_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_bxgy"], ["shopify", "discount_code_bxgy"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__fulfillment_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__fulfillment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__fulfillment_tmp"], "alias": "stg_shopify__fulfillment_tmp", "checksum": {"name": "sha256", "checksum": "93a633acef33eac51374633d67a9e6bf52c1c1b813b549c211bb9fd23cf16938"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.6704085, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment"], ["shopify", "fulfillment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__fulfillment_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_variant_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_variant_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_variant_tmp"], "alias": "stg_shopify__product_variant_tmp", "checksum": {"name": "sha256", "checksum": "1479b98d0d8fc9c6fd0ded96f6b0aa50e05e71a67bf61d54de8abac635aa1920"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.67944, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant"], ["shopify", "product_variant"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_variant_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__collection_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__collection_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__collection_tmp"], "alias": "stg_shopify__collection_tmp", "checksum": {"name": "sha256", "checksum": "83677a641e5bf258065b60673dc391162a342de5ac494faafa9af5c370f048d7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.6876793, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection"], ["shopify", "collection"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__collection_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_discount_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_discount_code_tmp"], "alias": "stg_shopify__order_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "37a4d39417499542b5aeca8c362b51a3e3d95e6908f2a7a9af57b44e170c1046"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.695948, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_discount_code"], ["shopify", "order_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_url_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_url_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_url_tag_tmp"], "alias": "stg_shopify__order_url_tag_tmp", "checksum": {"name": "sha256", "checksum": "9acc8c7614789de25d394b07b8638e54639ea5d0fcb75765963d0bca0f63f353"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7042692, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_url_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_url_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_url_tag"], ["shopify", "order_url_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_url_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_url_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_tmp"], "alias": "stg_shopify__product_tmp", "checksum": {"name": "sha256", "checksum": "dd2e5338bf797082fe088c198911e406eb041e87cd28e1352a7a2835b0122ffe"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7138357, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product"], ["shopify", "product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_tag_tmp"], "alias": "stg_shopify__order_tag_tmp", "checksum": {"name": "sha256", "checksum": "a42066ecdf32f3882d6fa6a1c3df6b75d69ce0a4553375d3320a61f1a1de08f6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7220879, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_tag"], ["shopify", "order_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_quantity_tmp"], "alias": "stg_shopify__inventory_quantity_tmp", "checksum": {"name": "sha256", "checksum": "888a1894a42f30df0c772f9551fb3298534856d39b261bcab4c94f3e62fa4a8d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.730427, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_quantity', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_quantity_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_quantity"], ["shopify", "inventory_quantity"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__tax_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__tax_line_tmp"], "alias": "stg_shopify__tax_line_tmp", "checksum": {"name": "sha256", "checksum": "f904365c42217c601725c775a158e9dd20e3e0cd976b5df19c993275cdb49d6f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7387254, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tax_line"], ["shopify", "tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__customer_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__customer_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__customer_tag_tmp"], "alias": "stg_shopify__customer_tag_tmp", "checksum": {"name": "sha256", "checksum": "cacc0b85d32b6695c089824f90b3d43e47ca479d9fd5b5751bf4d517d60f28be"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.748144, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer_tag"], ["shopify", "customer_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__customer_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_allocation_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_allocation_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_allocation_tmp"], "alias": "stg_shopify__discount_allocation_tmp", "checksum": {"name": "sha256", "checksum": "eef0c91992b9834308249935e8ba406fd0c5782a684da3d90859ef1ae3db7040"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7564013, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_allocation', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_allocation_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_allocation"], ["shopify", "discount_allocation"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_allocation_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_allocation_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_image_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__media_image_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__media_image_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_image_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__media_image_tmp"], "alias": "stg_shopify__media_image_tmp", "checksum": {"name": "sha256", "checksum": "c4780240faf9cb4ab2a407a9419b94336727ec3b77d6bfb1ac753fc8c4179208"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7645915, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media_image', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_image_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media_image"], ["shopify", "media_image"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__media_image_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_image_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__media_tmp"], "alias": "stg_shopify__media_tmp", "checksum": {"name": "sha256", "checksum": "0c94b30527a13af3563413d119affaec39c52720d8aca5223af84b9ad8c55eac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7728405, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media"], ["shopify", "media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__refund_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__refund_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__refund_tmp"], "alias": "stg_shopify__refund_tmp", "checksum": {"name": "sha256", "checksum": "0d3eceddf310b90dc85313e6286c98c2894031ab4569f3db315388dcaef32f8f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7810838, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you create a refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "refund"], ["shopify", "refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__refund_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you create a refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__location_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__location_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__location_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__location_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__location_tmp"], "alias": "stg_shopify__location_tmp", "checksum": {"name": "sha256", "checksum": "b633d3eb65fefb379a9cd5f44ff617a1fc99c132ed5d0bb81e18c9bce0665013"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7908716, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='location', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='location_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "location"], ["shopify", "location"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__location_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_level_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_level_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_level_tmp"], "alias": "stg_shopify__inventory_level_tmp", "checksum": {"name": "sha256", "checksum": "7d78bc258a56f48d8968e1910dd797fe7d73a5d83d4bc165080ea5769a4f0727"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7992032, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_level', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_level_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_level"], ["shopify", "inventory_level"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_level_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_level_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_shipping_line_tmp"], "alias": "stg_shopify__order_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "14e60b7aefb49552134a34cdb90c47cd4ce6da6381d0586553738d7d4b823d6d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8074489, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_line"], ["shopify", "order_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_discount_code_tmp"], "alias": "stg_shopify__abandoned_checkout_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "a6071b36e80e24d2b0cd31158419e657ac970ce35f8c6c9d3df08606bae64cdc"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8157148, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_discount_code"], ["shopify", "abandoned_checkout_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__fulfillment_event_tmp"], "alias": "stg_shopify__fulfillment_event_tmp", "checksum": {"name": "sha256", "checksum": "f81a5b8e0dd6dbe917bcfeddf57d4d6ac608409132baad5cc131406c3143cb24"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8255322, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_event', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_event_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment_event"], ["shopify", "fulfillment_event"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_line_refund_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_line_refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_line_refund_tmp"], "alias": "stg_shopify__order_line_refund_tmp", "checksum": {"name": "sha256", "checksum": "19f0e79eaed071741c7e53e9b5e90e693184225cc4ca171806f698404df07126"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8342268, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order line refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line_refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line_refund"], ["shopify", "order_line_refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_line_refund_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order line refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_app_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_app_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_app_tmp"], "alias": "stg_shopify__discount_code_app_tmp", "checksum": {"name": "sha256", "checksum": "c633d1450d2ee190d81cb6f4267d15ed580e17bbcc5bbb0958f2f49a2bafc008"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.842324, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_discount_code_app', False) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_app', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_app_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_app"], ["shopify", "discount_code_app"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_app_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_app_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__shop_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__shop_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__shop_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__shop_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__shop_tmp"], "alias": "stg_shopify__shop_tmp", "checksum": {"name": "sha256", "checksum": "e9f782471f9533f7b339be8a70a57196eb8135b5cfe449d2957810794f289803"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.850978, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='shop', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='shop_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "shop"], ["shopify", "shop"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__shop_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_shop_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__transaction_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__transaction_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__transaction_tmp"], "alias": "stg_shopify__transaction_tmp", "checksum": {"name": "sha256", "checksum": "fe66d5a0482b65f07d4d7173cd2aef146efabcf38e17fed7aa2e7d1d1f8b1f33"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8602495, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "transaction"], ["shopify", "transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_variant_media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_variant_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_variant_media_tmp"], "alias": "stg_shopify__product_variant_media_tmp", "checksum": {"name": "sha256", "checksum": "cd139c183a1ca8cb8118db376fa3f7d1b31636685eb01ec485a82e75a7a28d65"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8684807, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_product_variant_media', False) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant_media"], ["shopify", "product_variant_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_variant_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_line_tmp"], "alias": "stg_shopify__order_line_tmp", "checksum": {"name": "sha256", "checksum": "d8a2b2b7331a577fe56b007114d5e8d9c9422dec4bdc3a7a92ed4b975e811eab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.877127, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line"], ["shopify", "order_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_media_tmp"], "alias": "stg_shopify__product_media_tmp", "checksum": {"name": "sha256", "checksum": "a05118e90fbe264d9ec4586834a925938d4ffdc01126953864c80e75d1e1572f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8853958, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_media"], ["shopify", "product_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_basic_tmp"], "alias": "stg_shopify__discount_code_basic_tmp", "checksum": {"name": "sha256", "checksum": "6b6304e0f284579e79af69626b602eb9c4bd9de54c74e74b4956174d796d24fb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8947246, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_basic', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_basic_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_basic"], ["shopify", "discount_code_basic"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_shipping_tax_line_tmp"], "alias": "stg_shopify__order_shipping_tax_line_tmp", "checksum": {"name": "sha256", "checksum": "5d38344e972f1093709af51973879e64d530563a4b82ec9d06d313db387c5318"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.9029756, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_tax_line"], ["shopify", "order_shipping_tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_note_attribute_tmp"], "alias": "stg_shopify__order_note_attribute_tmp", "checksum": {"name": "sha256", "checksum": "2cc3882bae2ba3aa7c2110da7e9e80172971e9ca75b03700615c4ec0e85124af"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.911081, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_note_attribute', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_note_attribute_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_note_attribute"], ["shopify", "order_note_attribute"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_application_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_application_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_application_tmp"], "alias": "stg_shopify__discount_application_tmp", "checksum": {"name": "sha256", "checksum": "303e6de79bb4d473c2d041c88a66aa1ee0a79961b5b044472cb5a5b2169cb622"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.919302, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_application', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_application_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_application"], ["shopify", "discount_application"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_application_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_application_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__tender_transaction_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__tender_transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__tender_transaction_tmp"], "alias": "stg_shopify__tender_transaction_tmp", "checksum": {"name": "sha256", "checksum": "2ff3b509f93c78e9e47e8dce5e43f5c97a8ad66b5cb9b2ff68f9b4ddb37b502d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.9285364, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tender_transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tender_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tender_transaction"], ["shopify", "tender_transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__tender_transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tender_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_free_shipping_tmp"], "alias": "stg_shopify__discount_code_free_shipping_tmp", "checksum": {"name": "sha256", "checksum": "daf2f7cefba4ef7cf8917d509e7a199b591e31ba3931e27a0b0d81e4e551184d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.9367247, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_free_shipping', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_free_shipping_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_free_shipping"], ["shopify", "discount_code_free_shipping"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_tag_tmp"], "alias": "stg_shopify__product_tag_tmp", "checksum": {"name": "sha256", "checksum": "6103799f99a890d76dc2ec51299412d9708fd31f94528fb71198148f4462a9b4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.9449472, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_tag"], ["shopify", "product_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_item_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_item_tmp"], "alias": "stg_shopify__inventory_item_tmp", "checksum": {"name": "sha256", "checksum": "80078c5de257923b797af6925dace90a4bc9540ba0b787c0d94cd99f90fb2df9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.9531949, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_item"], ["shopify", "inventory_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_tmp"], "alias": "stg_shopify__order_tmp", "checksum": {"name": "sha256", "checksum": "67e08e77af56b0e21cbe52d7cae143433d14a805c38eae3aeaaa6325e4849af5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.962564, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order',\n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order"], ["shopify", "order"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_redeem_code_tmp"], "alias": "stg_shopify__discount_redeem_code_tmp", "checksum": {"name": "sha256", "checksum": "ee9513dba26602b035fed4f3b201585cf07e919856c51d1f846b7ffee8f71cca"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505366.0635366, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_redeem_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_redeem_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_redeem_code"], ["shopify", "discount_redeem_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__customer_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__customer_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__customer_tmp"], "alias": "stg_shopify__customer_tmp", "checksum": {"name": "sha256", "checksum": "8186176eeffaabc3738d1e3aa65b2a56d1a708202122324f0169520faf245327"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505366.0720584, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer"], ["shopify", "customer"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__customer_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_adjustment_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_adjustment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_adjustment_tmp"], "alias": "stg_shopify__order_adjustment_tmp", "checksum": {"name": "sha256", "checksum": "660c959bd994c8ebeb444328094cae630dae00be0ffdfecedb5e46d62635507d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505366.080324, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_adjustment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_adjustment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_adjustment"], ["shopify", "order_adjustment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_adjustment_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_adjustment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_shipping_line_tmp"], "alias": "stg_shopify__abandoned_checkout_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "5197f889810c43cba25bb329b29fc36f1a2694481886a84d85db44061121e4ba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505366.088611, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_shipping_line"], ["shopify", "abandoned_checkout_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__collection_product_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__collection_product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__collection_product_tmp"], "alias": "stg_shopify__collection_product_tmp", "checksum": {"name": "sha256", "checksum": "f210c463c05bd68110fb94b96ecc72832aa2b6c6bcbbd0faa14fd9e081f098ff"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505366.0983546, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection_product"], ["shopify", "collection_product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__collection_product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_tmp"], "alias": "stg_shopify__abandoned_checkout_tmp", "checksum": {"name": "sha256", "checksum": "725135b3d811e4e230601561e990f0c8f03ff22a855abd5b57e8152ae0093e43"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505366.106575, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout"], ["shopify", "abandoned_checkout"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__media.sql", "original_file_path": "models/graphql/stg_shopify_gql__media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__media"], "alias": "stg_shopify_gql__media", "checksum": {"name": "sha256", "checksum": "653de7e7a0d32617a2b87aee243be40cd14af47689ece20af8771b3c27136913"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing media metadata, including status and timestamps.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `media_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4214141, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__media_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_shopify_gql__media_tmp')),\n staging_columns=get_graphql_media_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_visit": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_visit.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_visit.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_visit"], "alias": "stg_shopify_gql__customer_visit", "checksum": {"name": "sha256", "checksum": "dc6dbc7c87fbaf8737671d7d2f502113fa6266ae3ed31720df6bf23974c04c56"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metadata about a customer's session visiting a Shopify store, including session, landing page, referrer, marketing campaign, and source attribution information. This data helps merchants analyze the effectiveness of marketing campaigns and customer engagement.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_visit_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_visit_id": {"name": "customer_visit_id", "description": "A globally-unique identifier for the customer visit session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "The ID of the order associated with the customer visit, if any.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of marketing tactic associated with the session. Possible values include: abandoned_cart, ad, affiliate, link, loyalty, message, newsletter, notification, post, retargeting, seo, storefront_app, transactional.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page": {"name": "landing_page", "description": "The URL of the first page the customer landed on for the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page_html": {"name": "landing_page_html", "description": "The landing page URL rendered as HTML with a hyperlink.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "occurred_at": {"name": "occurred_at", "description": "The timestamp when the customer's session occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_code": {"name": "referral_code", "description": "A marketing referral code captured from the landing URL. Supports query params like `ref`, `source`, or `r`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_info_html": {"name": "referral_info_html", "description": "Referral info rendered as HTML with URLs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The referring webpage where the customer clicked a link to arrive at the store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The origin of the customer's visit, such as a platform (e.g., Facebook, Google), a QR code, direct, or other attribution channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_description": {"name": "source_description", "description": "A more descriptive label for the visit source; used primarily for the first or last session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_type": {"name": "source_type", "description": "The marketing tactic type, such as ad, seo, newsletter, etc.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_campaign": {"name": "utm_parameters_campaign", "description": "The name of the marketing campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_content": {"name": "utm_parameters_content", "description": "Identifies specific content within a campaign, used to differentiate similar links.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_medium": {"name": "utm_parameters_medium", "description": "The medium of the campaign (e.g., cpc, banner, email).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_source": {"name": "utm_parameters_source", "description": "The traffic source for the campaign (e.g., google, newsletter).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_term": {"name": "utm_parameters_term", "description": "Search terms associated with paid campaigns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4534693, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_customer_visit', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_visit_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_shopify_gql__customer_visit_tmp')),\n staging_columns=get_graphql_customer_visit_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_visit_id,\n order_id,\n type,\n landing_page,\n landing_page_html,\n referral_code,\n referral_info_html,\n referrer_url as referring_site,\n source,\n source_description,\n source_type,\n utm_parameters_campaign,\n utm_parameters_content,\n utm_parameters_medium,\n utm_parameters_source,\n utm_parameters_term,\n {{ shopify_source.fivetran_convert_timezone(column='cast(occurred_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as occurred_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_visit_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_visit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_visit.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n landing_page\n \n as \n \n landing_page\n \n, \n \n \n landing_page_html\n \n as \n \n landing_page_html\n \n, \n \n \n occurred_at\n \n as \n \n occurred_at\n \n, \n \n \n referral_code\n \n as \n \n referral_code\n \n, \n \n \n referral_info_html\n \n as \n \n referral_info_html\n \n, \n \n \n referrer_url\n \n as \n \n referrer_url\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_description\n \n as \n \n source_description\n \n, \n \n \n source_type\n \n as \n \n source_type\n \n, \n \n \n utm_parameters_campaign\n \n as \n \n utm_parameters_campaign\n \n, \n \n \n utm_parameters_content\n \n as \n \n utm_parameters_content\n \n, \n \n \n utm_parameters_medium\n \n as \n \n utm_parameters_medium\n \n, \n \n \n utm_parameters_source\n \n as \n \n utm_parameters_source\n \n, \n \n \n utm_parameters_term\n \n as \n \n utm_parameters_term\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_visit_id,\n order_id,\n type,\n landing_page,\n landing_page_html,\n referral_code,\n referral_info_html,\n referrer_url as referring_site,\n source,\n source_description,\n source_type,\n utm_parameters_campaign,\n utm_parameters_content,\n utm_parameters_medium,\n utm_parameters_source,\n utm_parameters_term,\n cast(\n cast(cast(occurred_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as occurred_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_app": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_app.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_app.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_app"], "alias": "stg_shopify_gql__discount_code_app", "checksum": {"name": "sha256", "checksum": "0ba65d555b341ea472c2d2b467241a6df089e4b223676e974feffdd7f747df7a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for discount codes created through third-party apps in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.403328, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_discount_code_app', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_app_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_shopify_gql__discount_code_app_tmp')),\n staging_columns=get_graphql_discount_code_app_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_app_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_app_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_app.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count_count\n \n as \n \n codes_count_count\n \n, \n \n \n codes_count_precision\n \n as \n \n codes_count_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_tag"], "alias": "stg_shopify_gql__customer_tag", "checksum": {"name": "sha256", "checksum": "d1dc3244691c097ebdca6b9f76fcb51c4f898b7d4653bb1a2e3c1c092c9b3d70"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.3174574, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_tag_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_shopify_gql__customer_tag_tmp')),\n staging_columns=get_graphql_customer_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['customer_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order.sql", "original_file_path": "models/graphql/stg_shopify_gql__order.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order"], "alias": "stg_shopify_gql__order", "checksum": {"name": "sha256", "checksum": "9c104f3d7986e5c83382a7cec256a7666306e5f61fdbd590a8c0cac6b185c13e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "A globally-unique ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the customer who placed the order. Useful for fraud detection and geographic analysis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The shop currency when the order was placed. For example, \"USD\" or \"CAD\".", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "An order's financial status for display in the Shopify admin. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFinancialStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's fulfillment status that displays in the Shopify admin to merchants. For example, an order might be unfulfilled or scheduled. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFulfillmentStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The unique identifier for the order that appears on the order page in the Shopify admin and the Order status page. For example, \"#1001\", \"EN1001\", or \"1001-A\". This value isn't unique across multiple stores.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The optional note associated with the order. Contains additional information or instructions added by merchants or customers during the order process. Commonly used for special delivery instructions, gift messages, or internal processing notes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The name of the source associated with the order, such as \"web\", \"mobile_app\", or \"pos\". Use this field to identify the platform where the order was placed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_amount": {"name": "total_discounts_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_amount": {"name": "total_discounts_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_currency_code": {"name": "total_discounts_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_currency_code": {"name": "total_discounts_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights before returns, in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The staff member who created or is responsible for the order. Useful for tracking which team member handled phone orders, manual orders, or order modifications. Returns null for orders created directly by customers through the online store.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL where customers can check their order's current status, including tracking information and delivery updates. Provides order tracking links in emails, apps, or customer communications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received_shop_amount": {"name": "total_tip_received_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_amount": {"name": "total_tip_received_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_currency_code": {"name": "total_tip_received_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_currency_code": {"name": "total_tip_received_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_amount": {"name": "shipping_cost_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_amount": {"name": "shipping_cost_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_currency_code": {"name": "shipping_cost_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_currency_code": {"name": "shipping_cost_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.3058674, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_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_shopify_gql__order_tmp')),\n staging_columns=get_graphql_order_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_id,\n staff_member_id as user_id,\n total_discounts_set_pres_amount as total_discounts_pres_amount,\n total_discounts_set_pres_currency_code as total_discounts_pres_currency_code,\n total_discounts_set_shop_amount as total_discounts_shop_amount,\n total_discounts_set_shop_currency_code as total_discounts_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n source_name,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received_set_pres_amount as total_tip_received_pres_amount,\n total_tip_received_set_pres_currency_code as total_tip_received_pres_currency_code,\n total_tip_received_set_shop_amount as total_tip_received_shop_amount,\n total_tip_received_set_shop_currency_code as total_tip_received_shop_currency_code,\n location_id,\n name,\n note,\n number, -- Will be included in 2025-07 release of GraphQL API\n cancel_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(cancelled_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as cancelled_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n currency_code as currency,\n customer_id,\n lower(email) as email,\n lower(display_financial_status) as financial_status,\n lower(display_fulfillment_status) as fulfillment_status,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n client_ip as browser_ip,\n total_shipping_price_set_pres_amount as shipping_cost_pres_amount,\n total_shipping_price_set_pres_currency_code as shipping_cost_pres_currency_code,\n total_shipping_price_set_shop_amount as shipping_cost_shop_amount,\n total_shipping_price_set_shop_currency_code as shipping_cost_shop_currency_code,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n app_id,\n customer_locale,\n status_page_url as order_status_url,\n presentment_currency_code as presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n customer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('order_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n app_id\n \n as \n \n app_id\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n cancel_reason\n \n as \n \n cancel_reason\n \n, \n \n \n cancelled_at\n \n as \n \n cancelled_at\n \n, \n \n \n client_ip\n \n as \n \n client_ip\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n confirmed\n \n as \n \n confirmed\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n customer_accepts_marketing\n \n as \n \n customer_accepts_marketing\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_locale\n \n as \n \n customer_locale\n \n, \n \n \n display_financial_status\n \n as \n \n display_financial_status\n \n, \n \n \n display_fulfillment_status\n \n as \n \n display_fulfillment_status\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n presentment_currency_code\n \n as \n \n presentment_currency_code\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n status_page_url\n \n as \n \n status_page_url\n \n, \n \n \n subtotal_price_set_pres_amount\n \n as \n \n subtotal_price_set_pres_amount\n \n, \n \n \n subtotal_price_set_pres_currency_code\n \n as \n \n subtotal_price_set_pres_currency_code\n \n, \n \n \n subtotal_price_set_shop_amount\n \n as \n \n subtotal_price_set_shop_amount\n \n, \n \n \n subtotal_price_set_shop_currency_code\n \n as \n \n subtotal_price_set_shop_currency_code\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n total_discounts_set_pres_amount\n \n as \n \n total_discounts_set_pres_amount\n \n, \n \n \n total_discounts_set_pres_currency_code\n \n as \n \n total_discounts_set_pres_currency_code\n \n, \n \n \n total_discounts_set_shop_amount\n \n as \n \n total_discounts_set_shop_amount\n \n, \n \n \n total_discounts_set_shop_currency_code\n \n as \n \n total_discounts_set_shop_currency_code\n \n, \n \n \n total_price_set_pres_amount\n \n as \n \n total_price_set_pres_amount\n \n, \n \n \n total_price_set_pres_currency_code\n \n as \n \n total_price_set_pres_currency_code\n \n, \n \n \n total_price_set_shop_amount\n \n as \n \n total_price_set_shop_amount\n \n, \n \n \n total_price_set_shop_currency_code\n \n as \n \n total_price_set_shop_currency_code\n \n, \n \n \n total_shipping_price_set_pres_amount\n \n as \n \n total_shipping_price_set_pres_amount\n \n, \n \n \n total_shipping_price_set_pres_currency_code\n \n as \n \n total_shipping_price_set_pres_currency_code\n \n, \n \n \n total_shipping_price_set_shop_amount\n \n as \n \n total_shipping_price_set_shop_amount\n \n, \n \n \n total_shipping_price_set_shop_currency_code\n \n as \n \n total_shipping_price_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\n \n, \n \n \n total_tip_received_set_pres_amount\n \n as \n \n total_tip_received_set_pres_amount\n \n, \n \n \n total_tip_received_set_pres_currency_code\n \n as \n \n total_tip_received_set_pres_currency_code\n \n, \n \n \n total_tip_received_set_shop_amount\n \n as \n \n total_tip_received_set_shop_amount\n \n, \n \n \n total_tip_received_set_shop_currency_code\n \n as \n \n total_tip_received_set_shop_currency_code\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_id,\n staff_member_id as user_id,\n total_discounts_set_pres_amount as total_discounts_pres_amount,\n total_discounts_set_pres_currency_code as total_discounts_pres_currency_code,\n total_discounts_set_shop_amount as total_discounts_shop_amount,\n total_discounts_set_shop_currency_code as total_discounts_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n source_name,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received_set_pres_amount as total_tip_received_pres_amount,\n total_tip_received_set_pres_currency_code as total_tip_received_pres_currency_code,\n total_tip_received_set_shop_amount as total_tip_received_shop_amount,\n total_tip_received_set_shop_currency_code as total_tip_received_shop_currency_code,\n location_id,\n name,\n note,\n number, -- Will be included in 2025-07 release of GraphQL API\n cancel_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(cancelled_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as cancelled_timestamp,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n currency_code as currency,\n customer_id,\n lower(email) as email,\n lower(display_financial_status) as financial_status,\n lower(display_fulfillment_status) as fulfillment_status,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n client_ip as browser_ip,\n total_shipping_price_set_pres_amount as shipping_cost_pres_amount,\n total_shipping_price_set_pres_currency_code as shipping_cost_pres_currency_code,\n total_shipping_price_set_shop_amount as shipping_cost_shop_amount,\n total_shipping_price_set_shop_currency_code as shipping_cost_shop_currency_code,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n app_id,\n customer_locale,\n status_page_url as order_status_url,\n presentment_currency_code as presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n customer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_line"], "alias": "stg_shopify_gql__order_line", "checksum": {"name": "sha256", "checksum": "109c38abe09fecda46bfe1c3abaab41598133e0972636f50bb20d067987f3185"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.3076284, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_line_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_shopify_gql__order_line_tmp')),\n staging_columns=get_graphql_order_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_line_id,\n row_number() over(partition by order_id, source_relation order by id asc) as index,\n name,\n order_id,\n case \n when unfulfilled_quantity = 0 then 'fulfilled'\n when unfulfilled_quantity > 0 and unfulfilled_quantity < quantity then 'partial'\n when unfulfilled_quantity = quantity then 'unfulfilled'\n else null \n end as fulfillment_status,\n is_gift_card,\n original_total_set_pres_amount as price_pres_amount,\n original_total_set_pres_currency_code as price_pres_currency_code,\n original_total_set_shop_amount as price_shop_amount,\n original_total_set_shop_currency_code as price_shop_currency_code,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n title,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n variant_id,\n variant_title,\n vendor,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n {{ fivetran_utils.fill_pass_through_columns('order_line_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_gift_card\n \n as \n \n is_gift_card\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n original_total_set_pres_amount\n \n as \n \n original_total_set_pres_amount\n \n, \n \n \n original_total_set_pres_currency_code\n \n as \n \n original_total_set_pres_currency_code\n \n, \n \n \n original_total_set_shop_amount\n \n as \n \n original_total_set_shop_amount\n \n, \n \n \n original_total_set_shop_currency_code\n \n as \n \n original_total_set_shop_currency_code\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\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 total_discount_set_pres_amount\n \n as \n \n total_discount_set_pres_amount\n \n, \n \n \n total_discount_set_pres_currency_code\n \n as \n \n total_discount_set_pres_currency_code\n \n, \n \n \n total_discount_set_shop_amount\n \n as \n \n total_discount_set_shop_amount\n \n, \n \n \n total_discount_set_shop_currency_code\n \n as \n \n total_discount_set_shop_currency_code\n \n, \n \n \n unfulfilled_quantity\n \n as \n \n unfulfilled_quantity\n \n, \n \n \n variant_id\n \n as \n \n variant_id\n \n, \n \n \n variant_title\n \n as \n \n variant_title\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_line_id,\n row_number() over(partition by order_id, source_relation order by id asc) as index,\n name,\n order_id,\n case \n when unfulfilled_quantity = 0 then 'fulfilled'\n when unfulfilled_quantity > 0 and unfulfilled_quantity < quantity then 'partial'\n when unfulfilled_quantity = quantity then 'unfulfilled'\n else null \n end as fulfillment_status,\n is_gift_card,\n original_total_set_pres_amount as price_pres_amount,\n original_total_set_pres_currency_code as price_pres_currency_code,\n original_total_set_shop_amount as price_shop_amount,\n original_total_set_shop_currency_code as price_shop_currency_code,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n title,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n variant_id,\n variant_title,\n vendor,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_item.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_item.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_item"], "alias": "stg_shopify_gql__inventory_item", "checksum": {"name": "sha256", "checksum": "32245e3be959135fac78958f66d2bd942b104f90bf7c1cf0176b5fe76d3da089"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_item_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4167962, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_item_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_shopify_gql__inventory_item_tmp')),\n staging_columns=get_graphql_inventory_item_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted,\n unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country_code_of_origin\n \n as \n \n country_code_of_origin\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n duplicate_sku_count\n \n as \n \n duplicate_sku_count\n \n, \n \n \n harmonized_system_code\n \n as \n \n harmonized_system_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_history_url\n \n as \n \n inventory_history_url\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n measurement_id\n \n as \n \n measurement_id\n \n, \n \n \n measurement_weight_unit\n \n as \n \n measurement_weight_unit\n \n, \n \n \n measurement_weight_value\n \n as \n \n measurement_weight_value\n \n, \n \n \n province_code_of_origin\n \n as \n \n province_code_of_origin\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tracked\n \n as \n \n tracked\n \n, \n \n \n tracked_editable_locked\n \n as \n \n tracked_editable_locked\n \n, \n \n \n tracked_editable_reason\n \n as \n \n tracked_editable_reason\n \n, \n \n \n unit_cost_amount\n \n as \n \n unit_cost_amount\n \n, \n \n \n unit_cost_currency_code\n \n as \n \n unit_cost_currency_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted,\n unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_shipping_tax_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_shipping_tax_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_shipping_tax_line"], "alias": "stg_shopify_gql__order_shipping_tax_line", "checksum": {"name": "sha256", "checksum": "1ce49a7e29271683d2a26b5640c826be0a3c626e752ce9600fa531b9cfdbbf26"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents taxes associated with order shipping lines.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_shipping_line_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this record is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The amount of tax in customer currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The amount of tax in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4358094, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_shipping_tax_line_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_shopify_gql__order_shipping_tax_line_tmp')),\n staging_columns=get_graphql_order_shipping_tax_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_shipping_line_id', 'index', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_shipping_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_shipping_tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_shipping_line_id\n \n as \n \n order_shipping_line_id\n \n, \n \n \n price_set_pres_amount\n \n as \n \n price_set_pres_amount\n \n, \n \n \n price_set_pres_currency_code\n \n as \n \n price_set_pres_currency_code\n \n, \n \n \n price_set_shop_amount\n \n as \n \n price_set_shop_amount\n \n, \n \n \n price_set_shop_currency_code\n \n as \n \n price_set_shop_currency_code\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_shipping_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_order_line_item"], "alias": "stg_shopify_gql__fulfillment_order_line_item", "checksum": {"name": "sha256", "checksum": "cce1876da347fe32a6a944ed7db67af1c5897acfa7c3f164c6f02707ecd93e37"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Links a fulfillment order to specific items that require fulfillment. Contains detailed product information, quantity tracking, variant metadata, and shipping requirements. This is a core entity for determining which products and how many units are involved in a given fulfillment process.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_order_line_item_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_order_line_item_id": {"name": "fulfillment_order_line_item_id", "description": "A globally unique identifier for this fulfillment order line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_order_id": {"name": "fulfillment_order_id", "description": "The identifier of the fulfillment order that this line item is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "Alt text describing the image associated with the line item's variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "The height in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "The unique identifier for the variant image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The url of the variant image used in this fulfillment line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "The width in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The identifier of the inventory item being fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_item_id": {"name": "order_line_item_id", "description": "The identifier of the original order line item linked to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_title": {"name": "product_title", "description": "The title of the product at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The identifier of the product variant associated with this fulfillment item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remaining_quantity": {"name": "remaining_quantity", "description": "The number of units remaining to be fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Indicates whether physical shipping is required for this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The SKU of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "The total number of units allocated to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The vendor of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4138005, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_order_line_item', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_order_line_item_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_shopify_gql__fulfillment_order_line_item_tmp')),\n staging_columns=get_graphql_fulfillment_order_line_item_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_order_line_item_id,\n fulfillment_order_id,\n image_alt_text,\n image_height,\n image_id,\n image_url,\n image_width,\n inventory_item_id,\n order_line_item_id,\n product_title,\n product_variant_id,\n remaining_quantity,\n requires_shipping,\n sku,\n total_quantity,\n variant_title,\n vendor,\n weight_unit,\n weight_value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_order_line_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fulfillment_order_id\n \n as \n \n fulfillment_order_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n order_line_item_id\n \n as \n \n order_line_item_id\n \n, \n \n \n product_title\n \n as \n \n product_title\n \n, \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n remaining_quantity\n \n as \n \n remaining_quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n total_quantity\n \n as \n \n total_quantity\n \n, \n \n \n variant_title\n \n as \n \n variant_title\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n, \n \n \n weight_value\n \n as \n \n weight_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_order_line_item_id,\n fulfillment_order_id,\n image_alt_text,\n image_height,\n image_id,\n image_url,\n image_width,\n inventory_item_id,\n order_line_item_id,\n product_title,\n product_variant_id,\n remaining_quantity,\n requires_shipping,\n sku,\n total_quantity,\n variant_title,\n vendor,\n weight_unit,\n weight_value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_shipping_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_shipping_line"], "alias": "stg_shopify_gql__order_shipping_line", "checksum": {"name": "sha256", "checksum": "5da193b8bb92f55d18b8e41ab292c215df78b4d69d5380fa52172a808a1fd08d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents the shipping details that the customer chose for their order.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_shipping_line_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_pres_amount": {"name": "discounted_price_pres_amount", "description": "Shipping price in customer currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_pres_currency_code": {"name": "discounted_price_pres_currency_code", "description": "Three digit customer currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_shop_amount": {"name": "discounted_price_shop_amount", "description": "Shipping price in shop currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_shop_currency_code": {"name": "discounted_price_shop_currency_code", "description": "Three digit shop currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The pre-tax shipping price without any discounts applied in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The pre-tax shipping price without any discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4345703, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_shipping_line_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_shopify_gql__order_shipping_line_tmp')),\n staging_columns=get_graphql_order_shipping_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price_set_pres_amount as discounted_price_pres_amount,\n discounted_price_set_pres_currency_code as discounted_price_pres_currency_code,\n discounted_price_set_shop_amount as discounted_price_shop_amount,\n discounted_price_set_shop_currency_code as discounted_price_shop_currency_code,\n phone,\n original_price_set_pres_amount as price_pres_amount,\n original_price_set_pres_currency_code as price_pres_currency_code,\n original_price_set_shop_amount as price_shop_amount,\n original_price_set_shop_currency_code as price_shop_currency_code,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n discounted_price_set_pres_amount\n \n as \n \n discounted_price_set_pres_amount\n \n, \n \n \n discounted_price_set_pres_currency_code\n \n as \n \n discounted_price_set_pres_currency_code\n \n, \n \n \n discounted_price_set_shop_amount\n \n as \n \n discounted_price_set_shop_amount\n \n, \n \n \n discounted_price_set_shop_currency_code\n \n as \n \n discounted_price_set_shop_currency_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n original_price_set_pres_amount\n \n as \n \n original_price_set_pres_amount\n \n, \n \n \n original_price_set_pres_currency_code\n \n as \n \n original_price_set_pres_currency_code\n \n, \n \n \n original_price_set_shop_amount\n \n as \n \n original_price_set_shop_amount\n \n, \n \n \n original_price_set_shop_currency_code\n \n as \n \n original_price_set_shop_currency_code\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price_set_pres_amount as discounted_price_pres_amount,\n discounted_price_set_pres_currency_code as discounted_price_pres_currency_code,\n discounted_price_set_shop_amount as discounted_price_shop_amount,\n discounted_price_set_shop_currency_code as discounted_price_shop_currency_code,\n phone,\n original_price_set_pres_amount as price_pres_amount,\n original_price_set_pres_currency_code as price_pres_currency_code,\n original_price_set_shop_amount as price_shop_amount,\n original_price_set_shop_currency_code as price_shop_currency_code,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product.sql", "original_file_path": "models/graphql/stg_shopify_gql__product.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product"], "alias": "stg_shopify_gql__product", "checksum": {"name": "sha256", "checksum": "bd16eaf9c2f2b9d327db6071a73dc1fa5aaa07b070d4f3fd72bd82f8621145a9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.43791, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_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_shopify_gql__product_tmp')),\n staging_columns=get_graphql_product_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as product_id,\n handle,\n product_type,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('product_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n status\n \n as \n \n status\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\n \n as \n \n vendor\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as product_id,\n handle,\n product_type,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment"], "alias": "stg_shopify_gql__fulfillment", "checksum": {"name": "sha256", "checksum": "545e435664dc989b50d51ec7cd18d7ad7e582c75fb916d7be3176e7c1ce5af7b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4104917, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_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_shopify_gql__fulfillment_tmp')),\n staging_columns=get_graphql_fulfillment_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service_id as service,\n lower(display_status) as shipment_status,\n lower(status) as status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n display_status\n \n as \n \n display_status\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n service_id\n \n as \n \n service_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n total_quantity\n \n as \n \n total_quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service_id as service,\n lower(display_status) as shipment_status,\n lower(status) as status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_allocation": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_allocation.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_allocation.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_allocation"], "alias": "stg_shopify_gql__discount_allocation", "checksum": {"name": "sha256", "checksum": "739863a768f40dd60d330e331eae06d15864832e04c0ca6b863424ec4f7ac4c6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing allocation amounts from discount applications across specific order lines.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id`, `discount_application_index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocated_pres_amount": {"name": "allocated_pres_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_pres_currency_code": {"name": "allocated_pres_currency_code", "description": "The presentment money currency code for the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_shop_amount": {"name": "allocated_shop_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_shop_currency_code": {"name": "allocated_shop_currency_code", "description": "The shop money currency code for the store\u2019s currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to. Used to join with the discount application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount allocation within the list of allocations on an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.319876, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_allocation_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_shopify_gql__discount_allocation_tmp')),\n staging_columns=get_graphql_discount_allocation_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n allocated_amount_set_pres_amount as allocated_pres_amount,\n allocated_amount_set_pres_currency_code as allocated_pres_currency_code,\n allocated_amount_set_shop_amount as allocated_shop_amount,\n allocated_amount_set_shop_currency_code as allocated_shop_currency_code,\n discount_application_index,\n index,\n order_line_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_line_id', 'discount_application_index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_allocation_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_allocation_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_allocation.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocated_amount_set_pres_amount\n \n as \n \n allocated_amount_set_pres_amount\n \n, \n \n \n allocated_amount_set_pres_currency_code\n \n as \n \n allocated_amount_set_pres_currency_code\n \n, \n \n \n allocated_amount_set_shop_amount\n \n as \n \n allocated_amount_set_shop_amount\n \n, \n \n \n allocated_amount_set_shop_currency_code\n \n as \n \n allocated_amount_set_shop_currency_code\n \n, \n \n \n discount_application_index\n \n as \n \n discount_application_index\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n allocated_amount_set_pres_amount as allocated_pres_amount,\n allocated_amount_set_pres_currency_code as allocated_pres_currency_code,\n allocated_amount_set_shop_amount as allocated_shop_amount,\n allocated_amount_set_shop_currency_code as allocated_shop_currency_code,\n discount_application_index,\n index,\n order_line_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_application_index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__tax_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__tax_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tax_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__tax_line"], "alias": "stg_shopify_gql__tax_line", "checksum": {"name": "sha256", "checksum": "7c3265693bb444db83715b94d4923ebc32f8d385562f5dd4b570230542e309d6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a single tax applied to the associated line item.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The amount of tax in customer currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The amount of tax in shop currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4484727, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__tax_line_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_shopify_gql__tax_line_tmp')),\n staging_columns=get_graphql_tax_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_line_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n price_set_pres_amount\n \n as \n \n price_set_pres_amount\n \n, \n \n \n price_set_pres_currency_code\n \n as \n \n price_set_pres_currency_code\n \n, \n \n \n price_set_shop_amount\n \n as \n \n price_set_shop_amount\n \n, \n \n \n price_set_shop_currency_code\n \n as \n \n price_set_shop_currency_code\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_line_refund.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_line_refund.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_line_refund"], "alias": "stg_shopify_gql__order_line_refund", "checksum": {"name": "sha256", "checksum": "0402af2a04adb3d40bbdc43cd8f592cecec885892b79aedebe455210880640fe"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item refund in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_refund_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_line_refund_id": {"name": "order_line_refund_id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location where the items will be restocked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_pres_amount": {"name": "subtotal_pres_amount", "description": "The refunded subtotal amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_pres_currency_code": {"name": "subtotal_pres_currency_code", "description": "The three letter currency code for the subtotal the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_shop_amount": {"name": "subtotal_shop_amount", "description": "The refunded subtotal amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_shop_currency_code": {"name": "subtotal_shop_currency_code", "description": "The three letter currency code for the subtotal in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three letter currency code of the tax the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three letter currency code of the tax in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4308434, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_line_refund_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_shopify_gql__order_line_refund_tmp')),\n staging_columns=get_graphql_order_line_refund_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal_set_pres_amount as subtotal_pres_amount,\n subtotal_set_pres_currency_code as subtotal_pres_currency_code,\n subtotal_set_shop_amount as subtotal_shop_amount,\n subtotal_set_shop_currency_code as subtotal_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n quantity,\n refund_id,\n lower(restock_type) as restock_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_refund_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_line_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_line_refund.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n restock_type\n \n as \n \n restock_type\n \n, \n \n \n subtotal_set_pres_amount\n \n as \n \n subtotal_set_pres_amount\n \n, \n \n \n subtotal_set_pres_currency_code\n \n as \n \n subtotal_set_pres_currency_code\n \n, \n \n \n subtotal_set_shop_amount\n \n as \n \n subtotal_set_shop_amount\n \n, \n \n \n subtotal_set_shop_currency_code\n \n as \n \n subtotal_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal_set_pres_amount as subtotal_pres_amount,\n subtotal_set_pres_currency_code as subtotal_pres_currency_code,\n subtotal_set_shop_amount as subtotal_shop_amount,\n subtotal_set_shop_currency_code as subtotal_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n quantity,\n refund_id,\n lower(restock_type) as restock_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_level": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_level.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_level.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_level"], "alias": "stg_shopify_gql__inventory_level", "checksum": {"name": "sha256", "checksum": "666a85a3945cef763805af14862e54687fbadf91916472cc6858e442ff60cf23"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory level represents the quantities of an inventory item for a location. Each inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_level_id`, `inventory_item_id`, `location_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4179318, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_level_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_shopify_gql__inventory_level_tmp')),\n staging_columns=get_graphql_inventory_level_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_level_id,\n inventory_item_id,\n location_id,\n can_deactivate,\n deactivation_alert,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'inventory_item_id', 'location_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_level_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_level_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_level.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n can_deactivate\n \n as \n \n can_deactivate\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deactivation_alert\n \n as \n \n deactivation_alert\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_level_id,\n inventory_item_id,\n location_id,\n can_deactivate,\n deactivation_alert,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_item_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(location_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__shop": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__shop", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__shop.sql", "original_file_path": "models/graphql/stg_shopify_gql__shop.sql", "unique_id": "model.shopify_source.stg_shopify_gql__shop", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__shop"], "alias": "stg_shopify_gql__shop", "checksum": {"name": "sha256", "checksum": "b0950c23a4aef6080249618f83c620290043117629346a3efd333ad95e6e0d90"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `shop_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_checkout_api_supported": {"name": "has_checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_password_enabled": {"name": "is_password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_setup_required": {"name": "is_setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_shipping_taxes": {"name": "has_shipping_taxes", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included_in_price": {"name": "has_taxes_included_in_price", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_abbreviation": {"name": "timezone_abbreviation", "description": "The shop's time zone abbreviation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset": {"name": "timezone_offset", "description": "The shop's time zone offset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset_minutes": {"name": "timezone_offset_minutes", "description": "The shop's time zone offset expressed as a number of minutes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.44733, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__shop_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_shopify_gql__shop_tmp')),\n staging_columns=get_graphql_shop_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n billing_address_address_1 as address_1,\n billing_address_address_2 as address_2,\n billing_address_city as city,\n billing_address_province as province,\n billing_address_province_code as province_code,\n billing_address_country_code_v_2 as country, -- in REST API country = code\n billing_address_country_code_v_2 as country_code,\n billing_address_country as country_name,\n billing_address_zip as zip,\n billing_address_latitude as latitude,\n billing_address_longitude as longitude,\n currency_code as currency,\n {{ shopify_source.json_to_string(\"enabled_presentment_currencies\", source_columns_in_relation) }} as enabled_presentment_currencies,\n contact_email as customer_email,\n email,\n primary_domain_host as domain,\n billing_address_phone as phone,\n timezone_abbreviation,\n {# timezone_offset is formatted like -0400 instead of -04:00 #}\n timezone_offset, \n timezone_offset_minutes, \n iana_timezone, \n primary_domain_localization_default_locale as primary_locale,\n weight_unit,\n myshopify_domain,\n shop_owner_name as shop_owner,\n tax_shipping as has_shipping_taxes,\n coalesce(taxes_included, false) as has_taxes_included_in_price,\n features_storefront as has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n currency_formats_money_format as money_format,\n currency_formats_money_in_emails_format as money_in_emails_format,\n currency_formats_money_with_currency_format as money_with_currency_format,\n currency_formats_money_with_currency_in_emails_format as money_with_currency_in_emails_format,\n plan_display_name,\n password_enabled as is_password_enabled,\n setup_required as is_setup_required,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__shop_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_shop_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__shop_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__shop.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code_v_2\n \n as \n \n billing_address_country_code_v_2\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n checkout_api_supported\n \n as \n \n checkout_api_supported\n \n, \n \n \n contact_email\n \n as \n \n contact_email\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n currency_formats_money_format\n \n as \n \n currency_formats_money_format\n \n, \n \n \n currency_formats_money_in_emails_format\n \n as \n \n currency_formats_money_in_emails_format\n \n, \n \n \n currency_formats_money_with_currency_format\n \n as \n \n currency_formats_money_with_currency_format\n \n, \n \n \n currency_formats_money_with_currency_in_emails_format\n \n as \n \n currency_formats_money_with_currency_in_emails_format\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n enabled_presentment_currencies\n \n as \n \n enabled_presentment_currencies\n \n, \n \n \n features_storefront\n \n as \n \n features_storefront\n \n, \n \n \n iana_timezone\n \n as \n \n iana_timezone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n myshopify_domain\n \n as \n \n myshopify_domain\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n password_enabled\n \n as \n \n password_enabled\n \n, \n \n \n plan_display_name\n \n as \n \n plan_display_name\n \n, \n \n \n primary_domain_host\n \n as \n \n primary_domain_host\n \n, \n \n \n primary_domain_localization_default_locale\n \n as \n \n primary_domain_localization_default_locale\n \n, \n \n \n setup_required\n \n as \n \n setup_required\n \n, \n \n \n shop_owner_name\n \n as \n \n shop_owner_name\n \n, \n \n \n tax_shipping\n \n as \n \n tax_shipping\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n timezone_abbreviation\n \n as \n \n timezone_abbreviation\n \n, \n \n \n timezone_offset\n \n as \n \n timezone_offset\n \n, \n \n \n timezone_offset_minutes\n \n as \n \n timezone_offset_minutes\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n billing_address_address_1 as address_1,\n billing_address_address_2 as address_2,\n billing_address_city as city,\n billing_address_province as province,\n billing_address_province_code as province_code,\n billing_address_country_code_v_2 as country, -- in REST API country = code\n billing_address_country_code_v_2 as country_code,\n billing_address_country as country_name,\n billing_address_zip as zip,\n billing_address_latitude as latitude,\n billing_address_longitude as longitude,\n currency_code as currency,\n enabled_presentment_currencies as enabled_presentment_currencies,\n contact_email as customer_email,\n email,\n primary_domain_host as domain,\n billing_address_phone as phone,\n timezone_abbreviation,\n \n timezone_offset, \n timezone_offset_minutes, \n iana_timezone, \n primary_domain_localization_default_locale as primary_locale,\n weight_unit,\n myshopify_domain,\n shop_owner_name as shop_owner,\n tax_shipping as has_shipping_taxes,\n coalesce(taxes_included, false) as has_taxes_included_in_price,\n features_storefront as has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n currency_formats_money_format as money_format,\n currency_formats_money_in_emails_format as money_in_emails_format,\n currency_formats_money_with_currency_format as money_with_currency_format,\n currency_formats_money_with_currency_in_emails_format as money_with_currency_in_emails_format,\n plan_display_name,\n password_enabled as is_password_enabled,\n setup_required as is_setup_required,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__abandoned_checkout_discount_code"], "alias": "stg_shopify_gql__abandoned_checkout_discount_code", "checksum": {"name": "sha256", "checksum": "0c42da3c30c3c151bce61bb481405da53967b9b43818d4d74ce29d238f4a9b57"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Abandoned checkouts that applied a discount code.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `checkout_id`, `code`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the discount codes from abandoned checkouts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.3140051, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__abandoned_checkout_discount_code_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_shopify_gql__abandoned_checkout_discount_code_tmp')),\n staging_columns=get_graphql_abandoned_checkout_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index,\n {{ dbt_utils.generate_surrogate_key(['checkout_id', 'code', 'source_relation']) }} as unique_key\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index,\n md5(cast(coalesce(cast(checkout_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(code as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__location": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__location", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__location.sql", "original_file_path": "models/graphql/stg_shopify_gql__location.sql", "unique_id": "model.shopify_source.stg_shopify_gql__location", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__location"], "alias": "stg_shopify_gql__location", "checksum": {"name": "sha256", "checksum": "8b73ec5a42911c795216811ac8867c5c3d611587e19aa46f698ed21e0802e7df"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `location_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in, this matches the REST API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy": {"name": "is_legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4204984, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__location_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_shopify_gql__location_tmp')),\n staging_columns=get_graphql_location_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n is_active,\n address_1,\n address_2,\n city,\n country_code as country, -- match REST API format\n country_code,\n country as country_name,\n is_fulfillment_service as is_legacy,\n phone,\n province,\n province_code,\n zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__location_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_location_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__location_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__location.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__location_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\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_code\n \n as \n \n country_code\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_active\n \n as \n \n is_active\n \n, \n \n \n is_fulfillment_service\n \n as \n \n is_fulfillment_service\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n is_active,\n address_1,\n address_2,\n city,\n country_code as country, -- match REST API format\n country_code,\n country as country_name,\n is_fulfillment_service as is_legacy,\n phone,\n province,\n province_code,\n zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__transaction", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__transaction.sql", "original_file_path": "models/graphql/stg_shopify_gql__transaction.sql", "unique_id": "model.shopify_source.stg_shopify_gql__transaction", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__transaction"], "alias": "stg_shopify_gql__transaction", "checksum": {"name": "sha256", "checksum": "7424657329c3c4945c6c79b2326dd4991efaf952abff49c191f08dd9ccb5587b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `transaction_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of the transaction in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three letter currency code of the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of the transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three letter currency code of the shop's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4516163, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__transaction_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_shopify_gql__transaction_tmp')),\n staging_columns=get_graphql_transaction_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_shop_amount as amount_shop,\n device_id, -- Will be included in 2025-07 release of GraphQL API\n gateway,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_currency_code as amount_shop_currency_code,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n lower(kind) as kind, -- lower in REST api\n {{ shopify_source.json_to_string(\"receipt_json\", source_columns_in_relation) }} as receipt,\n currency_exchange_id, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_adjustment, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_original_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_final_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_currency, -- Will be included in 2025-07 release of GraphQL API\n error_code,\n lower(status) as status, -- lower in REST api\n staff_member_id as user_id,\n authorization_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(authorization_expires_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as authorization_expires_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('transaction_pass_through_columns') }}\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount_set_pres_amount\n \n as \n \n amount_set_pres_amount\n \n, \n \n \n amount_set_pres_currency_code\n \n as \n \n amount_set_pres_currency_code\n \n, \n \n \n amount_set_shop_amount\n \n as \n \n amount_set_shop_amount\n \n, \n \n \n amount_set_shop_currency_code\n \n as \n \n amount_set_shop_currency_code\n \n, \n \n \n authorization_code\n \n as \n \n authorization_code\n \n, \n \n \n authorization_expires_at\n \n as \n \n authorization_expires_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n error_code\n \n as \n \n error_code\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n payment_avs_result_code\n \n as \n \n payment_avs_result_code\n \n, \n \n \n payment_credit_card_bin\n \n as \n \n payment_credit_card_bin\n \n, \n \n \n payment_credit_card_company\n \n as \n \n payment_credit_card_company\n \n, \n \n \n payment_credit_card_number\n \n as \n \n payment_credit_card_number\n \n, \n \n \n payment_cvv_result_code\n \n as \n \n payment_cvv_result_code\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n cast(null as TEXT) as \n \n receipt_json\n \n , \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n currency_exchange_id\n \n as \n \n currency_exchange_id\n \n, \n \n \n currency_exchange_adjustment\n \n as \n \n currency_exchange_adjustment\n \n, \n \n \n currency_exchange_original_amount\n \n as \n \n currency_exchange_original_amount\n \n, \n \n \n currency_exchange_final_amount\n \n as \n \n currency_exchange_final_amount\n \n, \n \n \n currency_exchange_currency\n \n as \n \n currency_exchange_currency\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_shop_amount as amount_shop,\n device_id, -- Will be included in 2025-07 release of GraphQL API\n gateway,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_currency_code as amount_shop_currency_code,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n lower(kind) as kind, -- lower in REST api\n receipt_json as receipt,\n currency_exchange_id, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_adjustment, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_original_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_final_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_currency, -- Will be included in 2025-07 release of GraphQL API\n error_code,\n lower(status) as status, -- lower in REST api\n staff_member_id as user_id,\n authorization_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(authorization_expires_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as authorization_expires_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_media.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_media"], "alias": "stg_shopify_gql__product_media", "checksum": {"name": "sha256", "checksum": "cdb03869e9ddfe19b2ce602f5a435a4dd2c24e9ef9e9f38fa6417a3ffaf4e1d9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id`, `media_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.424721, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_media_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_shopify_gql__product_media_tmp')),\n staging_columns=get_graphql_product_media_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n product_id,\n media_id,\n source_relation, \n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n {{ dbt_utils.generate_surrogate_key(['product_id', 'media_id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n media_id,\n source_relation, \n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n md5(cast(coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_variant.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_variant.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_variant"], "alias": "stg_shopify_gql__product_variant", "checksum": {"name": "sha256", "checksum": "c7030869bd75cbabff68beaf7e71249275594b03fc2b06429962e8c596ba07de"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product variant in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `variant_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_available_for_sale": {"name": "is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_components_required": {"name": "has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4399962, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_variant_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_shopify_gql__product_variant_tmp')),\n staging_columns=get_graphql_product_variant_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n taxable as is_taxable,\n barcode,\n inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n tax_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('product_variant_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_variant_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n available_for_sale\n \n as \n \n available_for_sale\n \n, \n \n \n barcode\n \n as \n \n barcode\n \n, \n \n \n compare_at_price\n \n as \n \n compare_at_price\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_policy\n \n as \n \n inventory_policy\n \n, \n \n \n inventory_quantity\n \n as \n \n inventory_quantity\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n position\n \n as \n \n position\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n requires_components\n \n as \n \n requires_components\n \n, \n \n \n sellable_online_quantity\n \n as \n \n sellable_online_quantity\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tax_code\n \n as \n \n tax_code\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 \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n taxable as is_taxable,\n barcode,\n inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n tax_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_image": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_image", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__media_image.sql", "original_file_path": "models/graphql/stg_shopify_gql__media_image.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_image", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__media_image"], "alias": "stg_shopify_gql__media_image", "checksum": {"name": "sha256", "checksum": "69407476920c94773e783d596ed84aaedfefb3524efba4a654239771ec7bad8f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing image-specific properties for media assets.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `media_id`, `image_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4224176, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__media_image_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__media_image_tmp')),\n staging_columns=get_graphql_media_image_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['media_id', 'image_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__media_image_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_media_image_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__media_image.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation,\n md5(cast(coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(image_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__abandoned_checkout.sql", "original_file_path": "models/graphql/stg_shopify_gql__abandoned_checkout.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__abandoned_checkout"], "alias": "stg_shopify_gql__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "07a4852ed7c97ff18d1a526ca4d4f355ab85f81fc1e7cc652030f6a39732159a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `checkout_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_shop_amount": {"name": "total_duties_shop_amount", "description": "The total duties of the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_pres_amount": {"name": "total_duties_pres_amount", "description": "The total duties of the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_shop_currency_code": {"name": "total_duties_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_pres_currency_code": {"name": "total_duties_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_amount": {"name": "total_line_items_price_shop_amount", "description": "The sum of the prices of all line items in the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_amount": {"name": "total_line_items_price_pres_amount", "description": "The sum of the prices of all line items in the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_currency_code": {"name": "total_line_items_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_currency_code": {"name": "total_line_items_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The sum of all the taxes applied to the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The sum of all the taxes applied to the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "completed_at": {"name": "completed_at", "description": "The date and time when the buyer completed the checkout. Null if the checkout has not been completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The price of the checkout before shipping and taxes in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The price of the checkout before shipping and taxes in *presentment* currencyy. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.313034, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__abandoned_checkout_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_shopify_gql__abandoned_checkout_tmp')),\n staging_columns=get_graphql_abandoned_checkout_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n customer_id,\n id as checkout_id,\n name,\n note,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n taxes_included as has_taxes_included,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_duties_set_shop_amount as total_duties_shop_amount,\n total_duties_set_shop_currency_code as total_duties_shop_currency_code,\n total_duties_set_pres_amount as total_duties_pres_amount,\n total_duties_set_pres_currency_code as total_duties_pres_currency_code,\n total_line_items_price_set_shop_amount as total_line_items_price_shop_amount,\n total_line_items_price_set_shop_currency_code as total_line_items_price_shop_currency_code,\n total_line_items_price_set_pres_amount as total_line_items_price_pres_amount,\n total_line_items_price_set_pres_currency_code as total_line_items_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(completed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as completed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_abandoned_checkout_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n abandoned_checkout_url\n \n as \n \n abandoned_checkout_url\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n completed_at\n \n as \n \n completed_at\n \n, \n \n \n customer_id\n \n as \n \n customer_id\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 note\n \n as \n \n note\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n subtotal_price_set_pres_amount\n \n as \n \n subtotal_price_set_pres_amount\n \n, \n \n \n subtotal_price_set_pres_currency_code\n \n as \n \n subtotal_price_set_pres_currency_code\n \n, \n \n \n subtotal_price_set_shop_amount\n \n as \n \n subtotal_price_set_shop_amount\n \n, \n \n \n subtotal_price_set_shop_currency_code\n \n as \n \n subtotal_price_set_shop_currency_code\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n total_discount_set_pres_amount\n \n as \n \n total_discount_set_pres_amount\n \n, \n \n \n total_discount_set_pres_currency_code\n \n as \n \n total_discount_set_pres_currency_code\n \n, \n \n \n total_discount_set_shop_amount\n \n as \n \n total_discount_set_shop_amount\n \n, \n \n \n total_discount_set_shop_currency_code\n \n as \n \n total_discount_set_shop_currency_code\n \n, \n \n \n total_duties_set_pres_amount\n \n as \n \n total_duties_set_pres_amount\n \n, \n \n \n total_duties_set_pres_currency_code\n \n as \n \n total_duties_set_pres_currency_code\n \n, \n \n \n total_duties_set_shop_amount\n \n as \n \n total_duties_set_shop_amount\n \n, \n \n \n total_duties_set_shop_currency_code\n \n as \n \n total_duties_set_shop_currency_code\n \n, \n \n \n total_line_items_price_set_pres_amount\n \n as \n \n total_line_items_price_set_pres_amount\n \n, \n \n \n total_line_items_price_set_pres_currency_code\n \n as \n \n total_line_items_price_set_pres_currency_code\n \n, \n \n \n total_line_items_price_set_shop_amount\n \n as \n \n total_line_items_price_set_shop_amount\n \n, \n \n \n total_line_items_price_set_shop_currency_code\n \n as \n \n total_line_items_price_set_shop_currency_code\n \n, \n \n \n total_price_set_pres_amount\n \n as \n \n total_price_set_pres_amount\n \n, \n \n \n total_price_set_pres_currency_code\n \n as \n \n total_price_set_pres_currency_code\n \n, \n \n \n total_price_set_shop_amount\n \n as \n \n total_price_set_shop_amount\n \n, \n \n \n total_price_set_shop_currency_code\n \n as \n \n total_price_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n customer_id,\n id as checkout_id,\n name,\n note,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n taxes_included as has_taxes_included,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_duties_set_shop_amount as total_duties_shop_amount,\n total_duties_set_shop_currency_code as total_duties_shop_currency_code,\n total_duties_set_pres_amount as total_duties_pres_amount,\n total_duties_set_pres_currency_code as total_duties_pres_currency_code,\n total_line_items_price_set_shop_amount as total_line_items_price_shop_amount,\n total_line_items_price_set_shop_currency_code as total_line_items_price_shop_currency_code,\n total_line_items_price_set_pres_amount as total_line_items_price_pres_amount,\n total_line_items_price_set_pres_currency_code as total_line_items_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n cast(\n cast(cast(completed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as completed_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection"], "alias": "stg_shopify_gql__collection", "checksum": {"name": "sha256", "checksum": "f3cc283d3c7ac17d0c9b19de8ef5940574461038364cc5f2e02db114340908bb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\"). \n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "rule_logic": {"name": "rule_logic", "description": "Whether the `rules` are disjunctive (logical `OR`) or conjunctive (logical `AND`)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values incline - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.3151076, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_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_shopify_gql__collection_tmp')),\n staging_columns=get_graphql_collection_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when applied_disjunctively is null then null\n when applied_disjunctively then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n sort_order,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__collection.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n applied_disjunctively\n \n as \n \n applied_disjunctively\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n sort_order\n \n as \n \n sort_order\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 \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when applied_disjunctively is null then null\n when applied_disjunctively then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n sort_order,\n title,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__refund", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__refund.sql", "original_file_path": "models/graphql/stg_shopify_gql__refund.sql", "unique_id": "model.shopify_source.stg_shopify_gql__refund", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__refund"], "alias": "stg_shopify_gql__refund", "checksum": {"name": "sha256", "checksum": "dcdb84868e1656f35342c6bc14ef62d6604ad84a1dffd60a6b759b4e9446bb12"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a refund within Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `refund_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "return_id": {"name": "return_id", "description": "Reference to the return which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_pres_amount": {"name": "total_refunded_pres_amount", "description": "The total amount across all transactions for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_pres_currency_code": {"name": "total_refunded_pres_currency_code", "description": "The three letter currency code for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_shop_amount": {"name": "total_refunded_shop_amount", "description": "The total amount across all transactions for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_shop_currency_code": {"name": "total_refunded_shop_currency_code", "description": "The three letter currency code for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4448168, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__refund_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_shopify_gql__refund_tmp')),\n staging_columns=get_graphql_refund_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as refund_id,\n note,\n order_id,\n staff_member_id as user_id,\n return_id,\n total_refunded_set_pres_amount as total_refunded_pres_amount,\n total_refunded_set_pres_currency_code as total_refunded_pres_currency_code,\n total_refunded_set_shop_amount as total_refunded_shop_amount,\n total_refunded_set_shop_currency_code as total_refunded_shop_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__refund.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n return_id\n \n as \n \n return_id\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n total_refunded_set_pres_amount\n \n as \n \n total_refunded_set_pres_amount\n \n, \n \n \n total_refunded_set_pres_currency_code\n \n as \n \n total_refunded_set_pres_currency_code\n \n, \n \n \n total_refunded_set_shop_amount\n \n as \n \n total_refunded_set_shop_amount\n \n, \n \n \n total_refunded_set_shop_currency_code\n \n as \n \n total_refunded_set_shop_currency_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as refund_id,\n note,\n order_id,\n staff_member_id as user_id,\n return_id,\n total_refunded_set_pres_amount as total_refunded_pres_amount,\n total_refunded_set_pres_currency_code as total_refunded_pres_currency_code,\n total_refunded_set_shop_amount as total_refunded_shop_amount,\n total_refunded_set_shop_currency_code as total_refunded_shop_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_application": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_application.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_application.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_application", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_application"], "alias": "stg_shopify_gql__discount_application", "checksum": {"name": "sha256", "checksum": "4bf285a6880d9d733f1165b4e3f0f50282d80b3e33bb5de1eba42941ef54a367"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing discount applications, which define how discounts were applied at the order level.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to all line items (`all`) or only those that are specifically entitled (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount value is a `percentage` or `fixed_amount`. If `target_type` is `shipping_line`, only `percentage` is accepted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4014552, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_application_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_shopify_gql__discount_application_tmp')),\n staging_columns=get_graphql_discount_application_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n lower(allocation_method) as allocation_method,\n upper(code) as code,\n index,\n order_id,\n lower(target_selection) as target_selection,\n lower(target_type) as target_type,\n value_amount,\n value_percentage,\n value_currency_code,\n case \n when value_percentage is not null then 'percentage'\n when lower(target_type) = 'shipping_line' then 'shipping'\n when value_amount is not null then 'fixed_amount'\n else null end as value_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['index', 'order_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_application_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_application.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocation_method\n \n as \n \n allocation_method\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n target_selection\n \n as \n \n target_selection\n \n, \n \n \n target_type\n \n as \n \n target_type\n \n, \n \n \n value_amount\n \n as \n \n value_amount\n \n, \n \n \n value_currency_code\n \n as \n \n value_currency_code\n \n, \n \n \n value_percentage\n \n as \n \n value_percentage\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n lower(allocation_method) as allocation_method,\n upper(code) as code,\n index,\n order_id,\n lower(target_selection) as target_selection,\n lower(target_type) as target_type,\n value_amount,\n value_percentage,\n value_currency_code,\n case \n when value_percentage is not null then 'percentage'\n when lower(target_type) = 'shipping_line' then 'shipping'\n when value_amount is not null then 'fixed_amount'\n else null end as value_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_tracking_info"], "alias": "stg_shopify_gql__fulfillment_tracking_info", "checksum": {"name": "sha256", "checksum": "b81b5a9a260e0144655ecdf19307a4fd7bc3e27d08f38b679573649357273654"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents tracking information associated with a fulfillment. Used by Shopify to generate clickable tracking numbers and delivery updates.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_id": {"name": "fulfillment_id", "description": "The unique identifier of the fulfillment this tracking info belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company. For supported carriers, Shopify automatically builds tracking URLs and may update the shipment status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Tracking number for the fulfillment. If a known tracking company is specified, or the number matches a known format, Shopify may auto-generate a tracking URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_url": {"name": "tracking_url", "description": "Direct URL to track the fulfillment. This is displayed in the Shopify admin and customer notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the tracking information associated with a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4151735, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_tracking_info', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_tracking_info_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_shopify_gql__fulfillment_tracking_info_tmp')),\n staging_columns=get_graphql_fulfillment_tracking_info_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n fulfillment_id,\n index,\n company as tracking_company,\n number as tracking_number,\n url as tracking_url,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['fulfillment_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_tracking_info_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n url\n \n as \n \n url\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n fulfillment_id,\n index,\n company as tracking_company,\n number as tracking_number,\n url as tracking_url,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(fulfillment_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_discount_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_discount_code"], "alias": "stg_shopify_gql__order_discount_code", "checksum": {"name": "sha256", "checksum": "46169dbd62882ab67770a3a78a62349267dba7b5a5a0ce940de18b35209b060c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Discount codes placed on orders.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4282484, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_discount_code_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_shopify_gql__order_discount_code_tmp')),\n staging_columns=get_graphql_order_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_basic": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_basic.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_basic.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_basic"], "alias": "stg_shopify_gql__discount_code_basic", "checksum": {"name": "sha256", "checksum": "6d6b5c65be3377b64f2b0a2c42b7df1f71649dd2aaa52ba1464ebec3e2f7ef5e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata about basic discount codes created by merchants.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4049523, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_basic_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_shopify_gql__discount_code_basic_tmp')),\n staging_columns=get_graphql_discount_code_basic_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_basic_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_basic_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_basic.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_note_attribute": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_note_attribute.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_note_attribute.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_note_attribute"], "alias": "stg_shopify_gql__order_note_attribute", "checksum": {"name": "sha256", "checksum": "7873d5d4778fda0c06ad067718d305252d77e07908f715611688af7d7fb948d8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing custom attributes placed on orders.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `name`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4318836, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_note_attribute_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_shopify_gql__order_note_attribute_tmp')),\n staging_columns=get_graphql_order_note_attribute_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'name', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_note_attribute_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_note_attribute_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_note_attribute.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tender_transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__tender_transaction.sql", "original_file_path": "models/graphql/stg_shopify_gql__tender_transaction.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__tender_transaction"], "alias": "stg_shopify_gql__tender_transaction", "checksum": {"name": "sha256", "checksum": "10ec55a65a5226c5e72a4837722d9753808b9fab6f01ea59b97f8b9733ff6e95"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `transaction_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4496076, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__tender_transaction_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_shopify_gql__tender_transaction_tmp')),\n staging_columns=get_graphql_tender_transaction_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency_code as currency,\n payment_method,\n remote_reference,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__tender_transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_tender_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__tender_transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n payment_method\n \n as \n \n payment_method\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n remote_reference\n \n as \n \n remote_reference\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency_code as currency,\n payment_method,\n remote_reference,\n user_id,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer"], "alias": "stg_shopify_gql__customer", "checksum": {"name": "sha256", "checksum": "ee040da4cd184398d97000afa6857728219292a2b055904acf172c7d3505cd03"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.3015282, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_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_shopify_gql__customer_tmp')),\n staging_columns=get_graphql_customer_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n lower(email_marketing_consent_state) as marketing_consent_state,\n lower(email_marketing_consent_opt_in_level) as marketing_opt_in_level,\n {{ shopify_source.fivetran_convert_timezone(column='cast(email_marketing_consent_updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as marketing_consent_updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n {{ fivetran_utils.fill_pass_through_columns('customer_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n email_marketing_consent_opt_in_level\n \n as \n \n email_marketing_consent_opt_in_level\n \n, \n \n \n email_marketing_consent_state\n \n as \n \n email_marketing_consent_state\n \n, \n \n \n email_marketing_consent_updated_at\n \n as \n \n email_marketing_consent_updated_at\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n orders_count\n \n as \n \n orders_count\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n tax_exempt\n \n as \n \n tax_exempt\n \n, \n \n \n total_spent\n \n as \n \n total_spent\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n verified_email\n \n as \n \n verified_email\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n lower(email_marketing_consent_state) as marketing_consent_state,\n lower(email_marketing_consent_opt_in_level) as marketing_opt_in_level,\n cast(\n cast(cast(email_marketing_consent_updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as marketing_consent_updated_at,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_tag"], "alias": "stg_shopify_gql__product_tag", "checksum": {"name": "sha256", "checksum": "7f63c730d6dca3cbed580fdb8e75a6f808816c7d132c861e57e18b7600c7cd43"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the product.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.442286, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_tag_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_shopify_gql__product_tag_tmp')),\n staging_columns=get_graphql_product_tag_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['product_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_tag"], "alias": "stg_shopify_gql__order_tag", "checksum": {"name": "sha256", "checksum": "1b21c4d52ba47cab2b79f8ed6d47375b9c817395c7632a7ab2816bff9f78e77b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the order.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4367754, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_tag_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_shopify_gql__order_tag_tmp')),\n staging_columns=get_graphql_order_tag_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__metafield": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__metafield", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__metafield.sql", "original_file_path": "models/graphql/stg_shopify_gql__metafield.sql", "unique_id": "model.shopify_source.stg_shopify_gql__metafield", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__metafield"], "alias": "stg_shopify_gql__metafield", "checksum": {"name": "sha256", "checksum": "4396fe0f88e8e01449008a5e44f202694eca0ffff8fd9a6bf7fb8fc3ce6df932"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context. \n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `metafield_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_id": {"name": "metafield_id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource_id": {"name": "owner_resource_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_reference": {"name": "metafield_reference", "description": "Combination of the namespace and key columns. This field is key for metafield mapping in downstream models.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating the most up to date record identified by the most recent updated_at field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4237921, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_metafield', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__metafield_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_shopify_gql__metafield_tmp')),\n staging_columns=get_graphql_metafield_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(type) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n lower({{ dbt.concat([\"namespace\",\"'_'\",\"key\"]) }}) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_metafield_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt.concat", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__metafield.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n 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 id\n \n as \n \n id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n namespace\n \n as \n \n namespace\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n owner_resource\n \n as \n \n owner_resource\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(type) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n lower(namespace || '_' || key) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_variant_media.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_variant_media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_variant_media"], "alias": "stg_shopify_gql__product_variant_media", "checksum": {"name": "sha256", "checksum": "0127c3b8b208869da17e7b9e75af811a5ece076af61f156cba239e76cba5337e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_variant_id`, `media_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4408782, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_product_variant_media', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_variant_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__product_variant_media_tmp')),\n staging_columns=get_graphql_product_variant_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['product_variant_id', 'media_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_variant_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_variant_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation,\n md5(cast(coalesce(cast(product_variant_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection_product.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection_product.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_product", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection_product"], "alias": "stg_shopify_gql__collection_product", "checksum": {"name": "sha256", "checksum": "f1dafc3138b77c46252e3d61f0ce084cdd24ccdd94e56f0212db3aca550e9aa6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id`, `product_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.3160212, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_product_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_shopify_gql__collection_product_tmp')),\n staging_columns=get_graphql_collection_product_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['collection_id', 'product_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__collection_product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n collection_id\n \n as \n \n collection_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(collection_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_quantity": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_quantity.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_quantity.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_quantity"], "alias": "stg_shopify_gql__inventory_quantity", "checksum": {"name": "sha256", "checksum": "bf44e42da315e47a9d9b7fa5b9e4cad92ba2f087de9c02766a15811a1c5dfb55"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The total quantity of the inventory item available at all locations.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_quantity_id`, `inventory_level_id`, `inventory_item_id`, `inventory_state_name`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity_id": {"name": "inventory_quantity_id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_state_name": {"name": "inventory_state_name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4189284, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_quantity_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_shopify_gql__inventory_quantity_tmp')),\n staging_columns=get_graphql_inventory_quantity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'inventory_item_id', 'inventory_level_id', 'name', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_quantity_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_quantity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_quantity.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_level_id\n \n as \n \n inventory_level_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_item_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_level_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_event": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_event.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_event.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_event"], "alias": "stg_shopify_gql__fulfillment_event", "checksum": {"name": "sha256", "checksum": "e8a4a0010c4cfa96bfd6c5a789ddf6df815ada5e397d8ee06d7480eb9a6150ba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_event_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_event_id": {"name": "fulfillment_event_id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4119263, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_event_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_shopify_gql__fulfillment_event_tmp')),\n staging_columns=get_graphql_fulfillment_event_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n lower(status) as status,\n message,\n {{ shopify_source.fivetran_convert_timezone(column='cast(estimated_delivery_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as estimated_delivery_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(happened_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_event_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_event.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\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 created_at\n \n as \n \n created_at\n \n, \n \n \n estimated_delivery_at\n \n as \n \n estimated_delivery_at\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n happened_at\n \n as \n \n happened_at\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 longitude\n \n as \n \n longitude\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n lower(status) as status,\n message,\n cast(\n cast(cast(estimated_delivery_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as estimated_delivery_at,\n cast(\n cast(cast(happened_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_free_shipping.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_free_shipping.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_free_shipping"], "alias": "stg_shopify_gql__discount_code_free_shipping", "checksum": {"name": "sha256", "checksum": "cdae529b92ea53946c636f7f8bcb98c4f7ff4b853caa5dad542cbf5d34b0adfd"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for free shipping discount codes in Shopify, where shipping costs are discounted based on qualifying conditions.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4080951, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_free_shipping_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_shopify_gql__discount_code_free_shipping_tmp')),\n staging_columns=get_graphql_discount_code_free_shipping_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_free_shipping_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_free_shipping_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_free_shipping.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_address": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_address.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_address.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_address", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_address"], "alias": "stg_shopify_gql__customer_address", "checksum": {"name": "sha256", "checksum": "cca4e8b6590274294b6e15baebf9cd8153a1a9ab4925ab353bc35319ef93dda9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a customer's mailing address and includes additional geographic metadata.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_address_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_address_id": {"name": "customer_address_id", "description": "A globally unique identifier for the customer address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer to whom this address belongs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The first line of the address (e.g., street address or PO Box).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The second line of the address (e.g., apartment, suite, or unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The name of the city, district, village, or town for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The company or organization associated with the customer at this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The full country name for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter ISO country code for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_default": {"name": "is_default", "description": "Indicates if this address is the default shipping address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The full name of the customer, derived from first and last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer\u2019s phone number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The name of the region, state, or province for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The standardized zone or province code for the region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code of the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "validation_result_summary": {"name": "validation_result_summary", "description": "A summary of address validation results (e.g., match confidence or status).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The timezone associated with the address, if available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_coordinates_validated": {"name": "has_coordinates_validated", "description": "Indicates whether the latitude and longitude coordinates were validated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.456803, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_address_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__customer_address_tmp')),\n staging_columns=get_graphql_customer_address_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_address_id,\n customer_id,\n address_1,\n address_2,\n city,\n company,\n country,\n country_code,\n first_name,\n is_default,\n last_name,\n latitude,\n longitude,\n name,\n phone,\n province,\n province_code,\n zip,\n validation_result_summary,\n timezone,\n coordinates_validated as has_coordinates_validated,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_address_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_address.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n is_default\n \n as \n \n is_default\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n latitude\n \n as \n \n latitude\n \n, \n \n \n longitude\n \n as \n \n longitude\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n zip\n \n as \n \n zip\n \n, \n \n \n validation_result_summary\n \n as \n \n validation_result_summary\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n coordinates_validated\n \n as \n \n coordinates_validated\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_address_id,\n customer_id,\n address_1,\n address_2,\n city,\n company,\n country,\n country_code,\n first_name,\n is_default,\n last_name,\n latitude,\n longitude,\n name,\n phone,\n province,\n province_code,\n zip,\n validation_result_summary,\n timezone,\n coordinates_validated as has_coordinates_validated,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_bxgy.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_bxgy.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_bxgy"], "alias": "stg_shopify_gql__discount_code_bxgy", "checksum": {"name": "sha256", "checksum": "8a278226cd258f939cddc99dc0bfaaf6eeb8173af7ecef73c6cee066cffb65d6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for Buy X Get Y-style discount codes in Shopify, where discounts are applied based on product quantity thresholds.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4065282, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_bxgy_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_shopify_gql__discount_code_bxgy_tmp')),\n staging_columns=get_graphql_discount_code_bxgy_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n total_sales_amount,\n total_sales_currency_code, \n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_bxgy_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_bxgy_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_bxgy.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n total_sales_amount,\n total_sales_currency_code, \n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_adjustment.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_adjustment.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_adjustment"], "alias": "stg_shopify_gql__order_adjustment", "checksum": {"name": "sha256", "checksum": "9ddd660936d0935e7496a6a0384b2fbb096e604fec6082d155ae5d6594d61a81"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_adjustment_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_id": {"name": "order_adjustment_id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three letter currency code for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three letter shop currency code of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_pres": {"name": "tax_amount_pres", "description": "The tax amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_pres_currency_code": {"name": "tax_amount_pres_currency_code", "description": "The three letter currency code for the tax of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_shop": {"name": "tax_amount_shop", "description": "The tax amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_shop_currency_code": {"name": "tax_amount_shop_currency_code", "description": "The three letter shop currency code of the tax for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4272702, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_adjustment_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__order_adjustment_tmp')),\n staging_columns=get_graphql_order_adjustment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_amount as amount_shop,\n amount_set_shop_currency_code as amount_shop_currency_code,\n tax_amount_set_pres_amount as tax_amount_pres,\n tax_amount_set_pres_currency_code as tax_amount_pres_currency_code,\n tax_amount_set_shop_amount as tax_amount_shop,\n tax_amount_set_shop_currency_code as tax_amount_shop_currency_code,\n reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_adjustment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_adjustment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_adjustment.sql", "compiled": true, "compiled_code": "\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n amount_set_pres_amount\n \n as \n \n amount_set_pres_amount\n \n, \n \n \n amount_set_pres_currency_code\n \n as \n \n amount_set_pres_currency_code\n \n, \n \n \n amount_set_shop_amount\n \n as \n \n amount_set_shop_amount\n \n, \n \n \n amount_set_shop_currency_code\n \n as \n \n amount_set_shop_currency_code\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n tax_amount_set_pres_amount\n \n as \n \n tax_amount_set_pres_amount\n \n, \n \n \n tax_amount_set_pres_currency_code\n \n as \n \n tax_amount_set_pres_currency_code\n \n, \n \n \n tax_amount_set_shop_amount\n \n as \n \n tax_amount_set_shop_amount\n \n, \n \n \n tax_amount_set_shop_currency_code\n \n as \n \n tax_amount_set_shop_currency_code\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_amount as amount_shop,\n amount_set_shop_currency_code as amount_shop_currency_code,\n tax_amount_set_pres_amount as tax_amount_pres,\n tax_amount_set_pres_currency_code as tax_amount_pres_currency_code,\n tax_amount_set_shop_amount as tax_amount_shop,\n tax_amount_set_shop_currency_code as tax_amount_shop_currency_code,\n reason,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_redeem_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_redeem_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_redeem_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_redeem_code"], "alias": "stg_shopify_gql__discount_redeem_code", "checksum": {"name": "sha256", "checksum": "d67dd71e571048d9820f777d5b66057c66c157c43e2937fd7cd59bbf13b5a300"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each redeem code is tied to a parent discount and may be created by an app or manually.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This is updated asynchronously and may differ from real-time usage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (typically an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount the redeem code is associated with (e.g., `discount_code_basic`, `discount_code_app`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4092624, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_redeem_code_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_shopify_gql__discount_redeem_code_tmp')),\n staging_columns=get_graphql_discount_redeem_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_redeem_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_redeem_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_redeem_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_by_description\n \n as \n \n created_by_description\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_by_title\n \n as \n \n created_by_title\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n discount_type\n \n as \n \n discount_type\n \n, \n \n \n id\n \n as \n \n id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_redeem_code_tmp"], "alias": "stg_shopify_gql__discount_redeem_code_tmp", "checksum": {"name": "sha256", "checksum": "cfc36e942b2ec63cfed9b2ce3fffc11ae5f379cdd12ffb28389ed0380c25e6d0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.373008, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_redeem_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_redeem_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_redeem_code"], ["shopify_graphql", "discount_redeem_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__refund_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__refund_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__refund_tmp"], "alias": "stg_shopify_gql__refund_tmp", "checksum": {"name": "sha256", "checksum": "a11a22eb9bcb9a62e27a0e2ce13c47296be38a753bd3a1fa9df5e8c90c1af4ab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.381582, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "refund"], ["shopify_graphql", "refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__refund_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_bxgy_tmp"], "alias": "stg_shopify_gql__discount_code_bxgy_tmp", "checksum": {"name": "sha256", "checksum": "74f77e4738c5c72ca63e005803146b7cdce868cd42f4187da43c47e040a9a713"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.3901672, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_bxgy', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_bxgy_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_bxgy"], ["shopify_graphql", "discount_code_bxgy"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_tracking_info_tmp"], "alias": "stg_shopify_gql__fulfillment_tracking_info_tmp", "checksum": {"name": "sha256", "checksum": "916e15ae9d3b58b4bfaed65f98893baa84653e193472d33ec051a14323d7b859"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.3996027, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_tracking_info', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_tracking_info', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_tracking_info_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_tracking_info"], ["shopify_graphql", "fulfillment_tracking_info"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_tmp"], "alias": "stg_shopify_gql__customer_tmp", "checksum": {"name": "sha256", "checksum": "cbad42ba9c8311e55176c04ed3a661a3cf4a5ac59514099a69a595235769a2a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.4085956, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer"], ["shopify_graphql", "customer"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_tmp"], "alias": "stg_shopify_gql__product_tmp", "checksum": {"name": "sha256", "checksum": "d6bdb88269a24c1e7e047ad5cbcd7cb41689fdfe4028c6b73feb2cf06f5d8c4e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.4171531, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product"], ["shopify_graphql", "product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_visit_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_visit_tmp"], "alias": "stg_shopify_gql__customer_visit_tmp", "checksum": {"name": "sha256", "checksum": "a6f824dc3840066caffed56e0389dd7ef63cfb7814e79f0dbedf937bc738e392"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.4257646, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_customer_visit', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_visit', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_visit_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_visit"], ["shopify_graphql", "customer_visit"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__shop_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__shop_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__shop_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__shop_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__shop_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__shop_tmp"], "alias": "stg_shopify_gql__shop_tmp", "checksum": {"name": "sha256", "checksum": "484564c85bbddaca318f1165dc0418a31023ea29c6ff8bc0531246eeb8d59a1c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.512708, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__shop_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='shop', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_shop_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "shop"], ["shopify_graphql", "shop"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__shop_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_shop_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_quantity_tmp"], "alias": "stg_shopify_gql__inventory_quantity_tmp", "checksum": {"name": "sha256", "checksum": "07d53773e990ce9f6350463bc39d7d11d10a77623f572ba7e12f9d4ec1fc637c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5213795, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_quantity', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_quantity_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_quantity"], ["shopify_graphql", "inventory_quantity"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_shipping_line_tmp"], "alias": "stg_shopify_gql__order_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "48a6b1d4908a3a78e6f338213ae2230d0666ea0fd398dc7df1ce269582c553a8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5298758, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_shipping_line"], ["shopify_graphql", "order_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_tmp"], "alias": "stg_shopify_gql__collection_tmp", "checksum": {"name": "sha256", "checksum": "13622f8f6269a36bc80ce5b592234d5f1b7c88cbf80e19bf6d50aa4c8886d4ab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5383668, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection"], ["shopify_graphql", "collection"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__collection_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_collection_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_item_tmp"], "alias": "stg_shopify_gql__inventory_item_tmp", "checksum": {"name": "sha256", "checksum": "562f5900bff17e2074910b889c93f479d175ca8d45a1c3a94c7f1145632af195"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5479505, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_item"], ["shopify_graphql", "inventory_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_basic_tmp"], "alias": "stg_shopify_gql__discount_code_basic_tmp", "checksum": {"name": "sha256", "checksum": "3d2c8273708359c8f712f46e5d5178c0d6807fa06cddfac2cef2890f360b6bc2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5564592, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_basic', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_basic_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_basic"], ["shopify_graphql", "discount_code_basic"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_adjustment_tmp"], "alias": "stg_shopify_gql__order_adjustment_tmp", "checksum": {"name": "sha256", "checksum": "41de7ec16964a262f4fa0545875703abc0c7d188982b1b9697770663e0e5557c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.564828, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_adjustment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_adjustment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_adjustment"], ["shopify_graphql", "order_adjustment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "compiled": true, "compiled_code": "\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_note_attribute_tmp"], "alias": "stg_shopify_gql__order_note_attribute_tmp", "checksum": {"name": "sha256", "checksum": "1dc3d9e025bc87c95c74672a8a46a3e9751b91727f7e8de84c5d5c4b0ec7bca9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5732546, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_note_attribute', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_note_attribute_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_note_attribute"], ["shopify_graphql", "order_note_attribute"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_application_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_application_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_application_tmp"], "alias": "stg_shopify_gql__discount_application_tmp", "checksum": {"name": "sha256", "checksum": "51b3cf65b837e23b8567427012151bc4daed3ddaa38887bf0f6ed09aa65f98d9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5828214, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_application', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_application_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_application"], ["shopify_graphql", "discount_application"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_app_tmp"], "alias": "stg_shopify_gql__discount_code_app_tmp", "checksum": {"name": "sha256", "checksum": "42d515dfaa9edf7645c90b5d4e3fba1b10ce11c8e33e5f9004dc3286c70abbb5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5912638, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_discount_code_app', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_app', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_app_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_app"], ["shopify_graphql", "discount_code_app"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_shipping_tax_line_tmp"], "alias": "stg_shopify_gql__order_shipping_tax_line_tmp", "checksum": {"name": "sha256", "checksum": "2f563d319f6ab1e785c0c0dd8c46c7eb60b34036eab89dff6306ce7e0318dc2a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.6002378, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_shipping_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_shipping_tax_line"], ["shopify_graphql", "order_shipping_tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_line_refund_tmp"], "alias": "stg_shopify_gql__order_line_refund_tmp", "checksum": {"name": "sha256", "checksum": "de5d8368b1e2f8a01f8457ecfb538f18f39940fbfd88a8bd4317449bdb3500d5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.608783, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line_refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_line_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_line_refund"], ["shopify_graphql", "order_line_refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__metafield_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__metafield_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__metafield_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__metafield_tmp"], "alias": "stg_shopify_gql__metafield_tmp", "checksum": {"name": "sha256", "checksum": "745867433e8c372b8247770c5511da696b44146d8a9cecbb805e2fbccc407b1b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.6184773, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_metafield', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='metafield', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_metafield_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "metafield"], ["shopify_graphql", "metafield"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_metafield_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_line_tmp"], "alias": "stg_shopify_gql__order_line_tmp", "checksum": {"name": "sha256", "checksum": "8d070802154be87b0f6abc6a84d1cc04a7479c71e72d51f9c29e9b84ff0a4470"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.627292, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_line"], ["shopify_graphql", "order_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_variant_media_tmp"], "alias": "stg_shopify_gql__product_variant_media_tmp", "checksum": {"name": "sha256", "checksum": "a6a402d3eb1fc91386b58803aeea45dbfa70f93ad6fcc44aebe193e37428c941"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.635737, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_product_variant_media', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_variant_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_variant_media"], ["shopify_graphql", "product_variant_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_discount_code_tmp"], "alias": "stg_shopify_gql__order_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "e5f05cb907273a7d7faf0cb35b3f239d92e59bea6b53b3d9f874621d4702bacd"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.644592, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_discount_code"], ["shopify_graphql", "order_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_variant_tmp"], "alias": "stg_shopify_gql__product_variant_tmp", "checksum": {"name": "sha256", "checksum": "49b89b7bc716e35589007a5ab8431b1371c4a468f4be3bffbba33558f287c85b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.654377, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_variant_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_variant"], ["shopify_graphql", "product_variant"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_tmp"], "alias": "stg_shopify_gql__order_tmp", "checksum": {"name": "sha256", "checksum": "00d88df1afa1afc1c67823cb65c6c737c7efe99876be4543728c56578daa29fa"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.662821, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order"], ["shopify_graphql", "order"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__location_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__location_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__location_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__location_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__location_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__location_tmp"], "alias": "stg_shopify_gql__location_tmp", "checksum": {"name": "sha256", "checksum": "6e50fc60b6453e907f266a407a8ffd9c7e0509261b61e3a62d79bd98ff8f9d16"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.6713283, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__location_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='location', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_location_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "location"], ["shopify_graphql", "location"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__location_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_free_shipping_tmp"], "alias": "stg_shopify_gql__discount_code_free_shipping_tmp", "checksum": {"name": "sha256", "checksum": "de9a7bc807b211bfad12ecd0bbffc6f5566d4f52164b3bc66f5bb79a363ac4a1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.679844, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_free_shipping', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_free_shipping_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_free_shipping"], ["shopify_graphql", "discount_code_free_shipping"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tax_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__tax_line_tmp"], "alias": "stg_shopify_gql__tax_line_tmp", "checksum": {"name": "sha256", "checksum": "b797f714cca33152d58d9f9371337be2af75ba71868a9c645a5b661e30953bdb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.6896338, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "tax_line"], ["shopify_graphql", "tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_order_line_item_tmp"], "alias": "stg_shopify_gql__fulfillment_order_line_item_tmp", "checksum": {"name": "sha256", "checksum": "7da21a799b42d6572274d5c708e6c1820d534868af0169a999f3ba0baa558cf0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.698007, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_order_line_item', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_order_line_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_order_line_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_order_line_item"], ["shopify_graphql", "fulfillment_order_line_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_product_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_product_tmp"], "alias": "stg_shopify_gql__collection_product_tmp", "checksum": {"name": "sha256", "checksum": "265042e513f9f41755e3d67cb838c5a4bc2a0f30f0005797170d61c7c68c506f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7068753, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection_product"], ["shopify_graphql", "collection_product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_tmp"], "alias": "stg_shopify_gql__fulfillment_tmp", "checksum": {"name": "sha256", "checksum": "33c816c7194073933556f8e74f281eaea2e3f3c728d0cef25ac3270e69ac46b3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7154446, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment"], ["shopify_graphql", "fulfillment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__abandoned_checkout_tmp"], "alias": "stg_shopify_gql__abandoned_checkout_tmp", "checksum": {"name": "sha256", "checksum": "447fcf5964f191e3a35aac2df0126f572f80174deefc22e167e089b2c072d3ad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7239516, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_tmp\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_abandoned_checkout_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "abandoned_checkout"], ["shopify_graphql", "abandoned_checkout"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_tag_tmp"], "alias": "stg_shopify_gql__order_tag_tmp", "checksum": {"name": "sha256", "checksum": "ef3af11883c240380fbddf262db8be9cd7d8008833e23746bc1c7268ba0a43e1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7342832, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_tag"], ["shopify_graphql", "order_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_media_tmp"], "alias": "stg_shopify_gql__product_media_tmp", "checksum": {"name": "sha256", "checksum": "9fec30aae73d36ed6755c3f429db455f56b87fdfb24affac6bb8110c833d7538"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7428021, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_media"], ["shopify_graphql", "product_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_image_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_image_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_image_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__media_image_tmp"], "alias": "stg_shopify_gql__media_image_tmp", "checksum": {"name": "sha256", "checksum": "30d02cd315c4bc627fdb2de7d2c4910b8401ec97e7f9bd572c2f4efb219d3059"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.751366, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media_image', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_media_image_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "media_image"], ["shopify_graphql", "media_image"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_media_image_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__tender_transaction_tmp"], "alias": "stg_shopify_gql__tender_transaction_tmp", "checksum": {"name": "sha256", "checksum": "999811b7c8c9bbb9ca1f553177635c3ff561ce3a498c54e7c2d16ef471dc94a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7700717, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tender_transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_tender_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "tender_transaction"], ["shopify_graphql", "tender_transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__media_tmp"], "alias": "stg_shopify_gql__media_tmp", "checksum": {"name": "sha256", "checksum": "835c3851c7d05b5f89f126d660881e1bd1ba913531e40059ebc9a18e5814a12b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.778522, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "media"], ["shopify_graphql", "media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_allocation_tmp"], "alias": "stg_shopify_gql__discount_allocation_tmp", "checksum": {"name": "sha256", "checksum": "3031935efab97198e8bfd1d1818023693aed0298c4b4334573c1d099ccb4c8d2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7870574, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_allocation', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_allocation_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_allocation"], ["shopify_graphql", "discount_allocation"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "alias": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "fadf9a4496c441981f39419454d443a7be6f42ffdb6b1d9be43a628ec71d06c1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7955928, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_abandoned_checkout_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "abandoned_checkout_discount_code"], ["shopify_graphql", "abandoned_checkout_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_level_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_level_tmp"], "alias": "stg_shopify_gql__inventory_level_tmp", "checksum": {"name": "sha256", "checksum": "e940f5fe7081ecb499500343359757242bb316d24954bd29464cccb19e675125"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.8057, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_level', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_level_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_level"], ["shopify_graphql", "inventory_level"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_tag_tmp"], "alias": "stg_shopify_gql__customer_tag_tmp", "checksum": {"name": "sha256", "checksum": "6c9353c051ba91aace024c85f929cfe6f1fc74e9bf69e7c185ba5abc16b3bad0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.8143315, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_tag"], ["shopify_graphql", "customer_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_event_tmp"], "alias": "stg_shopify_gql__fulfillment_event_tmp", "checksum": {"name": "sha256", "checksum": "b3d654e7eb8d3c87eed9e599ce914c626a86ec7426dd9501721e89556e6e3667"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.822834, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_event', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_event_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_event"], ["shopify_graphql", "fulfillment_event"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__transaction_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__transaction_tmp"], "alias": "stg_shopify_gql__transaction_tmp", "checksum": {"name": "sha256", "checksum": "2e07b515aabc2fcadb617d88f8bd4b308339b0f2425445340e95c18fe47ea54f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.8318124, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "transaction"], ["shopify_graphql", "transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_tag_tmp"], "alias": "stg_shopify_gql__product_tag_tmp", "checksum": {"name": "sha256", "checksum": "a24216b9e175dc892ba05ae61cef5b660627718f05f76c3773cd851609c471a0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.841662, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_tag"], ["shopify_graphql", "product_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_address_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_address_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_address_tmp"], "alias": "stg_shopify_gql__customer_address_tmp", "checksum": {"name": "sha256", "checksum": "3df59d0c9b1202ab5431236c9ffd08af4840856ea7e880991c6247ca328c89f4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.8503604, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_address', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_address_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_address"], ["shopify_graphql", "customer_address"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c", "fqn": ["shopify", "unique_shopify_gql__customer_cohorts_customer_cohort_id"], "alias": "unique_shopify_gql__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.170201, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_cohorts", "attached_node": "model.shopify.shopify_gql__customer_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2", "fqn": ["shopify", "not_null_shopify_gql__customer_cohorts_customer_cohort_id"], "alias": "not_null_shopify_gql__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.1729963, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_cohorts", "attached_node": "model.shopify.shopify_gql__customer_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27", "fqn": ["shopify", "unique_shopify_gql__customer_email_cohorts_customer_cohort_id"], "alias": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.1754608, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_email_cohorts", "attached_node": "model.shopify.shopify_gql__customer_email_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f", "fqn": ["shopify", "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id"], "alias": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.1778352, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_email_cohorts", "attached_node": "model.shopify.shopify_gql__customer_email_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__orders_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077", "fqn": ["shopify", "unique_shopify_gql__orders_unique_key"], "alias": "unique_shopify_gql__orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.1804116, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__orders", "attached_node": "model.shopify.shopify_gql__orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__orders')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__orders_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041", "fqn": ["shopify", "not_null_shopify_gql__orders_unique_key"], "alias": "not_null_shopify_gql__orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.1827867, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__orders", "attached_node": "model.shopify.shopify_gql__orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__orders')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4"}, "created_at": 1754505368.1853015, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customers"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__customers\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__customers", "attached_node": "model.shopify.shopify_gql__customers", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__customers')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation"], "alias": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc"}, "created_at": 1754505368.210143, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_emails", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_emails"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__customer_emails", "attached_node": "model.shopify.shopify_gql__customer_emails", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__customer_emails')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__products_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__products_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326", "fqn": ["shopify", "unique_shopify_gql__products_unique_key"], "alias": "unique_shopify_gql__products_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2154577, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__products"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__products_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__products\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__products", "attached_node": "model.shopify.shopify_gql__products", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__products')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__products_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__products_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497", "fqn": ["shopify", "not_null_shopify_gql__products_unique_key"], "alias": "not_null_shopify_gql__products_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2178094, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__products"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__products_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__products\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__products", "attached_node": "model.shopify.shopify_gql__products", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__products')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__order_lines_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4", "fqn": ["shopify", "unique_shopify_gql__order_lines_unique_key"], "alias": "unique_shopify_gql__order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2203233, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__order_lines", "attached_node": "model.shopify.shopify_gql__order_lines", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__order_lines')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__order_lines_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db", "fqn": ["shopify", "not_null_shopify_gql__order_lines_unique_key"], "alias": "not_null_shopify_gql__order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2226894, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__order_lines", "attached_node": "model.shopify.shopify_gql__order_lines", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__order_lines')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__transactions_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__transactions_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c", "fqn": ["shopify", "unique_shopify_gql__transactions_unique_key"], "alias": "unique_shopify_gql__transactions_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2250717, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__transactions_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__transactions", "attached_node": "model.shopify.shopify_gql__transactions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__transactions_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__transactions_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d", "fqn": ["shopify", "not_null_shopify_gql__transactions_unique_key"], "alias": "not_null_shopify_gql__transactions_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2274055, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__transactions_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__transactions", "attached_node": "model.shopify.shopify_gql__transactions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__inventory_levels_inventory_item_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__inventory_levels_inventory_item_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957", "fqn": ["shopify", "not_null_shopify_gql__inventory_levels_inventory_item_id"], "alias": "not_null_shopify_gql__inventory_levels_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.229748, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__inventory_levels_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__inventory_levels_location_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__inventory_levels_location_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e", "fqn": ["shopify", "not_null_shopify_gql__inventory_levels_location_id"], "alias": "not_null_shopify_gql__inventory_levels_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2321916, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__inventory_levels_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e"}, "created_at": 1754505368.2345948, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\n group by inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__discounts_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5", "fqn": ["shopify", "unique_shopify_gql__discounts_unique_key"], "alias": "unique_shopify_gql__discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2398593, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__discounts_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994", "fqn": ["shopify", "not_null_shopify_gql__discounts_unique_key"], "alias": "not_null_shopify_gql__discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2423122, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__discounts_discount_code_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__discounts_discount_code_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264", "fqn": ["shopify", "not_null_shopify_gql__discounts_discount_code_id"], "alias": "not_null_shopify_gql__discounts_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2446659, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__discounts_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation"], "alias": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6"}, "created_at": 1754505368.2474594, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n code, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\n group by code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__daily_shop_shop_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__daily_shop_shop_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8", "fqn": ["shopify", "not_null_shopify_gql__daily_shop_shop_id"], "alias": "not_null_shopify_gql__daily_shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2527, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__daily_shop"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__daily_shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__daily_shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.shopify_gql__daily_shop", "attached_node": "model.shopify.shopify_gql__daily_shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('shopify_gql__daily_shop')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a", "fqn": ["shopify", "unique_shopify__customer_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.376712, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "fqn": ["shopify", "not_null_shopify__customer_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.3793108, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182", "fqn": ["shopify", "unique_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.3816853, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "fqn": ["shopify", "not_null_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.384031, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51", "fqn": ["shopify", "unique_shopify__orders_orders_unique_key"], "alias": "unique_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.386373, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n orders_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is not null\ngroup by orders_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "fqn": ["shopify", "not_null_shopify__orders_orders_unique_key"], "alias": "not_null_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.388803, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect orders_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696"}, "created_at": 1754505368.3912573, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customers"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__customers\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customers", "attached_node": "model.shopify.shopify__customers", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customers')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation"], "alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f"}, "created_at": 1754505368.3967447, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_emails", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_emails"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__customer_emails\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customer_emails", "attached_node": "model.shopify.shopify__customer_emails", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customer_emails')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa"}, "created_at": 1754505368.4017744, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__products"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__products\"\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__products", "attached_node": "model.shopify.shopify__products", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__products')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e", "fqn": ["shopify", "unique_shopify__order_lines_order_lines_unique_key"], "alias": "unique_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4069135, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_lines_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is not null\ngroup by order_lines_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "unique", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "fqn": ["shopify", "not_null_shopify__order_lines_order_lines_unique_key"], "alias": "not_null_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4092643, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_lines_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981", "fqn": ["shopify", "unique_shopify__transactions_transactions_unique_id"], "alias": "unique_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.411763, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n transactions_unique_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is not null\ngroup by transactions_unique_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "fqn": ["shopify", "not_null_shopify__transactions_transactions_unique_id"], "alias": "not_null_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4141161, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transactions_unique_id\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_inventory_item_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_inventory_item_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "fqn": ["shopify", "not_null_shopify__inventory_levels_inventory_item_id"], "alias": "not_null_shopify__inventory_levels_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.416425, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_location_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_location_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0", "fqn": ["shopify", "not_null_shopify__inventory_levels_location_id"], "alias": "not_null_shopify__inventory_levels_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4187343, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b"}, "created_at": 1754505368.4211967, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\n group by inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f", "fqn": ["shopify", "unique_shopify__discounts_discounts_unique_key"], "alias": "unique_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4262753, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n discounts_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is not null\ngroup by discounts_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "fqn": ["shopify", "not_null_shopify__discounts_discounts_unique_key"], "alias": "not_null_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4287589, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discounts_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discount_code_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discount_code_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "fqn": ["shopify", "not_null_shopify__discounts_discount_code_id"], "alias": "not_null_shopify__discounts_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4311047, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation"], "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e"}, "created_at": 1754505368.43344, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n code, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__discounts\"\n group by code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__daily_shop_shop_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__daily_shop_shop_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f", "fqn": ["shopify", "not_null_shopify__daily_shop_shop_id"], "alias": "not_null_shopify__daily_shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4386325, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__daily_shop"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__daily_shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"shopify__daily_shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.shopify__daily_shop", "attached_node": "model.shopify.shopify__daily_shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('shopify__daily_shop')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3"}, "created_at": 1754505368.4472642, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customers__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customers__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n customer_id, source_relation\n from __dbt__cte__shopify__customers__order_aggregates\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": [{"id": "model.shopify.shopify__customers__order_aggregates", "sql": " __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customers__order_aggregates", "attached_node": "model.shopify.shopify__customers__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customers__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04"}, "created_at": 1754505368.4525778, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__orders__order_line_aggregates", "attached_node": "model.shopify.shopify__orders__order_line_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__orders__order_line_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation"], "alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1"}, "created_at": 1754505368.4578722, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__emails__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__emails__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n email, source_relation\n from __dbt__cte__int_shopify__emails__order_aggregates\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__emails__order_aggregates", "sql": " __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__emails__order_aggregates", "attached_node": "model.shopify.int_shopify__emails__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__emails__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation"], "alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce"}, "created_at": 1754505368.4635057, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__customer_email_rollup", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__customer_email_rollup"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__customer_email_rollup", "attached_node": "model.shopify.int_shopify__customer_email_rollup", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__customer_email_rollup')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e"}, "created_at": 1754505368.4687595, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__inventory_level__aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__inventory_level__aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n variant_id, location_id, source_relation\n from __dbt__cte__int_shopify__inventory_level__aggregates\n group by variant_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify__inventory_level__aggregates", "sql": " __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__inventory_level__aggregates", "attached_node": "model.shopify.int_shopify__inventory_level__aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["variant_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__inventory_level__aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation"], "alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13"}, "created_at": 1754505368.47387, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discounts__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__discounts__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), validation_errors as (\n\n select\n code, type, source_relation\n from __dbt__cte__int_shopify__discounts__order_aggregates\n group by code, type, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discounts__order_aggregates", "sql": " __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__discounts__order_aggregates", "attached_node": "model.shopify.int_shopify__discounts__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "type", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__discounts__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation"], "alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936"}, "created_at": 1754505368.479554, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discounts__abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__discounts__abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), validation_errors as (\n\n select\n code, type, source_relation\n from __dbt__cte__int_shopify__discounts__abandoned_checkouts\n group by code, type, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "sql": " __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__discounts__abandoned_checkouts", "attached_node": "model.shopify.int_shopify__discounts__abandoned_checkouts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "type", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__discounts__abandoned_checkouts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac"}, "created_at": 1754505368.4848204, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), validation_errors as (\n\n select\n order_id, source_relation\n from __dbt__cte__int_shopify__order__shipping_aggregates\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__order__shipping_aggregates", "attached_node": "model.shopify.int_shopify__order__shipping_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__order__shipping_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28"}, "created_at": 1754505368.4901588, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__product__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__product__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), validation_errors as (\n\n select\n product_id, source_relation\n from __dbt__cte__int_shopify__product__order_line_aggregates\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__product__order_line_aggregates", "sql": " __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__product__order_line_aggregates", "attached_node": "model.shopify.int_shopify__product__order_line_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__product__order_line_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04"}, "created_at": 1754505368.4952366, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__products_with_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__products_with_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), validation_errors as (\n\n select\n product_id, source_relation\n from __dbt__cte__int_shopify__products_with_aggregates\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__products_with_aggregates", "sql": " __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__products_with_aggregates", "attached_node": "model.shopify.int_shopify__products_with_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__products_with_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95.sql", "original_file_path": "models/rest/standardized_models/shopify__standardized_models.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae", "fqn": ["shopify", "rest", "standardized_models", "dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95"}, "created_at": 1754505368.5150833, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__line_item_enhanced"]}, "compiled_path": "target/compiled/shopify/models/rest/standardized_models/shopify__standardized_models.yml/dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n header_id, line_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__line_item_enhanced\"\n group by header_id, line_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__line_item_enhanced", "attached_node": "model.shopify.shopify__line_item_enhanced", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["header_id", "line_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__line_item_enhanced')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742.sql", "original_file_path": "models/graphql/standardized_models/shopify__standardized_models.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1", "fqn": ["shopify", "graphql", "standardized_models", "dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742"}, "created_at": 1754505368.5257514, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__line_item_enhanced"]}, "compiled_path": "target/compiled/shopify/models/graphql/standardized_models/shopify__standardized_models.yml/dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n header_id, line_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__line_item_enhanced\"\n group by header_id, line_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__line_item_enhanced", "attached_node": "model.shopify.shopify_gql__line_item_enhanced", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["header_id", "line_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__line_item_enhanced')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be"}, "created_at": 1754505368.6424417, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__customer", "attached_node": "model.shopify_source.stg_shopify__customer", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__customer')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation"], "alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3"}, "created_at": 1754505368.647831, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_refund_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n group by order_line_refund_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_line_refund", "attached_node": "model.shopify_source.stg_shopify__order_line_refund", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_line_refund')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec"}, "created_at": 1754505368.6531, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n group by order_line_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_line", "attached_node": "model.shopify_source.stg_shopify__order_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e"}, "created_at": 1754505368.6583972, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order", "attached_node": "model.shopify_source.stg_shopify__order", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d"}, "created_at": 1754505368.663634, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product", "attached_node": "model.shopify_source.stg_shopify__product", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation"], "alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e"}, "created_at": 1754505368.6688807, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n variant_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n group by variant_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_variant", "attached_node": "model.shopify_source.stg_shopify__product_variant", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["variant_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_variant')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation"], "alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92"}, "created_at": 1754505368.6740148, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n group by transaction_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__transaction", "attached_node": "model.shopify_source.stg_shopify__transaction", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__transaction')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation"], "alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659"}, "created_at": 1754505368.6793103, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__refund", "attached_node": "model.shopify_source.stg_shopify__refund", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__refund')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207"}, "created_at": 1754505368.684992, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_adjustment_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"\n group by order_adjustment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_adjustment", "attached_node": "model.shopify_source.stg_shopify__order_adjustment", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_adjustment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_adjustment')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__abandoned_checkout_checkout_id"], "alias": "not_null_stg_shopify__abandoned_checkout_checkout_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.690243, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation"], "alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f"}, "created_at": 1754505368.6926646, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n group by checkout_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_collection_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_product_collection_id"], "alias": "not_null_stg_shopify__collection_product_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.6978495, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_product_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_product_product_id"], "alias": "not_null_stg_shopify__collection_product_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7002301, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_product_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e"}, "created_at": 1754505368.7025967, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n collection_id, product_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n group by collection_id, product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["collection_id", "product_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_collection_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_collection_id"], "alias": "not_null_stg_shopify__collection_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.70779, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection", "attached_node": "model.shopify_source.stg_shopify__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation"], "alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad"}, "created_at": 1754505368.7101939, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n collection_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n group by collection_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__collection", "attached_node": "model.shopify_source.stg_shopify__collection", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["collection_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__collection')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__customer_tag_index"], "alias": "not_null_stg_shopify__customer_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7154992, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__customer_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_customer_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_customer_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__customer_tag_customer_id"], "alias": "not_null_stg_shopify__customer_tag_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.717873, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__customer_tag_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6"}, "created_at": 1754505368.7203126, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n group by customer_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__fulfillment_fulfillment_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__fulfillment_fulfillment_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__fulfillment_fulfillment_id"], "alias": "not_null_stg_shopify__fulfillment_fulfillment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7255237, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__fulfillment_fulfillment_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fulfillment_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\nwhere fulfillment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fulfillment_id", "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fulfillment_id", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70", "fqn": ["shopify_source", "rest", "accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure"], "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd"}, "created_at": 1754505368.7279427, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'pending','open','success','cancelled','error','failure'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["pending", "open", "success", "cancelled", "error", "failure"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation"], "alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01"}, "created_at": 1754505368.7396765, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n fulfillment_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by fulfillment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["fulfillment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__inventory_item_inventory_item_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__inventory_item_inventory_item_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__inventory_item_inventory_item_id"], "alias": "not_null_stg_shopify__inventory_item_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7447948, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__inventory_item_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.stg_shopify__inventory_item", "attached_node": "model.shopify_source.stg_shopify__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('stg_shopify__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f"}, "created_at": 1754505368.747413, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\n group by inventory_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_item", "attached_node": "model.shopify_source.stg_shopify__inventory_item", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_item')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014"}, "created_at": 1754505368.752557, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_level_id, inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"\n group by inventory_level_id, inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_level", "attached_node": "model.shopify_source.stg_shopify__inventory_level", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_level_id", "inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_level')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation"], "alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6"}, "created_at": 1754505368.75786, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_quantity_id, inventory_item_id, inventory_level_id, inventory_state_name, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"\n group by inventory_quantity_id, inventory_item_id, inventory_level_id, inventory_state_name, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify__inventory_quantity", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_quantity_id", "inventory_item_id", "inventory_level_id", "inventory_state_name", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_quantity')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__location_location_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__location_location_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__location_location_id"], "alias": "not_null_stg_shopify__location_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7631714, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__location_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__location\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_shopify__location", "attached_node": "model.shopify_source.stg_shopify__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_shopify__location')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646"}, "created_at": 1754505368.7655904, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__location\"\n group by location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__location", "attached_node": "model.shopify_source.stg_shopify__location", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__location')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__media_media_id"], "alias": "not_null_stg_shopify__media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7708457, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media", "attached_node": "model.shopify_source.stg_shopify__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e"}, "created_at": 1754505368.7732759, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__media\"\n group by media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__media", "attached_node": "model.shopify_source.stg_shopify__media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_image_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_image_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__media_image_media_id"], "alias": "not_null_stg_shopify__media_image_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7790325, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__media_image_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media_image\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media_image", "attached_node": "model.shopify_source.stg_shopify__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media_image')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation"], "alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75"}, "created_at": 1754505368.7814405, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n media_id, image_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__media_image\"\n group by media_id, image_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__media_image", "attached_node": "model.shopify_source.stg_shopify__media_image", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["media_id", "image_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__media_image')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__metafield_metafield_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__metafield_metafield_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__metafield_metafield_id"], "alias": "not_null_stg_shopify__metafield_metafield_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7866197, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__metafield_metafield_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metafield_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\nwhere metafield_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metafield_id", "file_key_name": "models.stg_shopify__metafield", "attached_node": "model.shopify_source.stg_shopify__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "metafield_id", "model": "{{ get_where_subquery(ref('stg_shopify__metafield')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation"], "alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea"}, "created_at": 1754505368.78899, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n metafield_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n group by metafield_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__metafield", "attached_node": "model.shopify_source.stg_shopify__metafield", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["metafield_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__metafield')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_name", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_name.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_note_attribute_name"], "alias": "not_null_stg_shopify__order_note_attribute_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7942562, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect name\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_note_attribute_order_id"], "alias": "not_null_stg_shopify__order_note_attribute_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7965972, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation"], "alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d"}, "created_at": 1754505368.7989707, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, name, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\n group by order_id, name, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "name", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1"}, "created_at": 1754505368.8042407, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation"], "alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36"}, "created_at": 1754505368.8066509, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_shipping_line_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by order_shipping_line_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_shipping_line_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_shipping_tax_line_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_tax_line_index"], "alias": "not_null_stg_shopify__order_shipping_tax_line_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8118708, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_shipping_tax_line_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858"}, "created_at": 1754505368.8143203, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f"}, "created_at": 1754505368.8167088, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_shipping_line_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by order_shipping_line_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_shipping_line_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_tag_index"], "alias": "not_null_stg_shopify__order_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.821895, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_tag_order_id"], "alias": "not_null_stg_shopify__order_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.824254, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a"}, "created_at": 1754505368.8267465, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\n group by 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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_key.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_url_tag_key"], "alias": "not_null_stg_shopify__order_url_tag_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8318477, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_url_tag_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "key", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "key", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_url_tag_order_id"], "alias": "not_null_stg_shopify__order_url_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8343968, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_url_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation"], "alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f"}, "created_at": 1754505368.836781, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, key, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\n group by order_id, key, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "key", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_media_product_id"], "alias": "not_null_stg_shopify__product_media_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.842074, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_media_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_media_media_id"], "alias": "not_null_stg_shopify__product_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8444574, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110"}, "created_at": 1754505368.8469293, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n group by product_id, media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_product_variant_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_product_variant_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_variant_media_product_variant_id"], "alias": "not_null_stg_shopify__product_variant_media_product_variant_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8521767, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_variant_media_product_variant_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_variant_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere product_variant_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_variant_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_variant_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_variant_media_media_id"], "alias": "not_null_stg_shopify__product_variant_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.854561, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_variant_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c"}, "created_at": 1754505368.8569047, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_variant_id, media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n group by product_variant_id, media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_variant_id", "media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_tag_index"], "alias": "not_null_stg_shopify__product_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8621426, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_tag_product_id"], "alias": "not_null_stg_shopify__product_tag_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8645165, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_tag_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed"}, "created_at": 1754505368.8668716, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n group by product_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__shop_shop_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__shop_shop_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__shop_shop_id"], "alias": "not_null_stg_shopify__shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8721604, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.stg_shopify__shop", "attached_node": "model.shopify_source.stg_shopify__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('stg_shopify__shop')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation"], "alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e"}, "created_at": 1754505368.874582, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n shop_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n group by shop_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__shop", "attached_node": "model.shopify_source.stg_shopify__shop", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["shop_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__shop')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__tender_transaction_transaction_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__tender_transaction_transaction_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__tender_transaction_transaction_id"], "alias": "not_null_stg_shopify__tender_transaction_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8804045, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__tender_transaction_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_shopify__tender_transaction", "attached_node": "model.shopify_source.stg_shopify__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_shopify__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473"}, "created_at": 1754505368.882793, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\n group by transaction_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__tender_transaction", "attached_node": "model.shopify_source.stg_shopify__tender_transaction", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__tender_transaction')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id"], "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c"}, "created_at": 1754505368.888015, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation"], "alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1"}, "created_at": 1754505368.8904374, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, code, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n group by checkout_id, code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "code", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_discount_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_code", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_code.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_discount_code_code"], "alias": "not_null_stg_shopify__order_discount_code_code", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8956447, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_discount_code_code.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect code\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "code", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "code", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_discount_code_order_id"], "alias": "not_null_stg_shopify__order_discount_code_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8980026, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_discount_code_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0"}, "created_at": 1754505368.900421, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n group by 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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2"}, "created_at": 1754505368.9056544, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n group by checkout_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout_shipping_line", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_shipping_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27", "fqn": ["shopify_source", "rest", "accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed"], "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc"}, "created_at": 1754505368.9109237, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'attempted_delivery','delayed','delivered','failure','in_transit','out_for_delivery','ready_for_pickup','picked_up','label_printed','label_purchased','confirmed'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify__fulfillment_event", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["attempted_delivery", "delayed", "delivered", "failure", "in_transit", "out_for_delivery", "ready_for_pickup", "picked_up", "label_printed", "label_purchased", "confirmed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation"], "alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd"}, "created_at": 1754505368.9199727, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n fulfillment_event_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n group by fulfillment_event_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify__fulfillment_event", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["fulfillment_event_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment_event')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136"}, "created_at": 1754505368.9252532, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n group by order_line_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__tax_line", "attached_node": "model.shopify_source.stg_shopify__tax_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__tax_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_allocation_discount_application_index"], "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca"}, "created_at": 1754505368.9305387, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_application_index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere discount_application_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_application_index", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_application_index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_order_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_allocation_order_line_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_allocation_order_line_id"], "alias": "not_null_stg_shopify__discount_allocation_order_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.9328907, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_allocation_order_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere order_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_line_id", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation"], "alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98"}, "created_at": 1754505368.935273, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, discount_application_index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\n group by order_line_id, discount_application_index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "discount_application_index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_application_index"], "alias": "not_null_stg_shopify__discount_application_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.9405317, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_application_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_application_order_id"], "alias": "not_null_stg_shopify__discount_application_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.9429011, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_application_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed"}, "created_at": 1754505368.9452913, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n index, order_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n group by index, order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["index", "order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_app_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_app_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_app_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_app_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.9504976, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_app_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_app", "attached_node": "model.shopify_source.stg_shopify__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd"}, "created_at": 1754505368.952849, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_app", "attached_node": "model.shopify_source.stg_shopify__discount_code_app", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_app')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_basic_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_basic_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_basic_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.9580107, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125"}, "created_at": 1754505368.9604268, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify__discount_code_basic", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_basic')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_bxgy_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.965776, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976"}, "created_at": 1754505368.9681928, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify__discount_code_bxgy", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_bxgy')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_free_shipping_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_free_shipping_discount_code_id"], "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354"}, "created_at": 1754505368.9743624, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce"}, "created_at": 1754505368.9767373, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify__discount_code_free_shipping", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_free_shipping')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_redeem_code_discount_code_id"], "alias": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.981978, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4"}, "created_at": 1754505368.9843512, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify__discount_redeem_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_redeem_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_unique_key"], "alias": "unique_stg_shopify_gql__customer_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.45799, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer", "attached_node": "model.shopify_source.stg_shopify_gql__customer", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_unique_key"], "alias": "not_null_stg_shopify_gql__customer_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4605763, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer", "attached_node": "model.shopify_source.stg_shopify_gql__customer", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_unique_key"], "alias": "unique_stg_shopify_gql__order_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4629407, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order", "attached_node": "model.shopify_source.stg_shopify_gql__order", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_unique_key"], "alias": "not_null_stg_shopify_gql__order_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4653847, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order", "attached_node": "model.shopify_source.stg_shopify_gql__order", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_line_unique_key"], "alias": "unique_stg_shopify_gql__order_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4677768, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4701905, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__abandoned_checkout_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__abandoned_checkout_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__abandoned_checkout_unique_key"], "alias": "unique_stg_shopify_gql__abandoned_checkout_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4725316, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__abandoned_checkout_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__abandoned_checkout_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_unique_key"], "alias": "not_null_stg_shopify_gql__abandoned_checkout_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.474947, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__abandoned_checkout_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_checkout_id"], "alias": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4773235, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__abandoned_checkout_checkout_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key"], "alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815"}, "created_at": 1754505369.479684, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key"], "alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256"}, "created_at": 1754505369.4819846, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id"], "alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e"}, "created_at": 1754505369.4843047, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_unique_key"], "alias": "unique_stg_shopify_gql__collection_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4867308, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__collection_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_unique_key"], "alias": "not_null_stg_shopify_gql__collection_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4890785, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_collection_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_collection_id"], "alias": "not_null_stg_shopify_gql__collection_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4913962, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_product_unique_key"], "alias": "unique_stg_shopify_gql__collection_product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4937153, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__collection_product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_unique_key"], "alias": "not_null_stg_shopify_gql__collection_product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4961452, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_collection_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_collection_id"], "alias": "not_null_stg_shopify_gql__collection_product_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.49847, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_product_id"], "alias": "not_null_stg_shopify_gql__collection_product_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.500777, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_tag_unique_key"], "alias": "unique_stg_shopify_gql__customer_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5031507, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_unique_key"], "alias": "not_null_stg_shopify_gql__customer_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5054474, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_index"], "alias": "not_null_stg_shopify_gql__customer_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5078716, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_customer_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_customer_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_customer_id"], "alias": "not_null_stg_shopify_gql__customer_tag_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5102613, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_allocation_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_allocation_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_allocation_unique_key"], "alias": "unique_stg_shopify_gql__discount_allocation_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.512606, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_allocation_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_allocation_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_unique_key"], "alias": "not_null_stg_shopify_gql__discount_allocation_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.514922, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_allocation_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_discount_application_index"], "alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416"}, "created_at": 1754505369.5178204, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_application_index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere discount_application_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_application_index", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_application_index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_order_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_allocation_order_line_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_order_line_id"], "alias": "not_null_stg_shopify_gql__discount_allocation_order_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.52019, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_allocation_order_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere order_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_line_id", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_application_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_application_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_application_unique_key"], "alias": "unique_stg_shopify_gql__discount_application_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5225413, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_application_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_unique_key"], "alias": "not_null_stg_shopify_gql__discount_application_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5248673, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_index"], "alias": "not_null_stg_shopify_gql__discount_application_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.527184, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_order_id"], "alias": "not_null_stg_shopify_gql__discount_application_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.529599, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_app_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_app_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_app_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_app_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5319207, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_app_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_app_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_app_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_app_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_app_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5342476, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_app_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_app_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_app_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_app_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_app_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5365946, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_app_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_basic_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_basic_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_basic_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_basic_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.539032, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_basic_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_basic_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_basic_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_basic_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_basic_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5414214, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_basic_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_basic_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.543759, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_basic_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_bxgy_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_bxgy_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_bxgy_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5460994, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_bxgy_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5484748, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5509076, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_free_shipping_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5532446, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_free_shipping_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_free_shipping_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_free_shipping_unique_key"], "alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34"}, "created_at": 1754505369.5555632, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id"], "alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09"}, "created_at": 1754505369.5578814, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_redeem_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_redeem_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_redeem_code_unique_key"], "alias": "unique_stg_shopify_gql__discount_redeem_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.560342, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_redeem_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_redeem_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_redeem_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_redeem_code_unique_key"], "alias": "not_null_stg_shopify_gql__discount_redeem_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5626502, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_redeem_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5649335, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5672514, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.569539, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_fulfillment_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_fulfillment_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_fulfillment_id"], "alias": "not_null_stg_shopify_gql__fulfillment_fulfillment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5719416, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_fulfillment_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fulfillment_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere fulfillment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fulfillment_id", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fulfillment_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769", "fqn": ["shopify_source", "graphql", "accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure"], "alias": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2"}, "created_at": 1754505369.5743418, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'pending','open','success','cancelled','error','failure'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["pending", "open", "success", "cancelled", "error", "failure"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_event_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_event_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_event_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_event_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5803251, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_event_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_event_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_event_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_event_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_event_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.58269, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_event_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81", "fqn": ["shopify_source", "graphql", "accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed"], "alias": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f"}, "created_at": 1754505369.5851474, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'attempted_delivery','delayed','delivered','failure','in_transit','out_for_delivery','ready_for_pickup','picked_up','label_printed','label_purchased','confirmed'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["attempted_delivery", "delayed", "delivered", "failure", "in_transit", "out_for_delivery", "ready_for_pickup", "picked_up", "label_printed", "label_purchased", "confirmed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5906987, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_order_line_item", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_order_line_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key"], "alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22"}, "created_at": 1754505369.59307, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_order_line_item", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_order_line_item')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5954242, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_tracking_info", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_tracking_info')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5978634, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_tracking_info", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_tracking_info')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_item_unique_key"], "alias": "unique_stg_shopify_gql__inventory_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6002183, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_item_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6025298, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_item_inventory_item_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_item_inventory_item_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_item_inventory_item_id"], "alias": "not_null_stg_shopify_gql__inventory_item_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6048355, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_item_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_level_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_level_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_level_unique_key"], "alias": "unique_stg_shopify_gql__inventory_level_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6072092, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_level_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_level_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_level_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_level_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_level_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6096718, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_level_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd", "fqn": ["shopify_source", "graphql", "dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756"}, "created_at": 1754505369.612038, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_level_id, inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\n group by inventory_level_id, inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_level_id", "inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_quantity_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_quantity_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_quantity_unique_key"], "alias": "unique_stg_shopify_gql__inventory_quantity_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6173127, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_quantity_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_quantity", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_quantity')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_quantity_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_quantity_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_quantity_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_quantity_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6196954, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_quantity_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_quantity", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_quantity')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__location_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__location_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__location_unique_key"], "alias": "unique_stg_shopify_gql__location_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6221044, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__location_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__location_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__location_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__location_unique_key"], "alias": "not_null_stg_shopify_gql__location_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6244526, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__location_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__location_location_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__location_location_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__location_location_id"], "alias": "not_null_stg_shopify_gql__location_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6268718, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__location_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__media_unique_key"], "alias": "unique_stg_shopify_gql__media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.629229, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_unique_key"], "alias": "not_null_stg_shopify_gql__media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.631549, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_media_id"], "alias": "not_null_stg_shopify_gql__media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6338565, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__media_image_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__media_image_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__media_image_unique_key"], "alias": "unique_stg_shopify_gql__media_image_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.636207, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__media_image_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_image_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_image_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_image_unique_key"], "alias": "not_null_stg_shopify_gql__media_image_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6389725, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_image_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_image_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_image_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_image_media_id"], "alias": "not_null_stg_shopify_gql__media_image_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.641346, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_image_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__metafield_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__metafield_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__metafield_unique_key"], "alias": "unique_stg_shopify_gql__metafield_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6436598, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__metafield_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__metafield_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__metafield_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__metafield_unique_key"], "alias": "not_null_stg_shopify_gql__metafield_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6459467, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__metafield_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__metafield_metafield_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__metafield_metafield_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__metafield_metafield_id"], "alias": "not_null_stg_shopify_gql__metafield_metafield_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6484327, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__metafield_metafield_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metafield_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere metafield_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metafield_id", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "metafield_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_media_unique_key"], "alias": "unique_stg_shopify_gql__product_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.650794, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_unique_key"], "alias": "not_null_stg_shopify_gql__product_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.653156, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_product_id"], "alias": "not_null_stg_shopify_gql__product_media_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6554685, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_media_id"], "alias": "not_null_stg_shopify_gql__product_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6577642, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_adjustment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_adjustment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_adjustment_unique_key"], "alias": "unique_stg_shopify_gql__order_adjustment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6602218, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_adjustment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_adjustment", "attached_node": "model.shopify_source.stg_shopify_gql__order_adjustment", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_adjustment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_adjustment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_adjustment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_adjustment_unique_key"], "alias": "not_null_stg_shopify_gql__order_adjustment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.66254, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_adjustment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_adjustment", "attached_node": "model.shopify_source.stg_shopify_gql__order_adjustment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_adjustment')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_discount_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_discount_code_unique_key"], "alias": "unique_stg_shopify_gql__order_discount_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6648548, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_discount_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_unique_key"], "alias": "not_null_stg_shopify_gql__order_discount_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6671762, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_code", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_code.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_code"], "alias": "not_null_stg_shopify_gql__order_discount_code_code", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.669592, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_code.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect code\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "code", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "code", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_order_id"], "alias": "not_null_stg_shopify_gql__order_discount_code_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6719062, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_line_refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_line_refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_line_refund_unique_key"], "alias": "unique_stg_shopify_gql__order_line_refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6742723, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_line_refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line_refund", "attached_node": "model.shopify_source.stg_shopify_gql__order_line_refund", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line_refund')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_line_refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_line_refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_line_refund_unique_key"], "alias": "not_null_stg_shopify_gql__order_line_refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6765838, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_line_refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line_refund", "attached_node": "model.shopify_source.stg_shopify_gql__order_line_refund", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line_refund')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_note_attribute_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_note_attribute_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_note_attribute_unique_key"], "alias": "unique_stg_shopify_gql__order_note_attribute_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6789045, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_note_attribute_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_unique_key"], "alias": "not_null_stg_shopify_gql__order_note_attribute_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6813862, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_name", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_name.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_name"], "alias": "not_null_stg_shopify_gql__order_note_attribute_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.683695, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect name\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_order_id"], "alias": "not_null_stg_shopify_gql__order_note_attribute_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6860006, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_shipping_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_shipping_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_shipping_line_unique_key"], "alias": "unique_stg_shopify_gql__order_shipping_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6883464, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_shipping_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_shipping_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6907444, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id"], "alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2"}, "created_at": 1754505369.6930907, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_shipping_tax_line_unique_key"], "alias": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6954, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6976957, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id"], "alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4"}, "created_at": 1754505369.7000256, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_tax_line_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_index"], "alias": "not_null_stg_shopify_gql__order_shipping_tax_line_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7024705, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_tax_line_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_tag_unique_key"], "alias": "unique_stg_shopify_gql__order_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.704782, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_unique_key"], "alias": "not_null_stg_shopify_gql__order_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7071366, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_order_id"], "alias": "not_null_stg_shopify_gql__order_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.709458, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_index"], "alias": "not_null_stg_shopify_gql__order_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7119014, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_unique_key"], "alias": "unique_stg_shopify_gql__product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7143402, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product", "attached_node": "model.shopify_source.stg_shopify_gql__product", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_unique_key"], "alias": "not_null_stg_shopify_gql__product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.716662, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product", "attached_node": "model.shopify_source.stg_shopify_gql__product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_variant_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_variant_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_variant_unique_key"], "alias": "unique_stg_shopify_gql__product_variant_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7189827, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_variant_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_unique_key"], "alias": "not_null_stg_shopify_gql__product_variant_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7213256, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_variant_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_variant_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_variant_media_unique_key"], "alias": "unique_stg_shopify_gql__product_variant_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7237704, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_variant_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_unique_key"], "alias": "not_null_stg_shopify_gql__product_variant_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7260807, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_product_variant_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_product_variant_id"], "alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943"}, "created_at": 1754505369.7283933, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_variant_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere product_variant_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_variant_id", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_variant_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_media_id"], "alias": "not_null_stg_shopify_gql__product_variant_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7307048, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_tag_unique_key"], "alias": "unique_stg_shopify_gql__product_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7331405, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_unique_key"], "alias": "not_null_stg_shopify_gql__product_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.73546, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_index"], "alias": "not_null_stg_shopify_gql__product_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7377665, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_product_id"], "alias": "not_null_stg_shopify_gql__product_tag_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7401578, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__refund_unique_key"], "alias": "unique_stg_shopify_gql__refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7424786, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__refund", "attached_node": "model.shopify_source.stg_shopify_gql__refund", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__refund')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__refund_unique_key"], "alias": "not_null_stg_shopify_gql__refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7449, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__refund", "attached_node": "model.shopify_source.stg_shopify_gql__refund", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__refund')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__shop_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__shop_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__shop_unique_key"], "alias": "unique_stg_shopify_gql__shop_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7472558, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__shop_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__shop_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__shop_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__shop_unique_key"], "alias": "not_null_stg_shopify_gql__shop_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7495677, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__shop_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__shop_shop_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__shop_shop_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__shop_shop_id"], "alias": "not_null_stg_shopify_gql__shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.751865, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__tax_line_unique_key"], "alias": "unique_stg_shopify_gql__tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7542865, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__tax_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tax_line_unique_key"], "alias": "not_null_stg_shopify_gql__tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.756586, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tax_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__tender_transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__tender_transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__tender_transaction_unique_key"], "alias": "unique_stg_shopify_gql__tender_transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7588701, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__tender_transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tender_transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tender_transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tender_transaction_unique_key"], "alias": "not_null_stg_shopify_gql__tender_transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7612064, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tender_transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tender_transaction_transaction_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tender_transaction_transaction_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tender_transaction_transaction_id"], "alias": "not_null_stg_shopify_gql__tender_transaction_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7635345, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tender_transaction_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__transaction_unique_key"], "alias": "unique_stg_shopify_gql__transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7661, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__transaction", "attached_node": "model.shopify_source.stg_shopify_gql__transaction", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__transaction_unique_key"], "alias": "not_null_stg_shopify_gql__transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.768499, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__transaction", "attached_node": "model.shopify_source.stg_shopify_gql__transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__transaction')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_visit_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_visit_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_visit_unique_key"], "alias": "unique_stg_shopify_gql__customer_visit_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7708457, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_visit_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_visit", "attached_node": "model.shopify_source.stg_shopify_gql__customer_visit", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_visit')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_visit_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_visit_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_visit_unique_key"], "alias": "not_null_stg_shopify_gql__customer_visit_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7731614, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_visit_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_visit", "attached_node": "model.shopify_source.stg_shopify_gql__customer_visit", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_visit')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_rule_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_rule_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_rule_unique_key"], "alias": "unique_stg_shopify_gql__collection_rule_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7755842, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_rule", "attached_node": "model.shopify_source.stg_shopify_gql__collection_rule", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_rule')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_rule_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_rule_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_rule_unique_key"], "alias": "not_null_stg_shopify_gql__collection_rule_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.777927, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_rule", "attached_node": "model.shopify_source.stg_shopify_gql__collection_rule", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_rule')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_address_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_address_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_address_unique_key"], "alias": "unique_stg_shopify_gql__customer_address_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7802718, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_address_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_address", "attached_node": "model.shopify_source.stg_shopify_gql__customer_address", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_address')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_address_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_address_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_address_unique_key"], "alias": "not_null_stg_shopify_gql__customer_address_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.782608, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_address_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_address", "attached_node": "model.shopify_source.stg_shopify_gql__customer_address", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_address')) }}"}, "namespace": null}}}, "sources": {"source.shopify_source.shopify.order": {"database": "postgres", "schema": "public", "name": "order", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order", "fqn": ["shopify_source", "rest", "shopify", "order"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_data", "quoting": {"database": null, "schema": null, "identifier": true, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_at": {"name": "cancelled_at", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "(DEPRECATED) The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "(DEPRECATED) A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "confirmed": {"name": "confirmed", "description": "Whether inventory has been reserved for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_identifier": {"name": "source_identifier", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "created_at": 1754505369.8134737, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer": {"database": "postgres", "schema": "public", "name": "customer", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer", "fqn": ["shopify_source", "rest", "shopify", "customer"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "accepts_marketing": {"name": "accepts_marketing", "description": "Whether the customer has consented to receive marketing material via email. Deprecated and will be coalesced with `email_marketing_consent_state`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "state": {"name": "state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_exempt": {"name": "tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "verified_email": {"name": "verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_state": {"name": "email_marketing_consent_state", "description": "The current email marketing state for the customer. New version of `accepts_marketing` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_opt_in_level": {"name": "email_marketing_consent_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. New version of `marketing_opt_in_level` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_consent_updated_at": {"name": "email_marketing_consent_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. New version of `accepts_marketing_updated_at` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "accepts_marketing_updated_at": {"name": "accepts_marketing_updated_at", "description": "Deprecated. The package will coalesce with `email_marketing_consent_consent_updated_at`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "Deprecated. The package will coalesce with `email_marketing_consent_opt_in_level`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "created_at": 1754505369.8157144, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line": {"database": "postgres", "schema": "public", "name": "order_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line", "fqn": ["shopify_source", "rest", "shopify", "order_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item for an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gift_card": {"name": "gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "created_at": 1754505369.8166199, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line_refund": {"database": "postgres", "schema": "public", "name": "order_line_refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line_refund", "fqn": ["shopify_source", "rest", "shopify", "order_line_refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item refund in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "created_at": 1754505369.8173182, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product": {"database": "postgres", "schema": "public", "name": "product", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product", "fqn": ["shopify_source", "rest", "shopify", "product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product in Shopify.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "created_at": 1754505369.8179877, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant": {"database": "postgres", "schema": "public", "name": "product_variant", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant", "fqn": ["shopify_source", "rest", "shopify", "product_variant"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "old_inventory_quantity": {"name": "old_inventory_quantity", "description": "(DEPRECATED 2025-01-06) Use the InventoryLevel resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "(DEPRECATED 2025-01-06) Use the `requires_shipping` property on the InventoryItem resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "available_for_sale": {"name": "available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield": {"name": "metafield", "description": "A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_components": {"name": "requires_components", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "created_at": 1754505369.8187387, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.transaction": {"database": "postgres", "schema": "public", "name": "transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.transaction", "fqn": ["shopify_source", "rest", "shopify", "transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a transaction in Shopify.", "columns": {"id": {"name": "id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization": {"name": "authorization", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "created_at": 1754505369.8195436, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.refund": {"database": "postgres", "schema": "public", "name": "refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.refund", "fqn": ["shopify_source", "rest", "shopify", "refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a refund within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "created_at": 1754505369.820195, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_adjustment": {"database": "postgres", "schema": "public", "name": "order_adjustment", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_adjustment", "fqn": ["shopify_source", "rest", "shopify", "order_adjustment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_adjustment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "created_at": 1754505369.8208253, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout": {"database": "postgres", "schema": "public", "name": "abandoned_checkout", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "created_at": 1754505369.8217187, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection_product": {"database": "postgres", "schema": "public", "name": "collection_product", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection_product", "fqn": ["shopify_source", "rest", "shopify", "collection_product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "created_at": 1754505369.8223355, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection": {"database": "postgres", "schema": "public", "name": "collection", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection", "fqn": ["shopify_source", "rest", "shopify", "collection"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "disjunctive": {"name": "disjunctive", "description": "Boolean representing whether the `rules` or disjuctive (logical `OR`) or not. True = disjuctive, false = conjunctive (logical `AND`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparitive relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values inclide - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "created_at": 1754505369.822963, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer_tag": {"database": "postgres", "schema": "public", "name": "customer_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer_tag", "fqn": ["shopify_source", "rest", "shopify", "customer_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "created_at": 1754505369.8235843, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment": {"database": "postgres", "schema": "public", "name": "fulfillment", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment", "fqn": ["shopify_source", "rest", "shopify", "fulfillment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt_authorization": {"name": "receipt_authorization", "description": "The authorization code from the receipt.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was succesfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "created_at": 1754505369.8242953, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_item": {"database": "postgres", "schema": "public", "name": "inventory_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_item", "fqn": ["shopify_source", "rest", "shopify", "inventory_item"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked": {"name": "tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_locked": {"name": "tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "created_at": 1754505369.8249671, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_level": {"database": "postgres", "schema": "public", "name": "inventory_level", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_level", "fqn": ["shopify_source", "rest", "shopify", "inventory_level"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_level_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available": {"name": "available", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "created_at": 1754505369.8256147, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_quantity": {"database": "postgres", "schema": "public", "name": "inventory_quantity", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_quantity", "fqn": ["shopify_source", "rest", "shopify", "inventory_quantity"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_quantity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The total quantity of the inventory item available at all locations.", "columns": {"id": {"name": "id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "created_at": 1754505369.8262436, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.location": {"database": "postgres", "schema": "public", "name": "location", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.location", "fqn": ["shopify_source", "rest", "shopify", "location"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_location_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "active": {"name": "active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy": {"name": "legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "created_at": 1754505369.8269453, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.metafield": {"database": "postgres", "schema": "public", "name": "metafield", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.metafield", "fqn": ["shopify_source", "rest", "shopify", "metafield"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_metafield_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_id": {"name": "owner_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Use this instead of `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "created_at": 1754505369.82759, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_note_attribute": {"database": "postgres", "schema": "public", "name": "order_note_attribute", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_note_attribute", "fqn": ["shopify_source", "rest", "shopify", "order_note_attribute"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_note_attribute_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "created_at": 1754505369.8282027, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_line": {"database": "postgres", "schema": "public", "name": "order_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_line", "fqn": ["shopify_source", "rest", "shopify", "order_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "created_at": 1754505369.8288355, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_tax_line": {"database": "postgres", "schema": "public", "name": "order_shipping_tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_tax_line", "fqn": ["shopify_source", "rest", "shopify", "order_shipping_tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this recod is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "created_at": 1754505369.8294775, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_tag": {"database": "postgres", "schema": "public", "name": "order_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_tag", "fqn": ["shopify_source", "rest", "shopify", "order_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "created_at": 1754505369.8300965, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_url_tag": {"database": "postgres", "schema": "public", "name": "order_url_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_url_tag", "fqn": ["shopify_source", "rest", "shopify", "order_url_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_url_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "created_at": 1754505369.8306987, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media": {"database": "postgres", "schema": "public", "name": "media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media", "fqn": ["shopify_source", "rest", "shopify", "media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing media metadata, including status and timestamps.", "columns": {"id": {"name": "id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "created_at": 1754505369.8313653, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media_image": {"database": "postgres", "schema": "public", "name": "media_image", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media_image", "fqn": ["shopify_source", "rest", "shopify", "media_image"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_image_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "created_at": 1754505369.831986, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_media": {"database": "postgres", "schema": "public", "name": "product_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_media", "fqn": ["shopify_source", "rest", "shopify", "product_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "created_at": 1754505369.8326175, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant_media": {"database": "postgres", "schema": "public", "name": "product_variant_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant_media", "fqn": ["shopify_source", "rest", "shopify", "product_variant_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping product variants to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "created_at": 1754505369.8332396, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_tag": {"database": "postgres", "schema": "public", "name": "product_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_tag", "fqn": ["shopify_source", "rest", "shopify", "product_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "created_at": 1754505369.8338413, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.shop": {"database": "postgres", "schema": "public", "name": "shop", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.shop", "fqn": ["shopify_source", "rest", "shopify", "shop"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_shop_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_api_supported": {"name": "checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "county_taxes": {"name": "county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_card_reader_giveaway": {"name": "eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_payments": {"name": "eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "force_ssl": {"name": "force_ssl", "description": "DEPRECATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_login_enabled": {"name": "google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "multi_location_enabled": {"name": "multi_location_enabled", "description": "DEPRECATED and hard-coded to `true`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "password_enabled": {"name": "password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_launch_enabled": {"name": "pre_launch_enabled", "description": "Boolen representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_location_id": {"name": "primary_location_id", "description": "DEPRECATED. Formerly used for the ID of the shipping origin location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_extra_payments_agreement": {"name": "requires_extra_payments_agreement", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "setup_required": {"name": "setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_shipping": {"name": "tax_shipping", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "created_at": 1754505369.8347003, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tender_transaction": {"database": "postgres", "schema": "public", "name": "tender_transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tender_transaction", "fqn": ["shopify_source", "rest", "shopify", "tender_transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tender_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the tender transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "created_at": 1754505369.835349, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index (from 1) representing the application of the discount to the checkout. Use the latest (highest index)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "created_at": 1754505369.8359685, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_discount_code": {"database": "postgres", "schema": "public", "name": "order_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_discount_code", "fqn": ["shopify_source", "rest", "shopify", "order_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "created_at": 1754505369.8365922, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_shop_price": {"name": "original_shop_price", "description": "The pre-tax shipping price without any discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "created_at": 1754505369.837254, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment_event": {"database": "postgres", "schema": "public", "name": "fulfillment_event", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment_event", "fqn": ["shopify_source", "rest", "shopify", "fulfillment_event"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_event_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "created_at": 1754505369.8386517, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tax_line": {"database": "postgres", "schema": "public", "name": "tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tax_line", "fqn": ["shopify_source", "rest", "shopify", "tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "created_at": 1754505369.8393052, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_allocation": {"database": "postgres", "schema": "public", "name": "discount_allocation", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_allocation", "fqn": ["shopify_source", "rest", "shopify", "discount_allocation"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_allocation_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing allocation amounts applied to order lines from discount applications. Discount allocations indicate how much of the discount was applied and how it was split across line items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The currency code associated with the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The currency code associated with the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of this allocation in the list of discount allocations applied to an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "created_at": 1754505369.8399336, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_application": {"database": "postgres", "schema": "public", "name": "discount_application", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_application", "fqn": ["shopify_source", "rest", "shopify", "discount_application"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_application_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount applications, which define how discounts were applied to an order. This includes metadata like allocation method, target type, and value type.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The allocation method used to apply the discount. Valid values include `each` (the discount is applied to each entitled item) and `across` (the discount is applied across all entitled items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A short description of the discount, usually derived from the associated rule or promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Specifies whether the discount applies to all items (`all`) or only entitled ones (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "Indicates whether the discount applies to `line_item` or `shipping_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the discount as displayed in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Possible values include `manual`, `automatic`, or `script`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The numerical value of the discount. This may be a flat amount or a percentage, depending on `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount is a `percentage` or a `fixed_amount`. When the target type is `shipping_line`, only `percentage` is allowed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "created_at": 1754505369.8405774, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_app": {"database": "postgres", "schema": "public", "name": "discount_code_app", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_app", "fqn": ["shopify_source", "rest", "shopify", "discount_code_app"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_app_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount codes created and managed through apps using Shopify Functions. These app-based discounts support advanced, dynamic behavior and custom targeting.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_count": {"name": "codes_count_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_precision": {"name": "codes_count_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "created_at": 1754505369.8412652, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_basic": {"database": "postgres", "schema": "public", "name": "discount_code_basic", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_basic", "fqn": ["shopify_source", "rest", "shopify", "discount_code_basic"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_basic_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing basic discount codes and their metadata. This includes usage limits, timeframes, eligible customers, combination rules, and tracked usage.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "Number of billing cycles the discount can be applied for (used for subscriptions).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is an exact number or an estimate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "created_at": 1754505369.841943, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_bxgy": {"database": "postgres", "schema": "public", "name": "discount_code_bxgy", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_bxgy", "fqn": ["shopify_source", "rest", "shopify", "discount_code_bxgy"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_bxgy_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing Buy X Get Y discount codes, including conditions for what customers must buy, what they receive, and metadata such as usage, status, and combination eligibility.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "uses_per_order_limit": {"name": "uses_per_order_limit", "description": "The maximum number of times the discount can be applied to a single order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "created_at": 1754505369.8426027, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_free_shipping": {"database": "postgres", "schema": "public", "name": "discount_code_free_shipping", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_free_shipping", "fqn": ["shopify_source", "rest", "shopify", "discount_code_free_shipping"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_free_shipping_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing free shipping discount codes and metadata, including subscription and one-time purchase applicability, eligible countries, usage limits, and combination rules.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "created_at": 1754505369.8432877, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_redeem_code": {"database": "postgres", "schema": "public", "name": "discount_redeem_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_redeem_code", "fqn": ["shopify_source", "rest", "shopify", "discount_redeem_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_redeem_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each code is tied to a parent discount and may be created by an app or manually by a merchant.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This value is updated asynchronously and may not match real-time usage counts.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (usually an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount this redeem code is associated with (e.g., `discount_code_basic`, `discount_code_bxgy`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "created_at": 1754505369.8439112, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order": {"database": "postgres", "schema": "public", "name": "order", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_data", "quoting": {"database": null, "schema": null, "identifier": true, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_ip": {"name": "client_ip", "description": "The IP address of the customer who placed the order. Useful for fraud detection and geographic analysis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_accepts_marketing": {"name": "customer_accepts_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_at": {"name": "cancelled_at", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The shop currency when the order was placed. For example, \"USD\" or \"CAD\".", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_financial_status": {"name": "display_financial_status", "description": "An order's financial status for display in the Shopify admin. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFinancialStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_fulfillment_status": {"name": "display_fulfillment_status", "description": "The order's fulfillment status that displays in the Shopify admin to merchants. For example, an order might be unfulfilled or scheduled. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFulfillmentStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The unique identifier for the order that appears on the order page in the Shopify admin and the Order status page. For example, \"#1001\", \"EN1001\", or \"1001-A\". This value isn't unique across multiple stores.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The optional note associated with the order. Contains additional information or instructions added by merchants or customers during the order process. Commonly used for special delivery instructions, gift messages, or internal processing notes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The name of the source associated with the order, such as \"web\", \"mobile_app\", or \"pos\". Use this field to identify the platform where the order was placed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_amount": {"name": "subtotal_price_set_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_amount": {"name": "subtotal_price_set_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_currency_code": {"name": "subtotal_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_currency_code": {"name": "subtotal_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_shop_amount": {"name": "total_discounts_set_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_pres_amount": {"name": "total_discounts_set_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_shop_currency_code": {"name": "total_discounts_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_pres_currency_code": {"name": "total_discounts_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_amount": {"name": "total_price_set_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_amount": {"name": "total_price_set_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_currency_code": {"name": "total_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_currency_code": {"name": "total_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights before returns, in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "The staff member who created or is responsible for the order. Useful for tracking which team member handled phone orders, manual orders, or order modifications. Returns null for orders created directly by customers through the online store.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "confirmed": {"name": "confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status_page_url": {"name": "status_page_url", "description": "The URL where customers can check their order's current status, including tracking information and delivery updates. Provides order tracking links in emails, apps, or customer communications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received_set_shop_amount": {"name": "total_tip_received_set_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_pres_amount": {"name": "total_tip_received_set_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_shop_currency_code": {"name": "total_tip_received_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_pres_currency_code": {"name": "total_tip_received_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency_code": {"name": "presentment_currency_code", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_shop_amount": {"name": "total_shipping_price_set_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_pres_amount": {"name": "total_shipping_price_set_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_shop_currency_code": {"name": "total_shipping_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_pres_currency_code": {"name": "total_shipping_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_data\"", "created_at": 1754505369.8449006, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer": {"database": "postgres", "schema": "public", "name": "customer", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "state": {"name": "state", "description": "The state of the customer's account with a shop. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/customer#field-Customer.fields.state).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_exempt": {"name": "tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "verified_email": {"name": "verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_state": {"name": "email_marketing_consent_state", "description": "The current email marketing state for the customer. New version of `accepts_marketing` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_opt_in_level": {"name": "email_marketing_consent_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. New version of `marketing_opt_in_level` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_updated_at": {"name": "email_marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. New version of `accepts_marketing_updated_at` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_data\"", "created_at": 1754505369.8455746, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_line": {"database": "postgres", "schema": "public", "name": "order_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item for an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "unfulfilled_quantity": {"name": "unfulfilled_quantity", "description": "The number of units not yet fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_pres_amount": {"name": "original_total_set_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_pres_currency_code": {"name": "original_total_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_shop_amount": {"name": "original_total_set_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_shop_currency_code": {"name": "original_total_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_amount": {"name": "total_discount_set_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_amount": {"name": "total_discount_set_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_currency_code": {"name": "total_discount_set_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_currency_code": {"name": "total_discount_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_data\"", "created_at": 1754505369.8463387, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_line_refund": {"database": "postgres", "schema": "public", "name": "order_line_refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_line_refund", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_line_refund"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_line_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item refund in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location where the items will be restocked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_pres_amount": {"name": "subtotal_set_pres_amount", "description": "The refunded subtotal amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_pres_currency_code": {"name": "subtotal_set_pres_currency_code", "description": "The three letter currency code for the subtotal the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_shop_amount": {"name": "subtotal_set_shop_amount", "description": "The refunded subtotal amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_shop_currency_code": {"name": "subtotal_set_shop_currency_code", "description": "The three letter currency code for the subtotal in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The total tax amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three letter currency code of the tax the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The total tax amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three letter currency code of the tax in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "created_at": 1754505369.8470032, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product": {"database": "postgres", "schema": "public", "name": "product", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product in Shopify.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_data\"", "created_at": 1754505369.847689, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_variant": {"database": "postgres", "schema": "public", "name": "product_variant", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_variant", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_variant"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_variant_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "available_for_sale": {"name": "available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_components": {"name": "requires_components", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "created_at": 1754505369.8483746, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.transaction": {"database": "postgres", "schema": "public", "name": "transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.transaction", "fqn": ["shopify_source", "graphql", "shopify_graphql", "transaction"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a transaction in Shopify.", "columns": {"id": {"name": "id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_amount": {"name": "amount_set_pres_amount", "description": "The amount of the transaction in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_currency_code": {"name": "amount_set_pres_currency_code", "description": "The three letter currency code of the customer's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_amount": {"name": "amount_set_shop_amount", "description": "The amount of the transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_currency_code": {"name": "amount_set_shop_currency_code", "description": "The three letter currency code of the shop's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used to process the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "Unique identifier of the staff member who was logged into the Shopify POS device when the transaction was processed", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_transaction_data\"", "created_at": 1754505369.8490872, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.refund": {"database": "postgres", "schema": "public", "name": "refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.refund", "fqn": ["shopify_source", "graphql", "shopify_graphql", "refund"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a refund within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the refund was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "return_id": {"name": "return_id", "description": "Reference to the return which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "Reference to the staff member who created the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_pres_amount": {"name": "total_refunded_set_pres_amount", "description": "The total amount across all transactions for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_pres_currency_code": {"name": "total_refunded_set_pres_currency_code", "description": "The three letter currency code for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_shop_amount": {"name": "total_refunded_set_shop_amount", "description": "The total amount across all transactions for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_shop_currency_code": {"name": "total_refunded_set_shop_currency_code", "description": "The three letter currency code for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_refund_data\"", "created_at": 1754505369.8497548, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_adjustment": {"database": "postgres", "schema": "public", "name": "order_adjustment", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_adjustment", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_adjustment"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_adjustment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_amount": {"name": "amount_set_pres_amount", "description": "The amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_currency_code": {"name": "amount_set_pres_currency_code", "description": "The three letter currency code for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_amount": {"name": "amount_set_shop_amount", "description": "The amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_currency_code": {"name": "amount_set_shop_currency_code", "description": "The three letter shop currency code of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_pres_amount": {"name": "tax_amount_set_pres_amount", "description": "The tax amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_pres_currency_code": {"name": "tax_amount_set_pres_currency_code", "description": "The three letter currency code for the tax of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_shop_amount": {"name": "tax_amount_set_shop_amount", "description": "The tax amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_shop_currency_code": {"name": "tax_amount_set_shop_currency_code", "description": "The three letter shop currency code of the tax for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "created_at": 1754505369.8504043, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.abandoned_checkout": {"database": "postgres", "schema": "public", "name": "abandoned_checkout", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout", "fqn": ["shopify_source", "graphql", "shopify_graphql", "abandoned_checkout"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_abandoned_checkout_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_amount": {"name": "subtotal_price_set_shop_amount", "description": "The price of the checkout before shipping and taxes in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_amount": {"name": "subtotal_price_set_pres_amount", "description": "The price of the checkout before shipping and taxes in *presentment* currencyy. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_currency_code": {"name": "subtotal_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_currency_code": {"name": "subtotal_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_amount": {"name": "total_discount_set_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_amount": {"name": "total_discount_set_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_currency_code": {"name": "total_discount_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_currency_code": {"name": "total_discount_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_shop_amount": {"name": "total_duties_set_shop_amount", "description": "The total duties of the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_pres_amount": {"name": "total_duties_set_pres_amount", "description": "The total duties of the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_shop_currency_code": {"name": "total_duties_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_pres_currency_code": {"name": "total_duties_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_shop_amount": {"name": "total_line_items_price_set_shop_amount", "description": "The sum of the prices of all line items in the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_pres_amount": {"name": "total_line_items_price_set_pres_amount", "description": "The sum of the prices of all line items in the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_shop_currency_code": {"name": "total_line_items_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_pres_currency_code": {"name": "total_line_items_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_amount": {"name": "total_price_set_shop_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_amount": {"name": "total_price_set_pres_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_currency_code": {"name": "total_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_currency_code": {"name": "total_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The sum of all the taxes applied to the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The sum of all the taxes applied to the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "completed_at": {"name": "completed_at", "description": "The date and time when the buyer completed the checkout. Null if the checkout has not been completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "created_at": 1754505369.8512833, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.collection_product": {"database": "postgres", "schema": "public", "name": "collection_product", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection_product", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection_product"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "created_at": 1754505369.8518934, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.collection": {"database": "postgres", "schema": "public", "name": "collection", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "applied_disjunctively": {"name": "applied_disjunctively", "description": "Boolean representing whether products must match any or all of the `rules` to be included in the collection. True = products must match at least one rule, false = products must match all rules.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values inclide - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_data\"", "created_at": 1754505369.8525283, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_tag": {"database": "postgres", "schema": "public", "name": "customer_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "created_at": 1754505369.8531466, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment": {"database": "postgres", "schema": "public", "name": "fulfillment", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_status": {"name": "display_status", "description": "Display status for this fulfillment. Valid values include `attempted_delivery`, `canceled`, `confirmed`, `delayed`, `delivered`, `failure`, `fulfilled`, `in_transit`, `label_printed`, `label_purchased`, `label_voided`, `marked_as_fulfilled`, `not_delivered`, `out_for_delivery`, `picked_up`, `ready_for_pickup`, `submitted`. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service_id": {"name": "service_id", "description": "The id of the fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: (Legacy status, to be deprecated) Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: (Legacy status, to be deprecated) The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "Sum of all line item quantities for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "created_at": 1754505369.853775, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_item": {"database": "postgres", "schema": "public", "name": "inventory_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_item", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_item"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked": {"name": "tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_locked": {"name": "tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "created_at": 1754505369.8544676, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_level": {"database": "postgres", "schema": "public", "name": "inventory_level", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_level", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_level"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_level_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "created_at": 1754505369.855143, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_quantity": {"database": "postgres", "schema": "public", "name": "inventory_quantity", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_quantity", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_quantity"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_quantity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The total quantity of the inventory item available at all locations.", "columns": {"id": {"name": "id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "created_at": 1754505369.8557584, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.location": {"database": "postgres", "schema": "public", "name": "location", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.location", "fqn": ["shopify_source", "graphql", "shopify_graphql", "location"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_location_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_fulfillment_service": {"name": "is_fulfillment_service", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_location_data\"", "created_at": 1754505369.856425, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.metafield": {"database": "postgres", "schema": "public", "name": "metafield", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.metafield", "fqn": ["shopify_source", "graphql", "shopify_graphql", "metafield"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_metafield_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_id": {"name": "owner_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Use this instead of `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_metafield_data\"", "created_at": 1754505369.85706, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_note_attribute": {"database": "postgres", "schema": "public", "name": "order_note_attribute", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_note_attribute", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_note_attribute"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_note_attribute_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "created_at": 1754505369.8576562, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_shipping_line": {"database": "postgres", "schema": "public", "name": "order_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_shipping_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_shipping_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_pres_amount": {"name": "current_discounted_price_set_pres_amount", "description": "Current shipping price in customer currency after applying refunds and discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_pres_currency_code": {"name": "current_discounted_price_set_pres_currency_code", "description": "Three digit customer currency code for the current discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_shop_amount": {"name": "current_discounted_price_set_shop_amount", "description": "Current shipping price in shop currency after applying refunds and discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_shop_currency_code": {"name": "current_discounted_price_set_shop_currency_code", "description": "Three digit shop currency code for the current discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_pres_amount": {"name": "discounted_price_set_pres_amount", "description": "Shipping price in customer currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_pres_currency_code": {"name": "discounted_price_set_pres_currency_code", "description": "Three digit customer currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_shop_amount": {"name": "discounted_price_set_shop_amount", "description": "Shipping price in shop currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_shop_currency_code": {"name": "discounted_price_set_shop_currency_code", "description": "Three digit shop currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_removed": {"name": "is_removed", "description": "Whether the shipping line has been removed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_pres_amount": {"name": "original_price_set_pres_amount", "description": "The pre-tax shipping price without any discounts applied in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_pres_currency_code": {"name": "original_price_set_pres_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_shop_amount": {"name": "original_price_set_shop_amount", "description": "The pre-tax shipping price without any discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_shop_currency_code": {"name": "original_price_set_shop_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_rate_handle": {"name": "shipping_rate_handle", "description": "A unique identifier for the shipping rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "created_at": 1754505369.858373, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_shipping_tax_line": {"database": "postgres", "schema": "public", "name": "order_shipping_tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_shipping_tax_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_shipping_tax_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_shipping_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this recod is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_amount": {"name": "price_set_pres_amount", "description": "The amount of tax in customer currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_currency_code": {"name": "price_set_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_amount": {"name": "price_set_shop_amount", "description": "The amount of tax in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_currency_code": {"name": "price_set_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The source of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "created_at": 1754505369.8589954, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_tag": {"database": "postgres", "schema": "public", "name": "order_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "created_at": 1754505369.8596263, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.media": {"database": "postgres", "schema": "public", "name": "media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing media metadata, including status and timestamps.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "alt": {"name": "alt", "description": "A word or phrase to share the nature or contents of a media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "file_status": {"name": "file_status", "description": "The status of the file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_content_type": {"name": "media_content_type", "description": "The media content type (values include 'external_video', 'image', 'model_3d', 'video')", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_alt_text": {"name": "preview_image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_height": {"name": "preview_image_height", "description": "The original height of the image in pixels (returns null if image not hosted in Shopify).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_id": {"name": "preview_image_id", "description": "A unique id for the image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_url": {"name": "preview_image_url", "description": "The location of the image as a URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_width": {"name": "preview_image_width", "description": "The original width of the image in pixels (returns null if image not hosted in Shopify).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_status": {"name": "preview_status", "description": "Current status of the preview image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_data\"", "created_at": 1754505369.8602943, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.media_image": {"database": "postgres", "schema": "public", "name": "media_image", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.media_image", "fqn": ["shopify_source", "graphql", "shopify_graphql", "media_image"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_media_image_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_image_data\"", "created_at": 1754505369.860896, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_media": {"database": "postgres", "schema": "public", "name": "product_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_media_data\"", "created_at": 1754505369.8615122, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_variant_media": {"database": "postgres", "schema": "public", "name": "product_variant_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_variant_media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_variant_media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_variant_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping product variants to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "created_at": 1754505369.8621185, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_tag": {"database": "postgres", "schema": "public", "name": "product_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "created_at": 1754505369.862787, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.shop": {"database": "postgres", "schema": "public", "name": "shop", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.shop", "fqn": ["shopify_source", "graphql", "shopify_graphql", "shop"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_shop_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The shop's street address (or PO Box number).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_api_supported": {"name": "checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code_v_2": {"name": "billing_address_country_code_v_2", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The three letter code for the currency that the shop sells in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_domain_host": {"name": "primary_domain_host", "description": "The host name of the primary domain of the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "contact_email": {"name": "contact_email", "description": "The public-facing contact email address for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "features_storefront": {"name": "features_storefront", "description": "Whether a shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_format": {"name": "currency_formats_money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_in_emails_format": {"name": "currency_formats_money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_with_currency_format": {"name": "currency_formats_money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_with_currency_in_emails_format": {"name": "currency_formats_money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "password_enabled": {"name": "password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_domain_localization_default_locale": {"name": "primary_domain_localization_default_locale", "description": "The localization of the domain of the shop's online store, if the domain doesn't redirect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "setup_required": {"name": "setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner_name": {"name": "shop_owner_name", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_shipping": {"name": "tax_shipping", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_abbreviation": {"name": "timezone_abbreviation", "description": "The shop's time zone abbreviation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset": {"name": "timezone_offset", "description": "The shop's time zone offset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset_minutes": {"name": "timezone_offset_minutes", "description": "The shop's time zone offset expressed as a number of minutes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_shop_data\"", "created_at": 1754505369.8635607, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.tender_transaction": {"database": "postgres", "schema": "public", "name": "tender_transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.tender_transaction", "fqn": ["shopify_source", "graphql", "shopify_graphql", "tender_transaction"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_tender_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the tender transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "created_at": 1754505369.864206, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "abandoned_checkout_discount_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_abandoned_checkout_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index (from 1) representing the application of the discount to the checkout. Use the latest (highest index)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "created_at": 1754505369.8648129, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_discount_code": {"database": "postgres", "schema": "public", "name": "order_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_discount_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_discount_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "created_at": 1754505369.8654273, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_event": {"database": "postgres", "schema": "public", "name": "fulfillment_event", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_event", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_event"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_event_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delayed: The shipment was delayed. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "created_at": 1754505369.866112, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.tax_line": {"database": "postgres", "schema": "public", "name": "tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.tax_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "tax_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_amount": {"name": "price_set_pres_amount", "description": "The amount of tax in customer currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_currency_code": {"name": "price_set_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_amount": {"name": "price_set_shop_amount", "description": "The amount of tax in shop currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_currency_code": {"name": "price_set_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "created_at": 1754505369.8667278, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_allocation": {"database": "postgres", "schema": "public", "name": "discount_allocation", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_allocation", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_allocation"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_allocation_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing allocation amounts applied to order lines from discount applications. Discount allocations indicate how much of the discount was applied and how it was split across line items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocated_amount_set_pres_amount": {"name": "allocated_amount_set_pres_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_pres_currency_code": {"name": "allocated_amount_set_pres_currency_code", "description": "The currency code associated with the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_shop_amount": {"name": "allocated_amount_set_shop_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_shop_currency_code": {"name": "allocated_amount_set_shop_currency_code", "description": "The currency code associated with the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of this allocation in the list of discount allocations applied to an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "created_at": 1754505369.8673518, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_application": {"database": "postgres", "schema": "public", "name": "discount_application", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_application", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_application"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_application_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount applications, which define how discounts were applied to an order or shipping line. This includes metadata like allocation method, target type, and value type.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The allocation method used to apply the discount. Valid values include `each` (the discount is applied to each entitled item) and `across` (the discount is applied across all entitled items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Specifies whether the discount applies to all items (`all`) or only entitled ones (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "Indicates whether the discount applies to `line_item` or `shipping_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "created_at": 1754505369.8679702, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_app": {"database": "postgres", "schema": "public", "name": "discount_code_app", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_app", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_app"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_app_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount codes created and managed through apps using Shopify Functions. These app-based discounts support advanced, dynamic behavior and custom targeting.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of times a discount applies on recurring purchases (subscriptions). 0 will apply infinitely. 1 will only apply to the first checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_count": {"name": "codes_count_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_precision": {"name": "codes_count_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "created_at": 1754505369.8686442, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_basic": {"database": "postgres", "schema": "public", "name": "discount_code_basic", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_basic", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_basic"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_basic_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing basic discount codes and their metadata. This includes usage limits, timeframes, eligible customers, combination rules, and tracked usage.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "Number of billing cycles the discount can be applied for (used for subscriptions).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is an exact number or an estimate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "created_at": 1754505369.8693402, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_bxgy": {"database": "postgres", "schema": "public", "name": "discount_code_bxgy", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_bxgy", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_bxgy"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_bxgy_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing Buy X Get Y discount codes, including conditions for what customers must buy, what they receive, and metadata such as usage, status, and combination eligibility.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "created_at": 1754505369.870021, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_free_shipping": {"database": "postgres", "schema": "public", "name": "discount_code_free_shipping", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_free_shipping", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_free_shipping"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_free_shipping_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing free shipping discount codes and metadata, including subscription and one-time purchase applicability, eligible countries, usage limits, and combination rules.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles for which the discount can be applied, which is useful for subscription-based discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "created_at": 1754505369.8707452, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_redeem_code": {"database": "postgres", "schema": "public", "name": "discount_redeem_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_redeem_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_redeem_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_redeem_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each code is tied to a parent discount and may be created by an app or manually by a merchant.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This value is updated asynchronously and may not match real-time usage counts.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (usually an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount this redeem code is associated with (e.g., `discount_code_basic`, `discount_code_bxgy`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "created_at": 1754505369.8713796, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_tracking_info": {"database": "postgres", "schema": "public", "name": "fulfillment_tracking_info", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_tracking_info", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_tracking_info"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_tracking_info_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents tracking information associated with a fulfillment. Used by Shopify to generate clickable tracking numbers and delivery updates.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_id": {"name": "fulfillment_id", "description": "The unique identifier of the fulfillment this tracking info belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The name of the tracking company. For supported carriers, Shopify automatically builds tracking URLs and may update the shipment status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "Tracking number for the fulfillment. If a known tracking company is specified, or the number matches a known format, Shopify may auto-generate a tracking URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "url": {"name": "url", "description": "Direct URL to track the fulfillment. This is displayed in the Shopify admin and customer notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the tracking information associated with a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "created_at": 1754505369.872438, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_visit": {"database": "postgres", "schema": "public", "name": "customer_visit", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_visit", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_visit"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_visit_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metadata about a customer's session visiting a Shopify store, including session, landing page, referrer, marketing campaign, and source attribution information. This data helps merchants analyze the effectiveness of marketing campaigns and customer engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "A globally-unique identifier for the customer visit session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order associated with the customer visit, if any.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of marketing tactic associated with the session. Possible values include: abandoned_cart, ad, affiliate, link, loyalty, message, newsletter, notification, post, retargeting, seo, storefront_app, transactional.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page": {"name": "landing_page", "description": "The URL of the first page the customer landed on for the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page_html": {"name": "landing_page_html", "description": "The landing page URL rendered as HTML with a hyperlink.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "occurred_at": {"name": "occurred_at", "description": "The timestamp when the customer's session occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_code": {"name": "referral_code", "description": "A marketing referral code captured from the landing URL. Supports query params like `ref`, `source`, or `r`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_info_html": {"name": "referral_info_html", "description": "Referral info rendered as HTML with URLs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referrer_url": {"name": "referrer_url", "description": "The referring webpage where the customer clicked a link to arrive at the store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The origin of the customer's visit, such as a platform (e.g., Facebook, Google), a QR code, direct, or other attribution channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_description": {"name": "source_description", "description": "A more descriptive label for the visit source; used primarily for the first or last session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_type": {"name": "source_type", "description": "The marketing tactic type, such as ad, seo, newsletter, etc.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_campaign": {"name": "utm_parameters_campaign", "description": "The name of the marketing campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_content": {"name": "utm_parameters_content", "description": "Identifies specific content within a campaign, used to differentiate similar links.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_medium": {"name": "utm_parameters_medium", "description": "The medium of the campaign (e.g., cpc, banner, email).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_source": {"name": "utm_parameters_source", "description": "The traffic source for the campaign (e.g., google, newsletter).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_term": {"name": "utm_parameters_term", "description": "Search terms associated with paid campaigns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "created_at": 1754505369.8731215, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_order_line_item": {"database": "postgres", "schema": "public", "name": "fulfillment_order_line_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_order_line_item", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_order_line_item"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_order_line_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Links a fulfillment order to specific items that require fulfillment. Contains detailed product information, quantity tracking, variant metadata, and shipping requirements. This is a core entity for determining which products and how many units are involved in a given fulfillment process.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_order_id": {"name": "fulfillment_order_id", "description": "The identifier of the fulfillment order that this line item is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for this fulfillment order line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "Alt text describing the image associated with the line item's variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "The height in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "The unique identifier for the variant image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The url of the variant image used in this fulfillment line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "The width in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The identifier of the inventory item being fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_item_id": {"name": "order_line_item_id", "description": "The identifier of the original order line item linked to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_title": {"name": "product_title", "description": "The title of the product at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The identifier of the product variant associated with this fulfillment item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remaining_quantity": {"name": "remaining_quantity", "description": "The number of units remaining to be fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Indicates whether physical shipping is required for this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The SKU of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "The total number of units allocated to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The vendor of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "created_at": 1754505369.87443, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_address": {"database": "postgres", "schema": "public", "name": "customer_address", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_address", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_address"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a customer's mailing address and includes additional geographic metadata.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer to whom this address belongs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the customer address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The first line of the address (e.g., street address or PO Box).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The second line of the address (e.g., apartment, suite, or unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The name of the city, district, village, or town for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The company or organization associated with the customer at this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The full country name for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter ISO country code for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_default": {"name": "is_default", "description": "Indicates if this address is the default shipping address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The full name of the customer, derived from first and last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer\u2019s phone number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The name of the region, state, or province for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The standardized zone or province code for the region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code of the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "validation_result_summary": {"name": "validation_result_summary", "description": "A summary of address validation results (e.g., match confidence or status).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The timezone associated with the address, if available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "coordinates_validated": {"name": "coordinates_validated", "description": "Indicates whether the latitude and longitude coordinates were validated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "created_at": 1754505369.8751478, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.33414, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.334581, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3348143, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3350623, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3353028, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\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 when 'm' then 'MATERIALIZED 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 where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- 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', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\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{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3372803, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3379815, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3389935, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.339279, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3437202, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.344847, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3455043, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3461268, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3470337, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.347879, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3482409, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3489008, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3496516, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3512728, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3516622, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3523028, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.35285, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3537052, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n {% if relation.type == 'materialized_view' -%}\n {% set relation_type = \"materialized view\" %}\n {%- else -%}\n {%- set relation_type = relation.type -%}\n {%- endif -%}\n comment on {{ relation_type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.354508, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3557112, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3561406, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.356383, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3567286, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.357018, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n update {{ target }}\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }}::text = {{ target }}.{{ columns.dbt_scd_id }}::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n {% if config.get(\"dbt_valid_to_current\") %}\n and ({{ target }}.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }} or {{ target }}.{{ columns.dbt_valid_to }} is null);\n {% else %}\n and {{ target }}.{{ columns.dbt_valid_to }} is null;\n {% endif %}\n\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3595083, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3604453, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_microbatch_sql": {"name": "postgres__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_microbatch_sql", "macro_sql": "{% macro postgres__get_incremental_microbatch_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"dbt-postgres 'microbatch' requires a `unique_key` config\") }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_merge_sql", "macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.361105, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3618884, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3622093, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.363221, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.367099, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3675473, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3685026, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.36879, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3691542, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3703606, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3706522, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}{{ ';' if not loop.last else \"\" }}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3714802, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3720756, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3724265, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3734882, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }}\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\t{{ ';' if not loop.last else \"\" }}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3746943, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config.model) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3753304, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3756375, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3759155, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3762789, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3773065, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3778794, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3784978, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3791115, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3808725, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3813238, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3816254, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3819125, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3822157, "supported_languages": null}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.384012, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3859851, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3864732, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation.render() %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.387513, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.387913, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.388218, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3885055, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3887436, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3890774, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3893218, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.390297, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3906727, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3931522, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation.render())) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3983536, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n {% do create_indexes(intermediate_relation) %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4025526, "supported_languages": ["sql"]}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.406707, "supported_languages": ["sql"]}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4097908, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4105859, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4110973, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation.render() ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation.render() ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4136393, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4141252, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4154, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4166777, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4171667, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4175441, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4181328, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4185026, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.419087, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4194512, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.419956, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4204865, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.42079, "supported_languages": null}, "macro.dbt.get_incremental_microbatch_sql": {"name": "get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_microbatch_sql", "macro_sql": "{% macro get_incremental_microbatch_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_microbatch_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_microbatch_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4211717, "supported_languages": null}, "macro.dbt.default__get_incremental_microbatch_sql": {"name": "default__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_microbatch_sql", "macro_sql": "{% macro default__get_incremental_microbatch_sql(arg_dict) %}\n\n {{ exceptions.raise_not_implemented('microbatch materialization strategy not implemented for adapter ' + adapter.type()) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4215024, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4220836, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4236732, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.424755, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.426093, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4265592, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4279637, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4300103, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set source_unique_key = (\"DBT_INTERNAL_SOURCE.\" ~ unique_key) | trim %}\n\t {% set target_unique_key = (\"DBT_INTERNAL_DEST.\" ~ unique_key) | trim %}\n\t {% set unique_key_match = equals(source_unique_key, target_unique_key) | trim %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4347506, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4356973, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is string %}\n {% set unique_key = [unique_key] %}\n {% endif %}\n\n {%- set unique_key_str = unique_key|join(', ') -%}\n\n delete from {{ target }} as DBT_INTERNAL_DEST\n where ({{ unique_key_str }}) in (\n select distinct {{ unique_key_str }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4378147, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4386318, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4408205, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% set relation_for_indexes = target_relation %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set relation_for_indexes = intermediate_relation %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% set relation_for_indexes = temp_relation %}\n {% set contract_config = config.get('contract') %}\n {% if not contract_config or not contract_config.enforced %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {% endif %}\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_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(relation_for_indexes) %}\n {% endif %}\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 {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.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": 1754505360.4550357, "supported_languages": ["sql"]}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4572034, "supported_languages": null}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4611993, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4654336, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4682953, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4701276, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.470697, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4709637, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation.render() ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% if target_relation.database == defer_relation.database and\n target_relation.schema == defer_relation.schema and\n target_relation.identifier == defer_relation.identifier %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation.render()) }}\n {% else %}\n {% call statement('main') %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endcall %}\n {% endif %}\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4774559, "supported_languages": ["sql"]}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4784808, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation.render() }} clone {{ defer_relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.478958, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4843473, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4848642, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4854548, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set primary_key = config.get('unique_key') %}\n {% set updated_at = config.get('updated_at') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\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 }}.{{ columns.dbt_valid_from }} < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4882786, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4887288, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4891598, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4922147, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set check_cols_config = config.get('check_cols') %}\n {% set primary_key = config.get('unique_key') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set updated_at = config.get('updated_at') or 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_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4963458, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4975274, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n merge into {{ target.render() }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }} = DBT_INTERNAL_DEST.{{ columns.dbt_scd_id }}\n\n when matched\n {% if config.get(\"dbt_valid_to_current\") %}\n\t{% set source_unique_key = (\"DBT_INTERNAL_DEST.\" ~ columns.dbt_valid_to) | trim %}\n\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\tand ({{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null)\n\n {% else %}\n and DBT_INTERNAL_DEST.{{ columns.dbt_valid_to }} is null\n {% endif %}\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.499857, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.505005, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation.render() }} add column {{ adapter.quote(column.name) }} {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5060859, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.50662, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5068426, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.507351, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5076435, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5081804, "supported_languages": null}, "macro.dbt.get_snapshot_table_column_names": {"name": "get_snapshot_table_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_snapshot_table_column_names", "macro_sql": "{% macro get_snapshot_table_column_names() %}\n {{ return({'dbt_valid_to': 'dbt_valid_to', 'dbt_valid_from': 'dbt_valid_from', 'dbt_scd_id': 'dbt_scd_id', 'dbt_updated_at': 'dbt_updated_at', 'dbt_is_deleted': 'dbt_is_deleted'}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5089571, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n {% if strategy.hard_deletes == 'new_record' %}\n {% set new_scd_id = snapshot_hash_arguments([columns.dbt_scd_id, snapshot_get_time()]) %}\n {% endif %}\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }}\n from {{ target_relation }}\n where\n {% if config.get('dbt_valid_to_current') %}\n\t\t{% set source_unique_key = columns.dbt_valid_to | trim %}\n\t\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\n\t\t{# The exact equals semantics between NULL values depends on the current behavior flag set. Also, update records if the source field is null #}\n ( {{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null )\n {% else %}\n {{ columns.dbt_valid_to }} is null\n {% endif %}\n\n ),\n\n insertions_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }},\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }}\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_to }}\n\n from snapshot_query\n ),\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n\n deletes_source_data as (\n\n select *, {{ unique_key_fields(strategy.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 {%- if strategy.hard_deletes == 'new_record' -%}\n ,'False' as {{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from insertions_source_data as source_data\n left outer join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"snapshotted_data\") }}\n or ({{ unique_key_is_not_null(strategy.unique_key, \"snapshotted_data\") }} and (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from updates_source_data as source_data\n join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n )\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n ,\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_to }},\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n and not (\n --avoid updating the record's valid_to if the latest entry is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n {%- endif %}\n )\n {%- endif %}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n {% set snapshotted_cols = get_list_of_column_names(get_columns_in_relation(target_relation)) %}\n {% set source_sql_cols = get_column_schema_from_query(source_sql) %}\n ,\n deletion_records as (\n\n select\n 'insert' as dbt_change_type,\n {#\n If a column has been added to the source it won't yet exist in the\n snapshotted table so we insert a null value as a placeholder for the column.\n #}\n {%- for col in source_sql_cols -%}\n {%- if col.name in snapshotted_cols -%}\n snapshotted_data.{{ adapter.quote(col.column) }},\n {%- else -%}\n NULL as {{ adapter.quote(col.column) }},\n {%- endif -%}\n {% endfor -%}\n {%- if strategy.unique_key | is_list -%}\n {%- for key in strategy.unique_key -%}\n snapshotted_data.{{ key }} as dbt_unique_key_{{ loop.index }},\n {% endfor -%}\n {%- else -%}\n snapshotted_data.dbt_unique_key as dbt_unique_key,\n {% endif -%}\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n snapshotted_data.{{ columns.dbt_valid_to }} as {{ columns.dbt_valid_to }},\n {{ new_scd_id }} as {{ columns.dbt_scd_id }},\n 'True' as {{ columns.dbt_is_deleted }}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n and not (\n --avoid inserting a new record if the latest one is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletes\n {%- endif %}\n {%- if strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletion_records\n {%- endif %}\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments", "macro.dbt.snapshot_get_time", "macro.dbt.unique_key_fields", "macro.dbt.equals", "macro.dbt.get_dbt_valid_to_current", "macro.dbt.unique_key_join_on", "macro.dbt.unique_key_is_null", "macro.dbt.unique_key_is_not_null", "macro.dbt.get_list_of_column_names", "macro.dbt.get_columns_in_relation", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.520982, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5217528, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n\n select *,\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , 'False' as {{ columns.dbt_is_deleted }}\n {% endif -%}\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.get_dbt_valid_to_current"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5229738, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5239003, "supported_languages": null}, "macro.dbt.get_updated_at_column_data_type": {"name": "get_updated_at_column_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_updated_at_column_data_type", "macro_sql": "{% macro get_updated_at_column_data_type(snapshot_sql) %}\n {% set snapshot_sql_column_schema = get_column_schema_from_query(snapshot_sql) %}\n {% set dbt_updated_at_data_type = null %}\n {% set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {% set ns.dbt_updated_at_data_type = null -%}\n {% for column in snapshot_sql_column_schema %}\n {% if ((column.column == 'dbt_updated_at') or (column.column == 'DBT_UPDATED_AT')) %}\n {% set ns.dbt_updated_at_data_type = column.dtype %}\n {% endif %}\n {% endfor %}\n {{ return(ns.dbt_updated_at_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5250828, "supported_languages": null}, "macro.dbt.check_time_data_types": {"name": "check_time_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.check_time_data_types", "macro_sql": "{% macro check_time_data_types(sql) %}\n {% set dbt_updated_at_data_type = get_updated_at_column_data_type(sql) %}\n {% set snapshot_get_time_data_type = get_snapshot_get_time_data_type() %}\n {% if snapshot_get_time_data_type is not none and dbt_updated_at_data_type is not none and snapshot_get_time_data_type != dbt_updated_at_data_type %}\n {% if exceptions.warn_snapshot_timestamp_data_types %}\n {{ exceptions.warn_snapshot_timestamp_data_types(snapshot_get_time_data_type, dbt_updated_at_data_type) }}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_updated_at_column_data_type", "macro.dbt.get_snapshot_get_time_data_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5259063, "supported_languages": null}, "macro.dbt.get_dbt_valid_to_current": {"name": "get_dbt_valid_to_current", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_dbt_valid_to_current", "macro_sql": "{% macro get_dbt_valid_to_current(strategy, columns) %}\n {% set dbt_valid_to_current = config.get('dbt_valid_to_current') or \"null\" %}\n coalesce(nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}), {{dbt_valid_to_current}})\n as {{ columns.dbt_valid_to }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5264692, "supported_languages": null}, "macro.dbt.unique_key_fields": {"name": "unique_key_fields", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_fields", "macro_sql": "{% macro unique_key_fields(unique_key) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n {{ key }} as dbt_unique_key_{{ loop.index }}\n {%- if not loop.last %} , {%- endif %}\n {% endfor %}\n {% else %}\n {{ unique_key }} as dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5271604, "supported_languages": null}, "macro.dbt.unique_key_join_on": {"name": "unique_key_join_on", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_join_on", "macro_sql": "{% macro unique_key_join_on(unique_key, identifier, from_identifier) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n\t {% set source_unique_key = (identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {% set target_unique_key = (from_identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {{ equals(source_unique_key, target_unique_key) }}\n {%- if not loop.last %} and {%- endif %}\n {% endfor %}\n {% else %}\n {{ identifier }}.dbt_unique_key = {{ from_identifier }}.dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5282836, "supported_languages": null}, "macro.dbt.unique_key_is_null": {"name": "unique_key_is_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_null", "macro_sql": "{% macro unique_key_is_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is null\n {% else %}\n {{ identifier }}.dbt_unique_key is null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5286996, "supported_languages": null}, "macro.dbt.unique_key_is_not_null": {"name": "unique_key_is_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_not_null", "macro_sql": "{% macro unique_key_is_not_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is not null\n {% else %}\n {{ identifier }}.dbt_unique_key is not null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5291307, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n\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 {# The model['config'] parameter below is no longer used, but passing anyway for compatibility #}\n {# It was a dictionary of config, instead of the config object from the context #}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", model['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 build_or_select_sql = build_sql %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\n\n {{ adapter.assert_valid_snapshot_target_given_strategy(target_relation, columns, strategy) }}\n\n {% set build_or_select_sql = snapshot_staging_table(strategy, sql, target_relation) %}\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 remove_columns = ['dbt_change_type', 'DBT_CHANGE_TYPE', 'dbt_unique_key', 'DBT_UNIQUE_KEY'] %}\n {% if unique_key | is_list %}\n {% for key in strategy.unique_key %}\n {{ remove_columns.append('dbt_unique_key_' + loop.index|string) }}\n {{ remove_columns.append('DBT_UNIQUE_KEY_' + loop.index|string) }}\n {% endfor %}\n {% endif %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'in', remove_columns)\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', 'in', remove_columns)\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\n {{ check_time_data_types(build_or_select_sql) }}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_staging_table", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.check_time_data_types", "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": 1754505360.5370755, "supported_languages": ["sql"]}, "macro.dbt.materialization_unit_default": {"name": "materialization_unit_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/unit.sql", "original_file_path": "macros/materializations/tests/unit.sql", "unique_id": "macro.dbt.materialization_unit_default", "macro_sql": "{%- materialization unit, default -%}\n\n {% set relations = [] %}\n\n {% set expected_rows = config.get('expected_rows') %}\n {% set expected_sql = config.get('expected_sql') %}\n {% set tested_expected_column_names = expected_rows[0].keys() if (expected_rows | length ) > 0 else get_columns_in_query(sql) %} %}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {% do run_query(get_create_table_as_sql(True, temp_relation, get_empty_subquery_sql(sql))) %}\n {%- set columns_in_relation = adapter.get_columns_in_relation(temp_relation) -%}\n {%- set column_name_to_data_types = {} -%}\n {%- for column in columns_in_relation -%}\n {%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n {%- endfor -%}\n\n {% if not expected_sql %}\n {% set expected_sql = get_expected_sql(expected_rows, column_name_to_data_types) %}\n {% endif %}\n {% set unit_test_sql = get_unit_test_sql(sql, expected_sql, tested_expected_column_names) %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ unit_test_sql }}\n\n {%- endcall %}\n\n {% do adapter.drop_relation(temp_relation) %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt.make_temp_relation", "macro.dbt.run_query", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_empty_subquery_sql", "macro.dbt.get_expected_sql", "macro.dbt.get_unit_test_sql", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5401993, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n {% set limit = config.get('limit') %}\n\n {% set sql_with_limit %}\n {{ get_limit_subquery_sql(sql, limit) }}\n {% endset %}\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\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql_with_limit) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {# Since the test failures have already been saved to the database, reuse that result rather than querying again #}\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_with_limit %}\n\n {% endif %}\n\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 {# The limit has already been included above, and we do not want to duplicate it again. We also want to be safe for macro overrides treating `limit` as a required parameter. #}\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit=none)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5446477, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.545781, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.546398, "supported_languages": null}, "macro.dbt.get_unit_test_sql": {"name": "get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_unit_test_sql", "macro_sql": "{% macro get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n {{ adapter.dispatch('get_unit_test_sql', 'dbt')(main_sql, expected_fixture_sql, expected_column_names) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_unit_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5468059, "supported_languages": null}, "macro.dbt.default__get_unit_test_sql": {"name": "default__get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_unit_test_sql", "macro_sql": "{% macro default__get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n-- Build actual result given inputs\nwith dbt_internal_unit_test_actual as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%},{% endif %}{%- endfor -%}, {{ dbt.string_literal(\"actual\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ main_sql }}\n ) _dbt_internal_unit_test_actual\n),\n-- Build expected result\ndbt_internal_unit_test_expected as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%}, {% endif %}{%- endfor -%}, {{ dbt.string_literal(\"expected\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ expected_fixture_sql }}\n ) _dbt_internal_unit_test_expected\n)\n-- Union actual and expected results\nselect * from dbt_internal_unit_test_actual\nunion all\nselect * from dbt_internal_unit_test_expected\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5479827, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5486298, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5493782, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5498302, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5508063, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5513742, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5519378, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5528023, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5531263, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5534186, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5536344, "supported_languages": null}, "macro.dbt.get_snapshot_get_time_data_type": {"name": "get_snapshot_get_time_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.get_snapshot_get_time_data_type", "macro_sql": "{% macro get_snapshot_get_time_data_type() %}\n {% set snapshot_time = adapter.dispatch('snapshot_get_time', 'dbt')() %}\n {% set time_data_type_sql = 'select ' ~ snapshot_time ~ ' as dbt_snapshot_time' %}\n {% set snapshot_time_column_schema = get_column_schema_from_query(time_data_type_sql) %}\n {% set time_data_type = snapshot_time_column_schema[0].dtype %}\n {{ return(time_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt_postgres.postgres__snapshot_get_time", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5546083, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5549574, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5551417, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5554676, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5557883, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.556401, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5567605, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5570903, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5574796, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5589888, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5595088, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.559902, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5604193, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.560778, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.561113, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5614648, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5619478, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5623705, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5629666, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5635035, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5638325, "supported_languages": null}, "macro.dbt.get_catalog_for_single_relation": {"name": "get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_for_single_relation", "macro_sql": "{% macro get_catalog_for_single_relation(relation) %}\n {{ return(adapter.dispatch('get_catalog_for_single_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_catalog_for_single_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5642111, "supported_languages": null}, "macro.dbt.default__get_catalog_for_single_relation": {"name": "default__get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_for_single_relation", "macro_sql": "{% macro default__get_catalog_for_single_relation(relation) %}\n {{ exceptions.raise_not_implemented(\n 'get_catalog_for_single_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5645218, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.564842, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5651731, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.565566, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.565894, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.566721, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5670614, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.56746, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.567782, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5683131, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5692499, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5698001, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.570272, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5723686, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5727046, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.573347, "supported_languages": null}, "macro.dbt.get_list_of_column_names": {"name": "get_list_of_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_list_of_column_names", "macro_sql": "\n\n{%- macro get_list_of_column_names(columns) -%}\n {% set col_names = [] %}\n {% for col in columns %}\n {% do col_names.append(col.name) %}\n {% endfor %}\n {{ return(col_names) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5740838, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5744998, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.574896, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5752594, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n {{ cast('null', col['data_type']) }} as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5775197, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5782135, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5785666, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5792427, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5796888, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation.render() }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation.render() }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation.render() }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation.render() }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5809507, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.581462, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation.render() }}\n\n {% for column in add_columns %}\n add column {{ column.quoted }} {{ 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.quoted }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5830204, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header is not none -%}\n {{ sql_header }}\n {%- endif %}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5838168, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "\n{%- macro get_limit_subquery_sql(sql, limit) -%}\n {{ adapter.dispatch('get_limit_sql', 'dbt')(sql, limit) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_limit_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.584202, "supported_languages": null}, "macro.dbt.default__get_limit_sql": {"name": "default__get_limit_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_sql", "macro_sql": "{% macro default__get_limit_sql(sql, limit) %}\n {{ sql }}\n {% if limit is not none %}\n limit {{ limit }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5845811, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.585874, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5862315, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {#-- This ensures microbatch batches get unique temp relations to avoid clobbering --#}\n {% if suffix == '__dbt_tmp' and model.batch %}\n {% set suffix = suffix ~ '_' ~ model.batch.id %}\n {% endif %}\n\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5869708, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.587722, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5882158, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5888176, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.589189, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation.render() }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5895433, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5900106, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5910707, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5915039, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5917816, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.592712, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5929856, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.593317, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5940983, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5944643, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.594736, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5950618, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.595331, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5961998, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.596993, "supported_languages": null}, "macro.dbt.collect_freshness_custom_sql": {"name": "collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness_custom_sql", "macro_sql": "{% macro collect_freshness_custom_sql(source, loaded_at_query) %}\n {{ return(adapter.dispatch('collect_freshness_custom_sql', 'dbt')(source, loaded_at_query))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness_custom_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.597593, "supported_languages": null}, "macro.dbt.default__collect_freshness_custom_sql": {"name": "default__collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness_custom_sql", "macro_sql": "{% macro default__collect_freshness_custom_sql(source, loaded_at_query) %}\n {% call statement('collect_freshness_custom_sql', fetch_result=True, auto_begin=False) -%}\n with source_query as (\n {{ loaded_at_query }}\n )\n select\n (select * from source_query) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n {% endcall %}\n {{ return(load_result('collect_freshness_custom_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5982149, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6002078, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6004446, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6007679, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6009917, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6016698, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6020272, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6022823, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6027086, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation.render() }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6031268, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6035666, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation.render() }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6039727, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6044288, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.605742, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.606125, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.606604, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6070533, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation.render() ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.609433, "supported_languages": null}, "macro.dbt.get_fixture_sql": {"name": "get_fixture_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_fixture_sql", "macro_sql": "{% macro get_fixture_sql(rows, column_name_to_data_types) %}\n-- Fixture for {{ model.name }}\n{% set default_row = {} %}\n\n{%- if not column_name_to_data_types -%}\n{#-- Use defer_relation IFF it is available in the manifest and 'this' is missing from the database --#}\n{%- set this_or_defer_relation = defer_relation if (defer_relation and not load_relation(this)) else this -%}\n{%- set columns_in_relation = adapter.get_columns_in_relation(this_or_defer_relation) -%}\n\n{%- set column_name_to_data_types = {} -%}\n{%- for column in columns_in_relation -%}\n{#-- This needs to be a case-insensitive comparison --#}\n{%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n{%- endfor -%}\n{%- endif -%}\n\n{%- if not column_name_to_data_types -%}\n {{ exceptions.raise_compiler_error(\"Not able to get columns for unit test '\" ~ model.name ~ \"' from relation \" ~ this ~ \" because the relation doesn't exist\") }}\n{%- endif -%}\n\n{%- for column_name, column_type in column_name_to_data_types.items() -%}\n {%- do default_row.update({column_name: (safe_cast(\"null\", column_type) | trim )}) -%}\n{%- endfor -%}\n\n{{ validate_fixture_rows(rows, row_number) }}\n\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\n{%- set default_row_copy = default_row.copy() -%}\n{%- do default_row_copy.update(formatted_row) -%}\nselect\n{%- for column_name, column_value in default_row_copy.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n\n{%- if (rows | length) == 0 -%}\n select\n {%- for column_name, column_value in default_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%},{%- endif %}\n {%- endfor %}\n limit 0\n{%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.safe_cast", "macro.dbt.validate_fixture_rows", "macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.614039, "supported_languages": null}, "macro.dbt.get_expected_sql": {"name": "get_expected_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_expected_sql", "macro_sql": "{% macro get_expected_sql(rows, column_name_to_data_types) %}\n\n{%- if (rows | length) == 0 -%}\n select * from dbt_internal_unit_test_actual\n limit 0\n{%- else -%}\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\nselect\n{%- for column_name, column_value in formatted_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.615138, "supported_languages": null}, "macro.dbt.format_row": {"name": "format_row", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.format_row", "macro_sql": "\n\n{%- macro format_row(row, column_name_to_data_types) -%}\n {#-- generate case-insensitive formatted row --#}\n {% set formatted_row = {} %}\n {%- for column_name, column_value in row.items() -%}\n {% set column_name = column_name|lower %}\n\n {%- if column_name not in column_name_to_data_types %}\n {#-- if user-provided row contains column name that relation does not contain, raise an error --#}\n {% set fixture_name = \"expected output\" if model.resource_type == 'unit_test' else (\"'\" ~ model.name ~ \"'\") %}\n {{ exceptions.raise_compiler_error(\n \"Invalid column name: '\" ~ column_name ~ \"' in unit test fixture for \" ~ fixture_name ~ \".\"\n \"\\nAccepted columns for \" ~ fixture_name ~ \" are: \" ~ (column_name_to_data_types.keys()|list)\n ) }}\n {%- endif -%}\n\n {%- set column_type = column_name_to_data_types[column_name] %}\n\n {#-- sanitize column_value: wrap yaml strings in quotes, apply cast --#}\n {%- set column_value_clean = column_value -%}\n {%- if column_value is string -%}\n {%- set column_value_clean = dbt.string_literal(dbt.escape_single_quotes(column_value)) -%}\n {%- elif column_value is none -%}\n {%- set column_value_clean = 'null' -%}\n {%- endif -%}\n\n {%- set row_update = {column_name: safe_cast(column_value_clean, column_type) } -%}\n {%- do formatted_row.update(row_update) -%}\n {%- endfor -%}\n {{ return(formatted_row) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.string_literal", "macro.dbt.escape_single_quotes", "macro.dbt.safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6172926, "supported_languages": null}, "macro.dbt.validate_fixture_rows": {"name": "validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.validate_fixture_rows", "macro_sql": "{%- macro validate_fixture_rows(rows, row_number) -%}\n {{ return(adapter.dispatch('validate_fixture_rows', 'dbt')(rows, row_number)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__validate_fixture_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6177075, "supported_languages": null}, "macro.dbt.default__validate_fixture_rows": {"name": "default__validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.default__validate_fixture_rows", "macro_sql": "{%- macro default__validate_fixture_rows(rows, row_number) -%}\n {# This is an abstract method for adapter overrides as needed #}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.617904, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6192908, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.619596, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n\n {#\n We want to get the string of the returned relation by calling .render() in order to skip sample/empty\n mode rendering logic. However, people override the default ref macro, and often return a string instead\n of a relation (like the ref macro does by default). Thus, to make sure we dont blow things up, we have\n to ensure the resolved relation has a .render() method.\n #}\n {%- if resolved.render is defined and resolved.render is callable -%}\n {%- set resolved = resolved.render() -%}\n {%- endif -%}\n\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6214788, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6223118, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6234288, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6243582, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.624514, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6259382, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6283736, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.629801, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6302707, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.632749, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6338406, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.634433, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6351593, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.635672, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6365123, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.637032, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6376119, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6383321, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6390755, "supported_languages": null}, "macro.dbt.equals": {"name": "equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.equals", "macro_sql": "{% macro equals(expr1, expr2) %}\n {{ return(adapter.dispatch('equals', 'dbt') (expr1, expr2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6396794, "supported_languages": null}, "macro.dbt.default__equals": {"name": "default__equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.default__equals", "macro_sql": "{% macro default__equals(expr1, expr2) -%}\n{%- if adapter.behavior.enable_truthy_nulls_equals_macro.no_warn %}\n case when (({{ expr1 }} = {{ expr2 }}) or ({{ expr1 }} is null and {{ expr2 }} is null))\n then 0\n else 1\n end = 0\n{%- else -%}\n ({{ expr1 }} = {{ expr2 }})\n{%- endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6402967, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6408427, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6411357, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.641566, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.641734, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.64224, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6424527, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6433368, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6438143, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.644521, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6448483, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6453032, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.645775, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6459897, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6464345, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6465933, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6475165, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6486616, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6491187, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6498039, "supported_languages": null}, "macro.dbt.cast": {"name": "cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.cast", "macro_sql": "{% macro cast(field, type) %}\n {{ return(adapter.dispatch('cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6503456, "supported_languages": null}, "macro.dbt.default__cast": {"name": "default__cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.default__cast", "macro_sql": "{% macro default__cast(field, type) %}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6506062, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6514223, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6522493, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6526153, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6537936, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6543741, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6546347, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6551197, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.655336, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6558185, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.656158, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.65742, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6577463, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6580856, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6583936, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6587114, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6590123, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6593618, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.659719, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6600385, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.660353, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6606684, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6611004, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6614208, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6617062, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6622047, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6624544, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6629612, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.663247, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.663756, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.664033, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6645167, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.664732, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.66557, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6663833, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6669238, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6672184, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6678174, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6681724, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6687903, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6691546, "supported_languages": null}, "macro.dbt.date": {"name": "date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.date", "macro_sql": "{% macro date(year, month, day) %}\n {{ return(adapter.dispatch('date', 'dbt') (year, month, day)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6697488, "supported_languages": null}, "macro.dbt.default__date": {"name": "default__date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.default__date", "macro_sql": "{% macro default__date(year, month, day) -%}\n {%- set dt = modules.datetime.date(year, month, day) -%}\n {%- set iso_8601_formatted_date = dt.strftime('%Y-%m-%d') -%}\n to_date('{{ iso_8601_formatted_date }}', 'YYYY-MM-DD')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6709785, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6715393, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.671807, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.672344, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6726143, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6732085, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6735303, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.674123, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6746347, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6749253, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6754324, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6757505, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6765876, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation.render() }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.677371, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6777277, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6781373, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6785195, "supported_languages": null}, "macro.dbt.drop_schema_named": {"name": "drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.drop_schema_named", "macro_sql": "{% macro drop_schema_named(schema_name) %}\n {{ return(adapter.dispatch('drop_schema_named', 'dbt') (schema_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_schema_named"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6790154, "supported_languages": null}, "macro.dbt.default__drop_schema_named": {"name": "default__drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.default__drop_schema_named", "macro_sql": "{% macro default__drop_schema_named(schema_name) %}\n {% set schema_relation = api.Relation.create(schema=schema_name) %}\n {{ adapter.drop_schema(schema_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.746064, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7469401, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7478647, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7484982, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7490249, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7499006, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7507744, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7512512, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation.render() }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7518845, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7524931, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.752912, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7535071, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.753927, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.754598, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7551649, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7562084, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation.type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7587423, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{- adapter.dispatch('drop_table', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7592707, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7595305, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7607067, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.761085, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7619216, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7633088, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7642457, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7646194, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7649753, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.76552, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7658212, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7663484, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.766656, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{- adapter.dispatch('drop_materialized_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7671552, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.767418, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7679172, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7682245, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7687335, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7691982, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7701945, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7705646, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7711158, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.771404, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7719698, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7722754, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7727864, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7731006, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{- adapter.dispatch('drop_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7735646, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7738132, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7745416, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7748666, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7752542, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation.render() }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7761314, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7766385, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7769263, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.777878, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7781885, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.780483, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7808948, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation.render() ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7813702, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7827506, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7829897, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7840178, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7843673, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7846413, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7871046, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.787851, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7885177, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7893724, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7898471, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7904458, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7909968, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7918005, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7933977, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.793938, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7944584, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.795094, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.795371, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7956393, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7959108, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.79742, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7981653, "supported_languages": null}, "macro.dbt_utils.redshift__get_tables_by_pattern_sql": {"name": "redshift__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.redshift__get_tables_by_pattern_sql", "macro_sql": "{% macro redshift__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% set sql %}\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from \"{{ database }}\".\"information_schema\".\"tables\"\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n union all\n select distinct\n schemaname as {{ adapter.quote('table_schema') }},\n tablename as {{ adapter.quote('table_name') }},\n 'external' as {{ adapter.quote('table_type') }}\n from svv_external_tables\n where redshift_database_name = '{{ database }}'\n and schemaname ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n {% endset %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7994843, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.800885, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8018713, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8025448, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.803614, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8043468, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.804899, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.805445, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.805712, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8066137, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8079433, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8084106, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8091033, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8099086, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8107107, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8111157, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8122375, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8128803, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8139436, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, quote_identifiers)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8154302, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n {%- set current_col_name = adapter.quote(col.column) if quote_identifiers else col.column -%}\n select\n {%- for exclude_col in exclude %}\n {{ adapter.quote(exclude_col) if quote_identifiers else exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ adapter.quote(field_name) if quote_identifiers else field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(current_col_name) }}\n {% else %}\n {{ current_col_name }}\n {% endif %}\n as {{ cast_to }}) as {{ adapter.quote(value_name) if quote_identifiers else value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8191946, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8201768, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8217604, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.822622, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8231747, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.824241, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8257945, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8268824, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8273265, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }} as tt\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8276656, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.82806, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8283992, "supported_languages": null}, "macro.dbt_utils.databricks__deduplicate": {"name": "databricks__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.databricks__deduplicate", "macro_sql": "\n{%- macro databricks__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8287315, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8290813, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8297436, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8302186, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8308535, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8321774, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8327696, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8334455, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8349197, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8365607, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8385491, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8453958, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.846379, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8472888, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.847668, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.848449, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8498511, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8504252, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8511124, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.851803, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.853121, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.85404, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8557112, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8570995, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8600023, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8614163, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.86429, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8649065, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8655381, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8661337, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.867016, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8676796, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8689237, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8694363, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8697777, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8703158, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.870694, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8712013, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8715289, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{% if not string %}\n{{ return('') }}\n{% endif %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8729544, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8745387, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8754098, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8763237, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.877257, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8782792, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.880092, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8812191, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8832965, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8840203, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8847504, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8856635, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n {% if group_by_columns|length() == 0 %}\n where {{ column_name }} is not null\n limit 1\n {% endif %}\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.887366, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8884623, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8904154, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns, exclude_columns, precision)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.892624, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n\n{%- if compare_columns and exclude_columns -%}\n {{ exceptions.raise_compiler_error(\"Both a compare and an ignore list were provided to the `equality` macro. Only one is allowed\") }}\n{%- endif -%}\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\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{# Ensure there are no extra columns in the compare_model vs model #}\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- do dbt_utils._is_ephemeral(compare_model, 'test_equality') -%}\n\n {%- set model_columns = adapter.get_columns_in_relation(model) -%}\n {%- set compare_model_columns = adapter.get_columns_in_relation(compare_model) -%}\n\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- set include_model_columns = [] %}\n {%- for column in model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n {%- for column in compare_model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_model_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns_set = set(include_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(include_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- else -%}\n {%- set compare_columns_set = set(model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(compare_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- endif -%}\n\n {% if compare_columns_set != compare_model_columns_set %}\n {{ exceptions.raise_compiler_error(compare_model ~\" has less columns than \" ~ model ~ \", please ensure they have the same columns or use the `compare_columns` or `exclude_columns` arguments to subset them.\") }}\n {% endif %}\n\n\n{% endif %}\n\n{%- if not precision -%}\n {%- if not compare_columns -%}\n {# \n You cannot get the columns in an ephemeral model (due to not existing in the information schema),\n so if the user does not provide an explicit list of columns we must error in the case it is ephemeral\n #}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model)-%}\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- for column in compare_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns = include_columns | map(attribute='quoted') %}\n {%- else -%} {# Compare columns provided #}\n {%- set compare_columns = compare_columns | map(attribute='quoted') %}\n {%- endif -%}\n {%- endif -%}\n\n {% set compare_cols_csv = compare_columns | join(', ') %}\n\n{% else %} {# Precision required #}\n {#-\n If rounding is required, we need to get the types, so it cannot be ephemeral even if they provide column names\n -#}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set columns = adapter.get_columns_in_relation(model) -%}\n\n {% set columns_list = [] %}\n {%- for col in columns -%}\n {%- if (\n (col.name|lower in compare_columns|map('lower') or not compare_columns) and\n (col.name|lower not in exclude_columns|map('lower') or not exclude_columns)\n ) -%}\n {# Databricks double type is not picked up by any number type checks in dbt #}\n {%- if col.is_float() or col.is_numeric() or col.data_type == 'double' -%}\n {# Cast is required due to postgres not having round for a double precision number #}\n {%- do columns_list.append('round(cast(' ~ col.quoted ~ ' as ' ~ dbt.type_numeric() ~ '),' ~ precision ~ ') as ' ~ col.quoted) -%}\n {%- else -%} {# Non-numeric type #}\n {%- do columns_list.append(col.quoted) -%}\n {%- endif -%}\n {% endif %}\n {%- endfor -%}\n\n {% set compare_cols_csv = columns_list | join(', ') %}\n\n{% endif %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_numeric", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9003015, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9019, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9047825, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.905652, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as {{ dbt.type_numeric() }}) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9073195, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9082518, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.908908, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9097147, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9109683, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9117496, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9125025, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9132147, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9137971, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9147847, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9170334, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9177976, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9184651, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.919224, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9201126, "supported_languages": null}, "macro.shopify.shopify_lookback": {"name": "shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.shopify_lookback", "macro_sql": "{% macro shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n{{ adapter.dispatch('shopify_lookback', 'shopify') (from_date, datepart, interval, safety_date='2010-01-01') }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_lookback"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9208667, "supported_languages": null}, "macro.shopify.default__shopify_lookback": {"name": "default__shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.default__shopify_lookback", "macro_sql": "{% macro default__shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n {% set sql_statement %}\n select coalesce({{ from_date }}, {{ \"'\" ~ safety_date ~ \"'\" }})\n from {{ this }}\n {%- endset -%}\n\n {%- set result = dbt_utils.get_single_value(sql_statement) %}\n\n {{ dbt.dateadd(datepart=datepart, interval=-interval, from_date_or_timestamp=\"cast('\" ~ result ~ \"' as date)\") }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_single_value", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9217234, "supported_languages": null}, "macro.shopify.shopify_is_databricks_sql_warehouse": {"name": "shopify_is_databricks_sql_warehouse", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_is_databricks_sql_warehouse.sql", "original_file_path": "macros/shopify_is_databricks_sql_warehouse.sql", "unique_id": "macro.shopify.shopify_is_databricks_sql_warehouse", "macro_sql": "{% macro shopify_is_databricks_sql_warehouse() %}\n {% if target.type in ('databricks') %}\n {% set re = modules.re %}\n {% set path_match = target.http_path %}\n {% set regex_pattern = \"sql/.+/warehouses/\" %}\n {% set match_result = re.search(regex_pattern, path_match) %}\n {% if match_result %}\n {{ return(True) }}\n {% else %}\n {{ return(False) }}\n {% endif %}\n {% else %}\n {{ return(False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.923086, "supported_languages": null}, "macro.shopify.shopify_partition_by_cols": {"name": "shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.shopify_partition_by_cols", "macro_sql": "{% macro shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n\n{{ adapter.dispatch('shopify_partition_by_cols', 'shopify') (base_col, source_relation) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_partition_by_cols"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9237125, "supported_languages": null}, "macro.shopify.default__shopify_partition_by_cols": {"name": "default__shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.default__shopify_partition_by_cols", "macro_sql": "{% macro default__shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n {%- if var('shopify_union_schemas', false) or var('shopify_union_databases', false) -%}\n {{ base_col }}, {{ source_relation }}\n {%- else %}\n {{ base_col }}\n {%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9243107, "supported_languages": null}, "macro.shopify.get_metafields": {"name": "get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.get_metafields", "macro_sql": "{% macro get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n {{ return(adapter.dispatch('get_metafields', 'shopify')(source_object, reference_values, id_column, lookup_object, key_field, key_value, reference_field)) }} \n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__get_metafields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9256558, "supported_languages": null}, "macro.shopify.default__get_metafields": {"name": "default__get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.default__get_metafields", "macro_sql": "{% macro default__get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n\n{# Manually quote and join reference values #}\n{% set quoted_values = [] %}\n{% for value in reference_values %}\n {% do quoted_values.append(\"'\" ~ value | lower | trim ~ \"'\") %}\n{% endfor %}\n{% set reference_values_clause = quoted_values | join(\", \") %}\n\n{# Get the pivot fields dynamically based on the reference values #}\n{% set pivot_fields = dbt_utils.get_column_values(\n table=ref(lookup_object),\n column=key_field,\n where=\"lower(\" ~ reference_field ~ \") in (\" ~ reference_values_clause ~ \")\"\n) %}\n\n{% set source_columns = adapter.get_columns_in_relation(ref(source_object)) %}\n{% set source_column_count = source_columns | length %}\n\nwith source_table as (\n select *\n from {{ ref(source_object) }}\n)\n\n{% if pivot_fields is not none %},\nlookup_object as (\n select \n *,\n {{ dbt_utils.pivot(\n column=key_field, \n values=pivot_fields, \n agg='', \n then_value=key_value, \n else_value=\"null\",\n quote_identifiers=false\n ) \n }}\n from {{ ref(lookup_object) }}\n where is_most_recent_record\n),\n\nfinal as (\n select\n {% for column in source_columns %}\n source_table.{{ column.name }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% for fields in pivot_fields %}\n , max(lookup_object.{{ dbt_utils.slugify(fields) }}) as metafield_{{ dbt_utils.slugify(fields) }}\n {% endfor %}\n from source_table\n left join lookup_object \n on lookup_object.{{ reference_field }}_id = source_table.{{ id_column }}\n and lower(lookup_object.{{ reference_field }}) in ({{ reference_values_clause }})\n {{ dbt_utils.group_by(source_column_count) }}\n)\n\nselect *\nfrom final\n{% else %}\n\nselect *\nfrom source_table\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_column_values", "macro.dbt_utils.pivot", "macro.dbt_utils.slugify", "macro.dbt_utils.group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9288368, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9303372, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9324958, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9411364, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9437833, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9446657, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9454665, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.946829, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9471788, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9475057, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9478126, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.951142, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9523706, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9530976, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.953615, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.953829, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9540613, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9542787, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9551241, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9554846, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.955815, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.956204, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9565353, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9568748, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.957386, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9576023, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9578238, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9591784, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.960135, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9604268, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9611657, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9617221, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9619844, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9622602, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.962514, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9627693, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9635181, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.965556, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.966656, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.967629, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9679792, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9695833, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9707437, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.971253, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9717474, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9722404, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9727108, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9732544, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9739518, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.974434, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9751852, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9763248, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9772458, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.979601, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9804106, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.980726, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9810379, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9814048, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9817085, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.982008, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9825428, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9833257, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.983662, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9839878, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.984329, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9846494, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9849916, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9871182, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9876227, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9878364, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9880667, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9935331, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.994392, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9951644, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.995772, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9959989, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.996252, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9964697, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9966838, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9975166, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.999479, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0006466, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0012403, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.001551, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0019383, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.002578, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0028446, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.003126, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0033898, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0036626, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0044048, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0049481, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0054057, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0064743, "supported_languages": null}, "macro.spark_utils.get_tables": {"name": "get_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_tables", "macro_sql": "{% macro get_tables(table_regex_pattern='.*') %}\n\n {% set tables = [] %}\n {% for database in spark__list_schemas('not_used') %}\n {% for table in spark__list_relations_without_caching(database[0]) %}\n {% set db_tablename = database[0] ~ \".\" ~ table[1] %}\n {% set is_match = modules.re.match(table_regex_pattern, db_tablename) %}\n {% if is_match %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('type', 'TYPE', 'Type'))|first %}\n {% if table_type[1]|lower != 'view' %}\n {{ tables.append(db_tablename) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n {{ return(tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.009846, "supported_languages": null}, "macro.spark_utils.get_delta_tables": {"name": "get_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_delta_tables", "macro_sql": "{% macro get_delta_tables(table_regex_pattern='.*') %}\n\n {% set delta_tables = [] %}\n {% for db_tablename in get_tables(table_regex_pattern) %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('provider', 'PROVIDER', 'Provider'))|first %}\n {% if table_type[1]|lower == 'delta' %}\n {{ delta_tables.append(db_tablename) }}\n {% endif %}\n {% endfor %}\n {{ return(delta_tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.011239, "supported_languages": null}, "macro.spark_utils.get_statistic_columns": {"name": "get_statistic_columns", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_statistic_columns", "macro_sql": "{% macro get_statistic_columns(table) %}\n\n {% call statement('input_columns', fetch_result=True) %}\n SHOW COLUMNS IN {{ table }}\n {% endcall %}\n {% set input_columns = load_result('input_columns').table %}\n\n {% set output_columns = [] %}\n {% for column in input_columns %}\n {% call statement('column_information', fetch_result=True) %}\n DESCRIBE TABLE {{ table }} `{{ column[0] }}`\n {% endcall %}\n {% if not load_result('column_information').table[1][1].startswith('struct') and not load_result('column_information').table[1][1].startswith('array') %}\n {{ output_columns.append('`' ~ column[0] ~ '`') }}\n {% endif %}\n {% endfor %}\n {{ return(output_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0128775, "supported_languages": null}, "macro.spark_utils.spark_optimize_delta_tables": {"name": "spark_optimize_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_optimize_delta_tables", "macro_sql": "{% macro spark_optimize_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Optimizing \" ~ table) }}\n {% do run_query(\"optimize \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0143032, "supported_languages": null}, "macro.spark_utils.spark_vacuum_delta_tables": {"name": "spark_vacuum_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "macro_sql": "{% macro spark_vacuum_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Vacuuming \" ~ table) }}\n {% do run_query(\"vacuum \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0156834, "supported_languages": null}, "macro.spark_utils.spark_analyze_tables": {"name": "spark_analyze_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_analyze_tables", "macro_sql": "{% macro spark_analyze_tables(table_regex_pattern='.*') %}\n\n {% for table in get_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set columns = get_statistic_columns(table) | join(',') %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Analyzing \" ~ table) }}\n {% if columns != '' %}\n {% do run_query(\"analyze table \" ~ table ~ \" compute statistics for columns \" ~ columns) %}\n {% endif %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.spark_utils.get_statistic_columns", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0174227, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_pattern": {"name": "spark__get_relations_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "macro_sql": "{% macro spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n show table extended in {{ schema_pattern }} like '{{ table_pattern }}'\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=None,\n schema=row[0],\n identifier=row[1],\n type=('view' if 'Type: VIEW' in row[3] else 'table')\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0197246, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_prefix": {"name": "spark__get_relations_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "macro_sql": "{% macro spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {% set table_pattern = table_pattern ~ '*' %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0203981, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_pattern": {"name": "spark__get_tables_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "macro_sql": "{% macro spark__get_tables_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0209608, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_prefix": {"name": "spark__get_tables_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "macro_sql": "{% macro spark__get_tables_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0215373, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp": {"name": "spark__current_timestamp", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0218227, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp_in_utc": {"name": "spark__current_timestamp_in_utc", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0219913, "supported_languages": null}, "macro.spark_utils.spark__split_part": {"name": "spark__split_part", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "unique_id": "macro.spark_utils.spark__split_part", "macro_sql": "{% macro spark__split_part(string_text, delimiter_text, part_number) %}\n\n {% set delimiter_expr %}\n \n -- escape if starts with a special character\n case when regexp_extract({{ delimiter_text }}, '([^A-Za-z0-9])(.*)', 1) != '_'\n then concat('\\\\', {{ delimiter_text }})\n else {{ delimiter_text }} end\n \n {% endset %}\n\n {% set split_part_expr %}\n \n split(\n {{ string_text }},\n {{ delimiter_expr }}\n )[({{ part_number - 1 }})]\n \n {% endset %}\n \n {{ return(split_part_expr) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0229383, "supported_languages": null}, "macro.spark_utils.spark__type_numeric": {"name": "spark__type_numeric", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "unique_id": "macro.spark_utils.spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0231857, "supported_languages": null}, "macro.spark_utils.spark__concat": {"name": "spark__concat", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "unique_id": "macro.spark_utils.spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0235226, "supported_languages": null}, "macro.spark_utils.spark__datediff": {"name": "spark__datediff", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "unique_id": "macro.spark_utils.spark__datediff", "macro_sql": "{% macro spark__datediff(first_date, second_date, datepart) %}\n\n {%- if datepart in ['day', 'week', 'month', 'quarter', 'year'] -%}\n \n {# make sure the dates are real, otherwise raise an error asap #}\n {% set first_date = spark_utils.assert_not_null('date', first_date) %}\n {% set second_date = spark_utils.assert_not_null('date', second_date) %}\n \n {%- endif -%}\n \n {%- if datepart == 'day' -%}\n \n datediff({{second_date}}, {{first_date}})\n \n {%- elif datepart == 'week' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(datediff({{second_date}}, {{first_date}})/7)\n else ceil(datediff({{second_date}}, {{first_date}})/7)\n end\n \n -- did we cross a week boundary (Sunday)?\n + case\n when {{first_date}} < {{second_date}} and dayofweek({{second_date}}) < dayofweek({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofweek({{second_date}}) > dayofweek({{first_date}}) then -1\n else 0 end\n\n {%- elif datepart == 'month' -%}\n\n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}})))\n else ceil(months_between(date({{second_date}}), date({{first_date}})))\n end\n \n -- did we cross a month boundary?\n + case\n when {{first_date}} < {{second_date}} and dayofmonth({{second_date}}) < dayofmonth({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofmonth({{second_date}}) > dayofmonth({{first_date}}) then -1\n else 0 end\n \n {%- elif datepart == 'quarter' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}}))/3)\n else ceil(months_between(date({{second_date}}), date({{first_date}}))/3)\n end\n \n -- did we cross a quarter boundary?\n + case\n when {{first_date}} < {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n < (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then 1\n when {{first_date}} > {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n > (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then -1\n else 0 end\n\n {%- elif datepart == 'year' -%}\n \n year({{second_date}}) - year({{first_date}})\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set divisor -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n case when {{first_date}} < {{second_date}}\n then ceil((\n {# make sure the timestamps are real, otherwise raise an error asap #}\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n else floor((\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n end\n \n {% if datepart == 'millisecond' %}\n + cast(date_format({{second_date}}, 'SSS') as int)\n - cast(date_format({{first_date}}, 'SSS') as int)\n {% endif %}\n \n {% if datepart == 'microsecond' %} \n {% set capture_str = '[0-9]{4}-[0-9]{2}-[0-9]{2}.[0-9]{2}:[0-9]{2}:[0-9]{2}.([0-9]{6})' %}\n -- Spark doesn't really support microseconds, so this is a massive hack!\n -- It will only work if the timestamp-string is of the format\n -- 'yyyy-MM-dd-HH mm.ss.SSSSSS'\n + cast(regexp_extract({{second_date}}, '{{capture_str}}', 1) as int)\n - cast(regexp_extract({{first_date}}, '{{capture_str}}', 1) as int) \n {% endif %}\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro datediff not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.030433, "supported_languages": null}, "macro.spark_utils.spark__dateadd": {"name": "spark__dateadd", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "unique_id": "macro.spark_utils.spark__dateadd", "macro_sql": "{% macro spark__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {%- set clock_component -%}\n {# make sure the dates + timestamps are real, otherwise raise an error asap #}\n to_unix_timestamp({{ spark_utils.assert_not_null('to_timestamp', from_date_or_timestamp) }})\n - to_unix_timestamp({{ spark_utils.assert_not_null('date', from_date_or_timestamp) }})\n {%- endset -%}\n\n {%- if datepart in ['day', 'week'] -%}\n \n {%- set multiplier = 7 if datepart == 'week' else 1 -%}\n\n to_timestamp(\n to_unix_timestamp(\n date_add(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ['month', 'quarter', 'year'] -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'month' -%} 1\n {%- elif datepart == 'quarter' -%} 3\n {%- elif datepart == 'year' -%} 12\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n to_unix_timestamp(\n add_months(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n {{ spark_utils.assert_not_null('to_unix_timestamp', from_date_or_timestamp) }}\n + cast({{interval}} * {{multiplier}} as int)\n )\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro dateadd not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0342095, "supported_languages": null}, "macro.spark_utils.assert_not_null": {"name": "assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0348537, "supported_languages": null}, "macro.spark_utils.default__assert_not_null": {"name": "default__assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.default__assert_not_null", "macro_sql": "{% macro default__assert_not_null(function, arg) %}\n\n coalesce({{function}}({{arg}}), nvl2({{function}}({{arg}}), assert_true({{function}}({{arg}}) is not null), null))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0352829, "supported_languages": null}, "macro.spark_utils.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "unique_id": "macro.spark_utils.spark__convert_timezone", "macro_sql": "{% macro spark__convert_timezone(in_tz, out_tz, in_timestamp) %}\n from_utc_timestamp(to_utc_timestamp({{in_timestamp}}, {{in_tz}}), {{out_tz}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0356977, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_shipping_line_columns": {"name": "get_abandoned_checkout_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "original_file_path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro_sql": "{% macro get_abandoned_checkout_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range_max\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_range_min\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0390017, "supported_languages": null}, "macro.shopify_source.get_tender_transaction_columns": {"name": "get_tender_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tender_transaction_columns.sql", "original_file_path": "macros/get_tender_transaction_columns.sql", "unique_id": "macro.shopify_source.get_tender_transaction_columns", "macro_sql": "{% macro get_tender_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"remote_reference\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0414026, "supported_languages": null}, "macro.shopify_source.get_graphql_tender_transaction_columns": {"name": "get_graphql_tender_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tender_transaction_columns.sql", "original_file_path": "macros/get_tender_transaction_columns.sql", "unique_id": "macro.shopify_source.get_graphql_tender_transaction_columns", "macro_sql": "{% macro get_graphql_tender_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"remote_reference\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0432904, "supported_languages": null}, "macro.shopify_source.get_fulfillment_event_columns": {"name": "get_fulfillment_event_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_event_columns.sql", "original_file_path": "macros/get_fulfillment_event_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_event_columns", "macro_sql": "{% macro get_fulfillment_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"estimated_delivery_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"happened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shop_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.047469, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_event_columns": {"name": "get_graphql_fulfillment_event_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_event_columns.sql", "original_file_path": "macros/get_fulfillment_event_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_event_columns", "macro_sql": "{% macro get_graphql_fulfillment_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"estimated_delivery_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"happened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0503213, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_rule_columns": {"name": "get_graphql_collection_rule_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_rule_columns.sql", "original_file_path": "macros/get_collection_rule_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_rule_columns", "macro_sql": "{% macro get_graphql_collection_rule_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"condition\", \"datatype\": dbt.type_string()},\n {\"name\": \"relation\", \"datatype\": dbt.type_string()},\n {\"name\": \"columns\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0518134, "supported_languages": null}, "macro.shopify_source.get_product_media_columns": {"name": "get_product_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_media_columns.sql", "original_file_path": "macros/get_product_media_columns.sql", "unique_id": "macro.shopify_source.get_product_media_columns", "macro_sql": "{% macro get_product_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0526965, "supported_languages": null}, "macro.shopify_source.get_graphql_product_media_columns": {"name": "get_graphql_product_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_media_columns.sql", "original_file_path": "macros/get_product_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_media_columns", "macro_sql": "{% macro get_graphql_product_media_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.053491, "supported_languages": null}, "macro.shopify_source.get_order_columns": {"name": "get_order_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "unique_id": "macro.shopify_source.get_order_columns", "macro_sql": "{% macro get_order_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tip_received\", \"datatype\": dbt.type_float()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cancel_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancelled_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"financial_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"browser_ip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_shipping_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"app_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"client_details_user_agent\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_status_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"confirmed\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.06967, "supported_languages": null}, "macro.shopify_source.get_graphql_order_columns": {"name": "get_graphql_order_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_columns", "macro_sql": "{% macro get_graphql_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"app_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancel_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancelled_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"client_ip\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"confirmed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_financial_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"presentment_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status_page_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_discounts_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discounts_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_shipping_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_shipping_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_shipping_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_shipping_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tip_received_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tip_received_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tip_received_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tip_received_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0828354, "supported_languages": null}, "macro.shopify_source.get_discount_code_free_shipping_columns": {"name": "get_discount_code_free_shipping_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_free_shipping_columns.sql", "original_file_path": "macros/get_discount_code_free_shipping_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_free_shipping_columns", "macro_sql": "{% macro get_discount_code_free_shipping_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0872588, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_free_shipping_columns": {"name": "get_graphql_discount_code_free_shipping_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_free_shipping_columns.sql", "original_file_path": "macros/get_discount_code_free_shipping_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_free_shipping_columns", "macro_sql": "{% macro get_graphql_discount_code_free_shipping_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0906036, "supported_languages": null}, "macro.shopify_source.json_to_string": {"name": "json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.json_to_string", "macro_sql": "{%- macro json_to_string(column, column_list) -%}\n {{ return(adapter.dispatch('json_to_string', 'shopify_source')(column, column_list)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__json_to_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0914204, "supported_languages": null}, "macro.shopify_source.default__json_to_string": {"name": "default__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.default__json_to_string", "macro_sql": "{%- macro default__json_to_string(column, column_list) -%}\n {{ column }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0916557, "supported_languages": null}, "macro.shopify_source.bigquery__json_to_string": {"name": "bigquery__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.bigquery__json_to_string", "macro_sql": "{%- macro bigquery__json_to_string(column, column_list) -%}\n {%- set columns = column_list -%}\n {%- set ns = namespace(column_type='string') -%}\n\n {%- for col in columns -%}\n {%- if col.name|lower == column|lower -%}\n {%- set ns.column_type = col.dtype|lower -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- if ns.column_type == 'json' -%}\n to_json_string({{ column }})\n {%- else -%}\n {{ column }}\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0926478, "supported_languages": null}, "macro.shopify_source.get_product_columns": {"name": "get_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_columns.sql", "original_file_path": "macros/get_product_columns.sql", "unique_id": "macro.shopify_source.get_product_columns", "macro_sql": "{% macro get_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0955799, "supported_languages": null}, "macro.shopify_source.get_graphql_product_columns": {"name": "get_graphql_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_columns.sql", "original_file_path": "macros/get_product_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_columns", "macro_sql": "{% macro get_graphql_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.09772, "supported_languages": null}, "macro.shopify_source.get_collection_columns": {"name": "get_collection_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_columns.sql", "original_file_path": "macros/get_collection_columns.sql", "unique_id": "macro.shopify_source.get_collection_columns", "macro_sql": "{% macro get_collection_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"disjunctive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"rules\", \"datatype\": dbt.type_string()},\n {\"name\": \"sort_order\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1002073, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_columns": {"name": "get_graphql_collection_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_columns.sql", "original_file_path": "macros/get_collection_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_columns", "macro_sql": "{% macro get_graphql_collection_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"applied_disjunctively\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"sort_order\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1017268, "supported_languages": null}, "macro.shopify_source.get_customer_tag_columns": {"name": "get_customer_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_tag_columns.sql", "original_file_path": "macros/get_customer_tag_columns.sql", "unique_id": "macro.shopify_source.get_customer_tag_columns", "macro_sql": "{% macro get_customer_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1029592, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_tag_columns": {"name": "get_graphql_customer_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_tag_columns.sql", "original_file_path": "macros/get_customer_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_tag_columns", "macro_sql": "{% macro get_graphql_customer_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1038826, "supported_languages": null}, "macro.shopify_source.get_shop_columns": {"name": "get_shop_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_shop_columns.sql", "original_file_path": "macros/get_shop_columns.sql", "unique_id": "macro.shopify_source.get_shop_columns", "macro_sql": "{% macro get_shop_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_api_supported\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"cookie_consent_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"county_taxes\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_card_reader_giveaway\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"eligible_for_payments\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"enabled_presentment_currencies\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_login_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_gift_cards\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_storefront\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"iana_timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"money_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"myshopify_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"password_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"pre_launch_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"primary_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_extra_payments_agreement\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"setup_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"shop_owner\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1139474, "supported_languages": null}, "macro.shopify_source.get_graphql_shop_columns": {"name": "get_graphql_shop_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_shop_columns.sql", "original_file_path": "macros/get_shop_columns.sql", "unique_id": "macro.shopify_source.get_graphql_shop_columns", "macro_sql": "{% macro get_graphql_shop_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code_v_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_api_supported\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"contact_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_with_currency_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_with_currency_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"enabled_presentment_currencies\", \"datatype\": dbt.type_string()},\n {\"name\": \"features_storefront\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"iana_timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"myshopify_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"password_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"plan_display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_domain_host\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_domain_localization_default_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"setup_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"shop_owner_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"timezone_abbreviation\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_offset\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_offset_minutes\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.120492, "supported_languages": null}, "macro.shopify_source.get_order_url_tag_columns": {"name": "get_order_url_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_url_tag_columns.sql", "original_file_path": "macros/get_order_url_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_url_tag_columns", "macro_sql": "{% macro get_order_url_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1217515, "supported_languages": null}, "macro.shopify_source.get_order_shipping_line_columns": {"name": "get_order_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_line_columns.sql", "original_file_path": "macros/get_order_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_line_columns", "macro_sql": "{% macro get_order_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1250134, "supported_languages": null}, "macro.shopify_source.get_graphql_order_shipping_line_columns": {"name": "get_graphql_order_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_line_columns.sql", "original_file_path": "macros/get_order_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_shipping_line_columns", "macro_sql": "{% macro get_graphql_order_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"original_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"original_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1280203, "supported_languages": null}, "macro.shopify_source.get_customer_columns": {"name": "get_customer_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "unique_id": "macro.shopify_source.get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_address_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"orders_count\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_spent\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"verified_email\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email_marketing_consent_consent_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_marketing_consent_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepts_marketing_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"marketing_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customer_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1327667, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_columns": {"name": "get_graphql_customer_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_columns", "macro_sql": "{% macro get_graphql_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"orders_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_spent\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"verified_email\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customer_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1360316, "supported_languages": null}, "macro.shopify_source.shopify_union_data": {"name": "shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.shopify_union_data", "macro_sql": "{%- macro shopify_union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases', shopify_model_api='rest') -%}\n\n{{ adapter.dispatch('shopify_union_data', 'shopify_source') (\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 shopify_model_api\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__shopify_union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.138487, "supported_languages": null}, "macro.shopify_source.default__shopify_union_data": {"name": "default__shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.default__shopify_union_data", "macro_sql": "{%- macro default__shopify_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 shopify_model_api\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + ('_gql_' if shopify_model_api == 'graphql' else '_') + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema ~ ('_graphql' if shopify_model_api == 'graphql' else ''), table_identifier).database,\n schema=source(default_schema ~ ('_graphql' if shopify_model_api == 'graphql' else ''), table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1478643, "supported_languages": null}, "macro.shopify_source.get_transaction_columns": {"name": "get_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_transaction_columns.sql", "original_file_path": "macros/get_transaction_columns.sql", "unique_id": "macro.shopify_source.get_transaction_columns", "macro_sql": "{% macro get_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"payment_avs_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_bin\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_cvv_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"receipt\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_exchange_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_adjustment\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_original_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_final_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"error_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"authorization_expires_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{% if target.type in ('redshift','postgres') %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"quote\": True, \"alias\": \"authorization_code\"}) }}\n{% else %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"alias\": \"authorization_code\"}) }}\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1553924, "supported_languages": null}, "macro.shopify_source.get_graphql_transaction_columns": {"name": "get_graphql_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_transaction_columns.sql", "original_file_path": "macros/get_transaction_columns.sql", "unique_id": "macro.shopify_source.get_graphql_transaction_columns", "macro_sql": "{% macro get_graphql_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"authorization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"authorization_expires_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"error_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_avs_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_bin\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_cvv_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"receipt_json\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_exchange_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_adjustment\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_original_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_final_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_currency\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1607518, "supported_languages": null}, "macro.shopify_source.get_location_columns": {"name": "get_location_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_location_columns.sql", "original_file_path": "macros/get_location_columns.sql", "unique_id": "macro.shopify_source.get_location_columns", "macro_sql": "{% macro get_location_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"legacy\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"localized_country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"localized_province_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1649983, "supported_languages": null}, "macro.shopify_source.get_graphql_location_columns": {"name": "get_graphql_location_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_location_columns.sql", "original_file_path": "macros/get_location_columns.sql", "unique_id": "macro.shopify_source.get_graphql_location_columns", "macro_sql": "{% macro get_graphql_location_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"is_fulfillment_service\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.167987, "supported_languages": null}, "macro.shopify_source.get_discount_code_app_columns": {"name": "get_discount_code_app_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_app_columns.sql", "original_file_path": "macros/get_discount_code_app_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_app_columns", "macro_sql": "{% macro get_discount_code_app_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1723008, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_app_columns": {"name": "get_graphql_discount_code_app_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_app_columns.sql", "original_file_path": "macros/get_discount_code_app_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_app_columns", "macro_sql": "{% macro get_graphql_discount_code_app_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1757002, "supported_languages": null}, "macro.shopify_source.get_order_adjustment_columns": {"name": "get_order_adjustment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_adjustment_columns.sql", "original_file_path": "macros/get_order_adjustment_columns.sql", "unique_id": "macro.shopify_source.get_order_adjustment_columns", "macro_sql": "{% macro get_order_adjustment_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1781678, "supported_languages": null}, "macro.shopify_source.get_graphql_order_adjustment_columns": {"name": "get_graphql_order_adjustment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_adjustment_columns.sql", "original_file_path": "macros/get_order_adjustment_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_adjustment_columns", "macro_sql": "{% macro get_graphql_order_adjustment_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1802754, "supported_languages": null}, "macro.shopify_source.get_discount_allocation_columns": {"name": "get_discount_allocation_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_allocation_columns.sql", "original_file_path": "macros/get_discount_allocation_columns.sql", "unique_id": "macro.shopify_source.get_discount_allocation_columns", "macro_sql": "{% macro get_discount_allocation_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_application_index\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1824193, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_allocation_columns": {"name": "get_graphql_discount_allocation_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_allocation_columns.sql", "original_file_path": "macros/get_discount_allocation_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_allocation_columns", "macro_sql": "{% macro get_graphql_discount_allocation_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocated_amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"allocated_amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"allocated_amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"allocated_amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_application_index\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.183924, "supported_languages": null}, "macro.shopify_source.get_discount_redeem_code_columns": {"name": "get_discount_redeem_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_redeem_code_columns.sql", "original_file_path": "macros/get_discount_redeem_code_columns.sql", "unique_id": "macro.shopify_source.get_discount_redeem_code_columns", "macro_sql": "{% macro get_discount_redeem_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"created_by_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"discount_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1861038, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_redeem_code_columns": {"name": "get_graphql_discount_redeem_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_redeem_code_columns.sql", "original_file_path": "macros/get_discount_redeem_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_redeem_code_columns", "macro_sql": "{% macro get_graphql_discount_redeem_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"created_by_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"discount_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.187747, "supported_languages": null}, "macro.shopify_source.get_order_tag_columns": {"name": "get_order_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_tag_columns.sql", "original_file_path": "macros/get_order_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_tag_columns", "macro_sql": "{% macro get_order_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1890118, "supported_languages": null}, "macro.shopify_source.get_graphql_order_tag_columns": {"name": "get_graphql_order_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_tag_columns.sql", "original_file_path": "macros/get_order_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_tag_columns", "macro_sql": "{% macro get_graphql_order_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1899457, "supported_languages": null}, "macro.shopify_source.get_order_shipping_tax_line_columns": {"name": "get_order_shipping_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_tax_line_columns.sql", "original_file_path": "macros/get_order_shipping_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_tax_line_columns", "macro_sql": "{% macro get_order_shipping_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_shipping_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.191791, "supported_languages": null}, "macro.shopify_source.get_graphql_order_shipping_tax_line_columns": {"name": "get_graphql_order_shipping_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_tax_line_columns.sql", "original_file_path": "macros/get_order_shipping_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_shipping_tax_line_columns", "macro_sql": "{% macro get_graphql_order_shipping_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_shipping_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1937113, "supported_languages": null}, "macro.shopify_source.get_refund_columns": {"name": "get_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_refund_columns.sql", "original_file_path": "macros/get_refund_columns.sql", "unique_id": "macro.shopify_source.get_refund_columns", "macro_sql": "{% macro get_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"restock\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_duties_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1959455, "supported_languages": null}, "macro.shopify_source.get_graphql_refund_columns": {"name": "get_graphql_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_refund_columns.sql", "original_file_path": "macros/get_refund_columns.sql", "unique_id": "macro.shopify_source.get_graphql_refund_columns", "macro_sql": "{% macro get_graphql_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"return_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_refunded_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_refunded_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_refunded_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_refunded_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.198106, "supported_languages": null}, "macro.shopify_source.get_inventory_item_columns": {"name": "get_inventory_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_item_columns.sql", "original_file_path": "macros/get_inventory_item_columns.sql", "unique_id": "macro.shopify_source.get_inventory_item_columns", "macro_sql": "{% macro get_inventory_item_columns() %}\n\n{# Columns below line 26 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"province_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duplicate_sku_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"harmonized_system_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_history_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_weight_value\", \"datatype\": dbt.type_float()},\n {\"name\": \"measurement_weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked_editable_locked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()}\n ,\n {\"name\": \"cost\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2027175, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_item_columns": {"name": "get_graphql_inventory_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_item_columns.sql", "original_file_path": "macros/get_inventory_item_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_item_columns", "macro_sql": "{% macro get_graphql_inventory_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duplicate_sku_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"harmonized_system_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_history_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"measurement_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"measurement_weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"measurement_weight_value\", \"datatype\": dbt.type_float()},\n {\"name\": \"province_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_locked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.206294, "supported_languages": null}, "macro.shopify_source.get_tax_line_columns": {"name": "get_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tax_line_columns.sql", "original_file_path": "macros/get_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_tax_line_columns", "macro_sql": "{% macro get_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2082138, "supported_languages": null}, "macro.shopify_source.get_graphql_tax_line_columns": {"name": "get_graphql_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tax_line_columns.sql", "original_file_path": "macros/get_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_tax_line_columns", "macro_sql": "{% macro get_graphql_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2100077, "supported_languages": null}, "macro.shopify_source.get_discount_code_basic_columns": {"name": "get_discount_code_basic_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_basic_columns.sql", "original_file_path": "macros/get_discount_code_basic_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_basic_columns", "macro_sql": "{% macro get_discount_code_basic_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.214306, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_basic_columns": {"name": "get_graphql_discount_code_basic_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_basic_columns.sql", "original_file_path": "macros/get_discount_code_basic_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_basic_columns", "macro_sql": "{% macro get_graphql_discount_code_basic_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2177148, "supported_languages": null}, "macro.shopify_source.get_product_variant_media_columns": {"name": "get_product_variant_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_media_columns.sql", "original_file_path": "macros/get_product_variant_media_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_media_columns", "macro_sql": "{% macro get_product_variant_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.218646, "supported_languages": null}, "macro.shopify_source.get_graphql_product_variant_media_columns": {"name": "get_graphql_product_variant_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_media_columns.sql", "original_file_path": "macros/get_product_variant_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_variant_media_columns", "macro_sql": "{% macro get_graphql_product_variant_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2193153, "supported_languages": null}, "macro.shopify_source.get_order_discount_code_columns": {"name": "get_order_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_discount_code_columns.sql", "original_file_path": "macros/get_order_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_order_discount_code_columns", "macro_sql": "{% macro get_order_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2209406, "supported_languages": null}, "macro.shopify_source.get_graphql_order_discount_code_columns": {"name": "get_graphql_order_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_discount_code_columns.sql", "original_file_path": "macros/get_order_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_discount_code_columns", "macro_sql": "{% macro get_graphql_order_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2219048, "supported_languages": null}, "macro.shopify_source.get_media_image_columns": {"name": "get_media_image_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_image_columns.sql", "original_file_path": "macros/get_media_image_columns.sql", "unique_id": "macro.shopify_source.get_media_image_columns", "macro_sql": "{% macro get_media_image_columns() %}\n\n{% set columns = [\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2235305, "supported_languages": null}, "macro.shopify_source.get_graphql_media_image_columns": {"name": "get_graphql_media_image_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_image_columns.sql", "original_file_path": "macros/get_media_image_columns.sql", "unique_id": "macro.shopify_source.get_graphql_media_image_columns", "macro_sql": "{% macro get_graphql_media_image_columns() %}\n\n{% set columns = [\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2247727, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_order_line_item_columns": {"name": "get_graphql_fulfillment_order_line_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_order_line_item_columns.sql", "original_file_path": "macros/get_fulfillment_order_line_item_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_order_line_item_columns", "macro_sql": "{% macro get_graphql_fulfillment_order_line_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"remaining_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.228555, "supported_languages": null}, "macro.shopify_source.get_fulfillment_columns": {"name": "get_fulfillment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_columns.sql", "original_file_path": "macros/get_fulfillment_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_columns", "macro_sql": "{% macro get_fulfillment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_numbers\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.231579, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_columns": {"name": "get_graphql_fulfillment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_columns.sql", "original_file_path": "macros/get_fulfillment_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_columns", "macro_sql": "{% macro get_graphql_fulfillment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"display_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2336721, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_columns": {"name": "get_abandoned_checkout_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_columns.sql", "original_file_path": "macros/get_abandoned_checkout_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_columns", "macro_sql": "{% macro get_abandoned_checkout_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"abandoned_checkout_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2461212, "supported_languages": null}, "macro.shopify_source.get_graphql_abandoned_checkout_columns": {"name": "get_graphql_abandoned_checkout_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_columns.sql", "original_file_path": "macros/get_abandoned_checkout_columns.sql", "unique_id": "macro.shopify_source.get_graphql_abandoned_checkout_columns", "macro_sql": "{% macro get_graphql_abandoned_checkout_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"abandoned_checkout_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"completed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_discount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_duties_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_duties_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2562869, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_visit_columns": {"name": "get_graphql_customer_visit_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_visit_columns.sql", "original_file_path": "macros/get_customer_visit_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_visit_columns", "macro_sql": "{% macro get_graphql_customer_visit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page_html\", \"datatype\": dbt.type_string()},\n {\"name\": \"occurred_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"referral_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"referral_info_html\", \"datatype\": dbt.type_string()},\n {\"name\": \"referrer_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_campaign\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_content\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_medium\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_term\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.259875, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_tracking_info_columns": {"name": "get_graphql_fulfillment_tracking_info_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_tracking_info_columns.sql", "original_file_path": "macros/get_fulfillment_tracking_info_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_tracking_info_columns", "macro_sql": "{% macro get_graphql_fulfillment_tracking_info_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"number\", \"datatype\": dbt.type_string()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2613516, "supported_languages": null}, "macro.shopify_source.get_collection_product_columns": {"name": "get_collection_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_product_columns.sql", "original_file_path": "macros/get_collection_product_columns.sql", "unique_id": "macro.shopify_source.get_collection_product_columns", "macro_sql": "{% macro get_collection_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2623937, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_product_columns": {"name": "get_graphql_collection_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_product_columns.sql", "original_file_path": "macros/get_collection_product_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_product_columns", "macro_sql": "{% macro get_graphql_collection_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2631927, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_address_columns": {"name": "get_graphql_customer_address_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_address_columns.sql", "original_file_path": "macros/get_customer_address_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_address_columns", "macro_sql": "{% macro get_graphql_customer_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_default\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"validation_result_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"coordinates_validated\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2672913, "supported_languages": null}, "macro.shopify_source.get_order_line_columns": {"name": "get_order_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_columns.sql", "original_file_path": "macros/get_order_line_columns.sql", "unique_id": "macro.shopify_source.get_order_line_columns", "macro_sql": "{% macro get_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillable_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"gift_card\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"grams\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"index\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"pre_tax_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"pre_tax_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"properties\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.273067, "supported_languages": null}, "macro.shopify_source.get_graphql_order_line_columns": {"name": "get_graphql_order_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_columns.sql", "original_file_path": "macros/get_order_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_line_columns", "macro_sql": "{% macro get_graphql_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_gift_card\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"original_total_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_total_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"original_total_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_total_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"unfulfilled_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2770114, "supported_languages": null}, "macro.shopify_source.get_order_line_refund_columns": {"name": "get_order_line_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_refund_columns.sql", "original_file_path": "macros/get_order_line_refund_columns.sql", "unique_id": "macro.shopify_source.get_order_line_refund_columns", "macro_sql": "{% macro get_order_line_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"restock_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_refund_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2799385, "supported_languages": null}, "macro.shopify_source.get_graphql_order_line_refund_columns": {"name": "get_graphql_order_line_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_refund_columns.sql", "original_file_path": "macros/get_order_line_refund_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_line_refund_columns", "macro_sql": "{% macro get_graphql_order_line_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"restock_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_refund_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2827277, "supported_languages": null}, "macro.shopify_source.get_product_variant_columns": {"name": "get_product_variant_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_columns.sql", "original_file_path": "macros/get_product_variant_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_columns", "macro_sql": "{% macro get_product_variant_columns() %}\n\n{# Columns below line 28 to be deprecated. #}\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"position\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"compare_at_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"barcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"old_inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"available_for_sale\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"requires_components\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sellable_online_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"fulfillment_service\", \"datatype\": dbt.type_string()},\n {\"name\": \"grams\", \"datatype\": dbt.type_float()},\n {\"name\": \"inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_3\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_variant_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_boolean", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.288935, "supported_languages": null}, "macro.shopify_source.get_graphql_product_variant_columns": {"name": "get_graphql_product_variant_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_columns.sql", "original_file_path": "macros/get_product_variant_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_variant_columns", "macro_sql": "{% macro get_graphql_product_variant_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_sale\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"barcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"compare_at_price\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"position\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_components\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sellable_online_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_variant_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2926397, "supported_languages": null}, "macro.shopify_source.get_product_tag_columns": {"name": "get_product_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_tag_columns.sql", "original_file_path": "macros/get_product_tag_columns.sql", "unique_id": "macro.shopify_source.get_product_tag_columns", "macro_sql": "{% macro get_product_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.29391, "supported_languages": null}, "macro.shopify_source.get_graphql_product_tag_columns": {"name": "get_graphql_product_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_tag_columns.sql", "original_file_path": "macros/get_product_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_tag_columns", "macro_sql": "{% macro get_graphql_product_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2948468, "supported_languages": null}, "macro.shopify_source.get_media_columns": {"name": "get_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_columns.sql", "original_file_path": "macros/get_media_columns.sql", "unique_id": "macro.shopify_source.get_media_columns", "macro_sql": "{% macro get_media_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}, \n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()}, \n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()} \n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2961013, "supported_languages": null}, "macro.shopify_source.get_graphql_media_columns": {"name": "get_graphql_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_columns.sql", "original_file_path": "macros/get_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_media_columns", "macro_sql": "{% macro get_graphql_media_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.297188, "supported_languages": null}, "macro.shopify_source.get_discount_application_columns": {"name": "get_discount_application_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_application_columns.sql", "original_file_path": "macros/get_discount_application_columns.sql", "unique_id": "macro.shopify_source.get_discount_application_columns", "macro_sql": "{% macro get_discount_application_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocation_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"target_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value\", \"datatype\": dbt.type_float()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.299886, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_application_columns": {"name": "get_graphql_discount_application_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_application_columns.sql", "original_file_path": "macros/get_discount_application_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_application_columns", "macro_sql": "{% macro get_graphql_discount_application_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocation_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"target_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"value_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_percentage\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3017216, "supported_languages": null}, "macro.shopify_source.get_inventory_quantity_columns": {"name": "get_inventory_quantity_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_quantity_columns.sql", "original_file_path": "macros/get_inventory_quantity_columns.sql", "unique_id": "macro.shopify_source.get_inventory_quantity_columns", "macro_sql": "{% macro get_inventory_quantity_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_level_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3035407, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_quantity_columns": {"name": "get_graphql_inventory_quantity_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_quantity_columns.sql", "original_file_path": "macros/get_inventory_quantity_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_quantity_columns", "macro_sql": "{% macro get_graphql_inventory_quantity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_level_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.304938, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_discount_code_columns": {"name": "get_abandoned_checkout_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_discount_code_columns.sql", "original_file_path": "macros/get_abandoned_checkout_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro_sql": "{% macro get_abandoned_checkout_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3070161, "supported_languages": null}, "macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns": {"name": "get_graphql_abandoned_checkout_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_discount_code_columns.sql", "original_file_path": "macros/get_abandoned_checkout_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns", "macro_sql": "{% macro get_graphql_abandoned_checkout_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3079567, "supported_languages": null}, "macro.shopify_source.get_discount_code_bxgy_columns": {"name": "get_discount_code_bxgy_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_bxgy_columns.sql", "original_file_path": "macros/get_discount_code_bxgy_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_bxgy_columns", "macro_sql": "{% macro get_discount_code_bxgy_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3124712, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_bxgy_columns": {"name": "get_graphql_discount_code_bxgy_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_bxgy_columns.sql", "original_file_path": "macros/get_discount_code_bxgy_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_bxgy_columns", "macro_sql": "{% macro get_graphql_discount_code_bxgy_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.315636, "supported_languages": null}, "macro.shopify_source.get_inventory_level_columns": {"name": "get_inventory_level_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_level_columns.sql", "original_file_path": "macros/get_inventory_level_columns.sql", "unique_id": "macro.shopify_source.get_inventory_level_columns", "macro_sql": "{% macro get_inventory_level_columns() %}\n\n{# Columns below line 13 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"can_deactivate\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deactivation_alert\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n ,\n {\"name\": \"available\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3178575, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_level_columns": {"name": "get_graphql_inventory_level_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_level_columns.sql", "original_file_path": "macros/get_inventory_level_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_level_columns", "macro_sql": "{% macro get_graphql_inventory_level_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"can_deactivate\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deactivation_alert\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3193805, "supported_languages": null}, "macro.shopify_source.get_order_note_attribute_columns": {"name": "get_order_note_attribute_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_note_attribute_columns.sql", "original_file_path": "macros/get_order_note_attribute_columns.sql", "unique_id": "macro.shopify_source.get_order_note_attribute_columns", "macro_sql": "{% macro get_order_note_attribute_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.320659, "supported_languages": null}, "macro.shopify_source.get_graphql_order_note_attribute_columns": {"name": "get_graphql_order_note_attribute_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_note_attribute_columns.sql", "original_file_path": "macros/get_order_note_attribute_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_note_attribute_columns", "macro_sql": "{% macro get_graphql_order_note_attribute_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3215947, "supported_languages": null}, "macro.shopify_source.get_metafield_columns": {"name": "get_metafield_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_metafield_columns.sql", "original_file_path": "macros/get_metafield_columns.sql", "unique_id": "macro.shopify_source.get_metafield_columns", "macro_sql": "{% macro get_metafield_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"namespace\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"owner_resource\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3243032, "supported_languages": null}, "macro.shopify_source.get_graphql_metafield_columns": {"name": "get_graphql_metafield_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_metafield_columns.sql", "original_file_path": "macros/get_metafield_columns.sql", "unique_id": "macro.shopify_source.get_graphql_metafield_columns", "macro_sql": "{% macro get_graphql_metafield_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"namespace\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"owner_resource\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.326251, "supported_languages": null}, "macro.shopify_source.fivetran_convert_timezone": {"name": "fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.fivetran_convert_timezone", "macro_sql": "{%- macro fivetran_convert_timezone(column, target_tz=None, source_tz=None) -%}\n{%- set source_tz = \"UTC\" if not source_tz else source_tz -%}\n{%- set target_tz = \"UTC\" if not target_tz else target_tz -%}\n{{ return(adapter.dispatch('fivetran_convert_timezone', 'shopify_source') (column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.327487, "supported_languages": null}, "macro.shopify_source.default__fivetran_convert_timezone": {"name": "default__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.default__fivetran_convert_timezone", "macro_sql": "{% macro default__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ dbt.type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3278992, "supported_languages": null}, "macro.shopify_source.bigquery__fivetran_convert_timezone": {"name": "bigquery__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.bigquery__fivetran_convert_timezone", "macro_sql": "{%- macro bigquery__fivetran_convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3282795, "supported_languages": null}, "macro.shopify_source.postgres__fivetran_convert_timezone": {"name": "postgres__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.postgres__fivetran_convert_timezone", "macro_sql": "{% macro postgres__fivetran_convert_timezone(column, target_tz, source_tz) -%}\ncast(\n cast({{ column }} as {{ dbt.type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt.type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3287485, "supported_languages": null}, "macro.shopify_source.redshift__fivetran_convert_timezone": {"name": "redshift__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.redshift__fivetran_convert_timezone", "macro_sql": "{%- macro redshift__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.default__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3291376, "supported_languages": null}, "macro.shopify_source.duckdb__fivetran_convert_timezone": {"name": "duckdb__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.duckdb__fivetran_convert_timezone", "macro_sql": "{% macro duckdb__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.postgres__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3295076, "supported_languages": null}, "macro.shopify_source.spark__fivetran_convert_timezone": {"name": "spark__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.spark__fivetran_convert_timezone", "macro_sql": "{%- macro spark__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nfrom_utc_timestamp(\n to_utc_timestamp({{ column }}, '{{ source_tz }}'),\n '{{ target_tz }}'\n )\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.329832, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.shopify_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_synced", "block_contents": "The time when a record was last updated by Fivetran."}, "doc.shopify_source._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_deleted", "block_contents": "Boolean representing whether the record was soft-deleted in Shopify."}, "doc.shopify_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source.source_relation", "block_contents": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {"test.shopify_integration_tests.consistency_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_discounts.sql", "original_file_path": "tests/consistency/consistency_discounts.sql", "unique_id": "test.shopify_integration_tests.consistency_discounts", "fqn": ["shopify_integration_tests", "consistency", "consistency_discounts"], "alias": "consistency_discounts", "checksum": {"name": "sha256", "checksum": "c4c0089722a912fc6859d3f23b928425253c88ad16955dc1ec30dd47328d24b8"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.3145459, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__discounts\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__discounts\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_transactions": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_transactions", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_transactions.sql", "original_file_path": "tests/consistency/consistency_transactions.sql", "unique_id": "test.shopify_integration_tests.consistency_transactions", "fqn": ["shopify_integration_tests", "consistency", "consistency_transactions"], "alias": "consistency_transactions", "checksum": {"name": "sha256", "checksum": "4a35a742a91f9610e5f2f43d798aa32b4a7a03316db67fa95804ae894a6bddbd"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.3495784, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__transactions\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__transactions\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced_count": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced_count", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced_count.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced_count.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced_count", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced_count"], "alias": "consistency_line_item_enhanced_count", "checksum": {"name": "sha256", "checksum": "5966fa4f5d6392d55c6776983375aba21f63ec6d2bce09807769e2f807973074"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.3563612, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure the rows counts are the same between versions\nwith prod as (\n select count(*) as prod_rows\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select count(*) as dev_rows\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n)\n\n-- test will return values and fail if the row counts don't match\nselect *\nfrom prod\njoin dev\n on prod.prod_rows != dev.dev_rows", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced"], "alias": "consistency_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "bafda328d8951e5c1315715ae2af2b6db591c008cfb2e3e87102e102a927127d"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.3645043, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_email_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_email_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_email_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_email_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_email_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_email_cohorts"], "alias": "consistency_customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "9c68a37c8316395c4e9454f955bf9a88a8ec0f0a1b8e8b92f0324c30118b0a38"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.371328, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_email_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_email_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_emails": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_emails", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_emails.sql", "original_file_path": "tests/consistency/consistency_customer_emails.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_emails", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_emails"], "alias": "consistency_customer_emails", "checksum": {"name": "sha256", "checksum": "f65921899974fb386942217898b874b933b185b03ba96b7b4393a21c57749faf"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.3777547, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customer_emails\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customer_emails\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_inventory_levels": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_inventory_levels", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_inventory_levels.sql", "original_file_path": "tests/consistency/consistency_inventory_levels.sql", "unique_id": "test.shopify_integration_tests.consistency_inventory_levels", "fqn": ["shopify_integration_tests", "consistency", "consistency_inventory_levels"], "alias": "consistency_inventory_levels", "checksum": {"name": "sha256", "checksum": "5c4bf90e9896cd512f8251e7b55deaf76564f860f24c9332b2379854562145fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.384401, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__inventory_levels\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_order_lines": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_order_lines", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_order_lines.sql", "original_file_path": "tests/consistency/consistency_order_lines.sql", "unique_id": "test.shopify_integration_tests.consistency_order_lines", "fqn": ["shopify_integration_tests", "consistency", "consistency_order_lines"], "alias": "consistency_order_lines", "checksum": {"name": "sha256", "checksum": "0a6491b31602ef2fecc145804b8b8f386801aba35815ea3dc70e4bc0aaf5c3d9"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.391229, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__order_lines\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__order_lines\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customers.sql", "original_file_path": "tests/consistency/consistency_customers.sql", "unique_id": "test.shopify_integration_tests.consistency_customers", "fqn": ["shopify_integration_tests", "consistency", "consistency_customers"], "alias": "consistency_customers", "checksum": {"name": "sha256", "checksum": "b585f5c5f4001fd7febda99275ce6e83ccc77d28d5113615025a883a10b3fe75"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.3995013, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customers\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customers\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_daily_shop": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_daily_shop", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_daily_shop.sql", "original_file_path": "tests/consistency/consistency_daily_shop.sql", "unique_id": "test.shopify_integration_tests.consistency_daily_shop", "fqn": ["shopify_integration_tests", "consistency", "consistency_daily_shop"], "alias": "consistency_daily_shop", "checksum": {"name": "sha256", "checksum": "c6b82febd4b38d78edcc9e3b3f8dba293d1754d7223d5c16828b5f48f01742f5"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.4061954, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_prod.shopify__daily_shop\n group by 1,2,3\n),\n\ndev as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_dev.shopify__daily_shop\n group by 1,2,3\n),\n\nfinal as (\n select \n prod.date_day as prod_date_day,\n dev.date_day as dev_date_day,\n prod.shop_id as prod_shop_id,\n dev.shop_id as dev_shop_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.count_orders as prod_count_orders,\n dev.count_orders as dev_count_orders,\n prod.count_customers as prod_count_customers,\n dev.count_customers as dev_count_customers,\n prod.order_adjusted_total as prod_order_adjusted_total,\n dev.order_adjusted_total as dev_order_adjusted_total,\n prod.count_abandoned_checkouts as prod_count_abandoned_checkouts,\n dev.count_abandoned_checkouts as dev_count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , prod.count_fulfillment_attempted_delivery as prod_count_fulfillment_attempted_delivery\n , dev.count_fulfillment_attempted_delivery as dev_count_fulfillment_attempted_delivery\n , prod.count_fulfillment_confirmed as prod_count_fulfillment_confirmed\n , dev.count_fulfillment_confirmed as dev_count_fulfillment_confirmed\n {% endif %}\n\n from prod\n full outer join dev \n on dev.date_day = prod.date_day\n and dev.shop_id = prod.shop_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_date_day != dev_date_day or\n prod_shop_id != dev_shop_id or\n prod_source_relation != dev_source_relation or\n abs(prod_count_orders - dev_count_orders) > .001 or\n abs(prod_count_customers - dev_count_customers) > .001 or\n abs(prod_order_adjusted_total - dev_order_adjusted_total) > .001 or\n abs(prod_count_abandoned_checkouts - dev_count_abandoned_checkouts) > .001\n \n {% if var('shopify_using_fulfillment_event', false) %}\n or abs(prod_count_fulfillment_attempted_delivery - dev_count_fulfillment_attempted_delivery) > .001\n or abs(prod_count_fulfillment_confirmed - dev_count_fulfillment_confirmed) > .001\n {% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_cohorts"], "alias": "consistency_customer_cohorts", "checksum": {"name": "sha256", "checksum": "389c12079464cf20fe1f6888a7e40c8bb469148349a20931a8ba997e2f0023fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.4149811, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_orders.sql", "original_file_path": "tests/consistency/consistency_orders.sql", "unique_id": "test.shopify_integration_tests.consistency_orders", "fqn": ["shopify_integration_tests", "consistency", "consistency_orders"], "alias": "consistency_orders", "checksum": {"name": "sha256", "checksum": "0ab8c3335aa456106375ec248d3f309d35588f35d3654b13270a44eadb27faf6"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.421865, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__orders\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__orders\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_line_item_enhanced.sql", "original_file_path": "tests/integrity/vertical_integrity_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_line_item_enhanced", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_line_item_enhanced"], "alias": "vertical_integrity_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "efc2b1e0ac6bc26d2581903d83d1d56be172c14cfff1d8d6d7fa6b6eb160c7f7"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.4301002, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure there is no fanout between the staging order_line_table and the line_item_enhanced model.\nwith stg_order_line as (\n select\n 1 as join_key,\n count(*) as order_line_count,\n count(distinct order_id) as order_count\n from {{ ref('stg_shopify__order_line') }}\n),\n\nline_item_enhanced as (\n select\n 1 as join_key,\n count(*) as line_item_enhanced_count\n from {{ ref('shopify__line_item_enhanced') }}\n),\n\n-- test will return values and fail if the row counts don't match\n\nfinal as (\n select \n stg_order_line.join_key,\n stg_order_line.order_line_count + stg_order_line.order_count as total_line_and_order_count,\n line_item_enhanced.line_item_enhanced_count\n from stg_order_line\n join line_item_enhanced\n on stg_order_line.join_key = line_item_enhanced.join_key\n) \n\nselect *\nfrom final\nwhere total_line_and_order_count != line_item_enhanced_count", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "shopify__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_daily_shop_fulfillment", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_daily_shop_fulfillment.sql", "original_file_path": "tests/integrity/vertical_integrity_daily_shop_fulfillment.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_daily_shop_fulfillment"], "alias": "vertical_integrity_daily_shop_fulfillment", "checksum": {"name": "sha256", "checksum": "ba5dfc5af503b2012b977cd000daf131bf61c08241aad583df03926212225016"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.4378555, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n-- test will only run if shopify_using_fulfillment_event is set to True\n\nwith source as (\n\n select *\n from {{ ref('stg_shopify__fulfillment_event') }}\n),\n\nsource_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day,\n shop_id,\n count(distinct case when status = 'delayed' then fulfillment_id end) as count_fulfillment_delayed,\n count(distinct case when status = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit,\n count(distinct case when status = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed,\n count(distinct case when status = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n\n from source\n where happened_at > '2020-01-01' and happened_at < '2024-06-10'\n group by 1,2,3\n),\n\nmodel as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\nmodel_metrics as (\n\n select \n source_relation,\n date_day,\n shop_id,\n sum(count_fulfillment_delayed) as count_fulfillment_delayed,\n sum(count_fulfillment_in_transit) as count_fulfillment_in_transit,\n sum(count_fulfillment_confirmed) as count_fulfillment_confirmed,\n sum(count_fulfillment_delivered) as count_fulfillment_delivered\n\n from model\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2,3\n),\n\nfinal as (\n\n select\n model_metrics.source_relation,\n model_metrics.shop_id as model_shop_id,\n source_metrics.shop_id as source_shop_id,\n model_metrics.date_day as model_date_day,\n source_metrics.date_day as source_date_day,\n coalesce(model_metrics.count_fulfillment_delayed, 0) as model_count_fulfillment_delayed,\n coalesce(source_metrics.count_fulfillment_delayed, 0) as source_count_fulfillment_delayed,\n coalesce(model_metrics.count_fulfillment_in_transit, 0) as model_count_fulfillment_in_transit,\n coalesce(source_metrics.count_fulfillment_in_transit, 0) as source_count_fulfillment_in_transit,\n coalesce(model_metrics.count_fulfillment_confirmed, 0) as model_count_fulfillment_confirmed,\n coalesce(source_metrics.count_fulfillment_confirmed, 0) as source_count_fulfillment_confirmed,\n coalesce(model_metrics.count_fulfillment_delivered, 0) as model_count_fulfillment_delivered,\n coalesce(source_metrics.count_fulfillment_delivered, 0) as source_count_fulfillment_delivered\n\n from model_metrics\n full outer join source_metrics\n on model_metrics.source_relation = source_metrics.source_relation\n and model_metrics.shop_id = source_metrics.shop_id\n and model_metrics.date_day = source_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \nmodel_count_fulfillment_delayed != source_count_fulfillment_delayed or\nmodel_count_fulfillment_in_transit != source_count_fulfillment_in_transit or\nmodel_count_fulfillment_confirmed != source_count_fulfillment_confirmed or\nmodel_count_fulfillment_delivered != source_count_fulfillment_delivered", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.integrity_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_customers.sql", "original_file_path": "tests/integrity/integrity_customers.sql", "unique_id": "test.shopify_integration_tests.integrity_customers", "fqn": ["shopify_integration_tests", "integrity", "integrity_customers"], "alias": "integrity_customers", "checksum": {"name": "sha256", "checksum": "690ac16cf903e5fd89a08680246fd495bf3fbdc94a622f0b9b1ce6f6988d8a74"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.448703, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n customer_id,\n count(*) as source_customer_tag_count\n from {{ target.schema }}_shopify_dev.stg_shopify__customer_tag\n group by 1\n),\n\ntransform as (\n select\n customer_id,\n array_length(split(customer_tags, ',')) as transform_customer_tag_count -- Only BigQuery compatible for the time being\n from {{ target.schema }}_shopify_dev.shopify__customers\n where customer_tags is not null\n group by customer_id, customer_tags\n), \n\ncompare as (\n select\n source.customer_id,\n source.source_customer_tag_count,\n transform.transform_customer_tag_count\n from source\n full outer join transform\n on source.customer_id = transform.customer_id\n where source.source_customer_tag_count != transform.transform_customer_tag_count\n )\n\nselect *\nfrom compare", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.integrity_inventory_level": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_inventory_level", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_inventory_level.sql", "original_file_path": "tests/integrity/integrity_inventory_level.sql", "unique_id": "test.shopify_integration_tests.integrity_inventory_level", "fqn": ["shopify_integration_tests", "integrity", "integrity_inventory_level"], "alias": "integrity_inventory_level", "checksum": {"name": "sha256", "checksum": "2f633fb0d91b0bebe0152b97a141df7481c08e0df5557ee4962f8d0ebe7bd7ee"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.4556162, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n count(*) as source_count\n from {{ target.schema }}_shopify_dev.stg_shopify__inventory_level as il\n join {{ target.schema }}_shopify_dev.stg_shopify__inventory_item as ii\n on il.inventory_item_id = ii.inventory_item_id \n and il.source_relation = ii.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__location as lo\n on il.location_id = lo.location_id \n and il.source_relation = lo.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__product_variant as pv\n on il.inventory_item_id = pv.inventory_item_id\n and il.source_relation = pv.source_relation\n),\n\ntransform as (\n select\n count(*) as transform_count\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\ncompare as (\n select *\n from source\n cross join transform\n)\n\nselect *\nfrom compare\nwhere source_count != transform_count", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_discounts.sql", "original_file_path": "tests/integrity/vertical_integrity_discounts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_discounts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_discounts"], "alias": "vertical_integrity_discounts", "checksum": {"name": "sha256", "checksum": "591dfe08097b58fd9433339a17d0388c891a6d3eef65c042f13c227737e9ff65"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.4645693, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith discount_redeem_code as (\n\n select \n code,\n discount_code_id,\n source_relation\n from {{ ref('stg_shopify__discount_redeem_code') }} \n group by 1, 2, 3\n),\n\ndiscount_codes_unioned as (\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_basic') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_bxgy') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_free_shipping') }} \n group by 1, 2\n\n {% if var('shopify_using_discount_code_app', False) %}\n\n union all\n \n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_app') }} \n group by 1, 2\n {% endif %}\n),\n\ndiscount_codes_source as (\n \n select \n discount_redeem_code.code, \n discount_redeem_code.source_relation,\n count(*) as code_count_source\n from discount_redeem_code\n left join discount_codes_unioned\n on discount_redeem_code.discount_code_id = discount_codes_unioned.discount_code_id\n and discount_redeem_code.source_relation = discount_codes_unioned.source_relation\n group by 1, 2\n),\n\n\ndiscount_codes_end as (\n\n select \n code, \n source_relation,\n count(*) as code_count_end\n from {{ ref('shopify__discounts') }}\n group by 1, 2\n),\n\n\nfinal as (\n\n select \n discount_codes_source.code,\n discount_codes_source.source_relation,\n coalesce(discount_codes_source.code_count_source, 0) as code_count_source,\n coalesce(discount_codes_end.code_count_end, 0) as code_count_end\n from discount_codes_source\n full outer join discount_codes_end\n on discount_codes_source.code = discount_codes_end.code\n and discount_codes_source.source_relation = discount_codes_end.source_relation\n)\n\nselect *\nfrom final\nwhere code_count_source != code_count_end", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}, {"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "horizontal_integrity_daily_shop_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/horizontal_integrity_daily_shop_orders.sql", "original_file_path": "tests/integrity/horizontal_integrity_daily_shop_orders.sql", "unique_id": "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders", "fqn": ["shopify_integration_tests", "integrity", "horizontal_integrity_daily_shop_orders"], "alias": "horizontal_integrity_daily_shop_orders", "checksum": {"name": "sha256", "checksum": "addd76b5760975069f87aac715bd3ade9a52af4049104f635902fd87b8b41b1a"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.4729266, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norder_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from orders\n where created_timestamp > '2020-01-01' and created_timestamp < '2024-06-10'\n group by 1,2\n),\n\ndaily_shop as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\ndaily_shop_metrics as (\n\n select \n source_relation,\n date_day,\n sum(count_orders) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from daily_shop\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2\n),\n\nfinal as (\n\n select\n daily_shop_metrics.source_relation,\n coalesce(daily_shop_metrics.count_orders, 0) as daily_shop_count_orders,\n coalesce(order_metrics.count_orders, 0) as order_count_orders,\n coalesce(daily_shop_metrics.order_adjusted_total, 0) as daily_shop_order_adjusted_total,\n coalesce(order_metrics.order_adjusted_total, 0) as order_order_adjusted_total\n\n from daily_shop_metrics\n full outer join order_metrics\n on daily_shop_metrics.source_relation = order_metrics.source_relation\n and daily_shop_metrics.date_day = order_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \n abs(daily_shop_count_orders - order_count_orders) > 0 or\n abs(daily_shop_order_adjusted_total - order_order_adjusted_total) > .1", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_customer_cohorts.sql", "original_file_path": "tests/integrity/vertical_integrity_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_customer_cohorts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_customer_cohorts"], "alias": "vertical_integrity_customer_cohorts", "checksum": {"name": "sha256", "checksum": "19553b1bce28d0577a330dc5544f21b9326b91d673b50fdfdc0ca5980b17f7ff"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.480869, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n), \n\ncustomers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), \n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), \n\ncustomer_cohort_source as (\n\n select \n customers.source_relation,\n count(*) as source_rows \n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n group by 1\n),\n\ncustomer_cohort_end as (\n\n select \n source_relation,\n count(*) as end_rows\n from {{ ref('shopify__customer_cohorts') }}\n group by 1\n),\n\nfinal as (\n select\n customer_cohort_source.source_relation,\n source_rows,\n end_rows\n from customer_cohort_source\n join customer_cohort_end\n on customer_cohort_source.source_relation = customer_cohort_end.source_relation\n where customer_cohort_source.source_rows != customer_cohort_end.end_rows\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "model.shopify_source.stg_shopify_gql__collection_rule": [{"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_rule", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection_rule.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection_rule.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_rule", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection_rule"], "alias": "stg_shopify_gql__collection_rule", "checksum": {"name": "sha256", "checksum": "01b76dc43dec6771d2c2ec7d82f1b18c80fa72974103274014b2147c07abaf8f"}, "config": {"enabled": false, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Defines the rules used to automatically include products in a smart collection. Each rule specifies a product attribute, a comparison relation, and a condition value to match against. These rules are evaluated dynamically to determine collection membership without manual curation.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "{{ doc('_fivetran_synced') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID of the smart collection to which this rule applies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of the rule within the collection's rule set. Rules are evaluated in order and may be grouped depending on collection logic.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "condition": {"name": "condition", "description": "The value to compare against the attribute. For example, \u201cHats\u201d if the rule is targeting products with a title containing \u201cHats\u201d. The interpretation depends on the associated `relation` and `columns` values.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "relation": {"name": "relation", "description": "The operator used to evaluate the rule. Common values include: - `equals` - `contains` - `not_equals` - `starts_with` - `ends_with` - `is_set` - `is_not_set` - `greater_than` - `less_than` - `not_contains`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "columns": {"name": "columns", "description": "The attribute being evaluated by the rule. Example values include: - `title` - `vendor` - `tag` - `variant_price` - `product_category_id` - `variant_compare_at_price` - `variant_metafield_definition` - `product_metafield_definition` - `variant_weight` - `type` - `is_price_reduced`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "{{ doc('source_relation') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": false}, "created_at": 1754505369.4544501, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_rule\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_collection_rule', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_rule_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_shopify_gql__collection_rule_tmp')),\n staging_columns=get_graphql_collection_rule_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n index,\n columns,\n condition,\n relation,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['collection_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_rule_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_rule_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}], "model.shopify_source.stg_shopify_gql__collection_rule_tmp": [{"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_rule_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_rule_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_rule_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_rule_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_rule_tmp"], "alias": "stg_shopify_gql__collection_rule_tmp", "checksum": {"name": "sha256", "checksum": "aea52cb2c08d241449697e4e67354b058c5b993645b80afe28dff54b1189108d"}, "config": {"enabled": false, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": false}, "created_at": 1754505367.7599132, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_rule_tmp\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_collection_rule', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_rule', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_rule_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection_rule"], ["shopify_graphql", "collection_rule"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}], "source.shopify_source.shopify_graphql.collection_rule": [{"database": "postgres", "schema": "public", "name": "collection_rule", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection_rule", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection_rule"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_rule_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Defines the rules used to automatically include products in a smart collection. Each rule specifies a product attribute, a comparison relation, and a condition value to match against. These rules are evaluated dynamically to determine collection membership without manual curation.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "{{ doc('_fivetran_synced') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID of the smart collection to which this rule applies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of the rule within the collection's rule set. Rules are evaluated in order and may be grouped depending on collection logic.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "condition": {"name": "condition", "description": "The value to compare against the attribute. For example, \u201cHats\u201d if the rule is targeting products with a title containing \u201cHats\u201d. The interpretation depends on the associated `relation` and `columns` values.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "relation": {"name": "relation", "description": "The operator used to evaluate the rule. Common values include: - `equals` - `contains` - `not_equals` - `starts_with` - `ends_with` - `is_set` - `is_not_set` - `greater_than` - `less_than` - `not_contains`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "columns": {"name": "columns", "description": "The attribute being evaluated by the rule. Example values include: - `title` - `vendor` - `tag` - `variant_price` - `product_category_id` - `variant_compare_at_price` - `variant_metafield_definition` - `product_metafield_definition` - `variant_weight` - `type` - `is_price_reduced`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": false, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": false, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_rule_data\"", "created_at": 1754505369.8737364, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}]}, "parent_map": {"seed.shopify_integration_tests.shopify_gql_product_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_metafield_data": [], "seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_product_data": [], "seed.shopify_integration_tests.shopify_gql_customer_address_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_customer_data": [], "seed.shopify_integration_tests.shopify_gql_customer_visit_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_media_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_gql_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_data": [], "seed.shopify_integration_tests.shopify_gql_order_data": [], "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_refund_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_gql_collection_rule_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_item_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_gql_location_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_gql_shop_data": [], "seed.shopify_integration_tests.shopify_gql_customer_tag_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_collection_data": [], "seed.shopify_integration_tests.shopify_gql_discount_application_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_level_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_media_image_data": [], "model.shopify.shopify__calendar": [], "model.shopify.shopify__customer_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"], "model.shopify.shopify__customer_email_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"], "model.shopify.shopify__inventory_levels": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media"], "model.shopify.shopify__discounts": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.int_shopify__discounts__order_aggregates"], "model.shopify.shopify__customers": ["model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.shopify__orders": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag"], "model.shopify.shopify__transactions": ["model.shopify_source.stg_shopify__tender_transaction", "model.shopify_source.stg_shopify__transaction"], "model.shopify.shopify__order_lines": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.shopify__products": ["model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.int_shopify__products_with_aggregates"], "model.shopify.shopify__daily_shop": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment", "model.shopify.int_shopify__daily_orders", "model.shopify.shopify__calendar", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__customer_emails": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_media", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_app", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.shopify__orders__order_refunds": ["model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__refund"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order"], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__orders", "model.shopify_source.stg_shopify__order_discount_code"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__order"], "model.shopify.shopify__product_variant_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.shopify__order_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"], "model.shopify.shopify__product_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"], "model.shopify.shopify__customer_metafields": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__metafield"], "model.shopify.shopify__shop_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__collection_metafields": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__metafield"], "model.shopify.shopify__line_item_enhanced": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction"], "model.shopify.shopify_gql__customer_email_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customer_emails", "model.shopify.shopify_gql__orders"], "model.shopify.shopify_gql__customers": ["model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify.shopify_gql__order_lines": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.int_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify.shopify_gql__transactions": ["model.shopify.int_shopify_gql__order", "model.shopify_source.stg_shopify_gql__tender_transaction", "model.shopify_source.stg_shopify_gql__transaction"], "model.shopify.shopify_gql__customer_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customers", "model.shopify.shopify_gql__orders"], "model.shopify.shopify_gql__discounts": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.int_shopify_gql__discounts_order_aggregates"], "model.shopify.shopify_gql__inventory_levels": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__inventory_level", "model.shopify_source.stg_shopify_gql__inventory_quantity", "model.shopify_source.stg_shopify_gql__location", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify.shopify_gql__customer_emails": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.int_shopify_gql__emails_order_aggregates"], "model.shopify.shopify_gql__daily_shop": ["model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__daily_fulfillment", "model.shopify.int_shopify_gql__daily_orders", "model.shopify.shopify__calendar", "model.shopify_source.stg_shopify_gql__shop"], "model.shopify.shopify_gql__products": ["model.shopify.int_shopify_gql__product_order_line_aggregates", "model.shopify.int_shopify_gql__products_with_aggregates"], "model.shopify.shopify_gql__orders": ["model.shopify.int_shopify_gql__order", "model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__order_discount_code", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__order_tag"], "model.shopify.int_shopify_gql__discount_code_enriched": ["model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__discount_code_app", "model.shopify_source.stg_shopify_gql__discount_code_basic", "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "model.shopify_source.stg_shopify_gql__discount_redeem_code"], "model.shopify.int_shopify_gql__products_with_aggregates": ["model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__collection_product", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__product_media", "model.shopify_source.stg_shopify_gql__product_tag", "model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify.int_shopify_gql__customers_order_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__daily_orders": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__emails_order_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__order_shipping_aggregates": ["model.shopify_source.stg_shopify_gql__order_shipping_line", "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "model.shopify.int_shopify_gql__order_fulfillment_aggregates": ["model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "model.shopify.int_shopify_gql__product_order_line_aggregates": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__orders_order_line_aggregates": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify.int_shopify_gql__discounts_order_aggregates": ["model.shopify.int_shopify_gql__order_discount_code", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__daily_fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "model.shopify.int_shopify_gql__customer_email_rollup": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify.int_shopify_gql__orders_order_refunds": ["model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__refund"], "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify_gql__discount_application"], "model.shopify.int_shopify_gql__daily_abandoned_checkouts": ["model.shopify.int_shopify_gql__abandoned_checkout"], "model.shopify.int_shopify_gql__inventory_level_aggregates": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment", "model.shopify_source.stg_shopify_gql__refund"], "model.shopify.int_shopify_gql__order_discount_code": ["model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__order_discount_code"], "model.shopify.int_shopify_gql__order": ["model.shopify_source.stg_shopify_gql__customer_visit", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__product_variant": ["model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify.int_shopify_gql__collection": ["model.shopify_source.stg_shopify_gql__collection"], "model.shopify.int_shopify_gql__abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer"], "model.shopify.int_shopify_gql__customer": ["model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_address"], "model.shopify.int_shopify_gql__order_line": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify.shopify_gql__product_metafields": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__product"], "model.shopify.shopify_gql__collection_metafields": ["model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__customer_metafields": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__shop_metafields": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__shop"], "model.shopify.shopify_gql__order_metafields": ["model.shopify.int_shopify_gql__order", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__product_variant_metafields": ["model.shopify.int_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__line_item_enhanced": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__transaction"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "model.shopify_source.stg_shopify__discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "model.shopify_source.stg_shopify__order": ["model.shopify_source.stg_shopify__order_tmp"], "model.shopify_source.stg_shopify__transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "model.shopify_source.stg_shopify__metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "model.shopify_source.stg_shopify__shop": ["model.shopify_source.stg_shopify__shop_tmp"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"], "model.shopify_source.stg_shopify__customer": ["model.shopify_source.stg_shopify__customer_tmp"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "model.shopify_source.stg_shopify__collection": ["model.shopify_source.stg_shopify__collection_tmp"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "model.shopify_source.stg_shopify__media": ["model.shopify_source.stg_shopify__media_tmp"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "model.shopify_source.stg_shopify__media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "model.shopify_source.stg_shopify__order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "model.shopify_source.stg_shopify__order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "model.shopify_source.stg_shopify__refund": ["model.shopify_source.stg_shopify__refund_tmp"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "model.shopify_source.stg_shopify__product": ["model.shopify_source.stg_shopify__product_tmp"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "model.shopify_source.stg_shopify__location": ["model.shopify_source.stg_shopify__location_tmp"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "model.shopify_source.stg_shopify__product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "model.shopify_source.stg_shopify__metafield_tmp": ["source.shopify_source.shopify.metafield"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["source.shopify_source.shopify.discount_code_bxgy"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["source.shopify_source.shopify.fulfillment"], "model.shopify_source.stg_shopify__product_variant_tmp": ["source.shopify_source.shopify.product_variant"], "model.shopify_source.stg_shopify__collection_tmp": ["source.shopify_source.shopify.collection"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["source.shopify_source.shopify.order_discount_code"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["source.shopify_source.shopify.order_url_tag"], "model.shopify_source.stg_shopify__product_tmp": ["source.shopify_source.shopify.product"], "model.shopify_source.stg_shopify__order_tag_tmp": ["source.shopify_source.shopify.order_tag"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["source.shopify_source.shopify.inventory_quantity"], "model.shopify_source.stg_shopify__tax_line_tmp": ["source.shopify_source.shopify.tax_line"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["source.shopify_source.shopify.customer_tag"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["source.shopify_source.shopify.discount_allocation"], "model.shopify_source.stg_shopify__media_image_tmp": ["source.shopify_source.shopify.media_image"], "model.shopify_source.stg_shopify__media_tmp": ["source.shopify_source.shopify.media"], "model.shopify_source.stg_shopify__refund_tmp": ["source.shopify_source.shopify.refund"], "model.shopify_source.stg_shopify__location_tmp": ["source.shopify_source.shopify.location"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["source.shopify_source.shopify.inventory_level"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["source.shopify_source.shopify.order_shipping_line"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["source.shopify_source.shopify.abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["source.shopify_source.shopify.fulfillment_event"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["source.shopify_source.shopify.order_line_refund"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["source.shopify_source.shopify.discount_code_app"], "model.shopify_source.stg_shopify__shop_tmp": ["source.shopify_source.shopify.shop"], "model.shopify_source.stg_shopify__transaction_tmp": ["source.shopify_source.shopify.transaction"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["source.shopify_source.shopify.product_variant_media"], "model.shopify_source.stg_shopify__order_line_tmp": ["source.shopify_source.shopify.order_line"], "model.shopify_source.stg_shopify__product_media_tmp": ["source.shopify_source.shopify.product_media"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["source.shopify_source.shopify.discount_code_basic"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["source.shopify_source.shopify.order_shipping_tax_line"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["source.shopify_source.shopify.order_note_attribute"], "model.shopify_source.stg_shopify__discount_application_tmp": ["source.shopify_source.shopify.discount_application"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["source.shopify_source.shopify.tender_transaction"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["source.shopify_source.shopify.discount_code_free_shipping"], "model.shopify_source.stg_shopify__product_tag_tmp": ["source.shopify_source.shopify.product_tag"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["source.shopify_source.shopify.inventory_item"], "model.shopify_source.stg_shopify__order_tmp": ["source.shopify_source.shopify.order"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["source.shopify_source.shopify.discount_redeem_code"], "model.shopify_source.stg_shopify__customer_tmp": ["source.shopify_source.shopify.customer"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["source.shopify_source.shopify.order_adjustment"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__collection_product_tmp": ["source.shopify_source.shopify.collection_product"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["source.shopify_source.shopify.abandoned_checkout"], "model.shopify_source.stg_shopify_gql__media": ["model.shopify_source.stg_shopify_gql__media_tmp"], "model.shopify_source.stg_shopify_gql__customer_visit": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_app": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"], "model.shopify_source.stg_shopify_gql__customer_tag": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"], "model.shopify_source.stg_shopify_gql__order": ["model.shopify_source.stg_shopify_gql__order_tmp"], "model.shopify_source.stg_shopify_gql__order_line": ["model.shopify_source.stg_shopify_gql__order_line_tmp"], "model.shopify_source.stg_shopify_gql__inventory_item": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"], "model.shopify_source.stg_shopify_gql__order_shipping_line": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"], "model.shopify_source.stg_shopify_gql__product": ["model.shopify_source.stg_shopify_gql__product_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"], "model.shopify_source.stg_shopify_gql__discount_allocation": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"], "model.shopify_source.stg_shopify_gql__tax_line": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"], "model.shopify_source.stg_shopify_gql__order_line_refund": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"], "model.shopify_source.stg_shopify_gql__inventory_level": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"], "model.shopify_source.stg_shopify_gql__shop": ["model.shopify_source.stg_shopify_gql__shop_tmp"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "model.shopify_source.stg_shopify_gql__location": ["model.shopify_source.stg_shopify_gql__location_tmp"], "model.shopify_source.stg_shopify_gql__transaction": ["model.shopify_source.stg_shopify_gql__transaction_tmp"], "model.shopify_source.stg_shopify_gql__product_media": ["model.shopify_source.stg_shopify_gql__product_media_tmp"], "model.shopify_source.stg_shopify_gql__product_variant": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"], "model.shopify_source.stg_shopify_gql__media_image": ["model.shopify_source.stg_shopify_gql__media_image_tmp"], "model.shopify_source.stg_shopify_gql__abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"], "model.shopify_source.stg_shopify_gql__collection": ["model.shopify_source.stg_shopify_gql__collection_tmp"], "model.shopify_source.stg_shopify_gql__refund": ["model.shopify_source.stg_shopify_gql__refund_tmp"], "model.shopify_source.stg_shopify_gql__discount_application": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"], "model.shopify_source.stg_shopify_gql__order_discount_code": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_basic": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"], "model.shopify_source.stg_shopify_gql__order_note_attribute": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"], "model.shopify_source.stg_shopify_gql__tender_transaction": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"], "model.shopify_source.stg_shopify_gql__customer": ["model.shopify_source.stg_shopify_gql__customer_tmp"], "model.shopify_source.stg_shopify_gql__product_tag": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"], "model.shopify_source.stg_shopify_gql__order_tag": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"], "model.shopify_source.stg_shopify_gql__metafield": ["model.shopify_source.stg_shopify_gql__metafield_tmp"], "model.shopify_source.stg_shopify_gql__product_variant_media": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"], "model.shopify_source.stg_shopify_gql__collection_product": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"], "model.shopify_source.stg_shopify_gql__inventory_quantity": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_event": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"], "model.shopify_source.stg_shopify_gql__customer_address": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"], "model.shopify_source.stg_shopify_gql__order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"], "model.shopify_source.stg_shopify_gql__discount_redeem_code": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"], "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": ["source.shopify_source.shopify_graphql.discount_redeem_code"], "model.shopify_source.stg_shopify_gql__refund_tmp": ["source.shopify_source.shopify_graphql.refund"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": ["source.shopify_source.shopify_graphql.discount_code_bxgy"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": ["source.shopify_source.shopify_graphql.fulfillment_tracking_info"], "model.shopify_source.stg_shopify_gql__customer_tmp": ["source.shopify_source.shopify_graphql.customer"], "model.shopify_source.stg_shopify_gql__product_tmp": ["source.shopify_source.shopify_graphql.product"], "model.shopify_source.stg_shopify_gql__customer_visit_tmp": ["source.shopify_source.shopify_graphql.customer_visit"], "model.shopify_source.stg_shopify_gql__shop_tmp": ["source.shopify_source.shopify_graphql.shop"], "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": ["source.shopify_source.shopify_graphql.inventory_quantity"], "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": ["source.shopify_source.shopify_graphql.order_shipping_line"], "model.shopify_source.stg_shopify_gql__collection_tmp": ["source.shopify_source.shopify_graphql.collection"], "model.shopify_source.stg_shopify_gql__inventory_item_tmp": ["source.shopify_source.shopify_graphql.inventory_item"], "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": ["source.shopify_source.shopify_graphql.discount_code_basic"], "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": ["source.shopify_source.shopify_graphql.order_adjustment"], "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": ["source.shopify_source.shopify_graphql.order_note_attribute"], "model.shopify_source.stg_shopify_gql__discount_application_tmp": ["source.shopify_source.shopify_graphql.discount_application"], "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": ["source.shopify_source.shopify_graphql.discount_code_app"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": ["source.shopify_source.shopify_graphql.order_shipping_tax_line"], "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": ["source.shopify_source.shopify_graphql.order_line_refund"], "model.shopify_source.stg_shopify_gql__metafield_tmp": ["source.shopify_source.shopify_graphql.metafield"], "model.shopify_source.stg_shopify_gql__order_line_tmp": ["source.shopify_source.shopify_graphql.order_line"], "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": ["source.shopify_source.shopify_graphql.product_variant_media"], "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": ["source.shopify_source.shopify_graphql.order_discount_code"], "model.shopify_source.stg_shopify_gql__product_variant_tmp": ["source.shopify_source.shopify_graphql.product_variant"], "model.shopify_source.stg_shopify_gql__order_tmp": ["source.shopify_source.shopify_graphql.order"], "model.shopify_source.stg_shopify_gql__location_tmp": ["source.shopify_source.shopify_graphql.location"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": ["source.shopify_source.shopify_graphql.discount_code_free_shipping"], "model.shopify_source.stg_shopify_gql__tax_line_tmp": ["source.shopify_source.shopify_graphql.tax_line"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": ["source.shopify_source.shopify_graphql.fulfillment_order_line_item"], "model.shopify_source.stg_shopify_gql__collection_product_tmp": ["source.shopify_source.shopify_graphql.collection_product"], "model.shopify_source.stg_shopify_gql__fulfillment_tmp": ["source.shopify_source.shopify_graphql.fulfillment"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": ["source.shopify_source.shopify_graphql.abandoned_checkout"], "model.shopify_source.stg_shopify_gql__order_tag_tmp": ["source.shopify_source.shopify_graphql.order_tag"], "model.shopify_source.stg_shopify_gql__product_media_tmp": ["source.shopify_source.shopify_graphql.product_media"], "model.shopify_source.stg_shopify_gql__media_image_tmp": ["source.shopify_source.shopify_graphql.media_image"], "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": ["source.shopify_source.shopify_graphql.tender_transaction"], "model.shopify_source.stg_shopify_gql__media_tmp": ["source.shopify_source.shopify_graphql.media"], "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": ["source.shopify_source.shopify_graphql.discount_allocation"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": ["source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify_gql__inventory_level_tmp": ["source.shopify_source.shopify_graphql.inventory_level"], "model.shopify_source.stg_shopify_gql__customer_tag_tmp": ["source.shopify_source.shopify_graphql.customer_tag"], "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": ["source.shopify_source.shopify_graphql.fulfillment_event"], "model.shopify_source.stg_shopify_gql__transaction_tmp": ["source.shopify_source.shopify_graphql.transaction"], "model.shopify_source.stg_shopify_gql__product_tag_tmp": ["source.shopify_source.shopify_graphql.product_tag"], "model.shopify_source.stg_shopify_gql__customer_address_tmp": ["source.shopify_source.shopify_graphql.customer_address"], "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": ["model.shopify.shopify_gql__customer_cohorts"], "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": ["model.shopify.shopify_gql__customer_cohorts"], "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": ["model.shopify.shopify_gql__customer_email_cohorts"], "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": ["model.shopify.shopify_gql__customer_email_cohorts"], "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": ["model.shopify.shopify_gql__orders"], "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": ["model.shopify.shopify_gql__orders"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171": ["model.shopify.shopify_gql__customers"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003": ["model.shopify.shopify_gql__customer_emails"], "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": ["model.shopify.shopify_gql__products"], "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": ["model.shopify.shopify_gql__products"], "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": ["model.shopify.shopify_gql__order_lines"], "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": ["model.shopify.shopify_gql__order_lines"], "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": ["model.shopify.shopify_gql__transactions"], "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": ["model.shopify.shopify_gql__transactions"], "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": ["model.shopify.shopify_gql__discounts"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": ["model.shopify.shopify_gql__daily_shop"], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": ["model.shopify.shopify__customer_cohorts"], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": ["model.shopify.shopify__customer_cohorts"], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": ["model.shopify.shopify__orders"], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": ["model.shopify.shopify__orders"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": ["model.shopify.shopify__customers"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": ["model.shopify.shopify__customer_emails"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": ["model.shopify.shopify__products"], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": ["model.shopify.shopify__order_lines"], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": ["model.shopify.shopify__order_lines"], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": ["model.shopify.shopify__inventory_levels"], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": ["model.shopify.shopify__inventory_levels"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": ["model.shopify.shopify__inventory_levels"], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": ["model.shopify.shopify__discounts"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": ["model.shopify.shopify__daily_shop"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": ["model.shopify.shopify__customers__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": ["model.shopify.shopify__orders__order_line_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": ["model.shopify.int_shopify__emails__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": ["model.shopify.int_shopify__customer_email_rollup"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": ["model.shopify.int_shopify__inventory_level__aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": ["model.shopify.int_shopify__discounts__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": ["model.shopify.int_shopify__discounts__abandoned_checkouts"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": ["model.shopify.int_shopify__order__shipping_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": ["model.shopify.int_shopify__product__order_line_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": ["model.shopify.int_shopify__products_with_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": ["model.shopify.shopify__line_item_enhanced"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1": ["model.shopify.shopify_gql__line_item_enhanced"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": ["model.shopify_source.stg_shopify__customer"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": ["model.shopify_source.stg_shopify__order_line_refund"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": ["model.shopify_source.stg_shopify__order_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": ["model.shopify_source.stg_shopify__order"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": ["model.shopify_source.stg_shopify__product"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": ["model.shopify_source.stg_shopify__product_variant"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": ["model.shopify_source.stg_shopify__transaction"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": ["model.shopify_source.stg_shopify__refund"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": ["model.shopify_source.stg_shopify__order_adjustment"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": ["model.shopify_source.stg_shopify__abandoned_checkout"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": ["model.shopify_source.stg_shopify__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": ["model.shopify_source.stg_shopify__collection"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": ["model.shopify_source.stg_shopify__collection"], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": ["model.shopify_source.stg_shopify__inventory_item"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": ["model.shopify_source.stg_shopify__inventory_item"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": ["model.shopify_source.stg_shopify__inventory_level"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": ["model.shopify_source.stg_shopify__inventory_quantity"], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": ["model.shopify_source.stg_shopify__location"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": ["model.shopify_source.stg_shopify__location"], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": ["model.shopify_source.stg_shopify__media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": ["model.shopify_source.stg_shopify__media"], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": ["model.shopify_source.stg_shopify__media_image"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": ["model.shopify_source.stg_shopify__media_image"], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": ["model.shopify_source.stg_shopify__metafield"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": ["model.shopify_source.stg_shopify__metafield"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": ["model.shopify_source.stg_shopify__order_shipping_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": ["model.shopify_source.stg_shopify__order_shipping_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": ["model.shopify_source.stg_shopify__shop"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": ["model.shopify_source.stg_shopify__shop"], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": ["model.shopify_source.stg_shopify__tender_transaction"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": ["model.shopify_source.stg_shopify__tender_transaction"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": ["model.shopify_source.stg_shopify__fulfillment_event"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": ["model.shopify_source.stg_shopify__fulfillment_event"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": ["model.shopify_source.stg_shopify__tax_line"], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": ["model.shopify_source.stg_shopify__discount_code_app"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": ["model.shopify_source.stg_shopify__discount_code_app"], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": ["model.shopify_source.stg_shopify__discount_code_basic"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": ["model.shopify_source.stg_shopify__discount_code_basic"], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": ["model.shopify_source.stg_shopify__discount_redeem_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": ["model.shopify_source.stg_shopify__discount_redeem_code"], "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": ["model.shopify_source.stg_shopify_gql__customer"], "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": ["model.shopify_source.stg_shopify_gql__customer"], "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": ["model.shopify_source.stg_shopify_gql__order"], "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": ["model.shopify_source.stg_shopify_gql__order"], "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": ["model.shopify_source.stg_shopify_gql__order_line"], "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": ["model.shopify_source.stg_shopify_gql__order_line"], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": ["model.shopify_source.stg_shopify_gql__product"], "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": ["model.shopify_source.stg_shopify_gql__product"], "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": ["model.shopify_source.stg_shopify_gql__product_variant"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": ["model.shopify_source.stg_shopify_gql__product_variant"], "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": ["model.shopify_source.stg_shopify_gql__refund"], "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": ["model.shopify_source.stg_shopify_gql__refund"], "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": ["model.shopify_source.stg_shopify_gql__tax_line"], "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": ["model.shopify_source.stg_shopify_gql__tax_line"], "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": ["model.shopify_source.stg_shopify_gql__transaction"], "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": ["model.shopify_source.stg_shopify_gql__transaction"], "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": ["model.shopify_source.stg_shopify_gql__customer_visit"], "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": ["model.shopify_source.stg_shopify_gql__customer_visit"], "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": [], "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": [], "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": ["model.shopify_source.stg_shopify_gql__customer_address"], "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": ["model.shopify_source.stg_shopify_gql__customer_address"], "source.shopify_source.shopify.order": [], "source.shopify_source.shopify.customer": [], "source.shopify_source.shopify.order_line": [], "source.shopify_source.shopify.order_line_refund": [], "source.shopify_source.shopify.product": [], "source.shopify_source.shopify.product_variant": [], "source.shopify_source.shopify.transaction": [], "source.shopify_source.shopify.refund": [], "source.shopify_source.shopify.order_adjustment": [], "source.shopify_source.shopify.abandoned_checkout": [], "source.shopify_source.shopify.collection_product": [], "source.shopify_source.shopify.collection": [], "source.shopify_source.shopify.customer_tag": [], "source.shopify_source.shopify.fulfillment": [], "source.shopify_source.shopify.inventory_item": [], "source.shopify_source.shopify.inventory_level": [], "source.shopify_source.shopify.inventory_quantity": [], "source.shopify_source.shopify.location": [], "source.shopify_source.shopify.metafield": [], "source.shopify_source.shopify.order_note_attribute": [], "source.shopify_source.shopify.order_shipping_line": [], "source.shopify_source.shopify.order_shipping_tax_line": [], "source.shopify_source.shopify.order_tag": [], "source.shopify_source.shopify.order_url_tag": [], "source.shopify_source.shopify.media": [], "source.shopify_source.shopify.media_image": [], "source.shopify_source.shopify.product_media": [], "source.shopify_source.shopify.product_variant_media": [], "source.shopify_source.shopify.product_tag": [], "source.shopify_source.shopify.shop": [], "source.shopify_source.shopify.tender_transaction": [], "source.shopify_source.shopify.abandoned_checkout_discount_code": [], "source.shopify_source.shopify.order_discount_code": [], "source.shopify_source.shopify.abandoned_checkout_shipping_line": [], "source.shopify_source.shopify.fulfillment_event": [], "source.shopify_source.shopify.tax_line": [], "source.shopify_source.shopify.discount_allocation": [], "source.shopify_source.shopify.discount_application": [], "source.shopify_source.shopify.discount_code_app": [], "source.shopify_source.shopify.discount_code_basic": [], "source.shopify_source.shopify.discount_code_bxgy": [], "source.shopify_source.shopify.discount_code_free_shipping": [], "source.shopify_source.shopify.discount_redeem_code": [], "source.shopify_source.shopify_graphql.order": [], "source.shopify_source.shopify_graphql.customer": [], "source.shopify_source.shopify_graphql.order_line": [], "source.shopify_source.shopify_graphql.order_line_refund": [], "source.shopify_source.shopify_graphql.product": [], "source.shopify_source.shopify_graphql.product_variant": [], "source.shopify_source.shopify_graphql.transaction": [], "source.shopify_source.shopify_graphql.refund": [], "source.shopify_source.shopify_graphql.order_adjustment": [], "source.shopify_source.shopify_graphql.abandoned_checkout": [], "source.shopify_source.shopify_graphql.collection_product": [], "source.shopify_source.shopify_graphql.collection": [], "source.shopify_source.shopify_graphql.customer_tag": [], "source.shopify_source.shopify_graphql.fulfillment": [], "source.shopify_source.shopify_graphql.inventory_item": [], "source.shopify_source.shopify_graphql.inventory_level": [], "source.shopify_source.shopify_graphql.inventory_quantity": [], "source.shopify_source.shopify_graphql.location": [], "source.shopify_source.shopify_graphql.metafield": [], "source.shopify_source.shopify_graphql.order_note_attribute": [], "source.shopify_source.shopify_graphql.order_shipping_line": [], "source.shopify_source.shopify_graphql.order_shipping_tax_line": [], "source.shopify_source.shopify_graphql.order_tag": [], "source.shopify_source.shopify_graphql.media": [], "source.shopify_source.shopify_graphql.media_image": [], "source.shopify_source.shopify_graphql.product_media": [], "source.shopify_source.shopify_graphql.product_variant_media": [], "source.shopify_source.shopify_graphql.product_tag": [], "source.shopify_source.shopify_graphql.shop": [], "source.shopify_source.shopify_graphql.tender_transaction": [], "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": [], "source.shopify_source.shopify_graphql.order_discount_code": [], "source.shopify_source.shopify_graphql.fulfillment_event": [], "source.shopify_source.shopify_graphql.tax_line": [], "source.shopify_source.shopify_graphql.discount_allocation": [], "source.shopify_source.shopify_graphql.discount_application": [], "source.shopify_source.shopify_graphql.discount_code_app": [], "source.shopify_source.shopify_graphql.discount_code_basic": [], "source.shopify_source.shopify_graphql.discount_code_bxgy": [], "source.shopify_source.shopify_graphql.discount_code_free_shipping": [], "source.shopify_source.shopify_graphql.discount_redeem_code": [], "source.shopify_source.shopify_graphql.fulfillment_tracking_info": [], "source.shopify_source.shopify_graphql.customer_visit": [], "source.shopify_source.shopify_graphql.fulfillment_order_line_item": [], "source.shopify_source.shopify_graphql.customer_address": []}, "child_map": {"seed.shopify_integration_tests.shopify_gql_product_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_metafield_data": [], "seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_product_data": [], "seed.shopify_integration_tests.shopify_gql_customer_address_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_customer_data": [], "seed.shopify_integration_tests.shopify_gql_customer_visit_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_media_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_gql_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_data": [], "seed.shopify_integration_tests.shopify_gql_order_data": [], "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_refund_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_gql_collection_rule_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_item_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_gql_location_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_gql_shop_data": [], "seed.shopify_integration_tests.shopify_gql_customer_tag_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_collection_data": [], "seed.shopify_integration_tests.shopify_gql_discount_application_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_level_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_media_image_data": [], "model.shopify.shopify__calendar": ["model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "model.shopify.shopify__daily_shop", "model.shopify.shopify_gql__customer_cohorts", "model.shopify.shopify_gql__customer_email_cohorts", "model.shopify.shopify_gql__daily_shop"], "model.shopify.shopify__customer_cohorts": ["test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a"], "model.shopify.shopify__customer_email_cohorts": ["test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182"], "model.shopify.shopify__inventory_levels": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606", "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0"], "model.shopify.shopify__discounts": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f", "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f"], "model.shopify.shopify__customers": ["model.shopify.shopify__customer_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469"], "model.shopify.shopify__orders": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51"], "model.shopify.shopify__transactions": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981"], "model.shopify.shopify__order_lines": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__product__order_line_aggregates", "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e"], "model.shopify.shopify__products": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a"], "model.shopify.shopify__daily_shop": ["test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f"], "model.shopify.shopify__customer_emails": ["model.shopify.shopify__customer_email_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__inventory_levels", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__products", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify.shopify__products", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify.shopify__discounts"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__orders", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify.shopify__customer_emails", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda"], "model.shopify.shopify__orders__order_refunds": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify.shopify__discounts", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__customer_emails", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a"], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__discounts", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__customers", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9"], "model.shopify.shopify__product_variant_metafields": [], "model.shopify.shopify__order_metafields": [], "model.shopify.shopify__product_metafields": [], "model.shopify.shopify__customer_metafields": [], "model.shopify.shopify__shop_metafields": [], "model.shopify.shopify__collection_metafields": [], "model.shopify.shopify__line_item_enhanced": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae"], "model.shopify.shopify_gql__customer_email_cohorts": ["test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f", "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27"], "model.shopify.shopify_gql__customers": ["model.shopify.shopify_gql__customer_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171"], "model.shopify.shopify_gql__order_lines": ["model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__product_order_line_aggregates", "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db", "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4"], "model.shopify.shopify_gql__transactions": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d", "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c"], "model.shopify.shopify_gql__customer_cohorts": ["test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2", "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c"], "model.shopify.shopify_gql__discounts": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92", "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264", "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994", "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5"], "model.shopify.shopify_gql__inventory_levels": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b", "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957", "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e"], "model.shopify.shopify_gql__customer_emails": ["model.shopify.shopify_gql__customer_email_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003"], "model.shopify.shopify_gql__daily_shop": ["test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8"], "model.shopify.shopify_gql__products": ["test.shopify.not_null_shopify_gql__products_unique_key.4982d88497", "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326"], "model.shopify.shopify_gql__orders": ["model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.int_shopify_gql__product_order_line_aggregates", "model.shopify.shopify_gql__customer_cohorts", "model.shopify.shopify_gql__customer_email_cohorts", "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041", "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077"], "model.shopify.int_shopify_gql__discount_code_enriched": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__products_with_aggregates": ["model.shopify.shopify_gql__products"], "model.shopify.int_shopify_gql__customers_order_aggregates": ["model.shopify.shopify_gql__customers"], "model.shopify.int_shopify_gql__daily_orders": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__emails_order_aggregates": ["model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__order_shipping_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__line_item_enhanced"], "model.shopify.int_shopify_gql__order_fulfillment_aggregates": ["model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__product_order_line_aggregates": ["model.shopify.shopify_gql__products"], "model.shopify.int_shopify_gql__orders_order_line_aggregates": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__discounts_order_aggregates": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__daily_fulfillment": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__customer_email_rollup": ["model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__orders_order_refunds": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__daily_abandoned_checkouts": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__inventory_level_aggregates": ["model.shopify.shopify_gql__inventory_levels"], "model.shopify.int_shopify_gql__order_adjustment": ["model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__order_discount_code": ["model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__order": ["model.shopify.shopify_gql__order_metafields", "model.shopify.shopify_gql__orders", "model.shopify.shopify_gql__transactions"], "model.shopify.int_shopify_gql__product_variant": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__product_variant_metafields"], "model.shopify.int_shopify_gql__collection": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__collection_metafields"], "model.shopify.int_shopify_gql__abandoned_checkout": ["model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__customer": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.shopify_gql__customer_metafields", "model.shopify.shopify_gql__customers"], "model.shopify.int_shopify_gql__order_line": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.shopify_gql__order_lines"], "model.shopify.shopify_gql__product_metafields": [], "model.shopify.shopify_gql__collection_metafields": [], "model.shopify.shopify_gql__customer_metafields": [], "model.shopify.shopify_gql__shop_metafields": [], "model.shopify.shopify_gql__order_metafields": [], "model.shopify.shopify_gql__product_variant_metafields": [], "model.shopify.shopify_gql__line_item_enhanced": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933", "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613"], "model.shopify_source.stg_shopify__discount_allocation": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300", "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330"], "model.shopify_source.stg_shopify__order": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_metafields", "model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1"], "model.shopify_source.stg_shopify__transaction": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__transactions", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5", "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__orders", "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a", "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e"], "model.shopify_source.stg_shopify__metafield": ["model.shopify.shopify__collection_metafields", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__order_metafields", "model.shopify.shopify__product_metafields", "model.shopify.shopify__product_variant_metafields", "model.shopify.shopify__shop_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca", "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7", "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify.shopify__transactions", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b", "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295"], "model.shopify_source.stg_shopify__shop": ["model.shopify.shopify__daily_shop", "model.shopify.shopify__shop_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415", "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c", "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb"], "model.shopify_source.stg_shopify__customer": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__customers", "model.shopify.shopify__line_item_enhanced", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84", "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe"], "model.shopify_source.stg_shopify__collection": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__collection_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878", "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0"], "model.shopify_source.stg_shopify__media": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f", "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c", "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc", "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "model.shopify.shopify__product_variant_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26", "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d"], "model.shopify_source.stg_shopify__media_image": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5", "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b"], "model.shopify_source.stg_shopify__order_line": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032", "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify.int_shopify__daily_fulfillment", "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a"], "model.shopify_source.stg_shopify__order_note_attribute": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0", "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_refunds", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29"], "model.shopify_source.stg_shopify__refund": ["model.shopify.shopify__orders__order_refunds", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.shopify__customers", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f", "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd"], "model.shopify_source.stg_shopify__product": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__product_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07", "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6"], "model.shopify_source.stg_shopify__location": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9", "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf", "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1"], "model.shopify_source.stg_shopify__product_media": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea", "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19", "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.shopify__customer_emails", "model.shopify.shopify__customers", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c", "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify.int_shopify__discounts__abandoned_checkouts", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify.int_shopify__discounts__abandoned_checkouts", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e", "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1"], "model.shopify_source.stg_shopify__metafield_tmp": ["model.shopify_source.stg_shopify__metafield"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["model.shopify_source.stg_shopify__fulfillment"], "model.shopify_source.stg_shopify__product_variant_tmp": ["model.shopify_source.stg_shopify__product_variant"], "model.shopify_source.stg_shopify__collection_tmp": ["model.shopify_source.stg_shopify__collection"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["model.shopify_source.stg_shopify__order_discount_code"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["model.shopify_source.stg_shopify__order_url_tag"], "model.shopify_source.stg_shopify__product_tmp": ["model.shopify_source.stg_shopify__product"], "model.shopify_source.stg_shopify__order_tag_tmp": ["model.shopify_source.stg_shopify__order_tag"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["model.shopify_source.stg_shopify__inventory_quantity"], "model.shopify_source.stg_shopify__tax_line_tmp": ["model.shopify_source.stg_shopify__tax_line"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["model.shopify_source.stg_shopify__customer_tag"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["model.shopify_source.stg_shopify__discount_allocation"], "model.shopify_source.stg_shopify__media_image_tmp": ["model.shopify_source.stg_shopify__media_image"], "model.shopify_source.stg_shopify__media_tmp": ["model.shopify_source.stg_shopify__media"], "model.shopify_source.stg_shopify__refund_tmp": ["model.shopify_source.stg_shopify__refund"], "model.shopify_source.stg_shopify__location_tmp": ["model.shopify_source.stg_shopify__location"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["model.shopify_source.stg_shopify__inventory_level"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_line"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["model.shopify_source.stg_shopify__order_line_refund"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["model.shopify_source.stg_shopify__discount_code_app"], "model.shopify_source.stg_shopify__shop_tmp": ["model.shopify_source.stg_shopify__shop"], "model.shopify_source.stg_shopify__transaction_tmp": ["model.shopify_source.stg_shopify__transaction"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["model.shopify_source.stg_shopify__product_variant_media"], "model.shopify_source.stg_shopify__order_line_tmp": ["model.shopify_source.stg_shopify__order_line"], "model.shopify_source.stg_shopify__product_media_tmp": ["model.shopify_source.stg_shopify__product_media"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["model.shopify_source.stg_shopify__discount_code_basic"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["model.shopify_source.stg_shopify__order_note_attribute"], "model.shopify_source.stg_shopify__discount_application_tmp": ["model.shopify_source.stg_shopify__discount_application"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["model.shopify_source.stg_shopify__tender_transaction"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "model.shopify_source.stg_shopify__product_tag_tmp": ["model.shopify_source.stg_shopify__product_tag"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["model.shopify_source.stg_shopify__inventory_item"], "model.shopify_source.stg_shopify__order_tmp": ["model.shopify_source.stg_shopify__order"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify_source.stg_shopify__customer_tmp": ["model.shopify_source.stg_shopify__customer"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["model.shopify_source.stg_shopify__order_adjustment"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__collection_product_tmp": ["model.shopify_source.stg_shopify__collection_product"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify_source.stg_shopify_gql__media": ["test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a", "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac", "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989"], "model.shopify_source.stg_shopify_gql__customer_visit": ["model.shopify.int_shopify_gql__order", "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89", "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2"], "model.shopify_source.stg_shopify_gql__discount_code_app": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2", "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c", "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981"], "model.shopify_source.stg_shopify_gql__customer_tag": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.shopify_gql__customers", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8", "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740"], "model.shopify_source.stg_shopify_gql__order": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.int_shopify_gql__order", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b", "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36"], "model.shopify_source.stg_shopify_gql__order_line": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43", "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85"], "model.shopify_source.stg_shopify_gql__inventory_item": ["model.shopify.int_shopify_gql__product_variant", "model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8", "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91", "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8", "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": ["model.shopify.int_shopify_gql__order_line", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c", "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12"], "model.shopify_source.stg_shopify_gql__order_shipping_line": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd", "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478"], "model.shopify_source.stg_shopify_gql__product": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__inventory_levels", "model.shopify.shopify_gql__line_item_enhanced", "model.shopify.shopify_gql__product_metafields", "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb", "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a"], "model.shopify_source.stg_shopify_gql__fulfillment": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a", "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578"], "model.shopify_source.stg_shopify_gql__discount_allocation": ["test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a", "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e", "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04", "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685"], "model.shopify_source.stg_shopify_gql__tax_line": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173", "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33"], "model.shopify_source.stg_shopify_gql__order_line_refund": ["model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e", "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20"], "model.shopify_source.stg_shopify_gql__inventory_level": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd", "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd", "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570"], "model.shopify_source.stg_shopify_gql__shop": ["model.shopify.shopify_gql__daily_shop", "model.shopify.shopify_gql__shop_metafields", "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531", "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075", "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": ["model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398", "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76"], "model.shopify_source.stg_shopify_gql__location": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be", "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03", "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e"], "model.shopify_source.stg_shopify_gql__transaction": ["model.shopify.shopify_gql__line_item_enhanced", "model.shopify.shopify_gql__transactions", "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb", "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd"], "model.shopify_source.stg_shopify_gql__product_media": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb", "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49", "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800", "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b"], "model.shopify_source.stg_shopify_gql__product_variant": ["model.shopify.int_shopify_gql__product_variant", "model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3", "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735"], "model.shopify_source.stg_shopify_gql__media_image": ["test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141", "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4", "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6"], "model.shopify_source.stg_shopify_gql__abandoned_checkout": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.shopify_gql__customers", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f", "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0"], "model.shopify_source.stg_shopify_gql__collection": ["model.shopify.int_shopify_gql__collection", "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6", "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87", "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e"], "model.shopify_source.stg_shopify_gql__refund": ["model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__orders_order_refunds", "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a", "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c"], "model.shopify_source.stg_shopify_gql__discount_application": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.int_shopify_gql__order_discount_code", "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4", "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0", "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af", "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": ["model.shopify.int_shopify_gql__order_fulfillment_aggregates", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8", "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e"], "model.shopify_source.stg_shopify_gql__order_discount_code": ["model.shopify.int_shopify_gql__order_discount_code", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8", "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7"], "model.shopify_source.stg_shopify_gql__discount_code_basic": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc", "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec", "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb"], "model.shopify_source.stg_shopify_gql__order_note_attribute": ["test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e", "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc", "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6", "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c"], "model.shopify_source.stg_shopify_gql__tender_transaction": ["model.shopify.shopify_gql__transactions", "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7", "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93", "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475"], "model.shopify_source.stg_shopify_gql__customer": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7", "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271"], "model.shopify_source.stg_shopify_gql__product_tag": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd", "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c", "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984", "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0"], "model.shopify_source.stg_shopify_gql__order_tag": ["model.shopify.shopify_gql__orders", "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661", "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290", "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479", "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461"], "model.shopify_source.stg_shopify_gql__metafield": ["model.shopify.shopify_gql__collection_metafields", "model.shopify.shopify_gql__customer_metafields", "model.shopify.shopify_gql__order_metafields", "model.shopify.shopify_gql__product_metafields", "model.shopify.shopify_gql__product_variant_metafields", "model.shopify.shopify_gql__shop_metafields", "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5", "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff", "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679"], "model.shopify_source.stg_shopify_gql__product_variant_media": ["model.shopify.shopify_gql__inventory_levels", "model.shopify.shopify_gql__order_lines", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae", "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894"], "model.shopify_source.stg_shopify_gql__collection_product": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16", "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3", "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67", "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066"], "model.shopify_source.stg_shopify_gql__inventory_quantity": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1", "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa"], "model.shopify_source.stg_shopify_gql__fulfillment_event": ["model.shopify.int_shopify_gql__daily_fulfillment", "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c", "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4", "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b", "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232"], "model.shopify_source.stg_shopify_gql__customer_address": ["model.shopify.int_shopify_gql__customer", "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c", "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04", "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565", "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089"], "model.shopify_source.stg_shopify_gql__order_adjustment": ["model.shopify.int_shopify_gql__order_adjustment", "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c", "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861"], "model.shopify_source.stg_shopify_gql__discount_redeem_code": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3", "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742", "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f"], "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "model.shopify_source.stg_shopify_gql__refund_tmp": ["model.shopify_source.stg_shopify_gql__refund"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "model.shopify_source.stg_shopify_gql__customer_tmp": ["model.shopify_source.stg_shopify_gql__customer"], "model.shopify_source.stg_shopify_gql__product_tmp": ["model.shopify_source.stg_shopify_gql__product"], "model.shopify_source.stg_shopify_gql__customer_visit_tmp": ["model.shopify_source.stg_shopify_gql__customer_visit"], "model.shopify_source.stg_shopify_gql__shop_tmp": ["model.shopify_source.stg_shopify_gql__shop"], "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "model.shopify_source.stg_shopify_gql__collection_tmp": ["model.shopify_source.stg_shopify_gql__collection"], "model.shopify_source.stg_shopify_gql__inventory_item_tmp": ["model.shopify_source.stg_shopify_gql__inventory_item"], "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "model.shopify_source.stg_shopify_gql__discount_application_tmp": ["model.shopify_source.stg_shopify_gql__discount_application"], "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "model.shopify_source.stg_shopify_gql__metafield_tmp": ["model.shopify_source.stg_shopify_gql__metafield"], "model.shopify_source.stg_shopify_gql__order_line_tmp": ["model.shopify_source.stg_shopify_gql__order_line"], "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "model.shopify_source.stg_shopify_gql__product_variant_tmp": ["model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify_source.stg_shopify_gql__order_tmp": ["model.shopify_source.stg_shopify_gql__order"], "model.shopify_source.stg_shopify_gql__location_tmp": ["model.shopify_source.stg_shopify_gql__location"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "model.shopify_source.stg_shopify_gql__tax_line_tmp": ["model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "model.shopify_source.stg_shopify_gql__collection_product_tmp": ["model.shopify_source.stg_shopify_gql__collection_product"], "model.shopify_source.stg_shopify_gql__fulfillment_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "model.shopify_source.stg_shopify_gql__order_tag_tmp": ["model.shopify_source.stg_shopify_gql__order_tag"], "model.shopify_source.stg_shopify_gql__product_media_tmp": ["model.shopify_source.stg_shopify_gql__product_media"], "model.shopify_source.stg_shopify_gql__media_image_tmp": ["model.shopify_source.stg_shopify_gql__media_image"], "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "model.shopify_source.stg_shopify_gql__media_tmp": ["model.shopify_source.stg_shopify_gql__media"], "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify_gql__inventory_level_tmp": ["model.shopify_source.stg_shopify_gql__inventory_level"], "model.shopify_source.stg_shopify_gql__customer_tag_tmp": ["model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "model.shopify_source.stg_shopify_gql__transaction_tmp": ["model.shopify_source.stg_shopify_gql__transaction"], "model.shopify_source.stg_shopify_gql__product_tag_tmp": ["model.shopify_source.stg_shopify_gql__product_tag"], "model.shopify_source.stg_shopify_gql__customer_address_tmp": ["model.shopify_source.stg_shopify_gql__customer_address"], "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": [], "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": [], "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": [], "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": [], "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": [], "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003": [], "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": [], "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": [], "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": [], "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": [], "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": [], "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": [], "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": [], "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b": [], "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": [], "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": [], "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92": [], "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": [], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": [], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": [], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": [], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": [], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": [], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": [], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": [], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": [], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": [], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": [], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": [], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": [], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": [], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": [], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": [], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": [], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": [], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": [], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": [], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": [], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": [], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": [], "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": [], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": [], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": [], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": [], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": [], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": [], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": [], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": [], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": [], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": [], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": [], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": [], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": [], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": [], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": [], "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": [], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": [], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": [], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": [], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": [], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": [], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": [], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": [], "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": [], "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": [], "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": [], "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": [], "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": [], "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": [], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": [], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": [], "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": [], "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": [], "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": [], "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": [], "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": [], "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": [], "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": [], "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": [], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": [], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": [], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": [], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": [], "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": [], "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd": [], "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": [], "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": [], "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": [], "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": [], "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": [], "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": [], "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": [], "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": [], "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": [], "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": [], "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": [], "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": [], "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": [], "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": [], "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": [], "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": [], "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": [], "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": [], "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": [], "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": [], "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": [], "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": [], "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": [], "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": [], "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": [], "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": [], "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": [], "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": [], "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": [], "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": [], "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": [], "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": [], "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": [], "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": [], "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": [], "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": [], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": [], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": [], "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": [], "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": [], "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": [], "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": [], "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": [], "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": [], "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": [], "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": [], "source.shopify_source.shopify.order": ["model.shopify_source.stg_shopify__order_tmp"], "source.shopify_source.shopify.customer": ["model.shopify_source.stg_shopify__customer_tmp"], "source.shopify_source.shopify.order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "source.shopify_source.shopify.order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "source.shopify_source.shopify.product": ["model.shopify_source.stg_shopify__product_tmp"], "source.shopify_source.shopify.product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "source.shopify_source.shopify.transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "source.shopify_source.shopify.refund": ["model.shopify_source.stg_shopify__refund_tmp"], "source.shopify_source.shopify.order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "source.shopify_source.shopify.abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "source.shopify_source.shopify.collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "source.shopify_source.shopify.collection": ["model.shopify_source.stg_shopify__collection_tmp"], "source.shopify_source.shopify.customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "source.shopify_source.shopify.fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "source.shopify_source.shopify.inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "source.shopify_source.shopify.inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "source.shopify_source.shopify.inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "source.shopify_source.shopify.location": ["model.shopify_source.stg_shopify__location_tmp"], "source.shopify_source.shopify.metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "source.shopify_source.shopify.order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "source.shopify_source.shopify.order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "source.shopify_source.shopify.order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "source.shopify_source.shopify.order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "source.shopify_source.shopify.order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "source.shopify_source.shopify.media": ["model.shopify_source.stg_shopify__media_tmp"], "source.shopify_source.shopify.media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "source.shopify_source.shopify.product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "source.shopify_source.shopify.product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "source.shopify_source.shopify.product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "source.shopify_source.shopify.shop": ["model.shopify_source.stg_shopify__shop_tmp"], "source.shopify_source.shopify.tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "source.shopify_source.shopify.abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "source.shopify_source.shopify.order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "source.shopify_source.shopify.abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "source.shopify_source.shopify.fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "source.shopify_source.shopify.tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "source.shopify_source.shopify.discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "source.shopify_source.shopify.discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "source.shopify_source.shopify.discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "source.shopify_source.shopify.discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "source.shopify_source.shopify.discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "source.shopify_source.shopify.discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "source.shopify_source.shopify.discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"], "source.shopify_source.shopify_graphql.order": ["model.shopify_source.stg_shopify_gql__order_tmp"], "source.shopify_source.shopify_graphql.customer": ["model.shopify_source.stg_shopify_gql__customer_tmp"], "source.shopify_source.shopify_graphql.order_line": ["model.shopify_source.stg_shopify_gql__order_line_tmp"], "source.shopify_source.shopify_graphql.order_line_refund": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"], "source.shopify_source.shopify_graphql.product": ["model.shopify_source.stg_shopify_gql__product_tmp"], "source.shopify_source.shopify_graphql.product_variant": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"], "source.shopify_source.shopify_graphql.transaction": ["model.shopify_source.stg_shopify_gql__transaction_tmp"], "source.shopify_source.shopify_graphql.refund": ["model.shopify_source.stg_shopify_gql__refund_tmp"], "source.shopify_source.shopify_graphql.order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"], "source.shopify_source.shopify_graphql.abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"], "source.shopify_source.shopify_graphql.collection_product": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"], "source.shopify_source.shopify_graphql.collection": ["model.shopify_source.stg_shopify_gql__collection_tmp"], "source.shopify_source.shopify_graphql.customer_tag": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"], "source.shopify_source.shopify_graphql.fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"], "source.shopify_source.shopify_graphql.inventory_item": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"], "source.shopify_source.shopify_graphql.inventory_level": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"], "source.shopify_source.shopify_graphql.inventory_quantity": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"], "source.shopify_source.shopify_graphql.location": ["model.shopify_source.stg_shopify_gql__location_tmp"], "source.shopify_source.shopify_graphql.metafield": ["model.shopify_source.stg_shopify_gql__metafield_tmp"], "source.shopify_source.shopify_graphql.order_note_attribute": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"], "source.shopify_source.shopify_graphql.order_shipping_line": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"], "source.shopify_source.shopify_graphql.order_shipping_tax_line": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"], "source.shopify_source.shopify_graphql.order_tag": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"], "source.shopify_source.shopify_graphql.media": ["model.shopify_source.stg_shopify_gql__media_tmp"], "source.shopify_source.shopify_graphql.media_image": ["model.shopify_source.stg_shopify_gql__media_image_tmp"], "source.shopify_source.shopify_graphql.product_media": ["model.shopify_source.stg_shopify_gql__product_media_tmp"], "source.shopify_source.shopify_graphql.product_variant_media": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"], "source.shopify_source.shopify_graphql.product_tag": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"], "source.shopify_source.shopify_graphql.shop": ["model.shopify_source.stg_shopify_gql__shop_tmp"], "source.shopify_source.shopify_graphql.tender_transaction": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"], "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "source.shopify_source.shopify_graphql.order_discount_code": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"], "source.shopify_source.shopify_graphql.fulfillment_event": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"], "source.shopify_source.shopify_graphql.tax_line": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"], "source.shopify_source.shopify_graphql.discount_allocation": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"], "source.shopify_source.shopify_graphql.discount_application": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"], "source.shopify_source.shopify_graphql.discount_code_app": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"], "source.shopify_source.shopify_graphql.discount_code_basic": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"], "source.shopify_source.shopify_graphql.discount_code_bxgy": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"], "source.shopify_source.shopify_graphql.discount_code_free_shipping": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"], "source.shopify_source.shopify_graphql.discount_redeem_code": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"], "source.shopify_source.shopify_graphql.fulfillment_tracking_info": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"], "source.shopify_source.shopify_graphql.customer_visit": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"], "source.shopify_source.shopify_graphql.fulfillment_order_line_item": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"], "source.shopify_source.shopify_graphql.customer_address": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}, "unit_tests": {}} \ No newline at end of file From ff60d334ba7c17d44216a9823f8fb76a3b9aabbe Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Wed, 6 Aug 2025 15:08:50 -0400 Subject: [PATCH 23/34] limit to only relevant int models as views --- README.md | 2 +- dbt_project.yml | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 40f5e76f..915ccd03 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Curious what these tables can do? Check out example visualizations from the [sho

### Materialized Models -Each Quickstart transformation job run materializes 107 models if all components of this data model are enabled and a REST API-based Shopify schema is being used. It will materialize 114 models if run on a GraphQL API-based schema. This count includes all staging, intermediate, and final models materialized as `view`, `table`, or `incremental`. +Each Quickstart transformation job run materializes 107 models if all components of this data model are enabled and a REST API-based Shopify schema is being used. It will materialize 117 models if run on a GraphQL API-based schema. This count includes all staging, intermediate, and final models materialized as `view`, `table`, or `incremental`. ## How do I use the dbt package? diff --git a/dbt_project.yml b/dbt_project.yml index d248927c..71c1dcb8 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -17,7 +17,15 @@ models: int_shopify_gql__customer_email_rollup: +materialized: view # so we can use the dbt_utils.star macro base: - +materialized: view # so we can use the dbt_utils.star macro + +materialized: ephemeral + int_shopify_gql__customer: + +materialized: view # so we can use the dbt_utils.star and dbt_utils.get_column_values macros + int_shopify_gql__collection: + +materialized: view # so we can use the dbt_utils.star and dbt_utils.get_column_values macros + int_shopify_gql__order: + +materialized: view # so we can use the dbt_utils.star and dbt_utils.get_column_values macros + int_shopify_gql__product_variant: + +materialized: view # so we can use the dbt_utils.star and dbt_utils.get_column_values macros vars: shopify: From 0bc30677f749dc816294ec3421d6477b52d5f181 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 6 Aug 2025 19:12:36 +0000 Subject: [PATCH 24/34] Generate dbt docs via GitHub Actions --- docs/catalog.json | 2 +- docs/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/catalog.json b/docs/catalog.json index d3839553..ab66323f 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.10.6", "generated_at": "2025-08-06T18:36:46.274690Z", "invocation_id": "7b951da8-da73-4286-8e42-6449333dcaa5", "invocation_started_at": "2025-08-06T18:36:31.067967Z", "env": {}}, "nodes": {"seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_integration_tests.shopify_abandoned_checkout_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data"}, "seed.shopify_integration_tests.shopify_collection_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_data"}, "seed.shopify_integration_tests.shopify_collection_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data"}, "seed.shopify_integration_tests.shopify_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_data"}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data"}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_integration_tests.shopify_discount_allocation_data"}, "seed.shopify_integration_tests.shopify_discount_application_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data"}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data"}, "seed.shopify_integration_tests.shopify_discount_code_basic_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data"}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data"}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data"}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_integration_tests.shopify_discount_redeem_code_data"}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data"}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data"}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_integration_tests.shopify_gql_abandoned_checkout_data"}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data"}, "seed.shopify_integration_tests.shopify_gql_collection_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_integration_tests.shopify_gql_collection_data"}, "seed.shopify_integration_tests.shopify_gql_collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_collection_product"}, "seed.shopify_integration_tests.shopify_gql_collection_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_collection_product_data"}, "seed.shopify_integration_tests.shopify_gql_collection_rule_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_rule_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "condition": {"type": "text", "index": 4, "name": "condition", "comment": null}, "relation": {"type": "text", "index": 5, "name": "relation", "comment": null}, "columns": {"type": "text", "index": 6, "name": "columns", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_rule_data"}, "seed.shopify_integration_tests.shopify_gql_customer_address_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_address_data"}, "seed.shopify_integration_tests.shopify_gql_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_data"}, "seed.shopify_integration_tests.shopify_gql_customer_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_tag_data"}, "seed.shopify_integration_tests.shopify_gql_customer_visit_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_visit_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_visit_data"}, "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_integration_tests.shopify_gql_discount_allocation_data"}, "seed.shopify_integration_tests.shopify_gql_discount_application_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_integration_tests.shopify_gql_discount_application_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_app_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_basic_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_bxgy_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data"}, "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_integration_tests.shopify_gql_discount_redeem_code_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_integration_tests.shopify_gql_fulfillment_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_integration_tests.shopify_gql_inventory_item_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_level_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_integration_tests.shopify_gql_inventory_level_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_integration_tests.shopify_gql_inventory_quantity_data"}, "seed.shopify_integration_tests.shopify_gql_location_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_location_data"}, "seed.shopify_integration_tests.shopify_gql_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_integration_tests.shopify_gql_media_data"}, "seed.shopify_integration_tests.shopify_gql_media_image_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_media_image_data"}, "seed.shopify_integration_tests.shopify_gql_metafield_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_metafield_data"}, "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_adjustment_data"}, "seed.shopify_integration_tests.shopify_gql_order_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_integration_tests.shopify_gql_order_data"}, "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_integration_tests.shopify_gql_order_discount_code_data"}, "seed.shopify_integration_tests.shopify_gql_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_integration_tests.shopify_gql_order_line_refund_data"}, "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data"}, "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_tag_data"}, "seed.shopify_integration_tests.shopify_gql_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_product_data"}, "seed.shopify_integration_tests.shopify_gql_product_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_product_media_data"}, "seed.shopify_integration_tests.shopify_gql_product_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_product_tag_data"}, "seed.shopify_integration_tests.shopify_gql_product_variant_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_integration_tests.shopify_gql_product_variant_data"}, "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_integration_tests.shopify_gql_product_variant_media_data"}, "seed.shopify_integration_tests.shopify_gql_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_integration_tests.shopify_gql_refund_data"}, "seed.shopify_integration_tests.shopify_gql_shop_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_shop_data"}, "seed.shopify_integration_tests.shopify_gql_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_tax_line_data"}, "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_integration_tests.shopify_gql_tender_transaction_data"}, "seed.shopify_integration_tests.shopify_gql_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_transaction_data"}, "seed.shopify_integration_tests.shopify_inventory_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data"}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data"}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data"}, "seed.shopify_integration_tests.shopify_location_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_integration_tests.shopify_location_data"}, "seed.shopify_integration_tests.shopify_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_data"}, "seed.shopify_integration_tests.shopify_media_image_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_image_data"}, "seed.shopify_integration_tests.shopify_metafield_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_metafield_data"}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data"}, "seed.shopify_integration_tests.shopify_order_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_data"}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data"}, "seed.shopify_integration_tests.shopify_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_data"}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data"}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data"}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data"}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data"}, "seed.shopify_integration_tests.shopify_order_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data"}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data"}, "seed.shopify_integration_tests.shopify_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_data"}, "seed.shopify_integration_tests.shopify_product_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_media_data"}, "seed.shopify_integration_tests.shopify_product_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data"}, "seed.shopify_integration_tests.shopify_product_variant_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data"}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_variant_media_data"}, "seed.shopify_integration_tests.shopify_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_integration_tests.shopify_refund_data"}, "seed.shopify_integration_tests.shopify_shop_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_shop_data"}, "seed.shopify_integration_tests.shopify_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data"}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_integration_tests.shopify_tender_transaction_data"}, "seed.shopify_integration_tests.shopify_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_transaction_data"}, "model.shopify.int_shopify__customer_email_rollup": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify__customer_email_rollup"}, "model.shopify.int_shopify_gql__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "checkout_id": {"type": "integer", "index": 20, "name": "checkout_id", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "note": {"type": "text", "index": 22, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 23, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 24, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 25, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 26, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 27, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 28, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 29, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 30, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 31, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 32, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 33, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 34, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 35, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 36, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 37, "name": "shipping_address_zip", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 38, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 39, "name": "subtotal_price_shop_currency_code", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_pres_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 42, "name": "has_taxes_included", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 43, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 44, "name": "total_discount_shop_currency_code", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_pres_currency_code", "comment": null}, "total_duties_shop_amount": {"type": "double precision", "index": 47, "name": "total_duties_shop_amount", "comment": null}, "total_duties_shop_currency_code": {"type": "text", "index": 48, "name": "total_duties_shop_currency_code", "comment": null}, "total_duties_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_pres_amount", "comment": null}, "total_duties_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_pres_currency_code", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 51, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_shop_currency_code": {"type": "text", "index": 52, "name": "total_line_items_price_shop_currency_code", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 55, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 56, "name": "total_price_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 59, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 60, "name": "total_tax_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_pres_currency_code", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 63, "name": "completed_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 64, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 65, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 66, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 67, "name": "unique_key", "comment": null}, "email": {"type": "text", "index": 68, "name": "email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__abandoned_checkout"}, "model.shopify.int_shopify_gql__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}, "rules": {"type": "text", "index": 11, "name": "rules", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__collection"}, "model.shopify.int_shopify_gql__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_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.shopify.int_shopify_gql__customer"}, "model.shopify.int_shopify_gql__customer_email_rollup": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__customer_email_rollup", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "account_state": {"type": "text", "index": 15, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 16, "name": "note", "comment": null}, "currency": {"type": "text", "index": 17, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 18, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 19, "name": "marketing_opt_in_level", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_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.shopify.int_shopify_gql__customer_email_rollup"}, "model.shopify.int_shopify_gql__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_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.shopify.int_shopify_gql__order"}, "model.shopify.int_shopify_gql__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "integer", "index": 1, "name": "order_adjustment_id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 3, "name": "amount_pres", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 4, "name": "amount_pres_currency_code", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 6, "name": "amount_shop_currency_code", "comment": null}, "tax_amount_pres": {"type": "double precision", "index": 7, "name": "tax_amount_pres", "comment": null}, "tax_amount_pres_currency_code": {"type": "text", "index": 8, "name": "tax_amount_pres_currency_code", "comment": null}, "tax_amount_shop": {"type": "double precision", "index": 9, "name": "tax_amount_shop", "comment": null}, "tax_amount_shop_currency_code": {"type": "text", "index": 10, "name": "tax_amount_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 11, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 14, "name": "unique_key", "comment": null}, "order_id": {"type": "integer", "index": 15, "name": "order_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.shopify.int_shopify_gql__order_adjustment"}, "model.shopify.int_shopify_gql__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}, "type": {"type": "text", "index": 7, "name": "type", "comment": null}, "value_amount": {"type": "double precision", "index": 8, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 9, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 10, "name": "value_percentage", "comment": null}, "target_type": {"type": "text", "index": 11, "name": "target_type", "comment": null}, "target_selection": {"type": "text", "index": 12, "name": "target_selection", "comment": null}, "allocation_method": {"type": "text", "index": 13, "name": "allocation_method", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__order_discount_code"}, "model.shopify.int_shopify_gql__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}, "pre_tax_price": {"type": "double precision", "index": 27, "name": "pre_tax_price", "comment": null}, "order_line_tax": {"type": "double precision", "index": 28, "name": "order_line_tax", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 29, "name": "fulfillable_quantity", "comment": null}, "weight_unit": {"type": "text", "index": 30, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 31, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__order_line"}, "model.shopify.int_shopify_gql__orders_order_line_aggregates": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_line_aggregates", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "line_item_count": {"type": "bigint", "index": 3, "name": "line_item_count", "comment": null}, "order_total_quantity": {"type": "bigint", "index": 4, "name": "order_total_quantity", "comment": null}, "order_total_tax": {"type": "double precision", "index": 5, "name": "order_total_tax", "comment": null}, "order_total_discount": {"type": "double precision", "index": 6, "name": "order_total_discount", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 8, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_pres_currency_codes": {"type": "text", "index": 9, "name": "total_line_items_price_pres_currency_codes", "comment": null}, "total_line_items_price_shop_currency_codes": {"type": "text", "index": 10, "name": "total_line_items_price_shop_currency_codes", "comment": null}, "order_total_shipping": {"type": "double precision", "index": 11, "name": "order_total_shipping", "comment": null}, "order_total_shipping_with_discounts": {"type": "double precision", "index": 12, "name": "order_total_shipping_with_discounts", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 13, "name": "order_total_shipping_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__orders_order_line_aggregates"}, "model.shopify.int_shopify_gql__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}, "weight": {"type": "double precision", "index": 24, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__product_variant"}, "model.shopify.shopify__calendar": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__calendar", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__calendar"}, "model.shopify.shopify__collection_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__collection_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__collection_metafields"}, "model.shopify.shopify__customer_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "date", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_cohorts"}, "model.shopify.shopify__customer_email_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_email_cohorts"}, "model.shopify.shopify__customer_emails": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_emails", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 21, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_order_value": {"type": "double precision", "index": 24, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 25, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 26, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 27, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 28, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 29, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 30, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 31, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 32, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 33, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 34, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 35, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 36, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 37, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 38, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 39, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_emails"}, "model.shopify.shopify__customer_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "metafield_star_wars_firstname": {"type": "text", "index": 21, "name": "metafield_star_wars_firstname", "comment": null}, "metafield_star_wars_fullname": {"type": "text", "index": 22, "name": "metafield_star_wars_fullname", "comment": null}, "metafield_star_wars_isjedi": {"type": "text", "index": 23, "name": "metafield_star_wars_isjedi", "comment": null}, "metafield_star_wars_lastname": {"type": "text", "index": 24, "name": "metafield_star_wars_lastname", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_metafields"}, "model.shopify.shopify__customers": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customers", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 5, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 9, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 10, "name": "note", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 12, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 13, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 14, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 15, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 19, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_order_timestamp", "comment": null}, "customer_tags": {"type": "text", "index": 22, "name": "customer_tags", "comment": null}, "avg_order_value": {"type": "double precision", "index": 23, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 24, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 25, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 26, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 27, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 28, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 29, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 30, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 31, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 32, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 33, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 34, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 35, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 36, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 37, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 38, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customers"}, "model.shopify.shopify__daily_shop": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__daily_shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "shop_id": {"type": "integer", "index": 2, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "domain": {"type": "text", "index": 4, "name": "domain", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 7, "name": "enabled_presentment_currencies", "comment": null}, "iana_timezone": {"type": "text", "index": 8, "name": "iana_timezone", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "count_orders": {"type": "bigint", "index": 11, "name": "count_orders", "comment": null}, "count_line_items": {"type": "numeric", "index": 12, "name": "count_line_items", "comment": null}, "avg_line_item_count": {"type": "numeric", "index": 13, "name": "avg_line_item_count", "comment": null}, "count_customers": {"type": "bigint", "index": 14, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 15, "name": "count_customer_emails", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 16, "name": "order_adjusted_total", "comment": null}, "avg_order_value": {"type": "double precision", "index": 17, "name": "avg_order_value", "comment": null}, "shipping_cost": {"type": "double precision", "index": 18, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "numeric", "index": 19, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 20, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "numeric", "index": 21, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 22, "name": "refund_total_tax", "comment": null}, "total_discounts": {"type": "double precision", "index": 23, "name": "total_discounts", "comment": null}, "avg_discount": {"type": "double precision", "index": 24, "name": "avg_discount", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 25, "name": "shipping_discount_amount", "comment": null}, "avg_shipping_discount_amount": {"type": "double precision", "index": 26, "name": "avg_shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 27, "name": "percentage_calc_discount_amount", "comment": null}, "avg_percentage_calc_discount_amount": {"type": "double precision", "index": 28, "name": "avg_percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 29, "name": "fixed_amount_discount_amount", "comment": null}, "avg_fixed_amount_discount_amount": {"type": "double precision", "index": 30, "name": "avg_fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "numeric", "index": 31, "name": "count_discount_codes_applied", "comment": null}, "count_locations_ordered_from": {"type": "bigint", "index": 32, "name": "count_locations_ordered_from", "comment": null}, "count_orders_with_discounts": {"type": "bigint", "index": 33, "name": "count_orders_with_discounts", "comment": null}, "count_orders_with_refunds": {"type": "bigint", "index": 34, "name": "count_orders_with_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 36, "name": "last_order_timestamp", "comment": null}, "quantity_sold": {"type": "bigint", "index": 37, "name": "quantity_sold", "comment": null}, "quantity_refunded": {"type": "numeric", "index": 38, "name": "quantity_refunded", "comment": null}, "quantity_net": {"type": "numeric", "index": 39, "name": "quantity_net", "comment": null}, "avg_quantity_sold": {"type": "bigint", "index": 40, "name": "avg_quantity_sold", "comment": null}, "avg_quantity_net": {"type": "numeric", "index": 41, "name": "avg_quantity_net", "comment": null}, "count_variants_sold": {"type": "bigint", "index": 42, "name": "count_variants_sold", "comment": null}, "count_products_sold": {"type": "bigint", "index": 43, "name": "count_products_sold", "comment": null}, "quantity_gift_cards_sold": {"type": "numeric", "index": 44, "name": "quantity_gift_cards_sold", "comment": null}, "quantity_requiring_shipping": {"type": "numeric", "index": 45, "name": "quantity_requiring_shipping", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 46, "name": "count_abandoned_checkouts", "comment": null}, "count_customers_abandoned_checkout": {"type": "bigint", "index": 47, "name": "count_customers_abandoned_checkout", "comment": null}, "count_customer_emails_abandoned_checkout": {"type": "bigint", "index": 48, "name": "count_customer_emails_abandoned_checkout", "comment": null}, "count_fulfillment_attempted_delivery": {"type": "bigint", "index": 49, "name": "count_fulfillment_attempted_delivery", "comment": null}, "count_fulfillment_delayed": {"type": "bigint", "index": 50, "name": "count_fulfillment_delayed", "comment": null}, "count_fulfillment_delivered": {"type": "bigint", "index": 51, "name": "count_fulfillment_delivered", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 52, "name": "count_fulfillment_failure", "comment": null}, "count_fulfillment_in_transit": {"type": "bigint", "index": 53, "name": "count_fulfillment_in_transit", "comment": null}, "count_fulfillment_out_for_delivery": {"type": "bigint", "index": 54, "name": "count_fulfillment_out_for_delivery", "comment": null}, "count_fulfillment_ready_for_pickup": {"type": "bigint", "index": 55, "name": "count_fulfillment_ready_for_pickup", "comment": null}, "count_fulfillment_picked_up": {"type": "bigint", "index": 56, "name": "count_fulfillment_picked_up", "comment": null}, "count_fulfillment_label_printed": {"type": "bigint", "index": 57, "name": "count_fulfillment_label_printed", "comment": null}, "count_fulfillment_label_purchased": {"type": "bigint", "index": 58, "name": "count_fulfillment_label_purchased", "comment": null}, "count_fulfillment_confirmed": {"type": "bigint", "index": 59, "name": "count_fulfillment_confirmed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__daily_shop"}, "model.shopify.shopify__discounts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__discounts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"code": {"type": "character varying", "index": 1, "name": "code", "comment": null}, "discount_code_id": {"type": "bigint", "index": 2, "name": "discount_code_id", "comment": null}, "discount_type": {"type": "text", "index": 3, "name": "discount_type", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_count": {"type": "integer", "index": 5, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 14, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 15, "name": "status", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 17, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 18, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 20, "name": "usage_limit", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "allocation_method": {"type": "character varying", "index": 22, "name": "allocation_method", "comment": null}, "description": {"type": "character varying", "index": 23, "name": "description", "comment": null}, "target_selection": {"type": "character varying", "index": 24, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 25, "name": "target_type", "comment": null}, "application_type": {"type": "character varying", "index": 26, "name": "application_type", "comment": null}, "value": {"type": "double precision", "index": 27, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 28, "name": "value_type", "comment": null}, "discounts_unique_key": {"type": "text", "index": 29, "name": "discounts_unique_key", "comment": null}, "count_orders": {"type": "bigint", "index": 30, "name": "count_orders", "comment": null}, "avg_order_discount_amount": {"type": "double precision", "index": 31, "name": "avg_order_discount_amount", "comment": null}, "total_order_discount_amount": {"type": "double precision", "index": 32, "name": "total_order_discount_amount", "comment": null}, "total_order_line_items_price": {"type": "double precision", "index": 33, "name": "total_order_line_items_price", "comment": null}, "total_order_shipping_cost": {"type": "double precision", "index": 34, "name": "total_order_shipping_cost", "comment": null}, "total_order_refund_amount": {"type": "double precision", "index": 35, "name": "total_order_refund_amount", "comment": null}, "count_customers": {"type": "bigint", "index": 36, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 37, "name": "count_customer_emails", "comment": null}, "total_abandoned_checkout_discount_amount": {"type": "double precision", "index": 38, "name": "total_abandoned_checkout_discount_amount", "comment": null}, "total_abandoned_checkout_shipping_price": {"type": "double precision", "index": 39, "name": "total_abandoned_checkout_shipping_price", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 40, "name": "count_abandoned_checkouts", "comment": null}, "count_abandoned_checkout_customers": {"type": "bigint", "index": 41, "name": "count_abandoned_checkout_customers", "comment": null}, "count_abandoned_checkout_customer_emails": {"type": "bigint", "index": 42, "name": "count_abandoned_checkout_customer_emails", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__discounts"}, "model.shopify.shopify__inventory_levels": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__inventory_levels", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "sku": {"type": "text", "index": 10, "name": "sku", "comment": null}, "is_inventory_item_deleted": {"type": "boolean", "index": 11, "name": "is_inventory_item_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 14, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 15, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 16, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 17, "name": "is_inventory_quantity_tracked", "comment": null}, "inventory_item_created_at": {"type": "timestamp without time zone", "index": 18, "name": "inventory_item_created_at", "comment": null}, "inventory_item_updated_at": {"type": "timestamp without time zone", "index": 19, "name": "inventory_item_updated_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 20, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 21, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 22, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 23, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 24, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 25, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 26, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 27, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 28, "name": "tracked_editable_reason", "comment": null}, "location_name": {"type": "text", "index": 29, "name": "location_name", "comment": null}, "is_location_deleted": {"type": "boolean", "index": 30, "name": "is_location_deleted", "comment": null}, "is_location_active": {"type": "boolean", "index": 31, "name": "is_location_active", "comment": null}, "address_1": {"type": "text", "index": 32, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 33, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 34, "name": "city", "comment": null}, "country": {"type": "text", "index": 35, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 36, "name": "country_code", "comment": null}, "is_legacy_location": {"type": "boolean", "index": 37, "name": "is_legacy_location", "comment": null}, "province": {"type": "text", "index": 38, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 39, "name": "province_code", "comment": null}, "phone": {"type": "integer", "index": 40, "name": "phone", "comment": null}, "zip": {"type": "integer", "index": 41, "name": "zip", "comment": null}, "location_created_at": {"type": "timestamp without time zone", "index": 42, "name": "location_created_at", "comment": null}, "location_updated_at": {"type": "timestamp without time zone", "index": 43, "name": "location_updated_at", "comment": null}, "variant_id": {"type": "bigint", "index": 44, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 45, "name": "product_id", "comment": null}, "variant_title": {"type": "text", "index": 46, "name": "variant_title", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 47, "name": "variant_inventory_policy", "comment": null}, "variant_price": {"type": "double precision", "index": 48, "name": "variant_price", "comment": null}, "variant_media_id": {"type": "bigint", "index": 49, "name": "variant_media_id", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 50, "name": "variant_fulfillment_service", "comment": null}, "variant_inventory_management": {"type": "text", "index": 51, "name": "variant_inventory_management", "comment": null}, "is_variant_taxable": {"type": "boolean", "index": 52, "name": "is_variant_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 53, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 54, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 55, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 56, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 57, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 58, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 59, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 60, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 61, "name": "variant_tax_code", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 62, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 63, "name": "variant_updated_at", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 64, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 65, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 66, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 67, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 68, "name": "variant_sellable_online_quantity", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 69, "name": "subtotal_sold", "comment": null}, "quantity_sold": {"type": "bigint", "index": 70, "name": "quantity_sold", "comment": null}, "count_distinct_orders": {"type": "bigint", "index": 71, "name": "count_distinct_orders", "comment": null}, "count_distinct_customers": {"type": "bigint", "index": 72, "name": "count_distinct_customers", "comment": null}, "count_distinct_customer_emails": {"type": "bigint", "index": 73, "name": "count_distinct_customer_emails", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 74, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 75, "name": "last_order_timestamp", "comment": null}, "subtotal_sold_refunds": {"type": "numeric", "index": 76, "name": "subtotal_sold_refunds", "comment": null}, "quantity_sold_refunds": {"type": "numeric", "index": 77, "name": "quantity_sold_refunds", "comment": null}, "count_fulfillment_pending": {"type": "bigint", "index": 78, "name": "count_fulfillment_pending", "comment": null}, "count_fulfillment_open": {"type": "bigint", "index": 79, "name": "count_fulfillment_open", "comment": null}, "count_fulfillment_success": {"type": "bigint", "index": 80, "name": "count_fulfillment_success", "comment": null}, "count_fulfillment_cancelled": {"type": "bigint", "index": 81, "name": "count_fulfillment_cancelled", "comment": null}, "count_fulfillment_error": {"type": "bigint", "index": 82, "name": "count_fulfillment_error", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 83, "name": "count_fulfillment_failure", "comment": null}, "incoming_quantity": {"type": "bigint", "index": 84, "name": "incoming_quantity", "comment": null}, "on_hand_quantity": {"type": "bigint", "index": 85, "name": "on_hand_quantity", "comment": null}, "available_quantity": {"type": "bigint", "index": 86, "name": "available_quantity", "comment": null}, "committed_quantity": {"type": "bigint", "index": 87, "name": "committed_quantity", "comment": null}, "reserved_quantity": {"type": "bigint", "index": 88, "name": "reserved_quantity", "comment": null}, "damaged_quantity": {"type": "bigint", "index": 89, "name": "damaged_quantity", "comment": null}, "safety_stock_quantity": {"type": "bigint", "index": 90, "name": "safety_stock_quantity", "comment": null}, "quality_control_quantity": {"type": "bigint", "index": 91, "name": "quality_control_quantity", "comment": null}, "net_subtotal_sold": {"type": "numeric", "index": 92, "name": "net_subtotal_sold", "comment": null}, "net_quantity_sold": {"type": "numeric", "index": 93, "name": "net_quantity_sold", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__inventory_levels"}, "model.shopify.shopify__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"header_id": {"type": "bigint", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "numeric(28,6)", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "numeric(28,6)", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "numeric(28,6)", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "numeric(28,6)", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "numeric(28,6)", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "numeric(28,6)", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "text", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "double precision", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "text", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "bigint", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "source_relation": {"type": "text", "index": 37, "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.shopify.shopify__line_item_enhanced"}, "model.shopify.shopify__order_lines": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_lines", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "name": "source_relation", "comment": null}, "order_lines_unique_key": {"type": "text", "index": 29, "name": "order_lines_unique_key", "comment": null}, "restock_types": {"type": "text", "index": 30, "name": "restock_types", "comment": null}, "refunded_quantity": {"type": "bigint", "index": 31, "name": "refunded_quantity", "comment": null}, "refunded_subtotal": {"type": "bigint", "index": 32, "name": "refunded_subtotal", "comment": null}, "quantity_net_refunds": {"type": "bigint", "index": 33, "name": "quantity_net_refunds", "comment": null}, "subtotal_net_refunds": {"type": "bigint", "index": 34, "name": "subtotal_net_refunds", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 35, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 36, "name": "variant_updated_at", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 37, "name": "inventory_item_id", "comment": null}, "media_id": {"type": "bigint", "index": 38, "name": "media_id", "comment": null}, "variant_price": {"type": "double precision", "index": 39, "name": "variant_price", "comment": null}, "variant_sku": {"type": "text", "index": 40, "name": "variant_sku", "comment": null}, "variant_position": {"type": "integer", "index": 41, "name": "variant_position", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 42, "name": "variant_inventory_policy", "comment": null}, "variant_compare_at_price": {"type": "integer", "index": 43, "name": "variant_compare_at_price", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 44, "name": "variant_fulfillment_service", "comment": null}, "variant_is_taxable": {"type": "boolean", "index": 45, "name": "variant_is_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 46, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 47, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 48, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 49, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 50, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 51, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 52, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 53, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 54, "name": "variant_tax_code", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 55, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 56, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 57, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 58, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 59, "name": "variant_sellable_online_quantity", "comment": null}, "order_line_tax": {"type": "double precision", "index": 60, "name": "order_line_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_lines"}, "model.shopify.shopify__order_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 81, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_howmany": {"type": "text", "index": 82, "name": "metafield_avengers_howmany", "comment": null}, "metafield_star_wars_isinspace": {"type": "text", "index": 83, "name": "metafield_star_wars_isinspace", "comment": null}, "metafield_star_wars_numbersequels": {"type": "text", "index": 84, "name": "metafield_star_wars_numbersequels", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_metafields"}, "model.shopify.shopify__orders": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "orders_unique_key": {"type": "text", "index": 81, "name": "orders_unique_key", "comment": null}, "shipping_cost": {"type": "double precision", "index": 82, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "bigint", "index": 83, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 84, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "bigint", "index": 85, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 86, "name": "refund_total_tax", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 87, "name": "order_adjusted_total", "comment": null}, "line_item_count": {"type": "bigint", "index": 88, "name": "line_item_count", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 89, "name": "shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 90, "name": "percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 91, "name": "fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "bigint", "index": 92, "name": "count_discount_codes_applied", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 93, "name": "order_total_shipping_tax", "comment": null}, "order_tags": {"type": "text", "index": 94, "name": "order_tags", "comment": null}, "order_url_tags": {"type": "text", "index": 95, "name": "order_url_tags", "comment": null}, "number_of_fulfillments": {"type": "bigint", "index": 96, "name": "number_of_fulfillments", "comment": null}, "fulfillment_services": {"type": "text", "index": 97, "name": "fulfillment_services", "comment": null}, "tracking_companies": {"type": "text", "index": 98, "name": "tracking_companies", "comment": null}, "tracking_numbers": {"type": "text", "index": 99, "name": "tracking_numbers", "comment": null}, "customer_order_seq_number": {"type": "bigint", "index": 100, "name": "customer_order_seq_number", "comment": null}, "new_vs_repeat": {"type": "text", "index": 101, "name": "new_vs_repeat", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders"}, "model.shopify.shopify__orders__order_line_aggregates": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "line_item_count": {"type": "bigint", "index": 3, "name": "line_item_count", "comment": null}, "order_total_quantity": {"type": "bigint", "index": 4, "name": "order_total_quantity", "comment": null}, "order_total_tax": {"type": "double precision", "index": 5, "name": "order_total_tax", "comment": null}, "order_total_discount": {"type": "bigint", "index": 6, "name": "order_total_discount", "comment": null}, "order_total_shipping": {"type": "double precision", "index": 7, "name": "order_total_shipping", "comment": null}, "order_total_shipping_with_discounts": {"type": "double precision", "index": 8, "name": "order_total_shipping_with_discounts", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 9, "name": "order_total_shipping_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders__order_line_aggregates"}, "model.shopify.shopify__product_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__product_metafields"}, "model.shopify.shopify__product_variant_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 31, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_wherearethey": {"type": "text", "index": 32, "name": "metafield_avengers_wherearethey", "comment": null}, "metafield_star_wars_wheninspace": {"type": "text", "index": 33, "name": "metafield_star_wars_wheninspace", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__product_variant_metafields"}, "model.shopify.shopify__products": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__products", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "collections": {"type": "text", "index": 14, "name": "collections", "comment": null}, "tags": {"type": "text", "index": 15, "name": "tags", "comment": null}, "count_variants": {"type": "bigint", "index": 16, "name": "count_variants", "comment": null}, "has_product_media": {"type": "boolean", "index": 17, "name": "has_product_media", "comment": null}, "total_quantity_sold": {"type": "bigint", "index": 18, "name": "total_quantity_sold", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 19, "name": "subtotal_sold", "comment": null}, "quantity_sold_net_refunds": {"type": "numeric", "index": 20, "name": "quantity_sold_net_refunds", "comment": null}, "subtotal_sold_net_refunds": {"type": "numeric", "index": 21, "name": "subtotal_sold_net_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_quantity_per_order_line": {"type": "numeric", "index": 24, "name": "avg_quantity_per_order_line", "comment": null}, "product_total_discount": {"type": "bigint", "index": 25, "name": "product_total_discount", "comment": null}, "product_avg_discount_per_order_line": {"type": "numeric", "index": 26, "name": "product_avg_discount_per_order_line", "comment": null}, "product_total_tax": {"type": "double precision", "index": 27, "name": "product_total_tax", "comment": null}, "product_avg_tax_per_order_line": {"type": "double precision", "index": 28, "name": "product_avg_tax_per_order_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__products"}, "model.shopify.shopify__shop_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__shop_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify.shopify__shop_metafields"}, "model.shopify.shopify__transactions": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__transactions", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "name": "source_relation", "comment": null}, "transactions_unique_id": {"type": "text", "index": 33, "name": "transactions_unique_id", "comment": null}, "payment_method": {"type": "text", "index": 34, "name": "payment_method", "comment": null}, "parent_created_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "parent_created_timestamp", "comment": null}, "parent_kind": {"type": "text", "index": 36, "name": "parent_kind", "comment": null}, "parent_amount": {"type": "double precision", "index": 37, "name": "parent_amount", "comment": null}, "parent_status": {"type": "text", "index": 38, "name": "parent_status", "comment": null}, "exchange_rate": {"type": "numeric", "index": 39, "name": "exchange_rate", "comment": null}, "currency_exchange_calculated_amount": {"type": "double precision", "index": 40, "name": "currency_exchange_calculated_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__transactions"}, "model.shopify.shopify_gql__collection_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__collection_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}, "rules": {"type": "text", "index": 11, "name": "rules", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb": {"type": "text", "index": 12, "name": "metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw": {"type": "text", "index": 13, "name": "metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__collection_metafields"}, "model.shopify.shopify_gql__customer_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify_gql__customer_cohorts"}, "model.shopify.shopify_gql__customer_email_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_email_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify_gql__customer_email_cohorts"}, "model.shopify.shopify_gql__customer_emails": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_emails", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "account_state": {"type": "text", "index": 15, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 16, "name": "note", "comment": null}, "currency": {"type": "text", "index": 17, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 18, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 19, "name": "marketing_opt_in_level", "comment": null}, "default_address_id": {"type": "integer", "index": 20, "name": "default_address_id", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 21, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_order_value": {"type": "double precision", "index": 24, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 25, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 26, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 27, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 28, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 29, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 30, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 31, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "double precision", "index": 32, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "double precision", "index": 33, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 34, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 35, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 36, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 37, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 38, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 39, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customer_emails"}, "model.shopify.shopify_gql__customer_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_id", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj": {"type": "text", "index": 22, "name": "metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre": {"type": "text", "index": 23, "name": "metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customer_metafields"}, "model.shopify.shopify_gql__customers": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customers", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "phone": {"type": "character varying", "index": 5, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 6, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 7, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 8, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 9, "name": "note", "comment": null}, "currency": {"type": "text", "index": 10, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 11, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 12, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 13, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 14, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 15, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 16, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}, "default_address_id": {"type": "integer", "index": 18, "name": "default_address_id", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 19, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_order_timestamp", "comment": null}, "customer_tags": {"type": "text", "index": 22, "name": "customer_tags", "comment": null}, "avg_order_value": {"type": "double precision", "index": 23, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 24, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 25, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 26, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 27, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 28, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 29, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 30, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "double precision", "index": 31, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "double precision", "index": 32, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 33, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 34, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 35, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 36, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 37, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 38, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customers"}, "model.shopify.shopify_gql__daily_shop": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__daily_shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "shop_id": {"type": "integer", "index": 2, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "domain": {"type": "text", "index": 4, "name": "domain", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 7, "name": "enabled_presentment_currencies", "comment": null}, "iana_timezone": {"type": "text", "index": 8, "name": "iana_timezone", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "count_orders": {"type": "bigint", "index": 11, "name": "count_orders", "comment": null}, "count_line_items": {"type": "numeric", "index": 12, "name": "count_line_items", "comment": null}, "avg_line_item_count": {"type": "numeric", "index": 13, "name": "avg_line_item_count", "comment": null}, "count_customers": {"type": "bigint", "index": 14, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 15, "name": "count_customer_emails", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 16, "name": "order_adjusted_total", "comment": null}, "avg_order_value": {"type": "double precision", "index": 17, "name": "avg_order_value", "comment": null}, "shipping_cost": {"type": "double precision", "index": 18, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "double precision", "index": 19, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 20, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "double precision", "index": 21, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 22, "name": "refund_total_tax", "comment": null}, "total_discounts": {"type": "double precision", "index": 23, "name": "total_discounts", "comment": null}, "avg_discount": {"type": "double precision", "index": 24, "name": "avg_discount", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 25, "name": "shipping_discount_amount", "comment": null}, "avg_shipping_discount_amount": {"type": "double precision", "index": 26, "name": "avg_shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 27, "name": "percentage_calc_discount_amount", "comment": null}, "avg_percentage_calc_discount_amount": {"type": "double precision", "index": 28, "name": "avg_percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 29, "name": "fixed_amount_discount_amount", "comment": null}, "avg_fixed_amount_discount_amount": {"type": "double precision", "index": 30, "name": "avg_fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "numeric", "index": 31, "name": "count_discount_codes_applied", "comment": null}, "count_locations_ordered_from": {"type": "bigint", "index": 32, "name": "count_locations_ordered_from", "comment": null}, "count_orders_with_discounts": {"type": "bigint", "index": 33, "name": "count_orders_with_discounts", "comment": null}, "count_orders_with_refunds": {"type": "bigint", "index": 34, "name": "count_orders_with_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 36, "name": "last_order_timestamp", "comment": null}, "quantity_sold": {"type": "bigint", "index": 37, "name": "quantity_sold", "comment": null}, "quantity_refunded": {"type": "double precision", "index": 38, "name": "quantity_refunded", "comment": null}, "quantity_net": {"type": "double precision", "index": 39, "name": "quantity_net", "comment": null}, "avg_quantity_sold": {"type": "bigint", "index": 40, "name": "avg_quantity_sold", "comment": null}, "avg_quantity_net": {"type": "double precision", "index": 41, "name": "avg_quantity_net", "comment": null}, "count_variants_sold": {"type": "bigint", "index": 42, "name": "count_variants_sold", "comment": null}, "count_products_sold": {"type": "bigint", "index": 43, "name": "count_products_sold", "comment": null}, "quantity_gift_cards_sold": {"type": "double precision", "index": 44, "name": "quantity_gift_cards_sold", "comment": null}, "quantity_requiring_shipping": {"type": "double precision", "index": 45, "name": "quantity_requiring_shipping", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 46, "name": "count_abandoned_checkouts", "comment": null}, "count_customers_abandoned_checkout": {"type": "bigint", "index": 47, "name": "count_customers_abandoned_checkout", "comment": null}, "count_customer_emails_abandoned_checkout": {"type": "bigint", "index": 48, "name": "count_customer_emails_abandoned_checkout", "comment": null}, "count_fulfillment_attempted_delivery": {"type": "bigint", "index": 49, "name": "count_fulfillment_attempted_delivery", "comment": null}, "count_fulfillment_delayed": {"type": "bigint", "index": 50, "name": "count_fulfillment_delayed", "comment": null}, "count_fulfillment_delivered": {"type": "bigint", "index": 51, "name": "count_fulfillment_delivered", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 52, "name": "count_fulfillment_failure", "comment": null}, "count_fulfillment_in_transit": {"type": "bigint", "index": 53, "name": "count_fulfillment_in_transit", "comment": null}, "count_fulfillment_out_for_delivery": {"type": "bigint", "index": 54, "name": "count_fulfillment_out_for_delivery", "comment": null}, "count_fulfillment_ready_for_pickup": {"type": "bigint", "index": 55, "name": "count_fulfillment_ready_for_pickup", "comment": null}, "count_fulfillment_label_printed": {"type": "bigint", "index": 56, "name": "count_fulfillment_label_printed", "comment": null}, "count_fulfillment_label_purchased": {"type": "bigint", "index": 57, "name": "count_fulfillment_label_purchased", "comment": null}, "count_fulfillment_confirmed": {"type": "bigint", "index": 58, "name": "count_fulfillment_confirmed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__daily_shop"}, "model.shopify.shopify_gql__discounts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__discounts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"code": {"type": "text", "index": 1, "name": "code", "comment": null}, "discount_code_id": {"type": "integer", "index": 2, "name": "discount_code_id", "comment": null}, "discount_type": {"type": "text", "index": 3, "name": "discount_type", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_count": {"type": "integer", "index": 5, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 14, "name": "starts_at", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 17, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 18, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 20, "name": "usage_limit", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "allocation_method": {"type": "text", "index": 22, "name": "allocation_method", "comment": null}, "target_selection": {"type": "text", "index": 23, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 24, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 25, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 26, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 27, "name": "value_percentage", "comment": null}, "value_type": {"type": "text", "index": 28, "name": "value_type", "comment": null}, "unique_key": {"type": "text", "index": 29, "name": "unique_key", "comment": null}, "count_orders": {"type": "bigint", "index": 30, "name": "count_orders", "comment": null}, "avg_order_discount_amount": {"type": "double precision", "index": 31, "name": "avg_order_discount_amount", "comment": null}, "total_order_discount_amount": {"type": "double precision", "index": 32, "name": "total_order_discount_amount", "comment": null}, "total_order_line_items_price": {"type": "double precision", "index": 33, "name": "total_order_line_items_price", "comment": null}, "total_order_shipping_cost": {"type": "double precision", "index": 34, "name": "total_order_shipping_cost", "comment": null}, "total_order_refund_amount": {"type": "double precision", "index": 35, "name": "total_order_refund_amount", "comment": null}, "count_customers": {"type": "bigint", "index": 36, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 37, "name": "count_customer_emails", "comment": null}, "total_abandoned_checkout_discount_amount": {"type": "double precision", "index": 38, "name": "total_abandoned_checkout_discount_amount", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 39, "name": "count_abandoned_checkouts", "comment": null}, "count_abandoned_checkout_customers": {"type": "bigint", "index": 40, "name": "count_abandoned_checkout_customers", "comment": null}, "count_abandoned_checkout_customer_emails": {"type": "bigint", "index": 41, "name": "count_abandoned_checkout_customer_emails", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__discounts"}, "model.shopify.shopify_gql__inventory_levels": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__inventory_levels", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "integer", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "sku": {"type": "text", "index": 10, "name": "sku", "comment": null}, "is_inventory_item_deleted": {"type": "boolean", "index": 11, "name": "is_inventory_item_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "text", "index": 14, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "text", "index": 15, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 16, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 17, "name": "is_inventory_quantity_tracked", "comment": null}, "inventory_item_created_at": {"type": "timestamp without time zone", "index": 18, "name": "inventory_item_created_at", "comment": null}, "inventory_item_updated_at": {"type": "timestamp without time zone", "index": 19, "name": "inventory_item_updated_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 20, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 21, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 22, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 23, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 24, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 25, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 26, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "boolean", "index": 27, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 28, "name": "tracked_editable_reason", "comment": null}, "location_name": {"type": "text", "index": 29, "name": "location_name", "comment": null}, "is_location_deleted": {"type": "boolean", "index": 30, "name": "is_location_deleted", "comment": null}, "is_location_active": {"type": "boolean", "index": 31, "name": "is_location_active", "comment": null}, "address_1": {"type": "text", "index": 32, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 33, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 34, "name": "city", "comment": null}, "country": {"type": "text", "index": 35, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 36, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 37, "name": "country_name", "comment": null}, "is_legacy_location": {"type": "boolean", "index": 38, "name": "is_legacy_location", "comment": null}, "province": {"type": "text", "index": 39, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 40, "name": "province_code", "comment": null}, "phone": {"type": "character varying", "index": 41, "name": "phone", "comment": null}, "zip": {"type": "integer", "index": 42, "name": "zip", "comment": null}, "location_created_at": {"type": "timestamp without time zone", "index": 43, "name": "location_created_at", "comment": null}, "location_updated_at": {"type": "timestamp without time zone", "index": 44, "name": "location_updated_at", "comment": null}, "variant_id": {"type": "integer", "index": 45, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 46, "name": "product_id", "comment": null}, "variant_title": {"type": "text", "index": 47, "name": "variant_title", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 48, "name": "variant_inventory_policy", "comment": null}, "variant_price": {"type": "double precision", "index": 49, "name": "variant_price", "comment": null}, "variant_media_id": {"type": "integer", "index": 50, "name": "variant_media_id", "comment": null}, "is_variant_taxable": {"type": "boolean", "index": 51, "name": "is_variant_taxable", "comment": null}, "variant_barcode": {"type": "text", "index": 52, "name": "variant_barcode", "comment": null}, "variant_inventory_quantity": {"type": "integer", "index": 53, "name": "variant_inventory_quantity", "comment": null}, "variant_tax_code": {"type": "text", "index": 54, "name": "variant_tax_code", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 55, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 56, "name": "variant_updated_at", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 57, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 58, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "integer", "index": 59, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 60, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 61, "name": "variant_sellable_online_quantity", "comment": null}, "subtotal_sold": {"type": "double precision", "index": 62, "name": "subtotal_sold", "comment": null}, "quantity_sold": {"type": "bigint", "index": 63, "name": "quantity_sold", "comment": null}, "count_distinct_orders": {"type": "bigint", "index": 64, "name": "count_distinct_orders", "comment": null}, "count_distinct_customers": {"type": "bigint", "index": 65, "name": "count_distinct_customers", "comment": null}, "count_distinct_customer_emails": {"type": "bigint", "index": 66, "name": "count_distinct_customer_emails", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 67, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 68, "name": "last_order_timestamp", "comment": null}, "subtotal_sold_refunds": {"type": "double precision", "index": 69, "name": "subtotal_sold_refunds", "comment": null}, "quantity_sold_refunds": {"type": "double precision", "index": 70, "name": "quantity_sold_refunds", "comment": null}, "count_fulfillment_pending": {"type": "bigint", "index": 71, "name": "count_fulfillment_pending", "comment": null}, "count_fulfillment_open": {"type": "bigint", "index": 72, "name": "count_fulfillment_open", "comment": null}, "count_fulfillment_success": {"type": "bigint", "index": 73, "name": "count_fulfillment_success", "comment": null}, "count_fulfillment_cancelled": {"type": "bigint", "index": 74, "name": "count_fulfillment_cancelled", "comment": null}, "count_fulfillment_error": {"type": "bigint", "index": 75, "name": "count_fulfillment_error", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 76, "name": "count_fulfillment_failure", "comment": null}, "incoming_quantity": {"type": "bigint", "index": 77, "name": "incoming_quantity", "comment": null}, "on_hand_quantity": {"type": "bigint", "index": 78, "name": "on_hand_quantity", "comment": null}, "available_quantity": {"type": "bigint", "index": 79, "name": "available_quantity", "comment": null}, "committed_quantity": {"type": "bigint", "index": 80, "name": "committed_quantity", "comment": null}, "reserved_quantity": {"type": "bigint", "index": 81, "name": "reserved_quantity", "comment": null}, "damaged_quantity": {"type": "bigint", "index": 82, "name": "damaged_quantity", "comment": null}, "safety_stock_quantity": {"type": "bigint", "index": 83, "name": "safety_stock_quantity", "comment": null}, "quality_control_quantity": {"type": "bigint", "index": 84, "name": "quality_control_quantity", "comment": null}, "net_subtotal_sold": {"type": "double precision", "index": 85, "name": "net_subtotal_sold", "comment": null}, "net_quantity_sold": {"type": "double precision", "index": 86, "name": "net_quantity_sold", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__inventory_levels"}, "model.shopify.shopify_gql__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__line_item_enhanced", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"header_id": {"type": "integer", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "numeric(28,6)", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "numeric(28,6)", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "numeric(28,6)", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "numeric(28,6)", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "numeric(28,6)", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "numeric(28,6)", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "text", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "double precision", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "text", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "integer", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "source_relation": {"type": "text", "index": 37, "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.shopify.shopify_gql__line_item_enhanced"}, "model.shopify.shopify_gql__order_lines": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__order_lines", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}, "pre_tax_price": {"type": "double precision", "index": 27, "name": "pre_tax_price", "comment": null}, "order_line_tax": {"type": "double precision", "index": 28, "name": "order_line_tax", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 29, "name": "fulfillable_quantity", "comment": null}, "weight_unit": {"type": "text", "index": 30, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 31, "name": "weight_value", "comment": null}, "restock_types": {"type": "text", "index": 32, "name": "restock_types", "comment": null}, "refunded_quantity": {"type": "double precision", "index": 33, "name": "refunded_quantity", "comment": null}, "refunded_subtotal": {"type": "double precision", "index": 34, "name": "refunded_subtotal", "comment": null}, "quantity_net_refunds": {"type": "double precision", "index": 35, "name": "quantity_net_refunds", "comment": null}, "subtotal_net_refunds": {"type": "double precision", "index": 36, "name": "subtotal_net_refunds", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 37, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 38, "name": "variant_updated_at", "comment": null}, "inventory_item_id": {"type": "integer", "index": 39, "name": "inventory_item_id", "comment": null}, "media_id": {"type": "integer", "index": 40, "name": "media_id", "comment": null}, "variant_price": {"type": "double precision", "index": 41, "name": "variant_price", "comment": null}, "variant_sku": {"type": "text", "index": 42, "name": "variant_sku", "comment": null}, "variant_position": {"type": "integer", "index": 43, "name": "variant_position", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 44, "name": "variant_inventory_policy", "comment": null}, "variant_compare_at_price": {"type": "character varying", "index": 45, "name": "variant_compare_at_price", "comment": null}, "variant_is_taxable": {"type": "boolean", "index": 46, "name": "variant_is_taxable", "comment": null}, "variant_barcode": {"type": "text", "index": 47, "name": "variant_barcode", "comment": null}, "variant_inventory_quantity": {"type": "integer", "index": 48, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 49, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 50, "name": "variant_weight_unit", "comment": null}, "variant_tax_code": {"type": "text", "index": 51, "name": "variant_tax_code", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 52, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 53, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "integer", "index": 54, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 55, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 56, "name": "variant_sellable_online_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.shopify.shopify_gql__order_lines"}, "model.shopify.shopify_gql__order_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__order_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_url", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw": {"type": "text", "index": 89, "name": "metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe": {"type": "text", "index": 90, "name": "metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__order_metafields"}, "model.shopify.shopify_gql__orders": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__orders", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_url", "comment": null}, "order_adjustment_amount": {"type": "double precision", "index": 89, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 90, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "double precision", "index": 91, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 92, "name": "refund_total_tax", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 93, "name": "order_adjusted_total", "comment": null}, "line_item_count": {"type": "bigint", "index": 94, "name": "line_item_count", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 95, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 96, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_pres_currency_codes": {"type": "text", "index": 97, "name": "total_line_items_price_pres_currency_codes", "comment": null}, "total_line_items_price_shop_currency_codes": {"type": "text", "index": 98, "name": "total_line_items_price_shop_currency_codes", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 99, "name": "shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 100, "name": "percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 101, "name": "fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "bigint", "index": 102, "name": "count_discount_codes_applied", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 103, "name": "order_total_shipping_tax", "comment": null}, "order_tags": {"type": "text", "index": 104, "name": "order_tags", "comment": null}, "number_of_fulfillments": {"type": "bigint", "index": 105, "name": "number_of_fulfillments", "comment": null}, "fulfillment_services": {"type": "text", "index": 106, "name": "fulfillment_services", "comment": null}, "tracking_companies": {"type": "text", "index": 107, "name": "tracking_companies", "comment": null}, "tracking_numbers": {"type": "text", "index": 108, "name": "tracking_numbers", "comment": null}, "customer_order_seq_number": {"type": "bigint", "index": 109, "name": "customer_order_seq_number", "comment": null}, "new_vs_repeat": {"type": "text", "index": 110, "name": "new_vs_repeat", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__orders"}, "model.shopify.shopify_gql__product_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__product_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bc_brenbre": {"type": "text", "index": 14, "name": "metafield_bea81c1795a612d8fc3a232b156467bc_brenbre", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42": {"type": "text", "index": 15, "name": "metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__product_metafields"}, "model.shopify.shopify_gql__product_variant_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__product_variant_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}, "weight": {"type": "double precision", "index": 24, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__product_variant_metafields"}, "model.shopify.shopify_gql__products": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__products", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}, "collections": {"type": "text", "index": 14, "name": "collections", "comment": null}, "tags": {"type": "text", "index": 15, "name": "tags", "comment": null}, "count_variants": {"type": "bigint", "index": 16, "name": "count_variants", "comment": null}, "has_product_media": {"type": "boolean", "index": 17, "name": "has_product_media", "comment": null}, "total_quantity_sold": {"type": "bigint", "index": 18, "name": "total_quantity_sold", "comment": null}, "subtotal_sold": {"type": "double precision", "index": 19, "name": "subtotal_sold", "comment": null}, "quantity_sold_net_refunds": {"type": "double precision", "index": 20, "name": "quantity_sold_net_refunds", "comment": null}, "subtotal_sold_net_refunds": {"type": "double precision", "index": 21, "name": "subtotal_sold_net_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_quantity_per_order_line": {"type": "numeric", "index": 24, "name": "avg_quantity_per_order_line", "comment": null}, "product_total_discount": {"type": "double precision", "index": 25, "name": "product_total_discount", "comment": null}, "product_avg_discount_per_order_line": {"type": "double precision", "index": 26, "name": "product_avg_discount_per_order_line", "comment": null}, "product_total_tax": {"type": "double precision", "index": 27, "name": "product_total_tax", "comment": null}, "product_avg_tax_per_order_line": {"type": "double precision", "index": 28, "name": "product_avg_tax_per_order_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__products"}, "model.shopify.shopify_gql__shop_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__shop_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 16, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 17, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 18, "name": "email", "comment": null}, "domain": {"type": "text", "index": 19, "name": "domain", "comment": null}, "phone": {"type": "character varying", "index": 20, "name": "phone", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 21, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 22, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 23, "name": "timezone_offset_minutes", "comment": null}, "iana_timezone": {"type": "text", "index": 24, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 25, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 26, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "has_shipping_taxes": {"type": "boolean", "index": 29, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 30, "name": "has_taxes_included_in_price", "comment": null}, "has_storefront": {"type": "boolean", "index": 31, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 32, "name": "has_checkout_api_supported", "comment": null}, "money_format": {"type": "text", "index": 33, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 34, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 35, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 36, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 37, "name": "plan_display_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 38, "name": "is_password_enabled", "comment": null}, "is_setup_required": {"type": "boolean", "index": 39, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 40, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 41, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 42, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 43, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 44, "name": "unique_key", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew": {"type": "text", "index": 45, "name": "metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__shop_metafields"}, "model.shopify.shopify_gql__transactions": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__transactions", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "integer", "index": 3, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 4, "name": "amount_pres", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "device_id": {"type": "text", "index": 6, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 7, "name": "gateway", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 8, "name": "amount_pres_currency_code", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 9, "name": "amount_shop_currency_code", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 11, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 12, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 13, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 14, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 15, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 17, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 18, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 19, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 20, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 21, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 22, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "text", "index": 23, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 24, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 26, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 29, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 30, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 31, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 32, "name": "unique_key", "comment": null}, "payment_method": {"type": "text", "index": 33, "name": "payment_method", "comment": null}, "parent_created_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "parent_created_timestamp", "comment": null}, "parent_kind": {"type": "text", "index": 35, "name": "parent_kind", "comment": null}, "parent_amount": {"type": "double precision", "index": 36, "name": "parent_amount", "comment": null}, "parent_status": {"type": "text", "index": 37, "name": "parent_status", "comment": null}, "location_id": {"type": "integer", "index": 38, "name": "location_id", "comment": null}, "source_name": {"type": "text", "index": 39, "name": "source_name", "comment": null}, "exchange_rate": {"type": "numeric", "index": 40, "name": "exchange_rate", "comment": null}, "currency_exchange_calculated_amount": {"type": "double precision", "index": 41, "name": "currency_exchange_calculated_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__transactions"}, "model.shopify_source.stg_shopify__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 18, "name": "has_buyer_accepted_marketing", "comment": null}, "cart_token": {"type": "text", "index": 19, "name": "cart_token", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 20, "name": "created_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 21, "name": "closed_at", "comment": null}, "shop_currency": {"type": "text", "index": 22, "name": "shop_currency", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 24, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 25, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 26, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 27, "name": "gateway", "comment": null}, "checkout_id": {"type": "integer", "index": 28, "name": "checkout_id", "comment": null}, "landing_site_base_url": {"type": "text", "index": 29, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 30, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 31, "name": "name", "comment": null}, "note": {"type": "integer", "index": 32, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 33, "name": "phone", "comment": null}, "presentment_currency": {"type": "text", "index": 34, "name": "presentment_currency", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 36, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 37, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 38, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 39, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 40, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 41, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 42, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 43, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 44, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 45, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 46, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 47, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 48, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 49, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 50, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 51, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 52, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 53, "name": "has_taxes_included", "comment": null}, "token": {"type": "text", "index": 54, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_duties": {"type": "integer", "index": 56, "name": "total_duties", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 57, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 58, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 59, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 60, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 61, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 62, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 63, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 64, "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.shopify_source.stg_shopify__abandoned_checkout"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "discount_id": {"type": "bigint", "index": 3, "name": "discount_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "type": {"type": "character varying", "index": 5, "name": "type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 10, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"abandoned_checkout_shipping_line_id": {"type": "text", "index": 1, "name": "abandoned_checkout_shipping_line_id", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "shipping_code": {"type": "text", "index": 5, "name": "shipping_code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 7, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 8, "name": "delivery_expectation_range_max", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 9, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 10, "name": "delivery_expectation_type", "comment": null}, "discounted_price": {"type": "integer", "index": 11, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "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.shopify_source.stg_shopify__abandoned_checkout_shipping_line"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.stg_shopify__abandoned_checkout_tmp"}, "model.shopify_source.stg_shopify__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection"}, "model.shopify_source.stg_shopify__collection_product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection_product"}, "model.shopify_source.stg_shopify__collection_product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp"}, "model.shopify_source.stg_shopify__collection_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_tmp"}, "model.shopify_source.stg_shopify__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__customer"}, "model.shopify_source.stg_shopify__customer_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__customer_tag"}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp"}, "model.shopify_source.stg_shopify__customer_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tmp"}, "model.shopify_source.stg_shopify__discount_allocation": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"amount": {"type": "double precision", "index": 1, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 2, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 3, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 5, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 8, "name": "order_line_id", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_allocation"}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.stg_shopify__discount_allocation_tmp"}, "model.shopify_source.stg_shopify__discount_application": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocation_method": {"type": "character varying", "index": 1, "name": "allocation_method", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 3, "name": "description", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 5, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 6, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 7, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 8, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 9, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_application"}, "model.shopify_source.stg_shopify__discount_application_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp"}, "model.shopify_source.stg_shopify__discount_code_app": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_app"}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp"}, "model.shopify_source.stg_shopify__discount_code_basic": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_basic"}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp"}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_bxgy"}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp"}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_free_shipping"}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"}, "model.shopify_source.stg_shopify__discount_redeem_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_redeem_code"}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.stg_shopify__discount_redeem_code_tmp"}, "model.shopify_source.stg_shopify__fulfillment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "service": {"type": "text", "index": 5, "name": "service", "comment": null}, "shipment_status": {"type": "integer", "index": 6, "name": "shipment_status", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 8, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 9, "name": "tracking_number", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__fulfillment"}, "model.shopify_source.stg_shopify__fulfillment_event": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_event_id": {"type": "integer", "index": 1, "name": "fulfillment_event_id", "comment": null}, "fulfillment_id": {"type": "integer", "index": 2, "name": "fulfillment_id", "comment": null}, "shop_id": {"type": "integer", "index": 3, "name": "shop_id", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "message": {"type": "text", "index": 6, "name": "message", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 8, "name": "happened_at", "comment": null}, "address_1": {"type": "integer", "index": 9, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 10, "name": "city", "comment": null}, "province": {"type": "text", "index": 11, "name": "province", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "zip": {"type": "text", "index": 13, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 14, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 15, "name": "longitude", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "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.shopify_source.stg_shopify__fulfillment_event"}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp"}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp"}, "model.shopify_source.stg_shopify__inventory_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_item_id": {"type": "bigint", "index": 1, "name": "inventory_item_id", "comment": null}, "sku": {"type": "text", "index": 2, "name": "sku", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 4, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 5, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 6, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 7, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 8, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 9, "name": "is_inventory_quantity_tracked", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 10, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 11, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 12, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 13, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 14, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 15, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 16, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 17, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 18, "name": "tracked_editable_reason", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "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.shopify_source.stg_shopify__inventory_item"}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp"}, "model.shopify_source.stg_shopify__inventory_level": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "available_quantity": {"type": "integer", "index": 4, "name": "available_quantity", "comment": null}, "can_deactivate": {"type": "boolean", "index": 5, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_level"}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp"}, "model.shopify_source.stg_shopify__inventory_quantity": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_quantity_id": {"type": "bigint", "index": 1, "name": "inventory_quantity_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "inventory_state_name": {"type": "text", "index": 4, "name": "inventory_state_name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_quantity"}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp"}, "model.shopify_source.stg_shopify__location": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "is_active": {"type": "boolean", "index": 4, "name": "is_active", "comment": null}, "address_1": {"type": "text", "index": 5, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 6, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 10, "name": "country_name", "comment": null}, "is_legacy": {"type": "boolean", "index": 11, "name": "is_legacy", "comment": null}, "localized_country_name": {"type": "text", "index": 12, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 13, "name": "localized_province_name", "comment": null}, "phone": {"type": "integer", "index": 14, "name": "phone", "comment": null}, "province": {"type": "text", "index": 15, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 16, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 20, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 21, "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.shopify_source.stg_shopify__location"}, "model.shopify_source.stg_shopify__location_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.stg_shopify__location_tmp"}, "model.shopify_source.stg_shopify__media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media"}, "model.shopify_source.stg_shopify__media_image": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media_image"}, "model.shopify_source.stg_shopify__media_image_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_image_tmp"}, "model.shopify_source.stg_shopify__media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_tmp"}, "model.shopify_source.stg_shopify__metafield": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "stg_shopify__metafield", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"metafield_id": {"type": "bigint", "index": 1, "name": "metafield_id", "comment": null}, "description": {"type": "integer", "index": 2, "name": "description", "comment": null}, "namespace": {"type": "text", "index": 3, "name": "namespace", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "value_type": {"type": "text", "index": 6, "name": "value_type", "comment": null}, "owner_resource_id": {"type": "bigint", "index": 7, "name": "owner_resource_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "metafield_reference": {"type": "text", "index": 12, "name": "metafield_reference", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__metafield"}, "model.shopify_source.stg_shopify__metafield_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__metafield_tmp"}, "model.shopify_source.stg_shopify__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "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.shopify_source.stg_shopify__order"}, "model.shopify_source.stg_shopify__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "bigint", "index": 1, "name": "order_adjustment_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "amount_set": {"type": "integer", "index": 5, "name": "amount_set", "comment": null}, "tax_amount": {"type": "double precision", "index": 6, "name": "tax_amount", "comment": null}, "tax_amount_set": {"type": "integer", "index": 7, "name": "tax_amount_set", "comment": null}, "kind": {"type": "text", "index": 8, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 9, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_adjustment"}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp"}, "model.shopify_source.stg_shopify__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_discount_code"}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp"}, "model.shopify_source.stg_shopify__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "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.shopify_source.stg_shopify__order_line"}, "model.shopify_source.stg_shopify__order_line_refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_refund_id": {"type": "bigint", "index": 1, "name": "order_line_refund_id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "order_line_id": {"type": "bigint", "index": 3, "name": "order_line_id", "comment": null}, "subtotal": {"type": "integer", "index": 4, "name": "subtotal", "comment": null}, "subtotal_set": {"type": "integer", "index": 5, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 6, "name": "total_tax", "comment": null}, "total_tax_set": {"type": "integer", "index": 7, "name": "total_tax_set", "comment": null}, "quantity": {"type": "integer", "index": 8, "name": "quantity", "comment": null}, "refund_id": {"type": "bigint", "index": 9, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 10, "name": "restock_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_line_refund"}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp"}, "model.shopify_source.stg_shopify__order_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_tmp"}, "model.shopify_source.stg_shopify__order_note_attribute": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_note_attribute"}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp"}, "model.shopify_source.stg_shopify__order_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 3, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 5, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 6, "name": "discounted_price", "comment": null}, "discounted_price_set": {"type": "text", "index": 7, "name": "discounted_price_set", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 10, "name": "price_set", "comment": null}, "is_third_party_required": {"type": "boolean", "index": 11, "name": "is_third_party_required", "comment": null}, "source": {"type": "text", "index": 12, "name": "source", "comment": null}, "title": {"type": "text", "index": 13, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_line"}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp"}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_tax_line"}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"}, "model.shopify_source.stg_shopify__order_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_tag"}, "model.shopify_source.stg_shopify__order_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp"}, "model.shopify_source.stg_shopify__order_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tmp"}, "model.shopify_source.stg_shopify__order_url_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "key": {"type": "text", "index": 2, "name": "key", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_url_tag"}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp"}, "model.shopify_source.stg_shopify__product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product"}, "model.shopify_source.stg_shopify__product_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_media"}, "model.shopify_source.stg_shopify__product_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_media_tmp"}, "model.shopify_source.stg_shopify__product_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product_tag"}, "model.shopify_source.stg_shopify__product_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp"}, "model.shopify_source.stg_shopify__product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tmp"}, "model.shopify_source.stg_shopify__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "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.shopify_source.stg_shopify__product_variant"}, "model.shopify_source.stg_shopify__product_variant_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_variant_media"}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_variant_media_tmp"}, "model.shopify_source.stg_shopify__product_variant_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp"}, "model.shopify_source.stg_shopify__refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"refund_id": {"type": "bigint", "index": 1, "name": "refund_id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "order_id": {"type": "bigint", "index": 3, "name": "order_id", "comment": null}, "restock": {"type": "boolean", "index": 4, "name": "restock", "comment": null}, "total_duties_set": {"type": "integer", "index": 5, "name": "total_duties_set", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__refund"}, "model.shopify_source.stg_shopify__refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.stg_shopify__refund_tmp"}, "model.shopify_source.stg_shopify__shop": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify_source.stg_shopify__shop"}, "model.shopify_source.stg_shopify__shop_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__shop_tmp"}, "model.shopify_source.stg_shopify__tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tax_line"}, "model.shopify_source.stg_shopify__tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp"}, "model.shopify_source.stg_shopify__tender_transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "payment_method": {"type": "text", "index": 5, "name": "payment_method", "comment": null}, "remote_reference": {"type": "integer", "index": 6, "name": "remote_reference", "comment": null}, "user_id": {"type": "integer", "index": 7, "name": "user_id", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tender_transaction"}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.stg_shopify__tender_transaction_tmp"}, "model.shopify_source.stg_shopify__transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "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.shopify_source.stg_shopify__transaction"}, "model.shopify_source.stg_shopify__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__transaction_tmp"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "checkout_id": {"type": "integer", "index": 20, "name": "checkout_id", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "note": {"type": "text", "index": 22, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 23, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 24, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 25, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 26, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 27, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 28, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 29, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 30, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 31, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 32, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 33, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 34, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 35, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 36, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 37, "name": "shipping_address_zip", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 38, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 39, "name": "subtotal_price_shop_currency_code", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_pres_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 42, "name": "has_taxes_included", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 43, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 44, "name": "total_discount_shop_currency_code", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_pres_currency_code", "comment": null}, "total_duties_shop_amount": {"type": "double precision", "index": 47, "name": "total_duties_shop_amount", "comment": null}, "total_duties_shop_currency_code": {"type": "text", "index": 48, "name": "total_duties_shop_currency_code", "comment": null}, "total_duties_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_pres_amount", "comment": null}, "total_duties_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_pres_currency_code", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 51, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_shop_currency_code": {"type": "text", "index": 52, "name": "total_line_items_price_shop_currency_code", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 55, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 56, "name": "total_price_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 59, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 60, "name": "total_tax_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_pres_currency_code", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 63, "name": "completed_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 64, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 65, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 66, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 67, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 5, "name": "index", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"}, "model.shopify_source.stg_shopify_gql__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__collection"}, "model.shopify_source.stg_shopify_gql__collection_product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 5, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__collection_product"}, "model.shopify_source.stg_shopify_gql__collection_product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.stg_shopify_gql__collection_product_tmp"}, "model.shopify_source.stg_shopify_gql__collection_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.stg_shopify_gql__collection_tmp"}, "model.shopify_source.stg_shopify_gql__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer"}, "model.shopify_source.stg_shopify_gql__customer_address": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_address_id": {"type": "integer", "index": 1, "name": "customer_address_id", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "company": {"type": "text", "index": 6, "name": "company", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 8, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 10, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 11, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 12, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 13, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 15, "name": "phone", "comment": null}, "province": {"type": "text", "index": 16, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 17, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 18, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 19, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 20, "name": "timezone", "comment": null}, "has_coordinates_validated": {"type": "boolean", "index": 21, "name": "has_coordinates_validated", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 22, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 23, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 24, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_address"}, "model.shopify_source.stg_shopify_gql__customer_address_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_address_tmp"}, "model.shopify_source.stg_shopify_gql__customer_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag"}, "model.shopify_source.stg_shopify_gql__customer_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag_tmp"}, "model.shopify_source.stg_shopify_gql__customer_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tmp"}, "model.shopify_source.stg_shopify_gql__customer_visit": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_visit_id": {"type": "integer", "index": 1, "name": "customer_visit_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 4, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 5, "name": "landing_page_html", "comment": null}, "referral_code": {"type": "text", "index": 6, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 7, "name": "referral_info_html", "comment": null}, "referring_site": {"type": "text", "index": 8, "name": "referring_site", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 10, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 11, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 12, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 13, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 14, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 15, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 16, "name": "utm_parameters_term", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 17, "name": "occurred_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit"}, "model.shopify_source.stg_shopify_gql__customer_visit_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit_tmp"}, "model.shopify_source.stg_shopify_gql__discount_allocation": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocated_pres_amount": {"type": "double precision", "index": 1, "name": "allocated_pres_amount", "comment": null}, "allocated_pres_currency_code": {"type": "text", "index": 2, "name": "allocated_pres_currency_code", "comment": null}, "allocated_shop_amount": {"type": "double precision", "index": 3, "name": "allocated_shop_amount", "comment": null}, "allocated_shop_currency_code": {"type": "text", "index": 4, "name": "allocated_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 5, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 6, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 7, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation"}, "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_source.stg_shopify_gql__discount_allocation_tmp"}, "model.shopify_source.stg_shopify_gql__discount_application": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocation_method": {"type": "text", "index": 1, "name": "allocation_method", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_percentage": {"type": "double precision", "index": 8, "name": "value_percentage", "comment": null}, "value_currency_code": {"type": "text", "index": 9, "name": "value_currency_code", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_application"}, "model.shopify_source.stg_shopify_gql__discount_application_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_source.stg_shopify_gql__discount_application_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_app": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app"}, "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_app_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_basic": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic"}, "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_basic_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 13, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 14, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 17, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 18, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy"}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping"}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"}, "model.shopify_source.stg_shopify_gql__discount_redeem_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code"}, "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "service": {"type": "text", "index": 5, "name": "service", "comment": null}, "shipment_status": {"type": "text", "index": 6, "name": "shipment_status", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 12, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment"}, "model.shopify_source.stg_shopify_gql__fulfillment_event": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_event_id": {"type": "integer", "index": 1, "name": "fulfillment_event_id", "comment": null}, "fulfillment_id": {"type": "integer", "index": 2, "name": "fulfillment_id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "message": {"type": "text", "index": 4, "name": "message", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 5, "name": "estimated_delivery_at", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 6, "name": "happened_at", "comment": null}, "address_1": {"type": "text", "index": 7, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "province": {"type": "text", "index": 9, "name": "province", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "zip": {"type": "text", "index": 11, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 12, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 13, "name": "longitude", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 17, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event"}, "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_order_line_item_id": {"type": "integer", "index": 1, "name": "fulfillment_order_line_item_id", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 5, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 6, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 7, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 9, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 10, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 11, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 12, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 13, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 15, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 16, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 17, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 18, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 19, "name": "weight_value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 20, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 22, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_source.stg_shopify_gql__fulfillment_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "tracking_company": {"type": "text", "index": 3, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "text", "index": 4, "name": "tracking_number", "comment": null}, "tracking_url": {"type": "text", "index": 5, "name": "tracking_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 8, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_item_id": {"type": "integer", "index": 1, "name": "inventory_item_id", "comment": null}, "sku": {"type": "text", "index": 2, "name": "sku", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 4, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 5, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "text", "index": 6, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "text", "index": 7, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 8, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 9, "name": "is_inventory_quantity_tracked", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 10, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 11, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 12, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 13, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 14, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 15, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 16, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "boolean", "index": 17, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item"}, "model.shopify_source.stg_shopify_gql__inventory_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.stg_shopify_gql__inventory_item_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_level": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "integer", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level"}, "model.shopify_source.stg_shopify_gql__inventory_level_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.stg_shopify_gql__inventory_level_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_quantity": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_quantity_id": {"type": "integer", "index": 1, "name": "inventory_quantity_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 3, "name": "inventory_level_id", "comment": null}, "inventory_state_name": {"type": "text", "index": 4, "name": "inventory_state_name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 9, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity"}, "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_source.stg_shopify_gql__inventory_quantity_tmp"}, "model.shopify_source.stg_shopify_gql__location": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__location", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "is_active": {"type": "boolean", "index": 4, "name": "is_active", "comment": null}, "address_1": {"type": "text", "index": 5, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 6, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 10, "name": "country_name", "comment": null}, "is_legacy": {"type": "boolean", "index": 11, "name": "is_legacy", "comment": null}, "phone": {"type": "character varying", "index": 12, "name": "phone", "comment": null}, "province": {"type": "text", "index": 13, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 14, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 15, "name": "zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__location"}, "model.shopify_source.stg_shopify_gql__location_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__location_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__location_tmp"}, "model.shopify_source.stg_shopify_gql__media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "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}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media"}, "model.shopify_source.stg_shopify_gql__media_image": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_image", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 8, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media_image"}, "model.shopify_source.stg_shopify_gql__media_image_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_image_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media_image_tmp"}, "model.shopify_source.stg_shopify_gql__media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_source.stg_shopify_gql__media_tmp"}, "model.shopify_source.stg_shopify_gql__metafield": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__metafield", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"metafield_id": {"type": "integer", "index": 1, "name": "metafield_id", "comment": null}, "description": {"type": "text", "index": 2, "name": "description", "comment": null}, "namespace": {"type": "text", "index": 3, "name": "namespace", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "value_type": {"type": "text", "index": 6, "name": "value_type", "comment": null}, "owner_resource_id": {"type": "integer", "index": 7, "name": "owner_resource_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "metafield_reference": {"type": "text", "index": 12, "name": "metafield_reference", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 15, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__metafield"}, "model.shopify_source.stg_shopify_gql__metafield_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__metafield_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__metafield_tmp"}, "model.shopify_source.stg_shopify_gql__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order"}, "model.shopify_source.stg_shopify_gql__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "integer", "index": 1, "name": "order_adjustment_id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 3, "name": "amount_pres", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 4, "name": "amount_pres_currency_code", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 6, "name": "amount_shop_currency_code", "comment": null}, "tax_amount_pres": {"type": "double precision", "index": 7, "name": "tax_amount_pres", "comment": null}, "tax_amount_pres_currency_code": {"type": "text", "index": 8, "name": "tax_amount_pres_currency_code", "comment": null}, "tax_amount_shop": {"type": "double precision", "index": 9, "name": "tax_amount_shop", "comment": null}, "tax_amount_shop_currency_code": {"type": "text", "index": 10, "name": "tax_amount_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 11, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 14, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment"}, "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment_tmp"}, "model.shopify_source.stg_shopify_gql__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code"}, "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_source.stg_shopify_gql__order_discount_code_tmp"}, "model.shopify_source.stg_shopify_gql__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line"}, "model.shopify_source.stg_shopify_gql__order_line_refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_refund_id": {"type": "integer", "index": 1, "name": "order_line_refund_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "subtotal_pres_amount": {"type": "double precision", "index": 4, "name": "subtotal_pres_amount", "comment": null}, "subtotal_pres_currency_code": {"type": "text", "index": 5, "name": "subtotal_pres_currency_code", "comment": null}, "subtotal_shop_amount": {"type": "double precision", "index": 6, "name": "subtotal_shop_amount", "comment": null}, "subtotal_shop_currency_code": {"type": "text", "index": 7, "name": "subtotal_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 8, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 9, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 10, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 11, "name": "total_tax_shop_currency_code", "comment": null}, "quantity": {"type": "double precision", "index": 12, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 13, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 14, "name": "restock_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 17, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund"}, "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_source.stg_shopify_gql__order_line_refund_tmp"}, "model.shopify_source.stg_shopify_gql__order_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_note_attribute": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute"}, "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"}, "model.shopify_source.stg_shopify_gql__order_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "carrier_identifier": {"type": "text", "index": 3, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "delivery_category": {"type": "text", "index": 5, "name": "delivery_category", "comment": null}, "discounted_price_pres_amount": {"type": "double precision", "index": 6, "name": "discounted_price_pres_amount", "comment": null}, "discounted_price_pres_currency_code": {"type": "text", "index": 7, "name": "discounted_price_pres_currency_code", "comment": null}, "discounted_price_shop_amount": {"type": "double precision", "index": 8, "name": "discounted_price_shop_amount", "comment": null}, "discounted_price_shop_currency_code": {"type": "text", "index": 9, "name": "discounted_price_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 10, "name": "phone", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 11, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 12, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 13, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 14, "name": "price_shop_currency_code", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 19, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line"}, "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 3, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 4, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 5, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 6, "name": "price_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 7, "name": "rate", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_tag"}, "model.shopify_source.stg_shopify_gql__order_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_tag_tmp"}, "model.shopify_source.stg_shopify_gql__order_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_source.stg_shopify_gql__order_tmp"}, "model.shopify_source.stg_shopify_gql__product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product"}, "model.shopify_source.stg_shopify_gql__product_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "unique_key": {"type": "text", "index": 5, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_media"}, "model.shopify_source.stg_shopify_gql__product_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.stg_shopify_gql__product_media_tmp"}, "model.shopify_source.stg_shopify_gql__product_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tag"}, "model.shopify_source.stg_shopify_gql__product_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tag_tmp"}, "model.shopify_source.stg_shopify_gql__product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tmp"}, "model.shopify_source.stg_shopify_gql__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_variant"}, "model.shopify_source.stg_shopify_gql__product_variant_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 4, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media"}, "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_source.stg_shopify_gql__product_variant_media_tmp"}, "model.shopify_source.stg_shopify_gql__product_variant_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.stg_shopify_gql__product_variant_tmp"}, "model.shopify_source.stg_shopify_gql__refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"refund_id": {"type": "integer", "index": 1, "name": "refund_id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 4, "name": "user_id", "comment": null}, "return_id": {"type": "integer", "index": 5, "name": "return_id", "comment": null}, "total_refunded_pres_amount": {"type": "double precision", "index": 6, "name": "total_refunded_pres_amount", "comment": null}, "total_refunded_pres_currency_code": {"type": "text", "index": 7, "name": "total_refunded_pres_currency_code", "comment": null}, "total_refunded_shop_amount": {"type": "double precision", "index": 8, "name": "total_refunded_shop_amount", "comment": null}, "total_refunded_shop_currency_code": {"type": "text", "index": 9, "name": "total_refunded_shop_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__refund"}, "model.shopify_source.stg_shopify_gql__refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_source.stg_shopify_gql__refund_tmp"}, "model.shopify_source.stg_shopify_gql__shop": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 16, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 17, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 18, "name": "email", "comment": null}, "domain": {"type": "text", "index": 19, "name": "domain", "comment": null}, "phone": {"type": "character varying", "index": 20, "name": "phone", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 21, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 22, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 23, "name": "timezone_offset_minutes", "comment": null}, "iana_timezone": {"type": "text", "index": 24, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 25, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 26, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "has_shipping_taxes": {"type": "boolean", "index": 29, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 30, "name": "has_taxes_included_in_price", "comment": null}, "has_storefront": {"type": "boolean", "index": 31, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 32, "name": "has_checkout_api_supported", "comment": null}, "money_format": {"type": "text", "index": 33, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 34, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 35, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 36, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 37, "name": "plan_display_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 38, "name": "is_password_enabled", "comment": null}, "is_setup_required": {"type": "boolean", "index": 39, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 40, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 41, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 42, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 43, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 44, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__shop"}, "model.shopify_source.stg_shopify_gql__shop_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__shop_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__shop_tmp"}, "model.shopify_source.stg_shopify_gql__tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 3, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 4, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 5, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 6, "name": "price_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 7, "name": "rate", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tax_line"}, "model.shopify_source.stg_shopify_gql__tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tax_line_tmp"}, "model.shopify_source.stg_shopify_gql__tender_transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "payment_method": {"type": "text", "index": 5, "name": "payment_method", "comment": null}, "remote_reference": {"type": "text", "index": 6, "name": "remote_reference", "comment": null}, "user_id": {"type": "integer", "index": 7, "name": "user_id", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction"}, "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_source.stg_shopify_gql__tender_transaction_tmp"}, "model.shopify_source.stg_shopify_gql__transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "integer", "index": 3, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 4, "name": "amount_pres", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "device_id": {"type": "text", "index": 6, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 7, "name": "gateway", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 8, "name": "amount_pres_currency_code", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 9, "name": "amount_shop_currency_code", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 11, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 12, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 13, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 14, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 15, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 17, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 18, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 19, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 20, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 21, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 22, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "text", "index": 23, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 24, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 26, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 29, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 30, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 31, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 32, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__transaction"}, "model.shopify_source.stg_shopify_gql__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__transaction_tmp"}}, "sources": {"source.shopify_source.shopify.abandoned_checkout": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.shopify.abandoned_checkout"}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code"}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line"}, "source.shopify_source.shopify.collection": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection"}, "source.shopify_source.shopify.collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection_product"}, "source.shopify_source.shopify.customer": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer"}, "source.shopify_source.shopify.customer_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer_tag"}, "source.shopify_source.shopify.discount_allocation": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.shopify.discount_allocation"}, "source.shopify_source.shopify.discount_application": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_application"}, "source.shopify_source.shopify.discount_code_app": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_app"}, "source.shopify_source.shopify.discount_code_basic": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_basic"}, "source.shopify_source.shopify.discount_code_bxgy": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_bxgy"}, "source.shopify_source.shopify.discount_code_free_shipping": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_free_shipping"}, "source.shopify_source.shopify.discount_redeem_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.shopify.discount_redeem_code"}, "source.shopify_source.shopify.fulfillment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment"}, "source.shopify_source.shopify.fulfillment_event": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment_event"}, "source.shopify_source.shopify_graphql.abandoned_checkout": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_source.shopify_graphql.abandoned_checkout"}, "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"}, "source.shopify_source.shopify_graphql.collection": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.shopify_graphql.collection"}, "source.shopify_source.shopify_graphql.collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.shopify_graphql.collection_product"}, "source.shopify_source.shopify_graphql.customer_address": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_address"}, "source.shopify_source.shopify_graphql.customer": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer"}, "source.shopify_source.shopify_graphql.customer_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_tag"}, "source.shopify_source.shopify_graphql.customer_visit": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_visit_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_visit"}, "source.shopify_source.shopify_graphql.discount_allocation": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_source.shopify_graphql.discount_allocation"}, "source.shopify_source.shopify_graphql.discount_application": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_source.shopify_graphql.discount_application"}, "source.shopify_source.shopify_graphql.discount_code_app": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_app"}, "source.shopify_source.shopify_graphql.discount_code_basic": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_basic"}, "source.shopify_source.shopify_graphql.discount_code_bxgy": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_bxgy"}, "source.shopify_source.shopify_graphql.discount_code_free_shipping": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_free_shipping"}, "source.shopify_source.shopify_graphql.discount_redeem_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_source.shopify_graphql.discount_redeem_code"}, "source.shopify_source.shopify_graphql.fulfillment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_source.shopify_graphql.fulfillment"}, "source.shopify_source.shopify_graphql.fulfillment_event": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_event"}, "source.shopify_source.shopify_graphql.fulfillment_order_line_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_order_line_item"}, "source.shopify_source.shopify_graphql.fulfillment_tracking_info": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_tracking_info"}, "source.shopify_source.shopify_graphql.inventory_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.shopify_graphql.inventory_item"}, "source.shopify_source.shopify_graphql.inventory_level": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.shopify_graphql.inventory_level"}, "source.shopify_source.shopify_graphql.inventory_quantity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_source.shopify_graphql.inventory_quantity"}, "source.shopify_source.shopify_graphql.location": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.location"}, "source.shopify_source.shopify_graphql.media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_source.shopify_graphql.media"}, "source.shopify_source.shopify_graphql.media_image": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.media_image"}, "source.shopify_source.shopify_graphql.metafield": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.metafield"}, "source.shopify_source.shopify_graphql.order_adjustment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_adjustment"}, "source.shopify_source.shopify_graphql.order": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_source.shopify_graphql.order"}, "source.shopify_source.shopify_graphql.order_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_source.shopify_graphql.order_discount_code"}, "source.shopify_source.shopify_graphql.order_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_line"}, "source.shopify_source.shopify_graphql.order_line_refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_source.shopify_graphql.order_line_refund"}, "source.shopify_source.shopify_graphql.order_note_attribute": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_note_attribute"}, "source.shopify_source.shopify_graphql.order_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_shipping_line"}, "source.shopify_source.shopify_graphql.order_shipping_tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_shipping_tax_line"}, "source.shopify_source.shopify_graphql.order_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_tag"}, "source.shopify_source.shopify_graphql.product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.product"}, "source.shopify_source.shopify_graphql.product_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.shopify_graphql.product_media"}, "source.shopify_source.shopify_graphql.product_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.product_tag"}, "source.shopify_source.shopify_graphql.product_variant": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.shopify_graphql.product_variant"}, "source.shopify_source.shopify_graphql.product_variant_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_source.shopify_graphql.product_variant_media"}, "source.shopify_source.shopify_graphql.refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_source.shopify_graphql.refund"}, "source.shopify_source.shopify_graphql.shop": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.shop"}, "source.shopify_source.shopify_graphql.tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.tax_line"}, "source.shopify_source.shopify_graphql.tender_transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_source.shopify_graphql.tender_transaction"}, "source.shopify_source.shopify_graphql.transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.transaction"}, "source.shopify_source.shopify.inventory_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_item"}, "source.shopify_source.shopify.inventory_level": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_level"}, "source.shopify_source.shopify.inventory_quantity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_quantity"}, "source.shopify_source.shopify.location": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.shopify.location"}, "source.shopify_source.shopify.media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media"}, "source.shopify_source.shopify.media_image": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media_image"}, "source.shopify_source.shopify.metafield": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.metafield"}, "source.shopify_source.shopify.order_adjustment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_adjustment"}, "source.shopify_source.shopify.order": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order"}, "source.shopify_source.shopify.order_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_discount_code"}, "source.shopify_source.shopify.order_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line"}, "source.shopify_source.shopify.order_line_refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line_refund"}, "source.shopify_source.shopify.order_note_attribute": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_note_attribute"}, "source.shopify_source.shopify.order_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_line"}, "source.shopify_source.shopify.order_shipping_tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_tax_line"}, "source.shopify_source.shopify.order_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_tag"}, "source.shopify_source.shopify.order_url_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_url_tag"}, "source.shopify_source.shopify.product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product"}, "source.shopify_source.shopify.product_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_media"}, "source.shopify_source.shopify.product_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_tag"}, "source.shopify_source.shopify.product_variant": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_variant"}, "source.shopify_source.shopify.product_variant_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_variant_media"}, "source.shopify_source.shopify.refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.shopify.refund"}, "source.shopify_source.shopify.shop": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.shop"}, "source.shopify_source.shopify.tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.tax_line"}, "source.shopify_source.shopify.tender_transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.shopify.tender_transaction"}, "source.shopify_source.shopify.transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.transaction"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.10.6", "generated_at": "2025-08-06T19:12:35.794443Z", "invocation_id": "a1a1c0f7-774a-452e-8815-3e67df4d0e48", "invocation_started_at": "2025-08-06T19:12:21.203935Z", "env": {}}, "nodes": {"seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_integration_tests.shopify_abandoned_checkout_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data"}, "seed.shopify_integration_tests.shopify_collection_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_data"}, "seed.shopify_integration_tests.shopify_collection_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data"}, "seed.shopify_integration_tests.shopify_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_data"}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data"}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_integration_tests.shopify_discount_allocation_data"}, "seed.shopify_integration_tests.shopify_discount_application_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data"}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data"}, "seed.shopify_integration_tests.shopify_discount_code_basic_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data"}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data"}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data"}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_integration_tests.shopify_discount_redeem_code_data"}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data"}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data"}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_integration_tests.shopify_gql_abandoned_checkout_data"}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data"}, "seed.shopify_integration_tests.shopify_gql_collection_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_integration_tests.shopify_gql_collection_data"}, "seed.shopify_integration_tests.shopify_gql_collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_collection_product"}, "seed.shopify_integration_tests.shopify_gql_collection_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_collection_product_data"}, "seed.shopify_integration_tests.shopify_gql_collection_rule_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_rule_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "condition": {"type": "text", "index": 4, "name": "condition", "comment": null}, "relation": {"type": "text", "index": 5, "name": "relation", "comment": null}, "columns": {"type": "text", "index": 6, "name": "columns", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_rule_data"}, "seed.shopify_integration_tests.shopify_gql_customer_address_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_address_data"}, "seed.shopify_integration_tests.shopify_gql_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_data"}, "seed.shopify_integration_tests.shopify_gql_customer_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_tag_data"}, "seed.shopify_integration_tests.shopify_gql_customer_visit_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_visit_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_visit_data"}, "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_integration_tests.shopify_gql_discount_allocation_data"}, "seed.shopify_integration_tests.shopify_gql_discount_application_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_integration_tests.shopify_gql_discount_application_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_app_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_basic_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_bxgy_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data"}, "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_integration_tests.shopify_gql_discount_redeem_code_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_integration_tests.shopify_gql_fulfillment_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_integration_tests.shopify_gql_inventory_item_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_level_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_integration_tests.shopify_gql_inventory_level_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_integration_tests.shopify_gql_inventory_quantity_data"}, "seed.shopify_integration_tests.shopify_gql_location_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_location_data"}, "seed.shopify_integration_tests.shopify_gql_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_integration_tests.shopify_gql_media_data"}, "seed.shopify_integration_tests.shopify_gql_media_image_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_media_image_data"}, "seed.shopify_integration_tests.shopify_gql_metafield_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_metafield_data"}, "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_adjustment_data"}, "seed.shopify_integration_tests.shopify_gql_order_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_integration_tests.shopify_gql_order_data"}, "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_integration_tests.shopify_gql_order_discount_code_data"}, "seed.shopify_integration_tests.shopify_gql_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_integration_tests.shopify_gql_order_line_refund_data"}, "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data"}, "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_tag_data"}, "seed.shopify_integration_tests.shopify_gql_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_product_data"}, "seed.shopify_integration_tests.shopify_gql_product_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_product_media_data"}, "seed.shopify_integration_tests.shopify_gql_product_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_product_tag_data"}, "seed.shopify_integration_tests.shopify_gql_product_variant_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_integration_tests.shopify_gql_product_variant_data"}, "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_integration_tests.shopify_gql_product_variant_media_data"}, "seed.shopify_integration_tests.shopify_gql_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_integration_tests.shopify_gql_refund_data"}, "seed.shopify_integration_tests.shopify_gql_shop_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_shop_data"}, "seed.shopify_integration_tests.shopify_gql_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_tax_line_data"}, "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_integration_tests.shopify_gql_tender_transaction_data"}, "seed.shopify_integration_tests.shopify_gql_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_transaction_data"}, "seed.shopify_integration_tests.shopify_inventory_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data"}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data"}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data"}, "seed.shopify_integration_tests.shopify_location_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_integration_tests.shopify_location_data"}, "seed.shopify_integration_tests.shopify_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_data"}, "seed.shopify_integration_tests.shopify_media_image_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_image_data"}, "seed.shopify_integration_tests.shopify_metafield_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_metafield_data"}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data"}, "seed.shopify_integration_tests.shopify_order_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_data"}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data"}, "seed.shopify_integration_tests.shopify_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_data"}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data"}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data"}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data"}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data"}, "seed.shopify_integration_tests.shopify_order_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data"}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data"}, "seed.shopify_integration_tests.shopify_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_data"}, "seed.shopify_integration_tests.shopify_product_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_media_data"}, "seed.shopify_integration_tests.shopify_product_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data"}, "seed.shopify_integration_tests.shopify_product_variant_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data"}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_variant_media_data"}, "seed.shopify_integration_tests.shopify_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_integration_tests.shopify_refund_data"}, "seed.shopify_integration_tests.shopify_shop_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_shop_data"}, "seed.shopify_integration_tests.shopify_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data"}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_integration_tests.shopify_tender_transaction_data"}, "seed.shopify_integration_tests.shopify_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_transaction_data"}, "model.shopify.int_shopify__customer_email_rollup": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify__customer_email_rollup"}, "model.shopify.int_shopify_gql__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}, "rules": {"type": "text", "index": 11, "name": "rules", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__collection"}, "model.shopify.int_shopify_gql__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_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.shopify.int_shopify_gql__customer"}, "model.shopify.int_shopify_gql__customer_email_rollup": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__customer_email_rollup", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "account_state": {"type": "text", "index": 15, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 16, "name": "note", "comment": null}, "currency": {"type": "text", "index": 17, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 18, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 19, "name": "marketing_opt_in_level", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_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.shopify.int_shopify_gql__customer_email_rollup"}, "model.shopify.int_shopify_gql__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_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.shopify.int_shopify_gql__order"}, "model.shopify.int_shopify_gql__orders_order_line_aggregates": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_line_aggregates", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "line_item_count": {"type": "bigint", "index": 3, "name": "line_item_count", "comment": null}, "order_total_quantity": {"type": "bigint", "index": 4, "name": "order_total_quantity", "comment": null}, "order_total_tax": {"type": "double precision", "index": 5, "name": "order_total_tax", "comment": null}, "order_total_discount": {"type": "double precision", "index": 6, "name": "order_total_discount", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 8, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_pres_currency_codes": {"type": "text", "index": 9, "name": "total_line_items_price_pres_currency_codes", "comment": null}, "total_line_items_price_shop_currency_codes": {"type": "text", "index": 10, "name": "total_line_items_price_shop_currency_codes", "comment": null}, "order_total_shipping": {"type": "double precision", "index": 11, "name": "order_total_shipping", "comment": null}, "order_total_shipping_with_discounts": {"type": "double precision", "index": 12, "name": "order_total_shipping_with_discounts", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 13, "name": "order_total_shipping_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__orders_order_line_aggregates"}, "model.shopify.int_shopify_gql__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}, "weight": {"type": "double precision", "index": 24, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__product_variant"}, "model.shopify.shopify__calendar": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__calendar", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__calendar"}, "model.shopify.shopify__collection_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__collection_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__collection_metafields"}, "model.shopify.shopify__customer_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "date", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_cohorts"}, "model.shopify.shopify__customer_email_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_email_cohorts"}, "model.shopify.shopify__customer_emails": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_emails", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 21, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_order_value": {"type": "double precision", "index": 24, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 25, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 26, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 27, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 28, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 29, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 30, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 31, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 32, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 33, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 34, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 35, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 36, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 37, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 38, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 39, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_emails"}, "model.shopify.shopify__customer_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "metafield_star_wars_firstname": {"type": "text", "index": 21, "name": "metafield_star_wars_firstname", "comment": null}, "metafield_star_wars_fullname": {"type": "text", "index": 22, "name": "metafield_star_wars_fullname", "comment": null}, "metafield_star_wars_isjedi": {"type": "text", "index": 23, "name": "metafield_star_wars_isjedi", "comment": null}, "metafield_star_wars_lastname": {"type": "text", "index": 24, "name": "metafield_star_wars_lastname", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_metafields"}, "model.shopify.shopify__customers": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customers", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 5, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 9, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 10, "name": "note", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 12, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 13, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 14, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 15, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 19, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_order_timestamp", "comment": null}, "customer_tags": {"type": "text", "index": 22, "name": "customer_tags", "comment": null}, "avg_order_value": {"type": "double precision", "index": 23, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 24, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 25, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 26, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 27, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 28, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 29, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 30, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 31, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 32, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 33, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 34, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 35, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 36, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 37, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 38, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customers"}, "model.shopify.shopify__daily_shop": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__daily_shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "shop_id": {"type": "integer", "index": 2, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "domain": {"type": "text", "index": 4, "name": "domain", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 7, "name": "enabled_presentment_currencies", "comment": null}, "iana_timezone": {"type": "text", "index": 8, "name": "iana_timezone", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "count_orders": {"type": "bigint", "index": 11, "name": "count_orders", "comment": null}, "count_line_items": {"type": "numeric", "index": 12, "name": "count_line_items", "comment": null}, "avg_line_item_count": {"type": "numeric", "index": 13, "name": "avg_line_item_count", "comment": null}, "count_customers": {"type": "bigint", "index": 14, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 15, "name": "count_customer_emails", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 16, "name": "order_adjusted_total", "comment": null}, "avg_order_value": {"type": "double precision", "index": 17, "name": "avg_order_value", "comment": null}, "shipping_cost": {"type": "double precision", "index": 18, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "numeric", "index": 19, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 20, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "numeric", "index": 21, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 22, "name": "refund_total_tax", "comment": null}, "total_discounts": {"type": "double precision", "index": 23, "name": "total_discounts", "comment": null}, "avg_discount": {"type": "double precision", "index": 24, "name": "avg_discount", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 25, "name": "shipping_discount_amount", "comment": null}, "avg_shipping_discount_amount": {"type": "double precision", "index": 26, "name": "avg_shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 27, "name": "percentage_calc_discount_amount", "comment": null}, "avg_percentage_calc_discount_amount": {"type": "double precision", "index": 28, "name": "avg_percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 29, "name": "fixed_amount_discount_amount", "comment": null}, "avg_fixed_amount_discount_amount": {"type": "double precision", "index": 30, "name": "avg_fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "numeric", "index": 31, "name": "count_discount_codes_applied", "comment": null}, "count_locations_ordered_from": {"type": "bigint", "index": 32, "name": "count_locations_ordered_from", "comment": null}, "count_orders_with_discounts": {"type": "bigint", "index": 33, "name": "count_orders_with_discounts", "comment": null}, "count_orders_with_refunds": {"type": "bigint", "index": 34, "name": "count_orders_with_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 36, "name": "last_order_timestamp", "comment": null}, "quantity_sold": {"type": "bigint", "index": 37, "name": "quantity_sold", "comment": null}, "quantity_refunded": {"type": "numeric", "index": 38, "name": "quantity_refunded", "comment": null}, "quantity_net": {"type": "numeric", "index": 39, "name": "quantity_net", "comment": null}, "avg_quantity_sold": {"type": "bigint", "index": 40, "name": "avg_quantity_sold", "comment": null}, "avg_quantity_net": {"type": "numeric", "index": 41, "name": "avg_quantity_net", "comment": null}, "count_variants_sold": {"type": "bigint", "index": 42, "name": "count_variants_sold", "comment": null}, "count_products_sold": {"type": "bigint", "index": 43, "name": "count_products_sold", "comment": null}, "quantity_gift_cards_sold": {"type": "numeric", "index": 44, "name": "quantity_gift_cards_sold", "comment": null}, "quantity_requiring_shipping": {"type": "numeric", "index": 45, "name": "quantity_requiring_shipping", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 46, "name": "count_abandoned_checkouts", "comment": null}, "count_customers_abandoned_checkout": {"type": "bigint", "index": 47, "name": "count_customers_abandoned_checkout", "comment": null}, "count_customer_emails_abandoned_checkout": {"type": "bigint", "index": 48, "name": "count_customer_emails_abandoned_checkout", "comment": null}, "count_fulfillment_attempted_delivery": {"type": "bigint", "index": 49, "name": "count_fulfillment_attempted_delivery", "comment": null}, "count_fulfillment_delayed": {"type": "bigint", "index": 50, "name": "count_fulfillment_delayed", "comment": null}, "count_fulfillment_delivered": {"type": "bigint", "index": 51, "name": "count_fulfillment_delivered", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 52, "name": "count_fulfillment_failure", "comment": null}, "count_fulfillment_in_transit": {"type": "bigint", "index": 53, "name": "count_fulfillment_in_transit", "comment": null}, "count_fulfillment_out_for_delivery": {"type": "bigint", "index": 54, "name": "count_fulfillment_out_for_delivery", "comment": null}, "count_fulfillment_ready_for_pickup": {"type": "bigint", "index": 55, "name": "count_fulfillment_ready_for_pickup", "comment": null}, "count_fulfillment_picked_up": {"type": "bigint", "index": 56, "name": "count_fulfillment_picked_up", "comment": null}, "count_fulfillment_label_printed": {"type": "bigint", "index": 57, "name": "count_fulfillment_label_printed", "comment": null}, "count_fulfillment_label_purchased": {"type": "bigint", "index": 58, "name": "count_fulfillment_label_purchased", "comment": null}, "count_fulfillment_confirmed": {"type": "bigint", "index": 59, "name": "count_fulfillment_confirmed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__daily_shop"}, "model.shopify.shopify__discounts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__discounts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"code": {"type": "character varying", "index": 1, "name": "code", "comment": null}, "discount_code_id": {"type": "bigint", "index": 2, "name": "discount_code_id", "comment": null}, "discount_type": {"type": "text", "index": 3, "name": "discount_type", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_count": {"type": "integer", "index": 5, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 14, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 15, "name": "status", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 17, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 18, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 20, "name": "usage_limit", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "allocation_method": {"type": "character varying", "index": 22, "name": "allocation_method", "comment": null}, "description": {"type": "character varying", "index": 23, "name": "description", "comment": null}, "target_selection": {"type": "character varying", "index": 24, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 25, "name": "target_type", "comment": null}, "application_type": {"type": "character varying", "index": 26, "name": "application_type", "comment": null}, "value": {"type": "double precision", "index": 27, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 28, "name": "value_type", "comment": null}, "discounts_unique_key": {"type": "text", "index": 29, "name": "discounts_unique_key", "comment": null}, "count_orders": {"type": "bigint", "index": 30, "name": "count_orders", "comment": null}, "avg_order_discount_amount": {"type": "double precision", "index": 31, "name": "avg_order_discount_amount", "comment": null}, "total_order_discount_amount": {"type": "double precision", "index": 32, "name": "total_order_discount_amount", "comment": null}, "total_order_line_items_price": {"type": "double precision", "index": 33, "name": "total_order_line_items_price", "comment": null}, "total_order_shipping_cost": {"type": "double precision", "index": 34, "name": "total_order_shipping_cost", "comment": null}, "total_order_refund_amount": {"type": "double precision", "index": 35, "name": "total_order_refund_amount", "comment": null}, "count_customers": {"type": "bigint", "index": 36, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 37, "name": "count_customer_emails", "comment": null}, "total_abandoned_checkout_discount_amount": {"type": "double precision", "index": 38, "name": "total_abandoned_checkout_discount_amount", "comment": null}, "total_abandoned_checkout_shipping_price": {"type": "double precision", "index": 39, "name": "total_abandoned_checkout_shipping_price", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 40, "name": "count_abandoned_checkouts", "comment": null}, "count_abandoned_checkout_customers": {"type": "bigint", "index": 41, "name": "count_abandoned_checkout_customers", "comment": null}, "count_abandoned_checkout_customer_emails": {"type": "bigint", "index": 42, "name": "count_abandoned_checkout_customer_emails", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__discounts"}, "model.shopify.shopify__inventory_levels": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__inventory_levels", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "sku": {"type": "text", "index": 10, "name": "sku", "comment": null}, "is_inventory_item_deleted": {"type": "boolean", "index": 11, "name": "is_inventory_item_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 14, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 15, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 16, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 17, "name": "is_inventory_quantity_tracked", "comment": null}, "inventory_item_created_at": {"type": "timestamp without time zone", "index": 18, "name": "inventory_item_created_at", "comment": null}, "inventory_item_updated_at": {"type": "timestamp without time zone", "index": 19, "name": "inventory_item_updated_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 20, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 21, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 22, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 23, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 24, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 25, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 26, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 27, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 28, "name": "tracked_editable_reason", "comment": null}, "location_name": {"type": "text", "index": 29, "name": "location_name", "comment": null}, "is_location_deleted": {"type": "boolean", "index": 30, "name": "is_location_deleted", "comment": null}, "is_location_active": {"type": "boolean", "index": 31, "name": "is_location_active", "comment": null}, "address_1": {"type": "text", "index": 32, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 33, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 34, "name": "city", "comment": null}, "country": {"type": "text", "index": 35, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 36, "name": "country_code", "comment": null}, "is_legacy_location": {"type": "boolean", "index": 37, "name": "is_legacy_location", "comment": null}, "province": {"type": "text", "index": 38, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 39, "name": "province_code", "comment": null}, "phone": {"type": "integer", "index": 40, "name": "phone", "comment": null}, "zip": {"type": "integer", "index": 41, "name": "zip", "comment": null}, "location_created_at": {"type": "timestamp without time zone", "index": 42, "name": "location_created_at", "comment": null}, "location_updated_at": {"type": "timestamp without time zone", "index": 43, "name": "location_updated_at", "comment": null}, "variant_id": {"type": "bigint", "index": 44, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 45, "name": "product_id", "comment": null}, "variant_title": {"type": "text", "index": 46, "name": "variant_title", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 47, "name": "variant_inventory_policy", "comment": null}, "variant_price": {"type": "double precision", "index": 48, "name": "variant_price", "comment": null}, "variant_media_id": {"type": "bigint", "index": 49, "name": "variant_media_id", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 50, "name": "variant_fulfillment_service", "comment": null}, "variant_inventory_management": {"type": "text", "index": 51, "name": "variant_inventory_management", "comment": null}, "is_variant_taxable": {"type": "boolean", "index": 52, "name": "is_variant_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 53, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 54, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 55, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 56, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 57, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 58, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 59, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 60, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 61, "name": "variant_tax_code", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 62, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 63, "name": "variant_updated_at", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 64, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 65, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 66, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 67, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 68, "name": "variant_sellable_online_quantity", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 69, "name": "subtotal_sold", "comment": null}, "quantity_sold": {"type": "bigint", "index": 70, "name": "quantity_sold", "comment": null}, "count_distinct_orders": {"type": "bigint", "index": 71, "name": "count_distinct_orders", "comment": null}, "count_distinct_customers": {"type": "bigint", "index": 72, "name": "count_distinct_customers", "comment": null}, "count_distinct_customer_emails": {"type": "bigint", "index": 73, "name": "count_distinct_customer_emails", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 74, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 75, "name": "last_order_timestamp", "comment": null}, "subtotal_sold_refunds": {"type": "numeric", "index": 76, "name": "subtotal_sold_refunds", "comment": null}, "quantity_sold_refunds": {"type": "numeric", "index": 77, "name": "quantity_sold_refunds", "comment": null}, "count_fulfillment_pending": {"type": "bigint", "index": 78, "name": "count_fulfillment_pending", "comment": null}, "count_fulfillment_open": {"type": "bigint", "index": 79, "name": "count_fulfillment_open", "comment": null}, "count_fulfillment_success": {"type": "bigint", "index": 80, "name": "count_fulfillment_success", "comment": null}, "count_fulfillment_cancelled": {"type": "bigint", "index": 81, "name": "count_fulfillment_cancelled", "comment": null}, "count_fulfillment_error": {"type": "bigint", "index": 82, "name": "count_fulfillment_error", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 83, "name": "count_fulfillment_failure", "comment": null}, "incoming_quantity": {"type": "bigint", "index": 84, "name": "incoming_quantity", "comment": null}, "on_hand_quantity": {"type": "bigint", "index": 85, "name": "on_hand_quantity", "comment": null}, "available_quantity": {"type": "bigint", "index": 86, "name": "available_quantity", "comment": null}, "committed_quantity": {"type": "bigint", "index": 87, "name": "committed_quantity", "comment": null}, "reserved_quantity": {"type": "bigint", "index": 88, "name": "reserved_quantity", "comment": null}, "damaged_quantity": {"type": "bigint", "index": 89, "name": "damaged_quantity", "comment": null}, "safety_stock_quantity": {"type": "bigint", "index": 90, "name": "safety_stock_quantity", "comment": null}, "quality_control_quantity": {"type": "bigint", "index": 91, "name": "quality_control_quantity", "comment": null}, "net_subtotal_sold": {"type": "numeric", "index": 92, "name": "net_subtotal_sold", "comment": null}, "net_quantity_sold": {"type": "numeric", "index": 93, "name": "net_quantity_sold", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__inventory_levels"}, "model.shopify.shopify__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"header_id": {"type": "bigint", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "numeric(28,6)", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "numeric(28,6)", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "numeric(28,6)", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "numeric(28,6)", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "numeric(28,6)", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "numeric(28,6)", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "text", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "double precision", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "text", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "bigint", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "source_relation": {"type": "text", "index": 37, "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.shopify.shopify__line_item_enhanced"}, "model.shopify.shopify__order_lines": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_lines", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "name": "source_relation", "comment": null}, "order_lines_unique_key": {"type": "text", "index": 29, "name": "order_lines_unique_key", "comment": null}, "restock_types": {"type": "text", "index": 30, "name": "restock_types", "comment": null}, "refunded_quantity": {"type": "bigint", "index": 31, "name": "refunded_quantity", "comment": null}, "refunded_subtotal": {"type": "bigint", "index": 32, "name": "refunded_subtotal", "comment": null}, "quantity_net_refunds": {"type": "bigint", "index": 33, "name": "quantity_net_refunds", "comment": null}, "subtotal_net_refunds": {"type": "bigint", "index": 34, "name": "subtotal_net_refunds", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 35, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 36, "name": "variant_updated_at", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 37, "name": "inventory_item_id", "comment": null}, "media_id": {"type": "bigint", "index": 38, "name": "media_id", "comment": null}, "variant_price": {"type": "double precision", "index": 39, "name": "variant_price", "comment": null}, "variant_sku": {"type": "text", "index": 40, "name": "variant_sku", "comment": null}, "variant_position": {"type": "integer", "index": 41, "name": "variant_position", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 42, "name": "variant_inventory_policy", "comment": null}, "variant_compare_at_price": {"type": "integer", "index": 43, "name": "variant_compare_at_price", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 44, "name": "variant_fulfillment_service", "comment": null}, "variant_is_taxable": {"type": "boolean", "index": 45, "name": "variant_is_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 46, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 47, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 48, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 49, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 50, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 51, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 52, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 53, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 54, "name": "variant_tax_code", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 55, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 56, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 57, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 58, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 59, "name": "variant_sellable_online_quantity", "comment": null}, "order_line_tax": {"type": "double precision", "index": 60, "name": "order_line_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_lines"}, "model.shopify.shopify__order_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 81, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_howmany": {"type": "text", "index": 82, "name": "metafield_avengers_howmany", "comment": null}, "metafield_star_wars_isinspace": {"type": "text", "index": 83, "name": "metafield_star_wars_isinspace", "comment": null}, "metafield_star_wars_numbersequels": {"type": "text", "index": 84, "name": "metafield_star_wars_numbersequels", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_metafields"}, "model.shopify.shopify__orders": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "orders_unique_key": {"type": "text", "index": 81, "name": "orders_unique_key", "comment": null}, "shipping_cost": {"type": "double precision", "index": 82, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "bigint", "index": 83, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 84, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "bigint", "index": 85, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 86, "name": "refund_total_tax", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 87, "name": "order_adjusted_total", "comment": null}, "line_item_count": {"type": "bigint", "index": 88, "name": "line_item_count", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 89, "name": "shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 90, "name": "percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 91, "name": "fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "bigint", "index": 92, "name": "count_discount_codes_applied", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 93, "name": "order_total_shipping_tax", "comment": null}, "order_tags": {"type": "text", "index": 94, "name": "order_tags", "comment": null}, "order_url_tags": {"type": "text", "index": 95, "name": "order_url_tags", "comment": null}, "number_of_fulfillments": {"type": "bigint", "index": 96, "name": "number_of_fulfillments", "comment": null}, "fulfillment_services": {"type": "text", "index": 97, "name": "fulfillment_services", "comment": null}, "tracking_companies": {"type": "text", "index": 98, "name": "tracking_companies", "comment": null}, "tracking_numbers": {"type": "text", "index": 99, "name": "tracking_numbers", "comment": null}, "customer_order_seq_number": {"type": "bigint", "index": 100, "name": "customer_order_seq_number", "comment": null}, "new_vs_repeat": {"type": "text", "index": 101, "name": "new_vs_repeat", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders"}, "model.shopify.shopify__orders__order_line_aggregates": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "line_item_count": {"type": "bigint", "index": 3, "name": "line_item_count", "comment": null}, "order_total_quantity": {"type": "bigint", "index": 4, "name": "order_total_quantity", "comment": null}, "order_total_tax": {"type": "double precision", "index": 5, "name": "order_total_tax", "comment": null}, "order_total_discount": {"type": "bigint", "index": 6, "name": "order_total_discount", "comment": null}, "order_total_shipping": {"type": "double precision", "index": 7, "name": "order_total_shipping", "comment": null}, "order_total_shipping_with_discounts": {"type": "double precision", "index": 8, "name": "order_total_shipping_with_discounts", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 9, "name": "order_total_shipping_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders__order_line_aggregates"}, "model.shopify.shopify__product_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__product_metafields"}, "model.shopify.shopify__product_variant_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 31, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_wherearethey": {"type": "text", "index": 32, "name": "metafield_avengers_wherearethey", "comment": null}, "metafield_star_wars_wheninspace": {"type": "text", "index": 33, "name": "metafield_star_wars_wheninspace", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__product_variant_metafields"}, "model.shopify.shopify__products": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__products", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "collections": {"type": "text", "index": 14, "name": "collections", "comment": null}, "tags": {"type": "text", "index": 15, "name": "tags", "comment": null}, "count_variants": {"type": "bigint", "index": 16, "name": "count_variants", "comment": null}, "has_product_media": {"type": "boolean", "index": 17, "name": "has_product_media", "comment": null}, "total_quantity_sold": {"type": "bigint", "index": 18, "name": "total_quantity_sold", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 19, "name": "subtotal_sold", "comment": null}, "quantity_sold_net_refunds": {"type": "numeric", "index": 20, "name": "quantity_sold_net_refunds", "comment": null}, "subtotal_sold_net_refunds": {"type": "numeric", "index": 21, "name": "subtotal_sold_net_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_quantity_per_order_line": {"type": "numeric", "index": 24, "name": "avg_quantity_per_order_line", "comment": null}, "product_total_discount": {"type": "bigint", "index": 25, "name": "product_total_discount", "comment": null}, "product_avg_discount_per_order_line": {"type": "numeric", "index": 26, "name": "product_avg_discount_per_order_line", "comment": null}, "product_total_tax": {"type": "double precision", "index": 27, "name": "product_total_tax", "comment": null}, "product_avg_tax_per_order_line": {"type": "double precision", "index": 28, "name": "product_avg_tax_per_order_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__products"}, "model.shopify.shopify__shop_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__shop_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify.shopify__shop_metafields"}, "model.shopify.shopify__transactions": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__transactions", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "name": "source_relation", "comment": null}, "transactions_unique_id": {"type": "text", "index": 33, "name": "transactions_unique_id", "comment": null}, "payment_method": {"type": "text", "index": 34, "name": "payment_method", "comment": null}, "parent_created_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "parent_created_timestamp", "comment": null}, "parent_kind": {"type": "text", "index": 36, "name": "parent_kind", "comment": null}, "parent_amount": {"type": "double precision", "index": 37, "name": "parent_amount", "comment": null}, "parent_status": {"type": "text", "index": 38, "name": "parent_status", "comment": null}, "exchange_rate": {"type": "numeric", "index": 39, "name": "exchange_rate", "comment": null}, "currency_exchange_calculated_amount": {"type": "double precision", "index": 40, "name": "currency_exchange_calculated_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__transactions"}, "model.shopify.shopify_gql__collection_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__collection_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}, "rules": {"type": "text", "index": 11, "name": "rules", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb": {"type": "text", "index": 12, "name": "metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw": {"type": "text", "index": 13, "name": "metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__collection_metafields"}, "model.shopify.shopify_gql__customer_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify_gql__customer_cohorts"}, "model.shopify.shopify_gql__customer_email_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_email_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify_gql__customer_email_cohorts"}, "model.shopify.shopify_gql__customer_emails": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_emails", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "account_state": {"type": "text", "index": 15, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 16, "name": "note", "comment": null}, "currency": {"type": "text", "index": 17, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 18, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 19, "name": "marketing_opt_in_level", "comment": null}, "default_address_id": {"type": "integer", "index": 20, "name": "default_address_id", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 21, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_order_value": {"type": "double precision", "index": 24, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 25, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 26, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 27, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 28, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 29, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 30, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 31, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "double precision", "index": 32, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "double precision", "index": 33, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 34, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 35, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 36, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 37, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 38, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 39, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customer_emails"}, "model.shopify.shopify_gql__customer_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_id", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj": {"type": "text", "index": 22, "name": "metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre": {"type": "text", "index": 23, "name": "metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customer_metafields"}, "model.shopify.shopify_gql__customers": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customers", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "phone": {"type": "character varying", "index": 5, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 6, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 7, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 8, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 9, "name": "note", "comment": null}, "currency": {"type": "text", "index": 10, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 11, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 12, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 13, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 14, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 15, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 16, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}, "default_address_id": {"type": "integer", "index": 18, "name": "default_address_id", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 19, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_order_timestamp", "comment": null}, "customer_tags": {"type": "text", "index": 22, "name": "customer_tags", "comment": null}, "avg_order_value": {"type": "double precision", "index": 23, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 24, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 25, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 26, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 27, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 28, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 29, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 30, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "double precision", "index": 31, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "double precision", "index": 32, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 33, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 34, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 35, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 36, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 37, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 38, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customers"}, "model.shopify.shopify_gql__daily_shop": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__daily_shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "shop_id": {"type": "integer", "index": 2, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "domain": {"type": "text", "index": 4, "name": "domain", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 7, "name": "enabled_presentment_currencies", "comment": null}, "iana_timezone": {"type": "text", "index": 8, "name": "iana_timezone", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "count_orders": {"type": "bigint", "index": 11, "name": "count_orders", "comment": null}, "count_line_items": {"type": "numeric", "index": 12, "name": "count_line_items", "comment": null}, "avg_line_item_count": {"type": "numeric", "index": 13, "name": "avg_line_item_count", "comment": null}, "count_customers": {"type": "bigint", "index": 14, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 15, "name": "count_customer_emails", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 16, "name": "order_adjusted_total", "comment": null}, "avg_order_value": {"type": "double precision", "index": 17, "name": "avg_order_value", "comment": null}, "shipping_cost": {"type": "double precision", "index": 18, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "double precision", "index": 19, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 20, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "double precision", "index": 21, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 22, "name": "refund_total_tax", "comment": null}, "total_discounts": {"type": "double precision", "index": 23, "name": "total_discounts", "comment": null}, "avg_discount": {"type": "double precision", "index": 24, "name": "avg_discount", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 25, "name": "shipping_discount_amount", "comment": null}, "avg_shipping_discount_amount": {"type": "double precision", "index": 26, "name": "avg_shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 27, "name": "percentage_calc_discount_amount", "comment": null}, "avg_percentage_calc_discount_amount": {"type": "double precision", "index": 28, "name": "avg_percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 29, "name": "fixed_amount_discount_amount", "comment": null}, "avg_fixed_amount_discount_amount": {"type": "double precision", "index": 30, "name": "avg_fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "numeric", "index": 31, "name": "count_discount_codes_applied", "comment": null}, "count_locations_ordered_from": {"type": "bigint", "index": 32, "name": "count_locations_ordered_from", "comment": null}, "count_orders_with_discounts": {"type": "bigint", "index": 33, "name": "count_orders_with_discounts", "comment": null}, "count_orders_with_refunds": {"type": "bigint", "index": 34, "name": "count_orders_with_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 36, "name": "last_order_timestamp", "comment": null}, "quantity_sold": {"type": "bigint", "index": 37, "name": "quantity_sold", "comment": null}, "quantity_refunded": {"type": "double precision", "index": 38, "name": "quantity_refunded", "comment": null}, "quantity_net": {"type": "double precision", "index": 39, "name": "quantity_net", "comment": null}, "avg_quantity_sold": {"type": "bigint", "index": 40, "name": "avg_quantity_sold", "comment": null}, "avg_quantity_net": {"type": "double precision", "index": 41, "name": "avg_quantity_net", "comment": null}, "count_variants_sold": {"type": "bigint", "index": 42, "name": "count_variants_sold", "comment": null}, "count_products_sold": {"type": "bigint", "index": 43, "name": "count_products_sold", "comment": null}, "quantity_gift_cards_sold": {"type": "double precision", "index": 44, "name": "quantity_gift_cards_sold", "comment": null}, "quantity_requiring_shipping": {"type": "double precision", "index": 45, "name": "quantity_requiring_shipping", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 46, "name": "count_abandoned_checkouts", "comment": null}, "count_customers_abandoned_checkout": {"type": "bigint", "index": 47, "name": "count_customers_abandoned_checkout", "comment": null}, "count_customer_emails_abandoned_checkout": {"type": "bigint", "index": 48, "name": "count_customer_emails_abandoned_checkout", "comment": null}, "count_fulfillment_attempted_delivery": {"type": "bigint", "index": 49, "name": "count_fulfillment_attempted_delivery", "comment": null}, "count_fulfillment_delayed": {"type": "bigint", "index": 50, "name": "count_fulfillment_delayed", "comment": null}, "count_fulfillment_delivered": {"type": "bigint", "index": 51, "name": "count_fulfillment_delivered", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 52, "name": "count_fulfillment_failure", "comment": null}, "count_fulfillment_in_transit": {"type": "bigint", "index": 53, "name": "count_fulfillment_in_transit", "comment": null}, "count_fulfillment_out_for_delivery": {"type": "bigint", "index": 54, "name": "count_fulfillment_out_for_delivery", "comment": null}, "count_fulfillment_ready_for_pickup": {"type": "bigint", "index": 55, "name": "count_fulfillment_ready_for_pickup", "comment": null}, "count_fulfillment_label_printed": {"type": "bigint", "index": 56, "name": "count_fulfillment_label_printed", "comment": null}, "count_fulfillment_label_purchased": {"type": "bigint", "index": 57, "name": "count_fulfillment_label_purchased", "comment": null}, "count_fulfillment_confirmed": {"type": "bigint", "index": 58, "name": "count_fulfillment_confirmed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__daily_shop"}, "model.shopify.shopify_gql__discounts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__discounts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"code": {"type": "text", "index": 1, "name": "code", "comment": null}, "discount_code_id": {"type": "integer", "index": 2, "name": "discount_code_id", "comment": null}, "discount_type": {"type": "text", "index": 3, "name": "discount_type", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_count": {"type": "integer", "index": 5, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 14, "name": "starts_at", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 17, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 18, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 20, "name": "usage_limit", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "allocation_method": {"type": "text", "index": 22, "name": "allocation_method", "comment": null}, "target_selection": {"type": "text", "index": 23, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 24, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 25, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 26, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 27, "name": "value_percentage", "comment": null}, "value_type": {"type": "text", "index": 28, "name": "value_type", "comment": null}, "unique_key": {"type": "text", "index": 29, "name": "unique_key", "comment": null}, "count_orders": {"type": "bigint", "index": 30, "name": "count_orders", "comment": null}, "avg_order_discount_amount": {"type": "double precision", "index": 31, "name": "avg_order_discount_amount", "comment": null}, "total_order_discount_amount": {"type": "double precision", "index": 32, "name": "total_order_discount_amount", "comment": null}, "total_order_line_items_price": {"type": "double precision", "index": 33, "name": "total_order_line_items_price", "comment": null}, "total_order_shipping_cost": {"type": "double precision", "index": 34, "name": "total_order_shipping_cost", "comment": null}, "total_order_refund_amount": {"type": "double precision", "index": 35, "name": "total_order_refund_amount", "comment": null}, "count_customers": {"type": "bigint", "index": 36, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 37, "name": "count_customer_emails", "comment": null}, "total_abandoned_checkout_discount_amount": {"type": "double precision", "index": 38, "name": "total_abandoned_checkout_discount_amount", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 39, "name": "count_abandoned_checkouts", "comment": null}, "count_abandoned_checkout_customers": {"type": "bigint", "index": 40, "name": "count_abandoned_checkout_customers", "comment": null}, "count_abandoned_checkout_customer_emails": {"type": "bigint", "index": 41, "name": "count_abandoned_checkout_customer_emails", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__discounts"}, "model.shopify.shopify_gql__inventory_levels": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__inventory_levels", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "integer", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "sku": {"type": "text", "index": 10, "name": "sku", "comment": null}, "is_inventory_item_deleted": {"type": "boolean", "index": 11, "name": "is_inventory_item_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "text", "index": 14, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "text", "index": 15, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 16, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 17, "name": "is_inventory_quantity_tracked", "comment": null}, "inventory_item_created_at": {"type": "timestamp without time zone", "index": 18, "name": "inventory_item_created_at", "comment": null}, "inventory_item_updated_at": {"type": "timestamp without time zone", "index": 19, "name": "inventory_item_updated_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 20, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 21, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 22, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 23, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 24, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 25, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 26, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "boolean", "index": 27, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 28, "name": "tracked_editable_reason", "comment": null}, "location_name": {"type": "text", "index": 29, "name": "location_name", "comment": null}, "is_location_deleted": {"type": "boolean", "index": 30, "name": "is_location_deleted", "comment": null}, "is_location_active": {"type": "boolean", "index": 31, "name": "is_location_active", "comment": null}, "address_1": {"type": "text", "index": 32, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 33, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 34, "name": "city", "comment": null}, "country": {"type": "text", "index": 35, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 36, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 37, "name": "country_name", "comment": null}, "is_legacy_location": {"type": "boolean", "index": 38, "name": "is_legacy_location", "comment": null}, "province": {"type": "text", "index": 39, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 40, "name": "province_code", "comment": null}, "phone": {"type": "character varying", "index": 41, "name": "phone", "comment": null}, "zip": {"type": "integer", "index": 42, "name": "zip", "comment": null}, "location_created_at": {"type": "timestamp without time zone", "index": 43, "name": "location_created_at", "comment": null}, "location_updated_at": {"type": "timestamp without time zone", "index": 44, "name": "location_updated_at", "comment": null}, "variant_id": {"type": "integer", "index": 45, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 46, "name": "product_id", "comment": null}, "variant_title": {"type": "text", "index": 47, "name": "variant_title", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 48, "name": "variant_inventory_policy", "comment": null}, "variant_price": {"type": "double precision", "index": 49, "name": "variant_price", "comment": null}, "variant_media_id": {"type": "integer", "index": 50, "name": "variant_media_id", "comment": null}, "is_variant_taxable": {"type": "boolean", "index": 51, "name": "is_variant_taxable", "comment": null}, "variant_barcode": {"type": "text", "index": 52, "name": "variant_barcode", "comment": null}, "variant_inventory_quantity": {"type": "integer", "index": 53, "name": "variant_inventory_quantity", "comment": null}, "variant_tax_code": {"type": "text", "index": 54, "name": "variant_tax_code", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 55, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 56, "name": "variant_updated_at", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 57, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 58, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "integer", "index": 59, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 60, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 61, "name": "variant_sellable_online_quantity", "comment": null}, "subtotal_sold": {"type": "double precision", "index": 62, "name": "subtotal_sold", "comment": null}, "quantity_sold": {"type": "bigint", "index": 63, "name": "quantity_sold", "comment": null}, "count_distinct_orders": {"type": "bigint", "index": 64, "name": "count_distinct_orders", "comment": null}, "count_distinct_customers": {"type": "bigint", "index": 65, "name": "count_distinct_customers", "comment": null}, "count_distinct_customer_emails": {"type": "bigint", "index": 66, "name": "count_distinct_customer_emails", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 67, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 68, "name": "last_order_timestamp", "comment": null}, "subtotal_sold_refunds": {"type": "double precision", "index": 69, "name": "subtotal_sold_refunds", "comment": null}, "quantity_sold_refunds": {"type": "double precision", "index": 70, "name": "quantity_sold_refunds", "comment": null}, "count_fulfillment_pending": {"type": "bigint", "index": 71, "name": "count_fulfillment_pending", "comment": null}, "count_fulfillment_open": {"type": "bigint", "index": 72, "name": "count_fulfillment_open", "comment": null}, "count_fulfillment_success": {"type": "bigint", "index": 73, "name": "count_fulfillment_success", "comment": null}, "count_fulfillment_cancelled": {"type": "bigint", "index": 74, "name": "count_fulfillment_cancelled", "comment": null}, "count_fulfillment_error": {"type": "bigint", "index": 75, "name": "count_fulfillment_error", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 76, "name": "count_fulfillment_failure", "comment": null}, "incoming_quantity": {"type": "bigint", "index": 77, "name": "incoming_quantity", "comment": null}, "on_hand_quantity": {"type": "bigint", "index": 78, "name": "on_hand_quantity", "comment": null}, "available_quantity": {"type": "bigint", "index": 79, "name": "available_quantity", "comment": null}, "committed_quantity": {"type": "bigint", "index": 80, "name": "committed_quantity", "comment": null}, "reserved_quantity": {"type": "bigint", "index": 81, "name": "reserved_quantity", "comment": null}, "damaged_quantity": {"type": "bigint", "index": 82, "name": "damaged_quantity", "comment": null}, "safety_stock_quantity": {"type": "bigint", "index": 83, "name": "safety_stock_quantity", "comment": null}, "quality_control_quantity": {"type": "bigint", "index": 84, "name": "quality_control_quantity", "comment": null}, "net_subtotal_sold": {"type": "double precision", "index": 85, "name": "net_subtotal_sold", "comment": null}, "net_quantity_sold": {"type": "double precision", "index": 86, "name": "net_quantity_sold", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__inventory_levels"}, "model.shopify.shopify_gql__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__line_item_enhanced", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"header_id": {"type": "integer", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "numeric(28,6)", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "numeric(28,6)", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "numeric(28,6)", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "numeric(28,6)", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "numeric(28,6)", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "numeric(28,6)", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "text", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "double precision", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "text", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "integer", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "source_relation": {"type": "text", "index": 37, "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.shopify.shopify_gql__line_item_enhanced"}, "model.shopify.shopify_gql__order_lines": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__order_lines", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}, "pre_tax_price": {"type": "double precision", "index": 27, "name": "pre_tax_price", "comment": null}, "order_line_tax": {"type": "double precision", "index": 28, "name": "order_line_tax", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 29, "name": "fulfillable_quantity", "comment": null}, "weight_unit": {"type": "text", "index": 30, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 31, "name": "weight_value", "comment": null}, "restock_types": {"type": "text", "index": 32, "name": "restock_types", "comment": null}, "refunded_quantity": {"type": "double precision", "index": 33, "name": "refunded_quantity", "comment": null}, "refunded_subtotal": {"type": "double precision", "index": 34, "name": "refunded_subtotal", "comment": null}, "quantity_net_refunds": {"type": "double precision", "index": 35, "name": "quantity_net_refunds", "comment": null}, "subtotal_net_refunds": {"type": "double precision", "index": 36, "name": "subtotal_net_refunds", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 37, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 38, "name": "variant_updated_at", "comment": null}, "inventory_item_id": {"type": "integer", "index": 39, "name": "inventory_item_id", "comment": null}, "media_id": {"type": "integer", "index": 40, "name": "media_id", "comment": null}, "variant_price": {"type": "double precision", "index": 41, "name": "variant_price", "comment": null}, "variant_sku": {"type": "text", "index": 42, "name": "variant_sku", "comment": null}, "variant_position": {"type": "integer", "index": 43, "name": "variant_position", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 44, "name": "variant_inventory_policy", "comment": null}, "variant_compare_at_price": {"type": "character varying", "index": 45, "name": "variant_compare_at_price", "comment": null}, "variant_is_taxable": {"type": "boolean", "index": 46, "name": "variant_is_taxable", "comment": null}, "variant_barcode": {"type": "text", "index": 47, "name": "variant_barcode", "comment": null}, "variant_inventory_quantity": {"type": "integer", "index": 48, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 49, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 50, "name": "variant_weight_unit", "comment": null}, "variant_tax_code": {"type": "text", "index": 51, "name": "variant_tax_code", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 52, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 53, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "integer", "index": 54, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 55, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 56, "name": "variant_sellable_online_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.shopify.shopify_gql__order_lines"}, "model.shopify.shopify_gql__order_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__order_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_url", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw": {"type": "text", "index": 89, "name": "metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe": {"type": "text", "index": 90, "name": "metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__order_metafields"}, "model.shopify.shopify_gql__orders": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__orders", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_url", "comment": null}, "order_adjustment_amount": {"type": "double precision", "index": 89, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 90, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "double precision", "index": 91, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 92, "name": "refund_total_tax", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 93, "name": "order_adjusted_total", "comment": null}, "line_item_count": {"type": "bigint", "index": 94, "name": "line_item_count", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 95, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 96, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_pres_currency_codes": {"type": "text", "index": 97, "name": "total_line_items_price_pres_currency_codes", "comment": null}, "total_line_items_price_shop_currency_codes": {"type": "text", "index": 98, "name": "total_line_items_price_shop_currency_codes", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 99, "name": "shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 100, "name": "percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 101, "name": "fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "bigint", "index": 102, "name": "count_discount_codes_applied", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 103, "name": "order_total_shipping_tax", "comment": null}, "order_tags": {"type": "text", "index": 104, "name": "order_tags", "comment": null}, "number_of_fulfillments": {"type": "bigint", "index": 105, "name": "number_of_fulfillments", "comment": null}, "fulfillment_services": {"type": "text", "index": 106, "name": "fulfillment_services", "comment": null}, "tracking_companies": {"type": "text", "index": 107, "name": "tracking_companies", "comment": null}, "tracking_numbers": {"type": "text", "index": 108, "name": "tracking_numbers", "comment": null}, "customer_order_seq_number": {"type": "bigint", "index": 109, "name": "customer_order_seq_number", "comment": null}, "new_vs_repeat": {"type": "text", "index": 110, "name": "new_vs_repeat", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__orders"}, "model.shopify.shopify_gql__product_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__product_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bc_brenbre": {"type": "text", "index": 14, "name": "metafield_bea81c1795a612d8fc3a232b156467bc_brenbre", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42": {"type": "text", "index": 15, "name": "metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__product_metafields"}, "model.shopify.shopify_gql__product_variant_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__product_variant_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}, "weight": {"type": "double precision", "index": 24, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__product_variant_metafields"}, "model.shopify.shopify_gql__products": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__products", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}, "collections": {"type": "text", "index": 14, "name": "collections", "comment": null}, "tags": {"type": "text", "index": 15, "name": "tags", "comment": null}, "count_variants": {"type": "bigint", "index": 16, "name": "count_variants", "comment": null}, "has_product_media": {"type": "boolean", "index": 17, "name": "has_product_media", "comment": null}, "total_quantity_sold": {"type": "bigint", "index": 18, "name": "total_quantity_sold", "comment": null}, "subtotal_sold": {"type": "double precision", "index": 19, "name": "subtotal_sold", "comment": null}, "quantity_sold_net_refunds": {"type": "double precision", "index": 20, "name": "quantity_sold_net_refunds", "comment": null}, "subtotal_sold_net_refunds": {"type": "double precision", "index": 21, "name": "subtotal_sold_net_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_quantity_per_order_line": {"type": "numeric", "index": 24, "name": "avg_quantity_per_order_line", "comment": null}, "product_total_discount": {"type": "double precision", "index": 25, "name": "product_total_discount", "comment": null}, "product_avg_discount_per_order_line": {"type": "double precision", "index": 26, "name": "product_avg_discount_per_order_line", "comment": null}, "product_total_tax": {"type": "double precision", "index": 27, "name": "product_total_tax", "comment": null}, "product_avg_tax_per_order_line": {"type": "double precision", "index": 28, "name": "product_avg_tax_per_order_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__products"}, "model.shopify.shopify_gql__shop_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__shop_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 16, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 17, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 18, "name": "email", "comment": null}, "domain": {"type": "text", "index": 19, "name": "domain", "comment": null}, "phone": {"type": "character varying", "index": 20, "name": "phone", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 21, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 22, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 23, "name": "timezone_offset_minutes", "comment": null}, "iana_timezone": {"type": "text", "index": 24, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 25, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 26, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "has_shipping_taxes": {"type": "boolean", "index": 29, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 30, "name": "has_taxes_included_in_price", "comment": null}, "has_storefront": {"type": "boolean", "index": 31, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 32, "name": "has_checkout_api_supported", "comment": null}, "money_format": {"type": "text", "index": 33, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 34, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 35, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 36, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 37, "name": "plan_display_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 38, "name": "is_password_enabled", "comment": null}, "is_setup_required": {"type": "boolean", "index": 39, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 40, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 41, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 42, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 43, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 44, "name": "unique_key", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew": {"type": "text", "index": 45, "name": "metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__shop_metafields"}, "model.shopify.shopify_gql__transactions": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__transactions", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "integer", "index": 3, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 4, "name": "amount_pres", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "device_id": {"type": "text", "index": 6, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 7, "name": "gateway", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 8, "name": "amount_pres_currency_code", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 9, "name": "amount_shop_currency_code", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 11, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 12, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 13, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 14, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 15, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 17, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 18, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 19, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 20, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 21, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 22, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "text", "index": 23, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 24, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 26, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 29, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 30, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 31, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 32, "name": "unique_key", "comment": null}, "payment_method": {"type": "text", "index": 33, "name": "payment_method", "comment": null}, "parent_created_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "parent_created_timestamp", "comment": null}, "parent_kind": {"type": "text", "index": 35, "name": "parent_kind", "comment": null}, "parent_amount": {"type": "double precision", "index": 36, "name": "parent_amount", "comment": null}, "parent_status": {"type": "text", "index": 37, "name": "parent_status", "comment": null}, "location_id": {"type": "integer", "index": 38, "name": "location_id", "comment": null}, "source_name": {"type": "text", "index": 39, "name": "source_name", "comment": null}, "exchange_rate": {"type": "numeric", "index": 40, "name": "exchange_rate", "comment": null}, "currency_exchange_calculated_amount": {"type": "double precision", "index": 41, "name": "currency_exchange_calculated_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__transactions"}, "model.shopify_source.stg_shopify__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 18, "name": "has_buyer_accepted_marketing", "comment": null}, "cart_token": {"type": "text", "index": 19, "name": "cart_token", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 20, "name": "created_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 21, "name": "closed_at", "comment": null}, "shop_currency": {"type": "text", "index": 22, "name": "shop_currency", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 24, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 25, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 26, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 27, "name": "gateway", "comment": null}, "checkout_id": {"type": "integer", "index": 28, "name": "checkout_id", "comment": null}, "landing_site_base_url": {"type": "text", "index": 29, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 30, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 31, "name": "name", "comment": null}, "note": {"type": "integer", "index": 32, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 33, "name": "phone", "comment": null}, "presentment_currency": {"type": "text", "index": 34, "name": "presentment_currency", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 36, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 37, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 38, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 39, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 40, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 41, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 42, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 43, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 44, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 45, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 46, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 47, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 48, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 49, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 50, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 51, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 52, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 53, "name": "has_taxes_included", "comment": null}, "token": {"type": "text", "index": 54, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_duties": {"type": "integer", "index": 56, "name": "total_duties", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 57, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 58, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 59, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 60, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 61, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 62, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 63, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 64, "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.shopify_source.stg_shopify__abandoned_checkout"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "discount_id": {"type": "bigint", "index": 3, "name": "discount_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "type": {"type": "character varying", "index": 5, "name": "type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 10, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"abandoned_checkout_shipping_line_id": {"type": "text", "index": 1, "name": "abandoned_checkout_shipping_line_id", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "shipping_code": {"type": "text", "index": 5, "name": "shipping_code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 7, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 8, "name": "delivery_expectation_range_max", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 9, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 10, "name": "delivery_expectation_type", "comment": null}, "discounted_price": {"type": "integer", "index": 11, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "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.shopify_source.stg_shopify__abandoned_checkout_shipping_line"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.stg_shopify__abandoned_checkout_tmp"}, "model.shopify_source.stg_shopify__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection"}, "model.shopify_source.stg_shopify__collection_product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection_product"}, "model.shopify_source.stg_shopify__collection_product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp"}, "model.shopify_source.stg_shopify__collection_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_tmp"}, "model.shopify_source.stg_shopify__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__customer"}, "model.shopify_source.stg_shopify__customer_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__customer_tag"}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp"}, "model.shopify_source.stg_shopify__customer_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tmp"}, "model.shopify_source.stg_shopify__discount_allocation": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"amount": {"type": "double precision", "index": 1, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 2, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 3, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 5, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 8, "name": "order_line_id", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_allocation"}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.stg_shopify__discount_allocation_tmp"}, "model.shopify_source.stg_shopify__discount_application": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocation_method": {"type": "character varying", "index": 1, "name": "allocation_method", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 3, "name": "description", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 5, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 6, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 7, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 8, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 9, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_application"}, "model.shopify_source.stg_shopify__discount_application_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp"}, "model.shopify_source.stg_shopify__discount_code_app": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_app"}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp"}, "model.shopify_source.stg_shopify__discount_code_basic": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_basic"}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp"}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_bxgy"}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp"}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_free_shipping"}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"}, "model.shopify_source.stg_shopify__discount_redeem_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_redeem_code"}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.stg_shopify__discount_redeem_code_tmp"}, "model.shopify_source.stg_shopify__fulfillment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "service": {"type": "text", "index": 5, "name": "service", "comment": null}, "shipment_status": {"type": "integer", "index": 6, "name": "shipment_status", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 8, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 9, "name": "tracking_number", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__fulfillment"}, "model.shopify_source.stg_shopify__fulfillment_event": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_event_id": {"type": "integer", "index": 1, "name": "fulfillment_event_id", "comment": null}, "fulfillment_id": {"type": "integer", "index": 2, "name": "fulfillment_id", "comment": null}, "shop_id": {"type": "integer", "index": 3, "name": "shop_id", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "message": {"type": "text", "index": 6, "name": "message", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 8, "name": "happened_at", "comment": null}, "address_1": {"type": "integer", "index": 9, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 10, "name": "city", "comment": null}, "province": {"type": "text", "index": 11, "name": "province", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "zip": {"type": "text", "index": 13, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 14, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 15, "name": "longitude", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "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.shopify_source.stg_shopify__fulfillment_event"}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp"}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp"}, "model.shopify_source.stg_shopify__inventory_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_item_id": {"type": "bigint", "index": 1, "name": "inventory_item_id", "comment": null}, "sku": {"type": "text", "index": 2, "name": "sku", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 4, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 5, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 6, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 7, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 8, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 9, "name": "is_inventory_quantity_tracked", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 10, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 11, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 12, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 13, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 14, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 15, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 16, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 17, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 18, "name": "tracked_editable_reason", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "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.shopify_source.stg_shopify__inventory_item"}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp"}, "model.shopify_source.stg_shopify__inventory_level": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "available_quantity": {"type": "integer", "index": 4, "name": "available_quantity", "comment": null}, "can_deactivate": {"type": "boolean", "index": 5, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_level"}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp"}, "model.shopify_source.stg_shopify__inventory_quantity": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_quantity_id": {"type": "bigint", "index": 1, "name": "inventory_quantity_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "inventory_state_name": {"type": "text", "index": 4, "name": "inventory_state_name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_quantity"}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp"}, "model.shopify_source.stg_shopify__location": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "is_active": {"type": "boolean", "index": 4, "name": "is_active", "comment": null}, "address_1": {"type": "text", "index": 5, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 6, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 10, "name": "country_name", "comment": null}, "is_legacy": {"type": "boolean", "index": 11, "name": "is_legacy", "comment": null}, "localized_country_name": {"type": "text", "index": 12, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 13, "name": "localized_province_name", "comment": null}, "phone": {"type": "integer", "index": 14, "name": "phone", "comment": null}, "province": {"type": "text", "index": 15, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 16, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 20, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 21, "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.shopify_source.stg_shopify__location"}, "model.shopify_source.stg_shopify__location_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.stg_shopify__location_tmp"}, "model.shopify_source.stg_shopify__media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media"}, "model.shopify_source.stg_shopify__media_image": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media_image"}, "model.shopify_source.stg_shopify__media_image_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_image_tmp"}, "model.shopify_source.stg_shopify__media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_tmp"}, "model.shopify_source.stg_shopify__metafield": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "stg_shopify__metafield", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"metafield_id": {"type": "bigint", "index": 1, "name": "metafield_id", "comment": null}, "description": {"type": "integer", "index": 2, "name": "description", "comment": null}, "namespace": {"type": "text", "index": 3, "name": "namespace", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "value_type": {"type": "text", "index": 6, "name": "value_type", "comment": null}, "owner_resource_id": {"type": "bigint", "index": 7, "name": "owner_resource_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "metafield_reference": {"type": "text", "index": 12, "name": "metafield_reference", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__metafield"}, "model.shopify_source.stg_shopify__metafield_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__metafield_tmp"}, "model.shopify_source.stg_shopify__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "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.shopify_source.stg_shopify__order"}, "model.shopify_source.stg_shopify__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "bigint", "index": 1, "name": "order_adjustment_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "amount_set": {"type": "integer", "index": 5, "name": "amount_set", "comment": null}, "tax_amount": {"type": "double precision", "index": 6, "name": "tax_amount", "comment": null}, "tax_amount_set": {"type": "integer", "index": 7, "name": "tax_amount_set", "comment": null}, "kind": {"type": "text", "index": 8, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 9, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_adjustment"}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp"}, "model.shopify_source.stg_shopify__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_discount_code"}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp"}, "model.shopify_source.stg_shopify__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "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.shopify_source.stg_shopify__order_line"}, "model.shopify_source.stg_shopify__order_line_refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_refund_id": {"type": "bigint", "index": 1, "name": "order_line_refund_id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "order_line_id": {"type": "bigint", "index": 3, "name": "order_line_id", "comment": null}, "subtotal": {"type": "integer", "index": 4, "name": "subtotal", "comment": null}, "subtotal_set": {"type": "integer", "index": 5, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 6, "name": "total_tax", "comment": null}, "total_tax_set": {"type": "integer", "index": 7, "name": "total_tax_set", "comment": null}, "quantity": {"type": "integer", "index": 8, "name": "quantity", "comment": null}, "refund_id": {"type": "bigint", "index": 9, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 10, "name": "restock_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_line_refund"}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp"}, "model.shopify_source.stg_shopify__order_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_tmp"}, "model.shopify_source.stg_shopify__order_note_attribute": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_note_attribute"}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp"}, "model.shopify_source.stg_shopify__order_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 3, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 5, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 6, "name": "discounted_price", "comment": null}, "discounted_price_set": {"type": "text", "index": 7, "name": "discounted_price_set", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 10, "name": "price_set", "comment": null}, "is_third_party_required": {"type": "boolean", "index": 11, "name": "is_third_party_required", "comment": null}, "source": {"type": "text", "index": 12, "name": "source", "comment": null}, "title": {"type": "text", "index": 13, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_line"}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp"}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_tax_line"}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"}, "model.shopify_source.stg_shopify__order_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_tag"}, "model.shopify_source.stg_shopify__order_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp"}, "model.shopify_source.stg_shopify__order_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tmp"}, "model.shopify_source.stg_shopify__order_url_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "key": {"type": "text", "index": 2, "name": "key", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_url_tag"}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp"}, "model.shopify_source.stg_shopify__product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product"}, "model.shopify_source.stg_shopify__product_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_media"}, "model.shopify_source.stg_shopify__product_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_media_tmp"}, "model.shopify_source.stg_shopify__product_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product_tag"}, "model.shopify_source.stg_shopify__product_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp"}, "model.shopify_source.stg_shopify__product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tmp"}, "model.shopify_source.stg_shopify__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "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.shopify_source.stg_shopify__product_variant"}, "model.shopify_source.stg_shopify__product_variant_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_variant_media"}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_variant_media_tmp"}, "model.shopify_source.stg_shopify__product_variant_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp"}, "model.shopify_source.stg_shopify__refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"refund_id": {"type": "bigint", "index": 1, "name": "refund_id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "order_id": {"type": "bigint", "index": 3, "name": "order_id", "comment": null}, "restock": {"type": "boolean", "index": 4, "name": "restock", "comment": null}, "total_duties_set": {"type": "integer", "index": 5, "name": "total_duties_set", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__refund"}, "model.shopify_source.stg_shopify__refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.stg_shopify__refund_tmp"}, "model.shopify_source.stg_shopify__shop": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify_source.stg_shopify__shop"}, "model.shopify_source.stg_shopify__shop_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__shop_tmp"}, "model.shopify_source.stg_shopify__tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tax_line"}, "model.shopify_source.stg_shopify__tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp"}, "model.shopify_source.stg_shopify__tender_transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "payment_method": {"type": "text", "index": 5, "name": "payment_method", "comment": null}, "remote_reference": {"type": "integer", "index": 6, "name": "remote_reference", "comment": null}, "user_id": {"type": "integer", "index": 7, "name": "user_id", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tender_transaction"}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.stg_shopify__tender_transaction_tmp"}, "model.shopify_source.stg_shopify__transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "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.shopify_source.stg_shopify__transaction"}, "model.shopify_source.stg_shopify__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__transaction_tmp"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "checkout_id": {"type": "integer", "index": 20, "name": "checkout_id", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "note": {"type": "text", "index": 22, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 23, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 24, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 25, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 26, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 27, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 28, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 29, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 30, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 31, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 32, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 33, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 34, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 35, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 36, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 37, "name": "shipping_address_zip", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 38, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 39, "name": "subtotal_price_shop_currency_code", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_pres_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 42, "name": "has_taxes_included", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 43, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 44, "name": "total_discount_shop_currency_code", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_pres_currency_code", "comment": null}, "total_duties_shop_amount": {"type": "double precision", "index": 47, "name": "total_duties_shop_amount", "comment": null}, "total_duties_shop_currency_code": {"type": "text", "index": 48, "name": "total_duties_shop_currency_code", "comment": null}, "total_duties_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_pres_amount", "comment": null}, "total_duties_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_pres_currency_code", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 51, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_shop_currency_code": {"type": "text", "index": 52, "name": "total_line_items_price_shop_currency_code", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 55, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 56, "name": "total_price_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 59, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 60, "name": "total_tax_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_pres_currency_code", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 63, "name": "completed_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 64, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 65, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 66, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 67, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 5, "name": "index", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"}, "model.shopify_source.stg_shopify_gql__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__collection"}, "model.shopify_source.stg_shopify_gql__collection_product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 5, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__collection_product"}, "model.shopify_source.stg_shopify_gql__collection_product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.stg_shopify_gql__collection_product_tmp"}, "model.shopify_source.stg_shopify_gql__collection_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.stg_shopify_gql__collection_tmp"}, "model.shopify_source.stg_shopify_gql__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer"}, "model.shopify_source.stg_shopify_gql__customer_address": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_address_id": {"type": "integer", "index": 1, "name": "customer_address_id", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "company": {"type": "text", "index": 6, "name": "company", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 8, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 10, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 11, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 12, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 13, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 15, "name": "phone", "comment": null}, "province": {"type": "text", "index": 16, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 17, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 18, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 19, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 20, "name": "timezone", "comment": null}, "has_coordinates_validated": {"type": "boolean", "index": 21, "name": "has_coordinates_validated", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 22, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 23, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 24, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_address"}, "model.shopify_source.stg_shopify_gql__customer_address_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_address_tmp"}, "model.shopify_source.stg_shopify_gql__customer_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag"}, "model.shopify_source.stg_shopify_gql__customer_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag_tmp"}, "model.shopify_source.stg_shopify_gql__customer_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tmp"}, "model.shopify_source.stg_shopify_gql__customer_visit": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_visit_id": {"type": "integer", "index": 1, "name": "customer_visit_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 4, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 5, "name": "landing_page_html", "comment": null}, "referral_code": {"type": "text", "index": 6, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 7, "name": "referral_info_html", "comment": null}, "referring_site": {"type": "text", "index": 8, "name": "referring_site", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 10, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 11, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 12, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 13, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 14, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 15, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 16, "name": "utm_parameters_term", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 17, "name": "occurred_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit"}, "model.shopify_source.stg_shopify_gql__customer_visit_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit_tmp"}, "model.shopify_source.stg_shopify_gql__discount_allocation": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocated_pres_amount": {"type": "double precision", "index": 1, "name": "allocated_pres_amount", "comment": null}, "allocated_pres_currency_code": {"type": "text", "index": 2, "name": "allocated_pres_currency_code", "comment": null}, "allocated_shop_amount": {"type": "double precision", "index": 3, "name": "allocated_shop_amount", "comment": null}, "allocated_shop_currency_code": {"type": "text", "index": 4, "name": "allocated_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 5, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 6, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 7, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation"}, "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_source.stg_shopify_gql__discount_allocation_tmp"}, "model.shopify_source.stg_shopify_gql__discount_application": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocation_method": {"type": "text", "index": 1, "name": "allocation_method", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_percentage": {"type": "double precision", "index": 8, "name": "value_percentage", "comment": null}, "value_currency_code": {"type": "text", "index": 9, "name": "value_currency_code", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_application"}, "model.shopify_source.stg_shopify_gql__discount_application_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_source.stg_shopify_gql__discount_application_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_app": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app"}, "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_app_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_basic": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic"}, "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_basic_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 13, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 14, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 17, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 18, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy"}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping"}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"}, "model.shopify_source.stg_shopify_gql__discount_redeem_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code"}, "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "service": {"type": "text", "index": 5, "name": "service", "comment": null}, "shipment_status": {"type": "text", "index": 6, "name": "shipment_status", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 12, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment"}, "model.shopify_source.stg_shopify_gql__fulfillment_event": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_event_id": {"type": "integer", "index": 1, "name": "fulfillment_event_id", "comment": null}, "fulfillment_id": {"type": "integer", "index": 2, "name": "fulfillment_id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "message": {"type": "text", "index": 4, "name": "message", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 5, "name": "estimated_delivery_at", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 6, "name": "happened_at", "comment": null}, "address_1": {"type": "text", "index": 7, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "province": {"type": "text", "index": 9, "name": "province", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "zip": {"type": "text", "index": 11, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 12, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 13, "name": "longitude", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 17, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event"}, "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_order_line_item_id": {"type": "integer", "index": 1, "name": "fulfillment_order_line_item_id", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 5, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 6, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 7, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 9, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 10, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 11, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 12, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 13, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 15, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 16, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 17, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 18, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 19, "name": "weight_value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 20, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 22, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_source.stg_shopify_gql__fulfillment_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "tracking_company": {"type": "text", "index": 3, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "text", "index": 4, "name": "tracking_number", "comment": null}, "tracking_url": {"type": "text", "index": 5, "name": "tracking_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 8, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_item_id": {"type": "integer", "index": 1, "name": "inventory_item_id", "comment": null}, "sku": {"type": "text", "index": 2, "name": "sku", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 4, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 5, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "text", "index": 6, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "text", "index": 7, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 8, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 9, "name": "is_inventory_quantity_tracked", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 10, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 11, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 12, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 13, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 14, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 15, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 16, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "boolean", "index": 17, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item"}, "model.shopify_source.stg_shopify_gql__inventory_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.stg_shopify_gql__inventory_item_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_level": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "integer", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level"}, "model.shopify_source.stg_shopify_gql__inventory_level_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.stg_shopify_gql__inventory_level_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_quantity": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_quantity_id": {"type": "integer", "index": 1, "name": "inventory_quantity_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 3, "name": "inventory_level_id", "comment": null}, "inventory_state_name": {"type": "text", "index": 4, "name": "inventory_state_name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 9, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity"}, "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_source.stg_shopify_gql__inventory_quantity_tmp"}, "model.shopify_source.stg_shopify_gql__location": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__location", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "is_active": {"type": "boolean", "index": 4, "name": "is_active", "comment": null}, "address_1": {"type": "text", "index": 5, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 6, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 10, "name": "country_name", "comment": null}, "is_legacy": {"type": "boolean", "index": 11, "name": "is_legacy", "comment": null}, "phone": {"type": "character varying", "index": 12, "name": "phone", "comment": null}, "province": {"type": "text", "index": 13, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 14, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 15, "name": "zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__location"}, "model.shopify_source.stg_shopify_gql__location_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__location_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__location_tmp"}, "model.shopify_source.stg_shopify_gql__media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "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}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media"}, "model.shopify_source.stg_shopify_gql__media_image": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_image", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 8, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media_image"}, "model.shopify_source.stg_shopify_gql__media_image_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_image_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media_image_tmp"}, "model.shopify_source.stg_shopify_gql__media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_source.stg_shopify_gql__media_tmp"}, "model.shopify_source.stg_shopify_gql__metafield": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__metafield", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"metafield_id": {"type": "integer", "index": 1, "name": "metafield_id", "comment": null}, "description": {"type": "text", "index": 2, "name": "description", "comment": null}, "namespace": {"type": "text", "index": 3, "name": "namespace", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "value_type": {"type": "text", "index": 6, "name": "value_type", "comment": null}, "owner_resource_id": {"type": "integer", "index": 7, "name": "owner_resource_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "metafield_reference": {"type": "text", "index": 12, "name": "metafield_reference", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 15, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__metafield"}, "model.shopify_source.stg_shopify_gql__metafield_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__metafield_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__metafield_tmp"}, "model.shopify_source.stg_shopify_gql__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order"}, "model.shopify_source.stg_shopify_gql__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "integer", "index": 1, "name": "order_adjustment_id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 3, "name": "amount_pres", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 4, "name": "amount_pres_currency_code", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 6, "name": "amount_shop_currency_code", "comment": null}, "tax_amount_pres": {"type": "double precision", "index": 7, "name": "tax_amount_pres", "comment": null}, "tax_amount_pres_currency_code": {"type": "text", "index": 8, "name": "tax_amount_pres_currency_code", "comment": null}, "tax_amount_shop": {"type": "double precision", "index": 9, "name": "tax_amount_shop", "comment": null}, "tax_amount_shop_currency_code": {"type": "text", "index": 10, "name": "tax_amount_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 11, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 14, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment"}, "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment_tmp"}, "model.shopify_source.stg_shopify_gql__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code"}, "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_source.stg_shopify_gql__order_discount_code_tmp"}, "model.shopify_source.stg_shopify_gql__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line"}, "model.shopify_source.stg_shopify_gql__order_line_refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_refund_id": {"type": "integer", "index": 1, "name": "order_line_refund_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "subtotal_pres_amount": {"type": "double precision", "index": 4, "name": "subtotal_pres_amount", "comment": null}, "subtotal_pres_currency_code": {"type": "text", "index": 5, "name": "subtotal_pres_currency_code", "comment": null}, "subtotal_shop_amount": {"type": "double precision", "index": 6, "name": "subtotal_shop_amount", "comment": null}, "subtotal_shop_currency_code": {"type": "text", "index": 7, "name": "subtotal_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 8, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 9, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 10, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 11, "name": "total_tax_shop_currency_code", "comment": null}, "quantity": {"type": "double precision", "index": 12, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 13, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 14, "name": "restock_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 17, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund"}, "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_source.stg_shopify_gql__order_line_refund_tmp"}, "model.shopify_source.stg_shopify_gql__order_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_note_attribute": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute"}, "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"}, "model.shopify_source.stg_shopify_gql__order_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "carrier_identifier": {"type": "text", "index": 3, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "delivery_category": {"type": "text", "index": 5, "name": "delivery_category", "comment": null}, "discounted_price_pres_amount": {"type": "double precision", "index": 6, "name": "discounted_price_pres_amount", "comment": null}, "discounted_price_pres_currency_code": {"type": "text", "index": 7, "name": "discounted_price_pres_currency_code", "comment": null}, "discounted_price_shop_amount": {"type": "double precision", "index": 8, "name": "discounted_price_shop_amount", "comment": null}, "discounted_price_shop_currency_code": {"type": "text", "index": 9, "name": "discounted_price_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 10, "name": "phone", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 11, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 12, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 13, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 14, "name": "price_shop_currency_code", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 19, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line"}, "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 3, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 4, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 5, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 6, "name": "price_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 7, "name": "rate", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_tag"}, "model.shopify_source.stg_shopify_gql__order_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_tag_tmp"}, "model.shopify_source.stg_shopify_gql__order_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_source.stg_shopify_gql__order_tmp"}, "model.shopify_source.stg_shopify_gql__product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product"}, "model.shopify_source.stg_shopify_gql__product_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "unique_key": {"type": "text", "index": 5, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_media"}, "model.shopify_source.stg_shopify_gql__product_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.stg_shopify_gql__product_media_tmp"}, "model.shopify_source.stg_shopify_gql__product_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tag"}, "model.shopify_source.stg_shopify_gql__product_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tag_tmp"}, "model.shopify_source.stg_shopify_gql__product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tmp"}, "model.shopify_source.stg_shopify_gql__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_variant"}, "model.shopify_source.stg_shopify_gql__product_variant_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 4, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media"}, "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_source.stg_shopify_gql__product_variant_media_tmp"}, "model.shopify_source.stg_shopify_gql__product_variant_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.stg_shopify_gql__product_variant_tmp"}, "model.shopify_source.stg_shopify_gql__refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"refund_id": {"type": "integer", "index": 1, "name": "refund_id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 4, "name": "user_id", "comment": null}, "return_id": {"type": "integer", "index": 5, "name": "return_id", "comment": null}, "total_refunded_pres_amount": {"type": "double precision", "index": 6, "name": "total_refunded_pres_amount", "comment": null}, "total_refunded_pres_currency_code": {"type": "text", "index": 7, "name": "total_refunded_pres_currency_code", "comment": null}, "total_refunded_shop_amount": {"type": "double precision", "index": 8, "name": "total_refunded_shop_amount", "comment": null}, "total_refunded_shop_currency_code": {"type": "text", "index": 9, "name": "total_refunded_shop_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__refund"}, "model.shopify_source.stg_shopify_gql__refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_source.stg_shopify_gql__refund_tmp"}, "model.shopify_source.stg_shopify_gql__shop": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 16, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 17, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 18, "name": "email", "comment": null}, "domain": {"type": "text", "index": 19, "name": "domain", "comment": null}, "phone": {"type": "character varying", "index": 20, "name": "phone", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 21, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 22, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 23, "name": "timezone_offset_minutes", "comment": null}, "iana_timezone": {"type": "text", "index": 24, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 25, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 26, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "has_shipping_taxes": {"type": "boolean", "index": 29, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 30, "name": "has_taxes_included_in_price", "comment": null}, "has_storefront": {"type": "boolean", "index": 31, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 32, "name": "has_checkout_api_supported", "comment": null}, "money_format": {"type": "text", "index": 33, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 34, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 35, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 36, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 37, "name": "plan_display_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 38, "name": "is_password_enabled", "comment": null}, "is_setup_required": {"type": "boolean", "index": 39, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 40, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 41, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 42, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 43, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 44, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__shop"}, "model.shopify_source.stg_shopify_gql__shop_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__shop_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__shop_tmp"}, "model.shopify_source.stg_shopify_gql__tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 3, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 4, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 5, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 6, "name": "price_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 7, "name": "rate", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tax_line"}, "model.shopify_source.stg_shopify_gql__tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tax_line_tmp"}, "model.shopify_source.stg_shopify_gql__tender_transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "payment_method": {"type": "text", "index": 5, "name": "payment_method", "comment": null}, "remote_reference": {"type": "text", "index": 6, "name": "remote_reference", "comment": null}, "user_id": {"type": "integer", "index": 7, "name": "user_id", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction"}, "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_source.stg_shopify_gql__tender_transaction_tmp"}, "model.shopify_source.stg_shopify_gql__transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "integer", "index": 3, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 4, "name": "amount_pres", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "device_id": {"type": "text", "index": 6, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 7, "name": "gateway", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 8, "name": "amount_pres_currency_code", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 9, "name": "amount_shop_currency_code", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 11, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 12, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 13, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 14, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 15, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 17, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 18, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 19, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 20, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 21, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 22, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "text", "index": 23, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 24, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 26, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 29, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 30, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 31, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 32, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__transaction"}, "model.shopify_source.stg_shopify_gql__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__transaction_tmp"}}, "sources": {"source.shopify_source.shopify.abandoned_checkout": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.shopify.abandoned_checkout"}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code"}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line"}, "source.shopify_source.shopify.collection": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection"}, "source.shopify_source.shopify.collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection_product"}, "source.shopify_source.shopify.customer": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer"}, "source.shopify_source.shopify.customer_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer_tag"}, "source.shopify_source.shopify.discount_allocation": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.shopify.discount_allocation"}, "source.shopify_source.shopify.discount_application": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_application"}, "source.shopify_source.shopify.discount_code_app": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_app"}, "source.shopify_source.shopify.discount_code_basic": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_basic"}, "source.shopify_source.shopify.discount_code_bxgy": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_bxgy"}, "source.shopify_source.shopify.discount_code_free_shipping": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_free_shipping"}, "source.shopify_source.shopify.discount_redeem_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.shopify.discount_redeem_code"}, "source.shopify_source.shopify.fulfillment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment"}, "source.shopify_source.shopify.fulfillment_event": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment_event"}, "source.shopify_source.shopify_graphql.abandoned_checkout": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_source.shopify_graphql.abandoned_checkout"}, "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"}, "source.shopify_source.shopify_graphql.collection": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.shopify_graphql.collection"}, "source.shopify_source.shopify_graphql.collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.shopify_graphql.collection_product"}, "source.shopify_source.shopify_graphql.customer_address": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_address"}, "source.shopify_source.shopify_graphql.customer": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer"}, "source.shopify_source.shopify_graphql.customer_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_tag"}, "source.shopify_source.shopify_graphql.customer_visit": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_visit_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_visit"}, "source.shopify_source.shopify_graphql.discount_allocation": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_source.shopify_graphql.discount_allocation"}, "source.shopify_source.shopify_graphql.discount_application": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_source.shopify_graphql.discount_application"}, "source.shopify_source.shopify_graphql.discount_code_app": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_app"}, "source.shopify_source.shopify_graphql.discount_code_basic": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_basic"}, "source.shopify_source.shopify_graphql.discount_code_bxgy": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_bxgy"}, "source.shopify_source.shopify_graphql.discount_code_free_shipping": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_free_shipping"}, "source.shopify_source.shopify_graphql.discount_redeem_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_source.shopify_graphql.discount_redeem_code"}, "source.shopify_source.shopify_graphql.fulfillment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_source.shopify_graphql.fulfillment"}, "source.shopify_source.shopify_graphql.fulfillment_event": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_event"}, "source.shopify_source.shopify_graphql.fulfillment_order_line_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_order_line_item"}, "source.shopify_source.shopify_graphql.fulfillment_tracking_info": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_tracking_info"}, "source.shopify_source.shopify_graphql.inventory_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.shopify_graphql.inventory_item"}, "source.shopify_source.shopify_graphql.inventory_level": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.shopify_graphql.inventory_level"}, "source.shopify_source.shopify_graphql.inventory_quantity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_source.shopify_graphql.inventory_quantity"}, "source.shopify_source.shopify_graphql.location": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.location"}, "source.shopify_source.shopify_graphql.media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_source.shopify_graphql.media"}, "source.shopify_source.shopify_graphql.media_image": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.media_image"}, "source.shopify_source.shopify_graphql.metafield": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.metafield"}, "source.shopify_source.shopify_graphql.order_adjustment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_adjustment"}, "source.shopify_source.shopify_graphql.order": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_source.shopify_graphql.order"}, "source.shopify_source.shopify_graphql.order_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_source.shopify_graphql.order_discount_code"}, "source.shopify_source.shopify_graphql.order_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_line"}, "source.shopify_source.shopify_graphql.order_line_refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_source.shopify_graphql.order_line_refund"}, "source.shopify_source.shopify_graphql.order_note_attribute": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_note_attribute"}, "source.shopify_source.shopify_graphql.order_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_shipping_line"}, "source.shopify_source.shopify_graphql.order_shipping_tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_shipping_tax_line"}, "source.shopify_source.shopify_graphql.order_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_tag"}, "source.shopify_source.shopify_graphql.product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.product"}, "source.shopify_source.shopify_graphql.product_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.shopify_graphql.product_media"}, "source.shopify_source.shopify_graphql.product_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.product_tag"}, "source.shopify_source.shopify_graphql.product_variant": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.shopify_graphql.product_variant"}, "source.shopify_source.shopify_graphql.product_variant_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_source.shopify_graphql.product_variant_media"}, "source.shopify_source.shopify_graphql.refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_source.shopify_graphql.refund"}, "source.shopify_source.shopify_graphql.shop": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.shop"}, "source.shopify_source.shopify_graphql.tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.tax_line"}, "source.shopify_source.shopify_graphql.tender_transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_source.shopify_graphql.tender_transaction"}, "source.shopify_source.shopify_graphql.transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.transaction"}, "source.shopify_source.shopify.inventory_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_item"}, "source.shopify_source.shopify.inventory_level": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_level"}, "source.shopify_source.shopify.inventory_quantity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_quantity"}, "source.shopify_source.shopify.location": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.shopify.location"}, "source.shopify_source.shopify.media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media"}, "source.shopify_source.shopify.media_image": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media_image"}, "source.shopify_source.shopify.metafield": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.metafield"}, "source.shopify_source.shopify.order_adjustment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_adjustment"}, "source.shopify_source.shopify.order": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order"}, "source.shopify_source.shopify.order_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_discount_code"}, "source.shopify_source.shopify.order_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line"}, "source.shopify_source.shopify.order_line_refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line_refund"}, "source.shopify_source.shopify.order_note_attribute": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_note_attribute"}, "source.shopify_source.shopify.order_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_line"}, "source.shopify_source.shopify.order_shipping_tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_tax_line"}, "source.shopify_source.shopify.order_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_tag"}, "source.shopify_source.shopify.order_url_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_url_tag"}, "source.shopify_source.shopify.product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product"}, "source.shopify_source.shopify.product_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_media"}, "source.shopify_source.shopify.product_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_tag"}, "source.shopify_source.shopify.product_variant": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_variant"}, "source.shopify_source.shopify.product_variant_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_variant_media"}, "source.shopify_source.shopify.refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.shopify.refund"}, "source.shopify_source.shopify.shop": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.shop"}, "source.shopify_source.shopify.tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.tax_line"}, "source.shopify_source.shopify.tender_transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.shopify.tender_transaction"}, "source.shopify_source.shopify.transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.transaction"}}, "errors": null} \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index c201f4a4..5dc94075 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v12.json", "dbt_version": "1.10.6", "generated_at": "2025-08-06T18:36:32.084285Z", "invocation_id": "7b951da8-da73-4286-8e42-6449333dcaa5", "invocation_started_at": "2025-08-06T18:35:59.028824+00:00", "env": {}, "project_name": "shopify_integration_tests", "project_id": "c39719ba3d679fd569bed21921e72e32", "user_id": null, "send_anonymous_usage_stats": false, "adapter_type": "postgres", "quoting": {"database": true, "schema": true, "identifier": true, "column": null}}, "nodes": {"seed.shopify_integration_tests.shopify_gql_product_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_tag_data.csv", "original_file_path": "seeds/shopify_gql_product_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_tag_data"], "alias": "shopify_gql_product_tag_data", "checksum": {"name": "sha256", "checksum": "8c043c435f2de4a4004471419a272adaf066c1e9e36fa2e9de62a6562d4d2e26"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.6505668, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_event_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_event_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_event_data"], "alias": "shopify_gql_fulfillment_event_data", "checksum": {"name": "sha256", "checksum": "c8df472434961ad12566344da5a47483bd18c4b9cb7b5eafd44f96f284aaebea"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.6583812, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_metafield_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_metafield_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_metafield_data.csv", "original_file_path": "seeds/shopify_gql_metafield_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_metafield_data", "fqn": ["shopify_integration_tests", "shopify_gql_metafield_data"], "alias": "shopify_gql_metafield_data", "checksum": {"name": "sha256", "checksum": "b698e66e6a1d23c772fe5d1c36943dd9e5be8609f08b7f0990b1c20417e3f4d1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.661744, "relation_name": "\"postgres\".\"public\".\"shopify_gql_metafield_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_basic_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_basic_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_basic_data.csv", "original_file_path": "seeds/shopify_discount_code_basic_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_basic_data"], "alias": "shopify_discount_code_basic_data", "checksum": {"name": "sha256", "checksum": "dc25a6ca420db34e1ce13e0749f1e65e949cef3a260c736e1eb6e53b7db15ace"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1754505362.6652782, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_order_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_discount_code_data.csv", "original_file_path": "seeds/shopify_order_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_order_discount_code_data"], "alias": "shopify_order_discount_code_data", "checksum": {"name": "sha256", "checksum": "f4e391a3f00ebb1f7444487e4577dc95e28c39745e40f6c0fcb1bd90562833f6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"order_id": "bigint", "amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float"}}, "created_at": 1754505362.6690586, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_data": {"database": "postgres", "schema": "public", "name": "shopify_order_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_data.csv", "original_file_path": "seeds/shopify_order_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_data", "fqn": ["shopify_integration_tests", "shopify_order_data"], "alias": "shopify_order_data", "checksum": {"name": "sha256", "checksum": "274aec2c5b1f7cd936359683f33c830d2ef7067e6e445469df0c3b460ad9d56c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "bigint", "customer_id": "bigint", "location_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.6725023, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_basic_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_basic_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_basic_data"], "alias": "shopify_gql_discount_code_basic_data", "checksum": {"name": "sha256", "checksum": "d42fbb32c0fcf3c168a45013a7a5c9b9e9c8871e7b2079d5973741f88543c079"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"total_sales_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"total_sales_amount": "float"}}, "created_at": 1754505362.6758137, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_line_data.csv", "original_file_path": "seeds/shopify_gql_order_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_line_data"], "alias": "shopify_gql_order_line_data", "checksum": {"name": "sha256", "checksum": "c4ef70509cf12a7e963b4427bd4ecaf67fa4597191c62bd6da8844e0c448a3ef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.6790128, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_tag_data.csv", "original_file_path": "seeds/shopify_order_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_tag_data"], "alias": "shopify_order_tag_data", "checksum": {"name": "sha256", "checksum": "c448adfe655f83dcaf6370ad2ef36f0ad6991c1b6d001e3aab317fd17359b129"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.6822762, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_tracking_info_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_tracking_info_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_tracking_info_data"], "alias": "shopify_gql_fulfillment_tracking_info_data", "checksum": {"name": "sha256", "checksum": "0ce5041eae13306e77b2f03c364a8e5767be39e68e711fbb1b76709e51191b12"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.6853943, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_redeem_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_redeem_code_data.csv", "original_file_path": "seeds/shopify_discount_redeem_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_redeem_code_data", "fqn": ["shopify_integration_tests", "shopify_discount_redeem_code_data"], "alias": "shopify_discount_redeem_code_data", "checksum": {"name": "sha256", "checksum": "801a010544f98b358371e38d9af1023f4e91747d6f4e488c5a65358794bc3ab5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "discount_id": "bigint", "created_by_id": "bigint", "async_usage_count": "integer", "code": "varchar", "discount_type": "varchar", "created_by_description": "varchar", "created_by_title": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "created_by_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "async_usage_count": "integer", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.6886663, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_application_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_application_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_application_data.csv", "original_file_path": "seeds/shopify_discount_application_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data", "fqn": ["shopify_integration_tests", "shopify_discount_application_data"], "alias": "shopify_discount_application_data", "checksum": {"name": "sha256", "checksum": "9d678050ac7442f36d8aa9a5b0b013aeea7ab64a785a564a31aa41fa6a6ee70a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"allocation_method": "varchar", "code": "varchar", "description": "varchar", "index": "integer", "order_id": "bigint", "target_selection": "varchar", "target_type": "varchar", "title": "varchar", "type": "varchar", "value": "float", "value_type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"allocation_method": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "index": "integer", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "target_selection": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "target_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "value": "float", "value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.6921067, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_data.csv", "original_file_path": "seeds/shopify_gql_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_data"], "alias": "shopify_gql_product_data", "checksum": {"name": "sha256", "checksum": "5c3d5008de7c87b129567ced494177bc809a49587033e462e8e099dfe3c02662"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.695435, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_address_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_address_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_address_data.csv", "original_file_path": "seeds/shopify_gql_customer_address_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_address_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_address_data"], "alias": "shopify_gql_customer_address_data", "checksum": {"name": "sha256", "checksum": "55643b705646db36fbaeb65e2786f9981acc20dbcd95996c0ee31afacef123b6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.6986012, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_free_shipping_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_free_shipping_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_free_shipping_data"], "alias": "shopify_gql_discount_code_free_shipping_data", "checksum": {"name": "sha256", "checksum": "0d9313224e67ae163a3b90d05629775d330a68deef8c6826316ffa88d75254a2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7017307, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_refund_data.csv", "original_file_path": "seeds/shopify_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_refund_data", "fqn": ["shopify_integration_tests", "shopify_refund_data"], "alias": "shopify_refund_data", "checksum": {"name": "sha256", "checksum": "8d8bc98681d9b0d57a43af3fc99ff13cc42401d97e49bba41c1fafb28f858d23"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.7048516, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_product_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_product_data.csv", "original_file_path": "seeds/shopify_collection_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data", "fqn": ["shopify_integration_tests", "shopify_collection_product_data"], "alias": "shopify_collection_product_data", "checksum": {"name": "sha256", "checksum": "f0829ff9b0c3116846c83d4cb2dfae170594e230d3586b8abae97a31d4a51c55"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7079306, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_abandoned_checkout_discount_code_data.csv", "original_file_path": "seeds/shopify_gql_abandoned_checkout_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_abandoned_checkout_discount_code_data"], "alias": "shopify_gql_abandoned_checkout_discount_code_data", "checksum": {"name": "sha256", "checksum": "90c5089352dfe1ea90e277813ae7824053992fa838896d4d55130c1ca0e51b82"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.711141, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_shipping_tax_line_data.csv", "original_file_path": "seeds/shopify_gql_order_shipping_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_shipping_tax_line_data"], "alias": "shopify_gql_order_shipping_tax_line_data", "checksum": {"name": "sha256", "checksum": "4c0d33725e1979f861188e46f54626db2fa5d1dc12a23b6dec4d67b2617e8493"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7141683, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_data.csv", "original_file_path": "seeds/shopify_customer_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_data", "fqn": ["shopify_integration_tests", "shopify_customer_data"], "alias": "shopify_customer_data", "checksum": {"name": "sha256", "checksum": "72ba9c7141e483ec3a8715cb27d57c8e36f8ca293b0a507676391c8804c717f2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint", "default_address_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "default_address_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.7172792, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_media_data.csv", "original_file_path": "seeds/shopify_product_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_media_data", "fqn": ["shopify_integration_tests", "shopify_product_media_data"], "alias": "shopify_product_media_data", "checksum": {"name": "sha256", "checksum": "b38d774b588961b4cd6e5b8cdb9c0319dd694bcdd474a54a68e062b3cf488d44"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.720478, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_tax_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_tax_line_data"], "alias": "shopify_order_shipping_tax_line_data", "checksum": {"name": "sha256", "checksum": "279d995731cd3b85aa948f6721ada5f455324347f7ac3211a98bf2f3bb72f899"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float"}}, "created_at": 1754505362.7237113, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_image_data": {"database": "postgres", "schema": "public", "name": "shopify_media_image_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_image_data.csv", "original_file_path": "seeds/shopify_media_image_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_image_data", "fqn": ["shopify_integration_tests", "shopify_media_image_data"], "alias": "shopify_media_image_data", "checksum": {"name": "sha256", "checksum": "98621ab1fd6334df5ffa045d9642644d5e465d8684cd635dd5bf8c157f964966"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"media_id": "bigint", "image_id": "bigint", "image_alt_text": "varchar", "image_height": "integer", "image_url": "varchar", "image_width": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_alt_text": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_height": "integer", "image_url": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_width": "integer"}}, "created_at": 1754505362.7269406, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_allocation_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_allocation_data.csv", "original_file_path": "seeds/shopify_gql_discount_allocation_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_allocation_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_allocation_data"], "alias": "shopify_gql_discount_allocation_data", "checksum": {"name": "sha256", "checksum": "66070d7edfd03f95cce45261aff8868c52ac272d23457e8b00d31f89bee13bb2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7300746, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_data": {"database": "postgres", "schema": "public", "name": "shopify_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_data.csv", "original_file_path": "seeds/shopify_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_data", "fqn": ["shopify_integration_tests", "shopify_product_data"], "alias": "shopify_product_data", "checksum": {"name": "sha256", "checksum": "e3e37227f60cd1960dc29421bf94785a59c058e4b6a4cd01262376f34947e320"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.733214, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_refund_data.csv", "original_file_path": "seeds/shopify_order_line_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data", "fqn": ["shopify_integration_tests", "shopify_order_line_refund_data"], "alias": "shopify_order_line_refund_data", "checksum": {"name": "sha256", "checksum": "5d28c17ac30b49f32cb92c5ade7643c3322d0a18e38094140cf06ace9fc85e72"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "id": "bigint", "location_id": "bigint", "refund_id": "bigint", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.7364523, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_item_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_item_data.csv", "original_file_path": "seeds/shopify_inventory_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data", "fqn": ["shopify_integration_tests", "shopify_inventory_item_data"], "alias": "shopify_inventory_item_data", "checksum": {"name": "sha256", "checksum": "11076fbaaf5cb0b1a1cdfdcb8520fc3c6049ef627ff305251d40f1e562dfcd52"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "measurement_id": "bigint", "legacy_resource_id": "bigint", "updated_at": "timestamp", "created_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "measurement_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "updated_at": "timestamp", "created_at": "timestamp"}}, "created_at": 1754505362.7398045, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_data.csv", "original_file_path": "seeds/shopify_gql_customer_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_data"], "alias": "shopify_gql_customer_data", "checksum": {"name": "sha256", "checksum": "ccd33f05c9942cd47dc7bf8abef925334aa740a60181b9ce13657323fe63267d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.743002, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_visit_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_visit_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_visit_data.csv", "original_file_path": "seeds/shopify_gql_customer_visit_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_visit_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_visit_data"], "alias": "shopify_gql_customer_visit_data", "checksum": {"name": "sha256", "checksum": "33bcb50366b3a771c4a408cf198e0ba0ed4308af90d0d9066fcf5b8a0cb74ce6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7461154, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_abandoned_checkout_data.csv", "original_file_path": "seeds/shopify_gql_abandoned_checkout_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data", "fqn": ["shopify_integration_tests", "shopify_gql_abandoned_checkout_data"], "alias": "shopify_gql_abandoned_checkout_data", "checksum": {"name": "sha256", "checksum": "f3999e4554d821e95b65fc49d14ab501151f3026c8936871197cabfbac47e25a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar", "shipping_address_phone": "varchar", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_discount_set_shop_amount": "float", "total_discount_set_pres_amount": "float", "total_duties_set_shop_amount": "float", "total_duties_set_pres_amount": "float", "total_line_items_price_set_shop_amount": "float", "total_line_items_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_tax_set_pres_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_discount_set_shop_amount": "float", "total_discount_set_pres_amount": "float", "total_duties_set_shop_amount": "float", "total_duties_set_pres_amount": "float", "total_line_items_price_set_shop_amount": "float", "total_line_items_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_tax_set_pres_amount": "float"}}, "created_at": 1754505362.7493846, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_quantity_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_quantity_data.csv", "original_file_path": "seeds/shopify_inventory_quantity_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data", "fqn": ["shopify_integration_tests", "shopify_inventory_quantity_data"], "alias": "shopify_inventory_quantity_data", "checksum": {"name": "sha256", "checksum": "8fa9f26df5501b6f7a065d74a2da5bf70329b7197e8c11139cda950874243d1c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "inventory_level_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_level_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.7527542, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_variant_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_variant_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_variant_data.csv", "original_file_path": "seeds/shopify_gql_product_variant_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_variant_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_variant_data"], "alias": "shopify_gql_product_variant_data", "checksum": {"name": "sha256", "checksum": "fba49f77a3f4d25f1d1ab0cb5fbf89e4309fffa50c45a5c2b51eccd816888748"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"compare_at_price": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"compare_at_price": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.7559671, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_bxgy_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_bxgy_data.csv", "original_file_path": "seeds/shopify_discount_code_bxgy_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_bxgy_data"], "alias": "shopify_discount_code_bxgy_data", "checksum": {"name": "sha256", "checksum": "676970b98658b2da21aec24691e589c9d1bd42703e266864d7af1d310f57fc53"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "varchar", "summary": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "summary": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}}, "created_at": 1754505362.7594543, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_data.csv", "original_file_path": "seeds/shopify_order_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_data", "fqn": ["shopify_integration_tests", "shopify_order_line_data"], "alias": "shopify_order_line_data", "checksum": {"name": "sha256", "checksum": "a4e65b3c0ee73ff8755aec89198632427baa2dbcc39d2e97659a8a976a92b8cd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "order_id": "bigint", "id": "bigint", "product_id": "bigint", "variant_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.7628653, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_media_data.csv", "original_file_path": "seeds/shopify_gql_product_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_media_data"], "alias": "shopify_gql_product_media_data", "checksum": {"name": "sha256", "checksum": "9b99a3ca51b4ecd63cc1d2a8a83a5a96dbf52e878990055a8e3a03b89666272d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7659638, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_quantity_data.csv", "original_file_path": "seeds/shopify_gql_inventory_quantity_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_quantity_data"], "alias": "shopify_gql_inventory_quantity_data", "checksum": {"name": "sha256", "checksum": "aa5cdc0d5565496916a0f61055b029546d99b6aab2a2433c11f936abeeafcb1b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7690985, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_shipping_line_data.csv", "original_file_path": "seeds/shopify_gql_order_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_shipping_line_data"], "alias": "shopify_gql_order_shipping_line_data", "checksum": {"name": "sha256", "checksum": "5e77fbe4d6a87d50fcee326d856b97033aa850a6bc3edab4b70064c89498c01b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.7721934, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_free_shipping_data.csv", "original_file_path": "seeds/shopify_discount_code_free_shipping_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_free_shipping_data"], "alias": "shopify_discount_code_free_shipping_data", "checksum": {"name": "sha256", "checksum": "55e37730e02503078ff03a624def743c4413c5feda1bdcdd38cc7d0dbe47e2bd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1754505362.7756424, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_tax_line_data.csv", "original_file_path": "seeds/shopify_gql_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_tax_line_data"], "alias": "shopify_gql_tax_line_data", "checksum": {"name": "sha256", "checksum": "08f6ab93144ae307e2e9f808278e5e6f13b1c76a609df067a7b3e18c52623bc2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7789154, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_variant_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_variant_media_data.csv", "original_file_path": "seeds/shopify_gql_product_variant_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_variant_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_variant_media_data"], "alias": "shopify_gql_product_variant_media_data", "checksum": {"name": "sha256", "checksum": "42fdae13aac1a3868e29e1586fa30cb8c01f5265ecb6040353c147ede2a30f9e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7820535, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_tag_data.csv", "original_file_path": "seeds/shopify_gql_order_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_tag_data"], "alias": "shopify_gql_order_tag_data", "checksum": {"name": "sha256", "checksum": "6fb78d3ccb69ab26e0ab8d781865dece254bfa951b1e1e57efe800e4c3c9aa9d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7850783, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_order_line_item_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_order_line_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_order_line_item_data"], "alias": "shopify_gql_fulfillment_order_line_item_data", "checksum": {"name": "sha256", "checksum": "038512c381c821457b427a8a6d19049e6eb9302f5acfaaebdf56896f31aa0c01"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7880812, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_product_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_product_data.csv", "original_file_path": "seeds/shopify_gql_collection_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_product_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_product_data"], "alias": "shopify_gql_collection_product_data", "checksum": {"name": "sha256", "checksum": "97528489feaf3fe056bfad2e1d5704c7a27d9fd0e90253b3fd64eceecfe31a7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7910879, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_data"], "alias": "shopify_gql_fulfillment_data", "checksum": {"name": "sha256", "checksum": "707d77c094f00fb4c21d1968550d66a131bbfbec48addd7d7137936b00aca500"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.7940712, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_data.csv", "original_file_path": "seeds/shopify_gql_order_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_data"], "alias": "shopify_gql_order_data", "checksum": {"name": "sha256", "checksum": "5f2c9bc0a1d81234edf8945c72a99425ebe0450aad71cf418ca24b12c0ab3fd3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar", "shipping_address_phone": "varchar", "total_shipping_price_set_pres_amount": "float", "total_shipping_price_set_shop_amount": "float", "total_tax_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_discounts_set_pres_amount": "float", "total_discounts_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_tip_received_set_pres_amount": "float", "total_tip_received_set_shop_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_shipping_price_set_pres_amount": "float", "total_shipping_price_set_shop_amount": "float", "total_tax_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_discounts_set_pres_amount": "float", "total_discounts_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_tip_received_set_pres_amount": "float", "total_tip_received_set_shop_amount": "float"}}, "created_at": 1754505362.7980182, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_tender_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_tender_transaction_data.csv", "original_file_path": "seeds/shopify_gql_tender_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_tender_transaction_data", "fqn": ["shopify_integration_tests", "shopify_gql_tender_transaction_data"], "alias": "shopify_gql_tender_transaction_data", "checksum": {"name": "sha256", "checksum": "6e660fced8b377b4a7c7a3ea5c4cb1e8dff259e0b3596bfff56868873a7348dc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.801257, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_refund_data.csv", "original_file_path": "seeds/shopify_gql_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_refund_data", "fqn": ["shopify_integration_tests", "shopify_gql_refund_data"], "alias": "shopify_gql_refund_data", "checksum": {"name": "sha256", "checksum": "f8767945248aa31df8667d9a302c98da70ecfa3200f09ae9a8a08e56f648b1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.8042731, "relation_name": "\"postgres\".\"public\".\"shopify_gql_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"database": "postgres", "schema": "public", "name": "shopify_order_adjustment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_adjustment_data.csv", "original_file_path": "seeds/shopify_order_adjustment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data", "fqn": ["shopify_integration_tests", "shopify_order_adjustment_data"], "alias": "shopify_order_adjustment_data", "checksum": {"name": "sha256", "checksum": "48ce96540f19450088c661fd48bd8f6d58bb4ca13a1f048880e9984be367172e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.807363, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_product_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_tag_data.csv", "original_file_path": "seeds/shopify_product_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data", "fqn": ["shopify_integration_tests", "shopify_product_tag_data"], "alias": "shopify_product_tag_data", "checksum": {"name": "sha256", "checksum": "10203c8ee30c2d400a7f5126732f6c17985017df02cd4eceff90ef483e1c0729"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.8821514, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_shop_data": {"database": "postgres", "schema": "public", "name": "shopify_shop_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_shop_data.csv", "original_file_path": "seeds/shopify_shop_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_shop_data", "fqn": ["shopify_integration_tests", "shopify_shop_data"], "alias": "shopify_shop_data", "checksum": {"name": "sha256", "checksum": "1029ea325d95c96dbdf0c52a9fd8ef272516b15f99f834a507bff27eda689bba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}}, "created_at": 1754505362.8858209, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_line_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_line_refund_data.csv", "original_file_path": "seeds/shopify_gql_order_line_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_refund_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_line_refund_data"], "alias": "shopify_gql_order_line_refund_data", "checksum": {"name": "sha256", "checksum": "f42ec092931b7b6629fad2c44ca9d9cfa5b655980dd1140d69d8b687178b8d32"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"quantity": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"quantity": "float"}}, "created_at": 1754505362.8891497, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_adjustment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_adjustment_data.csv", "original_file_path": "seeds/shopify_gql_order_adjustment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_adjustment_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_adjustment_data"], "alias": "shopify_gql_order_adjustment_data", "checksum": {"name": "sha256", "checksum": "5477a81fe785b813c63156e1f04d73748f431cd6f247ad0f5ac75785a9cc1325"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.8923006, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_rule_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_rule_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_rule_data.csv", "original_file_path": "seeds/shopify_gql_collection_rule_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_rule_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_rule_data"], "alias": "shopify_gql_collection_rule_data", "checksum": {"name": "sha256", "checksum": "fc43b048e1c1c4e2dc67460f2d7ad884ccc7a3f02ba7d749a766459199c1a6aa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.8954396, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_rule_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_data.csv", "original_file_path": "seeds/shopify_fulfillment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_data"], "alias": "shopify_fulfillment_data", "checksum": {"name": "sha256", "checksum": "36993dd7ab6cd0951d3229c9d72237f4115292350e2659bdb717866f8fe8ebd8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.8984697, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_data.csv", "original_file_path": "seeds/shopify_collection_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_data", "fqn": ["shopify_integration_tests", "shopify_collection_data"], "alias": "shopify_collection_data", "checksum": {"name": "sha256", "checksum": "27cb0f0a37833f86bc7d0eb153acacdca987a69caf07dccdea4a072895f0a518"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754505362.9015872, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"database": "postgres", "schema": "public", "name": "shopify_order_note_attribute_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_note_attribute_data.csv", "original_file_path": "seeds/shopify_order_note_attribute_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data", "fqn": ["shopify_integration_tests", "shopify_order_note_attribute_data"], "alias": "shopify_order_note_attribute_data", "checksum": {"name": "sha256", "checksum": "9076f469c15ad5e18c4365039836b6739c2d7fc79ed987564ab8c1849994309c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9047108, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_discount_code_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_discount_code_data"], "alias": "shopify_abandoned_checkout_discount_code_data", "checksum": {"name": "sha256", "checksum": "f60365d56b94e348893476184122a98c6a4b939de1c7de1f7f3684e2ba344e48"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"checkout_id": "bigint", "discount_id": "bigint", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "varchar", "type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"checkout_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.907994, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_event_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_event_data.csv", "original_file_path": "seeds/shopify_fulfillment_event_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_event_data"], "alias": "shopify_fulfillment_event_data", "checksum": {"name": "sha256", "checksum": "ae538cd22df11081f1f4d2b6970c945d432f92af0e96fac2e10e1e09d886abef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9111958, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_media_data.csv", "original_file_path": "seeds/shopify_gql_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_media_data"], "alias": "shopify_gql_media_data", "checksum": {"name": "sha256", "checksum": "ffa3f564a810c9230c529066f5be55051045d32e14bfee4c04479ec3e5140a3c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9142485, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_bxgy_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_bxgy_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_bxgy_data"], "alias": "shopify_gql_discount_code_bxgy_data", "checksum": {"name": "sha256", "checksum": "93dd6da3ac1575fe61eed846dd3e2db2d75f16237571cfd4a4647f33ec612a28"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9175682, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_line_data"], "alias": "shopify_order_shipping_line_data", "checksum": {"name": "sha256", "checksum": "7a83a6e1121c088d6cd6ab3a944c683bfe4ac72ac440fcf97d55c3ca709b88a8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"discounted_price": "float", "price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"discounted_price": "float", "price": "float"}}, "created_at": 1754505362.9208128, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_item_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_item_data.csv", "original_file_path": "seeds/shopify_gql_inventory_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_item_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_item_data"], "alias": "shopify_gql_inventory_item_data", "checksum": {"name": "sha256", "checksum": "cb50caac3e13ddc3c4011ecbd1929f2c6876a6010e0e055ce0d32891a2caa6f0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.924015, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_data"], "alias": "shopify_abandoned_checkout_data", "checksum": {"name": "sha256", "checksum": "1fc66dc1ee0e84111cc6c3de1b49c3e172d477eadda206ec80095dbae720a7b4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"total_line_items_price": "float", "billing_address_phone": "varchar", "shipping_address_phone": "varchar", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"total_line_items_price": "float", "billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754505362.927239, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_location_data": {"database": "postgres", "schema": "public", "name": "shopify_location_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_location_data.csv", "original_file_path": "seeds/shopify_location_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_location_data", "fqn": ["shopify_integration_tests", "shopify_location_data"], "alias": "shopify_location_data", "checksum": {"name": "sha256", "checksum": "781bb070fbf96fd7e01d4229ccbac91f77bcd52726ffea2de9fa36abe6804b38"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9304318, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_location_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_location_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_location_data.csv", "original_file_path": "seeds/shopify_gql_location_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_location_data", "fqn": ["shopify_integration_tests", "shopify_gql_location_data"], "alias": "shopify_gql_location_data", "checksum": {"name": "sha256", "checksum": "0e3fcbfcccb24bff1a397108c5284f013e54846463ce693db515c9e843d65c82"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.9335546, "relation_name": "\"postgres\".\"public\".\"shopify_gql_location_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_data.csv", "original_file_path": "seeds/shopify_product_variant_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_data"], "alias": "shopify_product_variant_data", "checksum": {"name": "sha256", "checksum": "2c7c29665cf22fea389ed017edcd174d97384f19f5fa65e1e70073b6e29de1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "product_id": "bigint", "inventory_item_id": "bigint", "legacy_resource_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.9368868, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_shop_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_shop_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_shop_data.csv", "original_file_path": "seeds/shopify_gql_shop_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_shop_data", "fqn": ["shopify_integration_tests", "shopify_gql_shop_data"], "alias": "shopify_gql_shop_data", "checksum": {"name": "sha256", "checksum": "e691117d38fb0c6a9ad757f7adc677a8a3454f881d6c9f7d3fd625611addb1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505362.9400907, "relation_name": "\"postgres\".\"public\".\"shopify_gql_shop_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_tag_data.csv", "original_file_path": "seeds/shopify_gql_customer_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_tag_data"], "alias": "shopify_gql_customer_tag_data", "checksum": {"name": "sha256", "checksum": "b9990af8b8157368df2e7cd54ad712620ce79cfb8bcddbce8ceac25314d1f98f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9431813, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_tag_data.csv", "original_file_path": "seeds/shopify_customer_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data", "fqn": ["shopify_integration_tests", "shopify_customer_tag_data"], "alias": "shopify_customer_tag_data", "checksum": {"name": "sha256", "checksum": "27dad4d9a29bfd94903c156e01cdee4c0b33cfb2c5d88af98b89c19287596e5c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.9462678, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_note_attribute_data.csv", "original_file_path": "seeds/shopify_gql_order_note_attribute_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_note_attribute_data"], "alias": "shopify_gql_order_note_attribute_data", "checksum": {"name": "sha256", "checksum": "fdc162afb1aaf6ccc432a5df8eb1d42ebe945151101a43edf6176d98c3cd4ec6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.949351, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_metafield_data": {"database": "postgres", "schema": "public", "name": "shopify_metafield_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_metafield_data.csv", "original_file_path": "seeds/shopify_metafield_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_metafield_data", "fqn": ["shopify_integration_tests", "shopify_metafield_data"], "alias": "shopify_metafield_data", "checksum": {"name": "sha256", "checksum": "f9586af820e5f4c1d04e71e5a8fc699080ecb101b85735abe9724a8ea9bf0d97"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"value_type": "varchar", "type": "varchar", "id": "bigint", "owner_id": "bigint", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "owner_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754505362.9525816, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_level_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_level_data.csv", "original_file_path": "seeds/shopify_inventory_level_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data", "fqn": ["shopify_integration_tests", "shopify_inventory_level_data"], "alias": "shopify_inventory_level_data", "checksum": {"name": "sha256", "checksum": "d8bde61ad5a46b099f9e615464abf20677a00869ba308860ce0c80e59ebf40bb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "location_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.9558501, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_transaction_data.csv", "original_file_path": "seeds/shopify_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_transaction_data", "fqn": ["shopify_integration_tests", "shopify_transaction_data"], "alias": "shopify_transaction_data", "checksum": {"name": "sha256", "checksum": "def7b7fc64e42148b900dcd1f7327b470e5d3b0ed8e73f263e46a715ecb09199"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.9591663, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_data": {"database": "postgres", "schema": "public", "name": "shopify_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_data.csv", "original_file_path": "seeds/shopify_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_data", "fqn": ["shopify_integration_tests", "shopify_media_data"], "alias": "shopify_media_data", "checksum": {"name": "sha256", "checksum": "7c6234841dd8ff01ec7cd72fb11d8f933c4b12efbf8470324f0671f6afb6e266"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "status": "varchar", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754505362.9624126, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_redeem_code_data.csv", "original_file_path": "seeds/shopify_gql_discount_redeem_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_redeem_code_data"], "alias": "shopify_gql_discount_redeem_code_data", "checksum": {"name": "sha256", "checksum": "0b1fd8ebdc11adc10b729eb22fe80d4e8f69d29dbc42114ea54d5977fdb6d638"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.965623, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_data.csv", "original_file_path": "seeds/shopify_gql_collection_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_data"], "alias": "shopify_gql_collection_data", "checksum": {"name": "sha256", "checksum": "29e0276fbf7a043b812e101d81438672484cca31a69ba9c4ce2df96dc215a3b2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9687173, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_application_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_application_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_application_data.csv", "original_file_path": "seeds/shopify_gql_discount_application_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_application_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_application_data"], "alias": "shopify_gql_discount_application_data", "checksum": {"name": "sha256", "checksum": "02bf15863aaf29b404a84ab214ff73121e4ee411f2e6fecf3f757e179b6c9c2e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9717584, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_url_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_url_tag_data.csv", "original_file_path": "seeds/shopify_order_url_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_url_tag_data"], "alias": "shopify_order_url_tag_data", "checksum": {"name": "sha256", "checksum": "18d23ae4cb9bb569772db2a5622ab7f84281f3391b6c9295973a8fed3d887567"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.974798, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_app_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_app_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_app_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_app_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_app_data"], "alias": "shopify_gql_discount_code_app_data", "checksum": {"name": "sha256", "checksum": "b6ea6c09ffbae0eedd94577b2ec3a6074bff0d33b6338d895111b7f9521ce049"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9778373, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_allocation_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_allocation_data.csv", "original_file_path": "seeds/shopify_discount_allocation_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_allocation_data", "fqn": ["shopify_integration_tests", "shopify_discount_allocation_data"], "alias": "shopify_discount_allocation_data", "checksum": {"name": "sha256", "checksum": "22cd7acd65491fcbbd2d2de60dc69b993fa1ac45d90b41dee7976905d6418fcf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "varchar", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "varchar", "discount_application_index": "integer", "index": "integer", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_application_index": "integer", "index": "integer", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505362.9811244, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_discount_code_data.csv", "original_file_path": "seeds/shopify_gql_order_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_discount_code_data"], "alias": "shopify_gql_order_discount_code_data", "checksum": {"name": "sha256", "checksum": "aafb732b582b0f19c9f004febfb986cf33a2d090c53d87dc5d9875584d1c9643"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9842792, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_transaction_data.csv", "original_file_path": "seeds/shopify_gql_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_transaction_data", "fqn": ["shopify_integration_tests", "shopify_gql_transaction_data"], "alias": "shopify_gql_transaction_data", "checksum": {"name": "sha256", "checksum": "6daf1a707db559a969488734847d9996d22fc0c1eb96d91c6ae621e6fa0c9a53"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9872966, "relation_name": "\"postgres\".\"public\".\"shopify_gql_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_product": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_product", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_product.csv", "original_file_path": "seeds/shopify_gql_collection_product.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_product", "fqn": ["shopify_integration_tests", "shopify_gql_collection_product"], "alias": "shopify_gql_collection_product", "checksum": {"name": "sha256", "checksum": "97528489feaf3fe056bfad2e1d5704c7a27d9fd0e90253b3fd64eceecfe31a7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9903212, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_tender_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tender_transaction_data.csv", "original_file_path": "seeds/shopify_tender_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tender_transaction_data", "fqn": ["shopify_integration_tests", "shopify_tender_transaction_data"], "alias": "shopify_tender_transaction_data", "checksum": {"name": "sha256", "checksum": "7d1b7ebc547f9068b258e49431a3955f9143b99afa151664aa26a2ad9c5b479c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.993488, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tax_line_data.csv", "original_file_path": "seeds/shopify_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_tax_line_data"], "alias": "shopify_tax_line_data", "checksum": {"name": "sha256", "checksum": "af3615f675a22513590ef6a8abcce714b286f06c7532e650a56787c6afbd36de"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float", "rate": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float", "rate": "float"}}, "created_at": 1754505362.9966197, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_level_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_level_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_level_data.csv", "original_file_path": "seeds/shopify_gql_inventory_level_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_level_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_level_data"], "alias": "shopify_gql_inventory_level_data", "checksum": {"name": "sha256", "checksum": "aceaf50aec7f3b9a2fe70cc7a95c7c5a9206d11c10469987fdb88503051a0a3f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505362.9997716, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_shipping_line_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_shipping_line_data"], "alias": "shopify_abandoned_checkout_shipping_line_data", "checksum": {"name": "sha256", "checksum": "9b1e873b952f85626352f2ca85b67b7a14e54e7edd01467951653fc2716023d5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"markup": "varchar", "price": "float", "original_shop_markup": "varchar", "original_shop_price": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "price": "float", "original_shop_markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "original_shop_price": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754505363.0029619, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_app_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_app_data.csv", "original_file_path": "seeds/shopify_discount_code_app_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_app_data"], "alias": "shopify_discount_code_app_data", "checksum": {"name": "sha256", "checksum": "079a9204224ded648d6e15b794bf77034e41f319b72801fcfee0f5b1c9e37d77"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1754505363.0064452, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_media_data.csv", "original_file_path": "seeds/shopify_product_variant_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_media_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_media_data"], "alias": "shopify_product_variant_media_data", "checksum": {"name": "sha256", "checksum": "ffa08a9130b2aa66803955797f46a610fc32abcdb404635c6c1dc3a8b289e48b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_variant_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754505363.0098722, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_media_image_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_media_image_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_media_image_data.csv", "original_file_path": "seeds/shopify_gql_media_image_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_media_image_data", "fqn": ["shopify_integration_tests", "shopify_gql_media_image_data"], "alias": "shopify_gql_media_image_data", "checksum": {"name": "sha256", "checksum": "6581609f609de50cc0b430e64d53a728502cdaea962a90bffd1e5f72079cfc47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754505363.012954, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_image_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "model.shopify.shopify__calendar": {"database": "postgres", "schema": "public_shopify", "name": "shopify__calendar", "resource_type": "model", "package_name": "shopify", "path": "utils/shopify__calendar.sql", "original_file_path": "models/utils/shopify__calendar.sql", "unique_id": "model.shopify.shopify__calendar", "fqn": ["shopify", "utils", "shopify__calendar"], "alias": "shopify__calendar", "checksum": {"name": "sha256", "checksum": "5295fe06c949deb345450af0ad6b0335b6edc25b2e883a4f2452ae276a3e85f4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1754505363.2389095, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__calendar\"", "raw_code": "{% set start_date = var('shopify__calendar_start_date', '2019-01-01') %}\n\n{{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date=\"cast('\" ~ start_date ~ \"' as date)\",\n end_date=\"current_date\"\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.date_spine"], "nodes": []}, "compiled_path": "target/compiled/shopify/models/utils/shopify__calendar.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 2409\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2019-01-01' as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= current_date\n\n)\n\nselect * from filtered\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_cohorts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_cohorts.sql", "original_file_path": "models/rest/shopify__customer_cohorts.sql", "unique_id": "model.shopify.shopify__customer_cohorts", "fqn": ["shopify", "rest", "shopify__customer_cohorts"], "alias": "shopify__customer_cohorts", "checksum": {"name": "sha256", "checksum": "8b92c597e275f6464fbf1375ffb22714ad640588e7f163bb322202ef25f70304"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "created_at": 1754505368.255918, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == 'rest',\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'customer_id'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customers\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast(date_trunc('month', first_order_timestamp) as date) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n customer_id\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify__customer_email_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_email_cohorts.sql", "original_file_path": "models/rest/shopify__customer_email_cohorts.sql", "unique_id": "model.shopify.shopify__customer_email_cohorts", "fqn": ["shopify", "rest", "shopify__customer_email_cohorts"], "alias": "shopify__customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "3c60f6ffa19bb9a0e60b9b3a02e5c5a3a5baa560bcfa85b39e38194b2bae552a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's (on the EMAIL grain) performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "created_at": 1754505368.2571669, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == 'rest',\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'email'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customer_emails') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customer_emails", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_email_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customer_emails\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n email\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.email as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify__inventory_levels": {"database": "postgres", "schema": "public_shopify", "name": "shopify__inventory_levels", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__inventory_levels.sql", "original_file_path": "models/rest/shopify__inventory_levels.sql", "unique_id": "model.shopify.shopify__inventory_levels", "fqn": ["shopify", "rest", "shopify__inventory_levels"], "alias": "shopify__inventory_levels", "checksum": {"name": "sha256", "checksum": "002b6af06d7fddeab16ac942f625a60d1d40315396b4f4a5c1013ac3febbbb93"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of inventory items (which have a 1:1 relationship with product variants) and locations. \nInventory Level = Inventory item @ a Location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_item_deleted": {"name": "is_inventory_item_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "(DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_created_at": {"name": "inventory_item_created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_updated_at": {"name": "inventory_item_updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_location_deleted": {"name": "is_location_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_location_active": {"name": "is_location_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_created_at": {"name": "location_created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy_location": {"name": "is_legacy_location", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_name": {"name": "location_name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_updated_at": {"name": "location_updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_media_id": {"name": "variant_media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_variant_taxable": {"name": "is_variant_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_orders": {"name": "count_distinct_orders", "description": "The number of distinct orders placed from this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customers": {"name": "count_distinct_customers", "description": "The number of distinct customers (based on customer_id) that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customer_emails": {"name": "count_distinct_customer_emails", "description": "The number of distinct customer emails that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timetamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "The timestamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_refunds": {"name": "subtotal_sold_refunds", "description": "The monetary amount (in shop currency) of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_refunds": {"name": "quantity_sold_refunds", "description": "The quantity of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_subtotal_sold": {"name": "net_subtotal_sold", "description": "Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_quantity_sold": {"name": "net_quantity_sold", "description": "Net quantity sold from this inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_pending": {"name": "count_fulfillment_pending", "description": "Count of currently pending distinct fulfillments for this inventory level. \"Pending\" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_open": {"name": "count_fulfillment_open", "description": "Count of currently open distinct fulfillments for this inventory level. \"Open\" = The fulfillment has been acknowledged by the service and is in processing.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_success": {"name": "count_fulfillment_success", "description": "Count of successful distinct fulfillments for this inventory level. \"Success\" = The fulfillment was successful.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_cancelled": {"name": "count_fulfillment_cancelled", "description": "Count of cancelled distinct fulfillments for this inventory level. \"Cancelled\" = The fulfillment was cancelled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_error": {"name": "count_fulfillment_error", "description": "Count of distinct fulfillments for this inventory level that encountered an error. \"Error\" = There was an error with the fulfillment request.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of distinct fulfillments for this inventory level that failed. \"Failure\" = The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "available_quantity": {"name": "available_quantity", "description": "The available quantity that a merchant can sell, determined by coalescing the `quantity` where inventory_state_name = 'available' from `stg_shopify__inventory_quantity`and `available_quantity` from the deprecated `stg_shopify__inventory_level`. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "incoming_quantity": {"name": "incoming_quantity", "description": "The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "on_hand_quantity": {"name": "on_hand_quantity", "description": "The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "committed_quantity": {"name": "committed_quantity", "description": "The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reserved_quantity": {"name": "reserved_quantity", "description": "The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "damaged_quantity": {"name": "damaged_quantity", "description": "The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "safety_stock_quantity": {"name": "safety_stock_quantity", "description": "The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quality_control_quantity": {"name": "quality_control_quantity", "description": "The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3676093, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__inventory_levels\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith inventory_level as (\n\n select *\n from {{ var('shopify_inventory_level') }}\n), \n\ninventory_item as (\n\n select *\n from {{ var('shopify_inventory_item') }}\n),\n\ninventory_quantity as (\n\n select *\n from {{ var('shopify_inventory_quantity') }}\n),\n\nlocation as (\n\n select *\n from {{ var('shopify_location') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n),\n\nproduct as (\n\n select *\n from {{ var('shopify_product') }}\n),\n\ninventory_level_aggregated as (\n\n select *\n from {{ ref('int_shopify__inventory_level__aggregates') }}\n),\n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%}\n {% for inventory_state in inventory_states -%}\n , sum(case when lower(inventory_state_name) = {{ \"'\" ~ inventory_state|lower ~ \"'\" }}\n {% if inventory_state|lower == 'available ' -%}\n then coalesce(inventory_quantity.quantity, inventory_level.available_quantity)\n {% else -%}\n then inventory_quantity.quantity\n {% endif -%}\n end) as {{ inventory_state }}_quantity\n {% endfor -%}\n\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id as variant_media_id,\n {% endif %}\n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }}\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n {% endif %}\n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n\n {% for inventory_state in inventory_states -%}\n , inventory_quantity_aggregated.{{ inventory_state }}_quantity\n {% endfor -%}\n\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level", "package": null, "version": null}, {"name": "stg_shopify__inventory_item", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity", "package": null, "version": null}, {"name": "stg_shopify__location", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "int_shopify__inventory_level__aggregates", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__inventory_levels.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), inventory_level as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"\n), \n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\n),\n\ninventory_quantity as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"\n),\n\nlocation as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__location\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n),\n\nproduct as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n),\n\ninventory_level_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__inventory_level__aggregates\n),\n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n , sum(case when lower(inventory_state_name) = 'incoming'\n then inventory_quantity.quantity\n end) as incoming_quantity\n , sum(case when lower(inventory_state_name) = 'on_hand'\n then inventory_quantity.quantity\n end) as on_hand_quantity\n , sum(case when lower(inventory_state_name) = 'available'\n then inventory_quantity.quantity\n end) as available_quantity\n , sum(case when lower(inventory_state_name) = 'committed'\n then inventory_quantity.quantity\n end) as committed_quantity\n , sum(case when lower(inventory_state_name) = 'reserved'\n then inventory_quantity.quantity\n end) as reserved_quantity\n , sum(case when lower(inventory_state_name) = 'damaged'\n then inventory_quantity.quantity\n end) as damaged_quantity\n , sum(case when lower(inventory_state_name) = 'safety_stock'\n then inventory_quantity.quantity\n end) as safety_stock_quantity\n , sum(case when lower(inventory_state_name) = 'quality_control'\n then inventory_quantity.quantity\n end) as quality_control_quantity\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n \n product_variant_media.media_id as variant_media_id,\n \n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n \n\n\n\n\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n \n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n \n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n \n , coalesce(inventory_level_aggregated.count_fulfillment_pending, 0) as count_fulfillment_pending\n \n , coalesce(inventory_level_aggregated.count_fulfillment_open, 0) as count_fulfillment_open\n \n , coalesce(inventory_level_aggregated.count_fulfillment_success, 0) as count_fulfillment_success\n \n , coalesce(inventory_level_aggregated.count_fulfillment_cancelled, 0) as count_fulfillment_cancelled\n \n , coalesce(inventory_level_aggregated.count_fulfillment_error, 0) as count_fulfillment_error\n \n , coalesce(inventory_level_aggregated.count_fulfillment_failure, 0) as count_fulfillment_failure\n \n\n , inventory_quantity_aggregated.incoming_quantity\n , inventory_quantity_aggregated.on_hand_quantity\n , inventory_quantity_aggregated.available_quantity\n , inventory_quantity_aggregated.committed_quantity\n , inventory_quantity_aggregated.reserved_quantity\n , inventory_quantity_aggregated.damaged_quantity\n , inventory_quantity_aggregated.safety_stock_quantity\n , inventory_quantity_aggregated.quality_control_quantity\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify__inventory_level__aggregates", "sql": " __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "location_id"], "time_spine": null}, "model.shopify.shopify__discounts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__discounts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__discounts.sql", "original_file_path": "models/rest/shopify__discounts.sql", "unique_id": "model.shopify.shopify__discounts", "fqn": ["shopify", "rest", "shopify__discounts"], "alias": "shopify__discounts", "checksum": {"name": "sha256", "checksum": "62fa5f60084ea0263c89743d8e99e3642dc01df675b0f810158be89eba5984aa"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts.\n", "columns": {"discounts_unique_key": {"name": "discounts_unique_key", "description": "Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "The case-insensitive discount code that customers use at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether the discount can be used only once per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "Number of times the discount has been used (asynchronously updated).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "Number of unique redeem codes associated with the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether `codes_count` is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "Timestamp when the discount ends or expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "Timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "Current status of the discount (e.g. 'active', 'expired', 'scheduled').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount\u2019s display name in the Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to 'all' or 'entitled' items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "application_type": {"name": "application_type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Numeric value of the discount (e.g., percentage or fixed amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "How the discount value is interpreted (e.g., 'percentage', 'fixed_amount').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_discount_amount": {"name": "total_order_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off of orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_discount_amount": {"name": "total_abandoned_checkout_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_line_items_price": {"name": "total_order_line_items_price", "description": "Total monetary amount (in shop currency) of line items for orders that have used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_shipping_cost": {"name": "total_order_shipping_cost", "description": "Total shipping costs for orders that used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_shipping_price": {"name": "total_abandoned_checkout_shipping_price", "description": "Total projected shipping costs for abandoned checkouts that applied this discount first.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_refund_amount": {"name": "total_order_refund_amount", "description": "Total refunded amount (in shop currency) for orders that used this discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer emails who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_discount_amount": {"name": "avg_order_discount_amount", "description": "Average amount (in shop currency) of discount taken off orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "count_orders": {"name": "count_orders", "description": "Count of orders in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customers": {"name": "count_abandoned_checkout_customers", "description": "Distinct count of customers who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customer_emails": {"name": "count_abandoned_checkout_customer_emails", "description": "Distinct count of customer emails who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3721654, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__discounts\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith discounts_enriched as (\n\n select *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as discounts_unique_key\n from {{ ref('int_shopify__discount_code_enriched')}}\n),\n\norders_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__order_aggregates')}}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\nabandoned_checkouts_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__abandoned_checkouts')}}\n),\n{% endif %}\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n {% endif %} \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n {% endif %}\n)\n\nselect * \nfrom aggregates_joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discount_code_enriched", "package": null, "version": null}, {"name": "int_shopify__discounts__order_aggregates", "package": null, "version": null}, {"name": "int_shopify__discounts__abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__discounts__abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__discounts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n), __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), discounts_enriched as (\n\n select *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_code_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as discounts_unique_key\n from __dbt__cte__int_shopify__discount_code_enriched\n),\n\norders_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__order_aggregates\n),\n\n\nabandoned_checkouts_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__abandoned_checkouts\n),\n\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n \n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n \n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n \n)\n\nselect * \nfrom aggregates_joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discount_code_enriched", "sql": " __dbt__cte__int_shopify__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n)"}, {"id": "model.shopify.int_shopify__discounts__order_aggregates", "sql": " __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}, {"id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "sql": " __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discounts_unique_key"], "time_spine": null}, "model.shopify.shopify__customers": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customers.sql", "original_file_path": "models/rest/shopify__customers.sql", "unique_id": "model.shopify.shopify__customers", "fqn": ["shopify", "rest", "shopify__customers"], "alias": "shopify__customers", "checksum": {"name": "sha256", "checksum": "0ecd7f0b22e3a25224a922e9f02cfa4d5deadd8d3b62d124e6caff3602c729c0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money in shop currency that the customer has spent on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3476858, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customers\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customers as (\n\n select \n {{ dbt_utils.star(from=ref('stg_shopify__customer'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ var('shopify_customer') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__customers__order_aggregates' )}}\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where customer_id is not null\n group by 1,2\n{% endif %}\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags\n\n from {{ var('shopify_customer_tag' )}}\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n {% endif %}\n\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "shopify__customers__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customers.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n), customers as (\n\n select \n \"customer_id\",\n \"email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"phone\",\n \"account_state\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"marketing_consent_updated_at\",\n \"created_timestamp\",\n \"updated_timestamp\",\n \"_fivetran_synced\",\n \"source_relation\"\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), orders as (\n\n select *\n from __dbt__cte__shopify__customers__order_aggregates\n\n\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where customer_id is not null\n group by 1,2\n\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as customer_tags\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n \n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__customers__order_aggregates", "sql": " __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__orders.sql", "original_file_path": "models/rest/shopify__orders.sql", "unique_id": "model.shopify.shopify__orders", "fqn": ["shopify", "rest", "shopify__orders"], "alias": "shopify__orders", "checksum": {"name": "sha256", "checksum": "391f81515fc070ec8ddcf72d17f302ea6b76c9341329302d11ed57e3ff96b0e0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"orders_unique_key": {"name": "orders_unique_key", "description": "Unique key representing an order. Hashed on 'order_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count": {"name": "line_item_count", "description": "Number of line items included in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_order_seq_number": {"name": "customer_order_seq_number", "description": "The sequential number of the order as it relates to the customer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "new_vs_repeat": {"name": "new_vs_repeat", "description": "Whether the order was a new or repeat order for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to the adjustment on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "The checkout token applied to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price set to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_total_shipping_tax": {"name": "order_total_shipping_tax", "description": "Total shipping tax attributed to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_tags": {"name": "order_tags", "description": "List of tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_url_tags": {"name": "order_url_tags", "description": "List of url tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number_of_fulfillments": {"name": "number_of_fulfillments", "description": "Total fulfillments for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_services": {"name": "fulfillment_services", "description": "List of fulfillment services for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_companies": {"name": "tracking_companies", "description": "List of tracking companies for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "List of tracking numbers for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied on the order", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3451393, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_id']) }} as orders_unique_key\n from {{ var('shopify_order') }}\n \n), order_lines as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), order_adjustments as (\n\n select *\n from {{ var('shopify_order_adjustment') }}\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from {{ var('shopify_order_discount_code') }}\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_tags\n \n from {{ var('shopify_order_tag') }}\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_url_tags\n \n from {{ var('shopify_order_url_tag') }}\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n {{ fivetran_utils.string_agg(\"distinct cast(service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_company as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_number as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_numbers\n\n from {{ var('shopify_fulfillment') }}\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast({{ fivetran_utils.json_parse(\"total_shipping_price_set\",[\"shop_money\",\"amount\"]) }} as {{ dbt.type_float() }}) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify__order_tag", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.json_parse", "macro.dbt.type_float", "macro.shopify.shopify_partition_by_cols"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag", "model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__orders.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), orders as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as orders_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n \n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), order_adjustments as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_url_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n \n string_agg(distinct cast(service as TEXT), ', ')\n\n as fulfillment_services,\n \n string_agg(distinct cast(tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(tracking_number as TEXT), ', ')\n\n as tracking_numbers\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast(\n\n total_shipping_price_set::json #>> '{shop_money,amount}'\n\n as float) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by \n\n\n customer_id\n\n\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["orders_unique_key"], "time_spine": null}, "model.shopify.shopify__transactions": {"database": "postgres", "schema": "public_shopify", "name": "shopify__transactions", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__transactions.sql", "original_file_path": "models/rest/shopify__transactions.sql", "unique_id": "model.shopify.shopify__transactions", "fqn": ["shopify", "rest", "shopify__transactions"], "alias": "shopify__transactions", "checksum": {"name": "sha256", "checksum": "4c15f502fa243723bce0834561afdefee97a2ca1dee9e4bebadad7e2e2f42c1a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transactions_unique_id": {"name": "transactions_unique_id", "description": "Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of the date the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "exchange_rate": {"name": "exchange_rate", "description": "The exchange rate between the home currency and the currency of sale at the time of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_calculated_amount": {"name": "currency_exchange_calculated_amount", "description": "The total amount of the transaction with the currency exchange rate applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Method of payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_created_timestamp": {"name": "parent_created_timestamp", "description": "Created on timestamp of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_kind": {"name": "parent_kind", "description": "Kind of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_amount": {"name": "parent_amount", "description": "Amount of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_status": {"name": "parent_status", "description": "Status of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "Timestamp when the authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3632274, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__transactions\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith transactions as (\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'transaction_id'])}} as transactions_unique_id\n from {{ var('shopify_transaction') }} \n\n), tender_transactions as (\n\n select *\n from {{ var('shopify_tender_transaction') }}\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.json_parse", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__transactions.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as transactions_unique_id\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\" \n\n), tender_transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) as exchange_rate,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["transactions_unique_id"], "time_spine": null}, "model.shopify.shopify__order_lines": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_lines", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__order_lines.sql", "original_file_path": "models/rest/shopify__order_lines.sql", "unique_id": "model.shopify.shopify__order_lines", "fqn": ["shopify", "rest", "shopify__order_lines"], "alias": "shopify__order_lines", "checksum": {"name": "sha256", "checksum": "4bea1545ae004b8d366bcf551eead0be215407510cf95a048869e1346d111116"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item of an order in Shopify.", "columns": {"order_lines_unique_key": {"name": "order_lines_unique_key", "description": "Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_quantity": {"name": "refunded_quantity", "description": "Quantity of the item that has been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net_refunds": {"name": "quantity_net_refunds", "description": "Quantity ordered, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_compare_at_price": {"name": "variant_compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_position": {"name": "variant_position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sku": {"name": "variant_sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_taxable": {"name": "variant_is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_subtotal": {"name": "refunded_subtotal", "description": "Subtotal amount of the refund applied to the order line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_net_refunds": {"name": "subtotal_net_refunds", "description": "Subtotal of the order line with refunds subtracted in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_types": {"name": "restock_types", "description": "List of how this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_tax": {"name": "order_line_tax", "description": "Total taxes for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The total pre tax price of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3599467, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_lines\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_line_id']) }} as order_lines_unique_key\n from {{ var('shopify_order_line') }}\n\n), product_variants as (\n\n select *\n from {{ var('shopify_product_variant') }}\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), \n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n {{ fivetran_utils.string_agg(\"distinct cast(refunds.restock_type as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from {{ var('shopify_tax_line')}}\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id,\n {% endif %}\n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__order_lines.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as order_lines_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), \n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n \n string_agg(distinct cast(refunds.restock_type as TEXT), ', ')\n\n as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n \n product_variant_media.media_id,\n \n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n \n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_lines_unique_key"], "time_spine": null}, "model.shopify.shopify__products": {"database": "postgres", "schema": "public_shopify", "name": "shopify__products", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__products.sql", "original_file_path": "models/rest/shopify__products.sql", "unique_id": "model.shopify.shopify__products", "fqn": ["shopify", "rest", "shopify__products"], "alias": "shopify__products", "checksum": {"name": "sha256", "checksum": "cfa6ebbb138e82d7287894a9ab6ea7d2ae5511199880dd0650bea0aeaf4f09a8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity_sold": {"name": "total_quantity_sold", "description": "Quantity of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (in shop currency) of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_net_refunds": {"name": "quantity_sold_net_refunds", "description": "Quantity of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_net_refunds": {"name": "subtotal_sold_net_refunds", "description": "Total amount (in shop currency) of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the product was first ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the product was most recently ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order_line": {"name": "avg_quantity_per_order_line", "description": "Average quantity per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_discount": {"name": "product_total_discount", "description": "Total discounts associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_discount_per_order_line": {"name": "product_avg_discount_per_order_line", "description": "Average discount per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_tax": {"name": "product_total_tax", "description": "Total taxes associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_tax_per_order_line": {"name": "product_avg_tax_per_order_line", "description": "Average taxes per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants": {"name": "count_variants", "description": "Count of product variants.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_product_media": {"name": "has_product_media", "description": "If the product has media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collections": {"name": "collections", "description": "Comma-separated list of collections associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tags": {"name": "tags", "description": "Comma-separated list of tags associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3521218, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__products\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith products as (\n\n select *\n from {{ ref('int_shopify__products_with_aggregates') }}\n\n), product_order_lines as (\n\n select *\n from {{ ref('int_shopify__product__order_line_aggregates')}}\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__products_with_aggregates", "package": null, "version": null}, {"name": "int_shopify__product__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.int_shopify__product__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__products.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), products as (\n\n select *\n from __dbt__cte__int_shopify__products_with_aggregates\n\n), product_order_lines as (\n\n select *\n from __dbt__cte__int_shopify__product__order_line_aggregates\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__products_with_aggregates", "sql": " __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify__product__order_line_aggregates", "sql": " __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__daily_shop": {"database": "postgres", "schema": "public_shopify", "name": "shopify__daily_shop", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__daily_shop.sql", "original_file_path": "models/rest/shopify__daily_shop.sql", "unique_id": "model.shopify.shopify__daily_shop", "fqn": ["shopify", "rest", "shopify__daily_shop"], "alias": "shopify__daily_shop", "checksum": {"name": "sha256", "checksum": "26b5fbd6bc74a61de3e6051ace6b3c123b9a789b1871f098d3803e2a0a348335"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a day in your Shop, enriched with a suite of metrics.\n", "columns": {"date_day": {"name": "date_day", "description": "Day for which the shop activity is being measured.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders": {"name": "count_orders", "description": "Count of the distinct orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_line_items": {"name": "count_line_items", "description": "Count of the line items included in orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer email addresses who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "Average adjusted total per order placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount (in shop currency) applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to adjustments (in shop currency) on the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of the discount allocated to this day's orders in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied by customers on orders for this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_locations_ordered_from": {"name": "count_locations_ordered_from", "description": "Distinct locations with orders placed against them on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_discounts": {"name": "count_orders_with_discounts", "description": "Count of orders in which a discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_refunds": {"name": "count_orders_with_refunds", "description": "Count of orders in which there was a refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "Timestamp of the first order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "Timestamp of the last order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_refunded": {"name": "quantity_refunded", "description": "The quantity of goods ORDERED on this day that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net": {"name": "quantity_net", "description": "Net quantity sold from this shop on this day. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants_sold": {"name": "count_variants_sold", "description": "Distinct product variants sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_products_sold": {"name": "count_products_sold", "description": "Distinct products sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_gift_cards_sold": {"name": "quantity_gift_cards_sold", "description": "Quantity of gift cards sold on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_requiring_shipping": {"name": "quantity_requiring_shipping", "description": "Quantity of goods sold on this day that require shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers_abandoned_checkout": {"name": "count_customers_abandoned_checkout", "description": "Count of distinct customers who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails_abandoned_checkout": {"name": "count_customer_emails_abandoned_checkout", "description": "Count of distinct customer emails who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_attempted_delivery": {"name": "count_fulfillment_attempted_delivery", "description": "Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delivered": {"name": "count_fulfillment_delivered", "description": "Count of successful distinct fulfillments successfully delivered on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_in_transit": {"name": "count_fulfillment_in_transit", "description": "Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_out_for_delivery": {"name": "count_fulfillment_out_for_delivery", "description": "Count of distinct fulfillments being delivered to their final destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_ready_for_pickup": {"name": "count_fulfillment_ready_for_pickup", "description": "Count of distinct fulfillments ready for pickup at a shipping depot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_picked_up": {"name": "count_fulfillment_picked_up", "description": "Count of distinct fulfillments successfully picked up on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_printed": {"name": "count_fulfillment_label_printed", "description": "Count of distinct fulfillments for which a purchased shipping label has been printed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_purchased": {"name": "count_fulfillment_label_purchased", "description": "Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_confirmed": {"name": "count_fulfillment_confirmed", "description": "Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delayed": {"name": "count_fulfillment_delayed", "description": "Count of delayed distinct fulfillments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_line_item_count": {"name": "avg_line_item_count", "description": "Average line item count for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount": {"name": "avg_discount", "description": "Average total discount placed on orders on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_discount_amount": {"name": "avg_shipping_discount_amount", "description": "Average discount amount (in shop currency) allocated toward shipping on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_percentage_calc_discount_amount": {"name": "avg_percentage_calc_discount_amount", "description": "Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_fixed_amount_discount_amount": {"name": "avg_fixed_amount_discount_amount", "description": "Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_sold": {"name": "avg_quantity_sold", "description": "Average quantity sold per order on this day. Includes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_net": {"name": "avg_quantity_net", "description": "Average net quantity sold per order on this day. Excludes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3755093, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__daily_shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith shop as (\n\n select *\n from {{ var('shopify_shop') }}\n),\n\ncalendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from {{ ref('int_shopify__daily_orders') }}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\ndaily_abandoned_checkouts as (\n\n select *\n from {{ ref('int_shopify__daily_abandoned_checkouts') }}\n),\n{% endif %}\n\n{% if var('shopify_using_fulfillment_event', false) %}\ndaily_fulfillment as (\n\n select *\n from {{ ref('int_shopify__daily_fulfillment') }}\n),\n{% endif %}\n\nshop_calendar as (\n\n select\n cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n {% endif %}\n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n {% endif %}\n \n)\n\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "shopify__calendar", "package": null, "version": null}, {"name": "int_shopify__daily_orders", "package": null, "version": null}, {"name": "int_shopify__daily_abandoned_checkouts", "package": null, "version": null}, {"name": "int_shopify__daily_fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__shop", "model.shopify.shopify__calendar", "model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__daily_shop.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n), __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n), __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n), shop as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n),\n\ncalendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('day', date_day) as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from __dbt__cte__int_shopify__daily_orders\n),\n\n\ndaily_abandoned_checkouts as (\n\n select *\n from __dbt__cte__int_shopify__daily_abandoned_checkouts\n),\n\n\n\ndaily_fulfillment as (\n\n select *\n from __dbt__cte__int_shopify__daily_fulfillment\n),\n\n\nshop_calendar as (\n\n select\n cast(date_trunc('day', calendar.date_day) as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n \n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n \n\n \n \n , coalesce(count_fulfillment_attempted_delivery, 0) as count_fulfillment_attempted_delivery\n \n , coalesce(count_fulfillment_delayed, 0) as count_fulfillment_delayed\n \n , coalesce(count_fulfillment_delivered, 0) as count_fulfillment_delivered\n \n , coalesce(count_fulfillment_failure, 0) as count_fulfillment_failure\n \n , coalesce(count_fulfillment_in_transit, 0) as count_fulfillment_in_transit\n \n , coalesce(count_fulfillment_out_for_delivery, 0) as count_fulfillment_out_for_delivery\n \n , coalesce(count_fulfillment_ready_for_pickup, 0) as count_fulfillment_ready_for_pickup\n \n , coalesce(count_fulfillment_picked_up, 0) as count_fulfillment_picked_up\n \n , coalesce(count_fulfillment_label_printed, 0) as count_fulfillment_label_printed\n \n , coalesce(count_fulfillment_label_purchased, 0) as count_fulfillment_label_purchased\n \n , coalesce(count_fulfillment_confirmed, 0) as count_fulfillment_confirmed\n \n \n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n \n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n \n\n \n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n \n \n)\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__daily_orders", "sql": " __dbt__cte__int_shopify__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify__daily_abandoned_checkouts", "sql": " __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n)"}, {"id": "model.shopify.int_shopify__daily_fulfillment", "sql": " __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_emails": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_emails", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_emails.sql", "original_file_path": "models/rest/shopify__customer_emails.sql", "unique_id": "model.shopify.shopify__customer_emails", "fqn": ["shopify", "rest", "shopify__customer_emails"], "alias": "shopify__customer_emails", "checksum": {"name": "sha256", "checksum": "950e6e68218fd53bf2bd11f089af340c092a4251e1fd9d8c9230bf9c298af01f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer email in Shopify.", "columns": {"last_fivetran_synced": {"name": "last_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_ids": {"name": "customer_ids", "description": "Comma-separated list of customer IDs associated with the email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone_numbers": {"name": "phone_numbers", "description": "Comma-separated list of phone numbers associated with this email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_updated_at": {"name": "last_updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money that the customer has spent on orders across their order history (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_account_created_at": {"name": "first_account_created_at", "description": "Timestamp of when the first account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_account_created_at": {"name": "last_account_created_at", "description": "Timestamp of when the last account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.3500593, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_emails\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customer_emails as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify__customer_email_rollup'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ ref('int_shopify__customer_email_rollup') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify__emails__order_aggregates' )}}\n where email is not null\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where email is not null\n group by 1,2\n{% endif %}\n\n), joined as (\n\n select \n customer_emails.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__emails__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star"], "nodes": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_emails.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), customer_emails as (\n\n select \n \"email\",\n \"source_relation\",\n \"customer_ids\",\n \"phone_numbers\",\n \"customer_tags\",\n \"first_account_created_at\",\n \"last_account_created_at\",\n \"last_updated_at\",\n \"marketing_consent_updated_at\",\n \"last_fivetran_synced\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"account_state\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\"\n from \"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify__emails__order_aggregates\n where email is not null\n\n\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where email is not null\n group by 1,2\n\n\n), joined as (\n\n select \n customer_emails.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n \n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__emails__order_aggregates", "sql": " __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__inventory_level__aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__inventory_level__aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__inventory_level__aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__inventory_level__aggregates.sql", "unique_id": "model.shopify.int_shopify__inventory_level__aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__inventory_level__aggregates"], "alias": "int_shopify__inventory_level__aggregates", "checksum": {"name": "sha256", "checksum": "71c148adee52b31e8a96b36110d93dba3f37be66f265625ca908744297ac0a92"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.4437087, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select *\n from {{ var('shopify_order_line') }}\n),\n\nfulfillment as (\n\n select *\n from {{ var('shopify_fulfillment') }}\n),\n\norders as (\n\n select *\n from {{ var('shopify_order') }}\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n {{ dbt_utils.group_by(n=3) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_refunds"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__inventory_level__aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["location_id", "source_relation", "variant_id"], "time_spine": null}, "model.shopify.int_shopify__product__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__product__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__product__order_line_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__product__order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify__product__order_line_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__product__order_line_aggregates"], "alias": "int_shopify__product__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "7318e3e5faba66745a27e59d40674690031727a7c2719c8660c8c73a685e3896"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.4457364, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select *\n from {{ ref('shopify__order_lines') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders')}}\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__product__order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__products_with_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__products_with_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__products_with_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__products_with_aggregates.sql", "unique_id": "model.shopify.int_shopify__products_with_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__products_with_aggregates"], "alias": "int_shopify__products_with_aggregates", "checksum": {"name": "sha256", "checksum": "f76affed4b8f7e1cbce3598d02d4114978ee18b9e5b4583720285c3c7c19750d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.4462428, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith products as (\n\n select *\n from {{ var('shopify_product') }}\n), \n\ncollection_product as (\n\n select *\n from {{ var('shopify_collection_product') }}\n),\n\ncollection as (\n\n select *\n from {{ var('shopify_collection') }}\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from {{ var('shopify_product_tag') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n), \n\nproduct_media as (\n\n select *\n from {{ var('shopify_product_media') }}\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter=\"', '\") }} as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='value', delimiter=\"', '\") }} as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__collection_product", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__product_tag", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__products_with_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__discount_code_enriched": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discount_code_enriched", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discount_code_enriched.sql", "original_file_path": "models/rest/intermediate/int_shopify__discount_code_enriched.sql", "unique_id": "model.shopify.int_shopify__discount_code_enriched", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discount_code_enriched"], "alias": "int_shopify__discount_code_enriched", "checksum": {"name": "sha256", "checksum": "bcf513cc78532e595d895f3b33240d906515eaf4979369990586897a7bb64e84"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505363.5333118, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith discount_redeem_codes as (\n \n select *\n from {{ var('shopify_discount_redeem_code') }}\n),\n\ndiscount_applications as (\n\n select *\n from {{ var('shopify_discount_application') }}\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_basic') }}\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_bxgy') }}\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_free_shipping') }}\n\n {% if var('shopify_using_discount_code_app', False) %}\n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_app') }}\n {% endif %}\n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_application", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code", "model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discount_code_enriched.sql", "compiled": true, "compiled_code": "\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__daily_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__daily_abandoned_checkouts", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_abandoned_checkouts"], "alias": "int_shopify__daily_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "3ed79baa28d3b9160647ad92b70096d29c4bffe408b4d69e2fcd790e124f9074"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505363.5452983, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__order__shipping_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__order__shipping_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__order__shipping_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__order__shipping_aggregates.sql", "unique_id": "model.shopify.int_shopify__order__shipping_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__order__shipping_aggregates"], "alias": "int_shopify__order__shipping_aggregates", "checksum": {"name": "sha256", "checksum": "0b62dd0d5d3643dd2d497124c55db965c77cbf556e68645f15965bf80f3d3a82"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.4452364, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from {{ var('shopify_order_shipping_line') }}\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from {{ var('shopify_order_shipping_tax_line') }}\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__order__shipping_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__orders__order_line_aggregates.sql", "original_file_path": "models/rest/intermediate/shopify__orders__order_line_aggregates.sql", "unique_id": "model.shopify.shopify__orders__order_line_aggregates", "fqn": ["shopify", "rest", "intermediate", "shopify__orders__order_line_aggregates"], "alias": "shopify__orders__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "dc06ee54fe54de8c7cd7a17fc15bb4ab1331d5d1f7ea6b71aabce4a6d9cc3a3f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.4416628, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"", "raw_code": "{{ config(materialized='table', enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_line as (\n\n select *\n from {{ var('shopify_order_line') }}\n\n), tax as (\n\n select\n *\n from {{ var('shopify_tax_line') }}\n\n), shipping as (\n\n select\n *\n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__orders__order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), order_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), tax as (\n\n select\n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), shipping as (\n\n select\n *\n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__daily_orders": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_orders", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_orders.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_orders.sql", "unique_id": "model.shopify.int_shopify__daily_orders", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_orders"], "alias": "int_shopify__daily_orders", "checksum": {"name": "sha256", "checksum": "f866152e2f91cf3593173286eeb1d4337212bc81a34a1b8550189f69081f69a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505363.5724657, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from {{ ref('shopify__order_lines') }}\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.shopify__orders", "model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_orders.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__customer_email_rollup": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__customer_email_rollup.sql", "original_file_path": "models/rest/intermediate/int_shopify__customer_email_rollup.sql", "unique_id": "model.shopify.int_shopify__customer_email_rollup", "fqn": ["shopify", "rest", "intermediate", "int_shopify__customer_email_rollup"], "alias": "int_shopify__customer_email_rollup", "checksum": {"name": "sha256", "checksum": "37f30d45093b6c1ed887121ee7e4b1ff6dafc2f9353024e4255b86946a64b431"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.4432082, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by created_timestamp desc) \n as customer_index\n\n from {{ var('shopify_customer') }}\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from {{ var('shopify_customer_tag' )}}\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n {{ fivetran_utils.string_agg(\"distinct cast(customers.customer_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_ids,\n {{ fivetran_utils.string_agg(\"distinct cast(customers.phone as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as phone_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(customer_tags.value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n {{ fivetran_utils.max_bool(\"case when customers.customer_index = 1 then customers.is_tax_exempt else null end\") }} as is_tax_exempt, -- since this changes every year\n {{ fivetran_utils.max_bool(\"customers.is_verified_email\") }} as is_verified_email\n\n -- for all other fields, just take the latest value\n {% set cols = adapter.get_columns_in_relation(ref('stg_shopify__customer')) %}\n {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', \n 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp',\n 'is_tax_exempt', 'is_verified_email'] %}\n {% for col in cols %}\n {% if col.column|lower not in except_cols %}\n , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }}\n {% endif %}\n {% endfor %}\n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_partition_by_cols", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.max_bool"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__customer_email_rollup.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by \n\n\n email\n\n\n order by created_timestamp desc) \n as customer_index\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n \n string_agg(distinct cast(customers.customer_id as TEXT), ', ')\n\n as customer_ids,\n \n string_agg(distinct cast(customers.phone as TEXT), ', ')\n\n as phone_numbers,\n \n string_agg(distinct cast(customer_tags.value as TEXT), ', ')\n\n as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n \n\n bool_or( case when customers.customer_index = 1 then customers.is_tax_exempt else null end )\n\n as is_tax_exempt, -- since this changes every year\n \n\n bool_or( customers.is_verified_email )\n\n as is_verified_email\n\n -- for all other fields, just take the latest value\n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.first_name else null end) as first_name\n \n \n \n , max(case when customers.customer_index = 1 then customers.last_name else null end) as last_name\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.default_address_id else null end) as default_address_id\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.account_state else null end) as account_state\n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.note else null end) as note\n \n \n \n , max(case when customers.customer_index = 1 then customers.currency else null end) as currency\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_consent_state else null end) as marketing_consent_state\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_opt_in_level else null end) as marketing_opt_in_level\n \n \n \n \n \n \n \n \n \n \n \n \n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders__order_refunds": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_refunds", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__orders__order_refunds.sql", "original_file_path": "models/rest/intermediate/shopify__orders__order_refunds.sql", "unique_id": "model.shopify.shopify__orders__order_refunds", "fqn": ["shopify", "rest", "intermediate", "shopify__orders__order_refunds"], "alias": "shopify__orders__order_refunds", "checksum": {"name": "sha256", "checksum": "b2779287393dd936f29751f0839d05d36aa9ac1ec21f071744d6d1c3047adc11"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.4421666, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith refunds as (\n\n select *\n from {{ var('shopify_refund') }}\n\n), order_line_refunds as (\n\n select *\n from {{ var('shopify_order_line_refund') }}\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__refund", "model.shopify_source.stg_shopify__order_line_refund"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__orders__order_refunds.sql", "compiled": true, "compiled_code": "\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "original_file_path": "models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discounts__abandoned_checkouts"], "alias": "int_shopify__discounts__abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "4db18a80ca151075ad7431fe218c35b61b96196951cf2da104512d277ca94f83"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.4447248, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from {{ var('shopify_abandoned_checkout_discount_code') }}\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from {{ var('shopify_abandoned_checkout_shipping_line') }}\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["code", "source_relation", "type"], "time_spine": null}, "model.shopify.int_shopify__emails__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__emails__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__emails__order_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__emails__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__emails__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__emails__order_aggregates"], "alias": "int_shopify__emails__order_aggregates", "checksum": {"name": "sha256", "checksum": "1b106193505d9a5cbf6f64b6fbc51c6eb010151e48da445481c726fc0a5a1f46"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.4426873, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_order') }}\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from {{ var('shopify_customer') }}\n where email is not null\n {{ dbt_utils.group_by(n=3) }}\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__emails__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__daily_fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_fulfillment", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_fulfillment.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_fulfillment.sql", "unique_id": "model.shopify.int_shopify__daily_fulfillment", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_fulfillment"], "alias": "int_shopify__daily_fulfillment", "checksum": {"name": "sha256", "checksum": "5d07c22ba6468bebf18c3be8c5d123914dc91b33eb036c4bc75feb1bd4f7529c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505363.628562, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith fulfillment_event as (\n\n select *\n from {{ var('shopify_fulfillment_event') }}\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day\n\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discounts__order_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__discounts__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__discounts__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discounts__order_aggregates"], "alias": "int_shopify__discounts__order_aggregates", "checksum": {"name": "sha256", "checksum": "bf596881f17db03334a269b53a5856d2cddfe92d6bd8dffc26b5b779e874a480"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.444224, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_discount_code as (\n\n select *\n from {{ var('shopify_order_discount_code') }}\n),\n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_discount_code", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discounts__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["code", "source_relation", "type"], "time_spine": null}, "model.shopify.shopify__customers__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__customers__order_aggregates.sql", "original_file_path": "models/rest/intermediate/shopify__customers__order_aggregates.sql", "unique_id": "model.shopify.shopify__customers__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "shopify__customers__order_aggregates"], "alias": "shopify__customers__order_aggregates", "checksum": {"name": "sha256", "checksum": "e1af84adc51e48a677e22660a99ca8e7d48ee8fabc49c0b4505c8fc1c7233264"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505368.441077, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_order') }}\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n {{ dbt_utils.group_by(n=2) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__customers__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__product_variant_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__product_variant_metafields.sql", "original_file_path": "models/rest/metafields/shopify__product_variant_metafields.sql", "unique_id": "model.shopify.shopify__product_variant_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__product_variant_metafields"], "alias": "shopify__product_variant_metafields", "checksum": {"name": "sha256", "checksum": "aa2cdc58708d40d191a197a74aaa246cf15f5a6f3d984f70f378309283819367"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product_variant model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5020807, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_variant_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product_variant\",\n reference_values = ['variant', 'productvariant'],\n id_column = \"variant_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__product_variant_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_wherearethey'\n then value\n else null\n end\n )\n \n \n as avengers_wherearethey\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_wheninspace'\n then value\n else null\n end\n )\n \n \n as star_wars_wheninspace\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.variant_id,\n \n source_table.product_id,\n \n source_table.inventory_item_id,\n \n source_table.title,\n \n source_table.price,\n \n source_table.sku,\n \n source_table.position,\n \n source_table.inventory_policy,\n \n source_table.compare_at_price,\n \n source_table.fulfillment_service,\n \n source_table.inventory_management,\n \n source_table.is_taxable,\n \n source_table.barcode,\n \n source_table.grams,\n \n source_table.inventory_quantity,\n \n source_table.is_available_for_sale,\n \n source_table.display_name,\n \n source_table.legacy_resource_id,\n \n source_table.has_components_required,\n \n source_table.sellable_online_quantity,\n \n source_table.weight,\n \n source_table.weight_unit,\n \n source_table.option_1,\n \n source_table.option_2,\n \n source_table.option_3,\n \n source_table.tax_code,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_wherearethey) as metafield_avengers_wherearethey\n \n , max(lookup_object.star_wars_wheninspace) as metafield_star_wars_wheninspace\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.variant_id\n and lower(lookup_object.owner_resource) in ('variant', 'productvariant')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__order_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__order_metafields.sql", "original_file_path": "models/rest/metafields/shopify__order_metafields.sql", "unique_id": "model.shopify.shopify__order_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__order_metafields"], "alias": "shopify__order_metafields", "checksum": {"name": "sha256", "checksum": "bb661fd29f14623b4e28a900a1a3b19cd679f288fdcc6b2db556b48c38756164"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__order model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5011063, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__order\", \n reference_values = ['order'],\n id_column = \"order_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__order_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_howmany'\n then value\n else null\n end\n )\n \n \n as avengers_howmany\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isinspace'\n then value\n else null\n end\n )\n \n \n as star_wars_isinspace\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_numbersequels'\n then value\n else null\n end\n )\n \n \n as star_wars_numbersequels\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.order_id,\n \n source_table.user_id,\n \n source_table.total_discounts,\n \n source_table.total_discounts_set,\n \n source_table.total_line_items_price,\n \n source_table.total_line_items_price_set,\n \n source_table.total_price,\n \n source_table.total_price_set,\n \n source_table.total_tax_set,\n \n source_table.total_tax,\n \n source_table.source_name,\n \n source_table.subtotal_price,\n \n source_table.has_taxes_included,\n \n source_table.total_weight,\n \n source_table.total_tip_received,\n \n source_table.landing_site_base_url,\n \n source_table.location_id,\n \n source_table.name,\n \n source_table.note,\n \n source_table.number,\n \n source_table.order_number,\n \n source_table.cancel_reason,\n \n source_table.cart_token,\n \n source_table.checkout_token,\n \n source_table.created_timestamp,\n \n source_table.cancelled_timestamp,\n \n source_table.closed_timestamp,\n \n source_table.processed_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.currency,\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.financial_status,\n \n source_table.fulfillment_status,\n \n source_table.referring_site,\n \n source_table.billing_address_address_1,\n \n source_table.billing_address_address_2,\n \n source_table.billing_address_city,\n \n source_table.billing_address_company,\n \n source_table.billing_address_country,\n \n source_table.billing_address_country_code,\n \n source_table.billing_address_first_name,\n \n source_table.billing_address_last_name,\n \n source_table.billing_address_latitude,\n \n source_table.billing_address_longitude,\n \n source_table.billing_address_name,\n \n source_table.billing_address_phone,\n \n source_table.billing_address_province,\n \n source_table.billing_address_province_code,\n \n source_table.billing_address_zip,\n \n source_table.browser_ip,\n \n source_table.total_shipping_price_set,\n \n source_table.shipping_address_address_1,\n \n source_table.shipping_address_address_2,\n \n source_table.shipping_address_city,\n \n source_table.shipping_address_company,\n \n source_table.shipping_address_country,\n \n source_table.shipping_address_country_code,\n \n source_table.shipping_address_first_name,\n \n source_table.shipping_address_last_name,\n \n source_table.shipping_address_latitude,\n \n source_table.shipping_address_longitude,\n \n source_table.shipping_address_name,\n \n source_table.shipping_address_phone,\n \n source_table.shipping_address_province,\n \n source_table.shipping_address_province_code,\n \n source_table.shipping_address_zip,\n \n source_table.token,\n \n source_table.app_id,\n \n source_table.checkout_id,\n \n source_table.client_details_user_agent,\n \n source_table.customer_locale,\n \n source_table.order_status_url,\n \n source_table.presentment_currency,\n \n source_table.is_test_order,\n \n source_table.is_deleted,\n \n source_table.has_buyer_accepted_marketing,\n \n source_table.is_confirmed,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_howmany) as metafield_avengers_howmany\n \n , max(lookup_object.star_wars_isinspace) as metafield_star_wars_isinspace\n \n , max(lookup_object.star_wars_numbersequels) as metafield_star_wars_numbersequels\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.order_id\n and lower(lookup_object.owner_resource) in ('order')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__product_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__product_metafields.sql", "original_file_path": "models/rest/metafields/shopify__product_metafields.sql", "unique_id": "model.shopify.shopify__product_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__product_metafields"], "alias": "shopify__product_metafields", "checksum": {"name": "sha256", "checksum": "4ecabbfee204dd6d41c39d99eafd9e4627db1710831547eaf6b5ecc38ddb012a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5015898, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product\", \n reference_values = ['product'],\n id_column = \"product_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__product_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__customer_metafields.sql", "original_file_path": "models/rest/metafields/shopify__customer_metafields.sql", "unique_id": "model.shopify.shopify__customer_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__customer_metafields"], "alias": "shopify__customer_metafields", "checksum": {"name": "sha256", "checksum": "1d183df4efbd1c05e74961913c1e9eda390a0aa59312a8e7914d2e26ac02f0f8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__customer model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5006144, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__customer\", \n reference_values = ['customer'],\n id_column = \"customer_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__customer_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'star_wars_firstname'\n then value\n else null\n end\n )\n \n \n as star_wars_firstname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_fullname'\n then value\n else null\n end\n )\n \n \n as star_wars_fullname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isjedi'\n then value\n else null\n end\n )\n \n \n as star_wars_isjedi\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_lastname'\n then value\n else null\n end\n )\n \n \n as star_wars_lastname\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.first_name,\n \n source_table.last_name,\n \n source_table.orders_count,\n \n source_table.default_address_id,\n \n source_table.phone,\n \n source_table.account_state,\n \n source_table.is_tax_exempt,\n \n source_table.total_spent,\n \n source_table.is_verified_email,\n \n source_table.note,\n \n source_table.currency,\n \n source_table.marketing_consent_state,\n \n source_table.marketing_opt_in_level,\n \n source_table.marketing_consent_updated_at,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.star_wars_firstname) as metafield_star_wars_firstname\n \n , max(lookup_object.star_wars_fullname) as metafield_star_wars_fullname\n \n , max(lookup_object.star_wars_isjedi) as metafield_star_wars_isjedi\n \n , max(lookup_object.star_wars_lastname) as metafield_star_wars_lastname\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.customer_id\n and lower(lookup_object.owner_resource) in ('customer')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__shop_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__shop_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__shop_metafields.sql", "original_file_path": "models/rest/metafields/shopify__shop_metafields.sql", "unique_id": "model.shopify.shopify__shop_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__shop_metafields"], "alias": "shopify__shop_metafields", "checksum": {"name": "sha256", "checksum": "a6c83b00e994807860ae5fbe8c7766fe0ace4300cfd53c5ba206ea6bf1831f3c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__shop model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5025465, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__shop_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__shop\", \n reference_values = ['shop'],\n id_column = \"shop_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__shop_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__collection_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__collection_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__collection_metafields.sql", "original_file_path": "models/rest/metafields/shopify__collection_metafields.sql", "unique_id": "model.shopify.shopify__collection_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__collection_metafields"], "alias": "shopify__collection_metafields", "checksum": {"name": "sha256", "checksum": "9a0e96e6e6a37a4a6acea599ac4a0e4fec53dbb44e8a29d52c87ed7ac596bbde"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__collection model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5001237, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__collection_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__collection\", \n reference_values = ['collection'],\n id_column = \"collection_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__collection_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__line_item_enhanced": {"database": "postgres", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "resource_type": "model", "package_name": "shopify", "path": "rest/standardized_models/shopify__line_item_enhanced.sql", "original_file_path": "models/rest/standardized_models/shopify__line_item_enhanced.sql", "unique_id": "model.shopify.shopify__line_item_enhanced", "fqn": ["shopify", "rest", "standardized_models", "shopify__line_item_enhanced"], "alias": "shopify__line_item_enhanced", "checksum": {"name": "sha256", "checksum": "b7aba2e3c1eb834a55bcb5174c0e3ad5db1e8699f88d14469d04cbdcbefe0e5c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It\u2019s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details.", "columns": {"header_id": {"name": "header_id", "description": "Id of corresponding order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_id": {"name": "line_item_id", "description": "Order line item id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_index": {"name": "line_item_index", "description": "Unique index of each line item id for each order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "record_type": {"name": "record_type", "description": "header or line_item", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the order was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "header_status": {"name": "header_status", "description": "Status of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_type": {"name": "billing_type", "description": "NA for Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "Currency used in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "Product ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_name": {"name": "product_name", "description": "Product name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "Product type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_type": {"name": "transaction_type", "description": "Transaction type (Charge, Refund, etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of units of this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_amount": {"name": "unit_amount", "description": "Amount per unit, or the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_amount": {"name": "discount_amount", "description": "The discount amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "The tax amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_amount": {"name": "total_amount", "description": "Order total", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_id": {"name": "payment_id", "description": "Transaction ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Transaction gateway for Shopify ('gift card', 'shopify payments', etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method_id": {"name": "payment_method_id", "description": "Shopify does not have a particular payment_method_id, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_at": {"name": "payment_at", "description": "Transaction processed timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fee_amount": {"name": "fee_amount", "description": "The total shipping fee associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_amount": {"name": "refund_amount", "description": "Refund amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_id": {"name": "subscription_id", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_plan": {"name": "subscription_plan", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_started_at": {"name": "subscription_period_started_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_ended_at": {"name": "subscription_period_ended_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_status": {"name": "subscription_status", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "Customer associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_created_at": {"name": "customer_created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_level": {"name": "customer_level", "description": "Whether 'account' or 'customer'. For Shopify, the level is 'customer'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_name": {"name": "customer_name", "description": "Customer name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_company": {"name": "customer_company", "description": "Associated customer's company noted on the shipping address if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "Customer email", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_city": {"name": "customer_city", "description": "Customer's shipping address city", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_country": {"name": "customer_country", "description": "Customer's shipping address country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/standardized_models/shopify__standardized_models.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5140126, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__line_item_enhanced\"", "raw_code": "{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith line_items as (\n\n select * \n from {{ var('shopify_order_line')}}\n\n), orders as ( \n\n select * \n from {{ var('shopify_order')}}\n\n), product as (\n\n select *\n from {{ var('shopify_product')}}\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n {{ fivetran_utils.string_agg(\"cast (transaction_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} AS transaction_id,\n {{ fivetran_utils.string_agg(\"cast (processed_timestamp as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as processed_timestamp,\n {{ fivetran_utils.string_agg('gateway', \"', '\") }} as gateway\n\n from {{ var('shopify_transaction')}}\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from {{ var('shopify_transaction')}}\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from {{ var('shopify_order_line_refund')}}\n group by 1,2\n\n), customer as (\n\n select *\n from {{ var('shopify_customer')}}\n\n), shipping as (\n\n select * \n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as {{ dbt.type_string() }}) as subscription_id,\n cast(null as {{ dbt.type_string() }}) as subscription_plan,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at,\n cast(null as {{ dbt.type_string() }}) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n {{ dbt.concat([\"c.first_name\", \"''\", \"c.last_name\"]) }} as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id,\n cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as {{ dbt.type_numeric() }}) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as {{ dbt.type_numeric() }}) as quantity,\n cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,\n cast(null as {{ dbt.type_numeric() }}) as discount_amount,\n cast(null as {{ dbt.type_numeric() }}) as tax_amount,\n cast(total_amount as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as {{ dbt.type_numeric() }}) as fee_amount,\n cast(null as {{ dbt.type_numeric() }}) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as {{ dbt.type_numeric() }}) as line_item_id,\n cast(0 as {{ dbt.type_numeric() }}) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as {{ dbt.type_numeric() }}) as product_id,\n cast(null as {{ dbt.type_string() }}) as product_name,\n transaction_type,\n billing_type,\n cast(null as {{ dbt.type_string() }}) as product_type,\n cast(null as {{ dbt.type_numeric() }}) as quantity,\n cast(null as {{ dbt.type_numeric() }}) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.dbt.type_timestamp", "macro.dbt.concat", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__customer", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/standardized_models/shopify__line_item_enhanced.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), line_items as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), orders as ( \n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n \n string_agg(cast (transaction_id as TEXT), ', ')\n\n AS transaction_id,\n \n string_agg(cast (processed_timestamp as TEXT), ', ')\n\n as processed_timestamp,\n \n string_agg(gateway, ', ')\n\n as gateway\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n group by 1,2\n\n), customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), shipping as (\n\n select * \n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as TEXT) as subscription_id,\n cast(null as TEXT) as subscription_plan,\n cast(null as timestamp) as subscription_period_started_at,\n cast(null as timestamp) as subscription_period_ended_at,\n cast(null as TEXT) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n c.first_name || '' || c.last_name as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as numeric(28,6)) as line_item_id,\n cast(line_item_index as numeric(28,6)) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as numeric(28,6)) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as numeric(28,6)) as quantity,\n cast(unit_amount as numeric(28,6)) as unit_amount,\n cast(null as numeric(28,6)) as discount_amount,\n cast(null as numeric(28,6)) as tax_amount,\n cast(total_amount as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as numeric(28,6)) as fee_amount,\n cast(null as numeric(28,6)) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as numeric(28,6)) as line_item_id,\n cast(0 as numeric(28,6)) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as numeric(28,6)) as product_id,\n cast(null as TEXT) as product_name,\n transaction_type,\n billing_type,\n cast(null as TEXT) as product_type,\n cast(null as numeric(28,6)) as quantity,\n cast(null as numeric(28,6)) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["header_id", "line_item_id", "source_relation"], "time_spine": null}, "model.shopify.shopify_gql__customer_email_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_email_cohorts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_email_cohorts.sql", "original_file_path": "models/graphql/shopify_gql__customer_email_cohorts.sql", "unique_id": "model.shopify.shopify_gql__customer_email_cohorts", "fqn": ["shopify", "graphql", "shopify_gql__customer_email_cohorts"], "alias": "shopify_gql__customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "44ea3b7181f25acbd8740e7b4084080f926680aeac54311144a29cf6dd814708"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's (on the EMAIL grain) performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "created_at": 1754505367.9546983, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'),\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'email'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify_gql__customer_emails') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify_gql__customer_emails", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customer_emails", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_email_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n email\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.email as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify_gql__customers": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customers", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customers.sql", "original_file_path": "models/graphql/shopify_gql__customers.sql", "unique_id": "model.shopify.shopify_gql__customers", "fqn": ["shopify", "graphql", "shopify_gql__customers"], "alias": "shopify_gql__customers", "checksum": {"name": "sha256", "checksum": "9c21a0b94a0b4b535719777ad86c81e3780eabb5274d18ef3bffa0b82fa98633"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money in shop currency that the customer has spent on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.0040622, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customers\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customers as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify_gql__customer'), except=[\"orders_count\", \"total_spent\", \"unique_key\"]) }}\n from {{ ref('int_shopify_gql__customer') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__customers_order_aggregates' )}}\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_gql_abandoned_checkout' )}}\n where customer_id is not null\n group by 1,2\n{% endif %}\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags\n\n from {{ var('shopify_gql_customer_tag' )}}\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n {% endif %}\n\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customers_order_aggregates", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customers.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__customers_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated\n), customers as (\n\n select \n \"customer_id\",\n \"email\",\n \"first_name\",\n \"last_name\",\n \"phone\",\n \"account_state\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"marketing_consent_updated_at\",\n \"created_timestamp\",\n \"updated_timestamp\",\n \"_fivetran_synced\",\n \"source_relation\",\n \"default_address_id\"\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__customers_order_aggregates\n\n\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n where customer_id is not null\n group by 1,2\n\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as customer_tags\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n \n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__customers_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__customers_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify_gql__order_lines": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__order_lines", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__order_lines.sql", "original_file_path": "models/graphql/shopify_gql__order_lines.sql", "unique_id": "model.shopify.shopify_gql__order_lines", "fqn": ["shopify", "graphql", "shopify_gql__order_lines"], "alias": "shopify_gql__order_lines", "checksum": {"name": "sha256", "checksum": "05e8538403e3ee72811dc4d13bee21fd937ef51018cc15f1b72b25fb9f047d03"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item of an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_quantity": {"name": "refunded_quantity", "description": "Quantity of the item that has been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net_refunds": {"name": "quantity_net_refunds", "description": "Quantity ordered, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_compare_at_price": {"name": "variant_compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_position": {"name": "variant_position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sku": {"name": "variant_sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_taxable": {"name": "variant_is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "The weight value of the variant's inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "The unit of measurement for the variant's inventory item's weight.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_subtotal": {"name": "refunded_subtotal", "description": "Subtotal amount of the refund applied to the order line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_net_refunds": {"name": "subtotal_net_refunds", "description": "Subtotal of the order line with refunds subtracted in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_types": {"name": "restock_types", "description": "List of how this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_tax": {"name": "order_line_tax", "description": "Total taxes for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The total pre tax price of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.0339906, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__order_line') }}\n\n), product_variants as (\n\n select *\n from {{ ref('int_shopify_gql__product_variant') }}\n\n), refunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), \n\n{% if var('shopify_gql_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_gql_product_variant_media') }}\n),\n{% endif %}\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n {{ fivetran_utils.string_agg(\"distinct cast(refunds.restock_type as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as restock_types\n from refunds\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n refunds_aggregated.restock_types,\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n product_variant_media.media_id,\n {% endif %}\n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_line", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__product_variant", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__order_lines.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_line\"\n\n), product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"\n\n), refunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), \n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\n),\n\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n \n string_agg(distinct cast(refunds.restock_type as TEXT), ', ')\n\n as restock_types\n from refunds\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n refunds_aggregated.restock_types,\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n \n product_variant_media.media_id,\n \n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n\n \n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__transactions": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__transactions", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__transactions.sql", "original_file_path": "models/graphql/shopify_gql__transactions.sql", "unique_id": "model.shopify.shopify_gql__transactions", "fqn": ["shopify", "graphql", "shopify_gql__transactions"], "alias": "shopify_gql__transactions", "checksum": {"name": "sha256", "checksum": "a515293deae8b33e3c0c262d12f78da246ceff07bf83ee3f6d3458d27c8d7234"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of money included in the transaction in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of money included in the transaction in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of the date the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "exchange_rate": {"name": "exchange_rate", "description": "The exchange rate between the home currency and the currency of sale at the time of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_calculated_amount": {"name": "currency_exchange_calculated_amount", "description": "The total amount of the transaction with the currency exchange rate applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Method of payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_created_timestamp": {"name": "parent_created_timestamp", "description": "Created on timestamp of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_kind": {"name": "parent_kind", "description": "Kind of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_amount": {"name": "parent_amount", "description": "Amount of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_status": {"name": "parent_status", "description": "Status of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "Timestamp when the authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.0460987, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__transactions\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith transactions as (\n select *\n from {{ var('shopify_gql_transaction') }} \n\n), tender_transactions as (\n\n select *\n from {{ var('shopify_gql_tender_transaction') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__order') }}\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount_shop as parent_amount,\n parent_transactions.status as parent_status,\n orders.location_id,\n orders.source_name \n\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n left join orders\n on transactions.order_id = orders.order_id\n and transactions.source_relation = orders.source_relation\n\n), exchange_rate as (\n\n select\n *,\n {# QUESTION/ISSUE: Cannot confirm if receipt looks the same in GraphQL #}\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount_shop as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.json_parse", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction", "model.shopify_source.stg_shopify_gql__tender_transaction", "model.shopify.int_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__transactions.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\" \n\n), tender_transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount_shop as parent_amount,\n parent_transactions.status as parent_status,\n orders.location_id,\n orders.source_name \n\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n left join orders\n on transactions.order_id = orders.order_id\n and transactions.source_relation = orders.source_relation\n\n), exchange_rate as (\n\n select\n *,\n \n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) as exchange_rate,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) * amount_shop as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__customer_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_cohorts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_cohorts.sql", "original_file_path": "models/graphql/shopify_gql__customer_cohorts.sql", "unique_id": "model.shopify.shopify_gql__customer_cohorts", "fqn": ["shopify", "graphql", "shopify_gql__customer_cohorts"], "alias": "shopify_gql__customer_cohorts", "checksum": {"name": "sha256", "checksum": "ee60abfcf8dbc62b9076eba78f3ae9049684e928f2bb727d820ae9bff594820c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "created_at": 1754505367.9517624, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'),\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'customer_id'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify_gql__customers') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify_gql__customers", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customers", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__customers\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n customer_id\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify_gql__discounts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__discounts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__discounts.sql", "original_file_path": "models/graphql/shopify_gql__discounts.sql", "unique_id": "model.shopify.shopify_gql__discounts", "fqn": ["shopify", "graphql", "shopify_gql__discounts"], "alias": "shopify_gql__discounts", "checksum": {"name": "sha256", "checksum": "7a569223e2c4c3386f19482d1460516239b38fe1ff56f7c435ad56adcbe8a5e3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The case-insensitive discount code that customers use at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether the discount can be used only once per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "Number of times the discount has been used (asynchronously updated).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "Number of unique redeem codes associated with the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether `codes_count` is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "Timestamp when the discount ends or expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "Timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "Current status of the discount (e.g. 'active', 'expired', 'scheduled').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount\u2019s display name in the Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to 'all' or 'entitled' items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "How the discount value is interpreted (e.g., 'percentage', 'fixed_amount').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_discount_amount": {"name": "total_order_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off of orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_discount_amount": {"name": "total_abandoned_checkout_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_line_items_price": {"name": "total_order_line_items_price", "description": "Total monetary amount (in shop currency) of line items for orders that have used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_shipping_cost": {"name": "total_order_shipping_cost", "description": "Total shipping costs for orders that used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_refund_amount": {"name": "total_order_refund_amount", "description": "Total refunded amount (in shop currency) for orders that used this discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer emails who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_discount_amount": {"name": "avg_order_discount_amount", "description": "Average amount (in shop currency) of discount taken off orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "count_orders": {"name": "count_orders", "description": "Count of orders in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customers": {"name": "count_abandoned_checkout_customers", "description": "Distinct count of customers who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customer_emails": {"name": "count_abandoned_checkout_customer_emails", "description": "Distinct count of customer emails who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.082826, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__discounts\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith discounts_enriched as (\n\n select *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as unique_key\n from {{ ref('int_shopify_gql__discount_code_enriched')}}\n),\n\norders_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__discounts_order_aggregates')}}\n),\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\nabandoned_checkouts_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__discounts_abandoned_checkouts')}}\n),\n{% endif %}\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n {% endif %} \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n {% endif %}\n)\n\nselect * \nfrom aggregates_joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__discount_code_enriched", "package": null, "version": null}, {"name": "int_shopify_gql__discounts_order_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__discounts_abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__discounts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n), __dbt__cte__int_shopify_gql__discounts_order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), discounts_enriched as (\n\n select *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_code_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n from __dbt__cte__int_shopify_gql__discount_code_enriched\n),\n\norders_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__discounts_order_aggregates\n),\n\n\nabandoned_checkouts_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts\n),\n\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n \n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n \n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n \n)\n\nselect * \nfrom aggregates_joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__discount_code_enriched", "sql": " __dbt__cte__int_shopify_gql__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n)"}, {"id": "model.shopify.int_shopify_gql__discounts_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__discounts_order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}, {"id": "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "sql": " __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__inventory_levels": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__inventory_levels", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__inventory_levels.sql", "original_file_path": "models/graphql/shopify_gql__inventory_levels.sql", "unique_id": "model.shopify.shopify_gql__inventory_levels", "fqn": ["shopify", "graphql", "shopify_gql__inventory_levels"], "alias": "shopify_gql__inventory_levels", "checksum": {"name": "sha256", "checksum": "4445bf0d90a7fc6692d5de872684081dc6e76bd29a80094451a7b855651b8cba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of inventory items (which have a 1:1 relationship with product variants) and locations. \nInventory Level = Inventory item @ a Location.\n", "columns": {"inventory_level_id": {"name": "inventory_level_id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The name of the country where the inventory level is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_item_deleted": {"name": "is_inventory_item_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "(DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_created_at": {"name": "inventory_item_created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_updated_at": {"name": "inventory_item_updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_location_deleted": {"name": "is_location_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_location_active": {"name": "is_location_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_created_at": {"name": "location_created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy_location": {"name": "is_legacy_location", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_name": {"name": "location_name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_updated_at": {"name": "location_updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_media_id": {"name": "variant_media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_variant_taxable": {"name": "is_variant_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_orders": {"name": "count_distinct_orders", "description": "The number of distinct orders placed from this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customers": {"name": "count_distinct_customers", "description": "The number of distinct customers (based on customer_id) that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customer_emails": {"name": "count_distinct_customer_emails", "description": "The number of distinct customer emails that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timetamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "The timestamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_refunds": {"name": "subtotal_sold_refunds", "description": "The monetary amount (in shop currency) of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_refunds": {"name": "quantity_sold_refunds", "description": "The quantity of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_subtotal_sold": {"name": "net_subtotal_sold", "description": "Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_quantity_sold": {"name": "net_quantity_sold", "description": "Net quantity sold from this inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_pending": {"name": "count_fulfillment_pending", "description": "Count of currently pending distinct fulfillments for this inventory level. \"Pending\" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_open": {"name": "count_fulfillment_open", "description": "Count of currently open distinct fulfillments for this inventory level. \"Open\" = The fulfillment has been acknowledged by the service and is in processing.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_success": {"name": "count_fulfillment_success", "description": "Count of successful distinct fulfillments for this inventory level. \"Success\" = The fulfillment was successful.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_cancelled": {"name": "count_fulfillment_cancelled", "description": "Count of cancelled distinct fulfillments for this inventory level. \"Cancelled\" = The fulfillment was cancelled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_error": {"name": "count_fulfillment_error", "description": "Count of distinct fulfillments for this inventory level that encountered an error. \"Error\" = There was an error with the fulfillment request.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of distinct fulfillments for this inventory level that failed. \"Failure\" = The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "available_quantity": {"name": "available_quantity", "description": "The available quantity that a merchant can sell, determined by coalescing the `quantity` where inventory_state_name = 'available' from `stg_shopify_gql__inventory_quantity`and `available_quantity` from the deprecated `stg_shopify_gql__inventory_level`. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "incoming_quantity": {"name": "incoming_quantity", "description": "The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "on_hand_quantity": {"name": "on_hand_quantity", "description": "The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "committed_quantity": {"name": "committed_quantity", "description": "The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reserved_quantity": {"name": "reserved_quantity", "description": "The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "damaged_quantity": {"name": "damaged_quantity", "description": "The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "safety_stock_quantity": {"name": "safety_stock_quantity", "description": "The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quality_control_quantity": {"name": "quality_control_quantity", "description": "The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.069594, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith inventory_level as (\n\n select *\n from {{ var('shopify_gql_inventory_level') }}\n), \n\ninventory_item as (\n\n select *\n from {{ var('shopify_gql_inventory_item') }}\n),\n\ninventory_quantity as (\n\n select *\n from {{ var('shopify_gql_inventory_quantity') }}\n),\n\nlocation as (\n\n select *\n from {{ var('shopify_gql_location') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n),\n\nproduct as (\n\n select *\n from {{ var('shopify_gql_product') }}\n),\n\ninventory_level_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__inventory_level_aggregates') }}\n),\n\n{% if var('shopify_gql_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_gql_product_variant_media') }}\n),\n{% endif %}\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%}\n {% for inventory_state in inventory_states -%}\n , sum(case when lower(inventory_state_name) = {{ \"'\" ~ inventory_state|lower ~ \"'\" }}\n then inventory_quantity.quantity end) as {{ inventory_state }}_quantity\n {% endfor -%}\n\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.country_name,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n product_variant_media.media_id as variant_media_id,\n {% endif %}\n\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }}\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n {% endif %}\n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n\n {% for inventory_state in inventory_states -%}\n , inventory_quantity_aggregated.{{ inventory_state }}_quantity\n {% endfor -%}\n\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}, {"name": "stg_shopify_gql__location", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "int_shopify_gql__inventory_level_aggregates", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level", "model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__inventory_quantity", "model.shopify_source.stg_shopify_gql__location", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product", "model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__inventory_levels.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify_gql__inventory_level_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), inventory_level as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\n), \n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\n),\n\ninventory_quantity as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\n),\n\nlocation as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n),\n\nproduct as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n),\n\ninventory_level_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__inventory_level_aggregates\n),\n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\n),\n\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n , sum(case when lower(inventory_state_name) = 'incoming'\n then inventory_quantity.quantity end) as incoming_quantity\n , sum(case when lower(inventory_state_name) = 'on_hand'\n then inventory_quantity.quantity end) as on_hand_quantity\n , sum(case when lower(inventory_state_name) = 'available'\n then inventory_quantity.quantity end) as available_quantity\n , sum(case when lower(inventory_state_name) = 'committed'\n then inventory_quantity.quantity end) as committed_quantity\n , sum(case when lower(inventory_state_name) = 'reserved'\n then inventory_quantity.quantity end) as reserved_quantity\n , sum(case when lower(inventory_state_name) = 'damaged'\n then inventory_quantity.quantity end) as damaged_quantity\n , sum(case when lower(inventory_state_name) = 'safety_stock'\n then inventory_quantity.quantity end) as safety_stock_quantity\n , sum(case when lower(inventory_state_name) = 'quality_control'\n then inventory_quantity.quantity end) as quality_control_quantity\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.country_name,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n\n \n product_variant_media.media_id as variant_media_id,\n \n\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n \n\n\n\n\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n \n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n \n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n \n , coalesce(inventory_level_aggregated.count_fulfillment_pending, 0) as count_fulfillment_pending\n \n , coalesce(inventory_level_aggregated.count_fulfillment_open, 0) as count_fulfillment_open\n \n , coalesce(inventory_level_aggregated.count_fulfillment_success, 0) as count_fulfillment_success\n \n , coalesce(inventory_level_aggregated.count_fulfillment_cancelled, 0) as count_fulfillment_cancelled\n \n , coalesce(inventory_level_aggregated.count_fulfillment_error, 0) as count_fulfillment_error\n \n , coalesce(inventory_level_aggregated.count_fulfillment_failure, 0) as count_fulfillment_failure\n \n\n , inventory_quantity_aggregated.incoming_quantity\n , inventory_quantity_aggregated.on_hand_quantity\n , inventory_quantity_aggregated.available_quantity\n , inventory_quantity_aggregated.committed_quantity\n , inventory_quantity_aggregated.reserved_quantity\n , inventory_quantity_aggregated.damaged_quantity\n , inventory_quantity_aggregated.safety_stock_quantity\n , inventory_quantity_aggregated.quality_control_quantity\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify_gql__inventory_level_aggregates", "sql": " __dbt__cte__int_shopify_gql__inventory_level_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "location_id"], "time_spine": null}, "model.shopify.shopify_gql__customer_emails": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_emails", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_emails.sql", "original_file_path": "models/graphql/shopify_gql__customer_emails.sql", "unique_id": "model.shopify.shopify_gql__customer_emails", "fqn": ["shopify", "graphql", "shopify_gql__customer_emails"], "alias": "shopify_gql__customer_emails", "checksum": {"name": "sha256", "checksum": "af89662d410ca87ac66c148c1f5f7e4194cec7c47a6939591c5bc3b2bc113825"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer email in Shopify.", "columns": {"last_fivetran_synced": {"name": "last_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_ids": {"name": "customer_ids", "description": "Comma-separated list of customer IDs associated with the email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone_numbers": {"name": "phone_numbers", "description": "Comma-separated list of phone numbers associated with this email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_updated_at": {"name": "last_updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money that the customer has spent on orders across their order history (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_account_created_at": {"name": "first_account_created_at", "description": "Timestamp of when the first account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_account_created_at": {"name": "last_account_created_at", "description": "Timestamp of when the last account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.0086029, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customer_emails as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify_gql__customer_email_rollup'), except=[\"orders_count\", \"total_spent\", \"unique_key\"]) }}\n from {{ ref('int_shopify_gql__customer_email_rollup') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__emails_order_aggregates' )}}\n where email is not null\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ ref('int_shopify_gql__abandoned_checkout' )}}\n where email is not null\n group by 1,2\n{% endif %}\n\n), joined as (\n\n select \n customer_emails.*,\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify_gql__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify_gql__emails_order_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star"], "nodes": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.int_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_emails.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__emails_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), customer_emails as (\n\n select \n \"email\",\n \"source_relation\",\n \"customer_ids\",\n \"phone_numbers\",\n \"customer_tags\",\n \"first_account_created_at\",\n \"last_account_created_at\",\n \"last_updated_at\",\n \"marketing_consent_updated_at\",\n \"last_fivetran_synced\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"first_name\",\n \"last_name\",\n \"account_state\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"default_address_id\"\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer_email_rollup\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__emails_order_aggregates\n where email is not null\n\n\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"\n where email is not null\n group by 1,2\n\n\n), joined as (\n\n select \n customer_emails.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n \n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__emails_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__emails_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.shopify_gql__daily_shop": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__daily_shop", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__daily_shop.sql", "original_file_path": "models/graphql/shopify_gql__daily_shop.sql", "unique_id": "model.shopify.shopify_gql__daily_shop", "fqn": ["shopify", "graphql", "shopify_gql__daily_shop"], "alias": "shopify_gql__daily_shop", "checksum": {"name": "sha256", "checksum": "cab8dd258f8ec32221ccbf94b62a452a5070fc9714d799c939ee0fa6c48f9a5e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a day in your Shop, enriched with a suite of metrics.\n", "columns": {"date_day": {"name": "date_day", "description": "Day for which the shop activity is being measured.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders": {"name": "count_orders", "description": "Count of the distinct orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_line_items": {"name": "count_line_items", "description": "Count of the line items included in orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer email addresses who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "Average adjusted total per order placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount (in shop currency) applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to adjustments (in shop currency) on the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of the discount allocated to this day's orders in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied by customers on orders for this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_locations_ordered_from": {"name": "count_locations_ordered_from", "description": "Distinct locations with orders placed against them on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_discounts": {"name": "count_orders_with_discounts", "description": "Count of orders in which a discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_refunds": {"name": "count_orders_with_refunds", "description": "Count of orders in which there was a refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "Timestamp of the first order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "Timestamp of the last order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_refunded": {"name": "quantity_refunded", "description": "The quantity of goods ORDERED on this day that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net": {"name": "quantity_net", "description": "Net quantity sold from this shop on this day. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants_sold": {"name": "count_variants_sold", "description": "Distinct product variants sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_products_sold": {"name": "count_products_sold", "description": "Distinct products sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_gift_cards_sold": {"name": "quantity_gift_cards_sold", "description": "Quantity of gift cards sold on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_requiring_shipping": {"name": "quantity_requiring_shipping", "description": "Quantity of goods sold on this day that require shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers_abandoned_checkout": {"name": "count_customers_abandoned_checkout", "description": "Count of distinct customers who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails_abandoned_checkout": {"name": "count_customer_emails_abandoned_checkout", "description": "Count of distinct customer emails who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_attempted_delivery": {"name": "count_fulfillment_attempted_delivery", "description": "Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delivered": {"name": "count_fulfillment_delivered", "description": "Count of successful distinct fulfillments successfully delivered on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_in_transit": {"name": "count_fulfillment_in_transit", "description": "Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_out_for_delivery": {"name": "count_fulfillment_out_for_delivery", "description": "Count of distinct fulfillments being delivered to their final destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_ready_for_pickup": {"name": "count_fulfillment_ready_for_pickup", "description": "Count of distinct fulfillments ready for pickup at a shipping depot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_printed": {"name": "count_fulfillment_label_printed", "description": "Count of distinct fulfillments for which a purchased shipping label has been printed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_purchased": {"name": "count_fulfillment_label_purchased", "description": "Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_confirmed": {"name": "count_fulfillment_confirmed", "description": "Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delayed": {"name": "count_fulfillment_delayed", "description": "Count of delayed distinct fulfillments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_line_item_count": {"name": "avg_line_item_count", "description": "Average line item count for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount": {"name": "avg_discount", "description": "Average total discount placed on orders on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_discount_amount": {"name": "avg_shipping_discount_amount", "description": "Average discount amount (in shop currency) allocated toward shipping on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_percentage_calc_discount_amount": {"name": "avg_percentage_calc_discount_amount", "description": "Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_fixed_amount_discount_amount": {"name": "avg_fixed_amount_discount_amount", "description": "Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_sold": {"name": "avg_quantity_sold", "description": "Average quantity sold per order on this day. Includes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_net": {"name": "avg_quantity_net", "description": "Average net quantity sold per order on this day. Excludes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.0964885, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__daily_shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith shop as (\n\n select *\n from {{ var('shopify_gql_shop') }}\n),\n\ncalendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from {{ ref('int_shopify_gql__daily_orders') }}\n),\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\ndaily_abandoned_checkouts as (\n\n select *\n from {{ ref('int_shopify_gql__daily_abandoned_checkouts') }}\n),\n{% endif %}\n\n{% if var('shopify_gql_using_fulfillment_event', false) %}\ndaily_fulfillment as (\n\n select *\n from {{ ref('int_shopify_gql__daily_fulfillment') }}\n),\n{% endif %}\n\nshop_calendar as (\n\n select\n cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n {% endif %}\n\n {% if var('shopify_gql_using_fulfillment_event', false) %}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%}\n , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n {% endif %}\n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n {% endif %}\n\n {% if var('shopify_gql_using_fulfillment_event', false) %}\n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n {% endif %}\n \n)\n\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "shopify__calendar", "package": null, "version": null}, {"name": "int_shopify_gql__daily_orders", "package": null, "version": null}, {"name": "int_shopify_gql__daily_abandoned_checkouts", "package": null, "version": null}, {"name": "int_shopify_gql__daily_fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify_gql__shop", "model.shopify.shopify__calendar", "model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__daily_fulfillment"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__daily_shop.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n), __dbt__cte__int_shopify_gql__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n), __dbt__cte__int_shopify_gql__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n), shop as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\n),\n\ncalendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('day', date_day) as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_orders\n),\n\n\ndaily_abandoned_checkouts as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_abandoned_checkouts\n),\n\n\n\ndaily_fulfillment as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_fulfillment\n),\n\n\nshop_calendar as (\n\n select\n cast(date_trunc('day', calendar.date_day) as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n \n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n \n\n \n \n , coalesce(count_fulfillment_attempted_delivery, 0) as count_fulfillment_attempted_delivery\n \n , coalesce(count_fulfillment_delayed, 0) as count_fulfillment_delayed\n \n , coalesce(count_fulfillment_delivered, 0) as count_fulfillment_delivered\n \n , coalesce(count_fulfillment_failure, 0) as count_fulfillment_failure\n \n , coalesce(count_fulfillment_in_transit, 0) as count_fulfillment_in_transit\n \n , coalesce(count_fulfillment_out_for_delivery, 0) as count_fulfillment_out_for_delivery\n \n , coalesce(count_fulfillment_ready_for_pickup, 0) as count_fulfillment_ready_for_pickup\n \n , coalesce(count_fulfillment_label_printed, 0) as count_fulfillment_label_printed\n \n , coalesce(count_fulfillment_label_purchased, 0) as count_fulfillment_label_purchased\n \n , coalesce(count_fulfillment_confirmed, 0) as count_fulfillment_confirmed\n \n \n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n \n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n \n\n \n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n \n \n)\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__daily_orders", "sql": " __dbt__cte__int_shopify_gql__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "sql": " __dbt__cte__int_shopify_gql__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n)"}, {"id": "model.shopify.int_shopify_gql__daily_fulfillment", "sql": " __dbt__cte__int_shopify_gql__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__products": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__products", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__products.sql", "original_file_path": "models/graphql/shopify_gql__products.sql", "unique_id": "model.shopify.shopify_gql__products", "fqn": ["shopify", "graphql", "shopify_gql__products"], "alias": "shopify_gql__products", "checksum": {"name": "sha256", "checksum": "2f676f8591456d8c9e51c9c86d2a748f05045aea58b9b9f9d470c5a5f09e0320"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a product. Hashed on 'product_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity_sold": {"name": "total_quantity_sold", "description": "Quantity of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (in shop currency) of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_net_refunds": {"name": "quantity_sold_net_refunds", "description": "Quantity of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_net_refunds": {"name": "subtotal_sold_net_refunds", "description": "Total amount (in shop currency) of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the product was first ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the product was most recently ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order_line": {"name": "avg_quantity_per_order_line", "description": "Average quantity per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_discount": {"name": "product_total_discount", "description": "Total discounts associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_discount_per_order_line": {"name": "product_avg_discount_per_order_line", "description": "Average discount per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_tax": {"name": "product_total_tax", "description": "Total taxes associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_tax_per_order_line": {"name": "product_avg_tax_per_order_line", "description": "Average taxes per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants": {"name": "count_variants", "description": "Count of product variants.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_product_media": {"name": "has_product_media", "description": "If the product has media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collections": {"name": "collections", "description": "Comma-separated list of collections associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tags": {"name": "tags", "description": "Comma-separated list of tags associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.016624, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__products\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith products as (\n\n select *\n from {{ ref('int_shopify_gql__products_with_aggregates') }}\n\n), product_order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__product_order_line_aggregates')}}\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__products_with_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__product_order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.int_shopify_gql__product_order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__products.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__product_order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), products as (\n\n select *\n from __dbt__cte__int_shopify_gql__products_with_aggregates\n\n), product_order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__product_order_line_aggregates\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__products_with_aggregates", "sql": " __dbt__cte__int_shopify_gql__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__product_order_line_aggregates", "sql": " __dbt__cte__int_shopify_gql__product_order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__orders": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__orders", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__orders.sql", "original_file_path": "models/graphql/shopify_gql__orders.sql", "unique_id": "model.shopify.shopify_gql__orders", "fqn": ["shopify", "graphql", "shopify_gql__orders"], "alias": "shopify_gql__orders", "checksum": {"name": "sha256", "checksum": "2ecbe0d27380045217fefb1d40c135d7557dd131145cb6c48ae86521585cd5e5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing an order. Hashed on 'order_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_amount": {"name": "total_discounts_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_amount": {"name": "total_discounts_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_currency_code": {"name": "total_discounts_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_currency_code": {"name": "total_discounts_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_amount": {"name": "total_line_items_price_shop_amount", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_amount": {"name": "total_line_items_price_pres_amount", "description": "The sum of all line item prices in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_currency_codes": {"name": "total_line_items_price_shop_currency_codes", "description": "The three-letter codes (ISO 4217 format) for the shop currency used to display the total line item price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_currency_codes": {"name": "total_line_items_price_pres_currency_codes", "description": "The three-letter codes (ISO 4217 format) for the presentment currency used to display the total line item price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count": {"name": "line_item_count", "description": "Number of line items included in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_order_seq_number": {"name": "customer_order_seq_number", "description": "The sequential number of the order as it relates to the customer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "new_vs_repeat": {"name": "new_vs_repeat", "description": "Whether the order was a new or repeat order for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_amount": {"name": "shipping_cost_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_amount": {"name": "shipping_cost_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_currency_code": {"name": "shipping_cost_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_currency_code": {"name": "shipping_cost_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to the adjustment on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_total_shipping_tax": {"name": "order_total_shipping_tax", "description": "Total shipping tax attributed to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_tags": {"name": "order_tags", "description": "List of tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number_of_fulfillments": {"name": "number_of_fulfillments", "description": "Total fulfillments for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_services": {"name": "fulfillment_services", "description": "List of fulfillment services for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_companies": {"name": "tracking_companies", "description": "List of tracking companies for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "List of tracking numbers for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_amount": {"name": "total_tip_received_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_amount": {"name": "total_tip_received_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_currency_code": {"name": "total_tip_received_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_currency_code": {"name": "total_tip_received_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied on the order", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505367.9926808, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__orders\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ ref('int_shopify_gql__order') }}\n\n), order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), fulfillments as (\n\n select *\n from {{ ref('int_shopify_gql__order_fulfillment_aggregates') }}\n \n), order_adjustments as (\n\n select *\n from {{ ref('int_shopify_gql__order_adjustment') }}\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount_shop) as order_adjustment_amount,\n sum(tax_amount_shop) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from {{ ref('int_shopify_gql__order_discount_code') }}\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then value_amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then value_amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then value_amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_tags\n \n from {{ var('shopify_gql_order_tag') }}\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n (orders.total_price_shop_amount\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n order_lines.total_line_items_price_pres_amount,\n order_lines.total_line_items_price_shop_amount,\n order_lines.total_line_items_price_pres_currency_codes,\n order_lines.total_line_items_price_shop_currency_codes,\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__order_fulfillment_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__order_adjustment", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}, {"name": "int_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.shopify.shopify_partition_by_cols"], "nodes": ["model.shopify.int_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.int_shopify_gql__order_discount_code", "model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__orders.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_fulfillment_aggregates as (\n\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), fulfillments as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_fulfillment_aggregates\n \n), order_adjustments as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_adjustment\"\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount_shop) as order_adjustment_amount,\n sum(tax_amount_shop) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_discount_code\"\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then value_amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then value_amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then value_amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n (orders.total_price_shop_amount\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n order_lines.total_line_items_price_pres_amount,\n order_lines.total_line_items_price_shop_amount,\n order_lines.total_line_items_price_pres_currency_codes,\n order_lines.total_line_items_price_shop_currency_codes,\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by \n\n\n customer_id\n\n\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_fulfillment_aggregates as (\n\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.int_shopify_gql__discount_code_enriched": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discount_code_enriched", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "unique_id": "model.shopify.int_shopify_gql__discount_code_enriched", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discount_code_enriched"], "alias": "int_shopify_gql__discount_code_enriched", "checksum": {"name": "sha256", "checksum": "d268ffc342662037c84c650aab638ba29d2e2136da8c908bc04508c9a7ddc129"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.0123038, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith discount_redeem_codes as (\n \n select *\n from {{ var('shopify_gql_discount_redeem_code') }}\n),\n\ndiscount_applications as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_basic') }}\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_bxgy') }}\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_free_shipping') }}\n\n {% if var('shopify_gql_using_discount_code_app', False) %}\n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_app') }}\n {% endif %}\n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code", "model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__discount_code_basic", "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "compiled": true, "compiled_code": "\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__products_with_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__products_with_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__products_with_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__products_with_aggregates"], "alias": "int_shopify_gql__products_with_aggregates", "checksum": {"name": "sha256", "checksum": "e193bda9d00349acc767910a46f163e2c0cbf21e745ac7e7268ab3a8429e3cac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.0252645, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith products as (\n\n select *\n from {{ var('shopify_gql_product') }}\n), \n\ncollection_product as (\n\n select *\n from {{ var('shopify_gql_collection_product') }}\n),\n\ncollection as (\n\n select *\n from {{ ref('int_shopify_gql__collection') }}\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from {{ var('shopify_gql_product_tag') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n), \n\nproduct_media as (\n\n select *\n from {{ var('shopify_gql_product_media') }}\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter=\"', '\") }} as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='value', delimiter=\"', '\") }} as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_product", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tag", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__collection_product", "model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__product_tag", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customers_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customers_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__customers_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__customers_order_aggregates"], "alias": "int_shopify_gql__customers_order_aggregates", "checksum": {"name": "sha256", "checksum": "d0a702cbdb5b6a1fb0b18326465045024d5cf44d97d55a324cb07c68f6927844"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.0382025, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify_gql__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_orders": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_orders", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_orders.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_orders.sql", "unique_id": "model.shopify.int_shopify_gql__daily_orders", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_orders"], "alias": "int_shopify_gql__daily_orders", "checksum": {"name": "sha256", "checksum": "65a52e078d07bc36095bbfe50d4c57f831d112c3229bd68887265843aaf50be4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.0467684, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from {{ ref('shopify_gql__order_lines') }}\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}, {"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.shopify_gql__orders", "model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_orders.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__emails_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__emails_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__emails_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__emails_order_aggregates"], "alias": "int_shopify_gql__emails_order_aggregates", "checksum": {"name": "sha256", "checksum": "46a6101b635fbaac9e4c4f48883e0c13893e9a0ea161d2e182bb07a5a8c5bf81"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.057061, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n\n), order_aggregates as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify_gql__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from {{ var('shopify_gql_customer') }}\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "shopify_gql__transactions", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_shipping_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_shipping_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__order_shipping_aggregates"], "alias": "int_shopify_gql__order_shipping_aggregates", "checksum": {"name": "sha256", "checksum": "26bcfed5649b9547dd26cec0717b663322f2a11fe33a1018bba98b4a41ec0dce"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.0664005, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from {{ var('shopify_gql_order_shipping_line') }}\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from {{ var('shopify_gql_order_shipping_tax_line') }}\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line", "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_fulfillment_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_fulfillment_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__order_fulfillment_aggregates"], "alias": "int_shopify_gql__order_fulfillment_aggregates", "checksum": {"name": "sha256", "checksum": "eab4b050977a64c32a911238f62cd031e55c7fdf4d70257621648e0100ef3bb6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.0753753, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith fulfillment as (\n\n select *\n from {{ var('shopify_gql_fulfillment') }}\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n{% if var('shopify_gql_using_fulfillment_tracking_info', False) %}\nfulfillment_tracking_info as (\n\n select *\n from {{ var('shopify_gql_fulfillment_tracking_info') }}\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_number as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_url as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_urls,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_company as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment.service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n{% else %}\nfinal as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n count_fulfillments.number_of_fulfillments,\n max(cast(null as {{ dbt.type_string() }})) as tracking_numbers,\n max(cast(null as {{ dbt.type_string() }})) as tracking_urls,\n max(cast(null as {{ dbt.type_string() }})) as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment.service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services\n \n from fulfillment\n left join count_fulfillments\n on fulfillment.order_id = count_fulfillments.order_id\n and fulfillment.source_relation = count_fulfillments.source_relation\n group by 1,2,3\n)\n{% endif %}\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__product_order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__product_order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__product_order_line_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__product_order_line_aggregates"], "alias": "int_shopify_gql__product_order_line_aggregates", "checksum": {"name": "sha256", "checksum": "920e1fc150f4213e06a67d88602663cef81d03069da2be99d221bea87c439370"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.090725, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('shopify_gql__order_lines') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders')}}\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__orders_order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__orders_order_line_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__orders_order_line_aggregates"], "alias": "int_shopify_gql__orders_order_line_aggregates", "checksum": {"name": "sha256", "checksum": "d4920955a26e1fe0a86640c97e6cf61a18199255c10350c485aad97d1706beab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505364.0995219, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"", "raw_code": "{{ config(\n materialized='table', \n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')\n) }}\n\nwith order_line as (\n\n select *\n from {{ var('shopify_gql_order_line') }}\n\n), tax as (\n\n select\n *\n from {{ var('shopify_gql_tax_line') }}\n\n), shipping as (\n\n select\n *\n from {{ ref('int_shopify_gql__order_shipping_aggregates')}}\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(coalesce(order_line.quantity, 0)) as order_total_quantity,\n sum(coalesce(tax_aggregates.price, 0)) as order_total_tax,\n sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount,\n sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount,\n sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount,\n {{ fivetran_utils.string_agg(\"distinct cast(order_line.price_pres_currency_code as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as total_line_items_price_pres_currency_codes,\n {{ fivetran_utils.string_agg(\"distinct cast(order_line.price_shop_currency_code as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as total_line_items_price_shop_currency_codes\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n order_line_aggregates.total_line_items_price_pres_amount,\n order_line_aggregates.total_line_items_price_shop_amount,\n order_line_aggregates.total_line_items_price_pres_currency_codes,\n order_line_aggregates.total_line_items_price_shop_currency_codes,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line", "package": null, "version": null}, {"name": "int_shopify_gql__order_shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line", "model.shopify.int_shopify_gql__order_shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), order_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n\n), tax as (\n\n select\n *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n\n), shipping as (\n\n select\n *\n from __dbt__cte__int_shopify_gql__order_shipping_aggregates\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(coalesce(order_line.quantity, 0)) as order_total_quantity,\n sum(coalesce(tax_aggregates.price, 0)) as order_total_tax,\n sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount,\n sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount,\n sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount,\n \n string_agg(distinct cast(order_line.price_pres_currency_code as TEXT), ', ')\n\n as total_line_items_price_pres_currency_codes,\n \n string_agg(distinct cast(order_line.price_shop_currency_code as TEXT), ', ')\n\n as total_line_items_price_shop_currency_codes\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n order_line_aggregates.total_line_items_price_pres_amount,\n order_line_aggregates.total_line_items_price_shop_amount,\n order_line_aggregates.total_line_items_price_pres_currency_codes,\n order_line_aggregates.total_line_items_price_shop_currency_codes,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discounts_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discounts_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__discounts_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discounts_order_aggregates"], "alias": "int_shopify_gql__discounts_order_aggregates", "checksum": {"name": "sha256", "checksum": "28bcab684975ed061e765767dcc92ed6ca7a8c8f7235aee1d6c1ac349bae7799"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.1112921, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_discount_code as (\n\n select *\n from {{ ref('int_shopify_gql__order_discount_code') }}\n),\n\norders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__order_discount_code", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_fulfillment", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "unique_id": "model.shopify.int_shopify_gql__daily_fulfillment", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_fulfillment"], "alias": "int_shopify_gql__daily_fulfillment", "checksum": {"name": "sha256", "checksum": "6093ddf8463f9914ea1a6f6798a01d89e77af1f43f0ef6f475ceb741b0824740"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.1189463, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', false) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith fulfillment_event as (\n\n select *\n from {{ var('shopify_gql_fulfillment_event') }}\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day\n\n {# Possible status values: https://shopify.dev/docs/api/admin-graphql/latest/objects/fulfillmentevent#field-FulfillmentEvent.fields.status #}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%}\n , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customer_email_rollup": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customer_email_rollup", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "unique_id": "model.shopify.int_shopify_gql__customer_email_rollup", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__customer_email_rollup"], "alias": "int_shopify_gql__customer_email_rollup", "checksum": {"name": "sha256", "checksum": "64c2801aa55efb47b328ad86e87224082a02e6ca3e915d5820e53f09078cd22a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.128778, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__customer_email_rollup\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by created_timestamp desc) \n as customer_index\n\n from {{ ref('int_shopify_gql__customer') }}\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from {{ var('shopify_gql_customer_tag' )}}\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n {{ fivetran_utils.string_agg(\"distinct cast(customers.customer_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_ids,\n {{ fivetran_utils.string_agg(\"distinct cast(customers.phone as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as phone_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(customer_tags.value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n {{ fivetran_utils.max_bool(\"case when customers.customer_index = 1 then customers.is_tax_exempt else null end\") }} as is_tax_exempt, -- since this changes every year\n {{ fivetran_utils.max_bool(\"customers.is_verified_email\") }} as is_verified_email\n\n -- for all other fields, just take the latest value\n {% set cols = adapter.get_columns_in_relation(ref('int_shopify_gql__customer')) %}\n {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', \n 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp',\n 'is_tax_exempt', 'is_verified_email'] %}\n {% for col in cols %}\n {% if col.column|lower not in except_cols %}\n , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }}\n {% endif %}\n {% endfor %}\n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_partition_by_cols", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.max_bool"], "nodes": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by \n\n\n email\n\n\n order by created_timestamp desc) \n as customer_index\n\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n \n string_agg(distinct cast(customers.customer_id as TEXT), ', ')\n\n as customer_ids,\n \n string_agg(distinct cast(customers.phone as TEXT), ', ')\n\n as phone_numbers,\n \n string_agg(distinct cast(customer_tags.value as TEXT), ', ')\n\n as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n \n\n bool_or( case when customers.customer_index = 1 then customers.is_tax_exempt else null end )\n\n as is_tax_exempt, -- since this changes every year\n \n\n bool_or( customers.is_verified_email )\n\n as is_verified_email\n\n -- for all other fields, just take the latest value\n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.first_name else null end) as first_name\n \n \n \n , max(case when customers.customer_index = 1 then customers.last_name else null end) as last_name\n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.account_state else null end) as account_state\n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.note else null end) as note\n \n \n \n , max(case when customers.customer_index = 1 then customers.currency else null end) as currency\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_consent_state else null end) as marketing_consent_state\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_opt_in_level else null end) as marketing_opt_in_level\n \n \n \n \n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.unique_key else null end) as unique_key\n \n \n \n , max(case when customers.customer_index = 1 then customers.default_address_id else null end) as default_address_id\n \n \n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__orders_order_refunds": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_refunds", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "unique_id": "model.shopify.int_shopify_gql__orders_order_refunds", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__orders_order_refunds"], "alias": "int_shopify_gql__orders_order_refunds", "checksum": {"name": "sha256", "checksum": "5c76fbeaab2dd2bff9d13131a4e4fb19a7716c825c70436c6c42ff0f8f1f6234"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.146446, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith refunds as (\n\n select *\n from {{ var('shopify_gql_refund') }}\n\n), order_line_refunds as (\n\n select *\n from {{ var('shopify_gql_order_line_refund') }}\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__refund", "model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "compiled": true, "compiled_code": "\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discounts_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discounts_abandoned_checkouts"], "alias": "int_shopify_gql__discounts_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "ab9f8f0b086697ca51e0f7ffc6005ff2797126920b53eb844a2e5e9ed34f5da7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.1551018, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ ref('int_shopify_gql__abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from {{ var('shopify_gql_abandoned_checkout_discount_code') }}\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_abandoned_checkouts"], "alias": "int_shopify_gql__daily_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "0afd0194490f924273b15c246f6827d0a5fe61b0a084cbaf0673a36995d63d7b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.1644013, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ ref('int_shopify_gql__abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.int_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__inventory_level_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__inventory_level_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__inventory_level_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__inventory_level_aggregates"], "alias": "int_shopify_gql__inventory_level_aggregates", "checksum": {"name": "sha256", "checksum": "e25fd92bb71fc3846d1c2e59cf59c2bbdb36b4d99ba571160394a38b4854625a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754505364.1726582, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__order_line') }}\n),\n\nfulfillment as (\n\n select *\n from {{ var('shopify_gql_fulfillment') }}\n),\n\norders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n {# open and pending are set to be deprecated in the future by Shopify #}\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n {{ dbt_utils.group_by(n=3) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}, {"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify.int_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_refunds"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_adjustment", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "unique_id": "model.shopify.int_shopify_gql__order_adjustment", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_adjustment"], "alias": "int_shopify_gql__order_adjustment", "checksum": {"name": "sha256", "checksum": "566b80b0396e349d2332bee356ba5a1d82377b770a0ff4905c5e8d0ab17ddcb8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.1843262, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_adjustment as (\n\n select *\n from {{ var('shopify_gql_order_adjustment') }}\n),\n\nrefund as (\n\n select *\n from {{ var('shopify_gql_refund') }}\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}, {"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment", "model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "compiled": true, "compiled_code": "\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_discount_code", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "unique_id": "model.shopify.int_shopify_gql__order_discount_code", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_discount_code"], "alias": "int_shopify_gql__order_discount_code", "checksum": {"name": "sha256", "checksum": "2c39fac4f334420b741ddf5b87e22b5ace34b1e5183fde13fefd3564e4a85353"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.192971, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_discount_code as (\n\n select *\n from {{ var('shopify_gql_order_discount_code') }}\n),\n\ndiscount_application as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code", "model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order.sql", "unique_id": "model.shopify.int_shopify_gql__order", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order"], "alias": "int_shopify_gql__order", "checksum": {"name": "sha256", "checksum": "d39c46fbe7a2d41c1b096e78f78ba70cf0d6930f622f93b2424f3c03517cf0ef"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.2015407, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select * \n from {{ var('shopify_gql_order') }}\n)\n\n{% if var('shopify_gql_using_customer_visit', True) %}\n, customer_visit as (\n \n select * \n from {{ var('shopify_gql_customer_visit') }}\n),\n\njoined as (\n\n select \n orders.*,\n customer_visit.referring_site,\n customer_visit.landing_page as landing_site_base_url\n from orders\n left join customer_visit\n on orders.order_id = customer_visit.order_id\n and orders.source_relation = customer_visit.source_relation\n)\n\nselect *\nfrom joined\n\n{% else %}\n\nselect \n orders.*,\n cast(null as {{ dbt.type_string() }}) as referring_site,\n cast(null as {{ dbt.type_string() }}) as landing_site_base_url\nfrom orders\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n)\n\n\n, customer_visit as (\n \n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\n),\n\njoined as (\n\n select \n orders.*,\n customer_visit.referring_site,\n customer_visit.landing_page as landing_site_base_url\n from orders\n left join customer_visit\n on orders.order_id = customer_visit.order_id\n and orders.source_relation = customer_visit.source_relation\n)\n\nselect *\nfrom joined\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__product_variant", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__product_variant.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__product_variant.sql", "unique_id": "model.shopify.int_shopify_gql__product_variant", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__product_variant"], "alias": "int_shopify_gql__product_variant", "checksum": {"name": "sha256", "checksum": "9fd96455970237120c405b947004cecc05bd570910786e801daa7df3cf823a5b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.2111673, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith product_variants as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n),\n\ninventory_item as (\n\n select *\n from {{ var('shopify_gql_inventory_item') }}\n),\n\njoined as (\n\n select\n product_variants.*,\n inventory_item.measurement_weight_value as weight,\n inventory_item.measurement_weight_unit as weight_unit\n\n from product_variants\n left join inventory_item\n on product_variants.inventory_item_id = inventory_item.inventory_item_id\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n),\n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\n),\n\njoined as (\n\n select\n product_variants.*,\n inventory_item.measurement_weight_value as weight,\n inventory_item.measurement_weight_unit as weight_unit\n\n from product_variants\n left join inventory_item\n on product_variants.inventory_item_id = inventory_item.inventory_item_id\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__collection": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__collection", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__collection.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__collection.sql", "unique_id": "model.shopify.int_shopify_gql__collection", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__collection"], "alias": "int_shopify_gql__collection", "checksum": {"name": "sha256", "checksum": "79c88599b5c946df080af1c74d71b27aed4f7771a481e1c5f675687ea792341a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.221243, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith collection as (\n\n select *\n from {{ var('shopify_gql_collection') }}\n)\n\n{% if var('shopify_gql_using_collection_rule', False) %}\n, collection_rule as (\n\n select *\n from {{ var('shopify_gql_collection_rule') }}\n),\n\nprep_collection_rule as (\n\n select \n collection_id,\n source_relation,\n '{\"column\":\"' || columns || '\",\"relation\":\"' || relation || '\",\"condition\":\"' || condition || '\"}' as rule\n from collection_rule\n),\n\nagg_collection_rule as (\n \n select \n collection_id,\n source_relation,\n '[' || {{ fivetran_utils.string_agg(\"rule\", \"','\") }} || ']' as rules\n from prep_collection_rule\n group by 1,2\n),\n\njoined as (\n\n select \n collection.*,\n agg_collection_rule.rules\n from collection\n left join agg_collection_rule\n on collection.collection_id = agg_collection_rule.collection_id\n and collection.source_relation = agg_collection_rule.source_relation\n)\n\nselect *\nfrom joined\n\n{% else %}\nselect \n collection.*,\n cast(null as {{ dbt.type_string() }}) as rules\nfrom collection\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__collection.sql", "compiled": true, "compiled_code": "\n\nwith collection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\n)\n\n\nselect \n collection.*,\n cast(null as TEXT) as rules\nfrom collection\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__abandoned_checkout", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "unique_id": "model.shopify.int_shopify_gql__abandoned_checkout", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__abandoned_checkout"], "alias": "int_shopify_gql__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "1fbb259948ecde6f3a26ef67f85419e23adb92a76099e8951574038b36f320eb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.2306714, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_gql_abandoned_checkout') }}\n),\n\ncustomer as (\n\n select *\n from {{ var('shopify_gql_customer') }}\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customer": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customer", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__customer.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__customer.sql", "unique_id": "model.shopify.int_shopify_gql__customer", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__customer"], "alias": "int_shopify_gql__customer", "checksum": {"name": "sha256", "checksum": "42669a857b1fdc53d88ee34544dfc078e52ceb729cfe1fe4fc47b48691288e07"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.2397711, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customer as (\n\n select *\n from {{ var('shopify_gql_customer') }}\n),\n\ncustomer_address as (\n\n select *\n from {{ var('shopify_gql_customer_address') }}\n),\n\ncustomer_default_address as (\n\n select *\n from customer_address\n where coalesce(is_default, false)\n),\n\njoined as (\n\n select \n customer.*,\n customer_default_address.customer_address_id as default_address_id\n {# QUESTION: maybe add other fields that are helpful (would be new)? #}\n \n from customer \n left join customer_default_address\n on customer_default_address.customer_id = customer.customer_id\n and customer_default_address.source_relation = customer.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__customer.sql", "compiled": true, "compiled_code": "\n\nwith customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\ncustomer_address as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\n),\n\ncustomer_default_address as (\n\n select *\n from customer_address\n where coalesce(is_default, false)\n),\n\njoined as (\n\n select \n customer.*,\n customer_default_address.customer_address_id as default_address_id\n \n \n from customer \n left join customer_default_address\n on customer_default_address.customer_id = customer.customer_id\n and customer_default_address.source_relation = customer.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_line": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_line", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_line.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_line.sql", "unique_id": "model.shopify.int_shopify_gql__order_line", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_line"], "alias": "int_shopify_gql__order_line", "checksum": {"name": "sha256", "checksum": "d31c98c59428343bb271372b984f57abf5a5c0ef5b2acc38050034d694a12bc2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505364.2484317, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_line as (\n \n select *\n from {{ var('shopify_gql_order_line') }}\n),\n\ntax_line as (\n\n select *\n from {{ var('shopify_gql_tax_line') }}\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n{% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\nfulfillment_order_line_item as (\n\n select *\n from {{ var('shopify_gql_fulfillment_order_line_item') }}\n),\n{% endif %}\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n {% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n {% else %}\n cast(null as {{ dbt.type_int() }}) as fulfillable_quantity,\n cast(null as {{ dbt.type_string() }}) as weight_unit,\n cast(null as {{ dbt.type_float() }}) as weight_value\n {% endif %}\n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n {% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line", "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_line.sql", "compiled": true, "compiled_code": "\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__product_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__product_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__product_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__product_metafields.sql", "unique_id": "model.shopify.shopify_gql__product_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__product_metafields"], "alias": "shopify_gql__product_metafields", "checksum": {"name": "sha256", "checksum": "e662128efd355a0a62e3fdd489bcec4cbec57e7f5630e356a1ce31cdbf150fa5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__product model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5214336, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__product_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify_gql__product\", \n reference_values = ['product'],\n id_column = \"product_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__product_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bc_brenbre'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bc_brenbre\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.product_id,\n \n source_table.handle,\n \n source_table.product_type,\n \n source_table.title,\n \n source_table.vendor,\n \n source_table.status,\n \n source_table.is_deleted,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.published_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bc_brenbre) as metafield_bea81c1795a612d8fc3a232b156467bc_brenbre\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42) as metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.product_id\n and lower(lookup_object.owner_resource) in ('product')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__collection_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__collection_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__collection_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__collection_metafields.sql", "unique_id": "model.shopify.shopify_gql__collection_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__collection_metafields"], "alias": "shopify_gql__collection_metafields", "checksum": {"name": "sha256", "checksum": "32b746ed89b86970bc65491e90337339d95f490f4b53efbad3c2d67b17c29056"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__collection model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.519958, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__collection_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__collection\", \n reference_values = ['collection'],\n id_column = \"collection_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__collection_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bd_gwhebwrb'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bd_gwhebwrb\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c3_wgewvevw'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c3_wgewvevw\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.collection_id,\n \n source_table.is_deleted,\n \n source_table.rule_logic,\n \n source_table.handle,\n \n source_table.sort_order,\n \n source_table.title,\n \n source_table.updated_at,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.rules\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bd_gwhebwrb) as metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c3_wgewvevw) as metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.collection_id\n and lower(lookup_object.owner_resource) in ('collection')\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__customer_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__customer_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__customer_metafields.sql", "unique_id": "model.shopify.shopify_gql__customer_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__customer_metafields"], "alias": "shopify_gql__customer_metafields", "checksum": {"name": "sha256", "checksum": "6baad0e1b580a1d84fbd7b945503df32990beafd0d64caa90296378d893291fb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__customer model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.520468, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__customer\", \n reference_values = ['customer'],\n id_column = \"customer_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__customer_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467be_bwrtbnwrj'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467be_bwrtbnwrj\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c4_brewbrewbre'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c4_brewbrewbre\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.first_name,\n \n source_table.last_name,\n \n source_table.orders_count,\n \n source_table.phone,\n \n source_table.account_state,\n \n source_table.is_tax_exempt,\n \n source_table.total_spent,\n \n source_table.is_verified_email,\n \n source_table.note,\n \n source_table.currency,\n \n source_table.marketing_consent_state,\n \n source_table.marketing_opt_in_level,\n \n source_table.marketing_consent_updated_at,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.default_address_id\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467be_bwrtbnwrj) as metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c4_brewbrewbre) as metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.customer_id\n and lower(lookup_object.owner_resource) in ('customer')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__shop_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__shop_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__shop_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__shop_metafields.sql", "unique_id": "model.shopify.shopify_gql__shop_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__shop_metafields"], "alias": "shopify_gql__shop_metafields", "checksum": {"name": "sha256", "checksum": "e4981591a733469551b3e4de1f177957b0575b0f2a7a2fd1a9c87926c9be0fad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__shop model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5223813, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__shop_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify_gql__shop\", \n reference_values = ['shop'],\n id_column = \"shop_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__shop_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c0_gwrgew'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c0_gwrgew\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.shop_id,\n \n source_table.name,\n \n source_table.is_deleted,\n \n source_table.address_1,\n \n source_table.address_2,\n \n source_table.city,\n \n source_table.province,\n \n source_table.province_code,\n \n source_table.country,\n \n source_table.country_code,\n \n source_table.country_name,\n \n source_table.zip,\n \n source_table.latitude,\n \n source_table.longitude,\n \n source_table.currency,\n \n source_table.enabled_presentment_currencies,\n \n source_table.customer_email,\n \n source_table.email,\n \n source_table.domain,\n \n source_table.phone,\n \n source_table.timezone_abbreviation,\n \n source_table.timezone_offset,\n \n source_table.timezone_offset_minutes,\n \n source_table.iana_timezone,\n \n source_table.primary_locale,\n \n source_table.weight_unit,\n \n source_table.myshopify_domain,\n \n source_table.shop_owner,\n \n source_table.has_shipping_taxes,\n \n source_table.has_taxes_included_in_price,\n \n source_table.has_storefront,\n \n source_table.has_checkout_api_supported,\n \n source_table.money_format,\n \n source_table.money_in_emails_format,\n \n source_table.money_with_currency_format,\n \n source_table.money_with_currency_in_emails_format,\n \n source_table.plan_display_name,\n \n source_table.is_password_enabled,\n \n source_table.is_setup_required,\n \n source_table.created_at,\n \n source_table.updated_at,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c0_gwrgew) as metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.shop_id\n and lower(lookup_object.owner_resource) in ('shop')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__order_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__order_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__order_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__order_metafields.sql", "unique_id": "model.shopify.shopify_gql__order_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__order_metafields"], "alias": "shopify_gql__order_metafields", "checksum": {"name": "sha256", "checksum": "9fac4f22b24cd29d081991b5d98aa549f4e86f07b07d203a5ff11c21b304b7a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__order model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.520943, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__order_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__order\", \n reference_values = ['order'],\n id_column = \"order_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}\n\n{# Does not contain total_line_items_price columns as these are calculated in shopify_gql_orders__order_line_aggregates in GraphQL #}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__order_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bf_htynetnbw'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bf_htynetnbw\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.order_id,\n \n source_table.user_id,\n \n source_table.total_discounts_pres_amount,\n \n source_table.total_discounts_pres_currency_code,\n \n source_table.total_discounts_shop_amount,\n \n source_table.total_discounts_shop_currency_code,\n \n source_table.total_price_pres_amount,\n \n source_table.total_price_pres_currency_code,\n \n source_table.total_price_shop_amount,\n \n source_table.total_price_shop_currency_code,\n \n source_table.total_tax_pres_amount,\n \n source_table.total_tax_pres_currency_code,\n \n source_table.total_tax_shop_amount,\n \n source_table.total_tax_shop_currency_code,\n \n source_table.source_name,\n \n source_table.subtotal_price_pres_amount,\n \n source_table.subtotal_price_pres_currency_code,\n \n source_table.subtotal_price_shop_amount,\n \n source_table.subtotal_price_shop_currency_code,\n \n source_table.has_taxes_included,\n \n source_table.total_weight,\n \n source_table.total_tip_received_pres_amount,\n \n source_table.total_tip_received_pres_currency_code,\n \n source_table.total_tip_received_shop_amount,\n \n source_table.total_tip_received_shop_currency_code,\n \n source_table.location_id,\n \n source_table.name,\n \n source_table.note,\n \n source_table.number,\n \n source_table.cancel_reason,\n \n source_table.created_timestamp,\n \n source_table.cancelled_timestamp,\n \n source_table.closed_timestamp,\n \n source_table.processed_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.currency,\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.financial_status,\n \n source_table.fulfillment_status,\n \n source_table.billing_address_address_1,\n \n source_table.billing_address_address_2,\n \n source_table.billing_address_city,\n \n source_table.billing_address_company,\n \n source_table.billing_address_country,\n \n source_table.billing_address_country_code,\n \n source_table.billing_address_first_name,\n \n source_table.billing_address_last_name,\n \n source_table.billing_address_latitude,\n \n source_table.billing_address_longitude,\n \n source_table.billing_address_name,\n \n source_table.billing_address_phone,\n \n source_table.billing_address_province,\n \n source_table.billing_address_province_code,\n \n source_table.billing_address_zip,\n \n source_table.browser_ip,\n \n source_table.shipping_cost_pres_amount,\n \n source_table.shipping_cost_pres_currency_code,\n \n source_table.shipping_cost_shop_amount,\n \n source_table.shipping_cost_shop_currency_code,\n \n source_table.shipping_address_address_1,\n \n source_table.shipping_address_address_2,\n \n source_table.shipping_address_city,\n \n source_table.shipping_address_company,\n \n source_table.shipping_address_country,\n \n source_table.shipping_address_country_code,\n \n source_table.shipping_address_first_name,\n \n source_table.shipping_address_last_name,\n \n source_table.shipping_address_latitude,\n \n source_table.shipping_address_longitude,\n \n source_table.shipping_address_name,\n \n source_table.shipping_address_phone,\n \n source_table.shipping_address_province,\n \n source_table.shipping_address_province_code,\n \n source_table.shipping_address_zip,\n \n source_table.app_id,\n \n source_table.customer_locale,\n \n source_table.order_status_url,\n \n source_table.presentment_currency,\n \n source_table.is_test_order,\n \n source_table.is_deleted,\n \n source_table.has_buyer_accepted_marketing,\n \n source_table.is_confirmed,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.referring_site,\n \n source_table.landing_site_base_url\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bf_htynetnbw) as metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe) as metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.order_id\n and lower(lookup_object.owner_resource) in ('order')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88\n)\n\nselect *\nfrom final\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__product_variant_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__product_variant_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__product_variant_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__product_variant_metafields.sql", "unique_id": "model.shopify.shopify_gql__product_variant_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__product_variant_metafields"], "alias": "shopify_gql__product_variant_metafields", "checksum": {"name": "sha256", "checksum": "78d300b3aa3591fe3640572e9da4b3d8deb530699a6526cbcc9eb6b629ef698b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__product_variant model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5218987, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__product_variant_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__product_variant\",\n reference_values = ['variant', 'productvariant'],\n id_column = \"variant_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__product_variant_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__line_item_enhanced": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__line_item_enhanced", "resource_type": "model", "package_name": "shopify", "path": "graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "original_file_path": "models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "unique_id": "model.shopify.shopify_gql__line_item_enhanced", "fqn": ["shopify", "graphql", "standardized_models", "shopify_gql__line_item_enhanced"], "alias": "shopify_gql__line_item_enhanced", "checksum": {"name": "sha256", "checksum": "397d1387f769ec2a75bd7c041e9c6fd40a46cd420f15904cd27c12ca712fcc84"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It\u2019s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details.", "columns": {"header_id": {"name": "header_id", "description": "Id of corresponding order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_id": {"name": "line_item_id", "description": "Order line item id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_index": {"name": "line_item_index", "description": "Unique index of each line item id for each order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "record_type": {"name": "record_type", "description": "header or line_item", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the order was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "header_status": {"name": "header_status", "description": "Status of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_type": {"name": "billing_type", "description": "NA for Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "Currency used in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "Product ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_name": {"name": "product_name", "description": "Product name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "Product type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_type": {"name": "transaction_type", "description": "Transaction type (Charge, Refund, etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of units of this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_amount": {"name": "unit_amount", "description": "Amount per unit, or the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_amount": {"name": "discount_amount", "description": "The discount amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "The tax amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_amount": {"name": "total_amount", "description": "Order total", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_id": {"name": "payment_id", "description": "Transaction ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Transaction gateway for Shopify ('gift card', 'shopify payments', etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method_id": {"name": "payment_method_id", "description": "Shopify does not have a particular payment_method_id, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_at": {"name": "payment_at", "description": "Transaction processed timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fee_amount": {"name": "fee_amount", "description": "The total shipping fee associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_amount": {"name": "refund_amount", "description": "Refund amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_id": {"name": "subscription_id", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_plan": {"name": "subscription_plan", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_started_at": {"name": "subscription_period_started_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_ended_at": {"name": "subscription_period_ended_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_status": {"name": "subscription_status", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "Customer associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_created_at": {"name": "customer_created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_level": {"name": "customer_level", "description": "Whether 'account' or 'customer'. For Shopify, the level is 'customer'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_name": {"name": "customer_name", "description": "Customer name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_company": {"name": "customer_company", "description": "Associated customer's company noted on the shipping address if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "Customer email", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_city": {"name": "customer_city", "description": "Customer's shipping address city", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_country": {"name": "customer_country", "description": "Customer's shipping address country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/standardized_models/shopify__standardized_models.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5247023, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__line_item_enhanced\"", "raw_code": "{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith line_items as (\n\n select * \n from {{ var('shopify_gql_order_line')}}\n\n), orders as ( \n\n select * \n from {{ var('shopify_gql_order')}}\n\n), product as (\n\n select *\n from {{ var('shopify_gql_product')}}\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n {{ fivetran_utils.string_agg(\"cast (transaction_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} AS transaction_id,\n {{ fivetran_utils.string_agg(\"cast (processed_timestamp as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as processed_timestamp,\n {{ fivetran_utils.string_agg('gateway', \"', '\") }} as gateway\n\n from {{ var('shopify_gql_transaction')}}\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount_shop) as total_order_refund_amount\n from {{ var('shopify_gql_transaction')}}\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal_shop_amount + total_tax_shop_amount) as total_refund_amount\n from {{ var('shopify_gql_order_line_refund')}}\n group by 1,2\n\n), customer as (\n\n select *\n from {{ var('shopify_gql_customer')}}\n\n), shipping as (\n\n select * \n from {{ ref('int_shopify_gql__order_shipping_aggregates')}}\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price_shop_amount as unit_amount,\n o.total_discounts_shop_amount as discount_amount,\n o.total_tax_shop_amount as tax_amount,\n (li.quantity * li.price_shop_amount) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as {{ dbt.type_string() }}) as subscription_id,\n cast(null as {{ dbt.type_string() }}) as subscription_plan,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at,\n cast(null as {{ dbt.type_string() }}) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n {{ dbt.concat([\"c.first_name\", \"''\", \"c.last_name\"]) }} as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id,\n cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as {{ dbt.type_numeric() }}) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as {{ dbt.type_numeric() }}) as quantity,\n cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,\n cast(null as {{ dbt.type_numeric() }}) as discount_amount,\n cast(null as {{ dbt.type_numeric() }}) as tax_amount,\n cast(total_amount as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as {{ dbt.type_numeric() }}) as fee_amount,\n cast(null as {{ dbt.type_numeric() }}) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as {{ dbt.type_numeric() }}) as line_item_id,\n cast(0 as {{ dbt.type_numeric() }}) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as {{ dbt.type_numeric() }}) as product_id,\n cast(null as {{ dbt.type_string() }}) as product_name,\n transaction_type,\n billing_type,\n cast(null as {{ dbt.type_string() }}) as product_type,\n cast(null as {{ dbt.type_numeric() }}) as quantity,\n cast(null as {{ dbt.type_numeric() }}) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__order_shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.dbt.type_timestamp", "macro.dbt.concat", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__transaction", "model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__customer", "model.shopify.int_shopify_gql__order_shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), line_items as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n\n), orders as ( \n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n \n string_agg(cast (transaction_id as TEXT), ', ')\n\n AS transaction_id,\n \n string_agg(cast (processed_timestamp as TEXT), ', ')\n\n as processed_timestamp,\n \n string_agg(gateway, ', ')\n\n as gateway\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount_shop) as total_order_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal_shop_amount + total_tax_shop_amount) as total_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n group by 1,2\n\n), customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n\n), shipping as (\n\n select * \n from __dbt__cte__int_shopify_gql__order_shipping_aggregates\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price_shop_amount as unit_amount,\n o.total_discounts_shop_amount as discount_amount,\n o.total_tax_shop_amount as tax_amount,\n (li.quantity * li.price_shop_amount) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as TEXT) as subscription_id,\n cast(null as TEXT) as subscription_plan,\n cast(null as timestamp) as subscription_period_started_at,\n cast(null as timestamp) as subscription_period_ended_at,\n cast(null as TEXT) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n c.first_name || '' || c.last_name as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as numeric(28,6)) as line_item_id,\n cast(line_item_index as numeric(28,6)) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as numeric(28,6)) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as numeric(28,6)) as quantity,\n cast(unit_amount as numeric(28,6)) as unit_amount,\n cast(null as numeric(28,6)) as discount_amount,\n cast(null as numeric(28,6)) as tax_amount,\n cast(total_amount as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as numeric(28,6)) as fee_amount,\n cast(null as numeric(28,6)) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as numeric(28,6)) as line_item_id,\n cast(0 as numeric(28,6)) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as numeric(28,6)) as product_id,\n cast(null as TEXT) as product_name,\n transaction_type,\n billing_type,\n cast(null as TEXT) as product_type,\n cast(null as numeric(28,6)) as quantity,\n cast(null as numeric(28,6)) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["header_id", "line_item_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_shipping_line.sql", "original_file_path": "models/rest/stg_shopify__order_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_shipping_line"], "alias": "stg_shopify__order_shipping_line", "checksum": {"name": "sha256", "checksum": "2a53345accb04b023d123b631a1fe94ad8a69fd7e81658e7f9b0c26389f4fa02"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_third_party_required": {"name": "is_third_party_required", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5997775, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_line_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_shopify__order_shipping_line_tmp')),\n staging_columns=get_order_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n discounted_price_set\n \n as \n \n discounted_price_set\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_shipping_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_allocation.sql", "original_file_path": "models/rest/stg_shopify__discount_allocation.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation", "fqn": ["shopify_source", "rest", "stg_shopify__discount_allocation"], "alias": "stg_shopify__discount_allocation", "checksum": {"name": "sha256", "checksum": "834136ae3fedb83876370eb77b57f96fe24028aee02681d1dc2ac6d0d7d3553e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing allocation amounts from discount applications across specific order lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The presentment money currency code for the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The shop money currency code for the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to. Used to join with the discount application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount allocation within the list of allocations on an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6313517, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_allocation_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_shopify__discount_allocation_tmp')),\n staging_columns=get_discount_allocation_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_allocation_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_allocation.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set_presentment_money_amount\n \n as \n \n amount_set_presentment_money_amount\n \n, \n \n \n amount_set_presentment_money_currency_code\n \n as \n \n amount_set_presentment_money_currency_code\n \n, \n \n \n amount_set_shop_money_amount\n \n as \n \n amount_set_shop_money_amount\n \n, \n \n \n amount_set_shop_money_currency_code\n \n as \n \n amount_set_shop_money_currency_code\n \n, \n \n \n discount_application_index\n \n as \n \n discount_application_index\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_application_index", "order_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order.sql", "original_file_path": "models/rest/stg_shopify__order.sql", "unique_id": "model.shopify_source.stg_shopify__order", "fqn": ["shopify_source", "rest", "stg_shopify__order"], "alias": "stg_shopify__order", "checksum": {"name": "sha256", "checksum": "6610716cd337bcefb217f0cf6588b855c6ecf4045a690e229a1c57b19b48241e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5544114, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__order_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_order_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n {{ shopify_source.json_to_string(\"total_discounts_set\", source_columns_in_relation) }} as total_discounts_set,\n total_line_items_price,\n {{ shopify_source.json_to_string(\"total_line_items_price_set\", source_columns_in_relation) }} as total_line_items_price_set,\n total_price,\n {{ shopify_source.json_to_string(\"total_price_set\", source_columns_in_relation) }} as total_price_set,\n {{ shopify_source.json_to_string(\"total_tax_set\", source_columns_in_relation) }} as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(cancelled_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as cancelled_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n {{ shopify_source.json_to_string(\"total_shipping_price_set\", source_columns_in_relation) }} as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n cast(null as TEXT) as \n \n total_discounts_set\n \n , \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n cast(null as TEXT) as \n \n total_line_items_price_set\n \n , \n \n \n total_price\n \n as \n \n total_price\n \n, \n cast(null as TEXT) as \n \n total_price_set\n \n , \n cast(null as TEXT) as \n \n total_tax_set\n \n , \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n cast(null as float) as \n \n total_tip_received\n \n , \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n order_number\n \n as \n \n order_number\n \n, \n \n \n cancel_reason\n \n as \n \n cancel_reason\n \n, \n \n \n cancelled_at\n \n as \n \n cancelled_at\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n checkout_token\n \n as \n \n checkout_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n financial_status\n \n as \n \n financial_status\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n browser_ip\n \n as \n \n browser_ip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n cast(null as TEXT) as \n \n total_shipping_price_set\n \n , \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as integer) as \n \n app_id\n \n , \n cast(null as integer) as \n \n checkout_id\n \n , \n cast(null as TEXT) as \n \n client_details_user_agent\n \n , \n cast(null as TEXT) as \n \n customer_locale\n \n , \n cast(null as TEXT) as \n \n order_status_url\n \n , \n cast(null as TEXT) as \n \n presentment_currency\n \n , \n cast(null as boolean) as \n \n confirmed\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n total_discounts_set as total_discounts_set,\n total_line_items_price,\n total_line_items_price_set as total_line_items_price_set,\n total_price,\n total_price_set as total_price_set,\n total_tax_set as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(cancelled_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as cancelled_timestamp,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n total_shipping_price_set as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__transaction.sql", "original_file_path": "models/rest/stg_shopify__transaction.sql", "unique_id": "model.shopify_source.stg_shopify__transaction", "fqn": ["shopify_source", "rest", "stg_shopify__transaction"], "alias": "stg_shopify__transaction", "checksum": {"name": "sha256", "checksum": "d1c4d552029ac5491af20f77ec0fd7a2a98236f3c25c2dc1e6a613a4dbbb10ad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5644112, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__transaction_tmp')) %}\n\nwith base as (\n\n select * from {{ ref('stg_shopify__transaction_tmp') }}\n\n),\n\nfields as (\n\n select\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n {{ shopify_source.json_to_string(\"receipt\", source_columns_in_relation) }} as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(authorization_expires_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as authorization_expires_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('transaction_pass_through_columns') }}\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__transaction.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * from \"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"\n\n),\n\nfields as (\n\n select\n\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\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 processed_at\n \n as \n \n processed_at\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n payment_avs_result_code\n \n as \n \n payment_avs_result_code\n \n, \n \n \n payment_credit_card_bin\n \n as \n \n payment_credit_card_bin\n \n, \n \n \n payment_cvv_result_code\n \n as \n \n payment_cvv_result_code\n \n, \n \n \n payment_credit_card_number\n \n as \n \n payment_credit_card_number\n \n, \n \n \n payment_credit_card_company\n \n as \n \n payment_credit_card_company\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n receipt\n \n as \n \n receipt\n \n, \n \n \n currency_exchange_id\n \n as \n \n currency_exchange_id\n \n, \n \n \n currency_exchange_adjustment\n \n as \n \n currency_exchange_adjustment\n \n, \n \n \n currency_exchange_original_amount\n \n as \n \n currency_exchange_original_amount\n \n, \n \n \n currency_exchange_final_amount\n \n as \n \n currency_exchange_final_amount\n \n, \n \n \n currency_exchange_currency\n \n as \n \n currency_exchange_currency\n \n, \n \n \n error_code\n \n as \n \n error_code\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as timestamp) as \n \n authorization_expires_at\n \n , \n \n \n \n \n \"authorization\"\n \n \n \n as authorization_code \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n receipt as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(authorization_expires_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as authorization_expires_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["source_relation", "transaction_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_basic.sql", "original_file_path": "models/rest/stg_shopify__discount_code_basic.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_basic"], "alias": "stg_shopify__discount_code_basic", "checksum": {"name": "sha256", "checksum": "36e6431d35cf4791624e49bc76a0f3124e087452e777031fcfb250818ba0b9b5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata about basic discount codes created by merchants.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6360023, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_basic_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_shopify__discount_code_basic_tmp')),\n staging_columns=get_discount_code_basic_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_basic_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_basic.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as TEXT) as \n \n title\n \n , \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__fulfillment.sql", "original_file_path": "models/rest/stg_shopify__fulfillment.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment", "fqn": ["shopify_source", "rest", "stg_shopify__fulfillment"], "alias": "stg_shopify__fulfillment", "checksum": {"name": "sha256", "checksum": "ca3697aa2d2acc4e0714a2689336a063495e3bc64cc9515944e36f7ee55f1810"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5817506, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_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_shopify__fulfillment_tmp')),\n staging_columns=get_fulfillment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n shipment_status\n \n as \n \n shipment_status\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n tracking_company\n \n as \n \n tracking_company\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n tracking_numbers\n \n as \n \n tracking_numbers\n \n, \n \n \n tracking_urls\n \n as \n \n tracking_urls\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["fulfillment_id"], "time_spine": null}, "model.shopify_source.stg_shopify__metafield": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__metafield.sql", "original_file_path": "models/rest/stg_shopify__metafield.sql", "unique_id": "model.shopify_source.stg_shopify__metafield", "fqn": ["shopify_source", "rest", "stg_shopify__metafield"], "alias": "stg_shopify__metafield", "checksum": {"name": "sha256", "checksum": "e7e2a824bf892f5c1d89602d012a6ccdce8e45362840db93f341c741eb754596"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_id": {"name": "metafield_id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource_id": {"name": "owner_resource_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Coalescing of type and value_type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_reference": {"name": "metafield_reference", "description": "Combination of the namespace and key columns. This field is key for metafield mapping in downstream models.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating the most up to date record identified by the most recent updated_at field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754505368.5954292, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield\"", "raw_code": "{{ config(enabled=(var('shopify_using_metafield', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__metafield_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_shopify__metafield_tmp')),\n staging_columns=get_metafield_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n lower({{ dbt.concat([\"namespace\",\"'_'\",\"key\"]) }}) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield_tmp", "package": null, "version": null}, {"name": "stg_shopify__metafield_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_metafield_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt.concat"], "nodes": ["model.shopify_source.stg_shopify__metafield_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__metafield.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n 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 id\n \n as \n \n id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n namespace\n \n as \n \n namespace\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n owner_resource\n \n as \n \n owner_resource\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n lower(namespace || '_' || key) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["metafield_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_bxgy.sql", "original_file_path": "models/rest/stg_shopify__discount_code_bxgy.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_bxgy"], "alias": "stg_shopify__discount_code_bxgy", "checksum": {"name": "sha256", "checksum": "b47ced0eb2ea79958678c2ed4453bb46573b8b484f255c2e709af7ebe51453b8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for Buy X Get Y-style discount codes in Shopify, where discounts are applied based on product quantity thresholds.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6375039, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_bxgy_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_shopify__discount_code_bxgy_tmp')),\n staging_columns=get_discount_code_bxgy_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_bxgy_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_bxgy.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n cast(null as integer) as \n \n recurring_cycle_limit\n \n , \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__tender_transaction.sql", "original_file_path": "models/rest/stg_shopify__tender_transaction.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction", "fqn": ["shopify_source", "rest", "stg_shopify__tender_transaction"], "alias": "stg_shopify__tender_transaction", "checksum": {"name": "sha256", "checksum": "d4d8a6ff82d57efdf1f1814199d70d44444154dc08519b85aad3258b7fadeaa6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6189394, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__tender_transaction_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_shopify__tender_transaction_tmp')),\n staging_columns=get_tender_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tender_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__tender_transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n payment_method\n \n as \n \n payment_method\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n remote_reference\n \n as \n \n remote_reference\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["transaction_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_shipping_tax_line.sql", "original_file_path": "models/rest/stg_shopify__order_shipping_tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_shipping_tax_line"], "alias": "stg_shopify__order_shipping_tax_line", "checksum": {"name": "sha256", "checksum": "26fc98d9b37f25a22d931bc0786714888c2e7809a61b9e2cdd84c6c02c1deee4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this record is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6012182, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_tax_line_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_shopify__order_shipping_tax_line_tmp')),\n staging_columns=get_order_shipping_tax_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_shipping_tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_shipping_line_id\n \n as \n \n order_shipping_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_shipping_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__shop": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__shop.sql", "original_file_path": "models/rest/stg_shopify__shop.sql", "unique_id": "model.shopify_source.stg_shopify__shop", "fqn": ["shopify_source", "rest", "stg_shopify__shop"], "alias": "stg_shopify__shop", "checksum": {"name": "sha256", "checksum": "5530f9eaba5fde4a59b8556a0f242759bc63e380c45442ae1d5bc2a95225c3af"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_checkout_api_supported": {"name": "has_checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_county_taxes": {"name": "has_county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_card_reader_giveaway": {"name": "is_eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_payments": {"name": "is_eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_google_apps_login_enabled": {"name": "is_google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_password_enabled": {"name": "is_password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_pre_launch_enabled": {"name": "is_pre_launch_enabled", "description": "Boolean representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_extra_payments_agreement_required": {"name": "is_extra_payments_agreement_required", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_setup_required": {"name": "is_setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_shipping_taxes": {"name": "has_shipping_taxes", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included_in_price": {"name": "has_taxes_included_in_price", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6174755, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__shop_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__shop_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_shop_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n {{ shopify_source.json_to_string(\"enabled_presentment_currencies\", source_columns_in_relation) }} as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop_tmp", "package": null, "version": null}, {"name": "stg_shopify__shop_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_shop_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__shop_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__shop.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\n \n, \n \n \n checkout_api_supported\n \n as \n \n checkout_api_supported\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n cookie_consent_level\n \n as \n \n cookie_consent_level\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n county_taxes\n \n as \n \n county_taxes\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_email\n \n as \n \n customer_email\n \n, \n \n \n domain\n \n as \n \n domain\n \n, \n \n \n eligible_for_card_reader_giveaway\n \n as \n \n eligible_for_card_reader_giveaway\n \n, \n \n \n eligible_for_payments\n \n as \n \n eligible_for_payments\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n enabled_presentment_currencies\n \n as \n \n enabled_presentment_currencies\n \n, \n \n \n google_apps_domain\n \n as \n \n google_apps_domain\n \n, \n \n \n google_apps_login_enabled\n \n as \n \n google_apps_login_enabled\n \n, \n \n \n has_discounts\n \n as \n \n has_discounts\n \n, \n \n \n has_gift_cards\n \n as \n \n has_gift_cards\n \n, \n \n \n has_storefront\n \n as \n \n has_storefront\n \n, \n \n \n iana_timezone\n \n as \n \n iana_timezone\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 longitude\n \n as \n \n longitude\n \n, \n \n \n money_format\n \n as \n \n money_format\n \n, \n \n \n money_in_emails_format\n \n as \n \n money_in_emails_format\n \n, \n \n \n money_with_currency_format\n \n as \n \n money_with_currency_format\n \n, \n \n \n money_with_currency_in_emails_format\n \n as \n \n money_with_currency_in_emails_format\n \n, \n \n \n myshopify_domain\n \n as \n \n myshopify_domain\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n password_enabled\n \n as \n \n password_enabled\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n plan_display_name\n \n as \n \n plan_display_name\n \n, \n \n \n plan_name\n \n as \n \n plan_name\n \n, \n \n \n pre_launch_enabled\n \n as \n \n pre_launch_enabled\n \n, \n \n \n primary_locale\n \n as \n \n primary_locale\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n requires_extra_payments_agreement\n \n as \n \n requires_extra_payments_agreement\n \n, \n \n \n setup_required\n \n as \n \n setup_required\n \n, \n \n \n shop_owner\n \n as \n \n shop_owner\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n tax_shipping\n \n as \n \n tax_shipping\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n enabled_presentment_currencies as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["shop_id"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_level.sql", "original_file_path": "models/rest/stg_shopify__inventory_level.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_level"], "alias": "stg_shopify__inventory_level", "checksum": {"name": "sha256", "checksum": "79a7a96d7bd30b27bd745353030e4bd5a8f5bfa29cdc816e938a7b323d0a1d01"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available_quantity": {"name": "available_quantity", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.584398, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_level_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_shopify__inventory_level_tmp')),\n staging_columns=get_inventory_level_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_level_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_level_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_level.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n can_deactivate\n \n as \n \n can_deactivate\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deactivation_alert\n \n as \n \n deactivation_alert\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as integer) as \n \n available\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "inventory_level_id", "location_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_redeem_code.sql", "original_file_path": "models/rest/stg_shopify__discount_redeem_code.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code", "fqn": ["shopify_source", "rest", "stg_shopify__discount_redeem_code"], "alias": "stg_shopify__discount_redeem_code", "checksum": {"name": "sha256", "checksum": "999024fc5a37f651b415e8f306756d8c0a6c78043c125950dd1cb95377237b6d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each redeem code is tied to a parent discount and may be created by an app or manually.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This is updated asynchronously and may differ from real-time usage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (typically an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount the redeem code is associated with (e.g., `discount_code_basic`, `discount_code_app`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6413093, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_redeem_code_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_shopify__discount_redeem_code_tmp')),\n staging_columns=get_discount_redeem_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_redeem_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_redeem_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_by_description\n \n as \n \n created_by_description\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_by_title\n \n as \n \n created_by_title\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n discount_type\n \n as \n \n discount_type\n \n, \n \n \n id\n \n as \n \n id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__customer": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__customer.sql", "original_file_path": "models/rest/stg_shopify__customer.sql", "unique_id": "model.shopify_source.stg_shopify__customer", "fqn": ["shopify_source", "rest", "stg_shopify__customer"], "alias": "stg_shopify__customer", "checksum": {"name": "sha256", "checksum": "2493d71ed3533a8938368c51239486949c4a399cd4005d846f8008eb82b945e6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5461206, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__customer_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n {{ shopify_source.fivetran_convert_timezone(column='cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as marketing_consent_updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n {{ fivetran_utils.fill_pass_through_columns('customer_pass_through_columns') }}\n\n from fields\n \n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__customer_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__customer.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accepts_marketing\n \n as \n \n accepts_marketing\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n default_address_id\n \n as \n \n default_address_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n orders_count\n \n as \n \n orders_count\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n tax_exempt\n \n as \n \n tax_exempt\n \n, \n \n \n total_spent\n \n as \n \n total_spent\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n verified_email\n \n as \n \n verified_email\n \n, \n cast(null as timestamp) as \n \n email_marketing_consent_consent_updated_at\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_opt_in_level\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_state\n \n , \n cast(null as TEXT) as \n \n note\n \n , \n cast(null as timestamp) as \n \n accepts_marketing_updated_at\n \n , \n cast(null as TEXT) as \n \n marketing_opt_in_level\n \n , \n cast(null as TEXT) as \n \n currency\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n cast(\n cast(cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as marketing_consent_updated_at,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n \n\n\n\n\n\n from fields\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_item.sql", "original_file_path": "models/rest/stg_shopify__inventory_item.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_item"], "alias": "stg_shopify__inventory_item", "checksum": {"name": "sha256", "checksum": "853a6e06a16707a06826f7d445f609b75da97e7990fdb4386fb2bf47b5cd088b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item. Coalesced with the deprecated `cost` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5833132, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_item_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_shopify__inventory_item_tmp')),\n staging_columns=get_inventory_item_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country_code_of_origin\n \n as \n \n country_code_of_origin\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n province_code_of_origin\n \n as \n \n province_code_of_origin\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tracked\n \n as \n \n tracked\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n duplicate_sku_count\n \n as \n \n duplicate_sku_count\n \n, \n \n \n harmonized_system_code\n \n as \n \n harmonized_system_code\n \n, \n \n \n inventory_history_url\n \n as \n \n inventory_history_url\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n measurement_id\n \n as \n \n measurement_id\n \n, \n \n \n measurement_weight_value\n \n as \n \n measurement_weight_value\n \n, \n \n \n measurement_weight_unit\n \n as \n \n measurement_weight_unit\n \n, \n \n \n tracked_editable_locked\n \n as \n \n tracked_editable_locked\n \n, \n \n \n tracked_editable_reason\n \n as \n \n tracked_editable_reason\n \n, \n \n \n unit_cost_amount\n \n as \n \n unit_cost_amount\n \n, \n \n \n unit_cost_currency_code\n \n as \n \n unit_cost_currency_code\n \n, \n cast(null as float) as \n \n cost\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id"], "time_spine": null}, "model.shopify_source.stg_shopify__collection": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__collection.sql", "original_file_path": "models/rest/stg_shopify__collection.sql", "unique_id": "model.shopify_source.stg_shopify__collection", "fqn": ["shopify_source", "rest", "stg_shopify__collection"], "alias": "stg_shopify__collection", "checksum": {"name": "sha256", "checksum": "b14f356bbf20e962744b82a4ba45e57c6b82e6a988d3cfe60ce1cdf23b849904"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "rule_logic": {"name": "rule_logic", "description": "Whether the `rules` are disjunctive (logical `OR`) or conjunctive (logical `AND`)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparative relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values incline - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5775921, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__collection_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__collection_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_collection_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n {{ shopify_source.json_to_string(\"rules\", source_columns_in_relation) }} as rules,\n sort_order,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__collection.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n disjunctive\n \n as \n \n disjunctive\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\n \n, \n \n \n rules\n \n as \n \n rules\n \n, \n \n \n sort_order\n \n as \n \n sort_order\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\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n rules as rules,\n sort_order,\n title,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["collection_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_adjustment.sql", "original_file_path": "models/rest/stg_shopify__order_adjustment.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment", "fqn": ["shopify_source", "rest", "stg_shopify__order_adjustment"], "alias": "stg_shopify__order_adjustment", "checksum": {"name": "sha256", "checksum": "c4ddb2ba573ce5e01cef92e306dabe987669b60eaee828727876182dec8d4537"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"order_adjustment_id": {"name": "order_adjustment_id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in the shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5687695, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_adjustment_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_adjustment_tmp')),\n staging_columns=get_order_adjustment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_adjustment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_adjustment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_adjustment.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set\n \n as \n \n amount_set\n \n, \n \n \n tax_amount\n \n as \n \n tax_amount\n \n, \n \n \n tax_amount_set\n \n as \n \n tax_amount_set\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_adjustment_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__media.sql", "original_file_path": "models/rest/stg_shopify__media.sql", "unique_id": "model.shopify_source.stg_shopify__media", "fqn": ["shopify_source", "rest", "stg_shopify__media"], "alias": "stg_shopify__media", "checksum": {"name": "sha256", "checksum": "fbddf6477f3a1498b88f3a0699a65e4395a7631bb615234a6338242df8580429"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing media metadata, including status and timestamps.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5895936, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_tmp')),\n staging_columns=get_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_application.sql", "original_file_path": "models/rest/stg_shopify__discount_application.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application", "fqn": ["shopify_source", "rest", "stg_shopify__discount_application"], "alias": "stg_shopify__discount_application", "checksum": {"name": "sha256", "checksum": "eb9d6cd583dcf8522153a756ebd4b6179a68ebce8da489c17bee9b294d173ba8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing discount applications, which define how discounts were applied at the order level.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code associated with the application, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to all line items (`all`) or only those that are specifically entitled (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name or title of the discount as defined in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The value of the discount. If `value_type` is `percentage`, this represents a percentage. If `fixed_amount`, this is a fixed currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount value is a `percentage` or `fixed_amount`. If `target_type` is `shipping_line`, only `percentage` is accepted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6326, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_application_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_shopify__discount_application_tmp')),\n staging_columns=get_discount_application_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_application_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_application_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_application.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocation_method\n \n as \n \n allocation_method\n \n, \n \n \n code\n \n as \n \n code\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 order_id\n \n as \n \n order_id\n \n, \n \n \n target_selection\n \n as \n \n target_selection\n \n, \n \n \n target_type\n \n as \n \n target_type\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value\n \n as \n \n value\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_quantity.sql", "original_file_path": "models/rest/stg_shopify__inventory_quantity.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_quantity"], "alias": "stg_shopify__inventory_quantity", "checksum": {"name": "sha256", "checksum": "ceec14a24511cf768af52d91c6ee0c193dc4871c832b3a4136ed4ed7497f98dc"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The total quantity of the inventory item available at all locations.", "columns": {"inventory_quantity_id": {"name": "inventory_quantity_id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_state_name": {"name": "inventory_state_name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.585929, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_quantity_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_shopify__inventory_quantity_tmp')),\n staging_columns=get_inventory_quantity_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_quantity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_quantity.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_level_id\n \n as \n \n inventory_level_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "inventory_level_id", "inventory_quantity_id", "inventory_state_name", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_tag.sql", "original_file_path": "models/rest/stg_shopify__product_tag.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag", "fqn": ["shopify_source", "rest", "stg_shopify__product_tag"], "alias": "stg_shopify__product_tag", "checksum": {"name": "sha256", "checksum": "30ae521143e47b36580f3e0c4bc03bf3a2b2d39e2f219078194419fd2ef0ba08"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6058984, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_tag_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_shopify__product_tag_tmp')),\n staging_columns=get_product_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__product_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_variant.sql", "original_file_path": "models/rest/stg_shopify__product_variant.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant", "fqn": ["shopify_source", "rest", "stg_shopify__product_variant"], "alias": "stg_shopify__product_variant", "checksum": {"name": "sha256", "checksum": "8a25c78869bc4281ee618d06cc2a9154294d3a4d475d473f133a59ea72532f1a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_available_for_sale": {"name": "is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_components_required": {"name": "has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.562123, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_tmp')),\n staging_columns=get_product_variant_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_variant_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_variant_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\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 updated_at\n \n as \n \n updated_at\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n position\n \n as \n \n position\n \n, \n \n \n inventory_policy\n \n as \n \n inventory_policy\n \n, \n \n \n compare_at_price\n \n as \n \n compare_at_price\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n barcode\n \n as \n \n barcode\n \n, \n cast(null as numeric(28,6)) as \n \n old_inventory_quantity\n \n , \n \n \n inventory_quantity\n \n as \n \n inventory_quantity\n \n, \n \n \n tax_code\n \n as \n \n tax_code\n \n, \n \n \n available_for_sale\n \n as \n \n available_for_sale\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n requires_components\n \n as \n \n requires_components\n \n, \n \n \n sellable_online_quantity\n \n as \n \n sellable_online_quantity\n \n, \n cast(null as TEXT) as \n \n fulfillment_service\n \n , \n cast(null as float) as \n \n grams\n \n , \n cast(null as TEXT) as \n \n inventory_management\n \n , \n cast(null as float) as \n \n weight\n \n , \n cast(null as TEXT) as \n \n weight_unit\n \n , \n cast(null as TEXT) as \n \n option_1\n \n , \n cast(null as TEXT) as \n \n option_2\n \n , \n cast(null as TEXT) as \n \n option_3\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["source_relation", "variant_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_discount_code.sql", "original_file_path": "models/rest/stg_shopify__order_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code", "fqn": ["shopify_source", "rest", "stg_shopify__order_discount_code"], "alias": "stg_shopify__order_discount_code", "checksum": {"name": "sha256", "checksum": "e8738ee571f2712e359118c5799400f39259f8aef959df3c6df84aa83d819b71"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.621325, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_discount_code_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_shopify__order_discount_code_tmp')),\n staging_columns=get_order_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__media_image": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__media_image.sql", "original_file_path": "models/rest/stg_shopify__media_image.sql", "unique_id": "model.shopify_source.stg_shopify__media_image", "fqn": ["shopify_source", "rest", "stg_shopify__media_image"], "alias": "stg_shopify__media_image", "checksum": {"name": "sha256", "checksum": "3a6ae116ff7a7f495476ef47c6bd942d29fe17f4e5a683e88323c3e05877e556"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "Specifies the location of the product image, hashed for privacy. Coalesced with the deprecated `src` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.592035, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__media_image_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_image_tmp')),\n staging_columns=get_media_image_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_image_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_image_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__media_image_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__media_image.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_line.sql", "original_file_path": "models/rest/stg_shopify__order_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_line"], "alias": "stg_shopify__order_line", "checksum": {"name": "sha256", "checksum": "36ea0a90f4476fd400178aa8b6a37b2d30c8bc5325f7ff8dc0670ecd740f5def"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5503356, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_line_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_tmp')),\n staging_columns=get_order_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_pass_through_columns') }}\n\n from fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fulfillable_quantity\n \n as \n \n fulfillable_quantity\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n gift_card\n \n as \n \n gift_card\n \n, \n \n \n grams\n \n as \n \n grams\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n pre_tax_price\n \n as \n \n pre_tax_price\n \n, \n cast(null as TEXT) as \n \n pre_tax_price_set\n \n , \n \n \n price\n \n as \n \n price\n \n, \n cast(null as TEXT) as \n \n price_set\n \n , \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n cast(null as TEXT) as \n \n tax_code\n \n , \n \n \n title\n \n as \n \n title\n \n, \n \n \n total_discount\n \n as \n \n total_discount\n \n, \n cast(null as TEXT) as \n \n total_discount_set\n \n , \n \n \n variant_id\n \n as \n \n variant_id\n \n, \n cast(null as TEXT) as \n \n variant_title\n \n , \n cast(null as TEXT) as \n \n variant_inventory_management\n \n , \n \n \n vendor\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n properties\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_line_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_free_shipping.sql", "original_file_path": "models/rest/stg_shopify__discount_code_free_shipping.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_free_shipping"], "alias": "stg_shopify__discount_code_free_shipping", "checksum": {"name": "sha256", "checksum": "6cfeea54c8a7056fa680b926c2ae6ceeb594bf4e1a9857799b875bae0d73fc53"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for free shipping discount codes in Shopify, where shipping costs are discounted based on qualifying conditions.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.638984, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_free_shipping_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_shopify__discount_code_free_shipping_tmp')),\n staging_columns=get_discount_code_free_shipping_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_free_shipping_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_free_shipping.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__fulfillment_event.sql", "original_file_path": "models/rest/stg_shopify__fulfillment_event.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event", "fqn": ["shopify_source", "rest", "stg_shopify__fulfillment_event"], "alias": "stg_shopify__fulfillment_event", "checksum": {"name": "sha256", "checksum": "2aa34203a0c3980df4a385721479ddf040698998be9432e7334d403a7e525e56"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_event_id": {"name": "fulfillment_event_id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6276622, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"", "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_event_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_shopify__fulfillment_event_tmp')),\n staging_columns=get_fulfillment_event_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n {{ shopify_source.fivetran_convert_timezone(column='cast(estimated_delivery_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as estimated_delivery_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(happened_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__fulfillment_event.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\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 created_at\n \n as \n \n created_at\n \n, \n \n \n estimated_delivery_at\n \n as \n \n estimated_delivery_at\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n happened_at\n \n as \n \n happened_at\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 longitude\n \n as \n \n longitude\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n shop_id\n \n as \n \n shop_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n cast(\n cast(cast(estimated_delivery_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as estimated_delivery_at,\n cast(\n cast(cast(happened_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["fulfillment_event_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_note_attribute.sql", "original_file_path": "models/rest/stg_shopify__order_note_attribute.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute", "fqn": ["shopify_source", "rest", "stg_shopify__order_note_attribute"], "alias": "stg_shopify__order_note_attribute", "checksum": {"name": "sha256", "checksum": "e2c49df60461bef5bfebae6311cc92fa0bef64467a5d22e5dcf31d0d18b31250"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5963142, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_note_attribute_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_shopify__order_note_attribute_tmp')),\n staging_columns=get_order_note_attribute_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_note_attribute_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_note_attribute.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["name", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_line_refund.sql", "original_file_path": "models/rest/stg_shopify__order_line_refund.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund", "fqn": ["shopify_source", "rest", "stg_shopify__order_line_refund"], "alias": "stg_shopify__order_line_refund", "checksum": {"name": "sha256", "checksum": "aa4df0e851d252ad4d9a27a7c0f36bcc0577026ab1e9b016b645a6250dd9d0c6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_line_refund_id": {"name": "order_line_refund_id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.548579, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_line_refund_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_refund_tmp')),\n staging_columns=get_order_line_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_refund_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_line_refund.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n subtotal\n \n as \n \n subtotal\n \n, \n \n \n subtotal_set\n \n as \n \n subtotal_set\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_tax_set\n \n as \n \n total_tax_set\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n restock_type\n \n as \n \n restock_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_line_refund_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__refund.sql", "original_file_path": "models/rest/stg_shopify__refund.sql", "unique_id": "model.shopify_source.stg_shopify__refund", "fqn": ["shopify_source", "rest", "stg_shopify__refund"], "alias": "stg_shopify__refund", "checksum": {"name": "sha256", "checksum": "bda33a385dc2880adba5bbe2cf033de9509cc5389c76ef11e2c4923f757ef0b8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a refund within Shopify.", "columns": {"refund_id": {"name": "refund_id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5663924, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__refund_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__refund_tmp')),\n staging_columns=get_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__refund.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n restock\n \n as \n \n restock\n \n, \n \n \n total_duties_set\n \n as \n \n total_duties_set\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["refund_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__customer_tag.sql", "original_file_path": "models/rest/stg_shopify__customer_tag.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag", "fqn": ["shopify_source", "rest", "stg_shopify__customer_tag"], "alias": "stg_shopify__customer_tag", "checksum": {"name": "sha256", "checksum": "7ddbfed95b8851221f0fcec884872362a389f01cf7a6e0fdfcf21fae5de68c35"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5784926, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__customer_tag_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_shopify__customer_tag_tmp')),\n staging_columns=get_customer_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__customer_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__customer_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "index"], "time_spine": null}, "model.shopify_source.stg_shopify__product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product.sql", "original_file_path": "models/rest/stg_shopify__product.sql", "unique_id": "model.shopify_source.stg_shopify__product", "fqn": ["shopify_source", "rest", "stg_shopify__product"], "alias": "stg_shopify__product", "checksum": {"name": "sha256", "checksum": "6a92711673f429c4465f05d51488c01ce9e270cbd8df0434bcbeac8809f3d370"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5555568, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_tmp')),\n staging_columns=get_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_pass_through_columns') }}\n\nfrom fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"\n\n),\n\nfields as (\n\n select\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 handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\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\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n status\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\nfrom fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_tag.sql", "original_file_path": "models/rest/stg_shopify__order_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag", "fqn": ["shopify_source", "rest", "stg_shopify__order_tag"], "alias": "stg_shopify__order_tag", "checksum": {"name": "sha256", "checksum": "e4d40846975eafeecc76f411ee433af97b1ffe1a24fd2d27a11b6a0b17f8096f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6020985, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_tag_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_shopify__order_tag_tmp')),\n staging_columns=get_order_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__location": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__location.sql", "original_file_path": "models/rest/stg_shopify__location.sql", "unique_id": "model.shopify_source.stg_shopify__location", "fqn": ["shopify_source", "rest", "stg_shopify__location"], "alias": "stg_shopify__location", "checksum": {"name": "sha256", "checksum": "9c5af83aa1e6cb6cae684e11bc8c6a6aea6e040e08b32e7e0ce556e6a657df69"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy": {"name": "is_legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5887506, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__location_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_shopify__location_tmp')),\n staging_columns=get_location_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location_tmp", "package": null, "version": null}, {"name": "stg_shopify__location_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_location_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__location_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__location.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\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_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n legacy\n \n as \n \n legacy\n \n, \n \n \n localized_country_name\n \n as \n \n localized_country_name\n \n, \n \n \n localized_province_name\n \n as \n \n localized_province_name\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["location_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_url_tag.sql", "original_file_path": "models/rest/stg_shopify__order_url_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag", "fqn": ["shopify_source", "rest", "stg_shopify__order_url_tag"], "alias": "stg_shopify__order_url_tag", "checksum": {"name": "sha256", "checksum": "c20d1f6f0095e9d95f7694143ef693d91dc3438b40d254a451662414c1aa9699"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6029708, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_url_tag_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_shopify__order_url_tag_tmp')),\n staging_columns=get_order_url_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_url_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_url_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["key", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_media.sql", "original_file_path": "models/rest/stg_shopify__product_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_media", "fqn": ["shopify_source", "rest", "stg_shopify__product_media"], "alias": "stg_shopify__product_media", "checksum": {"name": "sha256", "checksum": "e866179624b96dced4df610afe1303d19b741bd9fba169f6c706a897330f9556"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6037836, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_media_tmp')),\n staging_columns=get_product_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_variant_media.sql", "original_file_path": "models/rest/stg_shopify__product_variant_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media", "fqn": ["shopify_source", "rest", "stg_shopify__product_variant_media"], "alias": "stg_shopify__product_variant_media", "checksum": {"name": "sha256", "checksum": "2a19d359137d9e352d5ab42327cf191199d918cef118124f2aee0272c513bb70"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6048946, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"", "raw_code": "{{ config(enabled=(var('shopify_using_product_variant_media', False) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_media_tmp')),\n staging_columns=get_product_variant_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_variant_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id", "product_variant_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout"], "alias": "stg_shopify__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "f8f4974bab648fcae4b0a95ec02701aad1981cc01d748404977a3bfac64de65a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_currency": {"name": "shop_currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.57391, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_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_shopify__abandoned_checkout_tmp')),\n staging_columns=get_abandoned_checkout_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n abandoned_checkout_url\n \n as \n \n abandoned_checkout_url\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n cast(null as TEXT) as \n \n billing_address_address_2\n \n , \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_locale\n \n as \n \n customer_locale\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n presentment_currency\n \n as \n \n presentment_currency\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n cast(null as TEXT) as \n \n shipping_address_address_2\n \n , \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n \n \n total_duties\n \n as \n \n total_duties\n \n, \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n \n \n total_price\n \n as \n \n total_price\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n user_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_app.sql", "original_file_path": "models/rest/stg_shopify__discount_code_app.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_app"], "alias": "stg_shopify__discount_code_app", "checksum": {"name": "sha256", "checksum": "3ff36db72d417bd6de0b40cba77865f1fcb5f0e5f3b6dc9fff266db6324a3b13"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for discount codes created through third-party apps in Shopify.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6344876, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"", "raw_code": "{{ config(enabled=(var('shopify_using_discount_code_app', False) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_app_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_shopify__discount_code_app_tmp')),\n staging_columns=get_discount_code_app_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_app_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_app.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count_count\n \n as \n \n codes_count_count\n \n, \n \n \n codes_count_precision\n \n as \n \n codes_count_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout_discount_code.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout_discount_code"], "alias": "stg_shopify__abandoned_checkout_discount_code", "checksum": {"name": "sha256", "checksum": "4f79565f0c0b60aaa4b9e6d55bb3d8e69dbc5e52a2bc952224ec9fc2777d5a08"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the discount codes from abandoned checkouts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6203485, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_discount_code_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_shopify__abandoned_checkout_discount_code_tmp')),\n staging_columns=get_abandoned_checkout_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n type\n \n as \n \n type\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 TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout_shipping_line.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout_shipping_line"], "alias": "stg_shopify__abandoned_checkout_shipping_line", "checksum": {"name": "sha256", "checksum": "fbf2d9940115326795a88f5c018c2e369638ef804e59a09602f65814824ba483"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_code": {"name": "shipping_code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "abandoned_checkout_shipping_line_id": {"name": "abandoned_checkout_shipping_line_id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6251967, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_shipping_line_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_shopify__abandoned_checkout_shipping_line_tmp')),\n staging_columns=get_abandoned_checkout_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n delivery_expectation_range\n \n as \n \n delivery_expectation_range\n \n, \n \n \n delivery_expectation_range_max\n \n as \n \n delivery_expectation_range_max\n \n, \n \n \n delivery_expectation_range_min\n \n as \n \n delivery_expectation_range_min\n \n, \n \n \n delivery_expectation_type\n \n as \n \n delivery_expectation_type\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id", "index", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__tax_line.sql", "original_file_path": "models/rest/stg_shopify__tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line", "fqn": ["shopify_source", "rest", "stg_shopify__tax_line"], "alias": "stg_shopify__tax_line", "checksum": {"name": "sha256", "checksum": "d69e6962393ead5e08c53a74bb2310b91352db44f50335ebb42e923f996baba5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.6285727, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__tax_line_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_shopify__tax_line_tmp')),\n staging_columns=get_tax_line_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_line_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__collection_product.sql", "original_file_path": "models/rest/stg_shopify__collection_product.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product", "fqn": ["shopify_source", "rest", "stg_shopify__collection_product"], "alias": "stg_shopify__collection_product", "checksum": {"name": "sha256", "checksum": "0abb81383bce80941338fce6c30579fd7e729cce5a443d0921752640c0450779"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505368.5751395, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__collection_product_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_shopify__collection_product_tmp')),\n staging_columns=get_collection_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__collection_product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n collection_id\n \n as \n \n collection_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["collection_id", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__metafield_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__metafield_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__metafield_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__metafield_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__metafield_tmp"], "alias": "stg_shopify__metafield_tmp", "checksum": {"name": "sha256", "checksum": "5414a4c10292fcacadde27a458e5df75130c4f8c14e5b38887bc42eefb8a0b53"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.6234593, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_metafield', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='metafield', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='metafield_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "metafield"], ["shopify", "metafield"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__metafield_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_metafield_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_bxgy_tmp"], "alias": "stg_shopify__discount_code_bxgy_tmp", "checksum": {"name": "sha256", "checksum": "bc9ed40d3831d9595a9522c0dd7c6afddc3ff313c1959896e1bc498d17f12551"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.6620116, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_bxgy', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_bxgy_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_bxgy"], ["shopify", "discount_code_bxgy"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__fulfillment_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__fulfillment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__fulfillment_tmp"], "alias": "stg_shopify__fulfillment_tmp", "checksum": {"name": "sha256", "checksum": "93a633acef33eac51374633d67a9e6bf52c1c1b813b549c211bb9fd23cf16938"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.6704085, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment"], ["shopify", "fulfillment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__fulfillment_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_variant_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_variant_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_variant_tmp"], "alias": "stg_shopify__product_variant_tmp", "checksum": {"name": "sha256", "checksum": "1479b98d0d8fc9c6fd0ded96f6b0aa50e05e71a67bf61d54de8abac635aa1920"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.67944, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant"], ["shopify", "product_variant"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_variant_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__collection_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__collection_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__collection_tmp"], "alias": "stg_shopify__collection_tmp", "checksum": {"name": "sha256", "checksum": "83677a641e5bf258065b60673dc391162a342de5ac494faafa9af5c370f048d7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.6876793, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection"], ["shopify", "collection"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__collection_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_discount_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_discount_code_tmp"], "alias": "stg_shopify__order_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "37a4d39417499542b5aeca8c362b51a3e3d95e6908f2a7a9af57b44e170c1046"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.695948, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_discount_code"], ["shopify", "order_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_url_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_url_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_url_tag_tmp"], "alias": "stg_shopify__order_url_tag_tmp", "checksum": {"name": "sha256", "checksum": "9acc8c7614789de25d394b07b8638e54639ea5d0fcb75765963d0bca0f63f353"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7042692, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_url_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_url_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_url_tag"], ["shopify", "order_url_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_url_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_url_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_tmp"], "alias": "stg_shopify__product_tmp", "checksum": {"name": "sha256", "checksum": "dd2e5338bf797082fe088c198911e406eb041e87cd28e1352a7a2835b0122ffe"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7138357, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product"], ["shopify", "product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_tag_tmp"], "alias": "stg_shopify__order_tag_tmp", "checksum": {"name": "sha256", "checksum": "a42066ecdf32f3882d6fa6a1c3df6b75d69ce0a4553375d3320a61f1a1de08f6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7220879, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_tag"], ["shopify", "order_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_quantity_tmp"], "alias": "stg_shopify__inventory_quantity_tmp", "checksum": {"name": "sha256", "checksum": "888a1894a42f30df0c772f9551fb3298534856d39b261bcab4c94f3e62fa4a8d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.730427, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_quantity', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_quantity_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_quantity"], ["shopify", "inventory_quantity"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__tax_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__tax_line_tmp"], "alias": "stg_shopify__tax_line_tmp", "checksum": {"name": "sha256", "checksum": "f904365c42217c601725c775a158e9dd20e3e0cd976b5df19c993275cdb49d6f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7387254, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tax_line"], ["shopify", "tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__customer_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__customer_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__customer_tag_tmp"], "alias": "stg_shopify__customer_tag_tmp", "checksum": {"name": "sha256", "checksum": "cacc0b85d32b6695c089824f90b3d43e47ca479d9fd5b5751bf4d517d60f28be"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.748144, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer_tag"], ["shopify", "customer_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__customer_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_allocation_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_allocation_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_allocation_tmp"], "alias": "stg_shopify__discount_allocation_tmp", "checksum": {"name": "sha256", "checksum": "eef0c91992b9834308249935e8ba406fd0c5782a684da3d90859ef1ae3db7040"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7564013, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_allocation', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_allocation_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_allocation"], ["shopify", "discount_allocation"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_allocation_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_allocation_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_image_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__media_image_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__media_image_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_image_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__media_image_tmp"], "alias": "stg_shopify__media_image_tmp", "checksum": {"name": "sha256", "checksum": "c4780240faf9cb4ab2a407a9419b94336727ec3b77d6bfb1ac753fc8c4179208"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7645915, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media_image', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_image_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media_image"], ["shopify", "media_image"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__media_image_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_image_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__media_tmp"], "alias": "stg_shopify__media_tmp", "checksum": {"name": "sha256", "checksum": "0c94b30527a13af3563413d119affaec39c52720d8aca5223af84b9ad8c55eac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7728405, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media"], ["shopify", "media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__refund_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__refund_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__refund_tmp"], "alias": "stg_shopify__refund_tmp", "checksum": {"name": "sha256", "checksum": "0d3eceddf310b90dc85313e6286c98c2894031ab4569f3db315388dcaef32f8f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7810838, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you create a refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "refund"], ["shopify", "refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__refund_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you create a refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__location_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__location_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__location_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__location_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__location_tmp"], "alias": "stg_shopify__location_tmp", "checksum": {"name": "sha256", "checksum": "b633d3eb65fefb379a9cd5f44ff617a1fc99c132ed5d0bb81e18c9bce0665013"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7908716, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='location', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='location_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "location"], ["shopify", "location"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__location_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_level_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_level_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_level_tmp"], "alias": "stg_shopify__inventory_level_tmp", "checksum": {"name": "sha256", "checksum": "7d78bc258a56f48d8968e1910dd797fe7d73a5d83d4bc165080ea5769a4f0727"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.7992032, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_level', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_level_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_level"], ["shopify", "inventory_level"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_level_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_level_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_shipping_line_tmp"], "alias": "stg_shopify__order_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "14e60b7aefb49552134a34cdb90c47cd4ce6da6381d0586553738d7d4b823d6d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8074489, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_line"], ["shopify", "order_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_discount_code_tmp"], "alias": "stg_shopify__abandoned_checkout_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "a6071b36e80e24d2b0cd31158419e657ac970ce35f8c6c9d3df08606bae64cdc"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8157148, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_discount_code"], ["shopify", "abandoned_checkout_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__fulfillment_event_tmp"], "alias": "stg_shopify__fulfillment_event_tmp", "checksum": {"name": "sha256", "checksum": "f81a5b8e0dd6dbe917bcfeddf57d4d6ac608409132baad5cc131406c3143cb24"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8255322, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_event', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_event_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment_event"], ["shopify", "fulfillment_event"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_line_refund_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_line_refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_line_refund_tmp"], "alias": "stg_shopify__order_line_refund_tmp", "checksum": {"name": "sha256", "checksum": "19f0e79eaed071741c7e53e9b5e90e693184225cc4ca171806f698404df07126"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8342268, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order line refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line_refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line_refund"], ["shopify", "order_line_refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_line_refund_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order line refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_app_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_app_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_app_tmp"], "alias": "stg_shopify__discount_code_app_tmp", "checksum": {"name": "sha256", "checksum": "c633d1450d2ee190d81cb6f4267d15ed580e17bbcc5bbb0958f2f49a2bafc008"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.842324, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_discount_code_app', False) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_app', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_app_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_app"], ["shopify", "discount_code_app"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_app_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_app_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__shop_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__shop_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__shop_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__shop_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__shop_tmp"], "alias": "stg_shopify__shop_tmp", "checksum": {"name": "sha256", "checksum": "e9f782471f9533f7b339be8a70a57196eb8135b5cfe449d2957810794f289803"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.850978, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='shop', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='shop_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "shop"], ["shopify", "shop"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__shop_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_shop_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__transaction_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__transaction_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__transaction_tmp"], "alias": "stg_shopify__transaction_tmp", "checksum": {"name": "sha256", "checksum": "fe66d5a0482b65f07d4d7173cd2aef146efabcf38e17fed7aa2e7d1d1f8b1f33"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8602495, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "transaction"], ["shopify", "transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_variant_media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_variant_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_variant_media_tmp"], "alias": "stg_shopify__product_variant_media_tmp", "checksum": {"name": "sha256", "checksum": "cd139c183a1ca8cb8118db376fa3f7d1b31636685eb01ec485a82e75a7a28d65"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8684807, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_product_variant_media', False) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant_media"], ["shopify", "product_variant_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_variant_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_line_tmp"], "alias": "stg_shopify__order_line_tmp", "checksum": {"name": "sha256", "checksum": "d8a2b2b7331a577fe56b007114d5e8d9c9422dec4bdc3a7a92ed4b975e811eab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.877127, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line"], ["shopify", "order_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_media_tmp"], "alias": "stg_shopify__product_media_tmp", "checksum": {"name": "sha256", "checksum": "a05118e90fbe264d9ec4586834a925938d4ffdc01126953864c80e75d1e1572f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8853958, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_media"], ["shopify", "product_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_basic_tmp"], "alias": "stg_shopify__discount_code_basic_tmp", "checksum": {"name": "sha256", "checksum": "6b6304e0f284579e79af69626b602eb9c4bd9de54c74e74b4956174d796d24fb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.8947246, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_basic', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_basic_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_basic"], ["shopify", "discount_code_basic"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_shipping_tax_line_tmp"], "alias": "stg_shopify__order_shipping_tax_line_tmp", "checksum": {"name": "sha256", "checksum": "5d38344e972f1093709af51973879e64d530563a4b82ec9d06d313db387c5318"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.9029756, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_tax_line"], ["shopify", "order_shipping_tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_note_attribute_tmp"], "alias": "stg_shopify__order_note_attribute_tmp", "checksum": {"name": "sha256", "checksum": "2cc3882bae2ba3aa7c2110da7e9e80172971e9ca75b03700615c4ec0e85124af"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.911081, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_note_attribute', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_note_attribute_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_note_attribute"], ["shopify", "order_note_attribute"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_application_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_application_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_application_tmp"], "alias": "stg_shopify__discount_application_tmp", "checksum": {"name": "sha256", "checksum": "303e6de79bb4d473c2d041c88a66aa1ee0a79961b5b044472cb5a5b2169cb622"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.919302, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_application', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_application_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_application"], ["shopify", "discount_application"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_application_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_application_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__tender_transaction_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__tender_transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__tender_transaction_tmp"], "alias": "stg_shopify__tender_transaction_tmp", "checksum": {"name": "sha256", "checksum": "2ff3b509f93c78e9e47e8dce5e43f5c97a8ad66b5cb9b2ff68f9b4ddb37b502d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.9285364, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tender_transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tender_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tender_transaction"], ["shopify", "tender_transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__tender_transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tender_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_free_shipping_tmp"], "alias": "stg_shopify__discount_code_free_shipping_tmp", "checksum": {"name": "sha256", "checksum": "daf2f7cefba4ef7cf8917d509e7a199b591e31ba3931e27a0b0d81e4e551184d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.9367247, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_free_shipping', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_free_shipping_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_free_shipping"], ["shopify", "discount_code_free_shipping"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_tag_tmp"], "alias": "stg_shopify__product_tag_tmp", "checksum": {"name": "sha256", "checksum": "6103799f99a890d76dc2ec51299412d9708fd31f94528fb71198148f4462a9b4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.9449472, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_tag"], ["shopify", "product_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_item_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_item_tmp"], "alias": "stg_shopify__inventory_item_tmp", "checksum": {"name": "sha256", "checksum": "80078c5de257923b797af6925dace90a4bc9540ba0b787c0d94cd99f90fb2df9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.9531949, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_item"], ["shopify", "inventory_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_tmp"], "alias": "stg_shopify__order_tmp", "checksum": {"name": "sha256", "checksum": "67e08e77af56b0e21cbe52d7cae143433d14a805c38eae3aeaaa6325e4849af5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505365.962564, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order',\n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order"], ["shopify", "order"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_redeem_code_tmp"], "alias": "stg_shopify__discount_redeem_code_tmp", "checksum": {"name": "sha256", "checksum": "ee9513dba26602b035fed4f3b201585cf07e919856c51d1f846b7ffee8f71cca"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505366.0635366, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_redeem_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_redeem_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_redeem_code"], ["shopify", "discount_redeem_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__customer_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__customer_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__customer_tmp"], "alias": "stg_shopify__customer_tmp", "checksum": {"name": "sha256", "checksum": "8186176eeffaabc3738d1e3aa65b2a56d1a708202122324f0169520faf245327"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505366.0720584, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer"], ["shopify", "customer"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__customer_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_adjustment_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_adjustment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_adjustment_tmp"], "alias": "stg_shopify__order_adjustment_tmp", "checksum": {"name": "sha256", "checksum": "660c959bd994c8ebeb444328094cae630dae00be0ffdfecedb5e46d62635507d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505366.080324, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_adjustment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_adjustment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_adjustment"], ["shopify", "order_adjustment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_adjustment_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_adjustment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_shipping_line_tmp"], "alias": "stg_shopify__abandoned_checkout_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "5197f889810c43cba25bb329b29fc36f1a2694481886a84d85db44061121e4ba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505366.088611, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_shipping_line"], ["shopify", "abandoned_checkout_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__collection_product_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__collection_product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__collection_product_tmp"], "alias": "stg_shopify__collection_product_tmp", "checksum": {"name": "sha256", "checksum": "f210c463c05bd68110fb94b96ecc72832aa2b6c6bcbbd0faa14fd9e081f098ff"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505366.0983546, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection_product"], ["shopify", "collection_product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__collection_product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_tmp"], "alias": "stg_shopify__abandoned_checkout_tmp", "checksum": {"name": "sha256", "checksum": "725135b3d811e4e230601561e990f0c8f03ff22a855abd5b57e8152ae0093e43"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505366.106575, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout"], ["shopify", "abandoned_checkout"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__media.sql", "original_file_path": "models/graphql/stg_shopify_gql__media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__media"], "alias": "stg_shopify_gql__media", "checksum": {"name": "sha256", "checksum": "653de7e7a0d32617a2b87aee243be40cd14af47689ece20af8771b3c27136913"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing media metadata, including status and timestamps.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `media_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4214141, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__media_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_shopify_gql__media_tmp')),\n staging_columns=get_graphql_media_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_visit": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_visit.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_visit.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_visit"], "alias": "stg_shopify_gql__customer_visit", "checksum": {"name": "sha256", "checksum": "dc6dbc7c87fbaf8737671d7d2f502113fa6266ae3ed31720df6bf23974c04c56"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metadata about a customer's session visiting a Shopify store, including session, landing page, referrer, marketing campaign, and source attribution information. This data helps merchants analyze the effectiveness of marketing campaigns and customer engagement.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_visit_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_visit_id": {"name": "customer_visit_id", "description": "A globally-unique identifier for the customer visit session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "The ID of the order associated with the customer visit, if any.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of marketing tactic associated with the session. Possible values include: abandoned_cart, ad, affiliate, link, loyalty, message, newsletter, notification, post, retargeting, seo, storefront_app, transactional.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page": {"name": "landing_page", "description": "The URL of the first page the customer landed on for the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page_html": {"name": "landing_page_html", "description": "The landing page URL rendered as HTML with a hyperlink.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "occurred_at": {"name": "occurred_at", "description": "The timestamp when the customer's session occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_code": {"name": "referral_code", "description": "A marketing referral code captured from the landing URL. Supports query params like `ref`, `source`, or `r`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_info_html": {"name": "referral_info_html", "description": "Referral info rendered as HTML with URLs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The referring webpage where the customer clicked a link to arrive at the store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The origin of the customer's visit, such as a platform (e.g., Facebook, Google), a QR code, direct, or other attribution channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_description": {"name": "source_description", "description": "A more descriptive label for the visit source; used primarily for the first or last session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_type": {"name": "source_type", "description": "The marketing tactic type, such as ad, seo, newsletter, etc.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_campaign": {"name": "utm_parameters_campaign", "description": "The name of the marketing campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_content": {"name": "utm_parameters_content", "description": "Identifies specific content within a campaign, used to differentiate similar links.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_medium": {"name": "utm_parameters_medium", "description": "The medium of the campaign (e.g., cpc, banner, email).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_source": {"name": "utm_parameters_source", "description": "The traffic source for the campaign (e.g., google, newsletter).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_term": {"name": "utm_parameters_term", "description": "Search terms associated with paid campaigns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4534693, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_customer_visit', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_visit_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_shopify_gql__customer_visit_tmp')),\n staging_columns=get_graphql_customer_visit_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_visit_id,\n order_id,\n type,\n landing_page,\n landing_page_html,\n referral_code,\n referral_info_html,\n referrer_url as referring_site,\n source,\n source_description,\n source_type,\n utm_parameters_campaign,\n utm_parameters_content,\n utm_parameters_medium,\n utm_parameters_source,\n utm_parameters_term,\n {{ shopify_source.fivetran_convert_timezone(column='cast(occurred_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as occurred_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_visit_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_visit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_visit.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n landing_page\n \n as \n \n landing_page\n \n, \n \n \n landing_page_html\n \n as \n \n landing_page_html\n \n, \n \n \n occurred_at\n \n as \n \n occurred_at\n \n, \n \n \n referral_code\n \n as \n \n referral_code\n \n, \n \n \n referral_info_html\n \n as \n \n referral_info_html\n \n, \n \n \n referrer_url\n \n as \n \n referrer_url\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_description\n \n as \n \n source_description\n \n, \n \n \n source_type\n \n as \n \n source_type\n \n, \n \n \n utm_parameters_campaign\n \n as \n \n utm_parameters_campaign\n \n, \n \n \n utm_parameters_content\n \n as \n \n utm_parameters_content\n \n, \n \n \n utm_parameters_medium\n \n as \n \n utm_parameters_medium\n \n, \n \n \n utm_parameters_source\n \n as \n \n utm_parameters_source\n \n, \n \n \n utm_parameters_term\n \n as \n \n utm_parameters_term\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_visit_id,\n order_id,\n type,\n landing_page,\n landing_page_html,\n referral_code,\n referral_info_html,\n referrer_url as referring_site,\n source,\n source_description,\n source_type,\n utm_parameters_campaign,\n utm_parameters_content,\n utm_parameters_medium,\n utm_parameters_source,\n utm_parameters_term,\n cast(\n cast(cast(occurred_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as occurred_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_app": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_app.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_app.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_app"], "alias": "stg_shopify_gql__discount_code_app", "checksum": {"name": "sha256", "checksum": "0ba65d555b341ea472c2d2b467241a6df089e4b223676e974feffdd7f747df7a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for discount codes created through third-party apps in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.403328, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_discount_code_app', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_app_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_shopify_gql__discount_code_app_tmp')),\n staging_columns=get_graphql_discount_code_app_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_app_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_app_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_app.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count_count\n \n as \n \n codes_count_count\n \n, \n \n \n codes_count_precision\n \n as \n \n codes_count_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_tag"], "alias": "stg_shopify_gql__customer_tag", "checksum": {"name": "sha256", "checksum": "d1dc3244691c097ebdca6b9f76fcb51c4f898b7d4653bb1a2e3c1c092c9b3d70"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.3174574, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_tag_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_shopify_gql__customer_tag_tmp')),\n staging_columns=get_graphql_customer_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['customer_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order.sql", "original_file_path": "models/graphql/stg_shopify_gql__order.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order"], "alias": "stg_shopify_gql__order", "checksum": {"name": "sha256", "checksum": "9c104f3d7986e5c83382a7cec256a7666306e5f61fdbd590a8c0cac6b185c13e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "A globally-unique ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the customer who placed the order. Useful for fraud detection and geographic analysis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The shop currency when the order was placed. For example, \"USD\" or \"CAD\".", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "An order's financial status for display in the Shopify admin. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFinancialStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's fulfillment status that displays in the Shopify admin to merchants. For example, an order might be unfulfilled or scheduled. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFulfillmentStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The unique identifier for the order that appears on the order page in the Shopify admin and the Order status page. For example, \"#1001\", \"EN1001\", or \"1001-A\". This value isn't unique across multiple stores.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The optional note associated with the order. Contains additional information or instructions added by merchants or customers during the order process. Commonly used for special delivery instructions, gift messages, or internal processing notes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The name of the source associated with the order, such as \"web\", \"mobile_app\", or \"pos\". Use this field to identify the platform where the order was placed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_amount": {"name": "total_discounts_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_amount": {"name": "total_discounts_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_currency_code": {"name": "total_discounts_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_currency_code": {"name": "total_discounts_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights before returns, in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The staff member who created or is responsible for the order. Useful for tracking which team member handled phone orders, manual orders, or order modifications. Returns null for orders created directly by customers through the online store.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL where customers can check their order's current status, including tracking information and delivery updates. Provides order tracking links in emails, apps, or customer communications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received_shop_amount": {"name": "total_tip_received_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_amount": {"name": "total_tip_received_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_currency_code": {"name": "total_tip_received_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_currency_code": {"name": "total_tip_received_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_amount": {"name": "shipping_cost_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_amount": {"name": "shipping_cost_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_currency_code": {"name": "shipping_cost_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_currency_code": {"name": "shipping_cost_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.3058674, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_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_shopify_gql__order_tmp')),\n staging_columns=get_graphql_order_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_id,\n staff_member_id as user_id,\n total_discounts_set_pres_amount as total_discounts_pres_amount,\n total_discounts_set_pres_currency_code as total_discounts_pres_currency_code,\n total_discounts_set_shop_amount as total_discounts_shop_amount,\n total_discounts_set_shop_currency_code as total_discounts_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n source_name,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received_set_pres_amount as total_tip_received_pres_amount,\n total_tip_received_set_pres_currency_code as total_tip_received_pres_currency_code,\n total_tip_received_set_shop_amount as total_tip_received_shop_amount,\n total_tip_received_set_shop_currency_code as total_tip_received_shop_currency_code,\n location_id,\n name,\n note,\n number, -- Will be included in 2025-07 release of GraphQL API\n cancel_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(cancelled_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as cancelled_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n currency_code as currency,\n customer_id,\n lower(email) as email,\n lower(display_financial_status) as financial_status,\n lower(display_fulfillment_status) as fulfillment_status,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n client_ip as browser_ip,\n total_shipping_price_set_pres_amount as shipping_cost_pres_amount,\n total_shipping_price_set_pres_currency_code as shipping_cost_pres_currency_code,\n total_shipping_price_set_shop_amount as shipping_cost_shop_amount,\n total_shipping_price_set_shop_currency_code as shipping_cost_shop_currency_code,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n app_id,\n customer_locale,\n status_page_url as order_status_url,\n presentment_currency_code as presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n customer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('order_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n app_id\n \n as \n \n app_id\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n cancel_reason\n \n as \n \n cancel_reason\n \n, \n \n \n cancelled_at\n \n as \n \n cancelled_at\n \n, \n \n \n client_ip\n \n as \n \n client_ip\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n confirmed\n \n as \n \n confirmed\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n customer_accepts_marketing\n \n as \n \n customer_accepts_marketing\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_locale\n \n as \n \n customer_locale\n \n, \n \n \n display_financial_status\n \n as \n \n display_financial_status\n \n, \n \n \n display_fulfillment_status\n \n as \n \n display_fulfillment_status\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n presentment_currency_code\n \n as \n \n presentment_currency_code\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n status_page_url\n \n as \n \n status_page_url\n \n, \n \n \n subtotal_price_set_pres_amount\n \n as \n \n subtotal_price_set_pres_amount\n \n, \n \n \n subtotal_price_set_pres_currency_code\n \n as \n \n subtotal_price_set_pres_currency_code\n \n, \n \n \n subtotal_price_set_shop_amount\n \n as \n \n subtotal_price_set_shop_amount\n \n, \n \n \n subtotal_price_set_shop_currency_code\n \n as \n \n subtotal_price_set_shop_currency_code\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n total_discounts_set_pres_amount\n \n as \n \n total_discounts_set_pres_amount\n \n, \n \n \n total_discounts_set_pres_currency_code\n \n as \n \n total_discounts_set_pres_currency_code\n \n, \n \n \n total_discounts_set_shop_amount\n \n as \n \n total_discounts_set_shop_amount\n \n, \n \n \n total_discounts_set_shop_currency_code\n \n as \n \n total_discounts_set_shop_currency_code\n \n, \n \n \n total_price_set_pres_amount\n \n as \n \n total_price_set_pres_amount\n \n, \n \n \n total_price_set_pres_currency_code\n \n as \n \n total_price_set_pres_currency_code\n \n, \n \n \n total_price_set_shop_amount\n \n as \n \n total_price_set_shop_amount\n \n, \n \n \n total_price_set_shop_currency_code\n \n as \n \n total_price_set_shop_currency_code\n \n, \n \n \n total_shipping_price_set_pres_amount\n \n as \n \n total_shipping_price_set_pres_amount\n \n, \n \n \n total_shipping_price_set_pres_currency_code\n \n as \n \n total_shipping_price_set_pres_currency_code\n \n, \n \n \n total_shipping_price_set_shop_amount\n \n as \n \n total_shipping_price_set_shop_amount\n \n, \n \n \n total_shipping_price_set_shop_currency_code\n \n as \n \n total_shipping_price_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\n \n, \n \n \n total_tip_received_set_pres_amount\n \n as \n \n total_tip_received_set_pres_amount\n \n, \n \n \n total_tip_received_set_pres_currency_code\n \n as \n \n total_tip_received_set_pres_currency_code\n \n, \n \n \n total_tip_received_set_shop_amount\n \n as \n \n total_tip_received_set_shop_amount\n \n, \n \n \n total_tip_received_set_shop_currency_code\n \n as \n \n total_tip_received_set_shop_currency_code\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_id,\n staff_member_id as user_id,\n total_discounts_set_pres_amount as total_discounts_pres_amount,\n total_discounts_set_pres_currency_code as total_discounts_pres_currency_code,\n total_discounts_set_shop_amount as total_discounts_shop_amount,\n total_discounts_set_shop_currency_code as total_discounts_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n source_name,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received_set_pres_amount as total_tip_received_pres_amount,\n total_tip_received_set_pres_currency_code as total_tip_received_pres_currency_code,\n total_tip_received_set_shop_amount as total_tip_received_shop_amount,\n total_tip_received_set_shop_currency_code as total_tip_received_shop_currency_code,\n location_id,\n name,\n note,\n number, -- Will be included in 2025-07 release of GraphQL API\n cancel_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(cancelled_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as cancelled_timestamp,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n currency_code as currency,\n customer_id,\n lower(email) as email,\n lower(display_financial_status) as financial_status,\n lower(display_fulfillment_status) as fulfillment_status,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n client_ip as browser_ip,\n total_shipping_price_set_pres_amount as shipping_cost_pres_amount,\n total_shipping_price_set_pres_currency_code as shipping_cost_pres_currency_code,\n total_shipping_price_set_shop_amount as shipping_cost_shop_amount,\n total_shipping_price_set_shop_currency_code as shipping_cost_shop_currency_code,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n app_id,\n customer_locale,\n status_page_url as order_status_url,\n presentment_currency_code as presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n customer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_line"], "alias": "stg_shopify_gql__order_line", "checksum": {"name": "sha256", "checksum": "109c38abe09fecda46bfe1c3abaab41598133e0972636f50bb20d067987f3185"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.3076284, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_line_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_shopify_gql__order_line_tmp')),\n staging_columns=get_graphql_order_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_line_id,\n row_number() over(partition by order_id, source_relation order by id asc) as index,\n name,\n order_id,\n case \n when unfulfilled_quantity = 0 then 'fulfilled'\n when unfulfilled_quantity > 0 and unfulfilled_quantity < quantity then 'partial'\n when unfulfilled_quantity = quantity then 'unfulfilled'\n else null \n end as fulfillment_status,\n is_gift_card,\n original_total_set_pres_amount as price_pres_amount,\n original_total_set_pres_currency_code as price_pres_currency_code,\n original_total_set_shop_amount as price_shop_amount,\n original_total_set_shop_currency_code as price_shop_currency_code,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n title,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n variant_id,\n variant_title,\n vendor,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n {{ fivetran_utils.fill_pass_through_columns('order_line_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_gift_card\n \n as \n \n is_gift_card\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n original_total_set_pres_amount\n \n as \n \n original_total_set_pres_amount\n \n, \n \n \n original_total_set_pres_currency_code\n \n as \n \n original_total_set_pres_currency_code\n \n, \n \n \n original_total_set_shop_amount\n \n as \n \n original_total_set_shop_amount\n \n, \n \n \n original_total_set_shop_currency_code\n \n as \n \n original_total_set_shop_currency_code\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\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 total_discount_set_pres_amount\n \n as \n \n total_discount_set_pres_amount\n \n, \n \n \n total_discount_set_pres_currency_code\n \n as \n \n total_discount_set_pres_currency_code\n \n, \n \n \n total_discount_set_shop_amount\n \n as \n \n total_discount_set_shop_amount\n \n, \n \n \n total_discount_set_shop_currency_code\n \n as \n \n total_discount_set_shop_currency_code\n \n, \n \n \n unfulfilled_quantity\n \n as \n \n unfulfilled_quantity\n \n, \n \n \n variant_id\n \n as \n \n variant_id\n \n, \n \n \n variant_title\n \n as \n \n variant_title\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_line_id,\n row_number() over(partition by order_id, source_relation order by id asc) as index,\n name,\n order_id,\n case \n when unfulfilled_quantity = 0 then 'fulfilled'\n when unfulfilled_quantity > 0 and unfulfilled_quantity < quantity then 'partial'\n when unfulfilled_quantity = quantity then 'unfulfilled'\n else null \n end as fulfillment_status,\n is_gift_card,\n original_total_set_pres_amount as price_pres_amount,\n original_total_set_pres_currency_code as price_pres_currency_code,\n original_total_set_shop_amount as price_shop_amount,\n original_total_set_shop_currency_code as price_shop_currency_code,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n title,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n variant_id,\n variant_title,\n vendor,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_item.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_item.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_item"], "alias": "stg_shopify_gql__inventory_item", "checksum": {"name": "sha256", "checksum": "32245e3be959135fac78958f66d2bd942b104f90bf7c1cf0176b5fe76d3da089"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_item_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4167962, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_item_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_shopify_gql__inventory_item_tmp')),\n staging_columns=get_graphql_inventory_item_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted,\n unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country_code_of_origin\n \n as \n \n country_code_of_origin\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n duplicate_sku_count\n \n as \n \n duplicate_sku_count\n \n, \n \n \n harmonized_system_code\n \n as \n \n harmonized_system_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_history_url\n \n as \n \n inventory_history_url\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n measurement_id\n \n as \n \n measurement_id\n \n, \n \n \n measurement_weight_unit\n \n as \n \n measurement_weight_unit\n \n, \n \n \n measurement_weight_value\n \n as \n \n measurement_weight_value\n \n, \n \n \n province_code_of_origin\n \n as \n \n province_code_of_origin\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tracked\n \n as \n \n tracked\n \n, \n \n \n tracked_editable_locked\n \n as \n \n tracked_editable_locked\n \n, \n \n \n tracked_editable_reason\n \n as \n \n tracked_editable_reason\n \n, \n \n \n unit_cost_amount\n \n as \n \n unit_cost_amount\n \n, \n \n \n unit_cost_currency_code\n \n as \n \n unit_cost_currency_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted,\n unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_shipping_tax_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_shipping_tax_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_shipping_tax_line"], "alias": "stg_shopify_gql__order_shipping_tax_line", "checksum": {"name": "sha256", "checksum": "1ce49a7e29271683d2a26b5640c826be0a3c626e752ce9600fa531b9cfdbbf26"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents taxes associated with order shipping lines.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_shipping_line_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this record is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The amount of tax in customer currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The amount of tax in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4358094, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_shipping_tax_line_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_shopify_gql__order_shipping_tax_line_tmp')),\n staging_columns=get_graphql_order_shipping_tax_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_shipping_line_id', 'index', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_shipping_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_shipping_tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_shipping_line_id\n \n as \n \n order_shipping_line_id\n \n, \n \n \n price_set_pres_amount\n \n as \n \n price_set_pres_amount\n \n, \n \n \n price_set_pres_currency_code\n \n as \n \n price_set_pres_currency_code\n \n, \n \n \n price_set_shop_amount\n \n as \n \n price_set_shop_amount\n \n, \n \n \n price_set_shop_currency_code\n \n as \n \n price_set_shop_currency_code\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_shipping_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_order_line_item"], "alias": "stg_shopify_gql__fulfillment_order_line_item", "checksum": {"name": "sha256", "checksum": "cce1876da347fe32a6a944ed7db67af1c5897acfa7c3f164c6f02707ecd93e37"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Links a fulfillment order to specific items that require fulfillment. Contains detailed product information, quantity tracking, variant metadata, and shipping requirements. This is a core entity for determining which products and how many units are involved in a given fulfillment process.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_order_line_item_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_order_line_item_id": {"name": "fulfillment_order_line_item_id", "description": "A globally unique identifier for this fulfillment order line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_order_id": {"name": "fulfillment_order_id", "description": "The identifier of the fulfillment order that this line item is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "Alt text describing the image associated with the line item's variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "The height in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "The unique identifier for the variant image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The url of the variant image used in this fulfillment line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "The width in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The identifier of the inventory item being fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_item_id": {"name": "order_line_item_id", "description": "The identifier of the original order line item linked to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_title": {"name": "product_title", "description": "The title of the product at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The identifier of the product variant associated with this fulfillment item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remaining_quantity": {"name": "remaining_quantity", "description": "The number of units remaining to be fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Indicates whether physical shipping is required for this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The SKU of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "The total number of units allocated to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The vendor of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4138005, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_order_line_item', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_order_line_item_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_shopify_gql__fulfillment_order_line_item_tmp')),\n staging_columns=get_graphql_fulfillment_order_line_item_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_order_line_item_id,\n fulfillment_order_id,\n image_alt_text,\n image_height,\n image_id,\n image_url,\n image_width,\n inventory_item_id,\n order_line_item_id,\n product_title,\n product_variant_id,\n remaining_quantity,\n requires_shipping,\n sku,\n total_quantity,\n variant_title,\n vendor,\n weight_unit,\n weight_value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_order_line_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fulfillment_order_id\n \n as \n \n fulfillment_order_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n order_line_item_id\n \n as \n \n order_line_item_id\n \n, \n \n \n product_title\n \n as \n \n product_title\n \n, \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n remaining_quantity\n \n as \n \n remaining_quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n total_quantity\n \n as \n \n total_quantity\n \n, \n \n \n variant_title\n \n as \n \n variant_title\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n, \n \n \n weight_value\n \n as \n \n weight_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_order_line_item_id,\n fulfillment_order_id,\n image_alt_text,\n image_height,\n image_id,\n image_url,\n image_width,\n inventory_item_id,\n order_line_item_id,\n product_title,\n product_variant_id,\n remaining_quantity,\n requires_shipping,\n sku,\n total_quantity,\n variant_title,\n vendor,\n weight_unit,\n weight_value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_shipping_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_shipping_line"], "alias": "stg_shopify_gql__order_shipping_line", "checksum": {"name": "sha256", "checksum": "5da193b8bb92f55d18b8e41ab292c215df78b4d69d5380fa52172a808a1fd08d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents the shipping details that the customer chose for their order.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_shipping_line_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_pres_amount": {"name": "discounted_price_pres_amount", "description": "Shipping price in customer currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_pres_currency_code": {"name": "discounted_price_pres_currency_code", "description": "Three digit customer currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_shop_amount": {"name": "discounted_price_shop_amount", "description": "Shipping price in shop currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_shop_currency_code": {"name": "discounted_price_shop_currency_code", "description": "Three digit shop currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The pre-tax shipping price without any discounts applied in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The pre-tax shipping price without any discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4345703, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_shipping_line_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_shopify_gql__order_shipping_line_tmp')),\n staging_columns=get_graphql_order_shipping_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price_set_pres_amount as discounted_price_pres_amount,\n discounted_price_set_pres_currency_code as discounted_price_pres_currency_code,\n discounted_price_set_shop_amount as discounted_price_shop_amount,\n discounted_price_set_shop_currency_code as discounted_price_shop_currency_code,\n phone,\n original_price_set_pres_amount as price_pres_amount,\n original_price_set_pres_currency_code as price_pres_currency_code,\n original_price_set_shop_amount as price_shop_amount,\n original_price_set_shop_currency_code as price_shop_currency_code,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n discounted_price_set_pres_amount\n \n as \n \n discounted_price_set_pres_amount\n \n, \n \n \n discounted_price_set_pres_currency_code\n \n as \n \n discounted_price_set_pres_currency_code\n \n, \n \n \n discounted_price_set_shop_amount\n \n as \n \n discounted_price_set_shop_amount\n \n, \n \n \n discounted_price_set_shop_currency_code\n \n as \n \n discounted_price_set_shop_currency_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n original_price_set_pres_amount\n \n as \n \n original_price_set_pres_amount\n \n, \n \n \n original_price_set_pres_currency_code\n \n as \n \n original_price_set_pres_currency_code\n \n, \n \n \n original_price_set_shop_amount\n \n as \n \n original_price_set_shop_amount\n \n, \n \n \n original_price_set_shop_currency_code\n \n as \n \n original_price_set_shop_currency_code\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price_set_pres_amount as discounted_price_pres_amount,\n discounted_price_set_pres_currency_code as discounted_price_pres_currency_code,\n discounted_price_set_shop_amount as discounted_price_shop_amount,\n discounted_price_set_shop_currency_code as discounted_price_shop_currency_code,\n phone,\n original_price_set_pres_amount as price_pres_amount,\n original_price_set_pres_currency_code as price_pres_currency_code,\n original_price_set_shop_amount as price_shop_amount,\n original_price_set_shop_currency_code as price_shop_currency_code,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product.sql", "original_file_path": "models/graphql/stg_shopify_gql__product.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product"], "alias": "stg_shopify_gql__product", "checksum": {"name": "sha256", "checksum": "bd16eaf9c2f2b9d327db6071a73dc1fa5aaa07b070d4f3fd72bd82f8621145a9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.43791, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_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_shopify_gql__product_tmp')),\n staging_columns=get_graphql_product_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as product_id,\n handle,\n product_type,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('product_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n status\n \n as \n \n status\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\n \n as \n \n vendor\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as product_id,\n handle,\n product_type,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment"], "alias": "stg_shopify_gql__fulfillment", "checksum": {"name": "sha256", "checksum": "545e435664dc989b50d51ec7cd18d7ad7e582c75fb916d7be3176e7c1ce5af7b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4104917, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_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_shopify_gql__fulfillment_tmp')),\n staging_columns=get_graphql_fulfillment_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service_id as service,\n lower(display_status) as shipment_status,\n lower(status) as status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n display_status\n \n as \n \n display_status\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n service_id\n \n as \n \n service_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n total_quantity\n \n as \n \n total_quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service_id as service,\n lower(display_status) as shipment_status,\n lower(status) as status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_allocation": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_allocation.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_allocation.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_allocation"], "alias": "stg_shopify_gql__discount_allocation", "checksum": {"name": "sha256", "checksum": "739863a768f40dd60d330e331eae06d15864832e04c0ca6b863424ec4f7ac4c6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing allocation amounts from discount applications across specific order lines.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id`, `discount_application_index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocated_pres_amount": {"name": "allocated_pres_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_pres_currency_code": {"name": "allocated_pres_currency_code", "description": "The presentment money currency code for the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_shop_amount": {"name": "allocated_shop_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_shop_currency_code": {"name": "allocated_shop_currency_code", "description": "The shop money currency code for the store\u2019s currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to. Used to join with the discount application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount allocation within the list of allocations on an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.319876, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_allocation_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_shopify_gql__discount_allocation_tmp')),\n staging_columns=get_graphql_discount_allocation_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n allocated_amount_set_pres_amount as allocated_pres_amount,\n allocated_amount_set_pres_currency_code as allocated_pres_currency_code,\n allocated_amount_set_shop_amount as allocated_shop_amount,\n allocated_amount_set_shop_currency_code as allocated_shop_currency_code,\n discount_application_index,\n index,\n order_line_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_line_id', 'discount_application_index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_allocation_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_allocation_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_allocation.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocated_amount_set_pres_amount\n \n as \n \n allocated_amount_set_pres_amount\n \n, \n \n \n allocated_amount_set_pres_currency_code\n \n as \n \n allocated_amount_set_pres_currency_code\n \n, \n \n \n allocated_amount_set_shop_amount\n \n as \n \n allocated_amount_set_shop_amount\n \n, \n \n \n allocated_amount_set_shop_currency_code\n \n as \n \n allocated_amount_set_shop_currency_code\n \n, \n \n \n discount_application_index\n \n as \n \n discount_application_index\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n allocated_amount_set_pres_amount as allocated_pres_amount,\n allocated_amount_set_pres_currency_code as allocated_pres_currency_code,\n allocated_amount_set_shop_amount as allocated_shop_amount,\n allocated_amount_set_shop_currency_code as allocated_shop_currency_code,\n discount_application_index,\n index,\n order_line_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_application_index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__tax_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__tax_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tax_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__tax_line"], "alias": "stg_shopify_gql__tax_line", "checksum": {"name": "sha256", "checksum": "7c3265693bb444db83715b94d4923ebc32f8d385562f5dd4b570230542e309d6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a single tax applied to the associated line item.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The amount of tax in customer currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The amount of tax in shop currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4484727, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__tax_line_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_shopify_gql__tax_line_tmp')),\n staging_columns=get_graphql_tax_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_line_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n price_set_pres_amount\n \n as \n \n price_set_pres_amount\n \n, \n \n \n price_set_pres_currency_code\n \n as \n \n price_set_pres_currency_code\n \n, \n \n \n price_set_shop_amount\n \n as \n \n price_set_shop_amount\n \n, \n \n \n price_set_shop_currency_code\n \n as \n \n price_set_shop_currency_code\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_line_refund.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_line_refund.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_line_refund"], "alias": "stg_shopify_gql__order_line_refund", "checksum": {"name": "sha256", "checksum": "0402af2a04adb3d40bbdc43cd8f592cecec885892b79aedebe455210880640fe"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item refund in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_refund_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_line_refund_id": {"name": "order_line_refund_id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location where the items will be restocked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_pres_amount": {"name": "subtotal_pres_amount", "description": "The refunded subtotal amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_pres_currency_code": {"name": "subtotal_pres_currency_code", "description": "The three letter currency code for the subtotal the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_shop_amount": {"name": "subtotal_shop_amount", "description": "The refunded subtotal amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_shop_currency_code": {"name": "subtotal_shop_currency_code", "description": "The three letter currency code for the subtotal in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three letter currency code of the tax the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three letter currency code of the tax in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4308434, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_line_refund_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_shopify_gql__order_line_refund_tmp')),\n staging_columns=get_graphql_order_line_refund_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal_set_pres_amount as subtotal_pres_amount,\n subtotal_set_pres_currency_code as subtotal_pres_currency_code,\n subtotal_set_shop_amount as subtotal_shop_amount,\n subtotal_set_shop_currency_code as subtotal_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n quantity,\n refund_id,\n lower(restock_type) as restock_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_refund_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_line_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_line_refund.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n restock_type\n \n as \n \n restock_type\n \n, \n \n \n subtotal_set_pres_amount\n \n as \n \n subtotal_set_pres_amount\n \n, \n \n \n subtotal_set_pres_currency_code\n \n as \n \n subtotal_set_pres_currency_code\n \n, \n \n \n subtotal_set_shop_amount\n \n as \n \n subtotal_set_shop_amount\n \n, \n \n \n subtotal_set_shop_currency_code\n \n as \n \n subtotal_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal_set_pres_amount as subtotal_pres_amount,\n subtotal_set_pres_currency_code as subtotal_pres_currency_code,\n subtotal_set_shop_amount as subtotal_shop_amount,\n subtotal_set_shop_currency_code as subtotal_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n quantity,\n refund_id,\n lower(restock_type) as restock_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_level": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_level.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_level.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_level"], "alias": "stg_shopify_gql__inventory_level", "checksum": {"name": "sha256", "checksum": "666a85a3945cef763805af14862e54687fbadf91916472cc6858e442ff60cf23"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory level represents the quantities of an inventory item for a location. Each inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_level_id`, `inventory_item_id`, `location_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4179318, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_level_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_shopify_gql__inventory_level_tmp')),\n staging_columns=get_graphql_inventory_level_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_level_id,\n inventory_item_id,\n location_id,\n can_deactivate,\n deactivation_alert,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'inventory_item_id', 'location_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_level_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_level_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_level.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n can_deactivate\n \n as \n \n can_deactivate\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deactivation_alert\n \n as \n \n deactivation_alert\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_level_id,\n inventory_item_id,\n location_id,\n can_deactivate,\n deactivation_alert,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_item_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(location_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__shop": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__shop", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__shop.sql", "original_file_path": "models/graphql/stg_shopify_gql__shop.sql", "unique_id": "model.shopify_source.stg_shopify_gql__shop", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__shop"], "alias": "stg_shopify_gql__shop", "checksum": {"name": "sha256", "checksum": "b0950c23a4aef6080249618f83c620290043117629346a3efd333ad95e6e0d90"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `shop_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_checkout_api_supported": {"name": "has_checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_password_enabled": {"name": "is_password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_setup_required": {"name": "is_setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_shipping_taxes": {"name": "has_shipping_taxes", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included_in_price": {"name": "has_taxes_included_in_price", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_abbreviation": {"name": "timezone_abbreviation", "description": "The shop's time zone abbreviation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset": {"name": "timezone_offset", "description": "The shop's time zone offset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset_minutes": {"name": "timezone_offset_minutes", "description": "The shop's time zone offset expressed as a number of minutes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.44733, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__shop_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_shopify_gql__shop_tmp')),\n staging_columns=get_graphql_shop_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n billing_address_address_1 as address_1,\n billing_address_address_2 as address_2,\n billing_address_city as city,\n billing_address_province as province,\n billing_address_province_code as province_code,\n billing_address_country_code_v_2 as country, -- in REST API country = code\n billing_address_country_code_v_2 as country_code,\n billing_address_country as country_name,\n billing_address_zip as zip,\n billing_address_latitude as latitude,\n billing_address_longitude as longitude,\n currency_code as currency,\n {{ shopify_source.json_to_string(\"enabled_presentment_currencies\", source_columns_in_relation) }} as enabled_presentment_currencies,\n contact_email as customer_email,\n email,\n primary_domain_host as domain,\n billing_address_phone as phone,\n timezone_abbreviation,\n {# timezone_offset is formatted like -0400 instead of -04:00 #}\n timezone_offset, \n timezone_offset_minutes, \n iana_timezone, \n primary_domain_localization_default_locale as primary_locale,\n weight_unit,\n myshopify_domain,\n shop_owner_name as shop_owner,\n tax_shipping as has_shipping_taxes,\n coalesce(taxes_included, false) as has_taxes_included_in_price,\n features_storefront as has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n currency_formats_money_format as money_format,\n currency_formats_money_in_emails_format as money_in_emails_format,\n currency_formats_money_with_currency_format as money_with_currency_format,\n currency_formats_money_with_currency_in_emails_format as money_with_currency_in_emails_format,\n plan_display_name,\n password_enabled as is_password_enabled,\n setup_required as is_setup_required,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__shop_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_shop_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__shop_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__shop.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code_v_2\n \n as \n \n billing_address_country_code_v_2\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n checkout_api_supported\n \n as \n \n checkout_api_supported\n \n, \n \n \n contact_email\n \n as \n \n contact_email\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n currency_formats_money_format\n \n as \n \n currency_formats_money_format\n \n, \n \n \n currency_formats_money_in_emails_format\n \n as \n \n currency_formats_money_in_emails_format\n \n, \n \n \n currency_formats_money_with_currency_format\n \n as \n \n currency_formats_money_with_currency_format\n \n, \n \n \n currency_formats_money_with_currency_in_emails_format\n \n as \n \n currency_formats_money_with_currency_in_emails_format\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n enabled_presentment_currencies\n \n as \n \n enabled_presentment_currencies\n \n, \n \n \n features_storefront\n \n as \n \n features_storefront\n \n, \n \n \n iana_timezone\n \n as \n \n iana_timezone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n myshopify_domain\n \n as \n \n myshopify_domain\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n password_enabled\n \n as \n \n password_enabled\n \n, \n \n \n plan_display_name\n \n as \n \n plan_display_name\n \n, \n \n \n primary_domain_host\n \n as \n \n primary_domain_host\n \n, \n \n \n primary_domain_localization_default_locale\n \n as \n \n primary_domain_localization_default_locale\n \n, \n \n \n setup_required\n \n as \n \n setup_required\n \n, \n \n \n shop_owner_name\n \n as \n \n shop_owner_name\n \n, \n \n \n tax_shipping\n \n as \n \n tax_shipping\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n timezone_abbreviation\n \n as \n \n timezone_abbreviation\n \n, \n \n \n timezone_offset\n \n as \n \n timezone_offset\n \n, \n \n \n timezone_offset_minutes\n \n as \n \n timezone_offset_minutes\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n billing_address_address_1 as address_1,\n billing_address_address_2 as address_2,\n billing_address_city as city,\n billing_address_province as province,\n billing_address_province_code as province_code,\n billing_address_country_code_v_2 as country, -- in REST API country = code\n billing_address_country_code_v_2 as country_code,\n billing_address_country as country_name,\n billing_address_zip as zip,\n billing_address_latitude as latitude,\n billing_address_longitude as longitude,\n currency_code as currency,\n enabled_presentment_currencies as enabled_presentment_currencies,\n contact_email as customer_email,\n email,\n primary_domain_host as domain,\n billing_address_phone as phone,\n timezone_abbreviation,\n \n timezone_offset, \n timezone_offset_minutes, \n iana_timezone, \n primary_domain_localization_default_locale as primary_locale,\n weight_unit,\n myshopify_domain,\n shop_owner_name as shop_owner,\n tax_shipping as has_shipping_taxes,\n coalesce(taxes_included, false) as has_taxes_included_in_price,\n features_storefront as has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n currency_formats_money_format as money_format,\n currency_formats_money_in_emails_format as money_in_emails_format,\n currency_formats_money_with_currency_format as money_with_currency_format,\n currency_formats_money_with_currency_in_emails_format as money_with_currency_in_emails_format,\n plan_display_name,\n password_enabled as is_password_enabled,\n setup_required as is_setup_required,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__abandoned_checkout_discount_code"], "alias": "stg_shopify_gql__abandoned_checkout_discount_code", "checksum": {"name": "sha256", "checksum": "0c42da3c30c3c151bce61bb481405da53967b9b43818d4d74ce29d238f4a9b57"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Abandoned checkouts that applied a discount code.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `checkout_id`, `code`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the discount codes from abandoned checkouts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.3140051, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__abandoned_checkout_discount_code_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_shopify_gql__abandoned_checkout_discount_code_tmp')),\n staging_columns=get_graphql_abandoned_checkout_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index,\n {{ dbt_utils.generate_surrogate_key(['checkout_id', 'code', 'source_relation']) }} as unique_key\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index,\n md5(cast(coalesce(cast(checkout_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(code as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__location": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__location", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__location.sql", "original_file_path": "models/graphql/stg_shopify_gql__location.sql", "unique_id": "model.shopify_source.stg_shopify_gql__location", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__location"], "alias": "stg_shopify_gql__location", "checksum": {"name": "sha256", "checksum": "8b73ec5a42911c795216811ac8867c5c3d611587e19aa46f698ed21e0802e7df"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `location_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in, this matches the REST API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy": {"name": "is_legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4204984, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__location_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_shopify_gql__location_tmp')),\n staging_columns=get_graphql_location_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n is_active,\n address_1,\n address_2,\n city,\n country_code as country, -- match REST API format\n country_code,\n country as country_name,\n is_fulfillment_service as is_legacy,\n phone,\n province,\n province_code,\n zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__location_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_location_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__location_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__location.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__location_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\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_code\n \n as \n \n country_code\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_active\n \n as \n \n is_active\n \n, \n \n \n is_fulfillment_service\n \n as \n \n is_fulfillment_service\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n is_active,\n address_1,\n address_2,\n city,\n country_code as country, -- match REST API format\n country_code,\n country as country_name,\n is_fulfillment_service as is_legacy,\n phone,\n province,\n province_code,\n zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__transaction", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__transaction.sql", "original_file_path": "models/graphql/stg_shopify_gql__transaction.sql", "unique_id": "model.shopify_source.stg_shopify_gql__transaction", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__transaction"], "alias": "stg_shopify_gql__transaction", "checksum": {"name": "sha256", "checksum": "7424657329c3c4945c6c79b2326dd4991efaf952abff49c191f08dd9ccb5587b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `transaction_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of the transaction in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three letter currency code of the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of the transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three letter currency code of the shop's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4516163, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__transaction_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_shopify_gql__transaction_tmp')),\n staging_columns=get_graphql_transaction_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_shop_amount as amount_shop,\n device_id, -- Will be included in 2025-07 release of GraphQL API\n gateway,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_currency_code as amount_shop_currency_code,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n lower(kind) as kind, -- lower in REST api\n {{ shopify_source.json_to_string(\"receipt_json\", source_columns_in_relation) }} as receipt,\n currency_exchange_id, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_adjustment, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_original_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_final_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_currency, -- Will be included in 2025-07 release of GraphQL API\n error_code,\n lower(status) as status, -- lower in REST api\n staff_member_id as user_id,\n authorization_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(authorization_expires_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as authorization_expires_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('transaction_pass_through_columns') }}\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount_set_pres_amount\n \n as \n \n amount_set_pres_amount\n \n, \n \n \n amount_set_pres_currency_code\n \n as \n \n amount_set_pres_currency_code\n \n, \n \n \n amount_set_shop_amount\n \n as \n \n amount_set_shop_amount\n \n, \n \n \n amount_set_shop_currency_code\n \n as \n \n amount_set_shop_currency_code\n \n, \n \n \n authorization_code\n \n as \n \n authorization_code\n \n, \n \n \n authorization_expires_at\n \n as \n \n authorization_expires_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n error_code\n \n as \n \n error_code\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n payment_avs_result_code\n \n as \n \n payment_avs_result_code\n \n, \n \n \n payment_credit_card_bin\n \n as \n \n payment_credit_card_bin\n \n, \n \n \n payment_credit_card_company\n \n as \n \n payment_credit_card_company\n \n, \n \n \n payment_credit_card_number\n \n as \n \n payment_credit_card_number\n \n, \n \n \n payment_cvv_result_code\n \n as \n \n payment_cvv_result_code\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n cast(null as TEXT) as \n \n receipt_json\n \n , \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n currency_exchange_id\n \n as \n \n currency_exchange_id\n \n, \n \n \n currency_exchange_adjustment\n \n as \n \n currency_exchange_adjustment\n \n, \n \n \n currency_exchange_original_amount\n \n as \n \n currency_exchange_original_amount\n \n, \n \n \n currency_exchange_final_amount\n \n as \n \n currency_exchange_final_amount\n \n, \n \n \n currency_exchange_currency\n \n as \n \n currency_exchange_currency\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_shop_amount as amount_shop,\n device_id, -- Will be included in 2025-07 release of GraphQL API\n gateway,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_currency_code as amount_shop_currency_code,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n lower(kind) as kind, -- lower in REST api\n receipt_json as receipt,\n currency_exchange_id, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_adjustment, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_original_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_final_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_currency, -- Will be included in 2025-07 release of GraphQL API\n error_code,\n lower(status) as status, -- lower in REST api\n staff_member_id as user_id,\n authorization_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(authorization_expires_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as authorization_expires_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_media.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_media"], "alias": "stg_shopify_gql__product_media", "checksum": {"name": "sha256", "checksum": "cdb03869e9ddfe19b2ce602f5a435a4dd2c24e9ef9e9f38fa6417a3ffaf4e1d9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id`, `media_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.424721, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_media_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_shopify_gql__product_media_tmp')),\n staging_columns=get_graphql_product_media_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n product_id,\n media_id,\n source_relation, \n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n {{ dbt_utils.generate_surrogate_key(['product_id', 'media_id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n media_id,\n source_relation, \n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n md5(cast(coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_variant.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_variant.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_variant"], "alias": "stg_shopify_gql__product_variant", "checksum": {"name": "sha256", "checksum": "c7030869bd75cbabff68beaf7e71249275594b03fc2b06429962e8c596ba07de"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product variant in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `variant_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_available_for_sale": {"name": "is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_components_required": {"name": "has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4399962, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_variant_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_shopify_gql__product_variant_tmp')),\n staging_columns=get_graphql_product_variant_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n taxable as is_taxable,\n barcode,\n inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n tax_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('product_variant_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_variant_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n available_for_sale\n \n as \n \n available_for_sale\n \n, \n \n \n barcode\n \n as \n \n barcode\n \n, \n \n \n compare_at_price\n \n as \n \n compare_at_price\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_policy\n \n as \n \n inventory_policy\n \n, \n \n \n inventory_quantity\n \n as \n \n inventory_quantity\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n position\n \n as \n \n position\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n requires_components\n \n as \n \n requires_components\n \n, \n \n \n sellable_online_quantity\n \n as \n \n sellable_online_quantity\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tax_code\n \n as \n \n tax_code\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 \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n taxable as is_taxable,\n barcode,\n inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n tax_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_image": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_image", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__media_image.sql", "original_file_path": "models/graphql/stg_shopify_gql__media_image.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_image", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__media_image"], "alias": "stg_shopify_gql__media_image", "checksum": {"name": "sha256", "checksum": "69407476920c94773e783d596ed84aaedfefb3524efba4a654239771ec7bad8f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing image-specific properties for media assets.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `media_id`, `image_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4224176, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__media_image_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__media_image_tmp')),\n staging_columns=get_graphql_media_image_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['media_id', 'image_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__media_image_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_media_image_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__media_image.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation,\n md5(cast(coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(image_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__abandoned_checkout.sql", "original_file_path": "models/graphql/stg_shopify_gql__abandoned_checkout.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__abandoned_checkout"], "alias": "stg_shopify_gql__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "07a4852ed7c97ff18d1a526ca4d4f355ab85f81fc1e7cc652030f6a39732159a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `checkout_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_shop_amount": {"name": "total_duties_shop_amount", "description": "The total duties of the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_pres_amount": {"name": "total_duties_pres_amount", "description": "The total duties of the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_shop_currency_code": {"name": "total_duties_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_pres_currency_code": {"name": "total_duties_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_amount": {"name": "total_line_items_price_shop_amount", "description": "The sum of the prices of all line items in the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_amount": {"name": "total_line_items_price_pres_amount", "description": "The sum of the prices of all line items in the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_currency_code": {"name": "total_line_items_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_currency_code": {"name": "total_line_items_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The sum of all the taxes applied to the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The sum of all the taxes applied to the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "completed_at": {"name": "completed_at", "description": "The date and time when the buyer completed the checkout. Null if the checkout has not been completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The price of the checkout before shipping and taxes in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The price of the checkout before shipping and taxes in *presentment* currencyy. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.313034, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__abandoned_checkout_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_shopify_gql__abandoned_checkout_tmp')),\n staging_columns=get_graphql_abandoned_checkout_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n customer_id,\n id as checkout_id,\n name,\n note,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n taxes_included as has_taxes_included,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_duties_set_shop_amount as total_duties_shop_amount,\n total_duties_set_shop_currency_code as total_duties_shop_currency_code,\n total_duties_set_pres_amount as total_duties_pres_amount,\n total_duties_set_pres_currency_code as total_duties_pres_currency_code,\n total_line_items_price_set_shop_amount as total_line_items_price_shop_amount,\n total_line_items_price_set_shop_currency_code as total_line_items_price_shop_currency_code,\n total_line_items_price_set_pres_amount as total_line_items_price_pres_amount,\n total_line_items_price_set_pres_currency_code as total_line_items_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(completed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as completed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_abandoned_checkout_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n abandoned_checkout_url\n \n as \n \n abandoned_checkout_url\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n completed_at\n \n as \n \n completed_at\n \n, \n \n \n customer_id\n \n as \n \n customer_id\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 note\n \n as \n \n note\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n subtotal_price_set_pres_amount\n \n as \n \n subtotal_price_set_pres_amount\n \n, \n \n \n subtotal_price_set_pres_currency_code\n \n as \n \n subtotal_price_set_pres_currency_code\n \n, \n \n \n subtotal_price_set_shop_amount\n \n as \n \n subtotal_price_set_shop_amount\n \n, \n \n \n subtotal_price_set_shop_currency_code\n \n as \n \n subtotal_price_set_shop_currency_code\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n total_discount_set_pres_amount\n \n as \n \n total_discount_set_pres_amount\n \n, \n \n \n total_discount_set_pres_currency_code\n \n as \n \n total_discount_set_pres_currency_code\n \n, \n \n \n total_discount_set_shop_amount\n \n as \n \n total_discount_set_shop_amount\n \n, \n \n \n total_discount_set_shop_currency_code\n \n as \n \n total_discount_set_shop_currency_code\n \n, \n \n \n total_duties_set_pres_amount\n \n as \n \n total_duties_set_pres_amount\n \n, \n \n \n total_duties_set_pres_currency_code\n \n as \n \n total_duties_set_pres_currency_code\n \n, \n \n \n total_duties_set_shop_amount\n \n as \n \n total_duties_set_shop_amount\n \n, \n \n \n total_duties_set_shop_currency_code\n \n as \n \n total_duties_set_shop_currency_code\n \n, \n \n \n total_line_items_price_set_pres_amount\n \n as \n \n total_line_items_price_set_pres_amount\n \n, \n \n \n total_line_items_price_set_pres_currency_code\n \n as \n \n total_line_items_price_set_pres_currency_code\n \n, \n \n \n total_line_items_price_set_shop_amount\n \n as \n \n total_line_items_price_set_shop_amount\n \n, \n \n \n total_line_items_price_set_shop_currency_code\n \n as \n \n total_line_items_price_set_shop_currency_code\n \n, \n \n \n total_price_set_pres_amount\n \n as \n \n total_price_set_pres_amount\n \n, \n \n \n total_price_set_pres_currency_code\n \n as \n \n total_price_set_pres_currency_code\n \n, \n \n \n total_price_set_shop_amount\n \n as \n \n total_price_set_shop_amount\n \n, \n \n \n total_price_set_shop_currency_code\n \n as \n \n total_price_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n customer_id,\n id as checkout_id,\n name,\n note,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n taxes_included as has_taxes_included,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_duties_set_shop_amount as total_duties_shop_amount,\n total_duties_set_shop_currency_code as total_duties_shop_currency_code,\n total_duties_set_pres_amount as total_duties_pres_amount,\n total_duties_set_pres_currency_code as total_duties_pres_currency_code,\n total_line_items_price_set_shop_amount as total_line_items_price_shop_amount,\n total_line_items_price_set_shop_currency_code as total_line_items_price_shop_currency_code,\n total_line_items_price_set_pres_amount as total_line_items_price_pres_amount,\n total_line_items_price_set_pres_currency_code as total_line_items_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n cast(\n cast(cast(completed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as completed_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection"], "alias": "stg_shopify_gql__collection", "checksum": {"name": "sha256", "checksum": "f3cc283d3c7ac17d0c9b19de8ef5940574461038364cc5f2e02db114340908bb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\"). \n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "rule_logic": {"name": "rule_logic", "description": "Whether the `rules` are disjunctive (logical `OR`) or conjunctive (logical `AND`)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values incline - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.3151076, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_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_shopify_gql__collection_tmp')),\n staging_columns=get_graphql_collection_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when applied_disjunctively is null then null\n when applied_disjunctively then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n sort_order,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__collection.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n applied_disjunctively\n \n as \n \n applied_disjunctively\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n sort_order\n \n as \n \n sort_order\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 \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when applied_disjunctively is null then null\n when applied_disjunctively then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n sort_order,\n title,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__refund", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__refund.sql", "original_file_path": "models/graphql/stg_shopify_gql__refund.sql", "unique_id": "model.shopify_source.stg_shopify_gql__refund", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__refund"], "alias": "stg_shopify_gql__refund", "checksum": {"name": "sha256", "checksum": "dcdb84868e1656f35342c6bc14ef62d6604ad84a1dffd60a6b759b4e9446bb12"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a refund within Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `refund_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "return_id": {"name": "return_id", "description": "Reference to the return which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_pres_amount": {"name": "total_refunded_pres_amount", "description": "The total amount across all transactions for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_pres_currency_code": {"name": "total_refunded_pres_currency_code", "description": "The three letter currency code for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_shop_amount": {"name": "total_refunded_shop_amount", "description": "The total amount across all transactions for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_shop_currency_code": {"name": "total_refunded_shop_currency_code", "description": "The three letter currency code for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4448168, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__refund_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_shopify_gql__refund_tmp')),\n staging_columns=get_graphql_refund_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as refund_id,\n note,\n order_id,\n staff_member_id as user_id,\n return_id,\n total_refunded_set_pres_amount as total_refunded_pres_amount,\n total_refunded_set_pres_currency_code as total_refunded_pres_currency_code,\n total_refunded_set_shop_amount as total_refunded_shop_amount,\n total_refunded_set_shop_currency_code as total_refunded_shop_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__refund.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n return_id\n \n as \n \n return_id\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n total_refunded_set_pres_amount\n \n as \n \n total_refunded_set_pres_amount\n \n, \n \n \n total_refunded_set_pres_currency_code\n \n as \n \n total_refunded_set_pres_currency_code\n \n, \n \n \n total_refunded_set_shop_amount\n \n as \n \n total_refunded_set_shop_amount\n \n, \n \n \n total_refunded_set_shop_currency_code\n \n as \n \n total_refunded_set_shop_currency_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as refund_id,\n note,\n order_id,\n staff_member_id as user_id,\n return_id,\n total_refunded_set_pres_amount as total_refunded_pres_amount,\n total_refunded_set_pres_currency_code as total_refunded_pres_currency_code,\n total_refunded_set_shop_amount as total_refunded_shop_amount,\n total_refunded_set_shop_currency_code as total_refunded_shop_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_application": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_application.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_application.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_application", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_application"], "alias": "stg_shopify_gql__discount_application", "checksum": {"name": "sha256", "checksum": "4bf285a6880d9d733f1165b4e3f0f50282d80b3e33bb5de1eba42941ef54a367"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing discount applications, which define how discounts were applied at the order level.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to all line items (`all`) or only those that are specifically entitled (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount value is a `percentage` or `fixed_amount`. If `target_type` is `shipping_line`, only `percentage` is accepted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4014552, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_application_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_shopify_gql__discount_application_tmp')),\n staging_columns=get_graphql_discount_application_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n lower(allocation_method) as allocation_method,\n upper(code) as code,\n index,\n order_id,\n lower(target_selection) as target_selection,\n lower(target_type) as target_type,\n value_amount,\n value_percentage,\n value_currency_code,\n case \n when value_percentage is not null then 'percentage'\n when lower(target_type) = 'shipping_line' then 'shipping'\n when value_amount is not null then 'fixed_amount'\n else null end as value_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['index', 'order_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_application_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_application.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocation_method\n \n as \n \n allocation_method\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n target_selection\n \n as \n \n target_selection\n \n, \n \n \n target_type\n \n as \n \n target_type\n \n, \n \n \n value_amount\n \n as \n \n value_amount\n \n, \n \n \n value_currency_code\n \n as \n \n value_currency_code\n \n, \n \n \n value_percentage\n \n as \n \n value_percentage\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n lower(allocation_method) as allocation_method,\n upper(code) as code,\n index,\n order_id,\n lower(target_selection) as target_selection,\n lower(target_type) as target_type,\n value_amount,\n value_percentage,\n value_currency_code,\n case \n when value_percentage is not null then 'percentage'\n when lower(target_type) = 'shipping_line' then 'shipping'\n when value_amount is not null then 'fixed_amount'\n else null end as value_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_tracking_info"], "alias": "stg_shopify_gql__fulfillment_tracking_info", "checksum": {"name": "sha256", "checksum": "b81b5a9a260e0144655ecdf19307a4fd7bc3e27d08f38b679573649357273654"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents tracking information associated with a fulfillment. Used by Shopify to generate clickable tracking numbers and delivery updates.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_id": {"name": "fulfillment_id", "description": "The unique identifier of the fulfillment this tracking info belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company. For supported carriers, Shopify automatically builds tracking URLs and may update the shipment status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Tracking number for the fulfillment. If a known tracking company is specified, or the number matches a known format, Shopify may auto-generate a tracking URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_url": {"name": "tracking_url", "description": "Direct URL to track the fulfillment. This is displayed in the Shopify admin and customer notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the tracking information associated with a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4151735, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_tracking_info', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_tracking_info_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_shopify_gql__fulfillment_tracking_info_tmp')),\n staging_columns=get_graphql_fulfillment_tracking_info_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n fulfillment_id,\n index,\n company as tracking_company,\n number as tracking_number,\n url as tracking_url,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['fulfillment_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_tracking_info_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n url\n \n as \n \n url\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n fulfillment_id,\n index,\n company as tracking_company,\n number as tracking_number,\n url as tracking_url,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(fulfillment_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_discount_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_discount_code"], "alias": "stg_shopify_gql__order_discount_code", "checksum": {"name": "sha256", "checksum": "46169dbd62882ab67770a3a78a62349267dba7b5a5a0ce940de18b35209b060c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Discount codes placed on orders.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4282484, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_discount_code_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_shopify_gql__order_discount_code_tmp')),\n staging_columns=get_graphql_order_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_basic": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_basic.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_basic.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_basic"], "alias": "stg_shopify_gql__discount_code_basic", "checksum": {"name": "sha256", "checksum": "6d6b5c65be3377b64f2b0a2c42b7df1f71649dd2aaa52ba1464ebec3e2f7ef5e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata about basic discount codes created by merchants.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4049523, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_basic_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_shopify_gql__discount_code_basic_tmp')),\n staging_columns=get_graphql_discount_code_basic_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_basic_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_basic_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_basic.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_note_attribute": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_note_attribute.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_note_attribute.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_note_attribute"], "alias": "stg_shopify_gql__order_note_attribute", "checksum": {"name": "sha256", "checksum": "7873d5d4778fda0c06ad067718d305252d77e07908f715611688af7d7fb948d8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing custom attributes placed on orders.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `name`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4318836, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_note_attribute_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_shopify_gql__order_note_attribute_tmp')),\n staging_columns=get_graphql_order_note_attribute_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'name', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_note_attribute_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_note_attribute_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_note_attribute.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tender_transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__tender_transaction.sql", "original_file_path": "models/graphql/stg_shopify_gql__tender_transaction.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__tender_transaction"], "alias": "stg_shopify_gql__tender_transaction", "checksum": {"name": "sha256", "checksum": "10ec55a65a5226c5e72a4837722d9753808b9fab6f01ea59b97f8b9733ff6e95"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `transaction_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4496076, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__tender_transaction_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_shopify_gql__tender_transaction_tmp')),\n staging_columns=get_graphql_tender_transaction_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency_code as currency,\n payment_method,\n remote_reference,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__tender_transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_tender_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__tender_transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n payment_method\n \n as \n \n payment_method\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n remote_reference\n \n as \n \n remote_reference\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency_code as currency,\n payment_method,\n remote_reference,\n user_id,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer"], "alias": "stg_shopify_gql__customer", "checksum": {"name": "sha256", "checksum": "ee040da4cd184398d97000afa6857728219292a2b055904acf172c7d3505cd03"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.3015282, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_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_shopify_gql__customer_tmp')),\n staging_columns=get_graphql_customer_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n lower(email_marketing_consent_state) as marketing_consent_state,\n lower(email_marketing_consent_opt_in_level) as marketing_opt_in_level,\n {{ shopify_source.fivetran_convert_timezone(column='cast(email_marketing_consent_updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as marketing_consent_updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n {{ fivetran_utils.fill_pass_through_columns('customer_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n email_marketing_consent_opt_in_level\n \n as \n \n email_marketing_consent_opt_in_level\n \n, \n \n \n email_marketing_consent_state\n \n as \n \n email_marketing_consent_state\n \n, \n \n \n email_marketing_consent_updated_at\n \n as \n \n email_marketing_consent_updated_at\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n orders_count\n \n as \n \n orders_count\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n tax_exempt\n \n as \n \n tax_exempt\n \n, \n \n \n total_spent\n \n as \n \n total_spent\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n verified_email\n \n as \n \n verified_email\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n lower(email_marketing_consent_state) as marketing_consent_state,\n lower(email_marketing_consent_opt_in_level) as marketing_opt_in_level,\n cast(\n cast(cast(email_marketing_consent_updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as marketing_consent_updated_at,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_tag"], "alias": "stg_shopify_gql__product_tag", "checksum": {"name": "sha256", "checksum": "7f63c730d6dca3cbed580fdb8e75a6f808816c7d132c861e57e18b7600c7cd43"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the product.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.442286, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_tag_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_shopify_gql__product_tag_tmp')),\n staging_columns=get_graphql_product_tag_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['product_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_tag"], "alias": "stg_shopify_gql__order_tag", "checksum": {"name": "sha256", "checksum": "1b21c4d52ba47cab2b79f8ed6d47375b9c817395c7632a7ab2816bff9f78e77b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the order.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4367754, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_tag_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_shopify_gql__order_tag_tmp')),\n staging_columns=get_graphql_order_tag_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__metafield": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__metafield", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__metafield.sql", "original_file_path": "models/graphql/stg_shopify_gql__metafield.sql", "unique_id": "model.shopify_source.stg_shopify_gql__metafield", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__metafield"], "alias": "stg_shopify_gql__metafield", "checksum": {"name": "sha256", "checksum": "4396fe0f88e8e01449008a5e44f202694eca0ffff8fd9a6bf7fb8fc3ce6df932"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context. \n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `metafield_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_id": {"name": "metafield_id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource_id": {"name": "owner_resource_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_reference": {"name": "metafield_reference", "description": "Combination of the namespace and key columns. This field is key for metafield mapping in downstream models.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating the most up to date record identified by the most recent updated_at field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4237921, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_metafield', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__metafield_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_shopify_gql__metafield_tmp')),\n staging_columns=get_graphql_metafield_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(type) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n lower({{ dbt.concat([\"namespace\",\"'_'\",\"key\"]) }}) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_metafield_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt.concat", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__metafield.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n 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 id\n \n as \n \n id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n namespace\n \n as \n \n namespace\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n owner_resource\n \n as \n \n owner_resource\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(type) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n lower(namespace || '_' || key) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_variant_media.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_variant_media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_variant_media"], "alias": "stg_shopify_gql__product_variant_media", "checksum": {"name": "sha256", "checksum": "0127c3b8b208869da17e7b9e75af811a5ece076af61f156cba239e76cba5337e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_variant_id`, `media_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4408782, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_product_variant_media', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_variant_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__product_variant_media_tmp')),\n staging_columns=get_graphql_product_variant_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['product_variant_id', 'media_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_variant_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_variant_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation,\n md5(cast(coalesce(cast(product_variant_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection_product.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection_product.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_product", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection_product"], "alias": "stg_shopify_gql__collection_product", "checksum": {"name": "sha256", "checksum": "f1dafc3138b77c46252e3d61f0ce084cdd24ccdd94e56f0212db3aca550e9aa6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id`, `product_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.3160212, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_product_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_shopify_gql__collection_product_tmp')),\n staging_columns=get_graphql_collection_product_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['collection_id', 'product_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__collection_product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n collection_id\n \n as \n \n collection_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(collection_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_quantity": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_quantity.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_quantity.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_quantity"], "alias": "stg_shopify_gql__inventory_quantity", "checksum": {"name": "sha256", "checksum": "bf44e42da315e47a9d9b7fa5b9e4cad92ba2f087de9c02766a15811a1c5dfb55"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The total quantity of the inventory item available at all locations.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_quantity_id`, `inventory_level_id`, `inventory_item_id`, `inventory_state_name`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity_id": {"name": "inventory_quantity_id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_state_name": {"name": "inventory_state_name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4189284, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_quantity_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_shopify_gql__inventory_quantity_tmp')),\n staging_columns=get_graphql_inventory_quantity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'inventory_item_id', 'inventory_level_id', 'name', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_quantity_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_quantity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_quantity.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_level_id\n \n as \n \n inventory_level_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_item_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_level_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_event": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_event.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_event.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_event"], "alias": "stg_shopify_gql__fulfillment_event", "checksum": {"name": "sha256", "checksum": "e8a4a0010c4cfa96bfd6c5a789ddf6df815ada5e397d8ee06d7480eb9a6150ba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_event_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_event_id": {"name": "fulfillment_event_id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4119263, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_event_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_shopify_gql__fulfillment_event_tmp')),\n staging_columns=get_graphql_fulfillment_event_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n lower(status) as status,\n message,\n {{ shopify_source.fivetran_convert_timezone(column='cast(estimated_delivery_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as estimated_delivery_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(happened_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_event_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_event.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\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 created_at\n \n as \n \n created_at\n \n, \n \n \n estimated_delivery_at\n \n as \n \n estimated_delivery_at\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n happened_at\n \n as \n \n happened_at\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 longitude\n \n as \n \n longitude\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n lower(status) as status,\n message,\n cast(\n cast(cast(estimated_delivery_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as estimated_delivery_at,\n cast(\n cast(cast(happened_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_free_shipping.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_free_shipping.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_free_shipping"], "alias": "stg_shopify_gql__discount_code_free_shipping", "checksum": {"name": "sha256", "checksum": "cdae529b92ea53946c636f7f8bcb98c4f7ff4b853caa5dad542cbf5d34b0adfd"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for free shipping discount codes in Shopify, where shipping costs are discounted based on qualifying conditions.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4080951, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_free_shipping_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_shopify_gql__discount_code_free_shipping_tmp')),\n staging_columns=get_graphql_discount_code_free_shipping_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_free_shipping_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_free_shipping_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_free_shipping.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_address": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_address.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_address.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_address", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_address"], "alias": "stg_shopify_gql__customer_address", "checksum": {"name": "sha256", "checksum": "cca4e8b6590274294b6e15baebf9cd8153a1a9ab4925ab353bc35319ef93dda9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a customer's mailing address and includes additional geographic metadata.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_address_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_address_id": {"name": "customer_address_id", "description": "A globally unique identifier for the customer address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer to whom this address belongs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The first line of the address (e.g., street address or PO Box).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The second line of the address (e.g., apartment, suite, or unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The name of the city, district, village, or town for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The company or organization associated with the customer at this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The full country name for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter ISO country code for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_default": {"name": "is_default", "description": "Indicates if this address is the default shipping address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The full name of the customer, derived from first and last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer\u2019s phone number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The name of the region, state, or province for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The standardized zone or province code for the region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code of the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "validation_result_summary": {"name": "validation_result_summary", "description": "A summary of address validation results (e.g., match confidence or status).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The timezone associated with the address, if available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_coordinates_validated": {"name": "has_coordinates_validated", "description": "Indicates whether the latitude and longitude coordinates were validated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.456803, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_address_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__customer_address_tmp')),\n staging_columns=get_graphql_customer_address_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_address_id,\n customer_id,\n address_1,\n address_2,\n city,\n company,\n country,\n country_code,\n first_name,\n is_default,\n last_name,\n latitude,\n longitude,\n name,\n phone,\n province,\n province_code,\n zip,\n validation_result_summary,\n timezone,\n coordinates_validated as has_coordinates_validated,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_address_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_address.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n is_default\n \n as \n \n is_default\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n latitude\n \n as \n \n latitude\n \n, \n \n \n longitude\n \n as \n \n longitude\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n zip\n \n as \n \n zip\n \n, \n \n \n validation_result_summary\n \n as \n \n validation_result_summary\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n coordinates_validated\n \n as \n \n coordinates_validated\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_address_id,\n customer_id,\n address_1,\n address_2,\n city,\n company,\n country,\n country_code,\n first_name,\n is_default,\n last_name,\n latitude,\n longitude,\n name,\n phone,\n province,\n province_code,\n zip,\n validation_result_summary,\n timezone,\n coordinates_validated as has_coordinates_validated,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_bxgy.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_bxgy.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_bxgy"], "alias": "stg_shopify_gql__discount_code_bxgy", "checksum": {"name": "sha256", "checksum": "8a278226cd258f939cddc99dc0bfaaf6eeb8173af7ecef73c6cee066cffb65d6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for Buy X Get Y-style discount codes in Shopify, where discounts are applied based on product quantity thresholds.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4065282, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_bxgy_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_shopify_gql__discount_code_bxgy_tmp')),\n staging_columns=get_graphql_discount_code_bxgy_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n total_sales_amount,\n total_sales_currency_code, \n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_bxgy_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_bxgy_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_bxgy.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n total_sales_amount,\n total_sales_currency_code, \n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_adjustment.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_adjustment.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_adjustment"], "alias": "stg_shopify_gql__order_adjustment", "checksum": {"name": "sha256", "checksum": "9ddd660936d0935e7496a6a0384b2fbb096e604fec6082d155ae5d6594d61a81"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_adjustment_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_id": {"name": "order_adjustment_id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three letter currency code for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three letter shop currency code of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_pres": {"name": "tax_amount_pres", "description": "The tax amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_pres_currency_code": {"name": "tax_amount_pres_currency_code", "description": "The three letter currency code for the tax of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_shop": {"name": "tax_amount_shop", "description": "The tax amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_shop_currency_code": {"name": "tax_amount_shop_currency_code", "description": "The three letter shop currency code of the tax for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4272702, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_adjustment_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__order_adjustment_tmp')),\n staging_columns=get_graphql_order_adjustment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_amount as amount_shop,\n amount_set_shop_currency_code as amount_shop_currency_code,\n tax_amount_set_pres_amount as tax_amount_pres,\n tax_amount_set_pres_currency_code as tax_amount_pres_currency_code,\n tax_amount_set_shop_amount as tax_amount_shop,\n tax_amount_set_shop_currency_code as tax_amount_shop_currency_code,\n reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_adjustment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_adjustment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_adjustment.sql", "compiled": true, "compiled_code": "\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n amount_set_pres_amount\n \n as \n \n amount_set_pres_amount\n \n, \n \n \n amount_set_pres_currency_code\n \n as \n \n amount_set_pres_currency_code\n \n, \n \n \n amount_set_shop_amount\n \n as \n \n amount_set_shop_amount\n \n, \n \n \n amount_set_shop_currency_code\n \n as \n \n amount_set_shop_currency_code\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n tax_amount_set_pres_amount\n \n as \n \n tax_amount_set_pres_amount\n \n, \n \n \n tax_amount_set_pres_currency_code\n \n as \n \n tax_amount_set_pres_currency_code\n \n, \n \n \n tax_amount_set_shop_amount\n \n as \n \n tax_amount_set_shop_amount\n \n, \n \n \n tax_amount_set_shop_currency_code\n \n as \n \n tax_amount_set_shop_currency_code\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_amount as amount_shop,\n amount_set_shop_currency_code as amount_shop_currency_code,\n tax_amount_set_pres_amount as tax_amount_pres,\n tax_amount_set_pres_currency_code as tax_amount_pres_currency_code,\n tax_amount_set_shop_amount as tax_amount_shop,\n tax_amount_set_shop_currency_code as tax_amount_shop_currency_code,\n reason,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_redeem_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_redeem_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_redeem_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_redeem_code"], "alias": "stg_shopify_gql__discount_redeem_code", "checksum": {"name": "sha256", "checksum": "d67dd71e571048d9820f777d5b66057c66c157c43e2937fd7cd59bbf13b5a300"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each redeem code is tied to a parent discount and may be created by an app or manually.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This is updated asynchronously and may differ from real-time usage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (typically an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount the redeem code is associated with (e.g., `discount_code_basic`, `discount_code_app`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505369.4092624, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_redeem_code_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_shopify_gql__discount_redeem_code_tmp')),\n staging_columns=get_graphql_discount_redeem_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_redeem_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_redeem_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_redeem_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_by_description\n \n as \n \n created_by_description\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_by_title\n \n as \n \n created_by_title\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n discount_type\n \n as \n \n discount_type\n \n, \n \n \n id\n \n as \n \n id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_redeem_code_tmp"], "alias": "stg_shopify_gql__discount_redeem_code_tmp", "checksum": {"name": "sha256", "checksum": "cfc36e942b2ec63cfed9b2ce3fffc11ae5f379cdd12ffb28389ed0380c25e6d0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.373008, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_redeem_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_redeem_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_redeem_code"], ["shopify_graphql", "discount_redeem_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__refund_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__refund_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__refund_tmp"], "alias": "stg_shopify_gql__refund_tmp", "checksum": {"name": "sha256", "checksum": "a11a22eb9bcb9a62e27a0e2ce13c47296be38a753bd3a1fa9df5e8c90c1af4ab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.381582, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "refund"], ["shopify_graphql", "refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__refund_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_bxgy_tmp"], "alias": "stg_shopify_gql__discount_code_bxgy_tmp", "checksum": {"name": "sha256", "checksum": "74f77e4738c5c72ca63e005803146b7cdce868cd42f4187da43c47e040a9a713"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.3901672, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_bxgy', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_bxgy_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_bxgy"], ["shopify_graphql", "discount_code_bxgy"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_tracking_info_tmp"], "alias": "stg_shopify_gql__fulfillment_tracking_info_tmp", "checksum": {"name": "sha256", "checksum": "916e15ae9d3b58b4bfaed65f98893baa84653e193472d33ec051a14323d7b859"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.3996027, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_tracking_info', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_tracking_info', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_tracking_info_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_tracking_info"], ["shopify_graphql", "fulfillment_tracking_info"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_tmp"], "alias": "stg_shopify_gql__customer_tmp", "checksum": {"name": "sha256", "checksum": "cbad42ba9c8311e55176c04ed3a661a3cf4a5ac59514099a69a595235769a2a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.4085956, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer"], ["shopify_graphql", "customer"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_tmp"], "alias": "stg_shopify_gql__product_tmp", "checksum": {"name": "sha256", "checksum": "d6bdb88269a24c1e7e047ad5cbcd7cb41689fdfe4028c6b73feb2cf06f5d8c4e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.4171531, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product"], ["shopify_graphql", "product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_visit_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_visit_tmp"], "alias": "stg_shopify_gql__customer_visit_tmp", "checksum": {"name": "sha256", "checksum": "a6f824dc3840066caffed56e0389dd7ef63cfb7814e79f0dbedf937bc738e392"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.4257646, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_customer_visit', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_visit', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_visit_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_visit"], ["shopify_graphql", "customer_visit"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__shop_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__shop_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__shop_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__shop_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__shop_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__shop_tmp"], "alias": "stg_shopify_gql__shop_tmp", "checksum": {"name": "sha256", "checksum": "484564c85bbddaca318f1165dc0418a31023ea29c6ff8bc0531246eeb8d59a1c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.512708, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__shop_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='shop', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_shop_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "shop"], ["shopify_graphql", "shop"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__shop_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_shop_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_quantity_tmp"], "alias": "stg_shopify_gql__inventory_quantity_tmp", "checksum": {"name": "sha256", "checksum": "07d53773e990ce9f6350463bc39d7d11d10a77623f572ba7e12f9d4ec1fc637c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5213795, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_quantity', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_quantity_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_quantity"], ["shopify_graphql", "inventory_quantity"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_shipping_line_tmp"], "alias": "stg_shopify_gql__order_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "48a6b1d4908a3a78e6f338213ae2230d0666ea0fd398dc7df1ce269582c553a8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5298758, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_shipping_line"], ["shopify_graphql", "order_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_tmp"], "alias": "stg_shopify_gql__collection_tmp", "checksum": {"name": "sha256", "checksum": "13622f8f6269a36bc80ce5b592234d5f1b7c88cbf80e19bf6d50aa4c8886d4ab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5383668, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection"], ["shopify_graphql", "collection"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__collection_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_collection_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_item_tmp"], "alias": "stg_shopify_gql__inventory_item_tmp", "checksum": {"name": "sha256", "checksum": "562f5900bff17e2074910b889c93f479d175ca8d45a1c3a94c7f1145632af195"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5479505, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_item"], ["shopify_graphql", "inventory_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_basic_tmp"], "alias": "stg_shopify_gql__discount_code_basic_tmp", "checksum": {"name": "sha256", "checksum": "3d2c8273708359c8f712f46e5d5178c0d6807fa06cddfac2cef2890f360b6bc2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5564592, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_basic', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_basic_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_basic"], ["shopify_graphql", "discount_code_basic"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_adjustment_tmp"], "alias": "stg_shopify_gql__order_adjustment_tmp", "checksum": {"name": "sha256", "checksum": "41de7ec16964a262f4fa0545875703abc0c7d188982b1b9697770663e0e5557c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.564828, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_adjustment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_adjustment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_adjustment"], ["shopify_graphql", "order_adjustment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "compiled": true, "compiled_code": "\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_note_attribute_tmp"], "alias": "stg_shopify_gql__order_note_attribute_tmp", "checksum": {"name": "sha256", "checksum": "1dc3d9e025bc87c95c74672a8a46a3e9751b91727f7e8de84c5d5c4b0ec7bca9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5732546, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_note_attribute', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_note_attribute_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_note_attribute"], ["shopify_graphql", "order_note_attribute"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_application_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_application_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_application_tmp"], "alias": "stg_shopify_gql__discount_application_tmp", "checksum": {"name": "sha256", "checksum": "51b3cf65b837e23b8567427012151bc4daed3ddaa38887bf0f6ed09aa65f98d9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5828214, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_application', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_application_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_application"], ["shopify_graphql", "discount_application"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_app_tmp"], "alias": "stg_shopify_gql__discount_code_app_tmp", "checksum": {"name": "sha256", "checksum": "42d515dfaa9edf7645c90b5d4e3fba1b10ce11c8e33e5f9004dc3286c70abbb5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.5912638, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_discount_code_app', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_app', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_app_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_app"], ["shopify_graphql", "discount_code_app"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_shipping_tax_line_tmp"], "alias": "stg_shopify_gql__order_shipping_tax_line_tmp", "checksum": {"name": "sha256", "checksum": "2f563d319f6ab1e785c0c0dd8c46c7eb60b34036eab89dff6306ce7e0318dc2a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.6002378, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_shipping_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_shipping_tax_line"], ["shopify_graphql", "order_shipping_tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_line_refund_tmp"], "alias": "stg_shopify_gql__order_line_refund_tmp", "checksum": {"name": "sha256", "checksum": "de5d8368b1e2f8a01f8457ecfb538f18f39940fbfd88a8bd4317449bdb3500d5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.608783, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line_refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_line_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_line_refund"], ["shopify_graphql", "order_line_refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__metafield_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__metafield_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__metafield_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__metafield_tmp"], "alias": "stg_shopify_gql__metafield_tmp", "checksum": {"name": "sha256", "checksum": "745867433e8c372b8247770c5511da696b44146d8a9cecbb805e2fbccc407b1b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.6184773, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_metafield', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='metafield', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_metafield_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "metafield"], ["shopify_graphql", "metafield"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_metafield_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_line_tmp"], "alias": "stg_shopify_gql__order_line_tmp", "checksum": {"name": "sha256", "checksum": "8d070802154be87b0f6abc6a84d1cc04a7479c71e72d51f9c29e9b84ff0a4470"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.627292, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_line"], ["shopify_graphql", "order_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_variant_media_tmp"], "alias": "stg_shopify_gql__product_variant_media_tmp", "checksum": {"name": "sha256", "checksum": "a6a402d3eb1fc91386b58803aeea45dbfa70f93ad6fcc44aebe193e37428c941"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.635737, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_product_variant_media', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_variant_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_variant_media"], ["shopify_graphql", "product_variant_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_discount_code_tmp"], "alias": "stg_shopify_gql__order_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "e5f05cb907273a7d7faf0cb35b3f239d92e59bea6b53b3d9f874621d4702bacd"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.644592, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_discount_code"], ["shopify_graphql", "order_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_variant_tmp"], "alias": "stg_shopify_gql__product_variant_tmp", "checksum": {"name": "sha256", "checksum": "49b89b7bc716e35589007a5ab8431b1371c4a468f4be3bffbba33558f287c85b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.654377, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_variant_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_variant"], ["shopify_graphql", "product_variant"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_tmp"], "alias": "stg_shopify_gql__order_tmp", "checksum": {"name": "sha256", "checksum": "00d88df1afa1afc1c67823cb65c6c737c7efe99876be4543728c56578daa29fa"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.662821, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order"], ["shopify_graphql", "order"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__location_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__location_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__location_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__location_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__location_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__location_tmp"], "alias": "stg_shopify_gql__location_tmp", "checksum": {"name": "sha256", "checksum": "6e50fc60b6453e907f266a407a8ffd9c7e0509261b61e3a62d79bd98ff8f9d16"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.6713283, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__location_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='location', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_location_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "location"], ["shopify_graphql", "location"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__location_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_free_shipping_tmp"], "alias": "stg_shopify_gql__discount_code_free_shipping_tmp", "checksum": {"name": "sha256", "checksum": "de9a7bc807b211bfad12ecd0bbffc6f5566d4f52164b3bc66f5bb79a363ac4a1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.679844, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_free_shipping', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_free_shipping_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_free_shipping"], ["shopify_graphql", "discount_code_free_shipping"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tax_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__tax_line_tmp"], "alias": "stg_shopify_gql__tax_line_tmp", "checksum": {"name": "sha256", "checksum": "b797f714cca33152d58d9f9371337be2af75ba71868a9c645a5b661e30953bdb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.6896338, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "tax_line"], ["shopify_graphql", "tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_order_line_item_tmp"], "alias": "stg_shopify_gql__fulfillment_order_line_item_tmp", "checksum": {"name": "sha256", "checksum": "7da21a799b42d6572274d5c708e6c1820d534868af0169a999f3ba0baa558cf0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.698007, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_order_line_item', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_order_line_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_order_line_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_order_line_item"], ["shopify_graphql", "fulfillment_order_line_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_product_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_product_tmp"], "alias": "stg_shopify_gql__collection_product_tmp", "checksum": {"name": "sha256", "checksum": "265042e513f9f41755e3d67cb838c5a4bc2a0f30f0005797170d61c7c68c506f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7068753, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection_product"], ["shopify_graphql", "collection_product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_tmp"], "alias": "stg_shopify_gql__fulfillment_tmp", "checksum": {"name": "sha256", "checksum": "33c816c7194073933556f8e74f281eaea2e3f3c728d0cef25ac3270e69ac46b3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7154446, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment"], ["shopify_graphql", "fulfillment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__abandoned_checkout_tmp"], "alias": "stg_shopify_gql__abandoned_checkout_tmp", "checksum": {"name": "sha256", "checksum": "447fcf5964f191e3a35aac2df0126f572f80174deefc22e167e089b2c072d3ad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7239516, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_tmp\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_abandoned_checkout_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "abandoned_checkout"], ["shopify_graphql", "abandoned_checkout"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_tag_tmp"], "alias": "stg_shopify_gql__order_tag_tmp", "checksum": {"name": "sha256", "checksum": "ef3af11883c240380fbddf262db8be9cd7d8008833e23746bc1c7268ba0a43e1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7342832, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_tag"], ["shopify_graphql", "order_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_media_tmp"], "alias": "stg_shopify_gql__product_media_tmp", "checksum": {"name": "sha256", "checksum": "9fec30aae73d36ed6755c3f429db455f56b87fdfb24affac6bb8110c833d7538"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7428021, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_media"], ["shopify_graphql", "product_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_image_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_image_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_image_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__media_image_tmp"], "alias": "stg_shopify_gql__media_image_tmp", "checksum": {"name": "sha256", "checksum": "30d02cd315c4bc627fdb2de7d2c4910b8401ec97e7f9bd572c2f4efb219d3059"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.751366, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media_image', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_media_image_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "media_image"], ["shopify_graphql", "media_image"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_media_image_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__tender_transaction_tmp"], "alias": "stg_shopify_gql__tender_transaction_tmp", "checksum": {"name": "sha256", "checksum": "999811b7c8c9bbb9ca1f553177635c3ff561ce3a498c54e7c2d16ef471dc94a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7700717, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tender_transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_tender_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "tender_transaction"], ["shopify_graphql", "tender_transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__media_tmp"], "alias": "stg_shopify_gql__media_tmp", "checksum": {"name": "sha256", "checksum": "835c3851c7d05b5f89f126d660881e1bd1ba913531e40059ebc9a18e5814a12b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.778522, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "media"], ["shopify_graphql", "media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_allocation_tmp"], "alias": "stg_shopify_gql__discount_allocation_tmp", "checksum": {"name": "sha256", "checksum": "3031935efab97198e8bfd1d1818023693aed0298c4b4334573c1d099ccb4c8d2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7870574, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_allocation', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_allocation_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_allocation"], ["shopify_graphql", "discount_allocation"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "alias": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "fadf9a4496c441981f39419454d443a7be6f42ffdb6b1d9be43a628ec71d06c1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.7955928, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_abandoned_checkout_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "abandoned_checkout_discount_code"], ["shopify_graphql", "abandoned_checkout_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_level_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_level_tmp"], "alias": "stg_shopify_gql__inventory_level_tmp", "checksum": {"name": "sha256", "checksum": "e940f5fe7081ecb499500343359757242bb316d24954bd29464cccb19e675125"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.8057, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_level', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_level_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_level"], ["shopify_graphql", "inventory_level"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_tag_tmp"], "alias": "stg_shopify_gql__customer_tag_tmp", "checksum": {"name": "sha256", "checksum": "6c9353c051ba91aace024c85f929cfe6f1fc74e9bf69e7c185ba5abc16b3bad0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.8143315, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_tag"], ["shopify_graphql", "customer_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_event_tmp"], "alias": "stg_shopify_gql__fulfillment_event_tmp", "checksum": {"name": "sha256", "checksum": "b3d654e7eb8d3c87eed9e599ce914c626a86ec7426dd9501721e89556e6e3667"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.822834, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_event', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_event_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_event"], ["shopify_graphql", "fulfillment_event"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__transaction_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__transaction_tmp"], "alias": "stg_shopify_gql__transaction_tmp", "checksum": {"name": "sha256", "checksum": "2e07b515aabc2fcadb617d88f8bd4b308339b0f2425445340e95c18fe47ea54f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.8318124, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "transaction"], ["shopify_graphql", "transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_tag_tmp"], "alias": "stg_shopify_gql__product_tag_tmp", "checksum": {"name": "sha256", "checksum": "a24216b9e175dc892ba05ae61cef5b660627718f05f76c3773cd851609c471a0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.841662, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_tag"], ["shopify_graphql", "product_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_address_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_address_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_address_tmp"], "alias": "stg_shopify_gql__customer_address_tmp", "checksum": {"name": "sha256", "checksum": "3df59d0c9b1202ab5431236c9ffd08af4840856ea7e880991c6247ca328c89f4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754505367.8503604, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_address', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_address_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_address"], ["shopify_graphql", "customer_address"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c", "fqn": ["shopify", "unique_shopify_gql__customer_cohorts_customer_cohort_id"], "alias": "unique_shopify_gql__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.170201, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_cohorts", "attached_node": "model.shopify.shopify_gql__customer_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2", "fqn": ["shopify", "not_null_shopify_gql__customer_cohorts_customer_cohort_id"], "alias": "not_null_shopify_gql__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.1729963, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_cohorts", "attached_node": "model.shopify.shopify_gql__customer_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27", "fqn": ["shopify", "unique_shopify_gql__customer_email_cohorts_customer_cohort_id"], "alias": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.1754608, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_email_cohorts", "attached_node": "model.shopify.shopify_gql__customer_email_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f", "fqn": ["shopify", "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id"], "alias": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.1778352, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_email_cohorts", "attached_node": "model.shopify.shopify_gql__customer_email_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__orders_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077", "fqn": ["shopify", "unique_shopify_gql__orders_unique_key"], "alias": "unique_shopify_gql__orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.1804116, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__orders", "attached_node": "model.shopify.shopify_gql__orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__orders')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__orders_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041", "fqn": ["shopify", "not_null_shopify_gql__orders_unique_key"], "alias": "not_null_shopify_gql__orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.1827867, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__orders", "attached_node": "model.shopify.shopify_gql__orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__orders')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4"}, "created_at": 1754505368.1853015, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customers"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__customers\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__customers", "attached_node": "model.shopify.shopify_gql__customers", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__customers')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation"], "alias": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc"}, "created_at": 1754505368.210143, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_emails", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_emails"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__customer_emails", "attached_node": "model.shopify.shopify_gql__customer_emails", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__customer_emails')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__products_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__products_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326", "fqn": ["shopify", "unique_shopify_gql__products_unique_key"], "alias": "unique_shopify_gql__products_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2154577, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__products"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__products_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__products\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__products", "attached_node": "model.shopify.shopify_gql__products", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__products')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__products_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__products_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497", "fqn": ["shopify", "not_null_shopify_gql__products_unique_key"], "alias": "not_null_shopify_gql__products_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2178094, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__products"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__products_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__products\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__products", "attached_node": "model.shopify.shopify_gql__products", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__products')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__order_lines_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4", "fqn": ["shopify", "unique_shopify_gql__order_lines_unique_key"], "alias": "unique_shopify_gql__order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2203233, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__order_lines", "attached_node": "model.shopify.shopify_gql__order_lines", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__order_lines')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__order_lines_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db", "fqn": ["shopify", "not_null_shopify_gql__order_lines_unique_key"], "alias": "not_null_shopify_gql__order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2226894, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__order_lines", "attached_node": "model.shopify.shopify_gql__order_lines", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__order_lines')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__transactions_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__transactions_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c", "fqn": ["shopify", "unique_shopify_gql__transactions_unique_key"], "alias": "unique_shopify_gql__transactions_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2250717, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__transactions_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__transactions", "attached_node": "model.shopify.shopify_gql__transactions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__transactions_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__transactions_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d", "fqn": ["shopify", "not_null_shopify_gql__transactions_unique_key"], "alias": "not_null_shopify_gql__transactions_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2274055, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__transactions_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__transactions", "attached_node": "model.shopify.shopify_gql__transactions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__inventory_levels_inventory_item_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__inventory_levels_inventory_item_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957", "fqn": ["shopify", "not_null_shopify_gql__inventory_levels_inventory_item_id"], "alias": "not_null_shopify_gql__inventory_levels_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.229748, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__inventory_levels_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__inventory_levels_location_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__inventory_levels_location_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e", "fqn": ["shopify", "not_null_shopify_gql__inventory_levels_location_id"], "alias": "not_null_shopify_gql__inventory_levels_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2321916, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__inventory_levels_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e"}, "created_at": 1754505368.2345948, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\n group by inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__discounts_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5", "fqn": ["shopify", "unique_shopify_gql__discounts_unique_key"], "alias": "unique_shopify_gql__discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2398593, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__discounts_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994", "fqn": ["shopify", "not_null_shopify_gql__discounts_unique_key"], "alias": "not_null_shopify_gql__discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2423122, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__discounts_discount_code_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__discounts_discount_code_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264", "fqn": ["shopify", "not_null_shopify_gql__discounts_discount_code_id"], "alias": "not_null_shopify_gql__discounts_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2446659, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__discounts_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation"], "alias": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6"}, "created_at": 1754505368.2474594, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n code, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\n group by code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__daily_shop_shop_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__daily_shop_shop_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8", "fqn": ["shopify", "not_null_shopify_gql__daily_shop_shop_id"], "alias": "not_null_shopify_gql__daily_shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.2527, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__daily_shop"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__daily_shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__daily_shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.shopify_gql__daily_shop", "attached_node": "model.shopify.shopify_gql__daily_shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('shopify_gql__daily_shop')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a", "fqn": ["shopify", "unique_shopify__customer_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.376712, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "fqn": ["shopify", "not_null_shopify__customer_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.3793108, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182", "fqn": ["shopify", "unique_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.3816853, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "fqn": ["shopify", "not_null_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.384031, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51", "fqn": ["shopify", "unique_shopify__orders_orders_unique_key"], "alias": "unique_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.386373, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n orders_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is not null\ngroup by orders_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "fqn": ["shopify", "not_null_shopify__orders_orders_unique_key"], "alias": "not_null_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.388803, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect orders_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696"}, "created_at": 1754505368.3912573, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customers"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__customers\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customers", "attached_node": "model.shopify.shopify__customers", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customers')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation"], "alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f"}, "created_at": 1754505368.3967447, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_emails", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_emails"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__customer_emails\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customer_emails", "attached_node": "model.shopify.shopify__customer_emails", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customer_emails')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa"}, "created_at": 1754505368.4017744, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__products"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__products\"\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__products", "attached_node": "model.shopify.shopify__products", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__products')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e", "fqn": ["shopify", "unique_shopify__order_lines_order_lines_unique_key"], "alias": "unique_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4069135, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_lines_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is not null\ngroup by order_lines_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "unique", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "fqn": ["shopify", "not_null_shopify__order_lines_order_lines_unique_key"], "alias": "not_null_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4092643, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_lines_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981", "fqn": ["shopify", "unique_shopify__transactions_transactions_unique_id"], "alias": "unique_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.411763, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n transactions_unique_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is not null\ngroup by transactions_unique_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "fqn": ["shopify", "not_null_shopify__transactions_transactions_unique_id"], "alias": "not_null_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4141161, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transactions_unique_id\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_inventory_item_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_inventory_item_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "fqn": ["shopify", "not_null_shopify__inventory_levels_inventory_item_id"], "alias": "not_null_shopify__inventory_levels_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.416425, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_location_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_location_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0", "fqn": ["shopify", "not_null_shopify__inventory_levels_location_id"], "alias": "not_null_shopify__inventory_levels_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4187343, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b"}, "created_at": 1754505368.4211967, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\n group by inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f", "fqn": ["shopify", "unique_shopify__discounts_discounts_unique_key"], "alias": "unique_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4262753, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n discounts_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is not null\ngroup by discounts_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "fqn": ["shopify", "not_null_shopify__discounts_discounts_unique_key"], "alias": "not_null_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4287589, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discounts_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discount_code_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discount_code_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "fqn": ["shopify", "not_null_shopify__discounts_discount_code_id"], "alias": "not_null_shopify__discounts_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4311047, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation"], "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e"}, "created_at": 1754505368.43344, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n code, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__discounts\"\n group by code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__daily_shop_shop_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__daily_shop_shop_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f", "fqn": ["shopify", "not_null_shopify__daily_shop_shop_id"], "alias": "not_null_shopify__daily_shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.4386325, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__daily_shop"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__daily_shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"shopify__daily_shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.shopify__daily_shop", "attached_node": "model.shopify.shopify__daily_shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('shopify__daily_shop')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3"}, "created_at": 1754505368.4472642, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customers__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customers__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n customer_id, source_relation\n from __dbt__cte__shopify__customers__order_aggregates\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": [{"id": "model.shopify.shopify__customers__order_aggregates", "sql": " __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customers__order_aggregates", "attached_node": "model.shopify.shopify__customers__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customers__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04"}, "created_at": 1754505368.4525778, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__orders__order_line_aggregates", "attached_node": "model.shopify.shopify__orders__order_line_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__orders__order_line_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation"], "alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1"}, "created_at": 1754505368.4578722, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__emails__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__emails__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n email, source_relation\n from __dbt__cte__int_shopify__emails__order_aggregates\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__emails__order_aggregates", "sql": " __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__emails__order_aggregates", "attached_node": "model.shopify.int_shopify__emails__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__emails__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation"], "alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce"}, "created_at": 1754505368.4635057, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__customer_email_rollup", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__customer_email_rollup"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__customer_email_rollup", "attached_node": "model.shopify.int_shopify__customer_email_rollup", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__customer_email_rollup')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e"}, "created_at": 1754505368.4687595, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__inventory_level__aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__inventory_level__aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n variant_id, location_id, source_relation\n from __dbt__cte__int_shopify__inventory_level__aggregates\n group by variant_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify__inventory_level__aggregates", "sql": " __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__inventory_level__aggregates", "attached_node": "model.shopify.int_shopify__inventory_level__aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["variant_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__inventory_level__aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation"], "alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13"}, "created_at": 1754505368.47387, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discounts__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__discounts__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), validation_errors as (\n\n select\n code, type, source_relation\n from __dbt__cte__int_shopify__discounts__order_aggregates\n group by code, type, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discounts__order_aggregates", "sql": " __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__discounts__order_aggregates", "attached_node": "model.shopify.int_shopify__discounts__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "type", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__discounts__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation"], "alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936"}, "created_at": 1754505368.479554, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discounts__abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__discounts__abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), validation_errors as (\n\n select\n code, type, source_relation\n from __dbt__cte__int_shopify__discounts__abandoned_checkouts\n group by code, type, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "sql": " __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__discounts__abandoned_checkouts", "attached_node": "model.shopify.int_shopify__discounts__abandoned_checkouts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "type", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__discounts__abandoned_checkouts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac"}, "created_at": 1754505368.4848204, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), validation_errors as (\n\n select\n order_id, source_relation\n from __dbt__cte__int_shopify__order__shipping_aggregates\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__order__shipping_aggregates", "attached_node": "model.shopify.int_shopify__order__shipping_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__order__shipping_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28"}, "created_at": 1754505368.4901588, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__product__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__product__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), validation_errors as (\n\n select\n product_id, source_relation\n from __dbt__cte__int_shopify__product__order_line_aggregates\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__product__order_line_aggregates", "sql": " __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__product__order_line_aggregates", "attached_node": "model.shopify.int_shopify__product__order_line_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__product__order_line_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04"}, "created_at": 1754505368.4952366, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__products_with_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__products_with_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), validation_errors as (\n\n select\n product_id, source_relation\n from __dbt__cte__int_shopify__products_with_aggregates\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__products_with_aggregates", "sql": " __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__products_with_aggregates", "attached_node": "model.shopify.int_shopify__products_with_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__products_with_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95.sql", "original_file_path": "models/rest/standardized_models/shopify__standardized_models.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae", "fqn": ["shopify", "rest", "standardized_models", "dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95"}, "created_at": 1754505368.5150833, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__line_item_enhanced"]}, "compiled_path": "target/compiled/shopify/models/rest/standardized_models/shopify__standardized_models.yml/dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n header_id, line_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__line_item_enhanced\"\n group by header_id, line_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__line_item_enhanced", "attached_node": "model.shopify.shopify__line_item_enhanced", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["header_id", "line_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__line_item_enhanced')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742.sql", "original_file_path": "models/graphql/standardized_models/shopify__standardized_models.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1", "fqn": ["shopify", "graphql", "standardized_models", "dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742"}, "created_at": 1754505368.5257514, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__line_item_enhanced"]}, "compiled_path": "target/compiled/shopify/models/graphql/standardized_models/shopify__standardized_models.yml/dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n header_id, line_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__line_item_enhanced\"\n group by header_id, line_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__line_item_enhanced", "attached_node": "model.shopify.shopify_gql__line_item_enhanced", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["header_id", "line_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__line_item_enhanced')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be"}, "created_at": 1754505368.6424417, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__customer", "attached_node": "model.shopify_source.stg_shopify__customer", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__customer')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation"], "alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3"}, "created_at": 1754505368.647831, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_refund_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n group by order_line_refund_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_line_refund", "attached_node": "model.shopify_source.stg_shopify__order_line_refund", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_line_refund')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec"}, "created_at": 1754505368.6531, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n group by order_line_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_line", "attached_node": "model.shopify_source.stg_shopify__order_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e"}, "created_at": 1754505368.6583972, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order", "attached_node": "model.shopify_source.stg_shopify__order", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d"}, "created_at": 1754505368.663634, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product", "attached_node": "model.shopify_source.stg_shopify__product", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation"], "alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e"}, "created_at": 1754505368.6688807, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n variant_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n group by variant_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_variant", "attached_node": "model.shopify_source.stg_shopify__product_variant", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["variant_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_variant')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation"], "alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92"}, "created_at": 1754505368.6740148, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n group by transaction_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__transaction", "attached_node": "model.shopify_source.stg_shopify__transaction", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__transaction')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation"], "alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659"}, "created_at": 1754505368.6793103, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__refund", "attached_node": "model.shopify_source.stg_shopify__refund", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__refund')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207"}, "created_at": 1754505368.684992, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_adjustment_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"\n group by order_adjustment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_adjustment", "attached_node": "model.shopify_source.stg_shopify__order_adjustment", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_adjustment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_adjustment')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__abandoned_checkout_checkout_id"], "alias": "not_null_stg_shopify__abandoned_checkout_checkout_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.690243, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation"], "alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f"}, "created_at": 1754505368.6926646, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n group by checkout_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_collection_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_product_collection_id"], "alias": "not_null_stg_shopify__collection_product_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.6978495, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_product_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_product_product_id"], "alias": "not_null_stg_shopify__collection_product_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7002301, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_product_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e"}, "created_at": 1754505368.7025967, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n collection_id, product_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n group by collection_id, product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["collection_id", "product_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_collection_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_collection_id"], "alias": "not_null_stg_shopify__collection_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.70779, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection", "attached_node": "model.shopify_source.stg_shopify__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation"], "alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad"}, "created_at": 1754505368.7101939, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n collection_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n group by collection_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__collection", "attached_node": "model.shopify_source.stg_shopify__collection", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["collection_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__collection')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__customer_tag_index"], "alias": "not_null_stg_shopify__customer_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7154992, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__customer_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_customer_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_customer_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__customer_tag_customer_id"], "alias": "not_null_stg_shopify__customer_tag_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.717873, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__customer_tag_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6"}, "created_at": 1754505368.7203126, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n group by customer_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__fulfillment_fulfillment_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__fulfillment_fulfillment_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__fulfillment_fulfillment_id"], "alias": "not_null_stg_shopify__fulfillment_fulfillment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7255237, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__fulfillment_fulfillment_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fulfillment_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\nwhere fulfillment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fulfillment_id", "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fulfillment_id", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70", "fqn": ["shopify_source", "rest", "accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure"], "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd"}, "created_at": 1754505368.7279427, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'pending','open','success','cancelled','error','failure'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["pending", "open", "success", "cancelled", "error", "failure"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation"], "alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01"}, "created_at": 1754505368.7396765, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n fulfillment_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by fulfillment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["fulfillment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__inventory_item_inventory_item_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__inventory_item_inventory_item_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__inventory_item_inventory_item_id"], "alias": "not_null_stg_shopify__inventory_item_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7447948, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__inventory_item_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.stg_shopify__inventory_item", "attached_node": "model.shopify_source.stg_shopify__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('stg_shopify__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f"}, "created_at": 1754505368.747413, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\n group by inventory_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_item", "attached_node": "model.shopify_source.stg_shopify__inventory_item", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_item')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014"}, "created_at": 1754505368.752557, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_level_id, inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"\n group by inventory_level_id, inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_level", "attached_node": "model.shopify_source.stg_shopify__inventory_level", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_level_id", "inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_level')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation"], "alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6"}, "created_at": 1754505368.75786, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_quantity_id, inventory_item_id, inventory_level_id, inventory_state_name, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"\n group by inventory_quantity_id, inventory_item_id, inventory_level_id, inventory_state_name, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify__inventory_quantity", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_quantity_id", "inventory_item_id", "inventory_level_id", "inventory_state_name", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_quantity')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__location_location_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__location_location_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__location_location_id"], "alias": "not_null_stg_shopify__location_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7631714, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__location_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__location\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_shopify__location", "attached_node": "model.shopify_source.stg_shopify__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_shopify__location')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646"}, "created_at": 1754505368.7655904, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__location\"\n group by location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__location", "attached_node": "model.shopify_source.stg_shopify__location", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__location')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__media_media_id"], "alias": "not_null_stg_shopify__media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7708457, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media", "attached_node": "model.shopify_source.stg_shopify__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e"}, "created_at": 1754505368.7732759, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__media\"\n group by media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__media", "attached_node": "model.shopify_source.stg_shopify__media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_image_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_image_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__media_image_media_id"], "alias": "not_null_stg_shopify__media_image_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7790325, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__media_image_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media_image\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media_image", "attached_node": "model.shopify_source.stg_shopify__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media_image')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation"], "alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75"}, "created_at": 1754505368.7814405, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n media_id, image_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__media_image\"\n group by media_id, image_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__media_image", "attached_node": "model.shopify_source.stg_shopify__media_image", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["media_id", "image_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__media_image')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__metafield_metafield_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__metafield_metafield_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__metafield_metafield_id"], "alias": "not_null_stg_shopify__metafield_metafield_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7866197, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__metafield_metafield_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metafield_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\nwhere metafield_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metafield_id", "file_key_name": "models.stg_shopify__metafield", "attached_node": "model.shopify_source.stg_shopify__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "metafield_id", "model": "{{ get_where_subquery(ref('stg_shopify__metafield')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation"], "alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea"}, "created_at": 1754505368.78899, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n metafield_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n group by metafield_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__metafield", "attached_node": "model.shopify_source.stg_shopify__metafield", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["metafield_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__metafield')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_name", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_name.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_note_attribute_name"], "alias": "not_null_stg_shopify__order_note_attribute_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7942562, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect name\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_note_attribute_order_id"], "alias": "not_null_stg_shopify__order_note_attribute_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.7965972, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation"], "alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d"}, "created_at": 1754505368.7989707, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, name, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\n group by order_id, name, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "name", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1"}, "created_at": 1754505368.8042407, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation"], "alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36"}, "created_at": 1754505368.8066509, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_shipping_line_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by order_shipping_line_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_shipping_line_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_shipping_tax_line_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_tax_line_index"], "alias": "not_null_stg_shopify__order_shipping_tax_line_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8118708, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_shipping_tax_line_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858"}, "created_at": 1754505368.8143203, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f"}, "created_at": 1754505368.8167088, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_shipping_line_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by order_shipping_line_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_shipping_line_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_tag_index"], "alias": "not_null_stg_shopify__order_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.821895, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_tag_order_id"], "alias": "not_null_stg_shopify__order_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.824254, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a"}, "created_at": 1754505368.8267465, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\n group by 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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_key.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_url_tag_key"], "alias": "not_null_stg_shopify__order_url_tag_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8318477, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_url_tag_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "key", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "key", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_url_tag_order_id"], "alias": "not_null_stg_shopify__order_url_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8343968, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_url_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation"], "alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f"}, "created_at": 1754505368.836781, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, key, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\n group by order_id, key, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "key", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_media_product_id"], "alias": "not_null_stg_shopify__product_media_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.842074, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_media_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_media_media_id"], "alias": "not_null_stg_shopify__product_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8444574, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110"}, "created_at": 1754505368.8469293, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n group by product_id, media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_product_variant_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_product_variant_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_variant_media_product_variant_id"], "alias": "not_null_stg_shopify__product_variant_media_product_variant_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8521767, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_variant_media_product_variant_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_variant_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere product_variant_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_variant_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_variant_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_variant_media_media_id"], "alias": "not_null_stg_shopify__product_variant_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.854561, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_variant_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c"}, "created_at": 1754505368.8569047, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_variant_id, media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n group by product_variant_id, media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_variant_id", "media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_tag_index"], "alias": "not_null_stg_shopify__product_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8621426, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_tag_product_id"], "alias": "not_null_stg_shopify__product_tag_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8645165, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_tag_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed"}, "created_at": 1754505368.8668716, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n group by product_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__shop_shop_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__shop_shop_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__shop_shop_id"], "alias": "not_null_stg_shopify__shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8721604, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.stg_shopify__shop", "attached_node": "model.shopify_source.stg_shopify__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('stg_shopify__shop')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation"], "alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e"}, "created_at": 1754505368.874582, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n shop_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n group by shop_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__shop", "attached_node": "model.shopify_source.stg_shopify__shop", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["shop_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__shop')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__tender_transaction_transaction_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__tender_transaction_transaction_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__tender_transaction_transaction_id"], "alias": "not_null_stg_shopify__tender_transaction_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8804045, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__tender_transaction_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_shopify__tender_transaction", "attached_node": "model.shopify_source.stg_shopify__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_shopify__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473"}, "created_at": 1754505368.882793, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\n group by transaction_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__tender_transaction", "attached_node": "model.shopify_source.stg_shopify__tender_transaction", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__tender_transaction')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id"], "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c"}, "created_at": 1754505368.888015, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation"], "alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1"}, "created_at": 1754505368.8904374, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, code, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n group by checkout_id, code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "code", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_discount_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_code", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_code.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_discount_code_code"], "alias": "not_null_stg_shopify__order_discount_code_code", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8956447, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_discount_code_code.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect code\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "code", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "code", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_discount_code_order_id"], "alias": "not_null_stg_shopify__order_discount_code_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.8980026, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_discount_code_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0"}, "created_at": 1754505368.900421, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n group by 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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2"}, "created_at": 1754505368.9056544, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n group by checkout_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout_shipping_line", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_shipping_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27", "fqn": ["shopify_source", "rest", "accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed"], "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc"}, "created_at": 1754505368.9109237, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'attempted_delivery','delayed','delivered','failure','in_transit','out_for_delivery','ready_for_pickup','picked_up','label_printed','label_purchased','confirmed'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify__fulfillment_event", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["attempted_delivery", "delayed", "delivered", "failure", "in_transit", "out_for_delivery", "ready_for_pickup", "picked_up", "label_printed", "label_purchased", "confirmed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation"], "alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd"}, "created_at": 1754505368.9199727, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n fulfillment_event_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n group by fulfillment_event_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify__fulfillment_event", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["fulfillment_event_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment_event')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136"}, "created_at": 1754505368.9252532, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n group by order_line_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__tax_line", "attached_node": "model.shopify_source.stg_shopify__tax_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__tax_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_allocation_discount_application_index"], "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca"}, "created_at": 1754505368.9305387, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_application_index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere discount_application_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_application_index", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_application_index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_order_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_allocation_order_line_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_allocation_order_line_id"], "alias": "not_null_stg_shopify__discount_allocation_order_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.9328907, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_allocation_order_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere order_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_line_id", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation"], "alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98"}, "created_at": 1754505368.935273, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, discount_application_index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\n group by order_line_id, discount_application_index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "discount_application_index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_application_index"], "alias": "not_null_stg_shopify__discount_application_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.9405317, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_application_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_application_order_id"], "alias": "not_null_stg_shopify__discount_application_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.9429011, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_application_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed"}, "created_at": 1754505368.9452913, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n index, order_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n group by index, order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["index", "order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_app_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_app_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_app_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_app_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.9504976, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_app_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_app", "attached_node": "model.shopify_source.stg_shopify__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd"}, "created_at": 1754505368.952849, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_app", "attached_node": "model.shopify_source.stg_shopify__discount_code_app", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_app')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_basic_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_basic_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_basic_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.9580107, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125"}, "created_at": 1754505368.9604268, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify__discount_code_basic", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_basic')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_bxgy_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.965776, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976"}, "created_at": 1754505368.9681928, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify__discount_code_bxgy", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_bxgy')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_free_shipping_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_free_shipping_discount_code_id"], "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354"}, "created_at": 1754505368.9743624, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce"}, "created_at": 1754505368.9767373, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify__discount_code_free_shipping", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_free_shipping')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_redeem_code_discount_code_id"], "alias": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505368.981978, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4"}, "created_at": 1754505368.9843512, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify__discount_redeem_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_redeem_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_unique_key"], "alias": "unique_stg_shopify_gql__customer_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.45799, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer", "attached_node": "model.shopify_source.stg_shopify_gql__customer", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_unique_key"], "alias": "not_null_stg_shopify_gql__customer_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4605763, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer", "attached_node": "model.shopify_source.stg_shopify_gql__customer", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_unique_key"], "alias": "unique_stg_shopify_gql__order_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4629407, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order", "attached_node": "model.shopify_source.stg_shopify_gql__order", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_unique_key"], "alias": "not_null_stg_shopify_gql__order_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4653847, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order", "attached_node": "model.shopify_source.stg_shopify_gql__order", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_line_unique_key"], "alias": "unique_stg_shopify_gql__order_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4677768, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4701905, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__abandoned_checkout_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__abandoned_checkout_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__abandoned_checkout_unique_key"], "alias": "unique_stg_shopify_gql__abandoned_checkout_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4725316, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__abandoned_checkout_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__abandoned_checkout_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_unique_key"], "alias": "not_null_stg_shopify_gql__abandoned_checkout_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.474947, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__abandoned_checkout_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_checkout_id"], "alias": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4773235, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__abandoned_checkout_checkout_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key"], "alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815"}, "created_at": 1754505369.479684, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key"], "alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256"}, "created_at": 1754505369.4819846, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id"], "alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e"}, "created_at": 1754505369.4843047, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_unique_key"], "alias": "unique_stg_shopify_gql__collection_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4867308, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__collection_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_unique_key"], "alias": "not_null_stg_shopify_gql__collection_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4890785, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_collection_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_collection_id"], "alias": "not_null_stg_shopify_gql__collection_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4913962, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_product_unique_key"], "alias": "unique_stg_shopify_gql__collection_product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4937153, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__collection_product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_unique_key"], "alias": "not_null_stg_shopify_gql__collection_product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.4961452, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_collection_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_collection_id"], "alias": "not_null_stg_shopify_gql__collection_product_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.49847, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_product_id"], "alias": "not_null_stg_shopify_gql__collection_product_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.500777, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_tag_unique_key"], "alias": "unique_stg_shopify_gql__customer_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5031507, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_unique_key"], "alias": "not_null_stg_shopify_gql__customer_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5054474, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_index"], "alias": "not_null_stg_shopify_gql__customer_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5078716, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_customer_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_customer_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_customer_id"], "alias": "not_null_stg_shopify_gql__customer_tag_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5102613, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_allocation_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_allocation_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_allocation_unique_key"], "alias": "unique_stg_shopify_gql__discount_allocation_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.512606, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_allocation_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_allocation_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_unique_key"], "alias": "not_null_stg_shopify_gql__discount_allocation_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.514922, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_allocation_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_discount_application_index"], "alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416"}, "created_at": 1754505369.5178204, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_application_index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere discount_application_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_application_index", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_application_index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_order_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_allocation_order_line_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_order_line_id"], "alias": "not_null_stg_shopify_gql__discount_allocation_order_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.52019, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_allocation_order_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere order_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_line_id", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_application_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_application_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_application_unique_key"], "alias": "unique_stg_shopify_gql__discount_application_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5225413, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_application_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_unique_key"], "alias": "not_null_stg_shopify_gql__discount_application_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5248673, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_index"], "alias": "not_null_stg_shopify_gql__discount_application_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.527184, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_order_id"], "alias": "not_null_stg_shopify_gql__discount_application_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.529599, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_app_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_app_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_app_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_app_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5319207, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_app_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_app_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_app_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_app_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_app_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5342476, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_app_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_app_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_app_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_app_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_app_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5365946, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_app_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_basic_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_basic_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_basic_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_basic_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.539032, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_basic_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_basic_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_basic_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_basic_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_basic_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5414214, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_basic_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_basic_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.543759, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_basic_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_bxgy_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_bxgy_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_bxgy_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5460994, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_bxgy_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5484748, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5509076, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_free_shipping_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5532446, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_free_shipping_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_free_shipping_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_free_shipping_unique_key"], "alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34"}, "created_at": 1754505369.5555632, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id"], "alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09"}, "created_at": 1754505369.5578814, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_redeem_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_redeem_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_redeem_code_unique_key"], "alias": "unique_stg_shopify_gql__discount_redeem_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.560342, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_redeem_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_redeem_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_redeem_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_redeem_code_unique_key"], "alias": "not_null_stg_shopify_gql__discount_redeem_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5626502, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_redeem_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5649335, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5672514, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.569539, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_fulfillment_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_fulfillment_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_fulfillment_id"], "alias": "not_null_stg_shopify_gql__fulfillment_fulfillment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5719416, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_fulfillment_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fulfillment_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere fulfillment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fulfillment_id", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fulfillment_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769", "fqn": ["shopify_source", "graphql", "accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure"], "alias": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2"}, "created_at": 1754505369.5743418, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'pending','open','success','cancelled','error','failure'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["pending", "open", "success", "cancelled", "error", "failure"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_event_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_event_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_event_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_event_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5803251, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_event_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_event_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_event_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_event_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_event_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.58269, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_event_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81", "fqn": ["shopify_source", "graphql", "accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed"], "alias": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f"}, "created_at": 1754505369.5851474, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'attempted_delivery','delayed','delivered','failure','in_transit','out_for_delivery','ready_for_pickup','picked_up','label_printed','label_purchased','confirmed'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["attempted_delivery", "delayed", "delivered", "failure", "in_transit", "out_for_delivery", "ready_for_pickup", "picked_up", "label_printed", "label_purchased", "confirmed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5906987, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_order_line_item", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_order_line_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key"], "alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22"}, "created_at": 1754505369.59307, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_order_line_item", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_order_line_item')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5954242, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_tracking_info", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_tracking_info')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.5978634, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_tracking_info", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_tracking_info')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_item_unique_key"], "alias": "unique_stg_shopify_gql__inventory_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6002183, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_item_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6025298, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_item_inventory_item_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_item_inventory_item_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_item_inventory_item_id"], "alias": "not_null_stg_shopify_gql__inventory_item_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6048355, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_item_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_level_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_level_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_level_unique_key"], "alias": "unique_stg_shopify_gql__inventory_level_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6072092, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_level_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_level_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_level_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_level_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_level_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6096718, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_level_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd", "fqn": ["shopify_source", "graphql", "dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756"}, "created_at": 1754505369.612038, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_level_id, inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\n group by inventory_level_id, inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_level_id", "inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_quantity_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_quantity_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_quantity_unique_key"], "alias": "unique_stg_shopify_gql__inventory_quantity_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6173127, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_quantity_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_quantity", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_quantity')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_quantity_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_quantity_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_quantity_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_quantity_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6196954, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_quantity_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_quantity", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_quantity')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__location_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__location_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__location_unique_key"], "alias": "unique_stg_shopify_gql__location_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6221044, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__location_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__location_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__location_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__location_unique_key"], "alias": "not_null_stg_shopify_gql__location_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6244526, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__location_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__location_location_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__location_location_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__location_location_id"], "alias": "not_null_stg_shopify_gql__location_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6268718, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__location_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__media_unique_key"], "alias": "unique_stg_shopify_gql__media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.629229, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_unique_key"], "alias": "not_null_stg_shopify_gql__media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.631549, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_media_id"], "alias": "not_null_stg_shopify_gql__media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6338565, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__media_image_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__media_image_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__media_image_unique_key"], "alias": "unique_stg_shopify_gql__media_image_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.636207, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__media_image_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_image_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_image_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_image_unique_key"], "alias": "not_null_stg_shopify_gql__media_image_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6389725, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_image_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_image_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_image_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_image_media_id"], "alias": "not_null_stg_shopify_gql__media_image_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.641346, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_image_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__metafield_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__metafield_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__metafield_unique_key"], "alias": "unique_stg_shopify_gql__metafield_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6436598, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__metafield_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__metafield_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__metafield_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__metafield_unique_key"], "alias": "not_null_stg_shopify_gql__metafield_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6459467, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__metafield_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__metafield_metafield_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__metafield_metafield_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__metafield_metafield_id"], "alias": "not_null_stg_shopify_gql__metafield_metafield_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6484327, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__metafield_metafield_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metafield_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere metafield_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metafield_id", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "metafield_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_media_unique_key"], "alias": "unique_stg_shopify_gql__product_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.650794, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_unique_key"], "alias": "not_null_stg_shopify_gql__product_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.653156, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_product_id"], "alias": "not_null_stg_shopify_gql__product_media_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6554685, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_media_id"], "alias": "not_null_stg_shopify_gql__product_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6577642, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_adjustment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_adjustment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_adjustment_unique_key"], "alias": "unique_stg_shopify_gql__order_adjustment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6602218, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_adjustment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_adjustment", "attached_node": "model.shopify_source.stg_shopify_gql__order_adjustment", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_adjustment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_adjustment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_adjustment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_adjustment_unique_key"], "alias": "not_null_stg_shopify_gql__order_adjustment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.66254, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_adjustment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_adjustment", "attached_node": "model.shopify_source.stg_shopify_gql__order_adjustment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_adjustment')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_discount_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_discount_code_unique_key"], "alias": "unique_stg_shopify_gql__order_discount_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6648548, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_discount_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_unique_key"], "alias": "not_null_stg_shopify_gql__order_discount_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6671762, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_code", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_code.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_code"], "alias": "not_null_stg_shopify_gql__order_discount_code_code", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.669592, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_code.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect code\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "code", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "code", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_order_id"], "alias": "not_null_stg_shopify_gql__order_discount_code_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6719062, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_line_refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_line_refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_line_refund_unique_key"], "alias": "unique_stg_shopify_gql__order_line_refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6742723, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_line_refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line_refund", "attached_node": "model.shopify_source.stg_shopify_gql__order_line_refund", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line_refund')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_line_refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_line_refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_line_refund_unique_key"], "alias": "not_null_stg_shopify_gql__order_line_refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6765838, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_line_refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line_refund", "attached_node": "model.shopify_source.stg_shopify_gql__order_line_refund", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line_refund')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_note_attribute_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_note_attribute_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_note_attribute_unique_key"], "alias": "unique_stg_shopify_gql__order_note_attribute_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6789045, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_note_attribute_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_unique_key"], "alias": "not_null_stg_shopify_gql__order_note_attribute_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6813862, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_name", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_name.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_name"], "alias": "not_null_stg_shopify_gql__order_note_attribute_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.683695, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect name\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_order_id"], "alias": "not_null_stg_shopify_gql__order_note_attribute_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6860006, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_shipping_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_shipping_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_shipping_line_unique_key"], "alias": "unique_stg_shopify_gql__order_shipping_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6883464, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_shipping_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_shipping_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6907444, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id"], "alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2"}, "created_at": 1754505369.6930907, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_shipping_tax_line_unique_key"], "alias": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6954, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.6976957, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id"], "alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4"}, "created_at": 1754505369.7000256, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_tax_line_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_index"], "alias": "not_null_stg_shopify_gql__order_shipping_tax_line_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7024705, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_tax_line_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_tag_unique_key"], "alias": "unique_stg_shopify_gql__order_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.704782, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_unique_key"], "alias": "not_null_stg_shopify_gql__order_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7071366, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_order_id"], "alias": "not_null_stg_shopify_gql__order_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.709458, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_index"], "alias": "not_null_stg_shopify_gql__order_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7119014, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_unique_key"], "alias": "unique_stg_shopify_gql__product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7143402, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product", "attached_node": "model.shopify_source.stg_shopify_gql__product", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_unique_key"], "alias": "not_null_stg_shopify_gql__product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.716662, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product", "attached_node": "model.shopify_source.stg_shopify_gql__product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_variant_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_variant_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_variant_unique_key"], "alias": "unique_stg_shopify_gql__product_variant_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7189827, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_variant_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_unique_key"], "alias": "not_null_stg_shopify_gql__product_variant_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7213256, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_variant_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_variant_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_variant_media_unique_key"], "alias": "unique_stg_shopify_gql__product_variant_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7237704, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_variant_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_unique_key"], "alias": "not_null_stg_shopify_gql__product_variant_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7260807, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_product_variant_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_product_variant_id"], "alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943"}, "created_at": 1754505369.7283933, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_variant_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere product_variant_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_variant_id", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_variant_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_media_id"], "alias": "not_null_stg_shopify_gql__product_variant_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7307048, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_tag_unique_key"], "alias": "unique_stg_shopify_gql__product_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7331405, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_unique_key"], "alias": "not_null_stg_shopify_gql__product_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.73546, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_index"], "alias": "not_null_stg_shopify_gql__product_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7377665, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_product_id"], "alias": "not_null_stg_shopify_gql__product_tag_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7401578, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__refund_unique_key"], "alias": "unique_stg_shopify_gql__refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7424786, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__refund", "attached_node": "model.shopify_source.stg_shopify_gql__refund", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__refund')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__refund_unique_key"], "alias": "not_null_stg_shopify_gql__refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7449, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__refund", "attached_node": "model.shopify_source.stg_shopify_gql__refund", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__refund')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__shop_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__shop_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__shop_unique_key"], "alias": "unique_stg_shopify_gql__shop_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7472558, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__shop_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__shop_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__shop_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__shop_unique_key"], "alias": "not_null_stg_shopify_gql__shop_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7495677, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__shop_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__shop_shop_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__shop_shop_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__shop_shop_id"], "alias": "not_null_stg_shopify_gql__shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.751865, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__tax_line_unique_key"], "alias": "unique_stg_shopify_gql__tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7542865, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__tax_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tax_line_unique_key"], "alias": "not_null_stg_shopify_gql__tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.756586, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tax_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__tender_transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__tender_transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__tender_transaction_unique_key"], "alias": "unique_stg_shopify_gql__tender_transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7588701, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__tender_transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tender_transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tender_transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tender_transaction_unique_key"], "alias": "not_null_stg_shopify_gql__tender_transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7612064, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tender_transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tender_transaction_transaction_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tender_transaction_transaction_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tender_transaction_transaction_id"], "alias": "not_null_stg_shopify_gql__tender_transaction_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7635345, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tender_transaction_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__transaction_unique_key"], "alias": "unique_stg_shopify_gql__transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7661, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__transaction", "attached_node": "model.shopify_source.stg_shopify_gql__transaction", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__transaction_unique_key"], "alias": "not_null_stg_shopify_gql__transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.768499, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__transaction", "attached_node": "model.shopify_source.stg_shopify_gql__transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__transaction')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_visit_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_visit_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_visit_unique_key"], "alias": "unique_stg_shopify_gql__customer_visit_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7708457, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_visit_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_visit", "attached_node": "model.shopify_source.stg_shopify_gql__customer_visit", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_visit')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_visit_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_visit_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_visit_unique_key"], "alias": "not_null_stg_shopify_gql__customer_visit_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7731614, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_visit_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_visit", "attached_node": "model.shopify_source.stg_shopify_gql__customer_visit", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_visit')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_rule_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_rule_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_rule_unique_key"], "alias": "unique_stg_shopify_gql__collection_rule_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7755842, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_rule", "attached_node": "model.shopify_source.stg_shopify_gql__collection_rule", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_rule')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_rule_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_rule_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_rule_unique_key"], "alias": "not_null_stg_shopify_gql__collection_rule_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.777927, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_rule", "attached_node": "model.shopify_source.stg_shopify_gql__collection_rule", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_rule')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_address_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_address_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_address_unique_key"], "alias": "unique_stg_shopify_gql__customer_address_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.7802718, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_address_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_address", "attached_node": "model.shopify_source.stg_shopify_gql__customer_address", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_address')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_address_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_address_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_address_unique_key"], "alias": "not_null_stg_shopify_gql__customer_address_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754505369.782608, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_address_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_address", "attached_node": "model.shopify_source.stg_shopify_gql__customer_address", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_address')) }}"}, "namespace": null}}}, "sources": {"source.shopify_source.shopify.order": {"database": "postgres", "schema": "public", "name": "order", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order", "fqn": ["shopify_source", "rest", "shopify", "order"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_data", "quoting": {"database": null, "schema": null, "identifier": true, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_at": {"name": "cancelled_at", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "(DEPRECATED) The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "(DEPRECATED) A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "confirmed": {"name": "confirmed", "description": "Whether inventory has been reserved for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_identifier": {"name": "source_identifier", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "created_at": 1754505369.8134737, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer": {"database": "postgres", "schema": "public", "name": "customer", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer", "fqn": ["shopify_source", "rest", "shopify", "customer"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "accepts_marketing": {"name": "accepts_marketing", "description": "Whether the customer has consented to receive marketing material via email. Deprecated and will be coalesced with `email_marketing_consent_state`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "state": {"name": "state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_exempt": {"name": "tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "verified_email": {"name": "verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_state": {"name": "email_marketing_consent_state", "description": "The current email marketing state for the customer. New version of `accepts_marketing` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_opt_in_level": {"name": "email_marketing_consent_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. New version of `marketing_opt_in_level` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_consent_updated_at": {"name": "email_marketing_consent_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. New version of `accepts_marketing_updated_at` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "accepts_marketing_updated_at": {"name": "accepts_marketing_updated_at", "description": "Deprecated. The package will coalesce with `email_marketing_consent_consent_updated_at`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "Deprecated. The package will coalesce with `email_marketing_consent_opt_in_level`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "created_at": 1754505369.8157144, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line": {"database": "postgres", "schema": "public", "name": "order_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line", "fqn": ["shopify_source", "rest", "shopify", "order_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item for an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gift_card": {"name": "gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "created_at": 1754505369.8166199, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line_refund": {"database": "postgres", "schema": "public", "name": "order_line_refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line_refund", "fqn": ["shopify_source", "rest", "shopify", "order_line_refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item refund in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "created_at": 1754505369.8173182, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product": {"database": "postgres", "schema": "public", "name": "product", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product", "fqn": ["shopify_source", "rest", "shopify", "product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product in Shopify.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "created_at": 1754505369.8179877, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant": {"database": "postgres", "schema": "public", "name": "product_variant", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant", "fqn": ["shopify_source", "rest", "shopify", "product_variant"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "old_inventory_quantity": {"name": "old_inventory_quantity", "description": "(DEPRECATED 2025-01-06) Use the InventoryLevel resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "(DEPRECATED 2025-01-06) Use the `requires_shipping` property on the InventoryItem resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "available_for_sale": {"name": "available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield": {"name": "metafield", "description": "A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_components": {"name": "requires_components", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "created_at": 1754505369.8187387, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.transaction": {"database": "postgres", "schema": "public", "name": "transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.transaction", "fqn": ["shopify_source", "rest", "shopify", "transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a transaction in Shopify.", "columns": {"id": {"name": "id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization": {"name": "authorization", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "created_at": 1754505369.8195436, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.refund": {"database": "postgres", "schema": "public", "name": "refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.refund", "fqn": ["shopify_source", "rest", "shopify", "refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a refund within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "created_at": 1754505369.820195, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_adjustment": {"database": "postgres", "schema": "public", "name": "order_adjustment", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_adjustment", "fqn": ["shopify_source", "rest", "shopify", "order_adjustment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_adjustment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "created_at": 1754505369.8208253, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout": {"database": "postgres", "schema": "public", "name": "abandoned_checkout", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "created_at": 1754505369.8217187, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection_product": {"database": "postgres", "schema": "public", "name": "collection_product", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection_product", "fqn": ["shopify_source", "rest", "shopify", "collection_product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "created_at": 1754505369.8223355, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection": {"database": "postgres", "schema": "public", "name": "collection", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection", "fqn": ["shopify_source", "rest", "shopify", "collection"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "disjunctive": {"name": "disjunctive", "description": "Boolean representing whether the `rules` or disjuctive (logical `OR`) or not. True = disjuctive, false = conjunctive (logical `AND`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparitive relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values inclide - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "created_at": 1754505369.822963, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer_tag": {"database": "postgres", "schema": "public", "name": "customer_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer_tag", "fqn": ["shopify_source", "rest", "shopify", "customer_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "created_at": 1754505369.8235843, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment": {"database": "postgres", "schema": "public", "name": "fulfillment", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment", "fqn": ["shopify_source", "rest", "shopify", "fulfillment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt_authorization": {"name": "receipt_authorization", "description": "The authorization code from the receipt.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was succesfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "created_at": 1754505369.8242953, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_item": {"database": "postgres", "schema": "public", "name": "inventory_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_item", "fqn": ["shopify_source", "rest", "shopify", "inventory_item"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked": {"name": "tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_locked": {"name": "tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "created_at": 1754505369.8249671, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_level": {"database": "postgres", "schema": "public", "name": "inventory_level", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_level", "fqn": ["shopify_source", "rest", "shopify", "inventory_level"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_level_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available": {"name": "available", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "created_at": 1754505369.8256147, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_quantity": {"database": "postgres", "schema": "public", "name": "inventory_quantity", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_quantity", "fqn": ["shopify_source", "rest", "shopify", "inventory_quantity"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_quantity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The total quantity of the inventory item available at all locations.", "columns": {"id": {"name": "id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "created_at": 1754505369.8262436, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.location": {"database": "postgres", "schema": "public", "name": "location", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.location", "fqn": ["shopify_source", "rest", "shopify", "location"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_location_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "active": {"name": "active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy": {"name": "legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "created_at": 1754505369.8269453, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.metafield": {"database": "postgres", "schema": "public", "name": "metafield", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.metafield", "fqn": ["shopify_source", "rest", "shopify", "metafield"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_metafield_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_id": {"name": "owner_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Use this instead of `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "created_at": 1754505369.82759, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_note_attribute": {"database": "postgres", "schema": "public", "name": "order_note_attribute", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_note_attribute", "fqn": ["shopify_source", "rest", "shopify", "order_note_attribute"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_note_attribute_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "created_at": 1754505369.8282027, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_line": {"database": "postgres", "schema": "public", "name": "order_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_line", "fqn": ["shopify_source", "rest", "shopify", "order_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "created_at": 1754505369.8288355, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_tax_line": {"database": "postgres", "schema": "public", "name": "order_shipping_tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_tax_line", "fqn": ["shopify_source", "rest", "shopify", "order_shipping_tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this recod is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "created_at": 1754505369.8294775, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_tag": {"database": "postgres", "schema": "public", "name": "order_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_tag", "fqn": ["shopify_source", "rest", "shopify", "order_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "created_at": 1754505369.8300965, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_url_tag": {"database": "postgres", "schema": "public", "name": "order_url_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_url_tag", "fqn": ["shopify_source", "rest", "shopify", "order_url_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_url_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "created_at": 1754505369.8306987, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media": {"database": "postgres", "schema": "public", "name": "media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media", "fqn": ["shopify_source", "rest", "shopify", "media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing media metadata, including status and timestamps.", "columns": {"id": {"name": "id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "created_at": 1754505369.8313653, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media_image": {"database": "postgres", "schema": "public", "name": "media_image", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media_image", "fqn": ["shopify_source", "rest", "shopify", "media_image"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_image_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "created_at": 1754505369.831986, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_media": {"database": "postgres", "schema": "public", "name": "product_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_media", "fqn": ["shopify_source", "rest", "shopify", "product_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "created_at": 1754505369.8326175, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant_media": {"database": "postgres", "schema": "public", "name": "product_variant_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant_media", "fqn": ["shopify_source", "rest", "shopify", "product_variant_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping product variants to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "created_at": 1754505369.8332396, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_tag": {"database": "postgres", "schema": "public", "name": "product_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_tag", "fqn": ["shopify_source", "rest", "shopify", "product_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "created_at": 1754505369.8338413, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.shop": {"database": "postgres", "schema": "public", "name": "shop", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.shop", "fqn": ["shopify_source", "rest", "shopify", "shop"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_shop_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_api_supported": {"name": "checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "county_taxes": {"name": "county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_card_reader_giveaway": {"name": "eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_payments": {"name": "eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "force_ssl": {"name": "force_ssl", "description": "DEPRECATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_login_enabled": {"name": "google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "multi_location_enabled": {"name": "multi_location_enabled", "description": "DEPRECATED and hard-coded to `true`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "password_enabled": {"name": "password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_launch_enabled": {"name": "pre_launch_enabled", "description": "Boolen representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_location_id": {"name": "primary_location_id", "description": "DEPRECATED. Formerly used for the ID of the shipping origin location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_extra_payments_agreement": {"name": "requires_extra_payments_agreement", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "setup_required": {"name": "setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_shipping": {"name": "tax_shipping", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "created_at": 1754505369.8347003, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tender_transaction": {"database": "postgres", "schema": "public", "name": "tender_transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tender_transaction", "fqn": ["shopify_source", "rest", "shopify", "tender_transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tender_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the tender transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "created_at": 1754505369.835349, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index (from 1) representing the application of the discount to the checkout. Use the latest (highest index)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "created_at": 1754505369.8359685, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_discount_code": {"database": "postgres", "schema": "public", "name": "order_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_discount_code", "fqn": ["shopify_source", "rest", "shopify", "order_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "created_at": 1754505369.8365922, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_shop_price": {"name": "original_shop_price", "description": "The pre-tax shipping price without any discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "created_at": 1754505369.837254, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment_event": {"database": "postgres", "schema": "public", "name": "fulfillment_event", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment_event", "fqn": ["shopify_source", "rest", "shopify", "fulfillment_event"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_event_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "created_at": 1754505369.8386517, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tax_line": {"database": "postgres", "schema": "public", "name": "tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tax_line", "fqn": ["shopify_source", "rest", "shopify", "tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "created_at": 1754505369.8393052, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_allocation": {"database": "postgres", "schema": "public", "name": "discount_allocation", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_allocation", "fqn": ["shopify_source", "rest", "shopify", "discount_allocation"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_allocation_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing allocation amounts applied to order lines from discount applications. Discount allocations indicate how much of the discount was applied and how it was split across line items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The currency code associated with the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The currency code associated with the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of this allocation in the list of discount allocations applied to an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "created_at": 1754505369.8399336, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_application": {"database": "postgres", "schema": "public", "name": "discount_application", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_application", "fqn": ["shopify_source", "rest", "shopify", "discount_application"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_application_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount applications, which define how discounts were applied to an order. This includes metadata like allocation method, target type, and value type.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The allocation method used to apply the discount. Valid values include `each` (the discount is applied to each entitled item) and `across` (the discount is applied across all entitled items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A short description of the discount, usually derived from the associated rule or promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Specifies whether the discount applies to all items (`all`) or only entitled ones (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "Indicates whether the discount applies to `line_item` or `shipping_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the discount as displayed in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Possible values include `manual`, `automatic`, or `script`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The numerical value of the discount. This may be a flat amount or a percentage, depending on `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount is a `percentage` or a `fixed_amount`. When the target type is `shipping_line`, only `percentage` is allowed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "created_at": 1754505369.8405774, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_app": {"database": "postgres", "schema": "public", "name": "discount_code_app", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_app", "fqn": ["shopify_source", "rest", "shopify", "discount_code_app"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_app_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount codes created and managed through apps using Shopify Functions. These app-based discounts support advanced, dynamic behavior and custom targeting.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_count": {"name": "codes_count_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_precision": {"name": "codes_count_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "created_at": 1754505369.8412652, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_basic": {"database": "postgres", "schema": "public", "name": "discount_code_basic", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_basic", "fqn": ["shopify_source", "rest", "shopify", "discount_code_basic"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_basic_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing basic discount codes and their metadata. This includes usage limits, timeframes, eligible customers, combination rules, and tracked usage.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "Number of billing cycles the discount can be applied for (used for subscriptions).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is an exact number or an estimate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "created_at": 1754505369.841943, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_bxgy": {"database": "postgres", "schema": "public", "name": "discount_code_bxgy", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_bxgy", "fqn": ["shopify_source", "rest", "shopify", "discount_code_bxgy"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_bxgy_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing Buy X Get Y discount codes, including conditions for what customers must buy, what they receive, and metadata such as usage, status, and combination eligibility.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "uses_per_order_limit": {"name": "uses_per_order_limit", "description": "The maximum number of times the discount can be applied to a single order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "created_at": 1754505369.8426027, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_free_shipping": {"database": "postgres", "schema": "public", "name": "discount_code_free_shipping", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_free_shipping", "fqn": ["shopify_source", "rest", "shopify", "discount_code_free_shipping"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_free_shipping_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing free shipping discount codes and metadata, including subscription and one-time purchase applicability, eligible countries, usage limits, and combination rules.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "created_at": 1754505369.8432877, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_redeem_code": {"database": "postgres", "schema": "public", "name": "discount_redeem_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_redeem_code", "fqn": ["shopify_source", "rest", "shopify", "discount_redeem_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_redeem_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each code is tied to a parent discount and may be created by an app or manually by a merchant.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This value is updated asynchronously and may not match real-time usage counts.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (usually an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount this redeem code is associated with (e.g., `discount_code_basic`, `discount_code_bxgy`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "created_at": 1754505369.8439112, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order": {"database": "postgres", "schema": "public", "name": "order", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_data", "quoting": {"database": null, "schema": null, "identifier": true, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_ip": {"name": "client_ip", "description": "The IP address of the customer who placed the order. Useful for fraud detection and geographic analysis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_accepts_marketing": {"name": "customer_accepts_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_at": {"name": "cancelled_at", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The shop currency when the order was placed. For example, \"USD\" or \"CAD\".", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_financial_status": {"name": "display_financial_status", "description": "An order's financial status for display in the Shopify admin. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFinancialStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_fulfillment_status": {"name": "display_fulfillment_status", "description": "The order's fulfillment status that displays in the Shopify admin to merchants. For example, an order might be unfulfilled or scheduled. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFulfillmentStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The unique identifier for the order that appears on the order page in the Shopify admin and the Order status page. For example, \"#1001\", \"EN1001\", or \"1001-A\". This value isn't unique across multiple stores.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The optional note associated with the order. Contains additional information or instructions added by merchants or customers during the order process. Commonly used for special delivery instructions, gift messages, or internal processing notes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The name of the source associated with the order, such as \"web\", \"mobile_app\", or \"pos\". Use this field to identify the platform where the order was placed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_amount": {"name": "subtotal_price_set_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_amount": {"name": "subtotal_price_set_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_currency_code": {"name": "subtotal_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_currency_code": {"name": "subtotal_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_shop_amount": {"name": "total_discounts_set_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_pres_amount": {"name": "total_discounts_set_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_shop_currency_code": {"name": "total_discounts_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_pres_currency_code": {"name": "total_discounts_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_amount": {"name": "total_price_set_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_amount": {"name": "total_price_set_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_currency_code": {"name": "total_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_currency_code": {"name": "total_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights before returns, in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "The staff member who created or is responsible for the order. Useful for tracking which team member handled phone orders, manual orders, or order modifications. Returns null for orders created directly by customers through the online store.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "confirmed": {"name": "confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status_page_url": {"name": "status_page_url", "description": "The URL where customers can check their order's current status, including tracking information and delivery updates. Provides order tracking links in emails, apps, or customer communications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received_set_shop_amount": {"name": "total_tip_received_set_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_pres_amount": {"name": "total_tip_received_set_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_shop_currency_code": {"name": "total_tip_received_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_pres_currency_code": {"name": "total_tip_received_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency_code": {"name": "presentment_currency_code", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_shop_amount": {"name": "total_shipping_price_set_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_pres_amount": {"name": "total_shipping_price_set_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_shop_currency_code": {"name": "total_shipping_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_pres_currency_code": {"name": "total_shipping_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_data\"", "created_at": 1754505369.8449006, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer": {"database": "postgres", "schema": "public", "name": "customer", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "state": {"name": "state", "description": "The state of the customer's account with a shop. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/customer#field-Customer.fields.state).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_exempt": {"name": "tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "verified_email": {"name": "verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_state": {"name": "email_marketing_consent_state", "description": "The current email marketing state for the customer. New version of `accepts_marketing` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_opt_in_level": {"name": "email_marketing_consent_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. New version of `marketing_opt_in_level` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_updated_at": {"name": "email_marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. New version of `accepts_marketing_updated_at` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_data\"", "created_at": 1754505369.8455746, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_line": {"database": "postgres", "schema": "public", "name": "order_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item for an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "unfulfilled_quantity": {"name": "unfulfilled_quantity", "description": "The number of units not yet fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_pres_amount": {"name": "original_total_set_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_pres_currency_code": {"name": "original_total_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_shop_amount": {"name": "original_total_set_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_shop_currency_code": {"name": "original_total_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_amount": {"name": "total_discount_set_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_amount": {"name": "total_discount_set_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_currency_code": {"name": "total_discount_set_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_currency_code": {"name": "total_discount_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_data\"", "created_at": 1754505369.8463387, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_line_refund": {"database": "postgres", "schema": "public", "name": "order_line_refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_line_refund", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_line_refund"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_line_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item refund in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location where the items will be restocked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_pres_amount": {"name": "subtotal_set_pres_amount", "description": "The refunded subtotal amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_pres_currency_code": {"name": "subtotal_set_pres_currency_code", "description": "The three letter currency code for the subtotal the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_shop_amount": {"name": "subtotal_set_shop_amount", "description": "The refunded subtotal amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_shop_currency_code": {"name": "subtotal_set_shop_currency_code", "description": "The three letter currency code for the subtotal in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The total tax amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three letter currency code of the tax the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The total tax amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three letter currency code of the tax in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "created_at": 1754505369.8470032, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product": {"database": "postgres", "schema": "public", "name": "product", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product in Shopify.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_data\"", "created_at": 1754505369.847689, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_variant": {"database": "postgres", "schema": "public", "name": "product_variant", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_variant", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_variant"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_variant_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "available_for_sale": {"name": "available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_components": {"name": "requires_components", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "created_at": 1754505369.8483746, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.transaction": {"database": "postgres", "schema": "public", "name": "transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.transaction", "fqn": ["shopify_source", "graphql", "shopify_graphql", "transaction"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a transaction in Shopify.", "columns": {"id": {"name": "id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_amount": {"name": "amount_set_pres_amount", "description": "The amount of the transaction in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_currency_code": {"name": "amount_set_pres_currency_code", "description": "The three letter currency code of the customer's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_amount": {"name": "amount_set_shop_amount", "description": "The amount of the transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_currency_code": {"name": "amount_set_shop_currency_code", "description": "The three letter currency code of the shop's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used to process the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "Unique identifier of the staff member who was logged into the Shopify POS device when the transaction was processed", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_transaction_data\"", "created_at": 1754505369.8490872, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.refund": {"database": "postgres", "schema": "public", "name": "refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.refund", "fqn": ["shopify_source", "graphql", "shopify_graphql", "refund"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a refund within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the refund was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "return_id": {"name": "return_id", "description": "Reference to the return which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "Reference to the staff member who created the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_pres_amount": {"name": "total_refunded_set_pres_amount", "description": "The total amount across all transactions for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_pres_currency_code": {"name": "total_refunded_set_pres_currency_code", "description": "The three letter currency code for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_shop_amount": {"name": "total_refunded_set_shop_amount", "description": "The total amount across all transactions for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_shop_currency_code": {"name": "total_refunded_set_shop_currency_code", "description": "The three letter currency code for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_refund_data\"", "created_at": 1754505369.8497548, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_adjustment": {"database": "postgres", "schema": "public", "name": "order_adjustment", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_adjustment", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_adjustment"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_adjustment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_amount": {"name": "amount_set_pres_amount", "description": "The amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_currency_code": {"name": "amount_set_pres_currency_code", "description": "The three letter currency code for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_amount": {"name": "amount_set_shop_amount", "description": "The amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_currency_code": {"name": "amount_set_shop_currency_code", "description": "The three letter shop currency code of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_pres_amount": {"name": "tax_amount_set_pres_amount", "description": "The tax amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_pres_currency_code": {"name": "tax_amount_set_pres_currency_code", "description": "The three letter currency code for the tax of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_shop_amount": {"name": "tax_amount_set_shop_amount", "description": "The tax amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_shop_currency_code": {"name": "tax_amount_set_shop_currency_code", "description": "The three letter shop currency code of the tax for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "created_at": 1754505369.8504043, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.abandoned_checkout": {"database": "postgres", "schema": "public", "name": "abandoned_checkout", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout", "fqn": ["shopify_source", "graphql", "shopify_graphql", "abandoned_checkout"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_abandoned_checkout_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_amount": {"name": "subtotal_price_set_shop_amount", "description": "The price of the checkout before shipping and taxes in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_amount": {"name": "subtotal_price_set_pres_amount", "description": "The price of the checkout before shipping and taxes in *presentment* currencyy. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_currency_code": {"name": "subtotal_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_currency_code": {"name": "subtotal_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_amount": {"name": "total_discount_set_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_amount": {"name": "total_discount_set_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_currency_code": {"name": "total_discount_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_currency_code": {"name": "total_discount_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_shop_amount": {"name": "total_duties_set_shop_amount", "description": "The total duties of the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_pres_amount": {"name": "total_duties_set_pres_amount", "description": "The total duties of the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_shop_currency_code": {"name": "total_duties_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_pres_currency_code": {"name": "total_duties_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_shop_amount": {"name": "total_line_items_price_set_shop_amount", "description": "The sum of the prices of all line items in the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_pres_amount": {"name": "total_line_items_price_set_pres_amount", "description": "The sum of the prices of all line items in the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_shop_currency_code": {"name": "total_line_items_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_pres_currency_code": {"name": "total_line_items_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_amount": {"name": "total_price_set_shop_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_amount": {"name": "total_price_set_pres_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_currency_code": {"name": "total_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_currency_code": {"name": "total_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The sum of all the taxes applied to the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The sum of all the taxes applied to the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "completed_at": {"name": "completed_at", "description": "The date and time when the buyer completed the checkout. Null if the checkout has not been completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "created_at": 1754505369.8512833, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.collection_product": {"database": "postgres", "schema": "public", "name": "collection_product", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection_product", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection_product"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "created_at": 1754505369.8518934, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.collection": {"database": "postgres", "schema": "public", "name": "collection", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "applied_disjunctively": {"name": "applied_disjunctively", "description": "Boolean representing whether products must match any or all of the `rules` to be included in the collection. True = products must match at least one rule, false = products must match all rules.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values inclide - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_data\"", "created_at": 1754505369.8525283, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_tag": {"database": "postgres", "schema": "public", "name": "customer_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "created_at": 1754505369.8531466, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment": {"database": "postgres", "schema": "public", "name": "fulfillment", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_status": {"name": "display_status", "description": "Display status for this fulfillment. Valid values include `attempted_delivery`, `canceled`, `confirmed`, `delayed`, `delivered`, `failure`, `fulfilled`, `in_transit`, `label_printed`, `label_purchased`, `label_voided`, `marked_as_fulfilled`, `not_delivered`, `out_for_delivery`, `picked_up`, `ready_for_pickup`, `submitted`. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service_id": {"name": "service_id", "description": "The id of the fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: (Legacy status, to be deprecated) Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: (Legacy status, to be deprecated) The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "Sum of all line item quantities for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "created_at": 1754505369.853775, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_item": {"database": "postgres", "schema": "public", "name": "inventory_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_item", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_item"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked": {"name": "tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_locked": {"name": "tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "created_at": 1754505369.8544676, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_level": {"database": "postgres", "schema": "public", "name": "inventory_level", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_level", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_level"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_level_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "created_at": 1754505369.855143, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_quantity": {"database": "postgres", "schema": "public", "name": "inventory_quantity", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_quantity", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_quantity"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_quantity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The total quantity of the inventory item available at all locations.", "columns": {"id": {"name": "id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "created_at": 1754505369.8557584, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.location": {"database": "postgres", "schema": "public", "name": "location", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.location", "fqn": ["shopify_source", "graphql", "shopify_graphql", "location"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_location_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_fulfillment_service": {"name": "is_fulfillment_service", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_location_data\"", "created_at": 1754505369.856425, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.metafield": {"database": "postgres", "schema": "public", "name": "metafield", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.metafield", "fqn": ["shopify_source", "graphql", "shopify_graphql", "metafield"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_metafield_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_id": {"name": "owner_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Use this instead of `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_metafield_data\"", "created_at": 1754505369.85706, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_note_attribute": {"database": "postgres", "schema": "public", "name": "order_note_attribute", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_note_attribute", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_note_attribute"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_note_attribute_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "created_at": 1754505369.8576562, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_shipping_line": {"database": "postgres", "schema": "public", "name": "order_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_shipping_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_shipping_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_pres_amount": {"name": "current_discounted_price_set_pres_amount", "description": "Current shipping price in customer currency after applying refunds and discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_pres_currency_code": {"name": "current_discounted_price_set_pres_currency_code", "description": "Three digit customer currency code for the current discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_shop_amount": {"name": "current_discounted_price_set_shop_amount", "description": "Current shipping price in shop currency after applying refunds and discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_shop_currency_code": {"name": "current_discounted_price_set_shop_currency_code", "description": "Three digit shop currency code for the current discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_pres_amount": {"name": "discounted_price_set_pres_amount", "description": "Shipping price in customer currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_pres_currency_code": {"name": "discounted_price_set_pres_currency_code", "description": "Three digit customer currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_shop_amount": {"name": "discounted_price_set_shop_amount", "description": "Shipping price in shop currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_shop_currency_code": {"name": "discounted_price_set_shop_currency_code", "description": "Three digit shop currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_removed": {"name": "is_removed", "description": "Whether the shipping line has been removed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_pres_amount": {"name": "original_price_set_pres_amount", "description": "The pre-tax shipping price without any discounts applied in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_pres_currency_code": {"name": "original_price_set_pres_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_shop_amount": {"name": "original_price_set_shop_amount", "description": "The pre-tax shipping price without any discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_shop_currency_code": {"name": "original_price_set_shop_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_rate_handle": {"name": "shipping_rate_handle", "description": "A unique identifier for the shipping rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "created_at": 1754505369.858373, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_shipping_tax_line": {"database": "postgres", "schema": "public", "name": "order_shipping_tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_shipping_tax_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_shipping_tax_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_shipping_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this recod is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_amount": {"name": "price_set_pres_amount", "description": "The amount of tax in customer currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_currency_code": {"name": "price_set_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_amount": {"name": "price_set_shop_amount", "description": "The amount of tax in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_currency_code": {"name": "price_set_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The source of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "created_at": 1754505369.8589954, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_tag": {"database": "postgres", "schema": "public", "name": "order_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "created_at": 1754505369.8596263, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.media": {"database": "postgres", "schema": "public", "name": "media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing media metadata, including status and timestamps.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "alt": {"name": "alt", "description": "A word or phrase to share the nature or contents of a media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "file_status": {"name": "file_status", "description": "The status of the file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_content_type": {"name": "media_content_type", "description": "The media content type (values include 'external_video', 'image', 'model_3d', 'video')", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_alt_text": {"name": "preview_image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_height": {"name": "preview_image_height", "description": "The original height of the image in pixels (returns null if image not hosted in Shopify).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_id": {"name": "preview_image_id", "description": "A unique id for the image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_url": {"name": "preview_image_url", "description": "The location of the image as a URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_width": {"name": "preview_image_width", "description": "The original width of the image in pixels (returns null if image not hosted in Shopify).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_status": {"name": "preview_status", "description": "Current status of the preview image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_data\"", "created_at": 1754505369.8602943, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.media_image": {"database": "postgres", "schema": "public", "name": "media_image", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.media_image", "fqn": ["shopify_source", "graphql", "shopify_graphql", "media_image"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_media_image_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_image_data\"", "created_at": 1754505369.860896, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_media": {"database": "postgres", "schema": "public", "name": "product_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_media_data\"", "created_at": 1754505369.8615122, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_variant_media": {"database": "postgres", "schema": "public", "name": "product_variant_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_variant_media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_variant_media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_variant_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping product variants to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "created_at": 1754505369.8621185, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_tag": {"database": "postgres", "schema": "public", "name": "product_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "created_at": 1754505369.862787, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.shop": {"database": "postgres", "schema": "public", "name": "shop", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.shop", "fqn": ["shopify_source", "graphql", "shopify_graphql", "shop"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_shop_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The shop's street address (or PO Box number).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_api_supported": {"name": "checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code_v_2": {"name": "billing_address_country_code_v_2", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The three letter code for the currency that the shop sells in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_domain_host": {"name": "primary_domain_host", "description": "The host name of the primary domain of the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "contact_email": {"name": "contact_email", "description": "The public-facing contact email address for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "features_storefront": {"name": "features_storefront", "description": "Whether a shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_format": {"name": "currency_formats_money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_in_emails_format": {"name": "currency_formats_money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_with_currency_format": {"name": "currency_formats_money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_with_currency_in_emails_format": {"name": "currency_formats_money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "password_enabled": {"name": "password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_domain_localization_default_locale": {"name": "primary_domain_localization_default_locale", "description": "The localization of the domain of the shop's online store, if the domain doesn't redirect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "setup_required": {"name": "setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner_name": {"name": "shop_owner_name", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_shipping": {"name": "tax_shipping", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_abbreviation": {"name": "timezone_abbreviation", "description": "The shop's time zone abbreviation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset": {"name": "timezone_offset", "description": "The shop's time zone offset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset_minutes": {"name": "timezone_offset_minutes", "description": "The shop's time zone offset expressed as a number of minutes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_shop_data\"", "created_at": 1754505369.8635607, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.tender_transaction": {"database": "postgres", "schema": "public", "name": "tender_transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.tender_transaction", "fqn": ["shopify_source", "graphql", "shopify_graphql", "tender_transaction"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_tender_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the tender transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "created_at": 1754505369.864206, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "abandoned_checkout_discount_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_abandoned_checkout_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index (from 1) representing the application of the discount to the checkout. Use the latest (highest index)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "created_at": 1754505369.8648129, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_discount_code": {"database": "postgres", "schema": "public", "name": "order_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_discount_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_discount_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "created_at": 1754505369.8654273, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_event": {"database": "postgres", "schema": "public", "name": "fulfillment_event", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_event", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_event"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_event_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delayed: The shipment was delayed. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "created_at": 1754505369.866112, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.tax_line": {"database": "postgres", "schema": "public", "name": "tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.tax_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "tax_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_amount": {"name": "price_set_pres_amount", "description": "The amount of tax in customer currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_currency_code": {"name": "price_set_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_amount": {"name": "price_set_shop_amount", "description": "The amount of tax in shop currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_currency_code": {"name": "price_set_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "created_at": 1754505369.8667278, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_allocation": {"database": "postgres", "schema": "public", "name": "discount_allocation", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_allocation", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_allocation"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_allocation_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing allocation amounts applied to order lines from discount applications. Discount allocations indicate how much of the discount was applied and how it was split across line items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocated_amount_set_pres_amount": {"name": "allocated_amount_set_pres_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_pres_currency_code": {"name": "allocated_amount_set_pres_currency_code", "description": "The currency code associated with the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_shop_amount": {"name": "allocated_amount_set_shop_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_shop_currency_code": {"name": "allocated_amount_set_shop_currency_code", "description": "The currency code associated with the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of this allocation in the list of discount allocations applied to an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "created_at": 1754505369.8673518, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_application": {"database": "postgres", "schema": "public", "name": "discount_application", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_application", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_application"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_application_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount applications, which define how discounts were applied to an order or shipping line. This includes metadata like allocation method, target type, and value type.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The allocation method used to apply the discount. Valid values include `each` (the discount is applied to each entitled item) and `across` (the discount is applied across all entitled items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Specifies whether the discount applies to all items (`all`) or only entitled ones (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "Indicates whether the discount applies to `line_item` or `shipping_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "created_at": 1754505369.8679702, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_app": {"database": "postgres", "schema": "public", "name": "discount_code_app", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_app", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_app"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_app_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount codes created and managed through apps using Shopify Functions. These app-based discounts support advanced, dynamic behavior and custom targeting.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of times a discount applies on recurring purchases (subscriptions). 0 will apply infinitely. 1 will only apply to the first checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_count": {"name": "codes_count_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_precision": {"name": "codes_count_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "created_at": 1754505369.8686442, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_basic": {"database": "postgres", "schema": "public", "name": "discount_code_basic", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_basic", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_basic"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_basic_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing basic discount codes and their metadata. This includes usage limits, timeframes, eligible customers, combination rules, and tracked usage.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "Number of billing cycles the discount can be applied for (used for subscriptions).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is an exact number or an estimate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "created_at": 1754505369.8693402, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_bxgy": {"database": "postgres", "schema": "public", "name": "discount_code_bxgy", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_bxgy", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_bxgy"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_bxgy_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing Buy X Get Y discount codes, including conditions for what customers must buy, what they receive, and metadata such as usage, status, and combination eligibility.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "created_at": 1754505369.870021, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_free_shipping": {"database": "postgres", "schema": "public", "name": "discount_code_free_shipping", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_free_shipping", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_free_shipping"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_free_shipping_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing free shipping discount codes and metadata, including subscription and one-time purchase applicability, eligible countries, usage limits, and combination rules.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles for which the discount can be applied, which is useful for subscription-based discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "created_at": 1754505369.8707452, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_redeem_code": {"database": "postgres", "schema": "public", "name": "discount_redeem_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_redeem_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_redeem_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_redeem_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each code is tied to a parent discount and may be created by an app or manually by a merchant.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This value is updated asynchronously and may not match real-time usage counts.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (usually an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount this redeem code is associated with (e.g., `discount_code_basic`, `discount_code_bxgy`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "created_at": 1754505369.8713796, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_tracking_info": {"database": "postgres", "schema": "public", "name": "fulfillment_tracking_info", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_tracking_info", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_tracking_info"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_tracking_info_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents tracking information associated with a fulfillment. Used by Shopify to generate clickable tracking numbers and delivery updates.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_id": {"name": "fulfillment_id", "description": "The unique identifier of the fulfillment this tracking info belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The name of the tracking company. For supported carriers, Shopify automatically builds tracking URLs and may update the shipment status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "Tracking number for the fulfillment. If a known tracking company is specified, or the number matches a known format, Shopify may auto-generate a tracking URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "url": {"name": "url", "description": "Direct URL to track the fulfillment. This is displayed in the Shopify admin and customer notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the tracking information associated with a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "created_at": 1754505369.872438, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_visit": {"database": "postgres", "schema": "public", "name": "customer_visit", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_visit", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_visit"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_visit_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metadata about a customer's session visiting a Shopify store, including session, landing page, referrer, marketing campaign, and source attribution information. This data helps merchants analyze the effectiveness of marketing campaigns and customer engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "A globally-unique identifier for the customer visit session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order associated with the customer visit, if any.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of marketing tactic associated with the session. Possible values include: abandoned_cart, ad, affiliate, link, loyalty, message, newsletter, notification, post, retargeting, seo, storefront_app, transactional.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page": {"name": "landing_page", "description": "The URL of the first page the customer landed on for the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page_html": {"name": "landing_page_html", "description": "The landing page URL rendered as HTML with a hyperlink.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "occurred_at": {"name": "occurred_at", "description": "The timestamp when the customer's session occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_code": {"name": "referral_code", "description": "A marketing referral code captured from the landing URL. Supports query params like `ref`, `source`, or `r`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_info_html": {"name": "referral_info_html", "description": "Referral info rendered as HTML with URLs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referrer_url": {"name": "referrer_url", "description": "The referring webpage where the customer clicked a link to arrive at the store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The origin of the customer's visit, such as a platform (e.g., Facebook, Google), a QR code, direct, or other attribution channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_description": {"name": "source_description", "description": "A more descriptive label for the visit source; used primarily for the first or last session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_type": {"name": "source_type", "description": "The marketing tactic type, such as ad, seo, newsletter, etc.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_campaign": {"name": "utm_parameters_campaign", "description": "The name of the marketing campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_content": {"name": "utm_parameters_content", "description": "Identifies specific content within a campaign, used to differentiate similar links.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_medium": {"name": "utm_parameters_medium", "description": "The medium of the campaign (e.g., cpc, banner, email).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_source": {"name": "utm_parameters_source", "description": "The traffic source for the campaign (e.g., google, newsletter).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_term": {"name": "utm_parameters_term", "description": "Search terms associated with paid campaigns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "created_at": 1754505369.8731215, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_order_line_item": {"database": "postgres", "schema": "public", "name": "fulfillment_order_line_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_order_line_item", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_order_line_item"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_order_line_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Links a fulfillment order to specific items that require fulfillment. Contains detailed product information, quantity tracking, variant metadata, and shipping requirements. This is a core entity for determining which products and how many units are involved in a given fulfillment process.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_order_id": {"name": "fulfillment_order_id", "description": "The identifier of the fulfillment order that this line item is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for this fulfillment order line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "Alt text describing the image associated with the line item's variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "The height in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "The unique identifier for the variant image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The url of the variant image used in this fulfillment line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "The width in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The identifier of the inventory item being fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_item_id": {"name": "order_line_item_id", "description": "The identifier of the original order line item linked to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_title": {"name": "product_title", "description": "The title of the product at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The identifier of the product variant associated with this fulfillment item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remaining_quantity": {"name": "remaining_quantity", "description": "The number of units remaining to be fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Indicates whether physical shipping is required for this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The SKU of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "The total number of units allocated to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The vendor of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "created_at": 1754505369.87443, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_address": {"database": "postgres", "schema": "public", "name": "customer_address", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_address", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_address"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a customer's mailing address and includes additional geographic metadata.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer to whom this address belongs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the customer address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The first line of the address (e.g., street address or PO Box).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The second line of the address (e.g., apartment, suite, or unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The name of the city, district, village, or town for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The company or organization associated with the customer at this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The full country name for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter ISO country code for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_default": {"name": "is_default", "description": "Indicates if this address is the default shipping address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The full name of the customer, derived from first and last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer\u2019s phone number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The name of the region, state, or province for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The standardized zone or province code for the region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code of the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "validation_result_summary": {"name": "validation_result_summary", "description": "A summary of address validation results (e.g., match confidence or status).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The timezone associated with the address, if available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "coordinates_validated": {"name": "coordinates_validated", "description": "Indicates whether the latitude and longitude coordinates were validated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "created_at": 1754505369.8751478, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.33414, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.334581, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3348143, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3350623, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3353028, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\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 when 'm' then 'MATERIALIZED 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 where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- 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', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\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{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3372803, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3379815, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3389935, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.339279, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3437202, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.344847, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3455043, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3461268, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3470337, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.347879, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3482409, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3489008, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3496516, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3512728, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3516622, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3523028, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.35285, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3537052, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n {% if relation.type == 'materialized_view' -%}\n {% set relation_type = \"materialized view\" %}\n {%- else -%}\n {%- set relation_type = relation.type -%}\n {%- endif -%}\n comment on {{ relation_type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.354508, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3557112, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3561406, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.356383, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3567286, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.357018, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n update {{ target }}\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }}::text = {{ target }}.{{ columns.dbt_scd_id }}::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n {% if config.get(\"dbt_valid_to_current\") %}\n and ({{ target }}.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }} or {{ target }}.{{ columns.dbt_valid_to }} is null);\n {% else %}\n and {{ target }}.{{ columns.dbt_valid_to }} is null;\n {% endif %}\n\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3595083, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3604453, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_microbatch_sql": {"name": "postgres__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_microbatch_sql", "macro_sql": "{% macro postgres__get_incremental_microbatch_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"dbt-postgres 'microbatch' requires a `unique_key` config\") }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_merge_sql", "macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.361105, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3618884, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3622093, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.363221, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.367099, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3675473, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3685026, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.36879, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3691542, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3703606, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3706522, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}{{ ';' if not loop.last else \"\" }}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3714802, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3720756, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3724265, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3734882, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }}\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\t{{ ';' if not loop.last else \"\" }}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3746943, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config.model) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3753304, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3756375, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3759155, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3762789, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3773065, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3778794, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3784978, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3791115, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3808725, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3813238, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3816254, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3819125, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3822157, "supported_languages": null}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.384012, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3859851, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3864732, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation.render() %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.387513, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.387913, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.388218, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3885055, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3887436, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3890774, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3893218, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.390297, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3906727, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3931522, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation.render())) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.3983536, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n {% do create_indexes(intermediate_relation) %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4025526, "supported_languages": ["sql"]}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.406707, "supported_languages": ["sql"]}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4097908, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4105859, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4110973, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation.render() ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation.render() ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4136393, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4141252, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4154, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4166777, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4171667, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4175441, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4181328, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4185026, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.419087, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4194512, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.419956, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4204865, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.42079, "supported_languages": null}, "macro.dbt.get_incremental_microbatch_sql": {"name": "get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_microbatch_sql", "macro_sql": "{% macro get_incremental_microbatch_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_microbatch_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_microbatch_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4211717, "supported_languages": null}, "macro.dbt.default__get_incremental_microbatch_sql": {"name": "default__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_microbatch_sql", "macro_sql": "{% macro default__get_incremental_microbatch_sql(arg_dict) %}\n\n {{ exceptions.raise_not_implemented('microbatch materialization strategy not implemented for adapter ' + adapter.type()) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4215024, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4220836, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4236732, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.424755, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.426093, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4265592, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4279637, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4300103, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set source_unique_key = (\"DBT_INTERNAL_SOURCE.\" ~ unique_key) | trim %}\n\t {% set target_unique_key = (\"DBT_INTERNAL_DEST.\" ~ unique_key) | trim %}\n\t {% set unique_key_match = equals(source_unique_key, target_unique_key) | trim %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4347506, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4356973, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is string %}\n {% set unique_key = [unique_key] %}\n {% endif %}\n\n {%- set unique_key_str = unique_key|join(', ') -%}\n\n delete from {{ target }} as DBT_INTERNAL_DEST\n where ({{ unique_key_str }}) in (\n select distinct {{ unique_key_str }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4378147, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4386318, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4408205, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% set relation_for_indexes = target_relation %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set relation_for_indexes = intermediate_relation %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% set relation_for_indexes = temp_relation %}\n {% set contract_config = config.get('contract') %}\n {% if not contract_config or not contract_config.enforced %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {% endif %}\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_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(relation_for_indexes) %}\n {% endif %}\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 {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.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": 1754505360.4550357, "supported_languages": ["sql"]}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4572034, "supported_languages": null}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4611993, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4654336, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4682953, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4701276, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.470697, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4709637, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation.render() ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% if target_relation.database == defer_relation.database and\n target_relation.schema == defer_relation.schema and\n target_relation.identifier == defer_relation.identifier %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation.render()) }}\n {% else %}\n {% call statement('main') %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endcall %}\n {% endif %}\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4774559, "supported_languages": ["sql"]}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4784808, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation.render() }} clone {{ defer_relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.478958, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4843473, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4848642, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4854548, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set primary_key = config.get('unique_key') %}\n {% set updated_at = config.get('updated_at') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\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 }}.{{ columns.dbt_valid_from }} < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4882786, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4887288, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4891598, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4922147, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set check_cols_config = config.get('check_cols') %}\n {% set primary_key = config.get('unique_key') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set updated_at = config.get('updated_at') or 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_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4963458, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.4975274, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n merge into {{ target.render() }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }} = DBT_INTERNAL_DEST.{{ columns.dbt_scd_id }}\n\n when matched\n {% if config.get(\"dbt_valid_to_current\") %}\n\t{% set source_unique_key = (\"DBT_INTERNAL_DEST.\" ~ columns.dbt_valid_to) | trim %}\n\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\tand ({{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null)\n\n {% else %}\n and DBT_INTERNAL_DEST.{{ columns.dbt_valid_to }} is null\n {% endif %}\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.499857, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.505005, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation.render() }} add column {{ adapter.quote(column.name) }} {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5060859, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.50662, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5068426, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.507351, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5076435, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5081804, "supported_languages": null}, "macro.dbt.get_snapshot_table_column_names": {"name": "get_snapshot_table_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_snapshot_table_column_names", "macro_sql": "{% macro get_snapshot_table_column_names() %}\n {{ return({'dbt_valid_to': 'dbt_valid_to', 'dbt_valid_from': 'dbt_valid_from', 'dbt_scd_id': 'dbt_scd_id', 'dbt_updated_at': 'dbt_updated_at', 'dbt_is_deleted': 'dbt_is_deleted'}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5089571, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n {% if strategy.hard_deletes == 'new_record' %}\n {% set new_scd_id = snapshot_hash_arguments([columns.dbt_scd_id, snapshot_get_time()]) %}\n {% endif %}\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }}\n from {{ target_relation }}\n where\n {% if config.get('dbt_valid_to_current') %}\n\t\t{% set source_unique_key = columns.dbt_valid_to | trim %}\n\t\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\n\t\t{# The exact equals semantics between NULL values depends on the current behavior flag set. Also, update records if the source field is null #}\n ( {{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null )\n {% else %}\n {{ columns.dbt_valid_to }} is null\n {% endif %}\n\n ),\n\n insertions_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }},\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }}\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_to }}\n\n from snapshot_query\n ),\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n\n deletes_source_data as (\n\n select *, {{ unique_key_fields(strategy.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 {%- if strategy.hard_deletes == 'new_record' -%}\n ,'False' as {{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from insertions_source_data as source_data\n left outer join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"snapshotted_data\") }}\n or ({{ unique_key_is_not_null(strategy.unique_key, \"snapshotted_data\") }} and (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from updates_source_data as source_data\n join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n )\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n ,\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_to }},\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n and not (\n --avoid updating the record's valid_to if the latest entry is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n {%- endif %}\n )\n {%- endif %}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n {% set snapshotted_cols = get_list_of_column_names(get_columns_in_relation(target_relation)) %}\n {% set source_sql_cols = get_column_schema_from_query(source_sql) %}\n ,\n deletion_records as (\n\n select\n 'insert' as dbt_change_type,\n {#\n If a column has been added to the source it won't yet exist in the\n snapshotted table so we insert a null value as a placeholder for the column.\n #}\n {%- for col in source_sql_cols -%}\n {%- if col.name in snapshotted_cols -%}\n snapshotted_data.{{ adapter.quote(col.column) }},\n {%- else -%}\n NULL as {{ adapter.quote(col.column) }},\n {%- endif -%}\n {% endfor -%}\n {%- if strategy.unique_key | is_list -%}\n {%- for key in strategy.unique_key -%}\n snapshotted_data.{{ key }} as dbt_unique_key_{{ loop.index }},\n {% endfor -%}\n {%- else -%}\n snapshotted_data.dbt_unique_key as dbt_unique_key,\n {% endif -%}\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n snapshotted_data.{{ columns.dbt_valid_to }} as {{ columns.dbt_valid_to }},\n {{ new_scd_id }} as {{ columns.dbt_scd_id }},\n 'True' as {{ columns.dbt_is_deleted }}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n and not (\n --avoid inserting a new record if the latest one is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletes\n {%- endif %}\n {%- if strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletion_records\n {%- endif %}\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments", "macro.dbt.snapshot_get_time", "macro.dbt.unique_key_fields", "macro.dbt.equals", "macro.dbt.get_dbt_valid_to_current", "macro.dbt.unique_key_join_on", "macro.dbt.unique_key_is_null", "macro.dbt.unique_key_is_not_null", "macro.dbt.get_list_of_column_names", "macro.dbt.get_columns_in_relation", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.520982, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5217528, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n\n select *,\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , 'False' as {{ columns.dbt_is_deleted }}\n {% endif -%}\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.get_dbt_valid_to_current"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5229738, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5239003, "supported_languages": null}, "macro.dbt.get_updated_at_column_data_type": {"name": "get_updated_at_column_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_updated_at_column_data_type", "macro_sql": "{% macro get_updated_at_column_data_type(snapshot_sql) %}\n {% set snapshot_sql_column_schema = get_column_schema_from_query(snapshot_sql) %}\n {% set dbt_updated_at_data_type = null %}\n {% set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {% set ns.dbt_updated_at_data_type = null -%}\n {% for column in snapshot_sql_column_schema %}\n {% if ((column.column == 'dbt_updated_at') or (column.column == 'DBT_UPDATED_AT')) %}\n {% set ns.dbt_updated_at_data_type = column.dtype %}\n {% endif %}\n {% endfor %}\n {{ return(ns.dbt_updated_at_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5250828, "supported_languages": null}, "macro.dbt.check_time_data_types": {"name": "check_time_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.check_time_data_types", "macro_sql": "{% macro check_time_data_types(sql) %}\n {% set dbt_updated_at_data_type = get_updated_at_column_data_type(sql) %}\n {% set snapshot_get_time_data_type = get_snapshot_get_time_data_type() %}\n {% if snapshot_get_time_data_type is not none and dbt_updated_at_data_type is not none and snapshot_get_time_data_type != dbt_updated_at_data_type %}\n {% if exceptions.warn_snapshot_timestamp_data_types %}\n {{ exceptions.warn_snapshot_timestamp_data_types(snapshot_get_time_data_type, dbt_updated_at_data_type) }}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_updated_at_column_data_type", "macro.dbt.get_snapshot_get_time_data_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5259063, "supported_languages": null}, "macro.dbt.get_dbt_valid_to_current": {"name": "get_dbt_valid_to_current", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_dbt_valid_to_current", "macro_sql": "{% macro get_dbt_valid_to_current(strategy, columns) %}\n {% set dbt_valid_to_current = config.get('dbt_valid_to_current') or \"null\" %}\n coalesce(nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}), {{dbt_valid_to_current}})\n as {{ columns.dbt_valid_to }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5264692, "supported_languages": null}, "macro.dbt.unique_key_fields": {"name": "unique_key_fields", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_fields", "macro_sql": "{% macro unique_key_fields(unique_key) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n {{ key }} as dbt_unique_key_{{ loop.index }}\n {%- if not loop.last %} , {%- endif %}\n {% endfor %}\n {% else %}\n {{ unique_key }} as dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5271604, "supported_languages": null}, "macro.dbt.unique_key_join_on": {"name": "unique_key_join_on", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_join_on", "macro_sql": "{% macro unique_key_join_on(unique_key, identifier, from_identifier) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n\t {% set source_unique_key = (identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {% set target_unique_key = (from_identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {{ equals(source_unique_key, target_unique_key) }}\n {%- if not loop.last %} and {%- endif %}\n {% endfor %}\n {% else %}\n {{ identifier }}.dbt_unique_key = {{ from_identifier }}.dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5282836, "supported_languages": null}, "macro.dbt.unique_key_is_null": {"name": "unique_key_is_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_null", "macro_sql": "{% macro unique_key_is_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is null\n {% else %}\n {{ identifier }}.dbt_unique_key is null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5286996, "supported_languages": null}, "macro.dbt.unique_key_is_not_null": {"name": "unique_key_is_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_not_null", "macro_sql": "{% macro unique_key_is_not_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is not null\n {% else %}\n {{ identifier }}.dbt_unique_key is not null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5291307, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n\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 {# The model['config'] parameter below is no longer used, but passing anyway for compatibility #}\n {# It was a dictionary of config, instead of the config object from the context #}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", model['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 build_or_select_sql = build_sql %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\n\n {{ adapter.assert_valid_snapshot_target_given_strategy(target_relation, columns, strategy) }}\n\n {% set build_or_select_sql = snapshot_staging_table(strategy, sql, target_relation) %}\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 remove_columns = ['dbt_change_type', 'DBT_CHANGE_TYPE', 'dbt_unique_key', 'DBT_UNIQUE_KEY'] %}\n {% if unique_key | is_list %}\n {% for key in strategy.unique_key %}\n {{ remove_columns.append('dbt_unique_key_' + loop.index|string) }}\n {{ remove_columns.append('DBT_UNIQUE_KEY_' + loop.index|string) }}\n {% endfor %}\n {% endif %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'in', remove_columns)\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', 'in', remove_columns)\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\n {{ check_time_data_types(build_or_select_sql) }}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_staging_table", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.check_time_data_types", "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": 1754505360.5370755, "supported_languages": ["sql"]}, "macro.dbt.materialization_unit_default": {"name": "materialization_unit_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/unit.sql", "original_file_path": "macros/materializations/tests/unit.sql", "unique_id": "macro.dbt.materialization_unit_default", "macro_sql": "{%- materialization unit, default -%}\n\n {% set relations = [] %}\n\n {% set expected_rows = config.get('expected_rows') %}\n {% set expected_sql = config.get('expected_sql') %}\n {% set tested_expected_column_names = expected_rows[0].keys() if (expected_rows | length ) > 0 else get_columns_in_query(sql) %} %}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {% do run_query(get_create_table_as_sql(True, temp_relation, get_empty_subquery_sql(sql))) %}\n {%- set columns_in_relation = adapter.get_columns_in_relation(temp_relation) -%}\n {%- set column_name_to_data_types = {} -%}\n {%- for column in columns_in_relation -%}\n {%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n {%- endfor -%}\n\n {% if not expected_sql %}\n {% set expected_sql = get_expected_sql(expected_rows, column_name_to_data_types) %}\n {% endif %}\n {% set unit_test_sql = get_unit_test_sql(sql, expected_sql, tested_expected_column_names) %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ unit_test_sql }}\n\n {%- endcall %}\n\n {% do adapter.drop_relation(temp_relation) %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt.make_temp_relation", "macro.dbt.run_query", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_empty_subquery_sql", "macro.dbt.get_expected_sql", "macro.dbt.get_unit_test_sql", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5401993, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n {% set limit = config.get('limit') %}\n\n {% set sql_with_limit %}\n {{ get_limit_subquery_sql(sql, limit) }}\n {% endset %}\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\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql_with_limit) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {# Since the test failures have already been saved to the database, reuse that result rather than querying again #}\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_with_limit %}\n\n {% endif %}\n\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 {# The limit has already been included above, and we do not want to duplicate it again. We also want to be safe for macro overrides treating `limit` as a required parameter. #}\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit=none)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5446477, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.545781, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.546398, "supported_languages": null}, "macro.dbt.get_unit_test_sql": {"name": "get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_unit_test_sql", "macro_sql": "{% macro get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n {{ adapter.dispatch('get_unit_test_sql', 'dbt')(main_sql, expected_fixture_sql, expected_column_names) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_unit_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5468059, "supported_languages": null}, "macro.dbt.default__get_unit_test_sql": {"name": "default__get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_unit_test_sql", "macro_sql": "{% macro default__get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n-- Build actual result given inputs\nwith dbt_internal_unit_test_actual as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%},{% endif %}{%- endfor -%}, {{ dbt.string_literal(\"actual\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ main_sql }}\n ) _dbt_internal_unit_test_actual\n),\n-- Build expected result\ndbt_internal_unit_test_expected as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%}, {% endif %}{%- endfor -%}, {{ dbt.string_literal(\"expected\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ expected_fixture_sql }}\n ) _dbt_internal_unit_test_expected\n)\n-- Union actual and expected results\nselect * from dbt_internal_unit_test_actual\nunion all\nselect * from dbt_internal_unit_test_expected\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5479827, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5486298, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5493782, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5498302, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5508063, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5513742, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5519378, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5528023, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5531263, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5534186, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5536344, "supported_languages": null}, "macro.dbt.get_snapshot_get_time_data_type": {"name": "get_snapshot_get_time_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.get_snapshot_get_time_data_type", "macro_sql": "{% macro get_snapshot_get_time_data_type() %}\n {% set snapshot_time = adapter.dispatch('snapshot_get_time', 'dbt')() %}\n {% set time_data_type_sql = 'select ' ~ snapshot_time ~ ' as dbt_snapshot_time' %}\n {% set snapshot_time_column_schema = get_column_schema_from_query(time_data_type_sql) %}\n {% set time_data_type = snapshot_time_column_schema[0].dtype %}\n {{ return(time_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt_postgres.postgres__snapshot_get_time", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5546083, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5549574, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5551417, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5554676, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5557883, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.556401, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5567605, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5570903, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5574796, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5589888, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5595088, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.559902, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5604193, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.560778, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.561113, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5614648, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5619478, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5623705, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5629666, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5635035, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5638325, "supported_languages": null}, "macro.dbt.get_catalog_for_single_relation": {"name": "get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_for_single_relation", "macro_sql": "{% macro get_catalog_for_single_relation(relation) %}\n {{ return(adapter.dispatch('get_catalog_for_single_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_catalog_for_single_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5642111, "supported_languages": null}, "macro.dbt.default__get_catalog_for_single_relation": {"name": "default__get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_for_single_relation", "macro_sql": "{% macro default__get_catalog_for_single_relation(relation) %}\n {{ exceptions.raise_not_implemented(\n 'get_catalog_for_single_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5645218, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.564842, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5651731, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.565566, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.565894, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.566721, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5670614, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.56746, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.567782, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5683131, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5692499, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5698001, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.570272, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5723686, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5727046, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.573347, "supported_languages": null}, "macro.dbt.get_list_of_column_names": {"name": "get_list_of_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_list_of_column_names", "macro_sql": "\n\n{%- macro get_list_of_column_names(columns) -%}\n {% set col_names = [] %}\n {% for col in columns %}\n {% do col_names.append(col.name) %}\n {% endfor %}\n {{ return(col_names) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5740838, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5744998, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.574896, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5752594, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n {{ cast('null', col['data_type']) }} as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5775197, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5782135, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5785666, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5792427, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5796888, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation.render() }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation.render() }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation.render() }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation.render() }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5809507, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.581462, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation.render() }}\n\n {% for column in add_columns %}\n add column {{ column.quoted }} {{ 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.quoted }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5830204, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header is not none -%}\n {{ sql_header }}\n {%- endif %}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5838168, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "\n{%- macro get_limit_subquery_sql(sql, limit) -%}\n {{ adapter.dispatch('get_limit_sql', 'dbt')(sql, limit) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_limit_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.584202, "supported_languages": null}, "macro.dbt.default__get_limit_sql": {"name": "default__get_limit_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_sql", "macro_sql": "{% macro default__get_limit_sql(sql, limit) %}\n {{ sql }}\n {% if limit is not none %}\n limit {{ limit }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5845811, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.585874, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5862315, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {#-- This ensures microbatch batches get unique temp relations to avoid clobbering --#}\n {% if suffix == '__dbt_tmp' and model.batch %}\n {% set suffix = suffix ~ '_' ~ model.batch.id %}\n {% endif %}\n\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5869708, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.587722, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5882158, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5888176, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.589189, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation.render() }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5895433, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5900106, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5910707, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5915039, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5917816, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.592712, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5929856, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.593317, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5940983, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5944643, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.594736, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5950618, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.595331, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5961998, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.596993, "supported_languages": null}, "macro.dbt.collect_freshness_custom_sql": {"name": "collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness_custom_sql", "macro_sql": "{% macro collect_freshness_custom_sql(source, loaded_at_query) %}\n {{ return(adapter.dispatch('collect_freshness_custom_sql', 'dbt')(source, loaded_at_query))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness_custom_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.597593, "supported_languages": null}, "macro.dbt.default__collect_freshness_custom_sql": {"name": "default__collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness_custom_sql", "macro_sql": "{% macro default__collect_freshness_custom_sql(source, loaded_at_query) %}\n {% call statement('collect_freshness_custom_sql', fetch_result=True, auto_begin=False) -%}\n with source_query as (\n {{ loaded_at_query }}\n )\n select\n (select * from source_query) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n {% endcall %}\n {{ return(load_result('collect_freshness_custom_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.5982149, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6002078, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6004446, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6007679, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6009917, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6016698, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6020272, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6022823, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6027086, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation.render() }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6031268, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6035666, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation.render() }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6039727, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6044288, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.605742, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.606125, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.606604, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6070533, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation.render() ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.609433, "supported_languages": null}, "macro.dbt.get_fixture_sql": {"name": "get_fixture_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_fixture_sql", "macro_sql": "{% macro get_fixture_sql(rows, column_name_to_data_types) %}\n-- Fixture for {{ model.name }}\n{% set default_row = {} %}\n\n{%- if not column_name_to_data_types -%}\n{#-- Use defer_relation IFF it is available in the manifest and 'this' is missing from the database --#}\n{%- set this_or_defer_relation = defer_relation if (defer_relation and not load_relation(this)) else this -%}\n{%- set columns_in_relation = adapter.get_columns_in_relation(this_or_defer_relation) -%}\n\n{%- set column_name_to_data_types = {} -%}\n{%- for column in columns_in_relation -%}\n{#-- This needs to be a case-insensitive comparison --#}\n{%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n{%- endfor -%}\n{%- endif -%}\n\n{%- if not column_name_to_data_types -%}\n {{ exceptions.raise_compiler_error(\"Not able to get columns for unit test '\" ~ model.name ~ \"' from relation \" ~ this ~ \" because the relation doesn't exist\") }}\n{%- endif -%}\n\n{%- for column_name, column_type in column_name_to_data_types.items() -%}\n {%- do default_row.update({column_name: (safe_cast(\"null\", column_type) | trim )}) -%}\n{%- endfor -%}\n\n{{ validate_fixture_rows(rows, row_number) }}\n\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\n{%- set default_row_copy = default_row.copy() -%}\n{%- do default_row_copy.update(formatted_row) -%}\nselect\n{%- for column_name, column_value in default_row_copy.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n\n{%- if (rows | length) == 0 -%}\n select\n {%- for column_name, column_value in default_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%},{%- endif %}\n {%- endfor %}\n limit 0\n{%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.safe_cast", "macro.dbt.validate_fixture_rows", "macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.614039, "supported_languages": null}, "macro.dbt.get_expected_sql": {"name": "get_expected_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_expected_sql", "macro_sql": "{% macro get_expected_sql(rows, column_name_to_data_types) %}\n\n{%- if (rows | length) == 0 -%}\n select * from dbt_internal_unit_test_actual\n limit 0\n{%- else -%}\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\nselect\n{%- for column_name, column_value in formatted_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.615138, "supported_languages": null}, "macro.dbt.format_row": {"name": "format_row", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.format_row", "macro_sql": "\n\n{%- macro format_row(row, column_name_to_data_types) -%}\n {#-- generate case-insensitive formatted row --#}\n {% set formatted_row = {} %}\n {%- for column_name, column_value in row.items() -%}\n {% set column_name = column_name|lower %}\n\n {%- if column_name not in column_name_to_data_types %}\n {#-- if user-provided row contains column name that relation does not contain, raise an error --#}\n {% set fixture_name = \"expected output\" if model.resource_type == 'unit_test' else (\"'\" ~ model.name ~ \"'\") %}\n {{ exceptions.raise_compiler_error(\n \"Invalid column name: '\" ~ column_name ~ \"' in unit test fixture for \" ~ fixture_name ~ \".\"\n \"\\nAccepted columns for \" ~ fixture_name ~ \" are: \" ~ (column_name_to_data_types.keys()|list)\n ) }}\n {%- endif -%}\n\n {%- set column_type = column_name_to_data_types[column_name] %}\n\n {#-- sanitize column_value: wrap yaml strings in quotes, apply cast --#}\n {%- set column_value_clean = column_value -%}\n {%- if column_value is string -%}\n {%- set column_value_clean = dbt.string_literal(dbt.escape_single_quotes(column_value)) -%}\n {%- elif column_value is none -%}\n {%- set column_value_clean = 'null' -%}\n {%- endif -%}\n\n {%- set row_update = {column_name: safe_cast(column_value_clean, column_type) } -%}\n {%- do formatted_row.update(row_update) -%}\n {%- endfor -%}\n {{ return(formatted_row) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.string_literal", "macro.dbt.escape_single_quotes", "macro.dbt.safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6172926, "supported_languages": null}, "macro.dbt.validate_fixture_rows": {"name": "validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.validate_fixture_rows", "macro_sql": "{%- macro validate_fixture_rows(rows, row_number) -%}\n {{ return(adapter.dispatch('validate_fixture_rows', 'dbt')(rows, row_number)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__validate_fixture_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6177075, "supported_languages": null}, "macro.dbt.default__validate_fixture_rows": {"name": "default__validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.default__validate_fixture_rows", "macro_sql": "{%- macro default__validate_fixture_rows(rows, row_number) -%}\n {# This is an abstract method for adapter overrides as needed #}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.617904, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6192908, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.619596, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n\n {#\n We want to get the string of the returned relation by calling .render() in order to skip sample/empty\n mode rendering logic. However, people override the default ref macro, and often return a string instead\n of a relation (like the ref macro does by default). Thus, to make sure we dont blow things up, we have\n to ensure the resolved relation has a .render() method.\n #}\n {%- if resolved.render is defined and resolved.render is callable -%}\n {%- set resolved = resolved.render() -%}\n {%- endif -%}\n\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6214788, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6223118, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6234288, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6243582, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.624514, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6259382, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6283736, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.629801, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6302707, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.632749, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6338406, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.634433, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6351593, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.635672, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6365123, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.637032, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6376119, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6383321, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6390755, "supported_languages": null}, "macro.dbt.equals": {"name": "equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.equals", "macro_sql": "{% macro equals(expr1, expr2) %}\n {{ return(adapter.dispatch('equals', 'dbt') (expr1, expr2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6396794, "supported_languages": null}, "macro.dbt.default__equals": {"name": "default__equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.default__equals", "macro_sql": "{% macro default__equals(expr1, expr2) -%}\n{%- if adapter.behavior.enable_truthy_nulls_equals_macro.no_warn %}\n case when (({{ expr1 }} = {{ expr2 }}) or ({{ expr1 }} is null and {{ expr2 }} is null))\n then 0\n else 1\n end = 0\n{%- else -%}\n ({{ expr1 }} = {{ expr2 }})\n{%- endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6402967, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6408427, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6411357, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.641566, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.641734, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.64224, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6424527, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6433368, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6438143, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.644521, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6448483, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6453032, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.645775, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6459897, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6464345, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6465933, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6475165, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6486616, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6491187, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6498039, "supported_languages": null}, "macro.dbt.cast": {"name": "cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.cast", "macro_sql": "{% macro cast(field, type) %}\n {{ return(adapter.dispatch('cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6503456, "supported_languages": null}, "macro.dbt.default__cast": {"name": "default__cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.default__cast", "macro_sql": "{% macro default__cast(field, type) %}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6506062, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6514223, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6522493, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6526153, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6537936, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6543741, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6546347, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6551197, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.655336, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6558185, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.656158, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.65742, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6577463, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6580856, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6583936, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6587114, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6590123, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6593618, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.659719, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6600385, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.660353, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6606684, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6611004, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6614208, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6617062, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6622047, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6624544, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6629612, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.663247, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.663756, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.664033, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6645167, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.664732, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.66557, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6663833, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6669238, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6672184, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6678174, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6681724, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6687903, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6691546, "supported_languages": null}, "macro.dbt.date": {"name": "date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.date", "macro_sql": "{% macro date(year, month, day) %}\n {{ return(adapter.dispatch('date', 'dbt') (year, month, day)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6697488, "supported_languages": null}, "macro.dbt.default__date": {"name": "default__date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.default__date", "macro_sql": "{% macro default__date(year, month, day) -%}\n {%- set dt = modules.datetime.date(year, month, day) -%}\n {%- set iso_8601_formatted_date = dt.strftime('%Y-%m-%d') -%}\n to_date('{{ iso_8601_formatted_date }}', 'YYYY-MM-DD')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6709785, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6715393, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.671807, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.672344, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6726143, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6732085, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6735303, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.674123, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6746347, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6749253, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6754324, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6757505, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6765876, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation.render() }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.677371, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6777277, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6781373, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6785195, "supported_languages": null}, "macro.dbt.drop_schema_named": {"name": "drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.drop_schema_named", "macro_sql": "{% macro drop_schema_named(schema_name) %}\n {{ return(adapter.dispatch('drop_schema_named', 'dbt') (schema_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_schema_named"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.6790154, "supported_languages": null}, "macro.dbt.default__drop_schema_named": {"name": "default__drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.default__drop_schema_named", "macro_sql": "{% macro default__drop_schema_named(schema_name) %}\n {% set schema_relation = api.Relation.create(schema=schema_name) %}\n {{ adapter.drop_schema(schema_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.746064, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7469401, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7478647, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7484982, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7490249, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7499006, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7507744, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7512512, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation.render() }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7518845, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7524931, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.752912, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7535071, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.753927, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.754598, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7551649, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7562084, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation.type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7587423, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{- adapter.dispatch('drop_table', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7592707, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7595305, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7607067, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.761085, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7619216, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7633088, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7642457, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7646194, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7649753, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.76552, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7658212, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7663484, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.766656, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{- adapter.dispatch('drop_materialized_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7671552, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.767418, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7679172, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7682245, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7687335, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7691982, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7701945, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7705646, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7711158, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.771404, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7719698, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7722754, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7727864, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7731006, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{- adapter.dispatch('drop_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7735646, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7738132, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7745416, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7748666, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7752542, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation.render() }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7761314, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7766385, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7769263, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.777878, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7781885, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.780483, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7808948, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation.render() ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7813702, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7827506, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7829897, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7840178, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7843673, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7846413, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7871046, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.787851, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7885177, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7893724, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7898471, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7904458, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7909968, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7918005, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7933977, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.793938, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7944584, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.795094, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.795371, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7956393, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7959108, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.79742, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7981653, "supported_languages": null}, "macro.dbt_utils.redshift__get_tables_by_pattern_sql": {"name": "redshift__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.redshift__get_tables_by_pattern_sql", "macro_sql": "{% macro redshift__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% set sql %}\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from \"{{ database }}\".\"information_schema\".\"tables\"\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n union all\n select distinct\n schemaname as {{ adapter.quote('table_schema') }},\n tablename as {{ adapter.quote('table_name') }},\n 'external' as {{ adapter.quote('table_type') }}\n from svv_external_tables\n where redshift_database_name = '{{ database }}'\n and schemaname ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n {% endset %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.7994843, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.800885, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8018713, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8025448, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.803614, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8043468, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.804899, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.805445, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.805712, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8066137, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8079433, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8084106, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8091033, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8099086, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8107107, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8111157, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8122375, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8128803, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8139436, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, quote_identifiers)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8154302, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n {%- set current_col_name = adapter.quote(col.column) if quote_identifiers else col.column -%}\n select\n {%- for exclude_col in exclude %}\n {{ adapter.quote(exclude_col) if quote_identifiers else exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ adapter.quote(field_name) if quote_identifiers else field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(current_col_name) }}\n {% else %}\n {{ current_col_name }}\n {% endif %}\n as {{ cast_to }}) as {{ adapter.quote(value_name) if quote_identifiers else value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8191946, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8201768, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8217604, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.822622, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8231747, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.824241, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8257945, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8268824, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8273265, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }} as tt\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8276656, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.82806, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8283992, "supported_languages": null}, "macro.dbt_utils.databricks__deduplicate": {"name": "databricks__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.databricks__deduplicate", "macro_sql": "\n{%- macro databricks__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8287315, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8290813, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8297436, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8302186, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8308535, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8321774, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8327696, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8334455, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8349197, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8365607, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8385491, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8453958, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.846379, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8472888, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.847668, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.848449, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8498511, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8504252, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8511124, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.851803, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.853121, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.85404, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8557112, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8570995, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8600023, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8614163, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.86429, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8649065, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8655381, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8661337, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.867016, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8676796, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8689237, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8694363, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8697777, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8703158, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.870694, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8712013, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8715289, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{% if not string %}\n{{ return('') }}\n{% endif %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8729544, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8745387, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8754098, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8763237, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.877257, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8782792, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.880092, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8812191, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8832965, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8840203, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8847504, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8856635, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n {% if group_by_columns|length() == 0 %}\n where {{ column_name }} is not null\n limit 1\n {% endif %}\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.887366, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8884623, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.8904154, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns, exclude_columns, precision)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.892624, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n\n{%- if compare_columns and exclude_columns -%}\n {{ exceptions.raise_compiler_error(\"Both a compare and an ignore list were provided to the `equality` macro. Only one is allowed\") }}\n{%- endif -%}\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\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{# Ensure there are no extra columns in the compare_model vs model #}\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- do dbt_utils._is_ephemeral(compare_model, 'test_equality') -%}\n\n {%- set model_columns = adapter.get_columns_in_relation(model) -%}\n {%- set compare_model_columns = adapter.get_columns_in_relation(compare_model) -%}\n\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- set include_model_columns = [] %}\n {%- for column in model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n {%- for column in compare_model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_model_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns_set = set(include_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(include_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- else -%}\n {%- set compare_columns_set = set(model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(compare_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- endif -%}\n\n {% if compare_columns_set != compare_model_columns_set %}\n {{ exceptions.raise_compiler_error(compare_model ~\" has less columns than \" ~ model ~ \", please ensure they have the same columns or use the `compare_columns` or `exclude_columns` arguments to subset them.\") }}\n {% endif %}\n\n\n{% endif %}\n\n{%- if not precision -%}\n {%- if not compare_columns -%}\n {# \n You cannot get the columns in an ephemeral model (due to not existing in the information schema),\n so if the user does not provide an explicit list of columns we must error in the case it is ephemeral\n #}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model)-%}\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- for column in compare_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns = include_columns | map(attribute='quoted') %}\n {%- else -%} {# Compare columns provided #}\n {%- set compare_columns = compare_columns | map(attribute='quoted') %}\n {%- endif -%}\n {%- endif -%}\n\n {% set compare_cols_csv = compare_columns | join(', ') %}\n\n{% else %} {# Precision required #}\n {#-\n If rounding is required, we need to get the types, so it cannot be ephemeral even if they provide column names\n -#}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set columns = adapter.get_columns_in_relation(model) -%}\n\n {% set columns_list = [] %}\n {%- for col in columns -%}\n {%- if (\n (col.name|lower in compare_columns|map('lower') or not compare_columns) and\n (col.name|lower not in exclude_columns|map('lower') or not exclude_columns)\n ) -%}\n {# Databricks double type is not picked up by any number type checks in dbt #}\n {%- if col.is_float() or col.is_numeric() or col.data_type == 'double' -%}\n {# Cast is required due to postgres not having round for a double precision number #}\n {%- do columns_list.append('round(cast(' ~ col.quoted ~ ' as ' ~ dbt.type_numeric() ~ '),' ~ precision ~ ') as ' ~ col.quoted) -%}\n {%- else -%} {# Non-numeric type #}\n {%- do columns_list.append(col.quoted) -%}\n {%- endif -%}\n {% endif %}\n {%- endfor -%}\n\n {% set compare_cols_csv = columns_list | join(', ') %}\n\n{% endif %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_numeric", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9003015, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9019, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9047825, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.905652, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as {{ dbt.type_numeric() }}) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9073195, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9082518, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.908908, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9097147, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9109683, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9117496, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9125025, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9132147, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9137971, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9147847, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9170334, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9177976, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9184651, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.919224, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9201126, "supported_languages": null}, "macro.shopify.shopify_lookback": {"name": "shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.shopify_lookback", "macro_sql": "{% macro shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n{{ adapter.dispatch('shopify_lookback', 'shopify') (from_date, datepart, interval, safety_date='2010-01-01') }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_lookback"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9208667, "supported_languages": null}, "macro.shopify.default__shopify_lookback": {"name": "default__shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.default__shopify_lookback", "macro_sql": "{% macro default__shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n {% set sql_statement %}\n select coalesce({{ from_date }}, {{ \"'\" ~ safety_date ~ \"'\" }})\n from {{ this }}\n {%- endset -%}\n\n {%- set result = dbt_utils.get_single_value(sql_statement) %}\n\n {{ dbt.dateadd(datepart=datepart, interval=-interval, from_date_or_timestamp=\"cast('\" ~ result ~ \"' as date)\") }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_single_value", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9217234, "supported_languages": null}, "macro.shopify.shopify_is_databricks_sql_warehouse": {"name": "shopify_is_databricks_sql_warehouse", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_is_databricks_sql_warehouse.sql", "original_file_path": "macros/shopify_is_databricks_sql_warehouse.sql", "unique_id": "macro.shopify.shopify_is_databricks_sql_warehouse", "macro_sql": "{% macro shopify_is_databricks_sql_warehouse() %}\n {% if target.type in ('databricks') %}\n {% set re = modules.re %}\n {% set path_match = target.http_path %}\n {% set regex_pattern = \"sql/.+/warehouses/\" %}\n {% set match_result = re.search(regex_pattern, path_match) %}\n {% if match_result %}\n {{ return(True) }}\n {% else %}\n {{ return(False) }}\n {% endif %}\n {% else %}\n {{ return(False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.923086, "supported_languages": null}, "macro.shopify.shopify_partition_by_cols": {"name": "shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.shopify_partition_by_cols", "macro_sql": "{% macro shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n\n{{ adapter.dispatch('shopify_partition_by_cols', 'shopify') (base_col, source_relation) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_partition_by_cols"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9237125, "supported_languages": null}, "macro.shopify.default__shopify_partition_by_cols": {"name": "default__shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.default__shopify_partition_by_cols", "macro_sql": "{% macro default__shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n {%- if var('shopify_union_schemas', false) or var('shopify_union_databases', false) -%}\n {{ base_col }}, {{ source_relation }}\n {%- else %}\n {{ base_col }}\n {%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9243107, "supported_languages": null}, "macro.shopify.get_metafields": {"name": "get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.get_metafields", "macro_sql": "{% macro get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n {{ return(adapter.dispatch('get_metafields', 'shopify')(source_object, reference_values, id_column, lookup_object, key_field, key_value, reference_field)) }} \n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__get_metafields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9256558, "supported_languages": null}, "macro.shopify.default__get_metafields": {"name": "default__get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.default__get_metafields", "macro_sql": "{% macro default__get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n\n{# Manually quote and join reference values #}\n{% set quoted_values = [] %}\n{% for value in reference_values %}\n {% do quoted_values.append(\"'\" ~ value | lower | trim ~ \"'\") %}\n{% endfor %}\n{% set reference_values_clause = quoted_values | join(\", \") %}\n\n{# Get the pivot fields dynamically based on the reference values #}\n{% set pivot_fields = dbt_utils.get_column_values(\n table=ref(lookup_object),\n column=key_field,\n where=\"lower(\" ~ reference_field ~ \") in (\" ~ reference_values_clause ~ \")\"\n) %}\n\n{% set source_columns = adapter.get_columns_in_relation(ref(source_object)) %}\n{% set source_column_count = source_columns | length %}\n\nwith source_table as (\n select *\n from {{ ref(source_object) }}\n)\n\n{% if pivot_fields is not none %},\nlookup_object as (\n select \n *,\n {{ dbt_utils.pivot(\n column=key_field, \n values=pivot_fields, \n agg='', \n then_value=key_value, \n else_value=\"null\",\n quote_identifiers=false\n ) \n }}\n from {{ ref(lookup_object) }}\n where is_most_recent_record\n),\n\nfinal as (\n select\n {% for column in source_columns %}\n source_table.{{ column.name }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% for fields in pivot_fields %}\n , max(lookup_object.{{ dbt_utils.slugify(fields) }}) as metafield_{{ dbt_utils.slugify(fields) }}\n {% endfor %}\n from source_table\n left join lookup_object \n on lookup_object.{{ reference_field }}_id = source_table.{{ id_column }}\n and lower(lookup_object.{{ reference_field }}) in ({{ reference_values_clause }})\n {{ dbt_utils.group_by(source_column_count) }}\n)\n\nselect *\nfrom final\n{% else %}\n\nselect *\nfrom source_table\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_column_values", "macro.dbt_utils.pivot", "macro.dbt_utils.slugify", "macro.dbt_utils.group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9288368, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9303372, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9324958, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9411364, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9437833, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9446657, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9454665, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.946829, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9471788, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9475057, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9478126, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.951142, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9523706, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9530976, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.953615, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.953829, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9540613, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9542787, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9551241, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9554846, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.955815, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.956204, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9565353, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9568748, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.957386, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9576023, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9578238, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9591784, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.960135, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9604268, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9611657, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9617221, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9619844, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9622602, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.962514, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9627693, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9635181, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.965556, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.966656, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.967629, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9679792, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9695833, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9707437, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.971253, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9717474, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9722404, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9727108, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9732544, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9739518, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.974434, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9751852, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9763248, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9772458, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.979601, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9804106, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.980726, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9810379, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9814048, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9817085, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.982008, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9825428, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9833257, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.983662, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9839878, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.984329, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9846494, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9849916, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9871182, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9876227, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9878364, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9880667, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9935331, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.994392, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9951644, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.995772, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9959989, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.996252, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9964697, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9966838, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.9975166, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505360.999479, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0006466, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0012403, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.001551, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0019383, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.002578, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0028446, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.003126, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0033898, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0036626, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0044048, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0049481, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0054057, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0064743, "supported_languages": null}, "macro.spark_utils.get_tables": {"name": "get_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_tables", "macro_sql": "{% macro get_tables(table_regex_pattern='.*') %}\n\n {% set tables = [] %}\n {% for database in spark__list_schemas('not_used') %}\n {% for table in spark__list_relations_without_caching(database[0]) %}\n {% set db_tablename = database[0] ~ \".\" ~ table[1] %}\n {% set is_match = modules.re.match(table_regex_pattern, db_tablename) %}\n {% if is_match %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('type', 'TYPE', 'Type'))|first %}\n {% if table_type[1]|lower != 'view' %}\n {{ tables.append(db_tablename) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n {{ return(tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.009846, "supported_languages": null}, "macro.spark_utils.get_delta_tables": {"name": "get_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_delta_tables", "macro_sql": "{% macro get_delta_tables(table_regex_pattern='.*') %}\n\n {% set delta_tables = [] %}\n {% for db_tablename in get_tables(table_regex_pattern) %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('provider', 'PROVIDER', 'Provider'))|first %}\n {% if table_type[1]|lower == 'delta' %}\n {{ delta_tables.append(db_tablename) }}\n {% endif %}\n {% endfor %}\n {{ return(delta_tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.011239, "supported_languages": null}, "macro.spark_utils.get_statistic_columns": {"name": "get_statistic_columns", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_statistic_columns", "macro_sql": "{% macro get_statistic_columns(table) %}\n\n {% call statement('input_columns', fetch_result=True) %}\n SHOW COLUMNS IN {{ table }}\n {% endcall %}\n {% set input_columns = load_result('input_columns').table %}\n\n {% set output_columns = [] %}\n {% for column in input_columns %}\n {% call statement('column_information', fetch_result=True) %}\n DESCRIBE TABLE {{ table }} `{{ column[0] }}`\n {% endcall %}\n {% if not load_result('column_information').table[1][1].startswith('struct') and not load_result('column_information').table[1][1].startswith('array') %}\n {{ output_columns.append('`' ~ column[0] ~ '`') }}\n {% endif %}\n {% endfor %}\n {{ return(output_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0128775, "supported_languages": null}, "macro.spark_utils.spark_optimize_delta_tables": {"name": "spark_optimize_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_optimize_delta_tables", "macro_sql": "{% macro spark_optimize_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Optimizing \" ~ table) }}\n {% do run_query(\"optimize \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0143032, "supported_languages": null}, "macro.spark_utils.spark_vacuum_delta_tables": {"name": "spark_vacuum_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "macro_sql": "{% macro spark_vacuum_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Vacuuming \" ~ table) }}\n {% do run_query(\"vacuum \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0156834, "supported_languages": null}, "macro.spark_utils.spark_analyze_tables": {"name": "spark_analyze_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_analyze_tables", "macro_sql": "{% macro spark_analyze_tables(table_regex_pattern='.*') %}\n\n {% for table in get_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set columns = get_statistic_columns(table) | join(',') %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Analyzing \" ~ table) }}\n {% if columns != '' %}\n {% do run_query(\"analyze table \" ~ table ~ \" compute statistics for columns \" ~ columns) %}\n {% endif %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.spark_utils.get_statistic_columns", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0174227, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_pattern": {"name": "spark__get_relations_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "macro_sql": "{% macro spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n show table extended in {{ schema_pattern }} like '{{ table_pattern }}'\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=None,\n schema=row[0],\n identifier=row[1],\n type=('view' if 'Type: VIEW' in row[3] else 'table')\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0197246, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_prefix": {"name": "spark__get_relations_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "macro_sql": "{% macro spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {% set table_pattern = table_pattern ~ '*' %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0203981, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_pattern": {"name": "spark__get_tables_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "macro_sql": "{% macro spark__get_tables_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0209608, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_prefix": {"name": "spark__get_tables_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "macro_sql": "{% macro spark__get_tables_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0215373, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp": {"name": "spark__current_timestamp", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0218227, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp_in_utc": {"name": "spark__current_timestamp_in_utc", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0219913, "supported_languages": null}, "macro.spark_utils.spark__split_part": {"name": "spark__split_part", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "unique_id": "macro.spark_utils.spark__split_part", "macro_sql": "{% macro spark__split_part(string_text, delimiter_text, part_number) %}\n\n {% set delimiter_expr %}\n \n -- escape if starts with a special character\n case when regexp_extract({{ delimiter_text }}, '([^A-Za-z0-9])(.*)', 1) != '_'\n then concat('\\\\', {{ delimiter_text }})\n else {{ delimiter_text }} end\n \n {% endset %}\n\n {% set split_part_expr %}\n \n split(\n {{ string_text }},\n {{ delimiter_expr }}\n )[({{ part_number - 1 }})]\n \n {% endset %}\n \n {{ return(split_part_expr) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0229383, "supported_languages": null}, "macro.spark_utils.spark__type_numeric": {"name": "spark__type_numeric", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "unique_id": "macro.spark_utils.spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0231857, "supported_languages": null}, "macro.spark_utils.spark__concat": {"name": "spark__concat", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "unique_id": "macro.spark_utils.spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0235226, "supported_languages": null}, "macro.spark_utils.spark__datediff": {"name": "spark__datediff", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "unique_id": "macro.spark_utils.spark__datediff", "macro_sql": "{% macro spark__datediff(first_date, second_date, datepart) %}\n\n {%- if datepart in ['day', 'week', 'month', 'quarter', 'year'] -%}\n \n {# make sure the dates are real, otherwise raise an error asap #}\n {% set first_date = spark_utils.assert_not_null('date', first_date) %}\n {% set second_date = spark_utils.assert_not_null('date', second_date) %}\n \n {%- endif -%}\n \n {%- if datepart == 'day' -%}\n \n datediff({{second_date}}, {{first_date}})\n \n {%- elif datepart == 'week' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(datediff({{second_date}}, {{first_date}})/7)\n else ceil(datediff({{second_date}}, {{first_date}})/7)\n end\n \n -- did we cross a week boundary (Sunday)?\n + case\n when {{first_date}} < {{second_date}} and dayofweek({{second_date}}) < dayofweek({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofweek({{second_date}}) > dayofweek({{first_date}}) then -1\n else 0 end\n\n {%- elif datepart == 'month' -%}\n\n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}})))\n else ceil(months_between(date({{second_date}}), date({{first_date}})))\n end\n \n -- did we cross a month boundary?\n + case\n when {{first_date}} < {{second_date}} and dayofmonth({{second_date}}) < dayofmonth({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofmonth({{second_date}}) > dayofmonth({{first_date}}) then -1\n else 0 end\n \n {%- elif datepart == 'quarter' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}}))/3)\n else ceil(months_between(date({{second_date}}), date({{first_date}}))/3)\n end\n \n -- did we cross a quarter boundary?\n + case\n when {{first_date}} < {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n < (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then 1\n when {{first_date}} > {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n > (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then -1\n else 0 end\n\n {%- elif datepart == 'year' -%}\n \n year({{second_date}}) - year({{first_date}})\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set divisor -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n case when {{first_date}} < {{second_date}}\n then ceil((\n {# make sure the timestamps are real, otherwise raise an error asap #}\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n else floor((\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n end\n \n {% if datepart == 'millisecond' %}\n + cast(date_format({{second_date}}, 'SSS') as int)\n - cast(date_format({{first_date}}, 'SSS') as int)\n {% endif %}\n \n {% if datepart == 'microsecond' %} \n {% set capture_str = '[0-9]{4}-[0-9]{2}-[0-9]{2}.[0-9]{2}:[0-9]{2}:[0-9]{2}.([0-9]{6})' %}\n -- Spark doesn't really support microseconds, so this is a massive hack!\n -- It will only work if the timestamp-string is of the format\n -- 'yyyy-MM-dd-HH mm.ss.SSSSSS'\n + cast(regexp_extract({{second_date}}, '{{capture_str}}', 1) as int)\n - cast(regexp_extract({{first_date}}, '{{capture_str}}', 1) as int) \n {% endif %}\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro datediff not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.030433, "supported_languages": null}, "macro.spark_utils.spark__dateadd": {"name": "spark__dateadd", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "unique_id": "macro.spark_utils.spark__dateadd", "macro_sql": "{% macro spark__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {%- set clock_component -%}\n {# make sure the dates + timestamps are real, otherwise raise an error asap #}\n to_unix_timestamp({{ spark_utils.assert_not_null('to_timestamp', from_date_or_timestamp) }})\n - to_unix_timestamp({{ spark_utils.assert_not_null('date', from_date_or_timestamp) }})\n {%- endset -%}\n\n {%- if datepart in ['day', 'week'] -%}\n \n {%- set multiplier = 7 if datepart == 'week' else 1 -%}\n\n to_timestamp(\n to_unix_timestamp(\n date_add(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ['month', 'quarter', 'year'] -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'month' -%} 1\n {%- elif datepart == 'quarter' -%} 3\n {%- elif datepart == 'year' -%} 12\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n to_unix_timestamp(\n add_months(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n {{ spark_utils.assert_not_null('to_unix_timestamp', from_date_or_timestamp) }}\n + cast({{interval}} * {{multiplier}} as int)\n )\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro dateadd not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0342095, "supported_languages": null}, "macro.spark_utils.assert_not_null": {"name": "assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0348537, "supported_languages": null}, "macro.spark_utils.default__assert_not_null": {"name": "default__assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.default__assert_not_null", "macro_sql": "{% macro default__assert_not_null(function, arg) %}\n\n coalesce({{function}}({{arg}}), nvl2({{function}}({{arg}}), assert_true({{function}}({{arg}}) is not null), null))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0352829, "supported_languages": null}, "macro.spark_utils.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "unique_id": "macro.spark_utils.spark__convert_timezone", "macro_sql": "{% macro spark__convert_timezone(in_tz, out_tz, in_timestamp) %}\n from_utc_timestamp(to_utc_timestamp({{in_timestamp}}, {{in_tz}}), {{out_tz}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0356977, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_shipping_line_columns": {"name": "get_abandoned_checkout_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "original_file_path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro_sql": "{% macro get_abandoned_checkout_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range_max\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_range_min\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0390017, "supported_languages": null}, "macro.shopify_source.get_tender_transaction_columns": {"name": "get_tender_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tender_transaction_columns.sql", "original_file_path": "macros/get_tender_transaction_columns.sql", "unique_id": "macro.shopify_source.get_tender_transaction_columns", "macro_sql": "{% macro get_tender_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"remote_reference\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0414026, "supported_languages": null}, "macro.shopify_source.get_graphql_tender_transaction_columns": {"name": "get_graphql_tender_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tender_transaction_columns.sql", "original_file_path": "macros/get_tender_transaction_columns.sql", "unique_id": "macro.shopify_source.get_graphql_tender_transaction_columns", "macro_sql": "{% macro get_graphql_tender_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"remote_reference\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0432904, "supported_languages": null}, "macro.shopify_source.get_fulfillment_event_columns": {"name": "get_fulfillment_event_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_event_columns.sql", "original_file_path": "macros/get_fulfillment_event_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_event_columns", "macro_sql": "{% macro get_fulfillment_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"estimated_delivery_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"happened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shop_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.047469, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_event_columns": {"name": "get_graphql_fulfillment_event_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_event_columns.sql", "original_file_path": "macros/get_fulfillment_event_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_event_columns", "macro_sql": "{% macro get_graphql_fulfillment_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"estimated_delivery_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"happened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0503213, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_rule_columns": {"name": "get_graphql_collection_rule_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_rule_columns.sql", "original_file_path": "macros/get_collection_rule_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_rule_columns", "macro_sql": "{% macro get_graphql_collection_rule_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"condition\", \"datatype\": dbt.type_string()},\n {\"name\": \"relation\", \"datatype\": dbt.type_string()},\n {\"name\": \"columns\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0518134, "supported_languages": null}, "macro.shopify_source.get_product_media_columns": {"name": "get_product_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_media_columns.sql", "original_file_path": "macros/get_product_media_columns.sql", "unique_id": "macro.shopify_source.get_product_media_columns", "macro_sql": "{% macro get_product_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0526965, "supported_languages": null}, "macro.shopify_source.get_graphql_product_media_columns": {"name": "get_graphql_product_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_media_columns.sql", "original_file_path": "macros/get_product_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_media_columns", "macro_sql": "{% macro get_graphql_product_media_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.053491, "supported_languages": null}, "macro.shopify_source.get_order_columns": {"name": "get_order_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "unique_id": "macro.shopify_source.get_order_columns", "macro_sql": "{% macro get_order_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tip_received\", \"datatype\": dbt.type_float()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cancel_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancelled_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"financial_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"browser_ip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_shipping_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"app_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"client_details_user_agent\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_status_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"confirmed\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.06967, "supported_languages": null}, "macro.shopify_source.get_graphql_order_columns": {"name": "get_graphql_order_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_columns", "macro_sql": "{% macro get_graphql_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"app_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancel_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancelled_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"client_ip\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"confirmed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_financial_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"presentment_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status_page_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_discounts_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discounts_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_shipping_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_shipping_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_shipping_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_shipping_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tip_received_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tip_received_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tip_received_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tip_received_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0828354, "supported_languages": null}, "macro.shopify_source.get_discount_code_free_shipping_columns": {"name": "get_discount_code_free_shipping_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_free_shipping_columns.sql", "original_file_path": "macros/get_discount_code_free_shipping_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_free_shipping_columns", "macro_sql": "{% macro get_discount_code_free_shipping_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0872588, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_free_shipping_columns": {"name": "get_graphql_discount_code_free_shipping_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_free_shipping_columns.sql", "original_file_path": "macros/get_discount_code_free_shipping_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_free_shipping_columns", "macro_sql": "{% macro get_graphql_discount_code_free_shipping_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0906036, "supported_languages": null}, "macro.shopify_source.json_to_string": {"name": "json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.json_to_string", "macro_sql": "{%- macro json_to_string(column, column_list) -%}\n {{ return(adapter.dispatch('json_to_string', 'shopify_source')(column, column_list)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__json_to_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0914204, "supported_languages": null}, "macro.shopify_source.default__json_to_string": {"name": "default__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.default__json_to_string", "macro_sql": "{%- macro default__json_to_string(column, column_list) -%}\n {{ column }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0916557, "supported_languages": null}, "macro.shopify_source.bigquery__json_to_string": {"name": "bigquery__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.bigquery__json_to_string", "macro_sql": "{%- macro bigquery__json_to_string(column, column_list) -%}\n {%- set columns = column_list -%}\n {%- set ns = namespace(column_type='string') -%}\n\n {%- for col in columns -%}\n {%- if col.name|lower == column|lower -%}\n {%- set ns.column_type = col.dtype|lower -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- if ns.column_type == 'json' -%}\n to_json_string({{ column }})\n {%- else -%}\n {{ column }}\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0926478, "supported_languages": null}, "macro.shopify_source.get_product_columns": {"name": "get_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_columns.sql", "original_file_path": "macros/get_product_columns.sql", "unique_id": "macro.shopify_source.get_product_columns", "macro_sql": "{% macro get_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.0955799, "supported_languages": null}, "macro.shopify_source.get_graphql_product_columns": {"name": "get_graphql_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_columns.sql", "original_file_path": "macros/get_product_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_columns", "macro_sql": "{% macro get_graphql_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.09772, "supported_languages": null}, "macro.shopify_source.get_collection_columns": {"name": "get_collection_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_columns.sql", "original_file_path": "macros/get_collection_columns.sql", "unique_id": "macro.shopify_source.get_collection_columns", "macro_sql": "{% macro get_collection_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"disjunctive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"rules\", \"datatype\": dbt.type_string()},\n {\"name\": \"sort_order\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1002073, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_columns": {"name": "get_graphql_collection_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_columns.sql", "original_file_path": "macros/get_collection_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_columns", "macro_sql": "{% macro get_graphql_collection_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"applied_disjunctively\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"sort_order\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1017268, "supported_languages": null}, "macro.shopify_source.get_customer_tag_columns": {"name": "get_customer_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_tag_columns.sql", "original_file_path": "macros/get_customer_tag_columns.sql", "unique_id": "macro.shopify_source.get_customer_tag_columns", "macro_sql": "{% macro get_customer_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1029592, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_tag_columns": {"name": "get_graphql_customer_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_tag_columns.sql", "original_file_path": "macros/get_customer_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_tag_columns", "macro_sql": "{% macro get_graphql_customer_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1038826, "supported_languages": null}, "macro.shopify_source.get_shop_columns": {"name": "get_shop_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_shop_columns.sql", "original_file_path": "macros/get_shop_columns.sql", "unique_id": "macro.shopify_source.get_shop_columns", "macro_sql": "{% macro get_shop_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_api_supported\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"cookie_consent_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"county_taxes\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_card_reader_giveaway\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"eligible_for_payments\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"enabled_presentment_currencies\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_login_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_gift_cards\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_storefront\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"iana_timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"money_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"myshopify_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"password_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"pre_launch_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"primary_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_extra_payments_agreement\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"setup_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"shop_owner\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1139474, "supported_languages": null}, "macro.shopify_source.get_graphql_shop_columns": {"name": "get_graphql_shop_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_shop_columns.sql", "original_file_path": "macros/get_shop_columns.sql", "unique_id": "macro.shopify_source.get_graphql_shop_columns", "macro_sql": "{% macro get_graphql_shop_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code_v_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_api_supported\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"contact_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_with_currency_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_with_currency_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"enabled_presentment_currencies\", \"datatype\": dbt.type_string()},\n {\"name\": \"features_storefront\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"iana_timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"myshopify_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"password_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"plan_display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_domain_host\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_domain_localization_default_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"setup_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"shop_owner_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"timezone_abbreviation\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_offset\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_offset_minutes\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.120492, "supported_languages": null}, "macro.shopify_source.get_order_url_tag_columns": {"name": "get_order_url_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_url_tag_columns.sql", "original_file_path": "macros/get_order_url_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_url_tag_columns", "macro_sql": "{% macro get_order_url_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1217515, "supported_languages": null}, "macro.shopify_source.get_order_shipping_line_columns": {"name": "get_order_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_line_columns.sql", "original_file_path": "macros/get_order_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_line_columns", "macro_sql": "{% macro get_order_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1250134, "supported_languages": null}, "macro.shopify_source.get_graphql_order_shipping_line_columns": {"name": "get_graphql_order_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_line_columns.sql", "original_file_path": "macros/get_order_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_shipping_line_columns", "macro_sql": "{% macro get_graphql_order_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"original_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"original_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1280203, "supported_languages": null}, "macro.shopify_source.get_customer_columns": {"name": "get_customer_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "unique_id": "macro.shopify_source.get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_address_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"orders_count\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_spent\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"verified_email\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email_marketing_consent_consent_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_marketing_consent_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepts_marketing_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"marketing_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customer_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1327667, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_columns": {"name": "get_graphql_customer_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_columns", "macro_sql": "{% macro get_graphql_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"orders_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_spent\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"verified_email\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customer_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1360316, "supported_languages": null}, "macro.shopify_source.shopify_union_data": {"name": "shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.shopify_union_data", "macro_sql": "{%- macro shopify_union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases', shopify_model_api='rest') -%}\n\n{{ adapter.dispatch('shopify_union_data', 'shopify_source') (\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 shopify_model_api\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__shopify_union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.138487, "supported_languages": null}, "macro.shopify_source.default__shopify_union_data": {"name": "default__shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.default__shopify_union_data", "macro_sql": "{%- macro default__shopify_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 shopify_model_api\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + ('_gql_' if shopify_model_api == 'graphql' else '_') + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema ~ ('_graphql' if shopify_model_api == 'graphql' else ''), table_identifier).database,\n schema=source(default_schema ~ ('_graphql' if shopify_model_api == 'graphql' else ''), table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1478643, "supported_languages": null}, "macro.shopify_source.get_transaction_columns": {"name": "get_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_transaction_columns.sql", "original_file_path": "macros/get_transaction_columns.sql", "unique_id": "macro.shopify_source.get_transaction_columns", "macro_sql": "{% macro get_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"payment_avs_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_bin\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_cvv_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"receipt\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_exchange_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_adjustment\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_original_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_final_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"error_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"authorization_expires_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{% if target.type in ('redshift','postgres') %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"quote\": True, \"alias\": \"authorization_code\"}) }}\n{% else %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"alias\": \"authorization_code\"}) }}\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1553924, "supported_languages": null}, "macro.shopify_source.get_graphql_transaction_columns": {"name": "get_graphql_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_transaction_columns.sql", "original_file_path": "macros/get_transaction_columns.sql", "unique_id": "macro.shopify_source.get_graphql_transaction_columns", "macro_sql": "{% macro get_graphql_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"authorization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"authorization_expires_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"error_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_avs_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_bin\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_cvv_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"receipt_json\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_exchange_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_adjustment\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_original_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_final_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_currency\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1607518, "supported_languages": null}, "macro.shopify_source.get_location_columns": {"name": "get_location_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_location_columns.sql", "original_file_path": "macros/get_location_columns.sql", "unique_id": "macro.shopify_source.get_location_columns", "macro_sql": "{% macro get_location_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"legacy\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"localized_country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"localized_province_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1649983, "supported_languages": null}, "macro.shopify_source.get_graphql_location_columns": {"name": "get_graphql_location_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_location_columns.sql", "original_file_path": "macros/get_location_columns.sql", "unique_id": "macro.shopify_source.get_graphql_location_columns", "macro_sql": "{% macro get_graphql_location_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"is_fulfillment_service\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.167987, "supported_languages": null}, "macro.shopify_source.get_discount_code_app_columns": {"name": "get_discount_code_app_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_app_columns.sql", "original_file_path": "macros/get_discount_code_app_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_app_columns", "macro_sql": "{% macro get_discount_code_app_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1723008, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_app_columns": {"name": "get_graphql_discount_code_app_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_app_columns.sql", "original_file_path": "macros/get_discount_code_app_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_app_columns", "macro_sql": "{% macro get_graphql_discount_code_app_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1757002, "supported_languages": null}, "macro.shopify_source.get_order_adjustment_columns": {"name": "get_order_adjustment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_adjustment_columns.sql", "original_file_path": "macros/get_order_adjustment_columns.sql", "unique_id": "macro.shopify_source.get_order_adjustment_columns", "macro_sql": "{% macro get_order_adjustment_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1781678, "supported_languages": null}, "macro.shopify_source.get_graphql_order_adjustment_columns": {"name": "get_graphql_order_adjustment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_adjustment_columns.sql", "original_file_path": "macros/get_order_adjustment_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_adjustment_columns", "macro_sql": "{% macro get_graphql_order_adjustment_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1802754, "supported_languages": null}, "macro.shopify_source.get_discount_allocation_columns": {"name": "get_discount_allocation_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_allocation_columns.sql", "original_file_path": "macros/get_discount_allocation_columns.sql", "unique_id": "macro.shopify_source.get_discount_allocation_columns", "macro_sql": "{% macro get_discount_allocation_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_application_index\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1824193, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_allocation_columns": {"name": "get_graphql_discount_allocation_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_allocation_columns.sql", "original_file_path": "macros/get_discount_allocation_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_allocation_columns", "macro_sql": "{% macro get_graphql_discount_allocation_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocated_amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"allocated_amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"allocated_amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"allocated_amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_application_index\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.183924, "supported_languages": null}, "macro.shopify_source.get_discount_redeem_code_columns": {"name": "get_discount_redeem_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_redeem_code_columns.sql", "original_file_path": "macros/get_discount_redeem_code_columns.sql", "unique_id": "macro.shopify_source.get_discount_redeem_code_columns", "macro_sql": "{% macro get_discount_redeem_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"created_by_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"discount_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1861038, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_redeem_code_columns": {"name": "get_graphql_discount_redeem_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_redeem_code_columns.sql", "original_file_path": "macros/get_discount_redeem_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_redeem_code_columns", "macro_sql": "{% macro get_graphql_discount_redeem_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"created_by_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"discount_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.187747, "supported_languages": null}, "macro.shopify_source.get_order_tag_columns": {"name": "get_order_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_tag_columns.sql", "original_file_path": "macros/get_order_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_tag_columns", "macro_sql": "{% macro get_order_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1890118, "supported_languages": null}, "macro.shopify_source.get_graphql_order_tag_columns": {"name": "get_graphql_order_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_tag_columns.sql", "original_file_path": "macros/get_order_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_tag_columns", "macro_sql": "{% macro get_graphql_order_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1899457, "supported_languages": null}, "macro.shopify_source.get_order_shipping_tax_line_columns": {"name": "get_order_shipping_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_tax_line_columns.sql", "original_file_path": "macros/get_order_shipping_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_tax_line_columns", "macro_sql": "{% macro get_order_shipping_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_shipping_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.191791, "supported_languages": null}, "macro.shopify_source.get_graphql_order_shipping_tax_line_columns": {"name": "get_graphql_order_shipping_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_tax_line_columns.sql", "original_file_path": "macros/get_order_shipping_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_shipping_tax_line_columns", "macro_sql": "{% macro get_graphql_order_shipping_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_shipping_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1937113, "supported_languages": null}, "macro.shopify_source.get_refund_columns": {"name": "get_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_refund_columns.sql", "original_file_path": "macros/get_refund_columns.sql", "unique_id": "macro.shopify_source.get_refund_columns", "macro_sql": "{% macro get_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"restock\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_duties_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.1959455, "supported_languages": null}, "macro.shopify_source.get_graphql_refund_columns": {"name": "get_graphql_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_refund_columns.sql", "original_file_path": "macros/get_refund_columns.sql", "unique_id": "macro.shopify_source.get_graphql_refund_columns", "macro_sql": "{% macro get_graphql_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"return_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_refunded_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_refunded_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_refunded_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_refunded_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.198106, "supported_languages": null}, "macro.shopify_source.get_inventory_item_columns": {"name": "get_inventory_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_item_columns.sql", "original_file_path": "macros/get_inventory_item_columns.sql", "unique_id": "macro.shopify_source.get_inventory_item_columns", "macro_sql": "{% macro get_inventory_item_columns() %}\n\n{# Columns below line 26 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"province_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duplicate_sku_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"harmonized_system_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_history_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_weight_value\", \"datatype\": dbt.type_float()},\n {\"name\": \"measurement_weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked_editable_locked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()}\n ,\n {\"name\": \"cost\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2027175, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_item_columns": {"name": "get_graphql_inventory_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_item_columns.sql", "original_file_path": "macros/get_inventory_item_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_item_columns", "macro_sql": "{% macro get_graphql_inventory_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duplicate_sku_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"harmonized_system_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_history_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"measurement_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"measurement_weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"measurement_weight_value\", \"datatype\": dbt.type_float()},\n {\"name\": \"province_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_locked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.206294, "supported_languages": null}, "macro.shopify_source.get_tax_line_columns": {"name": "get_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tax_line_columns.sql", "original_file_path": "macros/get_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_tax_line_columns", "macro_sql": "{% macro get_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2082138, "supported_languages": null}, "macro.shopify_source.get_graphql_tax_line_columns": {"name": "get_graphql_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tax_line_columns.sql", "original_file_path": "macros/get_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_tax_line_columns", "macro_sql": "{% macro get_graphql_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2100077, "supported_languages": null}, "macro.shopify_source.get_discount_code_basic_columns": {"name": "get_discount_code_basic_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_basic_columns.sql", "original_file_path": "macros/get_discount_code_basic_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_basic_columns", "macro_sql": "{% macro get_discount_code_basic_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.214306, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_basic_columns": {"name": "get_graphql_discount_code_basic_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_basic_columns.sql", "original_file_path": "macros/get_discount_code_basic_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_basic_columns", "macro_sql": "{% macro get_graphql_discount_code_basic_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2177148, "supported_languages": null}, "macro.shopify_source.get_product_variant_media_columns": {"name": "get_product_variant_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_media_columns.sql", "original_file_path": "macros/get_product_variant_media_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_media_columns", "macro_sql": "{% macro get_product_variant_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.218646, "supported_languages": null}, "macro.shopify_source.get_graphql_product_variant_media_columns": {"name": "get_graphql_product_variant_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_media_columns.sql", "original_file_path": "macros/get_product_variant_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_variant_media_columns", "macro_sql": "{% macro get_graphql_product_variant_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2193153, "supported_languages": null}, "macro.shopify_source.get_order_discount_code_columns": {"name": "get_order_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_discount_code_columns.sql", "original_file_path": "macros/get_order_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_order_discount_code_columns", "macro_sql": "{% macro get_order_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2209406, "supported_languages": null}, "macro.shopify_source.get_graphql_order_discount_code_columns": {"name": "get_graphql_order_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_discount_code_columns.sql", "original_file_path": "macros/get_order_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_discount_code_columns", "macro_sql": "{% macro get_graphql_order_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2219048, "supported_languages": null}, "macro.shopify_source.get_media_image_columns": {"name": "get_media_image_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_image_columns.sql", "original_file_path": "macros/get_media_image_columns.sql", "unique_id": "macro.shopify_source.get_media_image_columns", "macro_sql": "{% macro get_media_image_columns() %}\n\n{% set columns = [\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2235305, "supported_languages": null}, "macro.shopify_source.get_graphql_media_image_columns": {"name": "get_graphql_media_image_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_image_columns.sql", "original_file_path": "macros/get_media_image_columns.sql", "unique_id": "macro.shopify_source.get_graphql_media_image_columns", "macro_sql": "{% macro get_graphql_media_image_columns() %}\n\n{% set columns = [\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2247727, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_order_line_item_columns": {"name": "get_graphql_fulfillment_order_line_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_order_line_item_columns.sql", "original_file_path": "macros/get_fulfillment_order_line_item_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_order_line_item_columns", "macro_sql": "{% macro get_graphql_fulfillment_order_line_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"remaining_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.228555, "supported_languages": null}, "macro.shopify_source.get_fulfillment_columns": {"name": "get_fulfillment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_columns.sql", "original_file_path": "macros/get_fulfillment_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_columns", "macro_sql": "{% macro get_fulfillment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_numbers\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.231579, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_columns": {"name": "get_graphql_fulfillment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_columns.sql", "original_file_path": "macros/get_fulfillment_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_columns", "macro_sql": "{% macro get_graphql_fulfillment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"display_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2336721, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_columns": {"name": "get_abandoned_checkout_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_columns.sql", "original_file_path": "macros/get_abandoned_checkout_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_columns", "macro_sql": "{% macro get_abandoned_checkout_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"abandoned_checkout_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2461212, "supported_languages": null}, "macro.shopify_source.get_graphql_abandoned_checkout_columns": {"name": "get_graphql_abandoned_checkout_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_columns.sql", "original_file_path": "macros/get_abandoned_checkout_columns.sql", "unique_id": "macro.shopify_source.get_graphql_abandoned_checkout_columns", "macro_sql": "{% macro get_graphql_abandoned_checkout_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"abandoned_checkout_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"completed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_discount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_duties_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_duties_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2562869, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_visit_columns": {"name": "get_graphql_customer_visit_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_visit_columns.sql", "original_file_path": "macros/get_customer_visit_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_visit_columns", "macro_sql": "{% macro get_graphql_customer_visit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page_html\", \"datatype\": dbt.type_string()},\n {\"name\": \"occurred_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"referral_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"referral_info_html\", \"datatype\": dbt.type_string()},\n {\"name\": \"referrer_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_campaign\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_content\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_medium\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_term\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.259875, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_tracking_info_columns": {"name": "get_graphql_fulfillment_tracking_info_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_tracking_info_columns.sql", "original_file_path": "macros/get_fulfillment_tracking_info_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_tracking_info_columns", "macro_sql": "{% macro get_graphql_fulfillment_tracking_info_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"number\", \"datatype\": dbt.type_string()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2613516, "supported_languages": null}, "macro.shopify_source.get_collection_product_columns": {"name": "get_collection_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_product_columns.sql", "original_file_path": "macros/get_collection_product_columns.sql", "unique_id": "macro.shopify_source.get_collection_product_columns", "macro_sql": "{% macro get_collection_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2623937, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_product_columns": {"name": "get_graphql_collection_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_product_columns.sql", "original_file_path": "macros/get_collection_product_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_product_columns", "macro_sql": "{% macro get_graphql_collection_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2631927, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_address_columns": {"name": "get_graphql_customer_address_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_address_columns.sql", "original_file_path": "macros/get_customer_address_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_address_columns", "macro_sql": "{% macro get_graphql_customer_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_default\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"validation_result_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"coordinates_validated\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2672913, "supported_languages": null}, "macro.shopify_source.get_order_line_columns": {"name": "get_order_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_columns.sql", "original_file_path": "macros/get_order_line_columns.sql", "unique_id": "macro.shopify_source.get_order_line_columns", "macro_sql": "{% macro get_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillable_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"gift_card\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"grams\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"index\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"pre_tax_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"pre_tax_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"properties\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.273067, "supported_languages": null}, "macro.shopify_source.get_graphql_order_line_columns": {"name": "get_graphql_order_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_columns.sql", "original_file_path": "macros/get_order_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_line_columns", "macro_sql": "{% macro get_graphql_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_gift_card\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"original_total_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_total_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"original_total_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_total_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"unfulfilled_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2770114, "supported_languages": null}, "macro.shopify_source.get_order_line_refund_columns": {"name": "get_order_line_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_refund_columns.sql", "original_file_path": "macros/get_order_line_refund_columns.sql", "unique_id": "macro.shopify_source.get_order_line_refund_columns", "macro_sql": "{% macro get_order_line_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"restock_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_refund_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2799385, "supported_languages": null}, "macro.shopify_source.get_graphql_order_line_refund_columns": {"name": "get_graphql_order_line_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_refund_columns.sql", "original_file_path": "macros/get_order_line_refund_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_line_refund_columns", "macro_sql": "{% macro get_graphql_order_line_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"restock_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_refund_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2827277, "supported_languages": null}, "macro.shopify_source.get_product_variant_columns": {"name": "get_product_variant_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_columns.sql", "original_file_path": "macros/get_product_variant_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_columns", "macro_sql": "{% macro get_product_variant_columns() %}\n\n{# Columns below line 28 to be deprecated. #}\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"position\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"compare_at_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"barcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"old_inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"available_for_sale\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"requires_components\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sellable_online_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"fulfillment_service\", \"datatype\": dbt.type_string()},\n {\"name\": \"grams\", \"datatype\": dbt.type_float()},\n {\"name\": \"inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_3\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_variant_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_boolean", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.288935, "supported_languages": null}, "macro.shopify_source.get_graphql_product_variant_columns": {"name": "get_graphql_product_variant_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_columns.sql", "original_file_path": "macros/get_product_variant_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_variant_columns", "macro_sql": "{% macro get_graphql_product_variant_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_sale\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"barcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"compare_at_price\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"position\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_components\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sellable_online_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_variant_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2926397, "supported_languages": null}, "macro.shopify_source.get_product_tag_columns": {"name": "get_product_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_tag_columns.sql", "original_file_path": "macros/get_product_tag_columns.sql", "unique_id": "macro.shopify_source.get_product_tag_columns", "macro_sql": "{% macro get_product_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.29391, "supported_languages": null}, "macro.shopify_source.get_graphql_product_tag_columns": {"name": "get_graphql_product_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_tag_columns.sql", "original_file_path": "macros/get_product_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_tag_columns", "macro_sql": "{% macro get_graphql_product_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2948468, "supported_languages": null}, "macro.shopify_source.get_media_columns": {"name": "get_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_columns.sql", "original_file_path": "macros/get_media_columns.sql", "unique_id": "macro.shopify_source.get_media_columns", "macro_sql": "{% macro get_media_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}, \n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()}, \n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()} \n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.2961013, "supported_languages": null}, "macro.shopify_source.get_graphql_media_columns": {"name": "get_graphql_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_columns.sql", "original_file_path": "macros/get_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_media_columns", "macro_sql": "{% macro get_graphql_media_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.297188, "supported_languages": null}, "macro.shopify_source.get_discount_application_columns": {"name": "get_discount_application_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_application_columns.sql", "original_file_path": "macros/get_discount_application_columns.sql", "unique_id": "macro.shopify_source.get_discount_application_columns", "macro_sql": "{% macro get_discount_application_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocation_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"target_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value\", \"datatype\": dbt.type_float()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.299886, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_application_columns": {"name": "get_graphql_discount_application_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_application_columns.sql", "original_file_path": "macros/get_discount_application_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_application_columns", "macro_sql": "{% macro get_graphql_discount_application_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocation_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"target_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"value_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_percentage\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3017216, "supported_languages": null}, "macro.shopify_source.get_inventory_quantity_columns": {"name": "get_inventory_quantity_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_quantity_columns.sql", "original_file_path": "macros/get_inventory_quantity_columns.sql", "unique_id": "macro.shopify_source.get_inventory_quantity_columns", "macro_sql": "{% macro get_inventory_quantity_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_level_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3035407, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_quantity_columns": {"name": "get_graphql_inventory_quantity_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_quantity_columns.sql", "original_file_path": "macros/get_inventory_quantity_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_quantity_columns", "macro_sql": "{% macro get_graphql_inventory_quantity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_level_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.304938, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_discount_code_columns": {"name": "get_abandoned_checkout_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_discount_code_columns.sql", "original_file_path": "macros/get_abandoned_checkout_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro_sql": "{% macro get_abandoned_checkout_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3070161, "supported_languages": null}, "macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns": {"name": "get_graphql_abandoned_checkout_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_discount_code_columns.sql", "original_file_path": "macros/get_abandoned_checkout_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns", "macro_sql": "{% macro get_graphql_abandoned_checkout_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3079567, "supported_languages": null}, "macro.shopify_source.get_discount_code_bxgy_columns": {"name": "get_discount_code_bxgy_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_bxgy_columns.sql", "original_file_path": "macros/get_discount_code_bxgy_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_bxgy_columns", "macro_sql": "{% macro get_discount_code_bxgy_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3124712, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_bxgy_columns": {"name": "get_graphql_discount_code_bxgy_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_bxgy_columns.sql", "original_file_path": "macros/get_discount_code_bxgy_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_bxgy_columns", "macro_sql": "{% macro get_graphql_discount_code_bxgy_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.315636, "supported_languages": null}, "macro.shopify_source.get_inventory_level_columns": {"name": "get_inventory_level_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_level_columns.sql", "original_file_path": "macros/get_inventory_level_columns.sql", "unique_id": "macro.shopify_source.get_inventory_level_columns", "macro_sql": "{% macro get_inventory_level_columns() %}\n\n{# Columns below line 13 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"can_deactivate\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deactivation_alert\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n ,\n {\"name\": \"available\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3178575, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_level_columns": {"name": "get_graphql_inventory_level_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_level_columns.sql", "original_file_path": "macros/get_inventory_level_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_level_columns", "macro_sql": "{% macro get_graphql_inventory_level_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"can_deactivate\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deactivation_alert\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3193805, "supported_languages": null}, "macro.shopify_source.get_order_note_attribute_columns": {"name": "get_order_note_attribute_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_note_attribute_columns.sql", "original_file_path": "macros/get_order_note_attribute_columns.sql", "unique_id": "macro.shopify_source.get_order_note_attribute_columns", "macro_sql": "{% macro get_order_note_attribute_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.320659, "supported_languages": null}, "macro.shopify_source.get_graphql_order_note_attribute_columns": {"name": "get_graphql_order_note_attribute_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_note_attribute_columns.sql", "original_file_path": "macros/get_order_note_attribute_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_note_attribute_columns", "macro_sql": "{% macro get_graphql_order_note_attribute_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3215947, "supported_languages": null}, "macro.shopify_source.get_metafield_columns": {"name": "get_metafield_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_metafield_columns.sql", "original_file_path": "macros/get_metafield_columns.sql", "unique_id": "macro.shopify_source.get_metafield_columns", "macro_sql": "{% macro get_metafield_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"namespace\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"owner_resource\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3243032, "supported_languages": null}, "macro.shopify_source.get_graphql_metafield_columns": {"name": "get_graphql_metafield_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_metafield_columns.sql", "original_file_path": "macros/get_metafield_columns.sql", "unique_id": "macro.shopify_source.get_graphql_metafield_columns", "macro_sql": "{% macro get_graphql_metafield_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"namespace\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"owner_resource\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.326251, "supported_languages": null}, "macro.shopify_source.fivetran_convert_timezone": {"name": "fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.fivetran_convert_timezone", "macro_sql": "{%- macro fivetran_convert_timezone(column, target_tz=None, source_tz=None) -%}\n{%- set source_tz = \"UTC\" if not source_tz else source_tz -%}\n{%- set target_tz = \"UTC\" if not target_tz else target_tz -%}\n{{ return(adapter.dispatch('fivetran_convert_timezone', 'shopify_source') (column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.327487, "supported_languages": null}, "macro.shopify_source.default__fivetran_convert_timezone": {"name": "default__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.default__fivetran_convert_timezone", "macro_sql": "{% macro default__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ dbt.type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3278992, "supported_languages": null}, "macro.shopify_source.bigquery__fivetran_convert_timezone": {"name": "bigquery__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.bigquery__fivetran_convert_timezone", "macro_sql": "{%- macro bigquery__fivetran_convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3282795, "supported_languages": null}, "macro.shopify_source.postgres__fivetran_convert_timezone": {"name": "postgres__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.postgres__fivetran_convert_timezone", "macro_sql": "{% macro postgres__fivetran_convert_timezone(column, target_tz, source_tz) -%}\ncast(\n cast({{ column }} as {{ dbt.type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt.type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3287485, "supported_languages": null}, "macro.shopify_source.redshift__fivetran_convert_timezone": {"name": "redshift__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.redshift__fivetran_convert_timezone", "macro_sql": "{%- macro redshift__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.default__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3291376, "supported_languages": null}, "macro.shopify_source.duckdb__fivetran_convert_timezone": {"name": "duckdb__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.duckdb__fivetran_convert_timezone", "macro_sql": "{% macro duckdb__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.postgres__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.3295076, "supported_languages": null}, "macro.shopify_source.spark__fivetran_convert_timezone": {"name": "spark__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.spark__fivetran_convert_timezone", "macro_sql": "{%- macro spark__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nfrom_utc_timestamp(\n to_utc_timestamp({{ column }}, '{{ source_tz }}'),\n '{{ target_tz }}'\n )\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754505361.329832, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.shopify_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_synced", "block_contents": "The time when a record was last updated by Fivetran."}, "doc.shopify_source._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_deleted", "block_contents": "Boolean representing whether the record was soft-deleted in Shopify."}, "doc.shopify_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source.source_relation", "block_contents": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {"test.shopify_integration_tests.consistency_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_discounts.sql", "original_file_path": "tests/consistency/consistency_discounts.sql", "unique_id": "test.shopify_integration_tests.consistency_discounts", "fqn": ["shopify_integration_tests", "consistency", "consistency_discounts"], "alias": "consistency_discounts", "checksum": {"name": "sha256", "checksum": "c4c0089722a912fc6859d3f23b928425253c88ad16955dc1ec30dd47328d24b8"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.3145459, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__discounts\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__discounts\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_transactions": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_transactions", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_transactions.sql", "original_file_path": "tests/consistency/consistency_transactions.sql", "unique_id": "test.shopify_integration_tests.consistency_transactions", "fqn": ["shopify_integration_tests", "consistency", "consistency_transactions"], "alias": "consistency_transactions", "checksum": {"name": "sha256", "checksum": "4a35a742a91f9610e5f2f43d798aa32b4a7a03316db67fa95804ae894a6bddbd"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.3495784, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__transactions\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__transactions\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced_count": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced_count", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced_count.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced_count.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced_count", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced_count"], "alias": "consistency_line_item_enhanced_count", "checksum": {"name": "sha256", "checksum": "5966fa4f5d6392d55c6776983375aba21f63ec6d2bce09807769e2f807973074"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.3563612, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure the rows counts are the same between versions\nwith prod as (\n select count(*) as prod_rows\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select count(*) as dev_rows\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n)\n\n-- test will return values and fail if the row counts don't match\nselect *\nfrom prod\njoin dev\n on prod.prod_rows != dev.dev_rows", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced"], "alias": "consistency_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "bafda328d8951e5c1315715ae2af2b6db591c008cfb2e3e87102e102a927127d"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.3645043, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_email_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_email_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_email_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_email_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_email_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_email_cohorts"], "alias": "consistency_customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "9c68a37c8316395c4e9454f955bf9a88a8ec0f0a1b8e8b92f0324c30118b0a38"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.371328, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_email_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_email_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_emails": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_emails", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_emails.sql", "original_file_path": "tests/consistency/consistency_customer_emails.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_emails", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_emails"], "alias": "consistency_customer_emails", "checksum": {"name": "sha256", "checksum": "f65921899974fb386942217898b874b933b185b03ba96b7b4393a21c57749faf"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.3777547, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customer_emails\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customer_emails\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_inventory_levels": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_inventory_levels", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_inventory_levels.sql", "original_file_path": "tests/consistency/consistency_inventory_levels.sql", "unique_id": "test.shopify_integration_tests.consistency_inventory_levels", "fqn": ["shopify_integration_tests", "consistency", "consistency_inventory_levels"], "alias": "consistency_inventory_levels", "checksum": {"name": "sha256", "checksum": "5c4bf90e9896cd512f8251e7b55deaf76564f860f24c9332b2379854562145fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.384401, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__inventory_levels\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_order_lines": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_order_lines", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_order_lines.sql", "original_file_path": "tests/consistency/consistency_order_lines.sql", "unique_id": "test.shopify_integration_tests.consistency_order_lines", "fqn": ["shopify_integration_tests", "consistency", "consistency_order_lines"], "alias": "consistency_order_lines", "checksum": {"name": "sha256", "checksum": "0a6491b31602ef2fecc145804b8b8f386801aba35815ea3dc70e4bc0aaf5c3d9"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.391229, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__order_lines\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__order_lines\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customers.sql", "original_file_path": "tests/consistency/consistency_customers.sql", "unique_id": "test.shopify_integration_tests.consistency_customers", "fqn": ["shopify_integration_tests", "consistency", "consistency_customers"], "alias": "consistency_customers", "checksum": {"name": "sha256", "checksum": "b585f5c5f4001fd7febda99275ce6e83ccc77d28d5113615025a883a10b3fe75"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.3995013, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customers\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customers\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_daily_shop": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_daily_shop", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_daily_shop.sql", "original_file_path": "tests/consistency/consistency_daily_shop.sql", "unique_id": "test.shopify_integration_tests.consistency_daily_shop", "fqn": ["shopify_integration_tests", "consistency", "consistency_daily_shop"], "alias": "consistency_daily_shop", "checksum": {"name": "sha256", "checksum": "c6b82febd4b38d78edcc9e3b3f8dba293d1754d7223d5c16828b5f48f01742f5"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.4061954, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_prod.shopify__daily_shop\n group by 1,2,3\n),\n\ndev as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_dev.shopify__daily_shop\n group by 1,2,3\n),\n\nfinal as (\n select \n prod.date_day as prod_date_day,\n dev.date_day as dev_date_day,\n prod.shop_id as prod_shop_id,\n dev.shop_id as dev_shop_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.count_orders as prod_count_orders,\n dev.count_orders as dev_count_orders,\n prod.count_customers as prod_count_customers,\n dev.count_customers as dev_count_customers,\n prod.order_adjusted_total as prod_order_adjusted_total,\n dev.order_adjusted_total as dev_order_adjusted_total,\n prod.count_abandoned_checkouts as prod_count_abandoned_checkouts,\n dev.count_abandoned_checkouts as dev_count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , prod.count_fulfillment_attempted_delivery as prod_count_fulfillment_attempted_delivery\n , dev.count_fulfillment_attempted_delivery as dev_count_fulfillment_attempted_delivery\n , prod.count_fulfillment_confirmed as prod_count_fulfillment_confirmed\n , dev.count_fulfillment_confirmed as dev_count_fulfillment_confirmed\n {% endif %}\n\n from prod\n full outer join dev \n on dev.date_day = prod.date_day\n and dev.shop_id = prod.shop_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_date_day != dev_date_day or\n prod_shop_id != dev_shop_id or\n prod_source_relation != dev_source_relation or\n abs(prod_count_orders - dev_count_orders) > .001 or\n abs(prod_count_customers - dev_count_customers) > .001 or\n abs(prod_order_adjusted_total - dev_order_adjusted_total) > .001 or\n abs(prod_count_abandoned_checkouts - dev_count_abandoned_checkouts) > .001\n \n {% if var('shopify_using_fulfillment_event', false) %}\n or abs(prod_count_fulfillment_attempted_delivery - dev_count_fulfillment_attempted_delivery) > .001\n or abs(prod_count_fulfillment_confirmed - dev_count_fulfillment_confirmed) > .001\n {% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_cohorts"], "alias": "consistency_customer_cohorts", "checksum": {"name": "sha256", "checksum": "389c12079464cf20fe1f6888a7e40c8bb469148349a20931a8ba997e2f0023fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.4149811, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_orders.sql", "original_file_path": "tests/consistency/consistency_orders.sql", "unique_id": "test.shopify_integration_tests.consistency_orders", "fqn": ["shopify_integration_tests", "consistency", "consistency_orders"], "alias": "consistency_orders", "checksum": {"name": "sha256", "checksum": "0ab8c3335aa456106375ec248d3f309d35588f35d3654b13270a44eadb27faf6"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.421865, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__orders\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__orders\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_line_item_enhanced.sql", "original_file_path": "tests/integrity/vertical_integrity_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_line_item_enhanced", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_line_item_enhanced"], "alias": "vertical_integrity_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "efc2b1e0ac6bc26d2581903d83d1d56be172c14cfff1d8d6d7fa6b6eb160c7f7"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.4301002, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure there is no fanout between the staging order_line_table and the line_item_enhanced model.\nwith stg_order_line as (\n select\n 1 as join_key,\n count(*) as order_line_count,\n count(distinct order_id) as order_count\n from {{ ref('stg_shopify__order_line') }}\n),\n\nline_item_enhanced as (\n select\n 1 as join_key,\n count(*) as line_item_enhanced_count\n from {{ ref('shopify__line_item_enhanced') }}\n),\n\n-- test will return values and fail if the row counts don't match\n\nfinal as (\n select \n stg_order_line.join_key,\n stg_order_line.order_line_count + stg_order_line.order_count as total_line_and_order_count,\n line_item_enhanced.line_item_enhanced_count\n from stg_order_line\n join line_item_enhanced\n on stg_order_line.join_key = line_item_enhanced.join_key\n) \n\nselect *\nfrom final\nwhere total_line_and_order_count != line_item_enhanced_count", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "shopify__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_daily_shop_fulfillment", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_daily_shop_fulfillment.sql", "original_file_path": "tests/integrity/vertical_integrity_daily_shop_fulfillment.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_daily_shop_fulfillment"], "alias": "vertical_integrity_daily_shop_fulfillment", "checksum": {"name": "sha256", "checksum": "ba5dfc5af503b2012b977cd000daf131bf61c08241aad583df03926212225016"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.4378555, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n-- test will only run if shopify_using_fulfillment_event is set to True\n\nwith source as (\n\n select *\n from {{ ref('stg_shopify__fulfillment_event') }}\n),\n\nsource_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day,\n shop_id,\n count(distinct case when status = 'delayed' then fulfillment_id end) as count_fulfillment_delayed,\n count(distinct case when status = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit,\n count(distinct case when status = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed,\n count(distinct case when status = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n\n from source\n where happened_at > '2020-01-01' and happened_at < '2024-06-10'\n group by 1,2,3\n),\n\nmodel as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\nmodel_metrics as (\n\n select \n source_relation,\n date_day,\n shop_id,\n sum(count_fulfillment_delayed) as count_fulfillment_delayed,\n sum(count_fulfillment_in_transit) as count_fulfillment_in_transit,\n sum(count_fulfillment_confirmed) as count_fulfillment_confirmed,\n sum(count_fulfillment_delivered) as count_fulfillment_delivered\n\n from model\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2,3\n),\n\nfinal as (\n\n select\n model_metrics.source_relation,\n model_metrics.shop_id as model_shop_id,\n source_metrics.shop_id as source_shop_id,\n model_metrics.date_day as model_date_day,\n source_metrics.date_day as source_date_day,\n coalesce(model_metrics.count_fulfillment_delayed, 0) as model_count_fulfillment_delayed,\n coalesce(source_metrics.count_fulfillment_delayed, 0) as source_count_fulfillment_delayed,\n coalesce(model_metrics.count_fulfillment_in_transit, 0) as model_count_fulfillment_in_transit,\n coalesce(source_metrics.count_fulfillment_in_transit, 0) as source_count_fulfillment_in_transit,\n coalesce(model_metrics.count_fulfillment_confirmed, 0) as model_count_fulfillment_confirmed,\n coalesce(source_metrics.count_fulfillment_confirmed, 0) as source_count_fulfillment_confirmed,\n coalesce(model_metrics.count_fulfillment_delivered, 0) as model_count_fulfillment_delivered,\n coalesce(source_metrics.count_fulfillment_delivered, 0) as source_count_fulfillment_delivered\n\n from model_metrics\n full outer join source_metrics\n on model_metrics.source_relation = source_metrics.source_relation\n and model_metrics.shop_id = source_metrics.shop_id\n and model_metrics.date_day = source_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \nmodel_count_fulfillment_delayed != source_count_fulfillment_delayed or\nmodel_count_fulfillment_in_transit != source_count_fulfillment_in_transit or\nmodel_count_fulfillment_confirmed != source_count_fulfillment_confirmed or\nmodel_count_fulfillment_delivered != source_count_fulfillment_delivered", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.integrity_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_customers.sql", "original_file_path": "tests/integrity/integrity_customers.sql", "unique_id": "test.shopify_integration_tests.integrity_customers", "fqn": ["shopify_integration_tests", "integrity", "integrity_customers"], "alias": "integrity_customers", "checksum": {"name": "sha256", "checksum": "690ac16cf903e5fd89a08680246fd495bf3fbdc94a622f0b9b1ce6f6988d8a74"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.448703, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n customer_id,\n count(*) as source_customer_tag_count\n from {{ target.schema }}_shopify_dev.stg_shopify__customer_tag\n group by 1\n),\n\ntransform as (\n select\n customer_id,\n array_length(split(customer_tags, ',')) as transform_customer_tag_count -- Only BigQuery compatible for the time being\n from {{ target.schema }}_shopify_dev.shopify__customers\n where customer_tags is not null\n group by customer_id, customer_tags\n), \n\ncompare as (\n select\n source.customer_id,\n source.source_customer_tag_count,\n transform.transform_customer_tag_count\n from source\n full outer join transform\n on source.customer_id = transform.customer_id\n where source.source_customer_tag_count != transform.transform_customer_tag_count\n )\n\nselect *\nfrom compare", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.integrity_inventory_level": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_inventory_level", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_inventory_level.sql", "original_file_path": "tests/integrity/integrity_inventory_level.sql", "unique_id": "test.shopify_integration_tests.integrity_inventory_level", "fqn": ["shopify_integration_tests", "integrity", "integrity_inventory_level"], "alias": "integrity_inventory_level", "checksum": {"name": "sha256", "checksum": "2f633fb0d91b0bebe0152b97a141df7481c08e0df5557ee4962f8d0ebe7bd7ee"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.4556162, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n count(*) as source_count\n from {{ target.schema }}_shopify_dev.stg_shopify__inventory_level as il\n join {{ target.schema }}_shopify_dev.stg_shopify__inventory_item as ii\n on il.inventory_item_id = ii.inventory_item_id \n and il.source_relation = ii.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__location as lo\n on il.location_id = lo.location_id \n and il.source_relation = lo.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__product_variant as pv\n on il.inventory_item_id = pv.inventory_item_id\n and il.source_relation = pv.source_relation\n),\n\ntransform as (\n select\n count(*) as transform_count\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\ncompare as (\n select *\n from source\n cross join transform\n)\n\nselect *\nfrom compare\nwhere source_count != transform_count", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_discounts.sql", "original_file_path": "tests/integrity/vertical_integrity_discounts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_discounts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_discounts"], "alias": "vertical_integrity_discounts", "checksum": {"name": "sha256", "checksum": "591dfe08097b58fd9433339a17d0388c891a6d3eef65c042f13c227737e9ff65"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.4645693, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith discount_redeem_code as (\n\n select \n code,\n discount_code_id,\n source_relation\n from {{ ref('stg_shopify__discount_redeem_code') }} \n group by 1, 2, 3\n),\n\ndiscount_codes_unioned as (\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_basic') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_bxgy') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_free_shipping') }} \n group by 1, 2\n\n {% if var('shopify_using_discount_code_app', False) %}\n\n union all\n \n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_app') }} \n group by 1, 2\n {% endif %}\n),\n\ndiscount_codes_source as (\n \n select \n discount_redeem_code.code, \n discount_redeem_code.source_relation,\n count(*) as code_count_source\n from discount_redeem_code\n left join discount_codes_unioned\n on discount_redeem_code.discount_code_id = discount_codes_unioned.discount_code_id\n and discount_redeem_code.source_relation = discount_codes_unioned.source_relation\n group by 1, 2\n),\n\n\ndiscount_codes_end as (\n\n select \n code, \n source_relation,\n count(*) as code_count_end\n from {{ ref('shopify__discounts') }}\n group by 1, 2\n),\n\n\nfinal as (\n\n select \n discount_codes_source.code,\n discount_codes_source.source_relation,\n coalesce(discount_codes_source.code_count_source, 0) as code_count_source,\n coalesce(discount_codes_end.code_count_end, 0) as code_count_end\n from discount_codes_source\n full outer join discount_codes_end\n on discount_codes_source.code = discount_codes_end.code\n and discount_codes_source.source_relation = discount_codes_end.source_relation\n)\n\nselect *\nfrom final\nwhere code_count_source != code_count_end", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}, {"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "horizontal_integrity_daily_shop_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/horizontal_integrity_daily_shop_orders.sql", "original_file_path": "tests/integrity/horizontal_integrity_daily_shop_orders.sql", "unique_id": "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders", "fqn": ["shopify_integration_tests", "integrity", "horizontal_integrity_daily_shop_orders"], "alias": "horizontal_integrity_daily_shop_orders", "checksum": {"name": "sha256", "checksum": "addd76b5760975069f87aac715bd3ade9a52af4049104f635902fd87b8b41b1a"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.4729266, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norder_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from orders\n where created_timestamp > '2020-01-01' and created_timestamp < '2024-06-10'\n group by 1,2\n),\n\ndaily_shop as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\ndaily_shop_metrics as (\n\n select \n source_relation,\n date_day,\n sum(count_orders) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from daily_shop\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2\n),\n\nfinal as (\n\n select\n daily_shop_metrics.source_relation,\n coalesce(daily_shop_metrics.count_orders, 0) as daily_shop_count_orders,\n coalesce(order_metrics.count_orders, 0) as order_count_orders,\n coalesce(daily_shop_metrics.order_adjusted_total, 0) as daily_shop_order_adjusted_total,\n coalesce(order_metrics.order_adjusted_total, 0) as order_order_adjusted_total\n\n from daily_shop_metrics\n full outer join order_metrics\n on daily_shop_metrics.source_relation = order_metrics.source_relation\n and daily_shop_metrics.date_day = order_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \n abs(daily_shop_count_orders - order_count_orders) > 0 or\n abs(daily_shop_order_adjusted_total - order_order_adjusted_total) > .1", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_customer_cohorts.sql", "original_file_path": "tests/integrity/vertical_integrity_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_customer_cohorts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_customer_cohorts"], "alias": "vertical_integrity_customer_cohorts", "checksum": {"name": "sha256", "checksum": "19553b1bce28d0577a330dc5544f21b9326b91d673b50fdfdc0ca5980b17f7ff"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754505362.480869, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n), \n\ncustomers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), \n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), \n\ncustomer_cohort_source as (\n\n select \n customers.source_relation,\n count(*) as source_rows \n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n group by 1\n),\n\ncustomer_cohort_end as (\n\n select \n source_relation,\n count(*) as end_rows\n from {{ ref('shopify__customer_cohorts') }}\n group by 1\n),\n\nfinal as (\n select\n customer_cohort_source.source_relation,\n source_rows,\n end_rows\n from customer_cohort_source\n join customer_cohort_end\n on customer_cohort_source.source_relation = customer_cohort_end.source_relation\n where customer_cohort_source.source_rows != customer_cohort_end.end_rows\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "model.shopify_source.stg_shopify_gql__collection_rule": [{"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_rule", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection_rule.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection_rule.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_rule", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection_rule"], "alias": "stg_shopify_gql__collection_rule", "checksum": {"name": "sha256", "checksum": "01b76dc43dec6771d2c2ec7d82f1b18c80fa72974103274014b2147c07abaf8f"}, "config": {"enabled": false, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Defines the rules used to automatically include products in a smart collection. Each rule specifies a product attribute, a comparison relation, and a condition value to match against. These rules are evaluated dynamically to determine collection membership without manual curation.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "{{ doc('_fivetran_synced') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID of the smart collection to which this rule applies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of the rule within the collection's rule set. Rules are evaluated in order and may be grouped depending on collection logic.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "condition": {"name": "condition", "description": "The value to compare against the attribute. For example, \u201cHats\u201d if the rule is targeting products with a title containing \u201cHats\u201d. The interpretation depends on the associated `relation` and `columns` values.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "relation": {"name": "relation", "description": "The operator used to evaluate the rule. Common values include: - `equals` - `contains` - `not_equals` - `starts_with` - `ends_with` - `is_set` - `is_not_set` - `greater_than` - `less_than` - `not_contains`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "columns": {"name": "columns", "description": "The attribute being evaluated by the rule. Example values include: - `title` - `vendor` - `tag` - `variant_price` - `product_category_id` - `variant_compare_at_price` - `variant_metafield_definition` - `product_metafield_definition` - `variant_weight` - `type` - `is_price_reduced`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "{{ doc('source_relation') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": false}, "created_at": 1754505369.4544501, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_rule\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_collection_rule', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_rule_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_shopify_gql__collection_rule_tmp')),\n staging_columns=get_graphql_collection_rule_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n index,\n columns,\n condition,\n relation,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['collection_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_rule_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_rule_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}], "model.shopify_source.stg_shopify_gql__collection_rule_tmp": [{"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_rule_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_rule_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_rule_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_rule_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_rule_tmp"], "alias": "stg_shopify_gql__collection_rule_tmp", "checksum": {"name": "sha256", "checksum": "aea52cb2c08d241449697e4e67354b058c5b993645b80afe28dff54b1189108d"}, "config": {"enabled": false, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": false}, "created_at": 1754505367.7599132, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_rule_tmp\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_collection_rule', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_rule', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_rule_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection_rule"], ["shopify_graphql", "collection_rule"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}], "source.shopify_source.shopify_graphql.collection_rule": [{"database": "postgres", "schema": "public", "name": "collection_rule", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection_rule", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection_rule"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_rule_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Defines the rules used to automatically include products in a smart collection. Each rule specifies a product attribute, a comparison relation, and a condition value to match against. These rules are evaluated dynamically to determine collection membership without manual curation.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "{{ doc('_fivetran_synced') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID of the smart collection to which this rule applies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of the rule within the collection's rule set. Rules are evaluated in order and may be grouped depending on collection logic.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "condition": {"name": "condition", "description": "The value to compare against the attribute. For example, \u201cHats\u201d if the rule is targeting products with a title containing \u201cHats\u201d. The interpretation depends on the associated `relation` and `columns` values.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "relation": {"name": "relation", "description": "The operator used to evaluate the rule. Common values include: - `equals` - `contains` - `not_equals` - `starts_with` - `ends_with` - `is_set` - `is_not_set` - `greater_than` - `less_than` - `not_contains`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "columns": {"name": "columns", "description": "The attribute being evaluated by the rule. Example values include: - `title` - `vendor` - `tag` - `variant_price` - `product_category_id` - `variant_compare_at_price` - `variant_metafield_definition` - `product_metafield_definition` - `variant_weight` - `type` - `is_price_reduced`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": false, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": false, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_rule_data\"", "created_at": 1754505369.8737364, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}]}, "parent_map": {"seed.shopify_integration_tests.shopify_gql_product_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_metafield_data": [], "seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_product_data": [], "seed.shopify_integration_tests.shopify_gql_customer_address_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_customer_data": [], "seed.shopify_integration_tests.shopify_gql_customer_visit_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_media_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_gql_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_data": [], "seed.shopify_integration_tests.shopify_gql_order_data": [], "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_refund_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_gql_collection_rule_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_item_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_gql_location_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_gql_shop_data": [], "seed.shopify_integration_tests.shopify_gql_customer_tag_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_collection_data": [], "seed.shopify_integration_tests.shopify_gql_discount_application_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_level_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_media_image_data": [], "model.shopify.shopify__calendar": [], "model.shopify.shopify__customer_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"], "model.shopify.shopify__customer_email_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"], "model.shopify.shopify__inventory_levels": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media"], "model.shopify.shopify__discounts": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.int_shopify__discounts__order_aggregates"], "model.shopify.shopify__customers": ["model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.shopify__orders": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag"], "model.shopify.shopify__transactions": ["model.shopify_source.stg_shopify__tender_transaction", "model.shopify_source.stg_shopify__transaction"], "model.shopify.shopify__order_lines": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.shopify__products": ["model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.int_shopify__products_with_aggregates"], "model.shopify.shopify__daily_shop": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment", "model.shopify.int_shopify__daily_orders", "model.shopify.shopify__calendar", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__customer_emails": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_media", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_app", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.shopify__orders__order_refunds": ["model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__refund"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order"], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__orders", "model.shopify_source.stg_shopify__order_discount_code"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__order"], "model.shopify.shopify__product_variant_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.shopify__order_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"], "model.shopify.shopify__product_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"], "model.shopify.shopify__customer_metafields": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__metafield"], "model.shopify.shopify__shop_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__collection_metafields": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__metafield"], "model.shopify.shopify__line_item_enhanced": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction"], "model.shopify.shopify_gql__customer_email_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customer_emails", "model.shopify.shopify_gql__orders"], "model.shopify.shopify_gql__customers": ["model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify.shopify_gql__order_lines": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.int_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify.shopify_gql__transactions": ["model.shopify.int_shopify_gql__order", "model.shopify_source.stg_shopify_gql__tender_transaction", "model.shopify_source.stg_shopify_gql__transaction"], "model.shopify.shopify_gql__customer_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customers", "model.shopify.shopify_gql__orders"], "model.shopify.shopify_gql__discounts": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.int_shopify_gql__discounts_order_aggregates"], "model.shopify.shopify_gql__inventory_levels": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__inventory_level", "model.shopify_source.stg_shopify_gql__inventory_quantity", "model.shopify_source.stg_shopify_gql__location", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify.shopify_gql__customer_emails": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.int_shopify_gql__emails_order_aggregates"], "model.shopify.shopify_gql__daily_shop": ["model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__daily_fulfillment", "model.shopify.int_shopify_gql__daily_orders", "model.shopify.shopify__calendar", "model.shopify_source.stg_shopify_gql__shop"], "model.shopify.shopify_gql__products": ["model.shopify.int_shopify_gql__product_order_line_aggregates", "model.shopify.int_shopify_gql__products_with_aggregates"], "model.shopify.shopify_gql__orders": ["model.shopify.int_shopify_gql__order", "model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__order_discount_code", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__order_tag"], "model.shopify.int_shopify_gql__discount_code_enriched": ["model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__discount_code_app", "model.shopify_source.stg_shopify_gql__discount_code_basic", "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "model.shopify_source.stg_shopify_gql__discount_redeem_code"], "model.shopify.int_shopify_gql__products_with_aggregates": ["model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__collection_product", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__product_media", "model.shopify_source.stg_shopify_gql__product_tag", "model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify.int_shopify_gql__customers_order_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__daily_orders": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__emails_order_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__order_shipping_aggregates": ["model.shopify_source.stg_shopify_gql__order_shipping_line", "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "model.shopify.int_shopify_gql__order_fulfillment_aggregates": ["model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "model.shopify.int_shopify_gql__product_order_line_aggregates": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__orders_order_line_aggregates": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify.int_shopify_gql__discounts_order_aggregates": ["model.shopify.int_shopify_gql__order_discount_code", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__daily_fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "model.shopify.int_shopify_gql__customer_email_rollup": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify.int_shopify_gql__orders_order_refunds": ["model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__refund"], "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify_gql__discount_application"], "model.shopify.int_shopify_gql__daily_abandoned_checkouts": ["model.shopify.int_shopify_gql__abandoned_checkout"], "model.shopify.int_shopify_gql__inventory_level_aggregates": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment", "model.shopify_source.stg_shopify_gql__refund"], "model.shopify.int_shopify_gql__order_discount_code": ["model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__order_discount_code"], "model.shopify.int_shopify_gql__order": ["model.shopify_source.stg_shopify_gql__customer_visit", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__product_variant": ["model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify.int_shopify_gql__collection": ["model.shopify_source.stg_shopify_gql__collection"], "model.shopify.int_shopify_gql__abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer"], "model.shopify.int_shopify_gql__customer": ["model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_address"], "model.shopify.int_shopify_gql__order_line": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify.shopify_gql__product_metafields": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__product"], "model.shopify.shopify_gql__collection_metafields": ["model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__customer_metafields": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__shop_metafields": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__shop"], "model.shopify.shopify_gql__order_metafields": ["model.shopify.int_shopify_gql__order", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__product_variant_metafields": ["model.shopify.int_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__line_item_enhanced": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__transaction"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "model.shopify_source.stg_shopify__discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "model.shopify_source.stg_shopify__order": ["model.shopify_source.stg_shopify__order_tmp"], "model.shopify_source.stg_shopify__transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "model.shopify_source.stg_shopify__metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "model.shopify_source.stg_shopify__shop": ["model.shopify_source.stg_shopify__shop_tmp"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"], "model.shopify_source.stg_shopify__customer": ["model.shopify_source.stg_shopify__customer_tmp"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "model.shopify_source.stg_shopify__collection": ["model.shopify_source.stg_shopify__collection_tmp"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "model.shopify_source.stg_shopify__media": ["model.shopify_source.stg_shopify__media_tmp"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "model.shopify_source.stg_shopify__media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "model.shopify_source.stg_shopify__order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "model.shopify_source.stg_shopify__order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "model.shopify_source.stg_shopify__refund": ["model.shopify_source.stg_shopify__refund_tmp"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "model.shopify_source.stg_shopify__product": ["model.shopify_source.stg_shopify__product_tmp"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "model.shopify_source.stg_shopify__location": ["model.shopify_source.stg_shopify__location_tmp"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "model.shopify_source.stg_shopify__product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "model.shopify_source.stg_shopify__metafield_tmp": ["source.shopify_source.shopify.metafield"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["source.shopify_source.shopify.discount_code_bxgy"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["source.shopify_source.shopify.fulfillment"], "model.shopify_source.stg_shopify__product_variant_tmp": ["source.shopify_source.shopify.product_variant"], "model.shopify_source.stg_shopify__collection_tmp": ["source.shopify_source.shopify.collection"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["source.shopify_source.shopify.order_discount_code"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["source.shopify_source.shopify.order_url_tag"], "model.shopify_source.stg_shopify__product_tmp": ["source.shopify_source.shopify.product"], "model.shopify_source.stg_shopify__order_tag_tmp": ["source.shopify_source.shopify.order_tag"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["source.shopify_source.shopify.inventory_quantity"], "model.shopify_source.stg_shopify__tax_line_tmp": ["source.shopify_source.shopify.tax_line"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["source.shopify_source.shopify.customer_tag"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["source.shopify_source.shopify.discount_allocation"], "model.shopify_source.stg_shopify__media_image_tmp": ["source.shopify_source.shopify.media_image"], "model.shopify_source.stg_shopify__media_tmp": ["source.shopify_source.shopify.media"], "model.shopify_source.stg_shopify__refund_tmp": ["source.shopify_source.shopify.refund"], "model.shopify_source.stg_shopify__location_tmp": ["source.shopify_source.shopify.location"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["source.shopify_source.shopify.inventory_level"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["source.shopify_source.shopify.order_shipping_line"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["source.shopify_source.shopify.abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["source.shopify_source.shopify.fulfillment_event"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["source.shopify_source.shopify.order_line_refund"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["source.shopify_source.shopify.discount_code_app"], "model.shopify_source.stg_shopify__shop_tmp": ["source.shopify_source.shopify.shop"], "model.shopify_source.stg_shopify__transaction_tmp": ["source.shopify_source.shopify.transaction"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["source.shopify_source.shopify.product_variant_media"], "model.shopify_source.stg_shopify__order_line_tmp": ["source.shopify_source.shopify.order_line"], "model.shopify_source.stg_shopify__product_media_tmp": ["source.shopify_source.shopify.product_media"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["source.shopify_source.shopify.discount_code_basic"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["source.shopify_source.shopify.order_shipping_tax_line"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["source.shopify_source.shopify.order_note_attribute"], "model.shopify_source.stg_shopify__discount_application_tmp": ["source.shopify_source.shopify.discount_application"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["source.shopify_source.shopify.tender_transaction"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["source.shopify_source.shopify.discount_code_free_shipping"], "model.shopify_source.stg_shopify__product_tag_tmp": ["source.shopify_source.shopify.product_tag"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["source.shopify_source.shopify.inventory_item"], "model.shopify_source.stg_shopify__order_tmp": ["source.shopify_source.shopify.order"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["source.shopify_source.shopify.discount_redeem_code"], "model.shopify_source.stg_shopify__customer_tmp": ["source.shopify_source.shopify.customer"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["source.shopify_source.shopify.order_adjustment"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__collection_product_tmp": ["source.shopify_source.shopify.collection_product"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["source.shopify_source.shopify.abandoned_checkout"], "model.shopify_source.stg_shopify_gql__media": ["model.shopify_source.stg_shopify_gql__media_tmp"], "model.shopify_source.stg_shopify_gql__customer_visit": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_app": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"], "model.shopify_source.stg_shopify_gql__customer_tag": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"], "model.shopify_source.stg_shopify_gql__order": ["model.shopify_source.stg_shopify_gql__order_tmp"], "model.shopify_source.stg_shopify_gql__order_line": ["model.shopify_source.stg_shopify_gql__order_line_tmp"], "model.shopify_source.stg_shopify_gql__inventory_item": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"], "model.shopify_source.stg_shopify_gql__order_shipping_line": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"], "model.shopify_source.stg_shopify_gql__product": ["model.shopify_source.stg_shopify_gql__product_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"], "model.shopify_source.stg_shopify_gql__discount_allocation": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"], "model.shopify_source.stg_shopify_gql__tax_line": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"], "model.shopify_source.stg_shopify_gql__order_line_refund": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"], "model.shopify_source.stg_shopify_gql__inventory_level": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"], "model.shopify_source.stg_shopify_gql__shop": ["model.shopify_source.stg_shopify_gql__shop_tmp"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "model.shopify_source.stg_shopify_gql__location": ["model.shopify_source.stg_shopify_gql__location_tmp"], "model.shopify_source.stg_shopify_gql__transaction": ["model.shopify_source.stg_shopify_gql__transaction_tmp"], "model.shopify_source.stg_shopify_gql__product_media": ["model.shopify_source.stg_shopify_gql__product_media_tmp"], "model.shopify_source.stg_shopify_gql__product_variant": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"], "model.shopify_source.stg_shopify_gql__media_image": ["model.shopify_source.stg_shopify_gql__media_image_tmp"], "model.shopify_source.stg_shopify_gql__abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"], "model.shopify_source.stg_shopify_gql__collection": ["model.shopify_source.stg_shopify_gql__collection_tmp"], "model.shopify_source.stg_shopify_gql__refund": ["model.shopify_source.stg_shopify_gql__refund_tmp"], "model.shopify_source.stg_shopify_gql__discount_application": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"], "model.shopify_source.stg_shopify_gql__order_discount_code": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_basic": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"], "model.shopify_source.stg_shopify_gql__order_note_attribute": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"], "model.shopify_source.stg_shopify_gql__tender_transaction": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"], "model.shopify_source.stg_shopify_gql__customer": ["model.shopify_source.stg_shopify_gql__customer_tmp"], "model.shopify_source.stg_shopify_gql__product_tag": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"], "model.shopify_source.stg_shopify_gql__order_tag": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"], "model.shopify_source.stg_shopify_gql__metafield": ["model.shopify_source.stg_shopify_gql__metafield_tmp"], "model.shopify_source.stg_shopify_gql__product_variant_media": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"], "model.shopify_source.stg_shopify_gql__collection_product": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"], "model.shopify_source.stg_shopify_gql__inventory_quantity": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_event": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"], "model.shopify_source.stg_shopify_gql__customer_address": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"], "model.shopify_source.stg_shopify_gql__order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"], "model.shopify_source.stg_shopify_gql__discount_redeem_code": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"], "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": ["source.shopify_source.shopify_graphql.discount_redeem_code"], "model.shopify_source.stg_shopify_gql__refund_tmp": ["source.shopify_source.shopify_graphql.refund"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": ["source.shopify_source.shopify_graphql.discount_code_bxgy"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": ["source.shopify_source.shopify_graphql.fulfillment_tracking_info"], "model.shopify_source.stg_shopify_gql__customer_tmp": ["source.shopify_source.shopify_graphql.customer"], "model.shopify_source.stg_shopify_gql__product_tmp": ["source.shopify_source.shopify_graphql.product"], "model.shopify_source.stg_shopify_gql__customer_visit_tmp": ["source.shopify_source.shopify_graphql.customer_visit"], "model.shopify_source.stg_shopify_gql__shop_tmp": ["source.shopify_source.shopify_graphql.shop"], "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": ["source.shopify_source.shopify_graphql.inventory_quantity"], "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": ["source.shopify_source.shopify_graphql.order_shipping_line"], "model.shopify_source.stg_shopify_gql__collection_tmp": ["source.shopify_source.shopify_graphql.collection"], "model.shopify_source.stg_shopify_gql__inventory_item_tmp": ["source.shopify_source.shopify_graphql.inventory_item"], "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": ["source.shopify_source.shopify_graphql.discount_code_basic"], "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": ["source.shopify_source.shopify_graphql.order_adjustment"], "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": ["source.shopify_source.shopify_graphql.order_note_attribute"], "model.shopify_source.stg_shopify_gql__discount_application_tmp": ["source.shopify_source.shopify_graphql.discount_application"], "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": ["source.shopify_source.shopify_graphql.discount_code_app"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": ["source.shopify_source.shopify_graphql.order_shipping_tax_line"], "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": ["source.shopify_source.shopify_graphql.order_line_refund"], "model.shopify_source.stg_shopify_gql__metafield_tmp": ["source.shopify_source.shopify_graphql.metafield"], "model.shopify_source.stg_shopify_gql__order_line_tmp": ["source.shopify_source.shopify_graphql.order_line"], "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": ["source.shopify_source.shopify_graphql.product_variant_media"], "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": ["source.shopify_source.shopify_graphql.order_discount_code"], "model.shopify_source.stg_shopify_gql__product_variant_tmp": ["source.shopify_source.shopify_graphql.product_variant"], "model.shopify_source.stg_shopify_gql__order_tmp": ["source.shopify_source.shopify_graphql.order"], "model.shopify_source.stg_shopify_gql__location_tmp": ["source.shopify_source.shopify_graphql.location"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": ["source.shopify_source.shopify_graphql.discount_code_free_shipping"], "model.shopify_source.stg_shopify_gql__tax_line_tmp": ["source.shopify_source.shopify_graphql.tax_line"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": ["source.shopify_source.shopify_graphql.fulfillment_order_line_item"], "model.shopify_source.stg_shopify_gql__collection_product_tmp": ["source.shopify_source.shopify_graphql.collection_product"], "model.shopify_source.stg_shopify_gql__fulfillment_tmp": ["source.shopify_source.shopify_graphql.fulfillment"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": ["source.shopify_source.shopify_graphql.abandoned_checkout"], "model.shopify_source.stg_shopify_gql__order_tag_tmp": ["source.shopify_source.shopify_graphql.order_tag"], "model.shopify_source.stg_shopify_gql__product_media_tmp": ["source.shopify_source.shopify_graphql.product_media"], "model.shopify_source.stg_shopify_gql__media_image_tmp": ["source.shopify_source.shopify_graphql.media_image"], "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": ["source.shopify_source.shopify_graphql.tender_transaction"], "model.shopify_source.stg_shopify_gql__media_tmp": ["source.shopify_source.shopify_graphql.media"], "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": ["source.shopify_source.shopify_graphql.discount_allocation"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": ["source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify_gql__inventory_level_tmp": ["source.shopify_source.shopify_graphql.inventory_level"], "model.shopify_source.stg_shopify_gql__customer_tag_tmp": ["source.shopify_source.shopify_graphql.customer_tag"], "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": ["source.shopify_source.shopify_graphql.fulfillment_event"], "model.shopify_source.stg_shopify_gql__transaction_tmp": ["source.shopify_source.shopify_graphql.transaction"], "model.shopify_source.stg_shopify_gql__product_tag_tmp": ["source.shopify_source.shopify_graphql.product_tag"], "model.shopify_source.stg_shopify_gql__customer_address_tmp": ["source.shopify_source.shopify_graphql.customer_address"], "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": ["model.shopify.shopify_gql__customer_cohorts"], "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": ["model.shopify.shopify_gql__customer_cohorts"], "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": ["model.shopify.shopify_gql__customer_email_cohorts"], "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": ["model.shopify.shopify_gql__customer_email_cohorts"], "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": ["model.shopify.shopify_gql__orders"], "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": ["model.shopify.shopify_gql__orders"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171": ["model.shopify.shopify_gql__customers"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003": ["model.shopify.shopify_gql__customer_emails"], "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": ["model.shopify.shopify_gql__products"], "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": ["model.shopify.shopify_gql__products"], "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": ["model.shopify.shopify_gql__order_lines"], "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": ["model.shopify.shopify_gql__order_lines"], "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": ["model.shopify.shopify_gql__transactions"], "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": ["model.shopify.shopify_gql__transactions"], "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": ["model.shopify.shopify_gql__discounts"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": ["model.shopify.shopify_gql__daily_shop"], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": ["model.shopify.shopify__customer_cohorts"], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": ["model.shopify.shopify__customer_cohorts"], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": ["model.shopify.shopify__orders"], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": ["model.shopify.shopify__orders"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": ["model.shopify.shopify__customers"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": ["model.shopify.shopify__customer_emails"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": ["model.shopify.shopify__products"], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": ["model.shopify.shopify__order_lines"], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": ["model.shopify.shopify__order_lines"], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": ["model.shopify.shopify__inventory_levels"], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": ["model.shopify.shopify__inventory_levels"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": ["model.shopify.shopify__inventory_levels"], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": ["model.shopify.shopify__discounts"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": ["model.shopify.shopify__daily_shop"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": ["model.shopify.shopify__customers__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": ["model.shopify.shopify__orders__order_line_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": ["model.shopify.int_shopify__emails__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": ["model.shopify.int_shopify__customer_email_rollup"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": ["model.shopify.int_shopify__inventory_level__aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": ["model.shopify.int_shopify__discounts__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": ["model.shopify.int_shopify__discounts__abandoned_checkouts"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": ["model.shopify.int_shopify__order__shipping_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": ["model.shopify.int_shopify__product__order_line_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": ["model.shopify.int_shopify__products_with_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": ["model.shopify.shopify__line_item_enhanced"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1": ["model.shopify.shopify_gql__line_item_enhanced"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": ["model.shopify_source.stg_shopify__customer"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": ["model.shopify_source.stg_shopify__order_line_refund"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": ["model.shopify_source.stg_shopify__order_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": ["model.shopify_source.stg_shopify__order"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": ["model.shopify_source.stg_shopify__product"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": ["model.shopify_source.stg_shopify__product_variant"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": ["model.shopify_source.stg_shopify__transaction"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": ["model.shopify_source.stg_shopify__refund"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": ["model.shopify_source.stg_shopify__order_adjustment"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": ["model.shopify_source.stg_shopify__abandoned_checkout"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": ["model.shopify_source.stg_shopify__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": ["model.shopify_source.stg_shopify__collection"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": ["model.shopify_source.stg_shopify__collection"], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": ["model.shopify_source.stg_shopify__inventory_item"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": ["model.shopify_source.stg_shopify__inventory_item"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": ["model.shopify_source.stg_shopify__inventory_level"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": ["model.shopify_source.stg_shopify__inventory_quantity"], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": ["model.shopify_source.stg_shopify__location"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": ["model.shopify_source.stg_shopify__location"], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": ["model.shopify_source.stg_shopify__media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": ["model.shopify_source.stg_shopify__media"], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": ["model.shopify_source.stg_shopify__media_image"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": ["model.shopify_source.stg_shopify__media_image"], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": ["model.shopify_source.stg_shopify__metafield"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": ["model.shopify_source.stg_shopify__metafield"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": ["model.shopify_source.stg_shopify__order_shipping_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": ["model.shopify_source.stg_shopify__order_shipping_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": ["model.shopify_source.stg_shopify__shop"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": ["model.shopify_source.stg_shopify__shop"], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": ["model.shopify_source.stg_shopify__tender_transaction"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": ["model.shopify_source.stg_shopify__tender_transaction"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": ["model.shopify_source.stg_shopify__fulfillment_event"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": ["model.shopify_source.stg_shopify__fulfillment_event"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": ["model.shopify_source.stg_shopify__tax_line"], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": ["model.shopify_source.stg_shopify__discount_code_app"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": ["model.shopify_source.stg_shopify__discount_code_app"], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": ["model.shopify_source.stg_shopify__discount_code_basic"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": ["model.shopify_source.stg_shopify__discount_code_basic"], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": ["model.shopify_source.stg_shopify__discount_redeem_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": ["model.shopify_source.stg_shopify__discount_redeem_code"], "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": ["model.shopify_source.stg_shopify_gql__customer"], "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": ["model.shopify_source.stg_shopify_gql__customer"], "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": ["model.shopify_source.stg_shopify_gql__order"], "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": ["model.shopify_source.stg_shopify_gql__order"], "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": ["model.shopify_source.stg_shopify_gql__order_line"], "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": ["model.shopify_source.stg_shopify_gql__order_line"], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": ["model.shopify_source.stg_shopify_gql__product"], "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": ["model.shopify_source.stg_shopify_gql__product"], "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": ["model.shopify_source.stg_shopify_gql__product_variant"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": ["model.shopify_source.stg_shopify_gql__product_variant"], "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": ["model.shopify_source.stg_shopify_gql__refund"], "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": ["model.shopify_source.stg_shopify_gql__refund"], "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": ["model.shopify_source.stg_shopify_gql__tax_line"], "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": ["model.shopify_source.stg_shopify_gql__tax_line"], "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": ["model.shopify_source.stg_shopify_gql__transaction"], "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": ["model.shopify_source.stg_shopify_gql__transaction"], "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": ["model.shopify_source.stg_shopify_gql__customer_visit"], "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": ["model.shopify_source.stg_shopify_gql__customer_visit"], "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": [], "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": [], "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": ["model.shopify_source.stg_shopify_gql__customer_address"], "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": ["model.shopify_source.stg_shopify_gql__customer_address"], "source.shopify_source.shopify.order": [], "source.shopify_source.shopify.customer": [], "source.shopify_source.shopify.order_line": [], "source.shopify_source.shopify.order_line_refund": [], "source.shopify_source.shopify.product": [], "source.shopify_source.shopify.product_variant": [], "source.shopify_source.shopify.transaction": [], "source.shopify_source.shopify.refund": [], "source.shopify_source.shopify.order_adjustment": [], "source.shopify_source.shopify.abandoned_checkout": [], "source.shopify_source.shopify.collection_product": [], "source.shopify_source.shopify.collection": [], "source.shopify_source.shopify.customer_tag": [], "source.shopify_source.shopify.fulfillment": [], "source.shopify_source.shopify.inventory_item": [], "source.shopify_source.shopify.inventory_level": [], "source.shopify_source.shopify.inventory_quantity": [], "source.shopify_source.shopify.location": [], "source.shopify_source.shopify.metafield": [], "source.shopify_source.shopify.order_note_attribute": [], "source.shopify_source.shopify.order_shipping_line": [], "source.shopify_source.shopify.order_shipping_tax_line": [], "source.shopify_source.shopify.order_tag": [], "source.shopify_source.shopify.order_url_tag": [], "source.shopify_source.shopify.media": [], "source.shopify_source.shopify.media_image": [], "source.shopify_source.shopify.product_media": [], "source.shopify_source.shopify.product_variant_media": [], "source.shopify_source.shopify.product_tag": [], "source.shopify_source.shopify.shop": [], "source.shopify_source.shopify.tender_transaction": [], "source.shopify_source.shopify.abandoned_checkout_discount_code": [], "source.shopify_source.shopify.order_discount_code": [], "source.shopify_source.shopify.abandoned_checkout_shipping_line": [], "source.shopify_source.shopify.fulfillment_event": [], "source.shopify_source.shopify.tax_line": [], "source.shopify_source.shopify.discount_allocation": [], "source.shopify_source.shopify.discount_application": [], "source.shopify_source.shopify.discount_code_app": [], "source.shopify_source.shopify.discount_code_basic": [], "source.shopify_source.shopify.discount_code_bxgy": [], "source.shopify_source.shopify.discount_code_free_shipping": [], "source.shopify_source.shopify.discount_redeem_code": [], "source.shopify_source.shopify_graphql.order": [], "source.shopify_source.shopify_graphql.customer": [], "source.shopify_source.shopify_graphql.order_line": [], "source.shopify_source.shopify_graphql.order_line_refund": [], "source.shopify_source.shopify_graphql.product": [], "source.shopify_source.shopify_graphql.product_variant": [], "source.shopify_source.shopify_graphql.transaction": [], "source.shopify_source.shopify_graphql.refund": [], "source.shopify_source.shopify_graphql.order_adjustment": [], "source.shopify_source.shopify_graphql.abandoned_checkout": [], "source.shopify_source.shopify_graphql.collection_product": [], "source.shopify_source.shopify_graphql.collection": [], "source.shopify_source.shopify_graphql.customer_tag": [], "source.shopify_source.shopify_graphql.fulfillment": [], "source.shopify_source.shopify_graphql.inventory_item": [], "source.shopify_source.shopify_graphql.inventory_level": [], "source.shopify_source.shopify_graphql.inventory_quantity": [], "source.shopify_source.shopify_graphql.location": [], "source.shopify_source.shopify_graphql.metafield": [], "source.shopify_source.shopify_graphql.order_note_attribute": [], "source.shopify_source.shopify_graphql.order_shipping_line": [], "source.shopify_source.shopify_graphql.order_shipping_tax_line": [], "source.shopify_source.shopify_graphql.order_tag": [], "source.shopify_source.shopify_graphql.media": [], "source.shopify_source.shopify_graphql.media_image": [], "source.shopify_source.shopify_graphql.product_media": [], "source.shopify_source.shopify_graphql.product_variant_media": [], "source.shopify_source.shopify_graphql.product_tag": [], "source.shopify_source.shopify_graphql.shop": [], "source.shopify_source.shopify_graphql.tender_transaction": [], "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": [], "source.shopify_source.shopify_graphql.order_discount_code": [], "source.shopify_source.shopify_graphql.fulfillment_event": [], "source.shopify_source.shopify_graphql.tax_line": [], "source.shopify_source.shopify_graphql.discount_allocation": [], "source.shopify_source.shopify_graphql.discount_application": [], "source.shopify_source.shopify_graphql.discount_code_app": [], "source.shopify_source.shopify_graphql.discount_code_basic": [], "source.shopify_source.shopify_graphql.discount_code_bxgy": [], "source.shopify_source.shopify_graphql.discount_code_free_shipping": [], "source.shopify_source.shopify_graphql.discount_redeem_code": [], "source.shopify_source.shopify_graphql.fulfillment_tracking_info": [], "source.shopify_source.shopify_graphql.customer_visit": [], "source.shopify_source.shopify_graphql.fulfillment_order_line_item": [], "source.shopify_source.shopify_graphql.customer_address": []}, "child_map": {"seed.shopify_integration_tests.shopify_gql_product_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_metafield_data": [], "seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_product_data": [], "seed.shopify_integration_tests.shopify_gql_customer_address_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_customer_data": [], "seed.shopify_integration_tests.shopify_gql_customer_visit_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_media_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_gql_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_data": [], "seed.shopify_integration_tests.shopify_gql_order_data": [], "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_refund_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_gql_collection_rule_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_item_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_gql_location_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_gql_shop_data": [], "seed.shopify_integration_tests.shopify_gql_customer_tag_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_collection_data": [], "seed.shopify_integration_tests.shopify_gql_discount_application_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_level_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_media_image_data": [], "model.shopify.shopify__calendar": ["model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "model.shopify.shopify__daily_shop", "model.shopify.shopify_gql__customer_cohorts", "model.shopify.shopify_gql__customer_email_cohorts", "model.shopify.shopify_gql__daily_shop"], "model.shopify.shopify__customer_cohorts": ["test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a"], "model.shopify.shopify__customer_email_cohorts": ["test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182"], "model.shopify.shopify__inventory_levels": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606", "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0"], "model.shopify.shopify__discounts": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f", "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f"], "model.shopify.shopify__customers": ["model.shopify.shopify__customer_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469"], "model.shopify.shopify__orders": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51"], "model.shopify.shopify__transactions": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981"], "model.shopify.shopify__order_lines": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__product__order_line_aggregates", "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e"], "model.shopify.shopify__products": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a"], "model.shopify.shopify__daily_shop": ["test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f"], "model.shopify.shopify__customer_emails": ["model.shopify.shopify__customer_email_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__inventory_levels", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__products", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify.shopify__products", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify.shopify__discounts"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__orders", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify.shopify__customer_emails", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda"], "model.shopify.shopify__orders__order_refunds": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify.shopify__discounts", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__customer_emails", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a"], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__discounts", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__customers", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9"], "model.shopify.shopify__product_variant_metafields": [], "model.shopify.shopify__order_metafields": [], "model.shopify.shopify__product_metafields": [], "model.shopify.shopify__customer_metafields": [], "model.shopify.shopify__shop_metafields": [], "model.shopify.shopify__collection_metafields": [], "model.shopify.shopify__line_item_enhanced": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae"], "model.shopify.shopify_gql__customer_email_cohorts": ["test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f", "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27"], "model.shopify.shopify_gql__customers": ["model.shopify.shopify_gql__customer_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171"], "model.shopify.shopify_gql__order_lines": ["model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__product_order_line_aggregates", "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db", "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4"], "model.shopify.shopify_gql__transactions": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d", "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c"], "model.shopify.shopify_gql__customer_cohorts": ["test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2", "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c"], "model.shopify.shopify_gql__discounts": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92", "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264", "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994", "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5"], "model.shopify.shopify_gql__inventory_levels": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b", "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957", "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e"], "model.shopify.shopify_gql__customer_emails": ["model.shopify.shopify_gql__customer_email_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003"], "model.shopify.shopify_gql__daily_shop": ["test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8"], "model.shopify.shopify_gql__products": ["test.shopify.not_null_shopify_gql__products_unique_key.4982d88497", "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326"], "model.shopify.shopify_gql__orders": ["model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.int_shopify_gql__product_order_line_aggregates", "model.shopify.shopify_gql__customer_cohorts", "model.shopify.shopify_gql__customer_email_cohorts", "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041", "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077"], "model.shopify.int_shopify_gql__discount_code_enriched": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__products_with_aggregates": ["model.shopify.shopify_gql__products"], "model.shopify.int_shopify_gql__customers_order_aggregates": ["model.shopify.shopify_gql__customers"], "model.shopify.int_shopify_gql__daily_orders": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__emails_order_aggregates": ["model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__order_shipping_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__line_item_enhanced"], "model.shopify.int_shopify_gql__order_fulfillment_aggregates": ["model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__product_order_line_aggregates": ["model.shopify.shopify_gql__products"], "model.shopify.int_shopify_gql__orders_order_line_aggregates": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__discounts_order_aggregates": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__daily_fulfillment": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__customer_email_rollup": ["model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__orders_order_refunds": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__daily_abandoned_checkouts": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__inventory_level_aggregates": ["model.shopify.shopify_gql__inventory_levels"], "model.shopify.int_shopify_gql__order_adjustment": ["model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__order_discount_code": ["model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__order": ["model.shopify.shopify_gql__order_metafields", "model.shopify.shopify_gql__orders", "model.shopify.shopify_gql__transactions"], "model.shopify.int_shopify_gql__product_variant": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__product_variant_metafields"], "model.shopify.int_shopify_gql__collection": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__collection_metafields"], "model.shopify.int_shopify_gql__abandoned_checkout": ["model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__customer": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.shopify_gql__customer_metafields", "model.shopify.shopify_gql__customers"], "model.shopify.int_shopify_gql__order_line": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.shopify_gql__order_lines"], "model.shopify.shopify_gql__product_metafields": [], "model.shopify.shopify_gql__collection_metafields": [], "model.shopify.shopify_gql__customer_metafields": [], "model.shopify.shopify_gql__shop_metafields": [], "model.shopify.shopify_gql__order_metafields": [], "model.shopify.shopify_gql__product_variant_metafields": [], "model.shopify.shopify_gql__line_item_enhanced": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933", "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613"], "model.shopify_source.stg_shopify__discount_allocation": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300", "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330"], "model.shopify_source.stg_shopify__order": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_metafields", "model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1"], "model.shopify_source.stg_shopify__transaction": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__transactions", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5", "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__orders", "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a", "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e"], "model.shopify_source.stg_shopify__metafield": ["model.shopify.shopify__collection_metafields", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__order_metafields", "model.shopify.shopify__product_metafields", "model.shopify.shopify__product_variant_metafields", "model.shopify.shopify__shop_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca", "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7", "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify.shopify__transactions", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b", "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295"], "model.shopify_source.stg_shopify__shop": ["model.shopify.shopify__daily_shop", "model.shopify.shopify__shop_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415", "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c", "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb"], "model.shopify_source.stg_shopify__customer": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__customers", "model.shopify.shopify__line_item_enhanced", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84", "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe"], "model.shopify_source.stg_shopify__collection": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__collection_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878", "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0"], "model.shopify_source.stg_shopify__media": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f", "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c", "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc", "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "model.shopify.shopify__product_variant_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26", "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d"], "model.shopify_source.stg_shopify__media_image": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5", "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b"], "model.shopify_source.stg_shopify__order_line": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032", "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify.int_shopify__daily_fulfillment", "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a"], "model.shopify_source.stg_shopify__order_note_attribute": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0", "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_refunds", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29"], "model.shopify_source.stg_shopify__refund": ["model.shopify.shopify__orders__order_refunds", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.shopify__customers", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f", "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd"], "model.shopify_source.stg_shopify__product": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__product_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07", "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6"], "model.shopify_source.stg_shopify__location": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9", "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf", "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1"], "model.shopify_source.stg_shopify__product_media": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea", "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19", "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.shopify__customer_emails", "model.shopify.shopify__customers", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c", "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify.int_shopify__discounts__abandoned_checkouts", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify.int_shopify__discounts__abandoned_checkouts", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e", "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1"], "model.shopify_source.stg_shopify__metafield_tmp": ["model.shopify_source.stg_shopify__metafield"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["model.shopify_source.stg_shopify__fulfillment"], "model.shopify_source.stg_shopify__product_variant_tmp": ["model.shopify_source.stg_shopify__product_variant"], "model.shopify_source.stg_shopify__collection_tmp": ["model.shopify_source.stg_shopify__collection"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["model.shopify_source.stg_shopify__order_discount_code"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["model.shopify_source.stg_shopify__order_url_tag"], "model.shopify_source.stg_shopify__product_tmp": ["model.shopify_source.stg_shopify__product"], "model.shopify_source.stg_shopify__order_tag_tmp": ["model.shopify_source.stg_shopify__order_tag"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["model.shopify_source.stg_shopify__inventory_quantity"], "model.shopify_source.stg_shopify__tax_line_tmp": ["model.shopify_source.stg_shopify__tax_line"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["model.shopify_source.stg_shopify__customer_tag"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["model.shopify_source.stg_shopify__discount_allocation"], "model.shopify_source.stg_shopify__media_image_tmp": ["model.shopify_source.stg_shopify__media_image"], "model.shopify_source.stg_shopify__media_tmp": ["model.shopify_source.stg_shopify__media"], "model.shopify_source.stg_shopify__refund_tmp": ["model.shopify_source.stg_shopify__refund"], "model.shopify_source.stg_shopify__location_tmp": ["model.shopify_source.stg_shopify__location"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["model.shopify_source.stg_shopify__inventory_level"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_line"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["model.shopify_source.stg_shopify__order_line_refund"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["model.shopify_source.stg_shopify__discount_code_app"], "model.shopify_source.stg_shopify__shop_tmp": ["model.shopify_source.stg_shopify__shop"], "model.shopify_source.stg_shopify__transaction_tmp": ["model.shopify_source.stg_shopify__transaction"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["model.shopify_source.stg_shopify__product_variant_media"], "model.shopify_source.stg_shopify__order_line_tmp": ["model.shopify_source.stg_shopify__order_line"], "model.shopify_source.stg_shopify__product_media_tmp": ["model.shopify_source.stg_shopify__product_media"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["model.shopify_source.stg_shopify__discount_code_basic"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["model.shopify_source.stg_shopify__order_note_attribute"], "model.shopify_source.stg_shopify__discount_application_tmp": ["model.shopify_source.stg_shopify__discount_application"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["model.shopify_source.stg_shopify__tender_transaction"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "model.shopify_source.stg_shopify__product_tag_tmp": ["model.shopify_source.stg_shopify__product_tag"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["model.shopify_source.stg_shopify__inventory_item"], "model.shopify_source.stg_shopify__order_tmp": ["model.shopify_source.stg_shopify__order"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify_source.stg_shopify__customer_tmp": ["model.shopify_source.stg_shopify__customer"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["model.shopify_source.stg_shopify__order_adjustment"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__collection_product_tmp": ["model.shopify_source.stg_shopify__collection_product"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify_source.stg_shopify_gql__media": ["test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a", "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac", "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989"], "model.shopify_source.stg_shopify_gql__customer_visit": ["model.shopify.int_shopify_gql__order", "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89", "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2"], "model.shopify_source.stg_shopify_gql__discount_code_app": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2", "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c", "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981"], "model.shopify_source.stg_shopify_gql__customer_tag": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.shopify_gql__customers", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8", "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740"], "model.shopify_source.stg_shopify_gql__order": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.int_shopify_gql__order", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b", "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36"], "model.shopify_source.stg_shopify_gql__order_line": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43", "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85"], "model.shopify_source.stg_shopify_gql__inventory_item": ["model.shopify.int_shopify_gql__product_variant", "model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8", "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91", "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8", "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": ["model.shopify.int_shopify_gql__order_line", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c", "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12"], "model.shopify_source.stg_shopify_gql__order_shipping_line": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd", "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478"], "model.shopify_source.stg_shopify_gql__product": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__inventory_levels", "model.shopify.shopify_gql__line_item_enhanced", "model.shopify.shopify_gql__product_metafields", "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb", "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a"], "model.shopify_source.stg_shopify_gql__fulfillment": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a", "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578"], "model.shopify_source.stg_shopify_gql__discount_allocation": ["test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a", "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e", "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04", "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685"], "model.shopify_source.stg_shopify_gql__tax_line": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173", "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33"], "model.shopify_source.stg_shopify_gql__order_line_refund": ["model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e", "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20"], "model.shopify_source.stg_shopify_gql__inventory_level": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd", "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd", "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570"], "model.shopify_source.stg_shopify_gql__shop": ["model.shopify.shopify_gql__daily_shop", "model.shopify.shopify_gql__shop_metafields", "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531", "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075", "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": ["model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398", "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76"], "model.shopify_source.stg_shopify_gql__location": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be", "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03", "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e"], "model.shopify_source.stg_shopify_gql__transaction": ["model.shopify.shopify_gql__line_item_enhanced", "model.shopify.shopify_gql__transactions", "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb", "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd"], "model.shopify_source.stg_shopify_gql__product_media": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb", "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49", "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800", "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b"], "model.shopify_source.stg_shopify_gql__product_variant": ["model.shopify.int_shopify_gql__product_variant", "model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3", "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735"], "model.shopify_source.stg_shopify_gql__media_image": ["test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141", "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4", "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6"], "model.shopify_source.stg_shopify_gql__abandoned_checkout": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.shopify_gql__customers", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f", "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0"], "model.shopify_source.stg_shopify_gql__collection": ["model.shopify.int_shopify_gql__collection", "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6", "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87", "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e"], "model.shopify_source.stg_shopify_gql__refund": ["model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__orders_order_refunds", "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a", "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c"], "model.shopify_source.stg_shopify_gql__discount_application": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.int_shopify_gql__order_discount_code", "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4", "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0", "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af", "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": ["model.shopify.int_shopify_gql__order_fulfillment_aggregates", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8", "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e"], "model.shopify_source.stg_shopify_gql__order_discount_code": ["model.shopify.int_shopify_gql__order_discount_code", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8", "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7"], "model.shopify_source.stg_shopify_gql__discount_code_basic": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc", "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec", "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb"], "model.shopify_source.stg_shopify_gql__order_note_attribute": ["test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e", "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc", "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6", "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c"], "model.shopify_source.stg_shopify_gql__tender_transaction": ["model.shopify.shopify_gql__transactions", "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7", "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93", "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475"], "model.shopify_source.stg_shopify_gql__customer": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7", "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271"], "model.shopify_source.stg_shopify_gql__product_tag": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd", "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c", "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984", "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0"], "model.shopify_source.stg_shopify_gql__order_tag": ["model.shopify.shopify_gql__orders", "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661", "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290", "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479", "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461"], "model.shopify_source.stg_shopify_gql__metafield": ["model.shopify.shopify_gql__collection_metafields", "model.shopify.shopify_gql__customer_metafields", "model.shopify.shopify_gql__order_metafields", "model.shopify.shopify_gql__product_metafields", "model.shopify.shopify_gql__product_variant_metafields", "model.shopify.shopify_gql__shop_metafields", "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5", "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff", "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679"], "model.shopify_source.stg_shopify_gql__product_variant_media": ["model.shopify.shopify_gql__inventory_levels", "model.shopify.shopify_gql__order_lines", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae", "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894"], "model.shopify_source.stg_shopify_gql__collection_product": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16", "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3", "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67", "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066"], "model.shopify_source.stg_shopify_gql__inventory_quantity": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1", "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa"], "model.shopify_source.stg_shopify_gql__fulfillment_event": ["model.shopify.int_shopify_gql__daily_fulfillment", "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c", "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4", "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b", "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232"], "model.shopify_source.stg_shopify_gql__customer_address": ["model.shopify.int_shopify_gql__customer", "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c", "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04", "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565", "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089"], "model.shopify_source.stg_shopify_gql__order_adjustment": ["model.shopify.int_shopify_gql__order_adjustment", "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c", "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861"], "model.shopify_source.stg_shopify_gql__discount_redeem_code": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3", "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742", "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f"], "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "model.shopify_source.stg_shopify_gql__refund_tmp": ["model.shopify_source.stg_shopify_gql__refund"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "model.shopify_source.stg_shopify_gql__customer_tmp": ["model.shopify_source.stg_shopify_gql__customer"], "model.shopify_source.stg_shopify_gql__product_tmp": ["model.shopify_source.stg_shopify_gql__product"], "model.shopify_source.stg_shopify_gql__customer_visit_tmp": ["model.shopify_source.stg_shopify_gql__customer_visit"], "model.shopify_source.stg_shopify_gql__shop_tmp": ["model.shopify_source.stg_shopify_gql__shop"], "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "model.shopify_source.stg_shopify_gql__collection_tmp": ["model.shopify_source.stg_shopify_gql__collection"], "model.shopify_source.stg_shopify_gql__inventory_item_tmp": ["model.shopify_source.stg_shopify_gql__inventory_item"], "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "model.shopify_source.stg_shopify_gql__discount_application_tmp": ["model.shopify_source.stg_shopify_gql__discount_application"], "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "model.shopify_source.stg_shopify_gql__metafield_tmp": ["model.shopify_source.stg_shopify_gql__metafield"], "model.shopify_source.stg_shopify_gql__order_line_tmp": ["model.shopify_source.stg_shopify_gql__order_line"], "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "model.shopify_source.stg_shopify_gql__product_variant_tmp": ["model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify_source.stg_shopify_gql__order_tmp": ["model.shopify_source.stg_shopify_gql__order"], "model.shopify_source.stg_shopify_gql__location_tmp": ["model.shopify_source.stg_shopify_gql__location"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "model.shopify_source.stg_shopify_gql__tax_line_tmp": ["model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "model.shopify_source.stg_shopify_gql__collection_product_tmp": ["model.shopify_source.stg_shopify_gql__collection_product"], "model.shopify_source.stg_shopify_gql__fulfillment_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "model.shopify_source.stg_shopify_gql__order_tag_tmp": ["model.shopify_source.stg_shopify_gql__order_tag"], "model.shopify_source.stg_shopify_gql__product_media_tmp": ["model.shopify_source.stg_shopify_gql__product_media"], "model.shopify_source.stg_shopify_gql__media_image_tmp": ["model.shopify_source.stg_shopify_gql__media_image"], "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "model.shopify_source.stg_shopify_gql__media_tmp": ["model.shopify_source.stg_shopify_gql__media"], "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify_gql__inventory_level_tmp": ["model.shopify_source.stg_shopify_gql__inventory_level"], "model.shopify_source.stg_shopify_gql__customer_tag_tmp": ["model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "model.shopify_source.stg_shopify_gql__transaction_tmp": ["model.shopify_source.stg_shopify_gql__transaction"], "model.shopify_source.stg_shopify_gql__product_tag_tmp": ["model.shopify_source.stg_shopify_gql__product_tag"], "model.shopify_source.stg_shopify_gql__customer_address_tmp": ["model.shopify_source.stg_shopify_gql__customer_address"], "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": [], "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": [], "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": [], "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": [], "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": [], "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003": [], "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": [], "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": [], "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": [], "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": [], "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": [], "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": [], "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": [], "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b": [], "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": [], "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": [], "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92": [], "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": [], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": [], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": [], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": [], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": [], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": [], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": [], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": [], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": [], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": [], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": [], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": [], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": [], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": [], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": [], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": [], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": [], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": [], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": [], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": [], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": [], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": [], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": [], "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": [], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": [], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": [], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": [], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": [], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": [], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": [], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": [], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": [], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": [], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": [], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": [], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": [], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": [], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": [], "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": [], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": [], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": [], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": [], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": [], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": [], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": [], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": [], "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": [], "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": [], "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": [], "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": [], "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": [], "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": [], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": [], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": [], "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": [], "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": [], "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": [], "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": [], "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": [], "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": [], "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": [], "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": [], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": [], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": [], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": [], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": [], "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": [], "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd": [], "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": [], "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": [], "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": [], "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": [], "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": [], "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": [], "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": [], "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": [], "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": [], "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": [], "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": [], "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": [], "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": [], "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": [], "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": [], "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": [], "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": [], "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": [], "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": [], "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": [], "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": [], "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": [], "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": [], "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": [], "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": [], "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": [], "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": [], "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": [], "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": [], "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": [], "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": [], "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": [], "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": [], "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": [], "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": [], "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": [], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": [], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": [], "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": [], "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": [], "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": [], "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": [], "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": [], "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": [], "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": [], "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": [], "source.shopify_source.shopify.order": ["model.shopify_source.stg_shopify__order_tmp"], "source.shopify_source.shopify.customer": ["model.shopify_source.stg_shopify__customer_tmp"], "source.shopify_source.shopify.order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "source.shopify_source.shopify.order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "source.shopify_source.shopify.product": ["model.shopify_source.stg_shopify__product_tmp"], "source.shopify_source.shopify.product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "source.shopify_source.shopify.transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "source.shopify_source.shopify.refund": ["model.shopify_source.stg_shopify__refund_tmp"], "source.shopify_source.shopify.order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "source.shopify_source.shopify.abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "source.shopify_source.shopify.collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "source.shopify_source.shopify.collection": ["model.shopify_source.stg_shopify__collection_tmp"], "source.shopify_source.shopify.customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "source.shopify_source.shopify.fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "source.shopify_source.shopify.inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "source.shopify_source.shopify.inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "source.shopify_source.shopify.inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "source.shopify_source.shopify.location": ["model.shopify_source.stg_shopify__location_tmp"], "source.shopify_source.shopify.metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "source.shopify_source.shopify.order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "source.shopify_source.shopify.order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "source.shopify_source.shopify.order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "source.shopify_source.shopify.order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "source.shopify_source.shopify.order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "source.shopify_source.shopify.media": ["model.shopify_source.stg_shopify__media_tmp"], "source.shopify_source.shopify.media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "source.shopify_source.shopify.product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "source.shopify_source.shopify.product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "source.shopify_source.shopify.product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "source.shopify_source.shopify.shop": ["model.shopify_source.stg_shopify__shop_tmp"], "source.shopify_source.shopify.tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "source.shopify_source.shopify.abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "source.shopify_source.shopify.order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "source.shopify_source.shopify.abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "source.shopify_source.shopify.fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "source.shopify_source.shopify.tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "source.shopify_source.shopify.discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "source.shopify_source.shopify.discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "source.shopify_source.shopify.discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "source.shopify_source.shopify.discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "source.shopify_source.shopify.discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "source.shopify_source.shopify.discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "source.shopify_source.shopify.discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"], "source.shopify_source.shopify_graphql.order": ["model.shopify_source.stg_shopify_gql__order_tmp"], "source.shopify_source.shopify_graphql.customer": ["model.shopify_source.stg_shopify_gql__customer_tmp"], "source.shopify_source.shopify_graphql.order_line": ["model.shopify_source.stg_shopify_gql__order_line_tmp"], "source.shopify_source.shopify_graphql.order_line_refund": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"], "source.shopify_source.shopify_graphql.product": ["model.shopify_source.stg_shopify_gql__product_tmp"], "source.shopify_source.shopify_graphql.product_variant": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"], "source.shopify_source.shopify_graphql.transaction": ["model.shopify_source.stg_shopify_gql__transaction_tmp"], "source.shopify_source.shopify_graphql.refund": ["model.shopify_source.stg_shopify_gql__refund_tmp"], "source.shopify_source.shopify_graphql.order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"], "source.shopify_source.shopify_graphql.abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"], "source.shopify_source.shopify_graphql.collection_product": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"], "source.shopify_source.shopify_graphql.collection": ["model.shopify_source.stg_shopify_gql__collection_tmp"], "source.shopify_source.shopify_graphql.customer_tag": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"], "source.shopify_source.shopify_graphql.fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"], "source.shopify_source.shopify_graphql.inventory_item": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"], "source.shopify_source.shopify_graphql.inventory_level": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"], "source.shopify_source.shopify_graphql.inventory_quantity": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"], "source.shopify_source.shopify_graphql.location": ["model.shopify_source.stg_shopify_gql__location_tmp"], "source.shopify_source.shopify_graphql.metafield": ["model.shopify_source.stg_shopify_gql__metafield_tmp"], "source.shopify_source.shopify_graphql.order_note_attribute": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"], "source.shopify_source.shopify_graphql.order_shipping_line": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"], "source.shopify_source.shopify_graphql.order_shipping_tax_line": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"], "source.shopify_source.shopify_graphql.order_tag": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"], "source.shopify_source.shopify_graphql.media": ["model.shopify_source.stg_shopify_gql__media_tmp"], "source.shopify_source.shopify_graphql.media_image": ["model.shopify_source.stg_shopify_gql__media_image_tmp"], "source.shopify_source.shopify_graphql.product_media": ["model.shopify_source.stg_shopify_gql__product_media_tmp"], "source.shopify_source.shopify_graphql.product_variant_media": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"], "source.shopify_source.shopify_graphql.product_tag": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"], "source.shopify_source.shopify_graphql.shop": ["model.shopify_source.stg_shopify_gql__shop_tmp"], "source.shopify_source.shopify_graphql.tender_transaction": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"], "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "source.shopify_source.shopify_graphql.order_discount_code": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"], "source.shopify_source.shopify_graphql.fulfillment_event": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"], "source.shopify_source.shopify_graphql.tax_line": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"], "source.shopify_source.shopify_graphql.discount_allocation": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"], "source.shopify_source.shopify_graphql.discount_application": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"], "source.shopify_source.shopify_graphql.discount_code_app": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"], "source.shopify_source.shopify_graphql.discount_code_basic": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"], "source.shopify_source.shopify_graphql.discount_code_bxgy": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"], "source.shopify_source.shopify_graphql.discount_code_free_shipping": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"], "source.shopify_source.shopify_graphql.discount_redeem_code": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"], "source.shopify_source.shopify_graphql.fulfillment_tracking_info": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"], "source.shopify_source.shopify_graphql.customer_visit": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"], "source.shopify_source.shopify_graphql.fulfillment_order_line_item": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"], "source.shopify_source.shopify_graphql.customer_address": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}, "unit_tests": {}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v12.json", "dbt_version": "1.10.6", "generated_at": "2025-08-06T19:12:22.185492Z", "invocation_id": "a1a1c0f7-774a-452e-8815-3e67df4d0e48", "invocation_started_at": "2025-08-06T19:11:50.205643+00:00", "env": {}, "project_name": "shopify_integration_tests", "project_id": "c39719ba3d679fd569bed21921e72e32", "user_id": null, "send_anonymous_usage_stats": false, "adapter_type": "postgres", "quoting": {"database": true, "schema": true, "identifier": true, "column": null}}, "nodes": {"seed.shopify_integration_tests.shopify_gql_product_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_tag_data.csv", "original_file_path": "seeds/shopify_gql_product_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_tag_data"], "alias": "shopify_gql_product_tag_data", "checksum": {"name": "sha256", "checksum": "8c043c435f2de4a4004471419a272adaf066c1e9e36fa2e9de62a6562d4d2e26"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.5937836, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_event_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_event_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_event_data"], "alias": "shopify_gql_fulfillment_event_data", "checksum": {"name": "sha256", "checksum": "c8df472434961ad12566344da5a47483bd18c4b9cb7b5eafd44f96f284aaebea"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6012533, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_metafield_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_metafield_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_metafield_data.csv", "original_file_path": "seeds/shopify_gql_metafield_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_metafield_data", "fqn": ["shopify_integration_tests", "shopify_gql_metafield_data"], "alias": "shopify_gql_metafield_data", "checksum": {"name": "sha256", "checksum": "b698e66e6a1d23c772fe5d1c36943dd9e5be8609f08b7f0990b1c20417e3f4d1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6044488, "relation_name": "\"postgres\".\"public\".\"shopify_gql_metafield_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_basic_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_basic_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_basic_data.csv", "original_file_path": "seeds/shopify_discount_code_basic_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_basic_data"], "alias": "shopify_discount_code_basic_data", "checksum": {"name": "sha256", "checksum": "dc25a6ca420db34e1ce13e0749f1e65e949cef3a260c736e1eb6e53b7db15ace"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1754507513.6078064, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_order_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_discount_code_data.csv", "original_file_path": "seeds/shopify_order_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_order_discount_code_data"], "alias": "shopify_order_discount_code_data", "checksum": {"name": "sha256", "checksum": "f4e391a3f00ebb1f7444487e4577dc95e28c39745e40f6c0fcb1bd90562833f6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"order_id": "bigint", "amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float"}}, "created_at": 1754507513.6113634, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_data": {"database": "postgres", "schema": "public", "name": "shopify_order_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_data.csv", "original_file_path": "seeds/shopify_order_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_data", "fqn": ["shopify_integration_tests", "shopify_order_data"], "alias": "shopify_order_data", "checksum": {"name": "sha256", "checksum": "274aec2c5b1f7cd936359683f33c830d2ef7067e6e445469df0c3b460ad9d56c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "bigint", "customer_id": "bigint", "location_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.6146753, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_basic_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_basic_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_basic_data"], "alias": "shopify_gql_discount_code_basic_data", "checksum": {"name": "sha256", "checksum": "d42fbb32c0fcf3c168a45013a7a5c9b9e9c8871e7b2079d5973741f88543c079"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"total_sales_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"total_sales_amount": "float"}}, "created_at": 1754507513.617918, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_line_data.csv", "original_file_path": "seeds/shopify_gql_order_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_line_data"], "alias": "shopify_gql_order_line_data", "checksum": {"name": "sha256", "checksum": "c4ef70509cf12a7e963b4427bd4ecaf67fa4597191c62bd6da8844e0c448a3ef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6209915, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_tag_data.csv", "original_file_path": "seeds/shopify_order_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_tag_data"], "alias": "shopify_order_tag_data", "checksum": {"name": "sha256", "checksum": "c448adfe655f83dcaf6370ad2ef36f0ad6991c1b6d001e3aab317fd17359b129"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6241226, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_tracking_info_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_tracking_info_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_tracking_info_data"], "alias": "shopify_gql_fulfillment_tracking_info_data", "checksum": {"name": "sha256", "checksum": "0ce5041eae13306e77b2f03c364a8e5767be39e68e711fbb1b76709e51191b12"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.627157, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_redeem_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_redeem_code_data.csv", "original_file_path": "seeds/shopify_discount_redeem_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_redeem_code_data", "fqn": ["shopify_integration_tests", "shopify_discount_redeem_code_data"], "alias": "shopify_discount_redeem_code_data", "checksum": {"name": "sha256", "checksum": "801a010544f98b358371e38d9af1023f4e91747d6f4e488c5a65358794bc3ab5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "discount_id": "bigint", "created_by_id": "bigint", "async_usage_count": "integer", "code": "varchar", "discount_type": "varchar", "created_by_description": "varchar", "created_by_title": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "created_by_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "async_usage_count": "integer", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.6303473, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_application_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_application_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_application_data.csv", "original_file_path": "seeds/shopify_discount_application_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data", "fqn": ["shopify_integration_tests", "shopify_discount_application_data"], "alias": "shopify_discount_application_data", "checksum": {"name": "sha256", "checksum": "9d678050ac7442f36d8aa9a5b0b013aeea7ab64a785a564a31aa41fa6a6ee70a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"allocation_method": "varchar", "code": "varchar", "description": "varchar", "index": "integer", "order_id": "bigint", "target_selection": "varchar", "target_type": "varchar", "title": "varchar", "type": "varchar", "value": "float", "value_type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"allocation_method": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "index": "integer", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "target_selection": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "target_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "value": "float", "value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.6337478, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_data.csv", "original_file_path": "seeds/shopify_gql_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_data"], "alias": "shopify_gql_product_data", "checksum": {"name": "sha256", "checksum": "5c3d5008de7c87b129567ced494177bc809a49587033e462e8e099dfe3c02662"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6370761, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_address_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_address_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_address_data.csv", "original_file_path": "seeds/shopify_gql_customer_address_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_address_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_address_data"], "alias": "shopify_gql_customer_address_data", "checksum": {"name": "sha256", "checksum": "55643b705646db36fbaeb65e2786f9981acc20dbcd95996c0ee31afacef123b6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.640213, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_free_shipping_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_free_shipping_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_free_shipping_data"], "alias": "shopify_gql_discount_code_free_shipping_data", "checksum": {"name": "sha256", "checksum": "0d9313224e67ae163a3b90d05629775d330a68deef8c6826316ffa88d75254a2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6432855, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_refund_data.csv", "original_file_path": "seeds/shopify_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_refund_data", "fqn": ["shopify_integration_tests", "shopify_refund_data"], "alias": "shopify_refund_data", "checksum": {"name": "sha256", "checksum": "8d8bc98681d9b0d57a43af3fc99ff13cc42401d97e49bba41c1fafb28f858d23"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.6463594, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_product_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_product_data.csv", "original_file_path": "seeds/shopify_collection_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data", "fqn": ["shopify_integration_tests", "shopify_collection_product_data"], "alias": "shopify_collection_product_data", "checksum": {"name": "sha256", "checksum": "f0829ff9b0c3116846c83d4cb2dfae170594e230d3586b8abae97a31d4a51c55"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.649412, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_abandoned_checkout_discount_code_data.csv", "original_file_path": "seeds/shopify_gql_abandoned_checkout_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_abandoned_checkout_discount_code_data"], "alias": "shopify_gql_abandoned_checkout_discount_code_data", "checksum": {"name": "sha256", "checksum": "90c5089352dfe1ea90e277813ae7824053992fa838896d4d55130c1ca0e51b82"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.652484, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_shipping_tax_line_data.csv", "original_file_path": "seeds/shopify_gql_order_shipping_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_shipping_tax_line_data"], "alias": "shopify_gql_order_shipping_tax_line_data", "checksum": {"name": "sha256", "checksum": "4c0d33725e1979f861188e46f54626db2fa5d1dc12a23b6dec4d67b2617e8493"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6554754, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_data.csv", "original_file_path": "seeds/shopify_customer_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_data", "fqn": ["shopify_integration_tests", "shopify_customer_data"], "alias": "shopify_customer_data", "checksum": {"name": "sha256", "checksum": "72ba9c7141e483ec3a8715cb27d57c8e36f8ca293b0a507676391c8804c717f2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint", "default_address_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "default_address_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.6585896, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_media_data.csv", "original_file_path": "seeds/shopify_product_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_media_data", "fqn": ["shopify_integration_tests", "shopify_product_media_data"], "alias": "shopify_product_media_data", "checksum": {"name": "sha256", "checksum": "b38d774b588961b4cd6e5b8cdb9c0319dd694bcdd474a54a68e062b3cf488d44"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.6617794, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_tax_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_tax_line_data"], "alias": "shopify_order_shipping_tax_line_data", "checksum": {"name": "sha256", "checksum": "279d995731cd3b85aa948f6721ada5f455324347f7ac3211a98bf2f3bb72f899"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float"}}, "created_at": 1754507513.6650066, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_image_data": {"database": "postgres", "schema": "public", "name": "shopify_media_image_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_image_data.csv", "original_file_path": "seeds/shopify_media_image_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_image_data", "fqn": ["shopify_integration_tests", "shopify_media_image_data"], "alias": "shopify_media_image_data", "checksum": {"name": "sha256", "checksum": "98621ab1fd6334df5ffa045d9642644d5e465d8684cd635dd5bf8c157f964966"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"media_id": "bigint", "image_id": "bigint", "image_alt_text": "varchar", "image_height": "integer", "image_url": "varchar", "image_width": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_alt_text": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_height": "integer", "image_url": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_width": "integer"}}, "created_at": 1754507513.6682227, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_allocation_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_allocation_data.csv", "original_file_path": "seeds/shopify_gql_discount_allocation_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_allocation_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_allocation_data"], "alias": "shopify_gql_discount_allocation_data", "checksum": {"name": "sha256", "checksum": "66070d7edfd03f95cce45261aff8868c52ac272d23457e8b00d31f89bee13bb2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.671323, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_data": {"database": "postgres", "schema": "public", "name": "shopify_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_data.csv", "original_file_path": "seeds/shopify_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_data", "fqn": ["shopify_integration_tests", "shopify_product_data"], "alias": "shopify_product_data", "checksum": {"name": "sha256", "checksum": "e3e37227f60cd1960dc29421bf94785a59c058e4b6a4cd01262376f34947e320"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.6744256, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_refund_data.csv", "original_file_path": "seeds/shopify_order_line_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data", "fqn": ["shopify_integration_tests", "shopify_order_line_refund_data"], "alias": "shopify_order_line_refund_data", "checksum": {"name": "sha256", "checksum": "5d28c17ac30b49f32cb92c5ade7643c3322d0a18e38094140cf06ace9fc85e72"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "id": "bigint", "location_id": "bigint", "refund_id": "bigint", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.6776018, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_item_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_item_data.csv", "original_file_path": "seeds/shopify_inventory_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data", "fqn": ["shopify_integration_tests", "shopify_inventory_item_data"], "alias": "shopify_inventory_item_data", "checksum": {"name": "sha256", "checksum": "11076fbaaf5cb0b1a1cdfdcb8520fc3c6049ef627ff305251d40f1e562dfcd52"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "measurement_id": "bigint", "legacy_resource_id": "bigint", "updated_at": "timestamp", "created_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "measurement_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "updated_at": "timestamp", "created_at": "timestamp"}}, "created_at": 1754507513.6808896, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_data.csv", "original_file_path": "seeds/shopify_gql_customer_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_data"], "alias": "shopify_gql_customer_data", "checksum": {"name": "sha256", "checksum": "ccd33f05c9942cd47dc7bf8abef925334aa740a60181b9ce13657323fe63267d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.6840317, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_visit_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_visit_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_visit_data.csv", "original_file_path": "seeds/shopify_gql_customer_visit_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_visit_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_visit_data"], "alias": "shopify_gql_customer_visit_data", "checksum": {"name": "sha256", "checksum": "33bcb50366b3a771c4a408cf198e0ba0ed4308af90d0d9066fcf5b8a0cb74ce6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6870751, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_abandoned_checkout_data.csv", "original_file_path": "seeds/shopify_gql_abandoned_checkout_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data", "fqn": ["shopify_integration_tests", "shopify_gql_abandoned_checkout_data"], "alias": "shopify_gql_abandoned_checkout_data", "checksum": {"name": "sha256", "checksum": "f3999e4554d821e95b65fc49d14ab501151f3026c8936871197cabfbac47e25a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar", "shipping_address_phone": "varchar", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_discount_set_shop_amount": "float", "total_discount_set_pres_amount": "float", "total_duties_set_shop_amount": "float", "total_duties_set_pres_amount": "float", "total_line_items_price_set_shop_amount": "float", "total_line_items_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_tax_set_pres_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_discount_set_shop_amount": "float", "total_discount_set_pres_amount": "float", "total_duties_set_shop_amount": "float", "total_duties_set_pres_amount": "float", "total_line_items_price_set_shop_amount": "float", "total_line_items_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_tax_set_pres_amount": "float"}}, "created_at": 1754507513.6902804, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_quantity_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_quantity_data.csv", "original_file_path": "seeds/shopify_inventory_quantity_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data", "fqn": ["shopify_integration_tests", "shopify_inventory_quantity_data"], "alias": "shopify_inventory_quantity_data", "checksum": {"name": "sha256", "checksum": "8fa9f26df5501b6f7a065d74a2da5bf70329b7197e8c11139cda950874243d1c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "inventory_level_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_level_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.6936226, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_variant_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_variant_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_variant_data.csv", "original_file_path": "seeds/shopify_gql_product_variant_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_variant_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_variant_data"], "alias": "shopify_gql_product_variant_data", "checksum": {"name": "sha256", "checksum": "fba49f77a3f4d25f1d1ab0cb5fbf89e4309fffa50c45a5c2b51eccd816888748"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"compare_at_price": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"compare_at_price": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.6968105, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_bxgy_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_bxgy_data.csv", "original_file_path": "seeds/shopify_discount_code_bxgy_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_bxgy_data"], "alias": "shopify_discount_code_bxgy_data", "checksum": {"name": "sha256", "checksum": "676970b98658b2da21aec24691e589c9d1bd42703e266864d7af1d310f57fc53"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "varchar", "summary": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "summary": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}}, "created_at": 1754507513.700196, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_data.csv", "original_file_path": "seeds/shopify_order_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_data", "fqn": ["shopify_integration_tests", "shopify_order_line_data"], "alias": "shopify_order_line_data", "checksum": {"name": "sha256", "checksum": "a4e65b3c0ee73ff8755aec89198632427baa2dbcc39d2e97659a8a976a92b8cd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "order_id": "bigint", "id": "bigint", "product_id": "bigint", "variant_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.70349, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_media_data.csv", "original_file_path": "seeds/shopify_gql_product_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_media_data"], "alias": "shopify_gql_product_media_data", "checksum": {"name": "sha256", "checksum": "9b99a3ca51b4ecd63cc1d2a8a83a5a96dbf52e878990055a8e3a03b89666272d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7065332, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_quantity_data.csv", "original_file_path": "seeds/shopify_gql_inventory_quantity_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_quantity_data"], "alias": "shopify_gql_inventory_quantity_data", "checksum": {"name": "sha256", "checksum": "aa5cdc0d5565496916a0f61055b029546d99b6aab2a2433c11f936abeeafcb1b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7095673, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_shipping_line_data.csv", "original_file_path": "seeds/shopify_gql_order_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_shipping_line_data"], "alias": "shopify_gql_order_shipping_line_data", "checksum": {"name": "sha256", "checksum": "5e77fbe4d6a87d50fcee326d856b97033aa850a6bc3edab4b70064c89498c01b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.7126439, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_free_shipping_data.csv", "original_file_path": "seeds/shopify_discount_code_free_shipping_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_free_shipping_data"], "alias": "shopify_discount_code_free_shipping_data", "checksum": {"name": "sha256", "checksum": "55e37730e02503078ff03a624def743c4413c5feda1bdcdd38cc7d0dbe47e2bd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1754507513.7160635, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_tax_line_data.csv", "original_file_path": "seeds/shopify_gql_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_tax_line_data"], "alias": "shopify_gql_tax_line_data", "checksum": {"name": "sha256", "checksum": "08f6ab93144ae307e2e9f808278e5e6f13b1c76a609df067a7b3e18c52623bc2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7192724, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_variant_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_variant_media_data.csv", "original_file_path": "seeds/shopify_gql_product_variant_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_variant_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_variant_media_data"], "alias": "shopify_gql_product_variant_media_data", "checksum": {"name": "sha256", "checksum": "42fdae13aac1a3868e29e1586fa30cb8c01f5265ecb6040353c147ede2a30f9e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7223346, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_tag_data.csv", "original_file_path": "seeds/shopify_gql_order_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_tag_data"], "alias": "shopify_gql_order_tag_data", "checksum": {"name": "sha256", "checksum": "6fb78d3ccb69ab26e0ab8d781865dece254bfa951b1e1e57efe800e4c3c9aa9d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7253246, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_order_line_item_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_order_line_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_order_line_item_data"], "alias": "shopify_gql_fulfillment_order_line_item_data", "checksum": {"name": "sha256", "checksum": "038512c381c821457b427a8a6d19049e6eb9302f5acfaaebdf56896f31aa0c01"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7283018, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_product_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_product_data.csv", "original_file_path": "seeds/shopify_gql_collection_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_product_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_product_data"], "alias": "shopify_gql_collection_product_data", "checksum": {"name": "sha256", "checksum": "97528489feaf3fe056bfad2e1d5704c7a27d9fd0e90253b3fd64eceecfe31a7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7312846, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_data"], "alias": "shopify_gql_fulfillment_data", "checksum": {"name": "sha256", "checksum": "707d77c094f00fb4c21d1968550d66a131bbfbec48addd7d7137936b00aca500"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7342517, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_data.csv", "original_file_path": "seeds/shopify_gql_order_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_data"], "alias": "shopify_gql_order_data", "checksum": {"name": "sha256", "checksum": "5f2c9bc0a1d81234edf8945c72a99425ebe0450aad71cf418ca24b12c0ab3fd3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar", "shipping_address_phone": "varchar", "total_shipping_price_set_pres_amount": "float", "total_shipping_price_set_shop_amount": "float", "total_tax_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_discounts_set_pres_amount": "float", "total_discounts_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_tip_received_set_pres_amount": "float", "total_tip_received_set_shop_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_shipping_price_set_pres_amount": "float", "total_shipping_price_set_shop_amount": "float", "total_tax_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_discounts_set_pres_amount": "float", "total_discounts_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_tip_received_set_pres_amount": "float", "total_tip_received_set_shop_amount": "float"}}, "created_at": 1754507513.7380316, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_tender_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_tender_transaction_data.csv", "original_file_path": "seeds/shopify_gql_tender_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_tender_transaction_data", "fqn": ["shopify_integration_tests", "shopify_gql_tender_transaction_data"], "alias": "shopify_gql_tender_transaction_data", "checksum": {"name": "sha256", "checksum": "6e660fced8b377b4a7c7a3ea5c4cb1e8dff259e0b3596bfff56868873a7348dc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.741232, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_refund_data.csv", "original_file_path": "seeds/shopify_gql_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_refund_data", "fqn": ["shopify_integration_tests", "shopify_gql_refund_data"], "alias": "shopify_gql_refund_data", "checksum": {"name": "sha256", "checksum": "f8767945248aa31df8667d9a302c98da70ecfa3200f09ae9a8a08e56f648b1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.744268, "relation_name": "\"postgres\".\"public\".\"shopify_gql_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"database": "postgres", "schema": "public", "name": "shopify_order_adjustment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_adjustment_data.csv", "original_file_path": "seeds/shopify_order_adjustment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data", "fqn": ["shopify_integration_tests", "shopify_order_adjustment_data"], "alias": "shopify_order_adjustment_data", "checksum": {"name": "sha256", "checksum": "48ce96540f19450088c661fd48bd8f6d58bb4ca13a1f048880e9984be367172e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.7473476, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_product_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_tag_data.csv", "original_file_path": "seeds/shopify_product_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data", "fqn": ["shopify_integration_tests", "shopify_product_tag_data"], "alias": "shopify_product_tag_data", "checksum": {"name": "sha256", "checksum": "10203c8ee30c2d400a7f5126732f6c17985017df02cd4eceff90ef483e1c0729"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8089805, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_shop_data": {"database": "postgres", "schema": "public", "name": "shopify_shop_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_shop_data.csv", "original_file_path": "seeds/shopify_shop_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_shop_data", "fqn": ["shopify_integration_tests", "shopify_shop_data"], "alias": "shopify_shop_data", "checksum": {"name": "sha256", "checksum": "1029ea325d95c96dbdf0c52a9fd8ef272516b15f99f834a507bff27eda689bba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}}, "created_at": 1754507513.8124022, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_line_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_line_refund_data.csv", "original_file_path": "seeds/shopify_gql_order_line_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_refund_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_line_refund_data"], "alias": "shopify_gql_order_line_refund_data", "checksum": {"name": "sha256", "checksum": "f42ec092931b7b6629fad2c44ca9d9cfa5b655980dd1140d69d8b687178b8d32"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"quantity": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"quantity": "float"}}, "created_at": 1754507513.815558, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_adjustment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_adjustment_data.csv", "original_file_path": "seeds/shopify_gql_order_adjustment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_adjustment_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_adjustment_data"], "alias": "shopify_gql_order_adjustment_data", "checksum": {"name": "sha256", "checksum": "5477a81fe785b813c63156e1f04d73748f431cd6f247ad0f5ac75785a9cc1325"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8186002, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_rule_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_rule_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_rule_data.csv", "original_file_path": "seeds/shopify_gql_collection_rule_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_rule_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_rule_data"], "alias": "shopify_gql_collection_rule_data", "checksum": {"name": "sha256", "checksum": "fc43b048e1c1c4e2dc67460f2d7ad884ccc7a3f02ba7d749a766459199c1a6aa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8216906, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_rule_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_data.csv", "original_file_path": "seeds/shopify_fulfillment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_data"], "alias": "shopify_fulfillment_data", "checksum": {"name": "sha256", "checksum": "36993dd7ab6cd0951d3229c9d72237f4115292350e2659bdb717866f8fe8ebd8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8246868, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_data.csv", "original_file_path": "seeds/shopify_collection_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_data", "fqn": ["shopify_integration_tests", "shopify_collection_data"], "alias": "shopify_collection_data", "checksum": {"name": "sha256", "checksum": "27cb0f0a37833f86bc7d0eb153acacdca987a69caf07dccdea4a072895f0a518"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754507513.827778, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"database": "postgres", "schema": "public", "name": "shopify_order_note_attribute_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_note_attribute_data.csv", "original_file_path": "seeds/shopify_order_note_attribute_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data", "fqn": ["shopify_integration_tests", "shopify_order_note_attribute_data"], "alias": "shopify_order_note_attribute_data", "checksum": {"name": "sha256", "checksum": "9076f469c15ad5e18c4365039836b6739c2d7fc79ed987564ab8c1849994309c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8308296, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_discount_code_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_discount_code_data"], "alias": "shopify_abandoned_checkout_discount_code_data", "checksum": {"name": "sha256", "checksum": "f60365d56b94e348893476184122a98c6a4b939de1c7de1f7f3684e2ba344e48"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"checkout_id": "bigint", "discount_id": "bigint", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "varchar", "type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"checkout_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.8340137, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_event_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_event_data.csv", "original_file_path": "seeds/shopify_fulfillment_event_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_event_data"], "alias": "shopify_fulfillment_event_data", "checksum": {"name": "sha256", "checksum": "ae538cd22df11081f1f4d2b6970c945d432f92af0e96fac2e10e1e09d886abef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8371356, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_media_data.csv", "original_file_path": "seeds/shopify_gql_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_media_data"], "alias": "shopify_gql_media_data", "checksum": {"name": "sha256", "checksum": "ffa3f564a810c9230c529066f5be55051045d32e14bfee4c04479ec3e5140a3c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8400967, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_bxgy_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_bxgy_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_bxgy_data"], "alias": "shopify_gql_discount_code_bxgy_data", "checksum": {"name": "sha256", "checksum": "93dd6da3ac1575fe61eed846dd3e2db2d75f16237571cfd4a4647f33ec612a28"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8431232, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_line_data"], "alias": "shopify_order_shipping_line_data", "checksum": {"name": "sha256", "checksum": "7a83a6e1121c088d6cd6ab3a944c683bfe4ac72ac440fcf97d55c3ca709b88a8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"discounted_price": "float", "price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"discounted_price": "float", "price": "float"}}, "created_at": 1754507513.8462088, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_item_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_item_data.csv", "original_file_path": "seeds/shopify_gql_inventory_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_item_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_item_data"], "alias": "shopify_gql_inventory_item_data", "checksum": {"name": "sha256", "checksum": "cb50caac3e13ddc3c4011ecbd1929f2c6876a6010e0e055ce0d32891a2caa6f0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.849371, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_data"], "alias": "shopify_abandoned_checkout_data", "checksum": {"name": "sha256", "checksum": "1fc66dc1ee0e84111cc6c3de1b49c3e172d477eadda206ec80095dbae720a7b4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"total_line_items_price": "float", "billing_address_phone": "varchar", "shipping_address_phone": "varchar", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"total_line_items_price": "float", "billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754507513.852583, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_location_data": {"database": "postgres", "schema": "public", "name": "shopify_location_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_location_data.csv", "original_file_path": "seeds/shopify_location_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_location_data", "fqn": ["shopify_integration_tests", "shopify_location_data"], "alias": "shopify_location_data", "checksum": {"name": "sha256", "checksum": "781bb070fbf96fd7e01d4229ccbac91f77bcd52726ffea2de9fa36abe6804b38"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8556814, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_location_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_location_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_location_data.csv", "original_file_path": "seeds/shopify_gql_location_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_location_data", "fqn": ["shopify_integration_tests", "shopify_gql_location_data"], "alias": "shopify_gql_location_data", "checksum": {"name": "sha256", "checksum": "0e3fcbfcccb24bff1a397108c5284f013e54846463ce693db515c9e843d65c82"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.8587308, "relation_name": "\"postgres\".\"public\".\"shopify_gql_location_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_data.csv", "original_file_path": "seeds/shopify_product_variant_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_data"], "alias": "shopify_product_variant_data", "checksum": {"name": "sha256", "checksum": "2c7c29665cf22fea389ed017edcd174d97384f19f5fa65e1e70073b6e29de1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "product_id": "bigint", "inventory_item_id": "bigint", "legacy_resource_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.8619933, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_shop_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_shop_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_shop_data.csv", "original_file_path": "seeds/shopify_gql_shop_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_shop_data", "fqn": ["shopify_integration_tests", "shopify_gql_shop_data"], "alias": "shopify_gql_shop_data", "checksum": {"name": "sha256", "checksum": "e691117d38fb0c6a9ad757f7adc677a8a3454f881d6c9f7d3fd625611addb1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.8651474, "relation_name": "\"postgres\".\"public\".\"shopify_gql_shop_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_tag_data.csv", "original_file_path": "seeds/shopify_gql_customer_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_tag_data"], "alias": "shopify_gql_customer_tag_data", "checksum": {"name": "sha256", "checksum": "b9990af8b8157368df2e7cd54ad712620ce79cfb8bcddbce8ceac25314d1f98f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8682191, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_tag_data.csv", "original_file_path": "seeds/shopify_customer_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data", "fqn": ["shopify_integration_tests", "shopify_customer_tag_data"], "alias": "shopify_customer_tag_data", "checksum": {"name": "sha256", "checksum": "27dad4d9a29bfd94903c156e01cdee4c0b33cfb2c5d88af98b89c19287596e5c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.8712752, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_note_attribute_data.csv", "original_file_path": "seeds/shopify_gql_order_note_attribute_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_note_attribute_data"], "alias": "shopify_gql_order_note_attribute_data", "checksum": {"name": "sha256", "checksum": "fdc162afb1aaf6ccc432a5df8eb1d42ebe945151101a43edf6176d98c3cd4ec6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8743055, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_metafield_data": {"database": "postgres", "schema": "public", "name": "shopify_metafield_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_metafield_data.csv", "original_file_path": "seeds/shopify_metafield_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_metafield_data", "fqn": ["shopify_integration_tests", "shopify_metafield_data"], "alias": "shopify_metafield_data", "checksum": {"name": "sha256", "checksum": "f9586af820e5f4c1d04e71e5a8fc699080ecb101b85735abe9724a8ea9bf0d97"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"value_type": "varchar", "type": "varchar", "id": "bigint", "owner_id": "bigint", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "owner_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754507513.8775048, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_level_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_level_data.csv", "original_file_path": "seeds/shopify_inventory_level_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data", "fqn": ["shopify_integration_tests", "shopify_inventory_level_data"], "alias": "shopify_inventory_level_data", "checksum": {"name": "sha256", "checksum": "d8bde61ad5a46b099f9e615464abf20677a00869ba308860ce0c80e59ebf40bb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "location_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.8807507, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_transaction_data.csv", "original_file_path": "seeds/shopify_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_transaction_data", "fqn": ["shopify_integration_tests", "shopify_transaction_data"], "alias": "shopify_transaction_data", "checksum": {"name": "sha256", "checksum": "def7b7fc64e42148b900dcd1f7327b470e5d3b0ed8e73f263e46a715ecb09199"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.8839595, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_data": {"database": "postgres", "schema": "public", "name": "shopify_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_data.csv", "original_file_path": "seeds/shopify_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_data", "fqn": ["shopify_integration_tests", "shopify_media_data"], "alias": "shopify_media_data", "checksum": {"name": "sha256", "checksum": "7c6234841dd8ff01ec7cd72fb11d8f933c4b12efbf8470324f0671f6afb6e266"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "status": "varchar", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754507513.8871381, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_redeem_code_data.csv", "original_file_path": "seeds/shopify_gql_discount_redeem_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_redeem_code_data"], "alias": "shopify_gql_discount_redeem_code_data", "checksum": {"name": "sha256", "checksum": "0b1fd8ebdc11adc10b729eb22fe80d4e8f69d29dbc42114ea54d5977fdb6d638"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8902948, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_data.csv", "original_file_path": "seeds/shopify_gql_collection_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_data"], "alias": "shopify_gql_collection_data", "checksum": {"name": "sha256", "checksum": "29e0276fbf7a043b812e101d81438672484cca31a69ba9c4ce2df96dc215a3b2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8932774, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_application_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_application_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_application_data.csv", "original_file_path": "seeds/shopify_gql_discount_application_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_application_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_application_data"], "alias": "shopify_gql_discount_application_data", "checksum": {"name": "sha256", "checksum": "02bf15863aaf29b404a84ab214ff73121e4ee411f2e6fecf3f757e179b6c9c2e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8962543, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_url_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_url_tag_data.csv", "original_file_path": "seeds/shopify_order_url_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_url_tag_data"], "alias": "shopify_order_url_tag_data", "checksum": {"name": "sha256", "checksum": "18d23ae4cb9bb569772db2a5622ab7f84281f3391b6c9295973a8fed3d887567"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8992527, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_app_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_app_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_app_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_app_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_app_data"], "alias": "shopify_gql_discount_code_app_data", "checksum": {"name": "sha256", "checksum": "b6ea6c09ffbae0eedd94577b2ec3a6074bff0d33b6338d895111b7f9521ce049"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.9022295, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_allocation_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_allocation_data.csv", "original_file_path": "seeds/shopify_discount_allocation_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_allocation_data", "fqn": ["shopify_integration_tests", "shopify_discount_allocation_data"], "alias": "shopify_discount_allocation_data", "checksum": {"name": "sha256", "checksum": "22cd7acd65491fcbbd2d2de60dc69b993fa1ac45d90b41dee7976905d6418fcf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "varchar", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "varchar", "discount_application_index": "integer", "index": "integer", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_application_index": "integer", "index": "integer", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.905444, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_discount_code_data.csv", "original_file_path": "seeds/shopify_gql_order_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_discount_code_data"], "alias": "shopify_gql_order_discount_code_data", "checksum": {"name": "sha256", "checksum": "aafb732b582b0f19c9f004febfb986cf33a2d090c53d87dc5d9875584d1c9643"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.9085336, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_transaction_data.csv", "original_file_path": "seeds/shopify_gql_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_transaction_data", "fqn": ["shopify_integration_tests", "shopify_gql_transaction_data"], "alias": "shopify_gql_transaction_data", "checksum": {"name": "sha256", "checksum": "6daf1a707db559a969488734847d9996d22fc0c1eb96d91c6ae621e6fa0c9a53"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.9114907, "relation_name": "\"postgres\".\"public\".\"shopify_gql_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_product": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_product", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_product.csv", "original_file_path": "seeds/shopify_gql_collection_product.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_product", "fqn": ["shopify_integration_tests", "shopify_gql_collection_product"], "alias": "shopify_gql_collection_product", "checksum": {"name": "sha256", "checksum": "97528489feaf3fe056bfad2e1d5704c7a27d9fd0e90253b3fd64eceecfe31a7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.9144666, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_tender_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tender_transaction_data.csv", "original_file_path": "seeds/shopify_tender_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tender_transaction_data", "fqn": ["shopify_integration_tests", "shopify_tender_transaction_data"], "alias": "shopify_tender_transaction_data", "checksum": {"name": "sha256", "checksum": "7d1b7ebc547f9068b258e49431a3955f9143b99afa151664aa26a2ad9c5b479c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.917525, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tax_line_data.csv", "original_file_path": "seeds/shopify_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_tax_line_data"], "alias": "shopify_tax_line_data", "checksum": {"name": "sha256", "checksum": "af3615f675a22513590ef6a8abcce714b286f06c7532e650a56787c6afbd36de"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float", "rate": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float", "rate": "float"}}, "created_at": 1754507513.9205904, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_level_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_level_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_level_data.csv", "original_file_path": "seeds/shopify_gql_inventory_level_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_level_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_level_data"], "alias": "shopify_gql_inventory_level_data", "checksum": {"name": "sha256", "checksum": "aceaf50aec7f3b9a2fe70cc7a95c7c5a9206d11c10469987fdb88503051a0a3f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.9236326, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_shipping_line_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_shipping_line_data"], "alias": "shopify_abandoned_checkout_shipping_line_data", "checksum": {"name": "sha256", "checksum": "9b1e873b952f85626352f2ca85b67b7a14e54e7edd01467951653fc2716023d5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"markup": "varchar", "price": "float", "original_shop_markup": "varchar", "original_shop_price": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "price": "float", "original_shop_markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "original_shop_price": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.926742, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_app_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_app_data.csv", "original_file_path": "seeds/shopify_discount_code_app_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_app_data"], "alias": "shopify_discount_code_app_data", "checksum": {"name": "sha256", "checksum": "079a9204224ded648d6e15b794bf77034e41f319b72801fcfee0f5b1c9e37d77"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1754507513.9301372, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_media_data.csv", "original_file_path": "seeds/shopify_product_variant_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_media_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_media_data"], "alias": "shopify_product_variant_media_data", "checksum": {"name": "sha256", "checksum": "ffa08a9130b2aa66803955797f46a610fc32abcdb404635c6c1dc3a8b289e48b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_variant_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.9335012, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_media_image_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_media_image_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_media_image_data.csv", "original_file_path": "seeds/shopify_gql_media_image_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_media_image_data", "fqn": ["shopify_integration_tests", "shopify_gql_media_image_data"], "alias": "shopify_gql_media_image_data", "checksum": {"name": "sha256", "checksum": "6581609f609de50cc0b430e64d53a728502cdaea962a90bffd1e5f72079cfc47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.9365768, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_image_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "model.shopify.shopify__calendar": {"database": "postgres", "schema": "public_shopify", "name": "shopify__calendar", "resource_type": "model", "package_name": "shopify", "path": "utils/shopify__calendar.sql", "original_file_path": "models/utils/shopify__calendar.sql", "unique_id": "model.shopify.shopify__calendar", "fqn": ["shopify", "utils", "shopify__calendar"], "alias": "shopify__calendar", "checksum": {"name": "sha256", "checksum": "5295fe06c949deb345450af0ad6b0335b6edc25b2e883a4f2452ae276a3e85f4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1754507514.1596346, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__calendar\"", "raw_code": "{% set start_date = var('shopify__calendar_start_date', '2019-01-01') %}\n\n{{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date=\"cast('\" ~ start_date ~ \"' as date)\",\n end_date=\"current_date\"\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.date_spine"], "nodes": []}, "compiled_path": "target/compiled/shopify/models/utils/shopify__calendar.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 2409\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2019-01-01' as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= current_date\n\n)\n\nselect * from filtered\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_cohorts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_cohorts.sql", "original_file_path": "models/rest/shopify__customer_cohorts.sql", "unique_id": "model.shopify.shopify__customer_cohorts", "fqn": ["shopify", "rest", "shopify__customer_cohorts"], "alias": "shopify__customer_cohorts", "checksum": {"name": "sha256", "checksum": "8b92c597e275f6464fbf1375ffb22714ad640588e7f163bb322202ef25f70304"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "created_at": 1754507519.1880713, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == 'rest',\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'customer_id'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customers\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast(date_trunc('month', first_order_timestamp) as date) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n customer_id\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify__customer_email_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_email_cohorts.sql", "original_file_path": "models/rest/shopify__customer_email_cohorts.sql", "unique_id": "model.shopify.shopify__customer_email_cohorts", "fqn": ["shopify", "rest", "shopify__customer_email_cohorts"], "alias": "shopify__customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "3c60f6ffa19bb9a0e60b9b3a02e5c5a3a5baa560bcfa85b39e38194b2bae552a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's (on the EMAIL grain) performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "created_at": 1754507519.1893647, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == 'rest',\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'email'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customer_emails') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customer_emails", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_email_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customer_emails\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n email\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.email as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify__inventory_levels": {"database": "postgres", "schema": "public_shopify", "name": "shopify__inventory_levels", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__inventory_levels.sql", "original_file_path": "models/rest/shopify__inventory_levels.sql", "unique_id": "model.shopify.shopify__inventory_levels", "fqn": ["shopify", "rest", "shopify__inventory_levels"], "alias": "shopify__inventory_levels", "checksum": {"name": "sha256", "checksum": "002b6af06d7fddeab16ac942f625a60d1d40315396b4f4a5c1013ac3febbbb93"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of inventory items (which have a 1:1 relationship with product variants) and locations. \nInventory Level = Inventory item @ a Location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_item_deleted": {"name": "is_inventory_item_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "(DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_created_at": {"name": "inventory_item_created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_updated_at": {"name": "inventory_item_updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_location_deleted": {"name": "is_location_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_location_active": {"name": "is_location_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_created_at": {"name": "location_created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy_location": {"name": "is_legacy_location", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_name": {"name": "location_name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_updated_at": {"name": "location_updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_media_id": {"name": "variant_media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_variant_taxable": {"name": "is_variant_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_orders": {"name": "count_distinct_orders", "description": "The number of distinct orders placed from this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customers": {"name": "count_distinct_customers", "description": "The number of distinct customers (based on customer_id) that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customer_emails": {"name": "count_distinct_customer_emails", "description": "The number of distinct customer emails that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timetamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "The timestamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_refunds": {"name": "subtotal_sold_refunds", "description": "The monetary amount (in shop currency) of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_refunds": {"name": "quantity_sold_refunds", "description": "The quantity of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_subtotal_sold": {"name": "net_subtotal_sold", "description": "Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_quantity_sold": {"name": "net_quantity_sold", "description": "Net quantity sold from this inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_pending": {"name": "count_fulfillment_pending", "description": "Count of currently pending distinct fulfillments for this inventory level. \"Pending\" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_open": {"name": "count_fulfillment_open", "description": "Count of currently open distinct fulfillments for this inventory level. \"Open\" = The fulfillment has been acknowledged by the service and is in processing.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_success": {"name": "count_fulfillment_success", "description": "Count of successful distinct fulfillments for this inventory level. \"Success\" = The fulfillment was successful.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_cancelled": {"name": "count_fulfillment_cancelled", "description": "Count of cancelled distinct fulfillments for this inventory level. \"Cancelled\" = The fulfillment was cancelled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_error": {"name": "count_fulfillment_error", "description": "Count of distinct fulfillments for this inventory level that encountered an error. \"Error\" = There was an error with the fulfillment request.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of distinct fulfillments for this inventory level that failed. \"Failure\" = The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "available_quantity": {"name": "available_quantity", "description": "The available quantity that a merchant can sell, determined by coalescing the `quantity` where inventory_state_name = 'available' from `stg_shopify__inventory_quantity`and `available_quantity` from the deprecated `stg_shopify__inventory_level`. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "incoming_quantity": {"name": "incoming_quantity", "description": "The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "on_hand_quantity": {"name": "on_hand_quantity", "description": "The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "committed_quantity": {"name": "committed_quantity", "description": "The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reserved_quantity": {"name": "reserved_quantity", "description": "The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "damaged_quantity": {"name": "damaged_quantity", "description": "The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "safety_stock_quantity": {"name": "safety_stock_quantity", "description": "The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quality_control_quantity": {"name": "quality_control_quantity", "description": "The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.3004675, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__inventory_levels\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith inventory_level as (\n\n select *\n from {{ var('shopify_inventory_level') }}\n), \n\ninventory_item as (\n\n select *\n from {{ var('shopify_inventory_item') }}\n),\n\ninventory_quantity as (\n\n select *\n from {{ var('shopify_inventory_quantity') }}\n),\n\nlocation as (\n\n select *\n from {{ var('shopify_location') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n),\n\nproduct as (\n\n select *\n from {{ var('shopify_product') }}\n),\n\ninventory_level_aggregated as (\n\n select *\n from {{ ref('int_shopify__inventory_level__aggregates') }}\n),\n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%}\n {% for inventory_state in inventory_states -%}\n , sum(case when lower(inventory_state_name) = {{ \"'\" ~ inventory_state|lower ~ \"'\" }}\n {% if inventory_state|lower == 'available ' -%}\n then coalesce(inventory_quantity.quantity, inventory_level.available_quantity)\n {% else -%}\n then inventory_quantity.quantity\n {% endif -%}\n end) as {{ inventory_state }}_quantity\n {% endfor -%}\n\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id as variant_media_id,\n {% endif %}\n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }}\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n {% endif %}\n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n\n {% for inventory_state in inventory_states -%}\n , inventory_quantity_aggregated.{{ inventory_state }}_quantity\n {% endfor -%}\n\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level", "package": null, "version": null}, {"name": "stg_shopify__inventory_item", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity", "package": null, "version": null}, {"name": "stg_shopify__location", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "int_shopify__inventory_level__aggregates", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__inventory_levels.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), inventory_level as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"\n), \n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\n),\n\ninventory_quantity as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"\n),\n\nlocation as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__location\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n),\n\nproduct as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n),\n\ninventory_level_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__inventory_level__aggregates\n),\n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n , sum(case when lower(inventory_state_name) = 'incoming'\n then inventory_quantity.quantity\n end) as incoming_quantity\n , sum(case when lower(inventory_state_name) = 'on_hand'\n then inventory_quantity.quantity\n end) as on_hand_quantity\n , sum(case when lower(inventory_state_name) = 'available'\n then inventory_quantity.quantity\n end) as available_quantity\n , sum(case when lower(inventory_state_name) = 'committed'\n then inventory_quantity.quantity\n end) as committed_quantity\n , sum(case when lower(inventory_state_name) = 'reserved'\n then inventory_quantity.quantity\n end) as reserved_quantity\n , sum(case when lower(inventory_state_name) = 'damaged'\n then inventory_quantity.quantity\n end) as damaged_quantity\n , sum(case when lower(inventory_state_name) = 'safety_stock'\n then inventory_quantity.quantity\n end) as safety_stock_quantity\n , sum(case when lower(inventory_state_name) = 'quality_control'\n then inventory_quantity.quantity\n end) as quality_control_quantity\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n \n product_variant_media.media_id as variant_media_id,\n \n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n \n\n\n\n\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n \n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n \n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n \n , coalesce(inventory_level_aggregated.count_fulfillment_pending, 0) as count_fulfillment_pending\n \n , coalesce(inventory_level_aggregated.count_fulfillment_open, 0) as count_fulfillment_open\n \n , coalesce(inventory_level_aggregated.count_fulfillment_success, 0) as count_fulfillment_success\n \n , coalesce(inventory_level_aggregated.count_fulfillment_cancelled, 0) as count_fulfillment_cancelled\n \n , coalesce(inventory_level_aggregated.count_fulfillment_error, 0) as count_fulfillment_error\n \n , coalesce(inventory_level_aggregated.count_fulfillment_failure, 0) as count_fulfillment_failure\n \n\n , inventory_quantity_aggregated.incoming_quantity\n , inventory_quantity_aggregated.on_hand_quantity\n , inventory_quantity_aggregated.available_quantity\n , inventory_quantity_aggregated.committed_quantity\n , inventory_quantity_aggregated.reserved_quantity\n , inventory_quantity_aggregated.damaged_quantity\n , inventory_quantity_aggregated.safety_stock_quantity\n , inventory_quantity_aggregated.quality_control_quantity\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify__inventory_level__aggregates", "sql": " __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "location_id"], "time_spine": null}, "model.shopify.shopify__discounts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__discounts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__discounts.sql", "original_file_path": "models/rest/shopify__discounts.sql", "unique_id": "model.shopify.shopify__discounts", "fqn": ["shopify", "rest", "shopify__discounts"], "alias": "shopify__discounts", "checksum": {"name": "sha256", "checksum": "62fa5f60084ea0263c89743d8e99e3642dc01df675b0f810158be89eba5984aa"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts.\n", "columns": {"discounts_unique_key": {"name": "discounts_unique_key", "description": "Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "The case-insensitive discount code that customers use at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether the discount can be used only once per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "Number of times the discount has been used (asynchronously updated).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "Number of unique redeem codes associated with the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether `codes_count` is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "Timestamp when the discount ends or expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "Timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "Current status of the discount (e.g. 'active', 'expired', 'scheduled').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount\u2019s display name in the Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to 'all' or 'entitled' items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "application_type": {"name": "application_type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Numeric value of the discount (e.g., percentage or fixed amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "How the discount value is interpreted (e.g., 'percentage', 'fixed_amount').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_discount_amount": {"name": "total_order_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off of orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_discount_amount": {"name": "total_abandoned_checkout_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_line_items_price": {"name": "total_order_line_items_price", "description": "Total monetary amount (in shop currency) of line items for orders that have used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_shipping_cost": {"name": "total_order_shipping_cost", "description": "Total shipping costs for orders that used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_shipping_price": {"name": "total_abandoned_checkout_shipping_price", "description": "Total projected shipping costs for abandoned checkouts that applied this discount first.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_refund_amount": {"name": "total_order_refund_amount", "description": "Total refunded amount (in shop currency) for orders that used this discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer emails who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_discount_amount": {"name": "avg_order_discount_amount", "description": "Average amount (in shop currency) of discount taken off orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "count_orders": {"name": "count_orders", "description": "Count of orders in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customers": {"name": "count_abandoned_checkout_customers", "description": "Distinct count of customers who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customer_emails": {"name": "count_abandoned_checkout_customer_emails", "description": "Distinct count of customer emails who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.3050218, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__discounts\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith discounts_enriched as (\n\n select *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as discounts_unique_key\n from {{ ref('int_shopify__discount_code_enriched')}}\n),\n\norders_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__order_aggregates')}}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\nabandoned_checkouts_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__abandoned_checkouts')}}\n),\n{% endif %}\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n {% endif %} \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n {% endif %}\n)\n\nselect * \nfrom aggregates_joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discount_code_enriched", "package": null, "version": null}, {"name": "int_shopify__discounts__order_aggregates", "package": null, "version": null}, {"name": "int_shopify__discounts__abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__discounts__abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__discounts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n), __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), discounts_enriched as (\n\n select *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_code_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as discounts_unique_key\n from __dbt__cte__int_shopify__discount_code_enriched\n),\n\norders_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__order_aggregates\n),\n\n\nabandoned_checkouts_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__abandoned_checkouts\n),\n\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n \n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n \n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n \n)\n\nselect * \nfrom aggregates_joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discount_code_enriched", "sql": " __dbt__cte__int_shopify__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n)"}, {"id": "model.shopify.int_shopify__discounts__order_aggregates", "sql": " __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}, {"id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "sql": " __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discounts_unique_key"], "time_spine": null}, "model.shopify.shopify__customers": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customers.sql", "original_file_path": "models/rest/shopify__customers.sql", "unique_id": "model.shopify.shopify__customers", "fqn": ["shopify", "rest", "shopify__customers"], "alias": "shopify__customers", "checksum": {"name": "sha256", "checksum": "0ecd7f0b22e3a25224a922e9f02cfa4d5deadd8d3b62d124e6caff3602c729c0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money in shop currency that the customer has spent on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.2802787, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customers\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customers as (\n\n select \n {{ dbt_utils.star(from=ref('stg_shopify__customer'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ var('shopify_customer') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__customers__order_aggregates' )}}\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where customer_id is not null\n group by 1,2\n{% endif %}\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags\n\n from {{ var('shopify_customer_tag' )}}\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n {% endif %}\n\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "shopify__customers__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customers.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n), customers as (\n\n select \n \"customer_id\",\n \"email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"phone\",\n \"account_state\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"marketing_consent_updated_at\",\n \"created_timestamp\",\n \"updated_timestamp\",\n \"_fivetran_synced\",\n \"source_relation\"\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), orders as (\n\n select *\n from __dbt__cte__shopify__customers__order_aggregates\n\n\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where customer_id is not null\n group by 1,2\n\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as customer_tags\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n \n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__customers__order_aggregates", "sql": " __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__orders.sql", "original_file_path": "models/rest/shopify__orders.sql", "unique_id": "model.shopify.shopify__orders", "fqn": ["shopify", "rest", "shopify__orders"], "alias": "shopify__orders", "checksum": {"name": "sha256", "checksum": "391f81515fc070ec8ddcf72d17f302ea6b76c9341329302d11ed57e3ff96b0e0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"orders_unique_key": {"name": "orders_unique_key", "description": "Unique key representing an order. Hashed on 'order_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count": {"name": "line_item_count", "description": "Number of line items included in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_order_seq_number": {"name": "customer_order_seq_number", "description": "The sequential number of the order as it relates to the customer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "new_vs_repeat": {"name": "new_vs_repeat", "description": "Whether the order was a new or repeat order for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to the adjustment on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "The checkout token applied to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price set to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_total_shipping_tax": {"name": "order_total_shipping_tax", "description": "Total shipping tax attributed to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_tags": {"name": "order_tags", "description": "List of tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_url_tags": {"name": "order_url_tags", "description": "List of url tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number_of_fulfillments": {"name": "number_of_fulfillments", "description": "Total fulfillments for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_services": {"name": "fulfillment_services", "description": "List of fulfillment services for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_companies": {"name": "tracking_companies", "description": "List of tracking companies for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "List of tracking numbers for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied on the order", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.2777612, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_id']) }} as orders_unique_key\n from {{ var('shopify_order') }}\n \n), order_lines as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), order_adjustments as (\n\n select *\n from {{ var('shopify_order_adjustment') }}\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from {{ var('shopify_order_discount_code') }}\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_tags\n \n from {{ var('shopify_order_tag') }}\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_url_tags\n \n from {{ var('shopify_order_url_tag') }}\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n {{ fivetran_utils.string_agg(\"distinct cast(service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_company as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_number as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_numbers\n\n from {{ var('shopify_fulfillment') }}\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast({{ fivetran_utils.json_parse(\"total_shipping_price_set\",[\"shop_money\",\"amount\"]) }} as {{ dbt.type_float() }}) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify__order_tag", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.json_parse", "macro.dbt.type_float", "macro.shopify.shopify_partition_by_cols"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag", "model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__orders.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), orders as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as orders_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n \n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), order_adjustments as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_url_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n \n string_agg(distinct cast(service as TEXT), ', ')\n\n as fulfillment_services,\n \n string_agg(distinct cast(tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(tracking_number as TEXT), ', ')\n\n as tracking_numbers\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast(\n\n total_shipping_price_set::json #>> '{shop_money,amount}'\n\n as float) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by \n\n\n customer_id\n\n\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["orders_unique_key"], "time_spine": null}, "model.shopify.shopify__transactions": {"database": "postgres", "schema": "public_shopify", "name": "shopify__transactions", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__transactions.sql", "original_file_path": "models/rest/shopify__transactions.sql", "unique_id": "model.shopify.shopify__transactions", "fqn": ["shopify", "rest", "shopify__transactions"], "alias": "shopify__transactions", "checksum": {"name": "sha256", "checksum": "4c15f502fa243723bce0834561afdefee97a2ca1dee9e4bebadad7e2e2f42c1a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transactions_unique_id": {"name": "transactions_unique_id", "description": "Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of the date the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "exchange_rate": {"name": "exchange_rate", "description": "The exchange rate between the home currency and the currency of sale at the time of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_calculated_amount": {"name": "currency_exchange_calculated_amount", "description": "The total amount of the transaction with the currency exchange rate applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Method of payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_created_timestamp": {"name": "parent_created_timestamp", "description": "Created on timestamp of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_kind": {"name": "parent_kind", "description": "Kind of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_amount": {"name": "parent_amount", "description": "Amount of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_status": {"name": "parent_status", "description": "Status of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "Timestamp when the authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.2959719, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__transactions\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith transactions as (\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'transaction_id'])}} as transactions_unique_id\n from {{ var('shopify_transaction') }} \n\n), tender_transactions as (\n\n select *\n from {{ var('shopify_tender_transaction') }}\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.json_parse", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__transactions.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as transactions_unique_id\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\" \n\n), tender_transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) as exchange_rate,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["transactions_unique_id"], "time_spine": null}, "model.shopify.shopify__order_lines": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_lines", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__order_lines.sql", "original_file_path": "models/rest/shopify__order_lines.sql", "unique_id": "model.shopify.shopify__order_lines", "fqn": ["shopify", "rest", "shopify__order_lines"], "alias": "shopify__order_lines", "checksum": {"name": "sha256", "checksum": "4bea1545ae004b8d366bcf551eead0be215407510cf95a048869e1346d111116"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item of an order in Shopify.", "columns": {"order_lines_unique_key": {"name": "order_lines_unique_key", "description": "Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_quantity": {"name": "refunded_quantity", "description": "Quantity of the item that has been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net_refunds": {"name": "quantity_net_refunds", "description": "Quantity ordered, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_compare_at_price": {"name": "variant_compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_position": {"name": "variant_position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sku": {"name": "variant_sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_taxable": {"name": "variant_is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_subtotal": {"name": "refunded_subtotal", "description": "Subtotal amount of the refund applied to the order line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_net_refunds": {"name": "subtotal_net_refunds", "description": "Subtotal of the order line with refunds subtracted in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_types": {"name": "restock_types", "description": "List of how this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_tax": {"name": "order_line_tax", "description": "Total taxes for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The total pre tax price of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.2926292, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_lines\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_line_id']) }} as order_lines_unique_key\n from {{ var('shopify_order_line') }}\n\n), product_variants as (\n\n select *\n from {{ var('shopify_product_variant') }}\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), \n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n {{ fivetran_utils.string_agg(\"distinct cast(refunds.restock_type as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from {{ var('shopify_tax_line')}}\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id,\n {% endif %}\n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__order_lines.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as order_lines_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), \n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n \n string_agg(distinct cast(refunds.restock_type as TEXT), ', ')\n\n as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n \n product_variant_media.media_id,\n \n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n \n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_lines_unique_key"], "time_spine": null}, "model.shopify.shopify__products": {"database": "postgres", "schema": "public_shopify", "name": "shopify__products", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__products.sql", "original_file_path": "models/rest/shopify__products.sql", "unique_id": "model.shopify.shopify__products", "fqn": ["shopify", "rest", "shopify__products"], "alias": "shopify__products", "checksum": {"name": "sha256", "checksum": "cfa6ebbb138e82d7287894a9ab6ea7d2ae5511199880dd0650bea0aeaf4f09a8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity_sold": {"name": "total_quantity_sold", "description": "Quantity of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (in shop currency) of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_net_refunds": {"name": "quantity_sold_net_refunds", "description": "Quantity of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_net_refunds": {"name": "subtotal_sold_net_refunds", "description": "Total amount (in shop currency) of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the product was first ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the product was most recently ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order_line": {"name": "avg_quantity_per_order_line", "description": "Average quantity per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_discount": {"name": "product_total_discount", "description": "Total discounts associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_discount_per_order_line": {"name": "product_avg_discount_per_order_line", "description": "Average discount per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_tax": {"name": "product_total_tax", "description": "Total taxes associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_tax_per_order_line": {"name": "product_avg_tax_per_order_line", "description": "Average taxes per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants": {"name": "count_variants", "description": "Count of product variants.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_product_media": {"name": "has_product_media", "description": "If the product has media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collections": {"name": "collections", "description": "Comma-separated list of collections associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tags": {"name": "tags", "description": "Comma-separated list of tags associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.2847552, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__products\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith products as (\n\n select *\n from {{ ref('int_shopify__products_with_aggregates') }}\n\n), product_order_lines as (\n\n select *\n from {{ ref('int_shopify__product__order_line_aggregates')}}\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__products_with_aggregates", "package": null, "version": null}, {"name": "int_shopify__product__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.int_shopify__product__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__products.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), products as (\n\n select *\n from __dbt__cte__int_shopify__products_with_aggregates\n\n), product_order_lines as (\n\n select *\n from __dbt__cte__int_shopify__product__order_line_aggregates\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__products_with_aggregates", "sql": " __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify__product__order_line_aggregates", "sql": " __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__daily_shop": {"database": "postgres", "schema": "public_shopify", "name": "shopify__daily_shop", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__daily_shop.sql", "original_file_path": "models/rest/shopify__daily_shop.sql", "unique_id": "model.shopify.shopify__daily_shop", "fqn": ["shopify", "rest", "shopify__daily_shop"], "alias": "shopify__daily_shop", "checksum": {"name": "sha256", "checksum": "26b5fbd6bc74a61de3e6051ace6b3c123b9a789b1871f098d3803e2a0a348335"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a day in your Shop, enriched with a suite of metrics.\n", "columns": {"date_day": {"name": "date_day", "description": "Day for which the shop activity is being measured.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders": {"name": "count_orders", "description": "Count of the distinct orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_line_items": {"name": "count_line_items", "description": "Count of the line items included in orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer email addresses who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "Average adjusted total per order placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount (in shop currency) applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to adjustments (in shop currency) on the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of the discount allocated to this day's orders in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied by customers on orders for this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_locations_ordered_from": {"name": "count_locations_ordered_from", "description": "Distinct locations with orders placed against them on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_discounts": {"name": "count_orders_with_discounts", "description": "Count of orders in which a discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_refunds": {"name": "count_orders_with_refunds", "description": "Count of orders in which there was a refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "Timestamp of the first order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "Timestamp of the last order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_refunded": {"name": "quantity_refunded", "description": "The quantity of goods ORDERED on this day that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net": {"name": "quantity_net", "description": "Net quantity sold from this shop on this day. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants_sold": {"name": "count_variants_sold", "description": "Distinct product variants sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_products_sold": {"name": "count_products_sold", "description": "Distinct products sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_gift_cards_sold": {"name": "quantity_gift_cards_sold", "description": "Quantity of gift cards sold on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_requiring_shipping": {"name": "quantity_requiring_shipping", "description": "Quantity of goods sold on this day that require shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers_abandoned_checkout": {"name": "count_customers_abandoned_checkout", "description": "Count of distinct customers who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails_abandoned_checkout": {"name": "count_customer_emails_abandoned_checkout", "description": "Count of distinct customer emails who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_attempted_delivery": {"name": "count_fulfillment_attempted_delivery", "description": "Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delivered": {"name": "count_fulfillment_delivered", "description": "Count of successful distinct fulfillments successfully delivered on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_in_transit": {"name": "count_fulfillment_in_transit", "description": "Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_out_for_delivery": {"name": "count_fulfillment_out_for_delivery", "description": "Count of distinct fulfillments being delivered to their final destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_ready_for_pickup": {"name": "count_fulfillment_ready_for_pickup", "description": "Count of distinct fulfillments ready for pickup at a shipping depot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_picked_up": {"name": "count_fulfillment_picked_up", "description": "Count of distinct fulfillments successfully picked up on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_printed": {"name": "count_fulfillment_label_printed", "description": "Count of distinct fulfillments for which a purchased shipping label has been printed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_purchased": {"name": "count_fulfillment_label_purchased", "description": "Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_confirmed": {"name": "count_fulfillment_confirmed", "description": "Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delayed": {"name": "count_fulfillment_delayed", "description": "Count of delayed distinct fulfillments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_line_item_count": {"name": "avg_line_item_count", "description": "Average line item count for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount": {"name": "avg_discount", "description": "Average total discount placed on orders on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_discount_amount": {"name": "avg_shipping_discount_amount", "description": "Average discount amount (in shop currency) allocated toward shipping on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_percentage_calc_discount_amount": {"name": "avg_percentage_calc_discount_amount", "description": "Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_fixed_amount_discount_amount": {"name": "avg_fixed_amount_discount_amount", "description": "Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_sold": {"name": "avg_quantity_sold", "description": "Average quantity sold per order on this day. Includes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_net": {"name": "avg_quantity_net", "description": "Average net quantity sold per order on this day. Excludes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.3083591, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__daily_shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith shop as (\n\n select *\n from {{ var('shopify_shop') }}\n),\n\ncalendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from {{ ref('int_shopify__daily_orders') }}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\ndaily_abandoned_checkouts as (\n\n select *\n from {{ ref('int_shopify__daily_abandoned_checkouts') }}\n),\n{% endif %}\n\n{% if var('shopify_using_fulfillment_event', false) %}\ndaily_fulfillment as (\n\n select *\n from {{ ref('int_shopify__daily_fulfillment') }}\n),\n{% endif %}\n\nshop_calendar as (\n\n select\n cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n {% endif %}\n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n {% endif %}\n \n)\n\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "shopify__calendar", "package": null, "version": null}, {"name": "int_shopify__daily_orders", "package": null, "version": null}, {"name": "int_shopify__daily_abandoned_checkouts", "package": null, "version": null}, {"name": "int_shopify__daily_fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__shop", "model.shopify.shopify__calendar", "model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__daily_shop.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n), __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n), __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n), shop as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n),\n\ncalendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('day', date_day) as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from __dbt__cte__int_shopify__daily_orders\n),\n\n\ndaily_abandoned_checkouts as (\n\n select *\n from __dbt__cte__int_shopify__daily_abandoned_checkouts\n),\n\n\n\ndaily_fulfillment as (\n\n select *\n from __dbt__cte__int_shopify__daily_fulfillment\n),\n\n\nshop_calendar as (\n\n select\n cast(date_trunc('day', calendar.date_day) as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n \n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n \n\n \n \n , coalesce(count_fulfillment_attempted_delivery, 0) as count_fulfillment_attempted_delivery\n \n , coalesce(count_fulfillment_delayed, 0) as count_fulfillment_delayed\n \n , coalesce(count_fulfillment_delivered, 0) as count_fulfillment_delivered\n \n , coalesce(count_fulfillment_failure, 0) as count_fulfillment_failure\n \n , coalesce(count_fulfillment_in_transit, 0) as count_fulfillment_in_transit\n \n , coalesce(count_fulfillment_out_for_delivery, 0) as count_fulfillment_out_for_delivery\n \n , coalesce(count_fulfillment_ready_for_pickup, 0) as count_fulfillment_ready_for_pickup\n \n , coalesce(count_fulfillment_picked_up, 0) as count_fulfillment_picked_up\n \n , coalesce(count_fulfillment_label_printed, 0) as count_fulfillment_label_printed\n \n , coalesce(count_fulfillment_label_purchased, 0) as count_fulfillment_label_purchased\n \n , coalesce(count_fulfillment_confirmed, 0) as count_fulfillment_confirmed\n \n \n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n \n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n \n\n \n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n \n \n)\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__daily_orders", "sql": " __dbt__cte__int_shopify__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify__daily_abandoned_checkouts", "sql": " __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n)"}, {"id": "model.shopify.int_shopify__daily_fulfillment", "sql": " __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_emails": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_emails", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_emails.sql", "original_file_path": "models/rest/shopify__customer_emails.sql", "unique_id": "model.shopify.shopify__customer_emails", "fqn": ["shopify", "rest", "shopify__customer_emails"], "alias": "shopify__customer_emails", "checksum": {"name": "sha256", "checksum": "950e6e68218fd53bf2bd11f089af340c092a4251e1fd9d8c9230bf9c298af01f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer email in Shopify.", "columns": {"last_fivetran_synced": {"name": "last_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_ids": {"name": "customer_ids", "description": "Comma-separated list of customer IDs associated with the email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone_numbers": {"name": "phone_numbers", "description": "Comma-separated list of phone numbers associated with this email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_updated_at": {"name": "last_updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money that the customer has spent on orders across their order history (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_account_created_at": {"name": "first_account_created_at", "description": "Timestamp of when the first account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_account_created_at": {"name": "last_account_created_at", "description": "Timestamp of when the last account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.2826772, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_emails\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customer_emails as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify__customer_email_rollup'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ ref('int_shopify__customer_email_rollup') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify__emails__order_aggregates' )}}\n where email is not null\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where email is not null\n group by 1,2\n{% endif %}\n\n), joined as (\n\n select \n customer_emails.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__emails__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star"], "nodes": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_emails.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), customer_emails as (\n\n select \n \"email\",\n \"source_relation\",\n \"customer_ids\",\n \"phone_numbers\",\n \"customer_tags\",\n \"first_account_created_at\",\n \"last_account_created_at\",\n \"last_updated_at\",\n \"marketing_consent_updated_at\",\n \"last_fivetran_synced\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"account_state\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\"\n from \"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify__emails__order_aggregates\n where email is not null\n\n\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where email is not null\n group by 1,2\n\n\n), joined as (\n\n select \n customer_emails.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n \n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__emails__order_aggregates", "sql": " __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__inventory_level__aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__inventory_level__aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__inventory_level__aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__inventory_level__aggregates.sql", "unique_id": "model.shopify.int_shopify__inventory_level__aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__inventory_level__aggregates"], "alias": "int_shopify__inventory_level__aggregates", "checksum": {"name": "sha256", "checksum": "71c148adee52b31e8a96b36110d93dba3f37be66f265625ca908744297ac0a92"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.378401, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select *\n from {{ var('shopify_order_line') }}\n),\n\nfulfillment as (\n\n select *\n from {{ var('shopify_fulfillment') }}\n),\n\norders as (\n\n select *\n from {{ var('shopify_order') }}\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n {{ dbt_utils.group_by(n=3) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_refunds"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__inventory_level__aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["location_id", "source_relation", "variant_id"], "time_spine": null}, "model.shopify.int_shopify__product__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__product__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__product__order_line_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__product__order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify__product__order_line_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__product__order_line_aggregates"], "alias": "int_shopify__product__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "7318e3e5faba66745a27e59d40674690031727a7c2719c8660c8c73a685e3896"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.380478, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select *\n from {{ ref('shopify__order_lines') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders')}}\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__product__order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__products_with_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__products_with_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__products_with_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__products_with_aggregates.sql", "unique_id": "model.shopify.int_shopify__products_with_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__products_with_aggregates"], "alias": "int_shopify__products_with_aggregates", "checksum": {"name": "sha256", "checksum": "f76affed4b8f7e1cbce3598d02d4114978ee18b9e5b4583720285c3c7c19750d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.3809793, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith products as (\n\n select *\n from {{ var('shopify_product') }}\n), \n\ncollection_product as (\n\n select *\n from {{ var('shopify_collection_product') }}\n),\n\ncollection as (\n\n select *\n from {{ var('shopify_collection') }}\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from {{ var('shopify_product_tag') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n), \n\nproduct_media as (\n\n select *\n from {{ var('shopify_product_media') }}\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter=\"', '\") }} as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='value', delimiter=\"', '\") }} as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__collection_product", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__product_tag", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__products_with_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__discount_code_enriched": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discount_code_enriched", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discount_code_enriched.sql", "original_file_path": "models/rest/intermediate/int_shopify__discount_code_enriched.sql", "unique_id": "model.shopify.int_shopify__discount_code_enriched", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discount_code_enriched"], "alias": "int_shopify__discount_code_enriched", "checksum": {"name": "sha256", "checksum": "bcf513cc78532e595d895f3b33240d906515eaf4979369990586897a7bb64e84"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.4497445, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith discount_redeem_codes as (\n \n select *\n from {{ var('shopify_discount_redeem_code') }}\n),\n\ndiscount_applications as (\n\n select *\n from {{ var('shopify_discount_application') }}\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_basic') }}\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_bxgy') }}\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_free_shipping') }}\n\n {% if var('shopify_using_discount_code_app', False) %}\n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_app') }}\n {% endif %}\n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_application", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code", "model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discount_code_enriched.sql", "compiled": true, "compiled_code": "\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__daily_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__daily_abandoned_checkouts", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_abandoned_checkouts"], "alias": "int_shopify__daily_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "3ed79baa28d3b9160647ad92b70096d29c4bffe408b4d69e2fcd790e124f9074"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.4617696, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__order__shipping_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__order__shipping_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__order__shipping_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__order__shipping_aggregates.sql", "unique_id": "model.shopify.int_shopify__order__shipping_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__order__shipping_aggregates"], "alias": "int_shopify__order__shipping_aggregates", "checksum": {"name": "sha256", "checksum": "0b62dd0d5d3643dd2d497124c55db965c77cbf556e68645f15965bf80f3d3a82"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.379949, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from {{ var('shopify_order_shipping_line') }}\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from {{ var('shopify_order_shipping_tax_line') }}\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__order__shipping_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__orders__order_line_aggregates.sql", "original_file_path": "models/rest/intermediate/shopify__orders__order_line_aggregates.sql", "unique_id": "model.shopify.shopify__orders__order_line_aggregates", "fqn": ["shopify", "rest", "intermediate", "shopify__orders__order_line_aggregates"], "alias": "shopify__orders__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "dc06ee54fe54de8c7cd7a17fc15bb4ab1331d5d1f7ea6b71aabce4a6d9cc3a3f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.376353, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"", "raw_code": "{{ config(materialized='table', enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_line as (\n\n select *\n from {{ var('shopify_order_line') }}\n\n), tax as (\n\n select\n *\n from {{ var('shopify_tax_line') }}\n\n), shipping as (\n\n select\n *\n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__orders__order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), order_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), tax as (\n\n select\n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), shipping as (\n\n select\n *\n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__daily_orders": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_orders", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_orders.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_orders.sql", "unique_id": "model.shopify.int_shopify__daily_orders", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_orders"], "alias": "int_shopify__daily_orders", "checksum": {"name": "sha256", "checksum": "f866152e2f91cf3593173286eeb1d4337212bc81a34a1b8550189f69081f69a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.4881716, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from {{ ref('shopify__order_lines') }}\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.shopify__orders", "model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_orders.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__customer_email_rollup": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__customer_email_rollup.sql", "original_file_path": "models/rest/intermediate/int_shopify__customer_email_rollup.sql", "unique_id": "model.shopify.int_shopify__customer_email_rollup", "fqn": ["shopify", "rest", "intermediate", "int_shopify__customer_email_rollup"], "alias": "int_shopify__customer_email_rollup", "checksum": {"name": "sha256", "checksum": "37f30d45093b6c1ed887121ee7e4b1ff6dafc2f9353024e4255b86946a64b431"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.3778663, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by created_timestamp desc) \n as customer_index\n\n from {{ var('shopify_customer') }}\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from {{ var('shopify_customer_tag' )}}\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n {{ fivetran_utils.string_agg(\"distinct cast(customers.customer_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_ids,\n {{ fivetran_utils.string_agg(\"distinct cast(customers.phone as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as phone_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(customer_tags.value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n {{ fivetran_utils.max_bool(\"case when customers.customer_index = 1 then customers.is_tax_exempt else null end\") }} as is_tax_exempt, -- since this changes every year\n {{ fivetran_utils.max_bool(\"customers.is_verified_email\") }} as is_verified_email\n\n -- for all other fields, just take the latest value\n {% set cols = adapter.get_columns_in_relation(ref('stg_shopify__customer')) %}\n {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', \n 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp',\n 'is_tax_exempt', 'is_verified_email'] %}\n {% for col in cols %}\n {% if col.column|lower not in except_cols %}\n , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }}\n {% endif %}\n {% endfor %}\n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_partition_by_cols", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.max_bool"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__customer_email_rollup.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by \n\n\n email\n\n\n order by created_timestamp desc) \n as customer_index\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n \n string_agg(distinct cast(customers.customer_id as TEXT), ', ')\n\n as customer_ids,\n \n string_agg(distinct cast(customers.phone as TEXT), ', ')\n\n as phone_numbers,\n \n string_agg(distinct cast(customer_tags.value as TEXT), ', ')\n\n as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n \n\n bool_or( case when customers.customer_index = 1 then customers.is_tax_exempt else null end )\n\n as is_tax_exempt, -- since this changes every year\n \n\n bool_or( customers.is_verified_email )\n\n as is_verified_email\n\n -- for all other fields, just take the latest value\n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.first_name else null end) as first_name\n \n \n \n , max(case when customers.customer_index = 1 then customers.last_name else null end) as last_name\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.default_address_id else null end) as default_address_id\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.account_state else null end) as account_state\n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.note else null end) as note\n \n \n \n , max(case when customers.customer_index = 1 then customers.currency else null end) as currency\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_consent_state else null end) as marketing_consent_state\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_opt_in_level else null end) as marketing_opt_in_level\n \n \n \n \n \n \n \n \n \n \n \n \n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders__order_refunds": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_refunds", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__orders__order_refunds.sql", "original_file_path": "models/rest/intermediate/shopify__orders__order_refunds.sql", "unique_id": "model.shopify.shopify__orders__order_refunds", "fqn": ["shopify", "rest", "intermediate", "shopify__orders__order_refunds"], "alias": "shopify__orders__order_refunds", "checksum": {"name": "sha256", "checksum": "b2779287393dd936f29751f0839d05d36aa9ac1ec21f071744d6d1c3047adc11"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.3768246, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith refunds as (\n\n select *\n from {{ var('shopify_refund') }}\n\n), order_line_refunds as (\n\n select *\n from {{ var('shopify_order_line_refund') }}\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__refund", "model.shopify_source.stg_shopify__order_line_refund"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__orders__order_refunds.sql", "compiled": true, "compiled_code": "\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "original_file_path": "models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discounts__abandoned_checkouts"], "alias": "int_shopify__discounts__abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "4db18a80ca151075ad7431fe218c35b61b96196951cf2da104512d277ca94f83"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.3794434, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from {{ var('shopify_abandoned_checkout_discount_code') }}\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from {{ var('shopify_abandoned_checkout_shipping_line') }}\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["code", "source_relation", "type"], "time_spine": null}, "model.shopify.int_shopify__emails__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__emails__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__emails__order_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__emails__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__emails__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__emails__order_aggregates"], "alias": "int_shopify__emails__order_aggregates", "checksum": {"name": "sha256", "checksum": "1b106193505d9a5cbf6f64b6fbc51c6eb010151e48da445481c726fc0a5a1f46"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.3773537, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_order') }}\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from {{ var('shopify_customer') }}\n where email is not null\n {{ dbt_utils.group_by(n=3) }}\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__emails__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__daily_fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_fulfillment", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_fulfillment.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_fulfillment.sql", "unique_id": "model.shopify.int_shopify__daily_fulfillment", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_fulfillment"], "alias": "int_shopify__daily_fulfillment", "checksum": {"name": "sha256", "checksum": "5d07c22ba6468bebf18c3be8c5d123914dc91b33eb036c4bc75feb1bd4f7529c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.543837, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith fulfillment_event as (\n\n select *\n from {{ var('shopify_fulfillment_event') }}\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day\n\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discounts__order_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__discounts__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__discounts__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discounts__order_aggregates"], "alias": "int_shopify__discounts__order_aggregates", "checksum": {"name": "sha256", "checksum": "bf596881f17db03334a269b53a5856d2cddfe92d6bd8dffc26b5b779e874a480"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.378912, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_discount_code as (\n\n select *\n from {{ var('shopify_order_discount_code') }}\n),\n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_discount_code", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discounts__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["code", "source_relation", "type"], "time_spine": null}, "model.shopify.shopify__customers__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__customers__order_aggregates.sql", "original_file_path": "models/rest/intermediate/shopify__customers__order_aggregates.sql", "unique_id": "model.shopify.shopify__customers__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "shopify__customers__order_aggregates"], "alias": "shopify__customers__order_aggregates", "checksum": {"name": "sha256", "checksum": "e1af84adc51e48a677e22660a99ca8e7d48ee8fabc49c0b4505c8fc1c7233264"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.37579, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_order') }}\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n {{ dbt_utils.group_by(n=2) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__customers__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__product_variant_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__product_variant_metafields.sql", "original_file_path": "models/rest/metafields/shopify__product_variant_metafields.sql", "unique_id": "model.shopify.shopify__product_variant_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__product_variant_metafields"], "alias": "shopify__product_variant_metafields", "checksum": {"name": "sha256", "checksum": "aa2cdc58708d40d191a197a74aaa246cf15f5a6f3d984f70f378309283819367"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product_variant model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4375184, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_variant_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product_variant\",\n reference_values = ['variant', 'productvariant'],\n id_column = \"variant_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__product_variant_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_wherearethey'\n then value\n else null\n end\n )\n \n \n as avengers_wherearethey\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_wheninspace'\n then value\n else null\n end\n )\n \n \n as star_wars_wheninspace\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.variant_id,\n \n source_table.product_id,\n \n source_table.inventory_item_id,\n \n source_table.title,\n \n source_table.price,\n \n source_table.sku,\n \n source_table.position,\n \n source_table.inventory_policy,\n \n source_table.compare_at_price,\n \n source_table.fulfillment_service,\n \n source_table.inventory_management,\n \n source_table.is_taxable,\n \n source_table.barcode,\n \n source_table.grams,\n \n source_table.inventory_quantity,\n \n source_table.is_available_for_sale,\n \n source_table.display_name,\n \n source_table.legacy_resource_id,\n \n source_table.has_components_required,\n \n source_table.sellable_online_quantity,\n \n source_table.weight,\n \n source_table.weight_unit,\n \n source_table.option_1,\n \n source_table.option_2,\n \n source_table.option_3,\n \n source_table.tax_code,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_wherearethey) as metafield_avengers_wherearethey\n \n , max(lookup_object.star_wars_wheninspace) as metafield_star_wars_wheninspace\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.variant_id\n and lower(lookup_object.owner_resource) in ('variant', 'productvariant')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__order_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__order_metafields.sql", "original_file_path": "models/rest/metafields/shopify__order_metafields.sql", "unique_id": "model.shopify.shopify__order_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__order_metafields"], "alias": "shopify__order_metafields", "checksum": {"name": "sha256", "checksum": "bb661fd29f14623b4e28a900a1a3b19cd679f288fdcc6b2db556b48c38756164"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__order model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4365444, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__order\", \n reference_values = ['order'],\n id_column = \"order_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__order_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_howmany'\n then value\n else null\n end\n )\n \n \n as avengers_howmany\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isinspace'\n then value\n else null\n end\n )\n \n \n as star_wars_isinspace\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_numbersequels'\n then value\n else null\n end\n )\n \n \n as star_wars_numbersequels\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.order_id,\n \n source_table.user_id,\n \n source_table.total_discounts,\n \n source_table.total_discounts_set,\n \n source_table.total_line_items_price,\n \n source_table.total_line_items_price_set,\n \n source_table.total_price,\n \n source_table.total_price_set,\n \n source_table.total_tax_set,\n \n source_table.total_tax,\n \n source_table.source_name,\n \n source_table.subtotal_price,\n \n source_table.has_taxes_included,\n \n source_table.total_weight,\n \n source_table.total_tip_received,\n \n source_table.landing_site_base_url,\n \n source_table.location_id,\n \n source_table.name,\n \n source_table.note,\n \n source_table.number,\n \n source_table.order_number,\n \n source_table.cancel_reason,\n \n source_table.cart_token,\n \n source_table.checkout_token,\n \n source_table.created_timestamp,\n \n source_table.cancelled_timestamp,\n \n source_table.closed_timestamp,\n \n source_table.processed_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.currency,\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.financial_status,\n \n source_table.fulfillment_status,\n \n source_table.referring_site,\n \n source_table.billing_address_address_1,\n \n source_table.billing_address_address_2,\n \n source_table.billing_address_city,\n \n source_table.billing_address_company,\n \n source_table.billing_address_country,\n \n source_table.billing_address_country_code,\n \n source_table.billing_address_first_name,\n \n source_table.billing_address_last_name,\n \n source_table.billing_address_latitude,\n \n source_table.billing_address_longitude,\n \n source_table.billing_address_name,\n \n source_table.billing_address_phone,\n \n source_table.billing_address_province,\n \n source_table.billing_address_province_code,\n \n source_table.billing_address_zip,\n \n source_table.browser_ip,\n \n source_table.total_shipping_price_set,\n \n source_table.shipping_address_address_1,\n \n source_table.shipping_address_address_2,\n \n source_table.shipping_address_city,\n \n source_table.shipping_address_company,\n \n source_table.shipping_address_country,\n \n source_table.shipping_address_country_code,\n \n source_table.shipping_address_first_name,\n \n source_table.shipping_address_last_name,\n \n source_table.shipping_address_latitude,\n \n source_table.shipping_address_longitude,\n \n source_table.shipping_address_name,\n \n source_table.shipping_address_phone,\n \n source_table.shipping_address_province,\n \n source_table.shipping_address_province_code,\n \n source_table.shipping_address_zip,\n \n source_table.token,\n \n source_table.app_id,\n \n source_table.checkout_id,\n \n source_table.client_details_user_agent,\n \n source_table.customer_locale,\n \n source_table.order_status_url,\n \n source_table.presentment_currency,\n \n source_table.is_test_order,\n \n source_table.is_deleted,\n \n source_table.has_buyer_accepted_marketing,\n \n source_table.is_confirmed,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_howmany) as metafield_avengers_howmany\n \n , max(lookup_object.star_wars_isinspace) as metafield_star_wars_isinspace\n \n , max(lookup_object.star_wars_numbersequels) as metafield_star_wars_numbersequels\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.order_id\n and lower(lookup_object.owner_resource) in ('order')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__product_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__product_metafields.sql", "original_file_path": "models/rest/metafields/shopify__product_metafields.sql", "unique_id": "model.shopify.shopify__product_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__product_metafields"], "alias": "shopify__product_metafields", "checksum": {"name": "sha256", "checksum": "4ecabbfee204dd6d41c39d99eafd9e4627db1710831547eaf6b5ecc38ddb012a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4370213, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product\", \n reference_values = ['product'],\n id_column = \"product_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__product_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__customer_metafields.sql", "original_file_path": "models/rest/metafields/shopify__customer_metafields.sql", "unique_id": "model.shopify.shopify__customer_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__customer_metafields"], "alias": "shopify__customer_metafields", "checksum": {"name": "sha256", "checksum": "1d183df4efbd1c05e74961913c1e9eda390a0aa59312a8e7914d2e26ac02f0f8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__customer model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4360409, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__customer\", \n reference_values = ['customer'],\n id_column = \"customer_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__customer_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'star_wars_firstname'\n then value\n else null\n end\n )\n \n \n as star_wars_firstname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_fullname'\n then value\n else null\n end\n )\n \n \n as star_wars_fullname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isjedi'\n then value\n else null\n end\n )\n \n \n as star_wars_isjedi\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_lastname'\n then value\n else null\n end\n )\n \n \n as star_wars_lastname\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.first_name,\n \n source_table.last_name,\n \n source_table.orders_count,\n \n source_table.default_address_id,\n \n source_table.phone,\n \n source_table.account_state,\n \n source_table.is_tax_exempt,\n \n source_table.total_spent,\n \n source_table.is_verified_email,\n \n source_table.note,\n \n source_table.currency,\n \n source_table.marketing_consent_state,\n \n source_table.marketing_opt_in_level,\n \n source_table.marketing_consent_updated_at,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.star_wars_firstname) as metafield_star_wars_firstname\n \n , max(lookup_object.star_wars_fullname) as metafield_star_wars_fullname\n \n , max(lookup_object.star_wars_isjedi) as metafield_star_wars_isjedi\n \n , max(lookup_object.star_wars_lastname) as metafield_star_wars_lastname\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.customer_id\n and lower(lookup_object.owner_resource) in ('customer')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__shop_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__shop_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__shop_metafields.sql", "original_file_path": "models/rest/metafields/shopify__shop_metafields.sql", "unique_id": "model.shopify.shopify__shop_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__shop_metafields"], "alias": "shopify__shop_metafields", "checksum": {"name": "sha256", "checksum": "a6c83b00e994807860ae5fbe8c7766fe0ace4300cfd53c5ba206ea6bf1831f3c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__shop model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.43799, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__shop_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__shop\", \n reference_values = ['shop'],\n id_column = \"shop_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__shop_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__collection_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__collection_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__collection_metafields.sql", "original_file_path": "models/rest/metafields/shopify__collection_metafields.sql", "unique_id": "model.shopify.shopify__collection_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__collection_metafields"], "alias": "shopify__collection_metafields", "checksum": {"name": "sha256", "checksum": "9a0e96e6e6a37a4a6acea599ac4a0e4fec53dbb44e8a29d52c87ed7ac596bbde"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__collection model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4355445, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__collection_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__collection\", \n reference_values = ['collection'],\n id_column = \"collection_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__collection_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__line_item_enhanced": {"database": "postgres", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "resource_type": "model", "package_name": "shopify", "path": "rest/standardized_models/shopify__line_item_enhanced.sql", "original_file_path": "models/rest/standardized_models/shopify__line_item_enhanced.sql", "unique_id": "model.shopify.shopify__line_item_enhanced", "fqn": ["shopify", "rest", "standardized_models", "shopify__line_item_enhanced"], "alias": "shopify__line_item_enhanced", "checksum": {"name": "sha256", "checksum": "b7aba2e3c1eb834a55bcb5174c0e3ad5db1e8699f88d14469d04cbdcbefe0e5c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It\u2019s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details.", "columns": {"header_id": {"name": "header_id", "description": "Id of corresponding order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_id": {"name": "line_item_id", "description": "Order line item id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_index": {"name": "line_item_index", "description": "Unique index of each line item id for each order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "record_type": {"name": "record_type", "description": "header or line_item", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the order was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "header_status": {"name": "header_status", "description": "Status of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_type": {"name": "billing_type", "description": "NA for Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "Currency used in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "Product ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_name": {"name": "product_name", "description": "Product name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "Product type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_type": {"name": "transaction_type", "description": "Transaction type (Charge, Refund, etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of units of this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_amount": {"name": "unit_amount", "description": "Amount per unit, or the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_amount": {"name": "discount_amount", "description": "The discount amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "The tax amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_amount": {"name": "total_amount", "description": "Order total", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_id": {"name": "payment_id", "description": "Transaction ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Transaction gateway for Shopify ('gift card', 'shopify payments', etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method_id": {"name": "payment_method_id", "description": "Shopify does not have a particular payment_method_id, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_at": {"name": "payment_at", "description": "Transaction processed timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fee_amount": {"name": "fee_amount", "description": "The total shipping fee associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_amount": {"name": "refund_amount", "description": "Refund amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_id": {"name": "subscription_id", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_plan": {"name": "subscription_plan", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_started_at": {"name": "subscription_period_started_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_ended_at": {"name": "subscription_period_ended_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_status": {"name": "subscription_status", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "Customer associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_created_at": {"name": "customer_created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_level": {"name": "customer_level", "description": "Whether 'account' or 'customer'. For Shopify, the level is 'customer'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_name": {"name": "customer_name", "description": "Customer name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_company": {"name": "customer_company", "description": "Associated customer's company noted on the shipping address if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "Customer email", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_city": {"name": "customer_city", "description": "Customer's shipping address city", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_country": {"name": "customer_country", "description": "Customer's shipping address country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/standardized_models/shopify__standardized_models.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.44958, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__line_item_enhanced\"", "raw_code": "{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith line_items as (\n\n select * \n from {{ var('shopify_order_line')}}\n\n), orders as ( \n\n select * \n from {{ var('shopify_order')}}\n\n), product as (\n\n select *\n from {{ var('shopify_product')}}\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n {{ fivetran_utils.string_agg(\"cast (transaction_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} AS transaction_id,\n {{ fivetran_utils.string_agg(\"cast (processed_timestamp as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as processed_timestamp,\n {{ fivetran_utils.string_agg('gateway', \"', '\") }} as gateway\n\n from {{ var('shopify_transaction')}}\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from {{ var('shopify_transaction')}}\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from {{ var('shopify_order_line_refund')}}\n group by 1,2\n\n), customer as (\n\n select *\n from {{ var('shopify_customer')}}\n\n), shipping as (\n\n select * \n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as {{ dbt.type_string() }}) as subscription_id,\n cast(null as {{ dbt.type_string() }}) as subscription_plan,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at,\n cast(null as {{ dbt.type_string() }}) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n {{ dbt.concat([\"c.first_name\", \"''\", \"c.last_name\"]) }} as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id,\n cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as {{ dbt.type_numeric() }}) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as {{ dbt.type_numeric() }}) as quantity,\n cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,\n cast(null as {{ dbt.type_numeric() }}) as discount_amount,\n cast(null as {{ dbt.type_numeric() }}) as tax_amount,\n cast(total_amount as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as {{ dbt.type_numeric() }}) as fee_amount,\n cast(null as {{ dbt.type_numeric() }}) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as {{ dbt.type_numeric() }}) as line_item_id,\n cast(0 as {{ dbt.type_numeric() }}) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as {{ dbt.type_numeric() }}) as product_id,\n cast(null as {{ dbt.type_string() }}) as product_name,\n transaction_type,\n billing_type,\n cast(null as {{ dbt.type_string() }}) as product_type,\n cast(null as {{ dbt.type_numeric() }}) as quantity,\n cast(null as {{ dbt.type_numeric() }}) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.dbt.type_timestamp", "macro.dbt.concat", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__customer", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/standardized_models/shopify__line_item_enhanced.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), line_items as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), orders as ( \n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n \n string_agg(cast (transaction_id as TEXT), ', ')\n\n AS transaction_id,\n \n string_agg(cast (processed_timestamp as TEXT), ', ')\n\n as processed_timestamp,\n \n string_agg(gateway, ', ')\n\n as gateway\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n group by 1,2\n\n), customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), shipping as (\n\n select * \n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as TEXT) as subscription_id,\n cast(null as TEXT) as subscription_plan,\n cast(null as timestamp) as subscription_period_started_at,\n cast(null as timestamp) as subscription_period_ended_at,\n cast(null as TEXT) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n c.first_name || '' || c.last_name as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as numeric(28,6)) as line_item_id,\n cast(line_item_index as numeric(28,6)) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as numeric(28,6)) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as numeric(28,6)) as quantity,\n cast(unit_amount as numeric(28,6)) as unit_amount,\n cast(null as numeric(28,6)) as discount_amount,\n cast(null as numeric(28,6)) as tax_amount,\n cast(total_amount as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as numeric(28,6)) as fee_amount,\n cast(null as numeric(28,6)) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as numeric(28,6)) as line_item_id,\n cast(0 as numeric(28,6)) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as numeric(28,6)) as product_id,\n cast(null as TEXT) as product_name,\n transaction_type,\n billing_type,\n cast(null as TEXT) as product_type,\n cast(null as numeric(28,6)) as quantity,\n cast(null as numeric(28,6)) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["header_id", "line_item_id", "source_relation"], "time_spine": null}, "model.shopify.shopify_gql__customer_email_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_email_cohorts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_email_cohorts.sql", "original_file_path": "models/graphql/shopify_gql__customer_email_cohorts.sql", "unique_id": "model.shopify.shopify_gql__customer_email_cohorts", "fqn": ["shopify", "graphql", "shopify_gql__customer_email_cohorts"], "alias": "shopify_gql__customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "44ea3b7181f25acbd8740e7b4084080f926680aeac54311144a29cf6dd814708"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's (on the EMAIL grain) performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "created_at": 1754507518.8832595, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'),\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'email'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify_gql__customer_emails') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify_gql__customer_emails", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customer_emails", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_email_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n email\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.email as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify_gql__customers": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customers", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customers.sql", "original_file_path": "models/graphql/shopify_gql__customers.sql", "unique_id": "model.shopify.shopify_gql__customers", "fqn": ["shopify", "graphql", "shopify_gql__customers"], "alias": "shopify_gql__customers", "checksum": {"name": "sha256", "checksum": "9c21a0b94a0b4b535719777ad86c81e3780eabb5274d18ef3bffa0b82fa98633"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money in shop currency that the customer has spent on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507518.9326966, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customers\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customers as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify_gql__customer'), except=[\"orders_count\", \"total_spent\", \"unique_key\"]) }}\n from {{ ref('int_shopify_gql__customer') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__customers_order_aggregates' )}}\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_gql_abandoned_checkout' )}}\n where customer_id is not null\n group by 1,2\n{% endif %}\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags\n\n from {{ var('shopify_gql_customer_tag' )}}\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n {% endif %}\n\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customers_order_aggregates", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customers.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__customers_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated\n), customers as (\n\n select \n \"customer_id\",\n \"email\",\n \"first_name\",\n \"last_name\",\n \"phone\",\n \"account_state\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"marketing_consent_updated_at\",\n \"created_timestamp\",\n \"updated_timestamp\",\n \"_fivetran_synced\",\n \"source_relation\",\n \"default_address_id\"\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__customers_order_aggregates\n\n\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n where customer_id is not null\n group by 1,2\n\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as customer_tags\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n \n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__customers_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__customers_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify_gql__order_lines": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__order_lines", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__order_lines.sql", "original_file_path": "models/graphql/shopify_gql__order_lines.sql", "unique_id": "model.shopify.shopify_gql__order_lines", "fqn": ["shopify", "graphql", "shopify_gql__order_lines"], "alias": "shopify_gql__order_lines", "checksum": {"name": "sha256", "checksum": "05e8538403e3ee72811dc4d13bee21fd937ef51018cc15f1b72b25fb9f047d03"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item of an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_quantity": {"name": "refunded_quantity", "description": "Quantity of the item that has been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net_refunds": {"name": "quantity_net_refunds", "description": "Quantity ordered, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_compare_at_price": {"name": "variant_compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_position": {"name": "variant_position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sku": {"name": "variant_sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_taxable": {"name": "variant_is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "The weight value of the variant's inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "The unit of measurement for the variant's inventory item's weight.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_subtotal": {"name": "refunded_subtotal", "description": "Subtotal amount of the refund applied to the order line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_net_refunds": {"name": "subtotal_net_refunds", "description": "Subtotal of the order line with refunds subtracted in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_types": {"name": "restock_types", "description": "List of how this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_tax": {"name": "order_line_tax", "description": "Total taxes for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The total pre tax price of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507518.96332, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__order_line') }}\n\n), product_variants as (\n\n select *\n from {{ ref('int_shopify_gql__product_variant') }}\n\n), refunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), \n\n{% if var('shopify_gql_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_gql_product_variant_media') }}\n),\n{% endif %}\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n {{ fivetran_utils.string_agg(\"distinct cast(refunds.restock_type as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as restock_types\n from refunds\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n refunds_aggregated.restock_types,\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n product_variant_media.media_id,\n {% endif %}\n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_line", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__product_variant", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__order_lines.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n\n), product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"\n\n), refunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), \n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\n),\n\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n \n string_agg(distinct cast(refunds.restock_type as TEXT), ', ')\n\n as restock_types\n from refunds\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n refunds_aggregated.restock_types,\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n \n product_variant_media.media_id,\n \n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n\n \n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_line", "sql": " __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__transactions": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__transactions", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__transactions.sql", "original_file_path": "models/graphql/shopify_gql__transactions.sql", "unique_id": "model.shopify.shopify_gql__transactions", "fqn": ["shopify", "graphql", "shopify_gql__transactions"], "alias": "shopify_gql__transactions", "checksum": {"name": "sha256", "checksum": "a515293deae8b33e3c0c262d12f78da246ceff07bf83ee3f6d3458d27c8d7234"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of money included in the transaction in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of money included in the transaction in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of the date the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "exchange_rate": {"name": "exchange_rate", "description": "The exchange rate between the home currency and the currency of sale at the time of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_calculated_amount": {"name": "currency_exchange_calculated_amount", "description": "The total amount of the transaction with the currency exchange rate applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Method of payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_created_timestamp": {"name": "parent_created_timestamp", "description": "Created on timestamp of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_kind": {"name": "parent_kind", "description": "Kind of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_amount": {"name": "parent_amount", "description": "Amount of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_status": {"name": "parent_status", "description": "Status of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "Timestamp when the authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507518.975455, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__transactions\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith transactions as (\n select *\n from {{ var('shopify_gql_transaction') }} \n\n), tender_transactions as (\n\n select *\n from {{ var('shopify_gql_tender_transaction') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__order') }}\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount_shop as parent_amount,\n parent_transactions.status as parent_status,\n orders.location_id,\n orders.source_name \n\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n left join orders\n on transactions.order_id = orders.order_id\n and transactions.source_relation = orders.source_relation\n\n), exchange_rate as (\n\n select\n *,\n {# QUESTION/ISSUE: Cannot confirm if receipt looks the same in GraphQL #}\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount_shop as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.json_parse", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction", "model.shopify_source.stg_shopify_gql__tender_transaction", "model.shopify.int_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__transactions.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\" \n\n), tender_transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount_shop as parent_amount,\n parent_transactions.status as parent_status,\n orders.location_id,\n orders.source_name \n\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n left join orders\n on transactions.order_id = orders.order_id\n and transactions.source_relation = orders.source_relation\n\n), exchange_rate as (\n\n select\n *,\n \n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) as exchange_rate,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) * amount_shop as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__customer_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_cohorts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_cohorts.sql", "original_file_path": "models/graphql/shopify_gql__customer_cohorts.sql", "unique_id": "model.shopify.shopify_gql__customer_cohorts", "fqn": ["shopify", "graphql", "shopify_gql__customer_cohorts"], "alias": "shopify_gql__customer_cohorts", "checksum": {"name": "sha256", "checksum": "ee60abfcf8dbc62b9076eba78f3ae9049684e928f2bb727d820ae9bff594820c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "created_at": 1754507518.8799977, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'),\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'customer_id'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify_gql__customers') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify_gql__customers", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customers", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__customers\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n customer_id\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify_gql__discounts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__discounts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__discounts.sql", "original_file_path": "models/graphql/shopify_gql__discounts.sql", "unique_id": "model.shopify.shopify_gql__discounts", "fqn": ["shopify", "graphql", "shopify_gql__discounts"], "alias": "shopify_gql__discounts", "checksum": {"name": "sha256", "checksum": "7a569223e2c4c3386f19482d1460516239b38fe1ff56f7c435ad56adcbe8a5e3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The case-insensitive discount code that customers use at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether the discount can be used only once per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "Number of times the discount has been used (asynchronously updated).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "Number of unique redeem codes associated with the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether `codes_count` is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "Timestamp when the discount ends or expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "Timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "Current status of the discount (e.g. 'active', 'expired', 'scheduled').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount\u2019s display name in the Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to 'all' or 'entitled' items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "How the discount value is interpreted (e.g., 'percentage', 'fixed_amount').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_discount_amount": {"name": "total_order_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off of orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_discount_amount": {"name": "total_abandoned_checkout_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_line_items_price": {"name": "total_order_line_items_price", "description": "Total monetary amount (in shop currency) of line items for orders that have used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_shipping_cost": {"name": "total_order_shipping_cost", "description": "Total shipping costs for orders that used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_refund_amount": {"name": "total_order_refund_amount", "description": "Total refunded amount (in shop currency) for orders that used this discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer emails who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_discount_amount": {"name": "avg_order_discount_amount", "description": "Average amount (in shop currency) of discount taken off orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "count_orders": {"name": "count_orders", "description": "Count of orders in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customers": {"name": "count_abandoned_checkout_customers", "description": "Distinct count of customers who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customer_emails": {"name": "count_abandoned_checkout_customer_emails", "description": "Distinct count of customer emails who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.0127764, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__discounts\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith discounts_enriched as (\n\n select *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as unique_key\n from {{ ref('int_shopify_gql__discount_code_enriched')}}\n),\n\norders_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__discounts_order_aggregates')}}\n),\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\nabandoned_checkouts_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__discounts_abandoned_checkouts')}}\n),\n{% endif %}\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n {% endif %} \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n {% endif %}\n)\n\nselect * \nfrom aggregates_joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__discount_code_enriched", "package": null, "version": null}, {"name": "int_shopify_gql__discounts_order_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__discounts_abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__discounts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n), __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__discounts_order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), discounts_enriched as (\n\n select *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_code_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n from __dbt__cte__int_shopify_gql__discount_code_enriched\n),\n\norders_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__discounts_order_aggregates\n),\n\n\nabandoned_checkouts_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts\n),\n\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n \n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n \n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n \n)\n\nselect * \nfrom aggregates_joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__discount_code_enriched", "sql": " __dbt__cte__int_shopify_gql__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n)"}, {"id": "model.shopify.int_shopify_gql__order_discount_code", "sql": " __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__discounts_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__discounts_order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}, {"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}, {"id": "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "sql": " __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__inventory_levels": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__inventory_levels", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__inventory_levels.sql", "original_file_path": "models/graphql/shopify_gql__inventory_levels.sql", "unique_id": "model.shopify.shopify_gql__inventory_levels", "fqn": ["shopify", "graphql", "shopify_gql__inventory_levels"], "alias": "shopify_gql__inventory_levels", "checksum": {"name": "sha256", "checksum": "4445bf0d90a7fc6692d5de872684081dc6e76bd29a80094451a7b855651b8cba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of inventory items (which have a 1:1 relationship with product variants) and locations. \nInventory Level = Inventory item @ a Location.\n", "columns": {"inventory_level_id": {"name": "inventory_level_id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The name of the country where the inventory level is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_item_deleted": {"name": "is_inventory_item_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "(DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_created_at": {"name": "inventory_item_created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_updated_at": {"name": "inventory_item_updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_location_deleted": {"name": "is_location_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_location_active": {"name": "is_location_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_created_at": {"name": "location_created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy_location": {"name": "is_legacy_location", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_name": {"name": "location_name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_updated_at": {"name": "location_updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_media_id": {"name": "variant_media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_variant_taxable": {"name": "is_variant_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_orders": {"name": "count_distinct_orders", "description": "The number of distinct orders placed from this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customers": {"name": "count_distinct_customers", "description": "The number of distinct customers (based on customer_id) that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customer_emails": {"name": "count_distinct_customer_emails", "description": "The number of distinct customer emails that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timetamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "The timestamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_refunds": {"name": "subtotal_sold_refunds", "description": "The monetary amount (in shop currency) of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_refunds": {"name": "quantity_sold_refunds", "description": "The quantity of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_subtotal_sold": {"name": "net_subtotal_sold", "description": "Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_quantity_sold": {"name": "net_quantity_sold", "description": "Net quantity sold from this inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_pending": {"name": "count_fulfillment_pending", "description": "Count of currently pending distinct fulfillments for this inventory level. \"Pending\" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_open": {"name": "count_fulfillment_open", "description": "Count of currently open distinct fulfillments for this inventory level. \"Open\" = The fulfillment has been acknowledged by the service and is in processing.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_success": {"name": "count_fulfillment_success", "description": "Count of successful distinct fulfillments for this inventory level. \"Success\" = The fulfillment was successful.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_cancelled": {"name": "count_fulfillment_cancelled", "description": "Count of cancelled distinct fulfillments for this inventory level. \"Cancelled\" = The fulfillment was cancelled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_error": {"name": "count_fulfillment_error", "description": "Count of distinct fulfillments for this inventory level that encountered an error. \"Error\" = There was an error with the fulfillment request.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of distinct fulfillments for this inventory level that failed. \"Failure\" = The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "available_quantity": {"name": "available_quantity", "description": "The available quantity that a merchant can sell, determined by coalescing the `quantity` where inventory_state_name = 'available' from `stg_shopify_gql__inventory_quantity`and `available_quantity` from the deprecated `stg_shopify_gql__inventory_level`. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "incoming_quantity": {"name": "incoming_quantity", "description": "The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "on_hand_quantity": {"name": "on_hand_quantity", "description": "The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "committed_quantity": {"name": "committed_quantity", "description": "The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reserved_quantity": {"name": "reserved_quantity", "description": "The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "damaged_quantity": {"name": "damaged_quantity", "description": "The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "safety_stock_quantity": {"name": "safety_stock_quantity", "description": "The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quality_control_quantity": {"name": "quality_control_quantity", "description": "The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507518.999425, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith inventory_level as (\n\n select *\n from {{ var('shopify_gql_inventory_level') }}\n), \n\ninventory_item as (\n\n select *\n from {{ var('shopify_gql_inventory_item') }}\n),\n\ninventory_quantity as (\n\n select *\n from {{ var('shopify_gql_inventory_quantity') }}\n),\n\nlocation as (\n\n select *\n from {{ var('shopify_gql_location') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n),\n\nproduct as (\n\n select *\n from {{ var('shopify_gql_product') }}\n),\n\ninventory_level_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__inventory_level_aggregates') }}\n),\n\n{% if var('shopify_gql_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_gql_product_variant_media') }}\n),\n{% endif %}\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%}\n {% for inventory_state in inventory_states -%}\n , sum(case when lower(inventory_state_name) = {{ \"'\" ~ inventory_state|lower ~ \"'\" }}\n then inventory_quantity.quantity end) as {{ inventory_state }}_quantity\n {% endfor -%}\n\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.country_name,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n product_variant_media.media_id as variant_media_id,\n {% endif %}\n\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }}\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n {% endif %}\n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n\n {% for inventory_state in inventory_states -%}\n , inventory_quantity_aggregated.{{ inventory_state }}_quantity\n {% endfor -%}\n\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}, {"name": "stg_shopify_gql__location", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "int_shopify_gql__inventory_level_aggregates", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level", "model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__inventory_quantity", "model.shopify_source.stg_shopify_gql__location", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product", "model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__inventory_levels.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify_gql__inventory_level_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), inventory_level as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\n), \n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\n),\n\ninventory_quantity as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\n),\n\nlocation as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n),\n\nproduct as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n),\n\ninventory_level_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__inventory_level_aggregates\n),\n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\n),\n\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n , sum(case when lower(inventory_state_name) = 'incoming'\n then inventory_quantity.quantity end) as incoming_quantity\n , sum(case when lower(inventory_state_name) = 'on_hand'\n then inventory_quantity.quantity end) as on_hand_quantity\n , sum(case when lower(inventory_state_name) = 'available'\n then inventory_quantity.quantity end) as available_quantity\n , sum(case when lower(inventory_state_name) = 'committed'\n then inventory_quantity.quantity end) as committed_quantity\n , sum(case when lower(inventory_state_name) = 'reserved'\n then inventory_quantity.quantity end) as reserved_quantity\n , sum(case when lower(inventory_state_name) = 'damaged'\n then inventory_quantity.quantity end) as damaged_quantity\n , sum(case when lower(inventory_state_name) = 'safety_stock'\n then inventory_quantity.quantity end) as safety_stock_quantity\n , sum(case when lower(inventory_state_name) = 'quality_control'\n then inventory_quantity.quantity end) as quality_control_quantity\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.country_name,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n\n \n product_variant_media.media_id as variant_media_id,\n \n\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n \n\n\n\n\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n \n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n \n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n \n , coalesce(inventory_level_aggregated.count_fulfillment_pending, 0) as count_fulfillment_pending\n \n , coalesce(inventory_level_aggregated.count_fulfillment_open, 0) as count_fulfillment_open\n \n , coalesce(inventory_level_aggregated.count_fulfillment_success, 0) as count_fulfillment_success\n \n , coalesce(inventory_level_aggregated.count_fulfillment_cancelled, 0) as count_fulfillment_cancelled\n \n , coalesce(inventory_level_aggregated.count_fulfillment_error, 0) as count_fulfillment_error\n \n , coalesce(inventory_level_aggregated.count_fulfillment_failure, 0) as count_fulfillment_failure\n \n\n , inventory_quantity_aggregated.incoming_quantity\n , inventory_quantity_aggregated.on_hand_quantity\n , inventory_quantity_aggregated.available_quantity\n , inventory_quantity_aggregated.committed_quantity\n , inventory_quantity_aggregated.reserved_quantity\n , inventory_quantity_aggregated.damaged_quantity\n , inventory_quantity_aggregated.safety_stock_quantity\n , inventory_quantity_aggregated.quality_control_quantity\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_line", "sql": " __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify_gql__inventory_level_aggregates", "sql": " __dbt__cte__int_shopify_gql__inventory_level_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "location_id"], "time_spine": null}, "model.shopify.shopify_gql__customer_emails": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_emails", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_emails.sql", "original_file_path": "models/graphql/shopify_gql__customer_emails.sql", "unique_id": "model.shopify.shopify_gql__customer_emails", "fqn": ["shopify", "graphql", "shopify_gql__customer_emails"], "alias": "shopify_gql__customer_emails", "checksum": {"name": "sha256", "checksum": "af89662d410ca87ac66c148c1f5f7e4194cec7c47a6939591c5bc3b2bc113825"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer email in Shopify.", "columns": {"last_fivetran_synced": {"name": "last_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_ids": {"name": "customer_ids", "description": "Comma-separated list of customer IDs associated with the email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone_numbers": {"name": "phone_numbers", "description": "Comma-separated list of phone numbers associated with this email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_updated_at": {"name": "last_updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money that the customer has spent on orders across their order history (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_account_created_at": {"name": "first_account_created_at", "description": "Timestamp of when the first account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_account_created_at": {"name": "last_account_created_at", "description": "Timestamp of when the last account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507518.937183, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customer_emails as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify_gql__customer_email_rollup'), except=[\"orders_count\", \"total_spent\", \"unique_key\"]) }}\n from {{ ref('int_shopify_gql__customer_email_rollup') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__emails_order_aggregates' )}}\n where email is not null\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ ref('int_shopify_gql__abandoned_checkout' )}}\n where email is not null\n group by 1,2\n{% endif %}\n\n), joined as (\n\n select \n customer_emails.*,\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify_gql__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify_gql__emails_order_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star"], "nodes": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.int_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_emails.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__emails_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), customer_emails as (\n\n select \n \"email\",\n \"source_relation\",\n \"customer_ids\",\n \"phone_numbers\",\n \"customer_tags\",\n \"first_account_created_at\",\n \"last_account_created_at\",\n \"last_updated_at\",\n \"marketing_consent_updated_at\",\n \"last_fivetran_synced\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"first_name\",\n \"last_name\",\n \"account_state\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"default_address_id\"\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer_email_rollup\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__emails_order_aggregates\n where email is not null\n\n\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n where email is not null\n group by 1,2\n\n\n), joined as (\n\n select \n customer_emails.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n \n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__emails_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__emails_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}, {"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.shopify_gql__daily_shop": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__daily_shop", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__daily_shop.sql", "original_file_path": "models/graphql/shopify_gql__daily_shop.sql", "unique_id": "model.shopify.shopify_gql__daily_shop", "fqn": ["shopify", "graphql", "shopify_gql__daily_shop"], "alias": "shopify_gql__daily_shop", "checksum": {"name": "sha256", "checksum": "cab8dd258f8ec32221ccbf94b62a452a5070fc9714d799c939ee0fa6c48f9a5e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a day in your Shop, enriched with a suite of metrics.\n", "columns": {"date_day": {"name": "date_day", "description": "Day for which the shop activity is being measured.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders": {"name": "count_orders", "description": "Count of the distinct orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_line_items": {"name": "count_line_items", "description": "Count of the line items included in orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer email addresses who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "Average adjusted total per order placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount (in shop currency) applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to adjustments (in shop currency) on the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of the discount allocated to this day's orders in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied by customers on orders for this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_locations_ordered_from": {"name": "count_locations_ordered_from", "description": "Distinct locations with orders placed against them on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_discounts": {"name": "count_orders_with_discounts", "description": "Count of orders in which a discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_refunds": {"name": "count_orders_with_refunds", "description": "Count of orders in which there was a refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "Timestamp of the first order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "Timestamp of the last order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_refunded": {"name": "quantity_refunded", "description": "The quantity of goods ORDERED on this day that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net": {"name": "quantity_net", "description": "Net quantity sold from this shop on this day. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants_sold": {"name": "count_variants_sold", "description": "Distinct product variants sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_products_sold": {"name": "count_products_sold", "description": "Distinct products sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_gift_cards_sold": {"name": "quantity_gift_cards_sold", "description": "Quantity of gift cards sold on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_requiring_shipping": {"name": "quantity_requiring_shipping", "description": "Quantity of goods sold on this day that require shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers_abandoned_checkout": {"name": "count_customers_abandoned_checkout", "description": "Count of distinct customers who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails_abandoned_checkout": {"name": "count_customer_emails_abandoned_checkout", "description": "Count of distinct customer emails who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_attempted_delivery": {"name": "count_fulfillment_attempted_delivery", "description": "Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delivered": {"name": "count_fulfillment_delivered", "description": "Count of successful distinct fulfillments successfully delivered on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_in_transit": {"name": "count_fulfillment_in_transit", "description": "Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_out_for_delivery": {"name": "count_fulfillment_out_for_delivery", "description": "Count of distinct fulfillments being delivered to their final destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_ready_for_pickup": {"name": "count_fulfillment_ready_for_pickup", "description": "Count of distinct fulfillments ready for pickup at a shipping depot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_printed": {"name": "count_fulfillment_label_printed", "description": "Count of distinct fulfillments for which a purchased shipping label has been printed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_purchased": {"name": "count_fulfillment_label_purchased", "description": "Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_confirmed": {"name": "count_fulfillment_confirmed", "description": "Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delayed": {"name": "count_fulfillment_delayed", "description": "Count of delayed distinct fulfillments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_line_item_count": {"name": "avg_line_item_count", "description": "Average line item count for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount": {"name": "avg_discount", "description": "Average total discount placed on orders on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_discount_amount": {"name": "avg_shipping_discount_amount", "description": "Average discount amount (in shop currency) allocated toward shipping on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_percentage_calc_discount_amount": {"name": "avg_percentage_calc_discount_amount", "description": "Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_fixed_amount_discount_amount": {"name": "avg_fixed_amount_discount_amount", "description": "Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_sold": {"name": "avg_quantity_sold", "description": "Average quantity sold per order on this day. Includes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_net": {"name": "avg_quantity_net", "description": "Average net quantity sold per order on this day. Excludes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.0266235, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__daily_shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith shop as (\n\n select *\n from {{ var('shopify_gql_shop') }}\n),\n\ncalendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from {{ ref('int_shopify_gql__daily_orders') }}\n),\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\ndaily_abandoned_checkouts as (\n\n select *\n from {{ ref('int_shopify_gql__daily_abandoned_checkouts') }}\n),\n{% endif %}\n\n{% if var('shopify_gql_using_fulfillment_event', false) %}\ndaily_fulfillment as (\n\n select *\n from {{ ref('int_shopify_gql__daily_fulfillment') }}\n),\n{% endif %}\n\nshop_calendar as (\n\n select\n cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n {% endif %}\n\n {% if var('shopify_gql_using_fulfillment_event', false) %}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%}\n , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n {% endif %}\n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n {% endif %}\n\n {% if var('shopify_gql_using_fulfillment_event', false) %}\n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n {% endif %}\n \n)\n\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "shopify__calendar", "package": null, "version": null}, {"name": "int_shopify_gql__daily_orders", "package": null, "version": null}, {"name": "int_shopify_gql__daily_abandoned_checkouts", "package": null, "version": null}, {"name": "int_shopify_gql__daily_fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify_gql__shop", "model.shopify.shopify__calendar", "model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__daily_fulfillment"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__daily_shop.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n), __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), __dbt__cte__int_shopify_gql__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n), __dbt__cte__int_shopify_gql__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n), shop as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\n),\n\ncalendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('day', date_day) as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_orders\n),\n\n\ndaily_abandoned_checkouts as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_abandoned_checkouts\n),\n\n\n\ndaily_fulfillment as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_fulfillment\n),\n\n\nshop_calendar as (\n\n select\n cast(date_trunc('day', calendar.date_day) as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n \n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n \n\n \n \n , coalesce(count_fulfillment_attempted_delivery, 0) as count_fulfillment_attempted_delivery\n \n , coalesce(count_fulfillment_delayed, 0) as count_fulfillment_delayed\n \n , coalesce(count_fulfillment_delivered, 0) as count_fulfillment_delivered\n \n , coalesce(count_fulfillment_failure, 0) as count_fulfillment_failure\n \n , coalesce(count_fulfillment_in_transit, 0) as count_fulfillment_in_transit\n \n , coalesce(count_fulfillment_out_for_delivery, 0) as count_fulfillment_out_for_delivery\n \n , coalesce(count_fulfillment_ready_for_pickup, 0) as count_fulfillment_ready_for_pickup\n \n , coalesce(count_fulfillment_label_printed, 0) as count_fulfillment_label_printed\n \n , coalesce(count_fulfillment_label_purchased, 0) as count_fulfillment_label_purchased\n \n , coalesce(count_fulfillment_confirmed, 0) as count_fulfillment_confirmed\n \n \n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n \n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n \n\n \n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n \n \n)\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__daily_orders", "sql": " __dbt__cte__int_shopify_gql__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}, {"id": "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "sql": " __dbt__cte__int_shopify_gql__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n)"}, {"id": "model.shopify.int_shopify_gql__daily_fulfillment", "sql": " __dbt__cte__int_shopify_gql__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__products": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__products", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__products.sql", "original_file_path": "models/graphql/shopify_gql__products.sql", "unique_id": "model.shopify.shopify_gql__products", "fqn": ["shopify", "graphql", "shopify_gql__products"], "alias": "shopify_gql__products", "checksum": {"name": "sha256", "checksum": "2f676f8591456d8c9e51c9c86d2a748f05045aea58b9b9f9d470c5a5f09e0320"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a product. Hashed on 'product_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity_sold": {"name": "total_quantity_sold", "description": "Quantity of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (in shop currency) of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_net_refunds": {"name": "quantity_sold_net_refunds", "description": "Quantity of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_net_refunds": {"name": "subtotal_sold_net_refunds", "description": "Total amount (in shop currency) of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the product was first ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the product was most recently ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order_line": {"name": "avg_quantity_per_order_line", "description": "Average quantity per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_discount": {"name": "product_total_discount", "description": "Total discounts associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_discount_per_order_line": {"name": "product_avg_discount_per_order_line", "description": "Average discount per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_tax": {"name": "product_total_tax", "description": "Total taxes associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_tax_per_order_line": {"name": "product_avg_tax_per_order_line", "description": "Average taxes per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants": {"name": "count_variants", "description": "Count of product variants.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_product_media": {"name": "has_product_media", "description": "If the product has media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collections": {"name": "collections", "description": "Comma-separated list of collections associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tags": {"name": "tags", "description": "Comma-separated list of tags associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507518.9451697, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__products\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith products as (\n\n select *\n from {{ ref('int_shopify_gql__products_with_aggregates') }}\n\n), product_order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__product_order_line_aggregates')}}\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__products_with_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__product_order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.int_shopify_gql__product_order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__products.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__product_order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), products as (\n\n select *\n from __dbt__cte__int_shopify_gql__products_with_aggregates\n\n), product_order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__product_order_line_aggregates\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__products_with_aggregates", "sql": " __dbt__cte__int_shopify_gql__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__product_order_line_aggregates", "sql": " __dbt__cte__int_shopify_gql__product_order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__orders": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__orders", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__orders.sql", "original_file_path": "models/graphql/shopify_gql__orders.sql", "unique_id": "model.shopify.shopify_gql__orders", "fqn": ["shopify", "graphql", "shopify_gql__orders"], "alias": "shopify_gql__orders", "checksum": {"name": "sha256", "checksum": "2ecbe0d27380045217fefb1d40c135d7557dd131145cb6c48ae86521585cd5e5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing an order. Hashed on 'order_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_amount": {"name": "total_discounts_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_amount": {"name": "total_discounts_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_currency_code": {"name": "total_discounts_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_currency_code": {"name": "total_discounts_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_amount": {"name": "total_line_items_price_shop_amount", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_amount": {"name": "total_line_items_price_pres_amount", "description": "The sum of all line item prices in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_currency_codes": {"name": "total_line_items_price_shop_currency_codes", "description": "The three-letter codes (ISO 4217 format) for the shop currency used to display the total line item price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_currency_codes": {"name": "total_line_items_price_pres_currency_codes", "description": "The three-letter codes (ISO 4217 format) for the presentment currency used to display the total line item price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count": {"name": "line_item_count", "description": "Number of line items included in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_order_seq_number": {"name": "customer_order_seq_number", "description": "The sequential number of the order as it relates to the customer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "new_vs_repeat": {"name": "new_vs_repeat", "description": "Whether the order was a new or repeat order for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_amount": {"name": "shipping_cost_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_amount": {"name": "shipping_cost_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_currency_code": {"name": "shipping_cost_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_currency_code": {"name": "shipping_cost_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to the adjustment on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_total_shipping_tax": {"name": "order_total_shipping_tax", "description": "Total shipping tax attributed to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_tags": {"name": "order_tags", "description": "List of tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number_of_fulfillments": {"name": "number_of_fulfillments", "description": "Total fulfillments for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_services": {"name": "fulfillment_services", "description": "List of fulfillment services for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_companies": {"name": "tracking_companies", "description": "List of tracking companies for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "List of tracking numbers for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_amount": {"name": "total_tip_received_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_amount": {"name": "total_tip_received_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_currency_code": {"name": "total_tip_received_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_currency_code": {"name": "total_tip_received_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied on the order", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507518.9213953, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__orders\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ ref('int_shopify_gql__order') }}\n\n), order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), fulfillments as (\n\n select *\n from {{ ref('int_shopify_gql__order_fulfillment_aggregates') }}\n \n), order_adjustments as (\n\n select *\n from {{ ref('int_shopify_gql__order_adjustment') }}\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount_shop) as order_adjustment_amount,\n sum(tax_amount_shop) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from {{ ref('int_shopify_gql__order_discount_code') }}\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then value_amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then value_amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then value_amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_tags\n \n from {{ var('shopify_gql_order_tag') }}\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n (orders.total_price_shop_amount\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n order_lines.total_line_items_price_pres_amount,\n order_lines.total_line_items_price_shop_amount,\n order_lines.total_line_items_price_pres_currency_codes,\n order_lines.total_line_items_price_shop_currency_codes,\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__order_fulfillment_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__order_adjustment", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}, {"name": "int_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.shopify.shopify_partition_by_cols"], "nodes": ["model.shopify.int_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.int_shopify_gql__order_discount_code", "model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__orders.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_fulfillment_aggregates as (\n\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final\n), __dbt__cte__int_shopify_gql__order_adjustment as (\n\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), fulfillments as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_fulfillment_aggregates\n \n), order_adjustments as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_adjustment\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount_shop) as order_adjustment_amount,\n sum(tax_amount_shop) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then value_amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then value_amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then value_amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n (orders.total_price_shop_amount\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n order_lines.total_line_items_price_pres_amount,\n order_lines.total_line_items_price_shop_amount,\n order_lines.total_line_items_price_pres_currency_codes,\n order_lines.total_line_items_price_shop_currency_codes,\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by \n\n\n customer_id\n\n\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_fulfillment_aggregates as (\n\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify_gql__order_adjustment", "sql": " __dbt__cte__int_shopify_gql__order_adjustment as (\n\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify_gql__order_discount_code", "sql": " __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.int_shopify_gql__discount_code_enriched": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discount_code_enriched", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "unique_id": "model.shopify.int_shopify_gql__discount_code_enriched", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discount_code_enriched"], "alias": "int_shopify_gql__discount_code_enriched", "checksum": {"name": "sha256", "checksum": "d268ffc342662037c84c650aab638ba29d2e2136da8c908bc04508c9a7ddc129"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.8973005, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith discount_redeem_codes as (\n \n select *\n from {{ var('shopify_gql_discount_redeem_code') }}\n),\n\ndiscount_applications as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_basic') }}\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_bxgy') }}\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_free_shipping') }}\n\n {% if var('shopify_gql_using_discount_code_app', False) %}\n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_app') }}\n {% endif %}\n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code", "model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__discount_code_basic", "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "compiled": true, "compiled_code": "\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__products_with_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__products_with_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__products_with_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__products_with_aggregates"], "alias": "int_shopify_gql__products_with_aggregates", "checksum": {"name": "sha256", "checksum": "e193bda9d00349acc767910a46f163e2c0cbf21e745ac7e7268ab3a8429e3cac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.909629, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith products as (\n\n select *\n from {{ var('shopify_gql_product') }}\n), \n\ncollection_product as (\n\n select *\n from {{ var('shopify_gql_collection_product') }}\n),\n\ncollection as (\n\n select *\n from {{ ref('int_shopify_gql__collection') }}\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from {{ var('shopify_gql_product_tag') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n), \n\nproduct_media as (\n\n select *\n from {{ var('shopify_gql_product_media') }}\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter=\"', '\") }} as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='value', delimiter=\"', '\") }} as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_product", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tag", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__collection_product", "model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__product_tag", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customers_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customers_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__customers_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__customers_order_aggregates"], "alias": "int_shopify_gql__customers_order_aggregates", "checksum": {"name": "sha256", "checksum": "d0a702cbdb5b6a1fb0b18326465045024d5cf44d97d55a324cb07c68f6927844"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.922275, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify_gql__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_orders": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_orders", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_orders.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_orders.sql", "unique_id": "model.shopify.int_shopify_gql__daily_orders", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_orders"], "alias": "int_shopify_gql__daily_orders", "checksum": {"name": "sha256", "checksum": "65a52e078d07bc36095bbfe50d4c57f831d112c3229bd68887265843aaf50be4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.9308467, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from {{ ref('shopify_gql__order_lines') }}\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}, {"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.shopify_gql__orders", "model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_orders.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__emails_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__emails_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__emails_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__emails_order_aggregates"], "alias": "int_shopify_gql__emails_order_aggregates", "checksum": {"name": "sha256", "checksum": "46a6101b635fbaac9e4c4f48883e0c13893e9a0ea161d2e182bb07a5a8c5bf81"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.9410381, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n\n), order_aggregates as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify_gql__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from {{ var('shopify_gql_customer') }}\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "shopify_gql__transactions", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_shipping_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_shipping_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__order_shipping_aggregates"], "alias": "int_shopify_gql__order_shipping_aggregates", "checksum": {"name": "sha256", "checksum": "26bcfed5649b9547dd26cec0717b663322f2a11fe33a1018bba98b4a41ec0dce"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.9504988, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from {{ var('shopify_gql_order_shipping_line') }}\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from {{ var('shopify_gql_order_shipping_tax_line') }}\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line", "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_fulfillment_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_fulfillment_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__order_fulfillment_aggregates"], "alias": "int_shopify_gql__order_fulfillment_aggregates", "checksum": {"name": "sha256", "checksum": "eab4b050977a64c32a911238f62cd031e55c7fdf4d70257621648e0100ef3bb6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.9590905, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith fulfillment as (\n\n select *\n from {{ var('shopify_gql_fulfillment') }}\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n{% if var('shopify_gql_using_fulfillment_tracking_info', False) %}\nfulfillment_tracking_info as (\n\n select *\n from {{ var('shopify_gql_fulfillment_tracking_info') }}\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_number as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_url as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_urls,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_company as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment.service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n{% else %}\nfinal as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n count_fulfillments.number_of_fulfillments,\n max(cast(null as {{ dbt.type_string() }})) as tracking_numbers,\n max(cast(null as {{ dbt.type_string() }})) as tracking_urls,\n max(cast(null as {{ dbt.type_string() }})) as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment.service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services\n \n from fulfillment\n left join count_fulfillments\n on fulfillment.order_id = count_fulfillments.order_id\n and fulfillment.source_relation = count_fulfillments.source_relation\n group by 1,2,3\n)\n{% endif %}\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__product_order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__product_order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__product_order_line_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__product_order_line_aggregates"], "alias": "int_shopify_gql__product_order_line_aggregates", "checksum": {"name": "sha256", "checksum": "920e1fc150f4213e06a67d88602663cef81d03069da2be99d221bea87c439370"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.9744399, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('shopify_gql__order_lines') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders')}}\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__orders_order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__orders_order_line_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__orders_order_line_aggregates"], "alias": "int_shopify_gql__orders_order_line_aggregates", "checksum": {"name": "sha256", "checksum": "d4920955a26e1fe0a86640c97e6cf61a18199255c10350c485aad97d1706beab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507514.9831297, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"", "raw_code": "{{ config(\n materialized='table', \n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')\n) }}\n\nwith order_line as (\n\n select *\n from {{ var('shopify_gql_order_line') }}\n\n), tax as (\n\n select\n *\n from {{ var('shopify_gql_tax_line') }}\n\n), shipping as (\n\n select\n *\n from {{ ref('int_shopify_gql__order_shipping_aggregates')}}\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(coalesce(order_line.quantity, 0)) as order_total_quantity,\n sum(coalesce(tax_aggregates.price, 0)) as order_total_tax,\n sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount,\n sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount,\n sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount,\n {{ fivetran_utils.string_agg(\"distinct cast(order_line.price_pres_currency_code as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as total_line_items_price_pres_currency_codes,\n {{ fivetran_utils.string_agg(\"distinct cast(order_line.price_shop_currency_code as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as total_line_items_price_shop_currency_codes\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n order_line_aggregates.total_line_items_price_pres_amount,\n order_line_aggregates.total_line_items_price_shop_amount,\n order_line_aggregates.total_line_items_price_pres_currency_codes,\n order_line_aggregates.total_line_items_price_shop_currency_codes,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line", "package": null, "version": null}, {"name": "int_shopify_gql__order_shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line", "model.shopify.int_shopify_gql__order_shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), order_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n\n), tax as (\n\n select\n *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n\n), shipping as (\n\n select\n *\n from __dbt__cte__int_shopify_gql__order_shipping_aggregates\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(coalesce(order_line.quantity, 0)) as order_total_quantity,\n sum(coalesce(tax_aggregates.price, 0)) as order_total_tax,\n sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount,\n sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount,\n sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount,\n \n string_agg(distinct cast(order_line.price_pres_currency_code as TEXT), ', ')\n\n as total_line_items_price_pres_currency_codes,\n \n string_agg(distinct cast(order_line.price_shop_currency_code as TEXT), ', ')\n\n as total_line_items_price_shop_currency_codes\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n order_line_aggregates.total_line_items_price_pres_amount,\n order_line_aggregates.total_line_items_price_shop_amount,\n order_line_aggregates.total_line_items_price_pres_currency_codes,\n order_line_aggregates.total_line_items_price_shop_currency_codes,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discounts_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discounts_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__discounts_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discounts_order_aggregates"], "alias": "int_shopify_gql__discounts_order_aggregates", "checksum": {"name": "sha256", "checksum": "28bcab684975ed061e765767dcc92ed6ca7a8c8f7235aee1d6c1ac349bae7799"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.9949677, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_discount_code as (\n\n select *\n from {{ ref('int_shopify_gql__order_discount_code') }}\n),\n\norders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__order_discount_code", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n), order_discount_code as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_discount_code", "sql": " __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_fulfillment", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "unique_id": "model.shopify.int_shopify_gql__daily_fulfillment", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_fulfillment"], "alias": "int_shopify_gql__daily_fulfillment", "checksum": {"name": "sha256", "checksum": "6093ddf8463f9914ea1a6f6798a01d89e77af1f43f0ef6f475ceb741b0824740"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.002516, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', false) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith fulfillment_event as (\n\n select *\n from {{ var('shopify_gql_fulfillment_event') }}\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day\n\n {# Possible status values: https://shopify.dev/docs/api/admin-graphql/latest/objects/fulfillmentevent#field-FulfillmentEvent.fields.status #}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%}\n , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customer_email_rollup": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customer_email_rollup", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "unique_id": "model.shopify.int_shopify_gql__customer_email_rollup", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__customer_email_rollup"], "alias": "int_shopify_gql__customer_email_rollup", "checksum": {"name": "sha256", "checksum": "64c2801aa55efb47b328ad86e87224082a02e6ca3e915d5820e53f09078cd22a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507515.012212, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__customer_email_rollup\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by created_timestamp desc) \n as customer_index\n\n from {{ ref('int_shopify_gql__customer') }}\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from {{ var('shopify_gql_customer_tag' )}}\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n {{ fivetran_utils.string_agg(\"distinct cast(customers.customer_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_ids,\n {{ fivetran_utils.string_agg(\"distinct cast(customers.phone as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as phone_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(customer_tags.value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n {{ fivetran_utils.max_bool(\"case when customers.customer_index = 1 then customers.is_tax_exempt else null end\") }} as is_tax_exempt, -- since this changes every year\n {{ fivetran_utils.max_bool(\"customers.is_verified_email\") }} as is_verified_email\n\n -- for all other fields, just take the latest value\n {% set cols = adapter.get_columns_in_relation(ref('int_shopify_gql__customer')) %}\n {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', \n 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp',\n 'is_tax_exempt', 'is_verified_email'] %}\n {% for col in cols %}\n {% if col.column|lower not in except_cols %}\n , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }}\n {% endif %}\n {% endfor %}\n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_partition_by_cols", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.max_bool"], "nodes": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by \n\n\n email\n\n\n order by created_timestamp desc) \n as customer_index\n\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n \n string_agg(distinct cast(customers.customer_id as TEXT), ', ')\n\n as customer_ids,\n \n string_agg(distinct cast(customers.phone as TEXT), ', ')\n\n as phone_numbers,\n \n string_agg(distinct cast(customer_tags.value as TEXT), ', ')\n\n as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n \n\n bool_or( case when customers.customer_index = 1 then customers.is_tax_exempt else null end )\n\n as is_tax_exempt, -- since this changes every year\n \n\n bool_or( customers.is_verified_email )\n\n as is_verified_email\n\n -- for all other fields, just take the latest value\n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.first_name else null end) as first_name\n \n \n \n , max(case when customers.customer_index = 1 then customers.last_name else null end) as last_name\n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.account_state else null end) as account_state\n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.note else null end) as note\n \n \n \n , max(case when customers.customer_index = 1 then customers.currency else null end) as currency\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_consent_state else null end) as marketing_consent_state\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_opt_in_level else null end) as marketing_opt_in_level\n \n \n \n \n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.unique_key else null end) as unique_key\n \n \n \n , max(case when customers.customer_index = 1 then customers.default_address_id else null end) as default_address_id\n \n \n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__orders_order_refunds": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_refunds", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "unique_id": "model.shopify.int_shopify_gql__orders_order_refunds", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__orders_order_refunds"], "alias": "int_shopify_gql__orders_order_refunds", "checksum": {"name": "sha256", "checksum": "5c76fbeaab2dd2bff9d13131a4e4fb19a7716c825c70436c6c42ff0f8f1f6234"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.029287, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith refunds as (\n\n select *\n from {{ var('shopify_gql_refund') }}\n\n), order_line_refunds as (\n\n select *\n from {{ var('shopify_gql_order_line_refund') }}\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__refund", "model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "compiled": true, "compiled_code": "\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discounts_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discounts_abandoned_checkouts"], "alias": "int_shopify_gql__discounts_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "ab9f8f0b086697ca51e0f7ffc6005ff2797126920b53eb844a2e5e9ed34f5da7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.0377429, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ ref('int_shopify_gql__abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from {{ var('shopify_gql_abandoned_checkout_discount_code') }}\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_abandoned_checkouts"], "alias": "int_shopify_gql__daily_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "0afd0194490f924273b15c246f6827d0a5fe61b0a084cbaf0673a36995d63d7b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.047021, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ ref('int_shopify_gql__abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.int_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__inventory_level_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__inventory_level_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__inventory_level_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__inventory_level_aggregates"], "alias": "int_shopify_gql__inventory_level_aggregates", "checksum": {"name": "sha256", "checksum": "e25fd92bb71fc3846d1c2e59cf59c2bbdb36b4d99ba571160394a38b4854625a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.0554216, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__order_line') }}\n),\n\nfulfillment as (\n\n select *\n from {{ var('shopify_gql_fulfillment') }}\n),\n\norders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n {# open and pending are set to be deprecated in the future by Shopify #}\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n {{ dbt_utils.group_by(n=3) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}, {"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify.int_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_refunds"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_line", "sql": " __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_adjustment", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "unique_id": "model.shopify.int_shopify_gql__order_adjustment", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_adjustment"], "alias": "int_shopify_gql__order_adjustment", "checksum": {"name": "sha256", "checksum": "566b80b0396e349d2332bee356ba5a1d82377b770a0ff4905c5e8d0ab17ddcb8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.067324, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_adjustment as (\n\n select *\n from {{ var('shopify_gql_order_adjustment') }}\n),\n\nrefund as (\n\n select *\n from {{ var('shopify_gql_refund') }}\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}, {"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment", "model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "compiled": true, "compiled_code": "\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_discount_code", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "unique_id": "model.shopify.int_shopify_gql__order_discount_code", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_discount_code"], "alias": "int_shopify_gql__order_discount_code", "checksum": {"name": "sha256", "checksum": "2c39fac4f334420b741ddf5b87e22b5ace34b1e5183fde13fefd3564e4a85353"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.0759034, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_discount_code as (\n\n select *\n from {{ var('shopify_gql_order_discount_code') }}\n),\n\ndiscount_application as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code", "model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order.sql", "unique_id": "model.shopify.int_shopify_gql__order", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order"], "alias": "int_shopify_gql__order", "checksum": {"name": "sha256", "checksum": "d39c46fbe7a2d41c1b096e78f78ba70cf0d6930f622f93b2424f3c03517cf0ef"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507515.0844526, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select * \n from {{ var('shopify_gql_order') }}\n)\n\n{% if var('shopify_gql_using_customer_visit', True) %}\n, customer_visit as (\n \n select * \n from {{ var('shopify_gql_customer_visit') }}\n),\n\njoined as (\n\n select \n orders.*,\n customer_visit.referring_site,\n customer_visit.landing_page as landing_site_base_url\n from orders\n left join customer_visit\n on orders.order_id = customer_visit.order_id\n and orders.source_relation = customer_visit.source_relation\n)\n\nselect *\nfrom joined\n\n{% else %}\n\nselect \n orders.*,\n cast(null as {{ dbt.type_string() }}) as referring_site,\n cast(null as {{ dbt.type_string() }}) as landing_site_base_url\nfrom orders\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n)\n\n\n, customer_visit as (\n \n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\n),\n\njoined as (\n\n select \n orders.*,\n customer_visit.referring_site,\n customer_visit.landing_page as landing_site_base_url\n from orders\n left join customer_visit\n on orders.order_id = customer_visit.order_id\n and orders.source_relation = customer_visit.source_relation\n)\n\nselect *\nfrom joined\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__product_variant", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__product_variant.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__product_variant.sql", "unique_id": "model.shopify.int_shopify_gql__product_variant", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__product_variant"], "alias": "int_shopify_gql__product_variant", "checksum": {"name": "sha256", "checksum": "9fd96455970237120c405b947004cecc05bd570910786e801daa7df3cf823a5b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507515.0940394, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith product_variants as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n),\n\ninventory_item as (\n\n select *\n from {{ var('shopify_gql_inventory_item') }}\n),\n\njoined as (\n\n select\n product_variants.*,\n inventory_item.measurement_weight_value as weight,\n inventory_item.measurement_weight_unit as weight_unit\n\n from product_variants\n left join inventory_item\n on product_variants.inventory_item_id = inventory_item.inventory_item_id\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n),\n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\n),\n\njoined as (\n\n select\n product_variants.*,\n inventory_item.measurement_weight_value as weight,\n inventory_item.measurement_weight_unit as weight_unit\n\n from product_variants\n left join inventory_item\n on product_variants.inventory_item_id = inventory_item.inventory_item_id\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__collection": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__collection", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__collection.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__collection.sql", "unique_id": "model.shopify.int_shopify_gql__collection", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__collection"], "alias": "int_shopify_gql__collection", "checksum": {"name": "sha256", "checksum": "79c88599b5c946df080af1c74d71b27aed4f7771a481e1c5f675687ea792341a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507515.103999, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith collection as (\n\n select *\n from {{ var('shopify_gql_collection') }}\n)\n\n{% if var('shopify_gql_using_collection_rule', False) %}\n, collection_rule as (\n\n select *\n from {{ var('shopify_gql_collection_rule') }}\n),\n\nprep_collection_rule as (\n\n select \n collection_id,\n source_relation,\n '{\"column\":\"' || columns || '\",\"relation\":\"' || relation || '\",\"condition\":\"' || condition || '\"}' as rule\n from collection_rule\n),\n\nagg_collection_rule as (\n \n select \n collection_id,\n source_relation,\n '[' || {{ fivetran_utils.string_agg(\"rule\", \"','\") }} || ']' as rules\n from prep_collection_rule\n group by 1,2\n),\n\njoined as (\n\n select \n collection.*,\n agg_collection_rule.rules\n from collection\n left join agg_collection_rule\n on collection.collection_id = agg_collection_rule.collection_id\n and collection.source_relation = agg_collection_rule.source_relation\n)\n\nselect *\nfrom joined\n\n{% else %}\nselect \n collection.*,\n cast(null as {{ dbt.type_string() }}) as rules\nfrom collection\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__collection.sql", "compiled": true, "compiled_code": "\n\nwith collection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\n)\n\n\nselect \n collection.*,\n cast(null as TEXT) as rules\nfrom collection\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__abandoned_checkout", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "unique_id": "model.shopify.int_shopify_gql__abandoned_checkout", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__abandoned_checkout"], "alias": "int_shopify_gql__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "1fbb259948ecde6f3a26ef67f85419e23adb92a76099e8951574038b36f320eb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.1133978, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_gql_abandoned_checkout') }}\n),\n\ncustomer as (\n\n select *\n from {{ var('shopify_gql_customer') }}\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customer": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customer", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__customer.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__customer.sql", "unique_id": "model.shopify.int_shopify_gql__customer", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__customer"], "alias": "int_shopify_gql__customer", "checksum": {"name": "sha256", "checksum": "42669a857b1fdc53d88ee34544dfc078e52ceb729cfe1fe4fc47b48691288e07"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507515.1223028, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customer as (\n\n select *\n from {{ var('shopify_gql_customer') }}\n),\n\ncustomer_address as (\n\n select *\n from {{ var('shopify_gql_customer_address') }}\n),\n\ncustomer_default_address as (\n\n select *\n from customer_address\n where coalesce(is_default, false)\n),\n\njoined as (\n\n select \n customer.*,\n customer_default_address.customer_address_id as default_address_id\n {# QUESTION: maybe add other fields that are helpful (would be new)? #}\n \n from customer \n left join customer_default_address\n on customer_default_address.customer_id = customer.customer_id\n and customer_default_address.source_relation = customer.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__customer.sql", "compiled": true, "compiled_code": "\n\nwith customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\ncustomer_address as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\n),\n\ncustomer_default_address as (\n\n select *\n from customer_address\n where coalesce(is_default, false)\n),\n\njoined as (\n\n select \n customer.*,\n customer_default_address.customer_address_id as default_address_id\n \n \n from customer \n left join customer_default_address\n on customer_default_address.customer_id = customer.customer_id\n and customer_default_address.source_relation = customer.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_line": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_line", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_line.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_line.sql", "unique_id": "model.shopify.int_shopify_gql__order_line", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_line"], "alias": "int_shopify_gql__order_line", "checksum": {"name": "sha256", "checksum": "d31c98c59428343bb271372b984f57abf5a5c0ef5b2acc38050034d694a12bc2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.1310158, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_line as (\n \n select *\n from {{ var('shopify_gql_order_line') }}\n),\n\ntax_line as (\n\n select *\n from {{ var('shopify_gql_tax_line') }}\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n{% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\nfulfillment_order_line_item as (\n\n select *\n from {{ var('shopify_gql_fulfillment_order_line_item') }}\n),\n{% endif %}\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n {% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n {% else %}\n cast(null as {{ dbt.type_int() }}) as fulfillable_quantity,\n cast(null as {{ dbt.type_string() }}) as weight_unit,\n cast(null as {{ dbt.type_float() }}) as weight_value\n {% endif %}\n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n {% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line", "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_line.sql", "compiled": true, "compiled_code": "\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__product_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__product_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__product_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__product_metafields.sql", "unique_id": "model.shopify.shopify_gql__product_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__product_metafields"], "alias": "shopify_gql__product_metafields", "checksum": {"name": "sha256", "checksum": "e662128efd355a0a62e3fdd489bcec4cbec57e7f5630e356a1ce31cdbf150fa5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__product model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4570773, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__product_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify_gql__product\", \n reference_values = ['product'],\n id_column = \"product_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__product_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bc_brenbre'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bc_brenbre\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.product_id,\n \n source_table.handle,\n \n source_table.product_type,\n \n source_table.title,\n \n source_table.vendor,\n \n source_table.status,\n \n source_table.is_deleted,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.published_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bc_brenbre) as metafield_bea81c1795a612d8fc3a232b156467bc_brenbre\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42) as metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.product_id\n and lower(lookup_object.owner_resource) in ('product')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__collection_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__collection_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__collection_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__collection_metafields.sql", "unique_id": "model.shopify.shopify_gql__collection_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__collection_metafields"], "alias": "shopify_gql__collection_metafields", "checksum": {"name": "sha256", "checksum": "32b746ed89b86970bc65491e90337339d95f490f4b53efbad3c2d67b17c29056"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__collection model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4555936, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__collection_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__collection\", \n reference_values = ['collection'],\n id_column = \"collection_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__collection_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bd_gwhebwrb'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bd_gwhebwrb\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c3_wgewvevw'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c3_wgewvevw\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.collection_id,\n \n source_table.is_deleted,\n \n source_table.rule_logic,\n \n source_table.handle,\n \n source_table.sort_order,\n \n source_table.title,\n \n source_table.updated_at,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.rules\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bd_gwhebwrb) as metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c3_wgewvevw) as metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.collection_id\n and lower(lookup_object.owner_resource) in ('collection')\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__customer_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__customer_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__customer_metafields.sql", "unique_id": "model.shopify.shopify_gql__customer_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__customer_metafields"], "alias": "shopify_gql__customer_metafields", "checksum": {"name": "sha256", "checksum": "6baad0e1b580a1d84fbd7b945503df32990beafd0d64caa90296378d893291fb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__customer model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.456093, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__customer\", \n reference_values = ['customer'],\n id_column = \"customer_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__customer_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467be_bwrtbnwrj'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467be_bwrtbnwrj\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c4_brewbrewbre'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c4_brewbrewbre\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.first_name,\n \n source_table.last_name,\n \n source_table.orders_count,\n \n source_table.phone,\n \n source_table.account_state,\n \n source_table.is_tax_exempt,\n \n source_table.total_spent,\n \n source_table.is_verified_email,\n \n source_table.note,\n \n source_table.currency,\n \n source_table.marketing_consent_state,\n \n source_table.marketing_opt_in_level,\n \n source_table.marketing_consent_updated_at,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.default_address_id\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467be_bwrtbnwrj) as metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c4_brewbrewbre) as metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.customer_id\n and lower(lookup_object.owner_resource) in ('customer')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__shop_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__shop_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__shop_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__shop_metafields.sql", "unique_id": "model.shopify.shopify_gql__shop_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__shop_metafields"], "alias": "shopify_gql__shop_metafields", "checksum": {"name": "sha256", "checksum": "e4981591a733469551b3e4de1f177957b0575b0f2a7a2fd1a9c87926c9be0fad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__shop model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4580421, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__shop_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify_gql__shop\", \n reference_values = ['shop'],\n id_column = \"shop_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__shop_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c0_gwrgew'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c0_gwrgew\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.shop_id,\n \n source_table.name,\n \n source_table.is_deleted,\n \n source_table.address_1,\n \n source_table.address_2,\n \n source_table.city,\n \n source_table.province,\n \n source_table.province_code,\n \n source_table.country,\n \n source_table.country_code,\n \n source_table.country_name,\n \n source_table.zip,\n \n source_table.latitude,\n \n source_table.longitude,\n \n source_table.currency,\n \n source_table.enabled_presentment_currencies,\n \n source_table.customer_email,\n \n source_table.email,\n \n source_table.domain,\n \n source_table.phone,\n \n source_table.timezone_abbreviation,\n \n source_table.timezone_offset,\n \n source_table.timezone_offset_minutes,\n \n source_table.iana_timezone,\n \n source_table.primary_locale,\n \n source_table.weight_unit,\n \n source_table.myshopify_domain,\n \n source_table.shop_owner,\n \n source_table.has_shipping_taxes,\n \n source_table.has_taxes_included_in_price,\n \n source_table.has_storefront,\n \n source_table.has_checkout_api_supported,\n \n source_table.money_format,\n \n source_table.money_in_emails_format,\n \n source_table.money_with_currency_format,\n \n source_table.money_with_currency_in_emails_format,\n \n source_table.plan_display_name,\n \n source_table.is_password_enabled,\n \n source_table.is_setup_required,\n \n source_table.created_at,\n \n source_table.updated_at,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c0_gwrgew) as metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.shop_id\n and lower(lookup_object.owner_resource) in ('shop')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__order_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__order_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__order_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__order_metafields.sql", "unique_id": "model.shopify.shopify_gql__order_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__order_metafields"], "alias": "shopify_gql__order_metafields", "checksum": {"name": "sha256", "checksum": "9fac4f22b24cd29d081991b5d98aa549f4e86f07b07d203a5ff11c21b304b7a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__order model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4566, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__order_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__order\", \n reference_values = ['order'],\n id_column = \"order_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}\n\n{# Does not contain total_line_items_price columns as these are calculated in shopify_gql_orders__order_line_aggregates in GraphQL #}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__order_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bf_htynetnbw'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bf_htynetnbw\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.order_id,\n \n source_table.user_id,\n \n source_table.total_discounts_pres_amount,\n \n source_table.total_discounts_pres_currency_code,\n \n source_table.total_discounts_shop_amount,\n \n source_table.total_discounts_shop_currency_code,\n \n source_table.total_price_pres_amount,\n \n source_table.total_price_pres_currency_code,\n \n source_table.total_price_shop_amount,\n \n source_table.total_price_shop_currency_code,\n \n source_table.total_tax_pres_amount,\n \n source_table.total_tax_pres_currency_code,\n \n source_table.total_tax_shop_amount,\n \n source_table.total_tax_shop_currency_code,\n \n source_table.source_name,\n \n source_table.subtotal_price_pres_amount,\n \n source_table.subtotal_price_pres_currency_code,\n \n source_table.subtotal_price_shop_amount,\n \n source_table.subtotal_price_shop_currency_code,\n \n source_table.has_taxes_included,\n \n source_table.total_weight,\n \n source_table.total_tip_received_pres_amount,\n \n source_table.total_tip_received_pres_currency_code,\n \n source_table.total_tip_received_shop_amount,\n \n source_table.total_tip_received_shop_currency_code,\n \n source_table.location_id,\n \n source_table.name,\n \n source_table.note,\n \n source_table.number,\n \n source_table.cancel_reason,\n \n source_table.created_timestamp,\n \n source_table.cancelled_timestamp,\n \n source_table.closed_timestamp,\n \n source_table.processed_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.currency,\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.financial_status,\n \n source_table.fulfillment_status,\n \n source_table.billing_address_address_1,\n \n source_table.billing_address_address_2,\n \n source_table.billing_address_city,\n \n source_table.billing_address_company,\n \n source_table.billing_address_country,\n \n source_table.billing_address_country_code,\n \n source_table.billing_address_first_name,\n \n source_table.billing_address_last_name,\n \n source_table.billing_address_latitude,\n \n source_table.billing_address_longitude,\n \n source_table.billing_address_name,\n \n source_table.billing_address_phone,\n \n source_table.billing_address_province,\n \n source_table.billing_address_province_code,\n \n source_table.billing_address_zip,\n \n source_table.browser_ip,\n \n source_table.shipping_cost_pres_amount,\n \n source_table.shipping_cost_pres_currency_code,\n \n source_table.shipping_cost_shop_amount,\n \n source_table.shipping_cost_shop_currency_code,\n \n source_table.shipping_address_address_1,\n \n source_table.shipping_address_address_2,\n \n source_table.shipping_address_city,\n \n source_table.shipping_address_company,\n \n source_table.shipping_address_country,\n \n source_table.shipping_address_country_code,\n \n source_table.shipping_address_first_name,\n \n source_table.shipping_address_last_name,\n \n source_table.shipping_address_latitude,\n \n source_table.shipping_address_longitude,\n \n source_table.shipping_address_name,\n \n source_table.shipping_address_phone,\n \n source_table.shipping_address_province,\n \n source_table.shipping_address_province_code,\n \n source_table.shipping_address_zip,\n \n source_table.app_id,\n \n source_table.customer_locale,\n \n source_table.order_status_url,\n \n source_table.presentment_currency,\n \n source_table.is_test_order,\n \n source_table.is_deleted,\n \n source_table.has_buyer_accepted_marketing,\n \n source_table.is_confirmed,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.referring_site,\n \n source_table.landing_site_base_url\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bf_htynetnbw) as metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe) as metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.order_id\n and lower(lookup_object.owner_resource) in ('order')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88\n)\n\nselect *\nfrom final\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__product_variant_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__product_variant_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__product_variant_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__product_variant_metafields.sql", "unique_id": "model.shopify.shopify_gql__product_variant_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__product_variant_metafields"], "alias": "shopify_gql__product_variant_metafields", "checksum": {"name": "sha256", "checksum": "78d300b3aa3591fe3640572e9da4b3d8deb530699a6526cbcc9eb6b629ef698b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__product_variant model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4575734, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__product_variant_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__product_variant\",\n reference_values = ['variant', 'productvariant'],\n id_column = \"variant_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__product_variant_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__line_item_enhanced": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__line_item_enhanced", "resource_type": "model", "package_name": "shopify", "path": "graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "original_file_path": "models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "unique_id": "model.shopify.shopify_gql__line_item_enhanced", "fqn": ["shopify", "graphql", "standardized_models", "shopify_gql__line_item_enhanced"], "alias": "shopify_gql__line_item_enhanced", "checksum": {"name": "sha256", "checksum": "397d1387f769ec2a75bd7c041e9c6fd40a46cd420f15904cd27c12ca712fcc84"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It\u2019s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details.", "columns": {"header_id": {"name": "header_id", "description": "Id of corresponding order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_id": {"name": "line_item_id", "description": "Order line item id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_index": {"name": "line_item_index", "description": "Unique index of each line item id for each order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "record_type": {"name": "record_type", "description": "header or line_item", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the order was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "header_status": {"name": "header_status", "description": "Status of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_type": {"name": "billing_type", "description": "NA for Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "Currency used in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "Product ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_name": {"name": "product_name", "description": "Product name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "Product type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_type": {"name": "transaction_type", "description": "Transaction type (Charge, Refund, etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of units of this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_amount": {"name": "unit_amount", "description": "Amount per unit, or the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_amount": {"name": "discount_amount", "description": "The discount amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "The tax amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_amount": {"name": "total_amount", "description": "Order total", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_id": {"name": "payment_id", "description": "Transaction ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Transaction gateway for Shopify ('gift card', 'shopify payments', etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method_id": {"name": "payment_method_id", "description": "Shopify does not have a particular payment_method_id, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_at": {"name": "payment_at", "description": "Transaction processed timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fee_amount": {"name": "fee_amount", "description": "The total shipping fee associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_amount": {"name": "refund_amount", "description": "Refund amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_id": {"name": "subscription_id", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_plan": {"name": "subscription_plan", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_started_at": {"name": "subscription_period_started_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_ended_at": {"name": "subscription_period_ended_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_status": {"name": "subscription_status", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "Customer associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_created_at": {"name": "customer_created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_level": {"name": "customer_level", "description": "Whether 'account' or 'customer'. For Shopify, the level is 'customer'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_name": {"name": "customer_name", "description": "Customer name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_company": {"name": "customer_company", "description": "Associated customer's company noted on the shipping address if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "Customer email", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_city": {"name": "customer_city", "description": "Customer's shipping address city", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_country": {"name": "customer_country", "description": "Customer's shipping address country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/standardized_models/shopify__standardized_models.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4603796, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__line_item_enhanced\"", "raw_code": "{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith line_items as (\n\n select * \n from {{ var('shopify_gql_order_line')}}\n\n), orders as ( \n\n select * \n from {{ var('shopify_gql_order')}}\n\n), product as (\n\n select *\n from {{ var('shopify_gql_product')}}\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n {{ fivetran_utils.string_agg(\"cast (transaction_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} AS transaction_id,\n {{ fivetran_utils.string_agg(\"cast (processed_timestamp as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as processed_timestamp,\n {{ fivetran_utils.string_agg('gateway', \"', '\") }} as gateway\n\n from {{ var('shopify_gql_transaction')}}\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount_shop) as total_order_refund_amount\n from {{ var('shopify_gql_transaction')}}\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal_shop_amount + total_tax_shop_amount) as total_refund_amount\n from {{ var('shopify_gql_order_line_refund')}}\n group by 1,2\n\n), customer as (\n\n select *\n from {{ var('shopify_gql_customer')}}\n\n), shipping as (\n\n select * \n from {{ ref('int_shopify_gql__order_shipping_aggregates')}}\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price_shop_amount as unit_amount,\n o.total_discounts_shop_amount as discount_amount,\n o.total_tax_shop_amount as tax_amount,\n (li.quantity * li.price_shop_amount) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as {{ dbt.type_string() }}) as subscription_id,\n cast(null as {{ dbt.type_string() }}) as subscription_plan,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at,\n cast(null as {{ dbt.type_string() }}) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n {{ dbt.concat([\"c.first_name\", \"''\", \"c.last_name\"]) }} as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id,\n cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as {{ dbt.type_numeric() }}) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as {{ dbt.type_numeric() }}) as quantity,\n cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,\n cast(null as {{ dbt.type_numeric() }}) as discount_amount,\n cast(null as {{ dbt.type_numeric() }}) as tax_amount,\n cast(total_amount as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as {{ dbt.type_numeric() }}) as fee_amount,\n cast(null as {{ dbt.type_numeric() }}) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as {{ dbt.type_numeric() }}) as line_item_id,\n cast(0 as {{ dbt.type_numeric() }}) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as {{ dbt.type_numeric() }}) as product_id,\n cast(null as {{ dbt.type_string() }}) as product_name,\n transaction_type,\n billing_type,\n cast(null as {{ dbt.type_string() }}) as product_type,\n cast(null as {{ dbt.type_numeric() }}) as quantity,\n cast(null as {{ dbt.type_numeric() }}) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__order_shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.dbt.type_timestamp", "macro.dbt.concat", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__transaction", "model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__customer", "model.shopify.int_shopify_gql__order_shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), line_items as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n\n), orders as ( \n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n \n string_agg(cast (transaction_id as TEXT), ', ')\n\n AS transaction_id,\n \n string_agg(cast (processed_timestamp as TEXT), ', ')\n\n as processed_timestamp,\n \n string_agg(gateway, ', ')\n\n as gateway\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount_shop) as total_order_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal_shop_amount + total_tax_shop_amount) as total_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n group by 1,2\n\n), customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n\n), shipping as (\n\n select * \n from __dbt__cte__int_shopify_gql__order_shipping_aggregates\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price_shop_amount as unit_amount,\n o.total_discounts_shop_amount as discount_amount,\n o.total_tax_shop_amount as tax_amount,\n (li.quantity * li.price_shop_amount) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as TEXT) as subscription_id,\n cast(null as TEXT) as subscription_plan,\n cast(null as timestamp) as subscription_period_started_at,\n cast(null as timestamp) as subscription_period_ended_at,\n cast(null as TEXT) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n c.first_name || '' || c.last_name as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as numeric(28,6)) as line_item_id,\n cast(line_item_index as numeric(28,6)) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as numeric(28,6)) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as numeric(28,6)) as quantity,\n cast(unit_amount as numeric(28,6)) as unit_amount,\n cast(null as numeric(28,6)) as discount_amount,\n cast(null as numeric(28,6)) as tax_amount,\n cast(total_amount as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as numeric(28,6)) as fee_amount,\n cast(null as numeric(28,6)) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as numeric(28,6)) as line_item_id,\n cast(0 as numeric(28,6)) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as numeric(28,6)) as product_id,\n cast(null as TEXT) as product_name,\n transaction_type,\n billing_type,\n cast(null as TEXT) as product_type,\n cast(null as numeric(28,6)) as quantity,\n cast(null as numeric(28,6)) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["header_id", "line_item_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_shipping_line.sql", "original_file_path": "models/rest/stg_shopify__order_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_shipping_line"], "alias": "stg_shopify__order_shipping_line", "checksum": {"name": "sha256", "checksum": "2a53345accb04b023d123b631a1fe94ad8a69fd7e81658e7f9b0c26389f4fa02"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_third_party_required": {"name": "is_third_party_required", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5373313, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_line_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_shopify__order_shipping_line_tmp')),\n staging_columns=get_order_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n discounted_price_set\n \n as \n \n discounted_price_set\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_shipping_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_allocation.sql", "original_file_path": "models/rest/stg_shopify__discount_allocation.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation", "fqn": ["shopify_source", "rest", "stg_shopify__discount_allocation"], "alias": "stg_shopify__discount_allocation", "checksum": {"name": "sha256", "checksum": "834136ae3fedb83876370eb77b57f96fe24028aee02681d1dc2ac6d0d7d3553e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing allocation amounts from discount applications across specific order lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The presentment money currency code for the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The shop money currency code for the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to. Used to join with the discount application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount allocation within the list of allocations on an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5698698, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_allocation_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_shopify__discount_allocation_tmp')),\n staging_columns=get_discount_allocation_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_allocation_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_allocation.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set_presentment_money_amount\n \n as \n \n amount_set_presentment_money_amount\n \n, \n \n \n amount_set_presentment_money_currency_code\n \n as \n \n amount_set_presentment_money_currency_code\n \n, \n \n \n amount_set_shop_money_amount\n \n as \n \n amount_set_shop_money_amount\n \n, \n \n \n amount_set_shop_money_currency_code\n \n as \n \n amount_set_shop_money_currency_code\n \n, \n \n \n discount_application_index\n \n as \n \n discount_application_index\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_application_index", "order_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order.sql", "original_file_path": "models/rest/stg_shopify__order.sql", "unique_id": "model.shopify_source.stg_shopify__order", "fqn": ["shopify_source", "rest", "stg_shopify__order"], "alias": "stg_shopify__order", "checksum": {"name": "sha256", "checksum": "6610716cd337bcefb217f0cf6588b855c6ecf4045a690e229a1c57b19b48241e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.4904065, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__order_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_order_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n {{ shopify_source.json_to_string(\"total_discounts_set\", source_columns_in_relation) }} as total_discounts_set,\n total_line_items_price,\n {{ shopify_source.json_to_string(\"total_line_items_price_set\", source_columns_in_relation) }} as total_line_items_price_set,\n total_price,\n {{ shopify_source.json_to_string(\"total_price_set\", source_columns_in_relation) }} as total_price_set,\n {{ shopify_source.json_to_string(\"total_tax_set\", source_columns_in_relation) }} as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(cancelled_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as cancelled_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n {{ shopify_source.json_to_string(\"total_shipping_price_set\", source_columns_in_relation) }} as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n cast(null as TEXT) as \n \n total_discounts_set\n \n , \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n cast(null as TEXT) as \n \n total_line_items_price_set\n \n , \n \n \n total_price\n \n as \n \n total_price\n \n, \n cast(null as TEXT) as \n \n total_price_set\n \n , \n cast(null as TEXT) as \n \n total_tax_set\n \n , \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n cast(null as float) as \n \n total_tip_received\n \n , \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n order_number\n \n as \n \n order_number\n \n, \n \n \n cancel_reason\n \n as \n \n cancel_reason\n \n, \n \n \n cancelled_at\n \n as \n \n cancelled_at\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n checkout_token\n \n as \n \n checkout_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n financial_status\n \n as \n \n financial_status\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n browser_ip\n \n as \n \n browser_ip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n cast(null as TEXT) as \n \n total_shipping_price_set\n \n , \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as integer) as \n \n app_id\n \n , \n cast(null as integer) as \n \n checkout_id\n \n , \n cast(null as TEXT) as \n \n client_details_user_agent\n \n , \n cast(null as TEXT) as \n \n customer_locale\n \n , \n cast(null as TEXT) as \n \n order_status_url\n \n , \n cast(null as TEXT) as \n \n presentment_currency\n \n , \n cast(null as boolean) as \n \n confirmed\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n total_discounts_set as total_discounts_set,\n total_line_items_price,\n total_line_items_price_set as total_line_items_price_set,\n total_price,\n total_price_set as total_price_set,\n total_tax_set as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(cancelled_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as cancelled_timestamp,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n total_shipping_price_set as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__transaction.sql", "original_file_path": "models/rest/stg_shopify__transaction.sql", "unique_id": "model.shopify_source.stg_shopify__transaction", "fqn": ["shopify_source", "rest", "stg_shopify__transaction"], "alias": "stg_shopify__transaction", "checksum": {"name": "sha256", "checksum": "d1c4d552029ac5491af20f77ec0fd7a2a98236f3c25c2dc1e6a613a4dbbb10ad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5008023, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__transaction_tmp')) %}\n\nwith base as (\n\n select * from {{ ref('stg_shopify__transaction_tmp') }}\n\n),\n\nfields as (\n\n select\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n {{ shopify_source.json_to_string(\"receipt\", source_columns_in_relation) }} as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(authorization_expires_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as authorization_expires_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('transaction_pass_through_columns') }}\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__transaction.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * from \"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"\n\n),\n\nfields as (\n\n select\n\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\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 processed_at\n \n as \n \n processed_at\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n payment_avs_result_code\n \n as \n \n payment_avs_result_code\n \n, \n \n \n payment_credit_card_bin\n \n as \n \n payment_credit_card_bin\n \n, \n \n \n payment_cvv_result_code\n \n as \n \n payment_cvv_result_code\n \n, \n \n \n payment_credit_card_number\n \n as \n \n payment_credit_card_number\n \n, \n \n \n payment_credit_card_company\n \n as \n \n payment_credit_card_company\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n receipt\n \n as \n \n receipt\n \n, \n \n \n currency_exchange_id\n \n as \n \n currency_exchange_id\n \n, \n \n \n currency_exchange_adjustment\n \n as \n \n currency_exchange_adjustment\n \n, \n \n \n currency_exchange_original_amount\n \n as \n \n currency_exchange_original_amount\n \n, \n \n \n currency_exchange_final_amount\n \n as \n \n currency_exchange_final_amount\n \n, \n \n \n currency_exchange_currency\n \n as \n \n currency_exchange_currency\n \n, \n \n \n error_code\n \n as \n \n error_code\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as timestamp) as \n \n authorization_expires_at\n \n , \n \n \n \n \n \"authorization\"\n \n \n \n as authorization_code \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n receipt as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(authorization_expires_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as authorization_expires_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["source_relation", "transaction_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_basic.sql", "original_file_path": "models/rest/stg_shopify__discount_code_basic.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_basic"], "alias": "stg_shopify__discount_code_basic", "checksum": {"name": "sha256", "checksum": "36e6431d35cf4791624e49bc76a0f3124e087452e777031fcfb250818ba0b9b5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata about basic discount codes created by merchants.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5746932, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_basic_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_shopify__discount_code_basic_tmp')),\n staging_columns=get_discount_code_basic_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_basic_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_basic.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as TEXT) as \n \n title\n \n , \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__fulfillment.sql", "original_file_path": "models/rest/stg_shopify__fulfillment.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment", "fqn": ["shopify_source", "rest", "stg_shopify__fulfillment"], "alias": "stg_shopify__fulfillment", "checksum": {"name": "sha256", "checksum": "ca3697aa2d2acc4e0714a2689336a063495e3bc64cc9515944e36f7ee55f1810"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5188942, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_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_shopify__fulfillment_tmp')),\n staging_columns=get_fulfillment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n shipment_status\n \n as \n \n shipment_status\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n tracking_company\n \n as \n \n tracking_company\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n tracking_numbers\n \n as \n \n tracking_numbers\n \n, \n \n \n tracking_urls\n \n as \n \n tracking_urls\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["fulfillment_id"], "time_spine": null}, "model.shopify_source.stg_shopify__metafield": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__metafield.sql", "original_file_path": "models/rest/stg_shopify__metafield.sql", "unique_id": "model.shopify_source.stg_shopify__metafield", "fqn": ["shopify_source", "rest", "stg_shopify__metafield"], "alias": "stg_shopify__metafield", "checksum": {"name": "sha256", "checksum": "e7e2a824bf892f5c1d89602d012a6ccdce8e45362840db93f341c741eb754596"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_id": {"name": "metafield_id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource_id": {"name": "owner_resource_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Coalescing of type and value_type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_reference": {"name": "metafield_reference", "description": "Combination of the namespace and key columns. This field is key for metafield mapping in downstream models.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating the most up to date record identified by the most recent updated_at field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.532854, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield\"", "raw_code": "{{ config(enabled=(var('shopify_using_metafield', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__metafield_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_shopify__metafield_tmp')),\n staging_columns=get_metafield_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n lower({{ dbt.concat([\"namespace\",\"'_'\",\"key\"]) }}) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield_tmp", "package": null, "version": null}, {"name": "stg_shopify__metafield_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_metafield_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt.concat"], "nodes": ["model.shopify_source.stg_shopify__metafield_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__metafield.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n 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 id\n \n as \n \n id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n namespace\n \n as \n \n namespace\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n owner_resource\n \n as \n \n owner_resource\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n lower(namespace || '_' || key) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["metafield_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_bxgy.sql", "original_file_path": "models/rest/stg_shopify__discount_code_bxgy.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_bxgy"], "alias": "stg_shopify__discount_code_bxgy", "checksum": {"name": "sha256", "checksum": "b47ced0eb2ea79958678c2ed4453bb46573b8b484f255c2e709af7ebe51453b8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for Buy X Get Y-style discount codes in Shopify, where discounts are applied based on product quantity thresholds.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5762315, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_bxgy_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_shopify__discount_code_bxgy_tmp')),\n staging_columns=get_discount_code_bxgy_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_bxgy_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_bxgy.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n cast(null as integer) as \n \n recurring_cycle_limit\n \n , \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__tender_transaction.sql", "original_file_path": "models/rest/stg_shopify__tender_transaction.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction", "fqn": ["shopify_source", "rest", "stg_shopify__tender_transaction"], "alias": "stg_shopify__tender_transaction", "checksum": {"name": "sha256", "checksum": "d4d8a6ff82d57efdf1f1814199d70d44444154dc08519b85aad3258b7fadeaa6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5569327, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__tender_transaction_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_shopify__tender_transaction_tmp')),\n staging_columns=get_tender_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tender_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__tender_transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n payment_method\n \n as \n \n payment_method\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n remote_reference\n \n as \n \n remote_reference\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["transaction_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_shipping_tax_line.sql", "original_file_path": "models/rest/stg_shopify__order_shipping_tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_shipping_tax_line"], "alias": "stg_shopify__order_shipping_tax_line", "checksum": {"name": "sha256", "checksum": "26fc98d9b37f25a22d931bc0786714888c2e7809a61b9e2cdd84c6c02c1deee4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this record is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5387824, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_tax_line_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_shopify__order_shipping_tax_line_tmp')),\n staging_columns=get_order_shipping_tax_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_shipping_tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_shipping_line_id\n \n as \n \n order_shipping_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_shipping_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__shop": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__shop.sql", "original_file_path": "models/rest/stg_shopify__shop.sql", "unique_id": "model.shopify_source.stg_shopify__shop", "fqn": ["shopify_source", "rest", "stg_shopify__shop"], "alias": "stg_shopify__shop", "checksum": {"name": "sha256", "checksum": "5530f9eaba5fde4a59b8556a0f242759bc63e380c45442ae1d5bc2a95225c3af"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_checkout_api_supported": {"name": "has_checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_county_taxes": {"name": "has_county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_card_reader_giveaway": {"name": "is_eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_payments": {"name": "is_eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_google_apps_login_enabled": {"name": "is_google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_password_enabled": {"name": "is_password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_pre_launch_enabled": {"name": "is_pre_launch_enabled", "description": "Boolean representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_extra_payments_agreement_required": {"name": "is_extra_payments_agreement_required", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_setup_required": {"name": "is_setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_shipping_taxes": {"name": "has_shipping_taxes", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included_in_price": {"name": "has_taxes_included_in_price", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5554335, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__shop_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__shop_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_shop_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n {{ shopify_source.json_to_string(\"enabled_presentment_currencies\", source_columns_in_relation) }} as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop_tmp", "package": null, "version": null}, {"name": "stg_shopify__shop_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_shop_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__shop_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__shop.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\n \n, \n \n \n checkout_api_supported\n \n as \n \n checkout_api_supported\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n cookie_consent_level\n \n as \n \n cookie_consent_level\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n county_taxes\n \n as \n \n county_taxes\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_email\n \n as \n \n customer_email\n \n, \n \n \n domain\n \n as \n \n domain\n \n, \n \n \n eligible_for_card_reader_giveaway\n \n as \n \n eligible_for_card_reader_giveaway\n \n, \n \n \n eligible_for_payments\n \n as \n \n eligible_for_payments\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n enabled_presentment_currencies\n \n as \n \n enabled_presentment_currencies\n \n, \n \n \n google_apps_domain\n \n as \n \n google_apps_domain\n \n, \n \n \n google_apps_login_enabled\n \n as \n \n google_apps_login_enabled\n \n, \n \n \n has_discounts\n \n as \n \n has_discounts\n \n, \n \n \n has_gift_cards\n \n as \n \n has_gift_cards\n \n, \n \n \n has_storefront\n \n as \n \n has_storefront\n \n, \n \n \n iana_timezone\n \n as \n \n iana_timezone\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 longitude\n \n as \n \n longitude\n \n, \n \n \n money_format\n \n as \n \n money_format\n \n, \n \n \n money_in_emails_format\n \n as \n \n money_in_emails_format\n \n, \n \n \n money_with_currency_format\n \n as \n \n money_with_currency_format\n \n, \n \n \n money_with_currency_in_emails_format\n \n as \n \n money_with_currency_in_emails_format\n \n, \n \n \n myshopify_domain\n \n as \n \n myshopify_domain\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n password_enabled\n \n as \n \n password_enabled\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n plan_display_name\n \n as \n \n plan_display_name\n \n, \n \n \n plan_name\n \n as \n \n plan_name\n \n, \n \n \n pre_launch_enabled\n \n as \n \n pre_launch_enabled\n \n, \n \n \n primary_locale\n \n as \n \n primary_locale\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n requires_extra_payments_agreement\n \n as \n \n requires_extra_payments_agreement\n \n, \n \n \n setup_required\n \n as \n \n setup_required\n \n, \n \n \n shop_owner\n \n as \n \n shop_owner\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n tax_shipping\n \n as \n \n tax_shipping\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n enabled_presentment_currencies as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["shop_id"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_level.sql", "original_file_path": "models/rest/stg_shopify__inventory_level.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_level"], "alias": "stg_shopify__inventory_level", "checksum": {"name": "sha256", "checksum": "79a7a96d7bd30b27bd745353030e4bd5a8f5bfa29cdc816e938a7b323d0a1d01"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available_quantity": {"name": "available_quantity", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.521515, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_level_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_shopify__inventory_level_tmp')),\n staging_columns=get_inventory_level_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_level_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_level_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_level.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n can_deactivate\n \n as \n \n can_deactivate\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deactivation_alert\n \n as \n \n deactivation_alert\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as integer) as \n \n available\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "inventory_level_id", "location_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_redeem_code.sql", "original_file_path": "models/rest/stg_shopify__discount_redeem_code.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code", "fqn": ["shopify_source", "rest", "stg_shopify__discount_redeem_code"], "alias": "stg_shopify__discount_redeem_code", "checksum": {"name": "sha256", "checksum": "999024fc5a37f651b415e8f306756d8c0a6c78043c125950dd1cb95377237b6d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each redeem code is tied to a parent discount and may be created by an app or manually.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This is updated asynchronously and may differ from real-time usage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (typically an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount the redeem code is associated with (e.g., `discount_code_basic`, `discount_code_app`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5802379, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_redeem_code_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_shopify__discount_redeem_code_tmp')),\n staging_columns=get_discount_redeem_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_redeem_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_redeem_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_by_description\n \n as \n \n created_by_description\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_by_title\n \n as \n \n created_by_title\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n discount_type\n \n as \n \n discount_type\n \n, \n \n \n id\n \n as \n \n id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__customer": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__customer.sql", "original_file_path": "models/rest/stg_shopify__customer.sql", "unique_id": "model.shopify_source.stg_shopify__customer", "fqn": ["shopify_source", "rest", "stg_shopify__customer"], "alias": "stg_shopify__customer", "checksum": {"name": "sha256", "checksum": "2493d71ed3533a8938368c51239486949c4a399cd4005d846f8008eb82b945e6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.4820132, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__customer_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n {{ shopify_source.fivetran_convert_timezone(column='cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as marketing_consent_updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n {{ fivetran_utils.fill_pass_through_columns('customer_pass_through_columns') }}\n\n from fields\n \n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__customer_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__customer.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accepts_marketing\n \n as \n \n accepts_marketing\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n default_address_id\n \n as \n \n default_address_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n orders_count\n \n as \n \n orders_count\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n tax_exempt\n \n as \n \n tax_exempt\n \n, \n \n \n total_spent\n \n as \n \n total_spent\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n verified_email\n \n as \n \n verified_email\n \n, \n cast(null as timestamp) as \n \n email_marketing_consent_consent_updated_at\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_opt_in_level\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_state\n \n , \n cast(null as TEXT) as \n \n note\n \n , \n cast(null as timestamp) as \n \n accepts_marketing_updated_at\n \n , \n cast(null as TEXT) as \n \n marketing_opt_in_level\n \n , \n cast(null as TEXT) as \n \n currency\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n cast(\n cast(cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as marketing_consent_updated_at,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n \n\n\n\n\n\n from fields\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_item.sql", "original_file_path": "models/rest/stg_shopify__inventory_item.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_item"], "alias": "stg_shopify__inventory_item", "checksum": {"name": "sha256", "checksum": "853a6e06a16707a06826f7d445f609b75da97e7990fdb4386fb2bf47b5cd088b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item. Coalesced with the deprecated `cost` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5204513, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_item_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_shopify__inventory_item_tmp')),\n staging_columns=get_inventory_item_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country_code_of_origin\n \n as \n \n country_code_of_origin\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n province_code_of_origin\n \n as \n \n province_code_of_origin\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tracked\n \n as \n \n tracked\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n duplicate_sku_count\n \n as \n \n duplicate_sku_count\n \n, \n \n \n harmonized_system_code\n \n as \n \n harmonized_system_code\n \n, \n \n \n inventory_history_url\n \n as \n \n inventory_history_url\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n measurement_id\n \n as \n \n measurement_id\n \n, \n \n \n measurement_weight_value\n \n as \n \n measurement_weight_value\n \n, \n \n \n measurement_weight_unit\n \n as \n \n measurement_weight_unit\n \n, \n \n \n tracked_editable_locked\n \n as \n \n tracked_editable_locked\n \n, \n \n \n tracked_editable_reason\n \n as \n \n tracked_editable_reason\n \n, \n \n \n unit_cost_amount\n \n as \n \n unit_cost_amount\n \n, \n \n \n unit_cost_currency_code\n \n as \n \n unit_cost_currency_code\n \n, \n cast(null as float) as \n \n cost\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id"], "time_spine": null}, "model.shopify_source.stg_shopify__collection": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__collection.sql", "original_file_path": "models/rest/stg_shopify__collection.sql", "unique_id": "model.shopify_source.stg_shopify__collection", "fqn": ["shopify_source", "rest", "stg_shopify__collection"], "alias": "stg_shopify__collection", "checksum": {"name": "sha256", "checksum": "b14f356bbf20e962744b82a4ba45e57c6b82e6a988d3cfe60ce1cdf23b849904"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "rule_logic": {"name": "rule_logic", "description": "Whether the `rules` are disjunctive (logical `OR`) or conjunctive (logical `AND`)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparative relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values incline - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.514665, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__collection_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__collection_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_collection_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n {{ shopify_source.json_to_string(\"rules\", source_columns_in_relation) }} as rules,\n sort_order,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__collection.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n disjunctive\n \n as \n \n disjunctive\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\n \n, \n \n \n rules\n \n as \n \n rules\n \n, \n \n \n sort_order\n \n as \n \n sort_order\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\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n rules as rules,\n sort_order,\n title,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["collection_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_adjustment.sql", "original_file_path": "models/rest/stg_shopify__order_adjustment.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment", "fqn": ["shopify_source", "rest", "stg_shopify__order_adjustment"], "alias": "stg_shopify__order_adjustment", "checksum": {"name": "sha256", "checksum": "c4ddb2ba573ce5e01cef92e306dabe987669b60eaee828727876182dec8d4537"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"order_adjustment_id": {"name": "order_adjustment_id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in the shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5052226, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_adjustment_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_adjustment_tmp')),\n staging_columns=get_order_adjustment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_adjustment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_adjustment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_adjustment.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set\n \n as \n \n amount_set\n \n, \n \n \n tax_amount\n \n as \n \n tax_amount\n \n, \n \n \n tax_amount_set\n \n as \n \n tax_amount_set\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_adjustment_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__media.sql", "original_file_path": "models/rest/stg_shopify__media.sql", "unique_id": "model.shopify_source.stg_shopify__media", "fqn": ["shopify_source", "rest", "stg_shopify__media"], "alias": "stg_shopify__media", "checksum": {"name": "sha256", "checksum": "fbddf6477f3a1498b88f3a0699a65e4395a7631bb615234a6338242df8580429"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing media metadata, including status and timestamps.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5268443, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_tmp')),\n staging_columns=get_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_application.sql", "original_file_path": "models/rest/stg_shopify__discount_application.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application", "fqn": ["shopify_source", "rest", "stg_shopify__discount_application"], "alias": "stg_shopify__discount_application", "checksum": {"name": "sha256", "checksum": "eb9d6cd583dcf8522153a756ebd4b6179a68ebce8da489c17bee9b294d173ba8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing discount applications, which define how discounts were applied at the order level.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code associated with the application, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to all line items (`all`) or only those that are specifically entitled (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name or title of the discount as defined in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The value of the discount. If `value_type` is `percentage`, this represents a percentage. If `fixed_amount`, this is a fixed currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount value is a `percentage` or `fixed_amount`. If `target_type` is `shipping_line`, only `percentage` is accepted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5711503, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_application_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_shopify__discount_application_tmp')),\n staging_columns=get_discount_application_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_application_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_application_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_application.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocation_method\n \n as \n \n allocation_method\n \n, \n \n \n code\n \n as \n \n code\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 order_id\n \n as \n \n order_id\n \n, \n \n \n target_selection\n \n as \n \n target_selection\n \n, \n \n \n target_type\n \n as \n \n target_type\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value\n \n as \n \n value\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_quantity.sql", "original_file_path": "models/rest/stg_shopify__inventory_quantity.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_quantity"], "alias": "stg_shopify__inventory_quantity", "checksum": {"name": "sha256", "checksum": "ceec14a24511cf768af52d91c6ee0c193dc4871c832b3a4136ed4ed7497f98dc"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The total quantity of the inventory item available at all locations.", "columns": {"inventory_quantity_id": {"name": "inventory_quantity_id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_state_name": {"name": "inventory_state_name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5231335, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_quantity_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_shopify__inventory_quantity_tmp')),\n staging_columns=get_inventory_quantity_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_quantity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_quantity.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_level_id\n \n as \n \n inventory_level_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "inventory_level_id", "inventory_quantity_id", "inventory_state_name", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_tag.sql", "original_file_path": "models/rest/stg_shopify__product_tag.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag", "fqn": ["shopify_source", "rest", "stg_shopify__product_tag"], "alias": "stg_shopify__product_tag", "checksum": {"name": "sha256", "checksum": "30ae521143e47b36580f3e0c4bc03bf3a2b2d39e2f219078194419fd2ef0ba08"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5435622, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_tag_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_shopify__product_tag_tmp')),\n staging_columns=get_product_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__product_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_variant.sql", "original_file_path": "models/rest/stg_shopify__product_variant.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant", "fqn": ["shopify_source", "rest", "stg_shopify__product_variant"], "alias": "stg_shopify__product_variant", "checksum": {"name": "sha256", "checksum": "8a25c78869bc4281ee618d06cc2a9154294d3a4d475d473f133a59ea72532f1a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_available_for_sale": {"name": "is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_components_required": {"name": "has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.4984171, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_tmp')),\n staging_columns=get_product_variant_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_variant_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_variant_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\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 updated_at\n \n as \n \n updated_at\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n position\n \n as \n \n position\n \n, \n \n \n inventory_policy\n \n as \n \n inventory_policy\n \n, \n \n \n compare_at_price\n \n as \n \n compare_at_price\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n barcode\n \n as \n \n barcode\n \n, \n cast(null as numeric(28,6)) as \n \n old_inventory_quantity\n \n , \n \n \n inventory_quantity\n \n as \n \n inventory_quantity\n \n, \n \n \n tax_code\n \n as \n \n tax_code\n \n, \n \n \n available_for_sale\n \n as \n \n available_for_sale\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n requires_components\n \n as \n \n requires_components\n \n, \n \n \n sellable_online_quantity\n \n as \n \n sellable_online_quantity\n \n, \n cast(null as TEXT) as \n \n fulfillment_service\n \n , \n cast(null as float) as \n \n grams\n \n , \n cast(null as TEXT) as \n \n inventory_management\n \n , \n cast(null as float) as \n \n weight\n \n , \n cast(null as TEXT) as \n \n weight_unit\n \n , \n cast(null as TEXT) as \n \n option_1\n \n , \n cast(null as TEXT) as \n \n option_2\n \n , \n cast(null as TEXT) as \n \n option_3\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["source_relation", "variant_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_discount_code.sql", "original_file_path": "models/rest/stg_shopify__order_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code", "fqn": ["shopify_source", "rest", "stg_shopify__order_discount_code"], "alias": "stg_shopify__order_discount_code", "checksum": {"name": "sha256", "checksum": "e8738ee571f2712e359118c5799400f39259f8aef959df3c6df84aa83d819b71"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5594094, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_discount_code_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_shopify__order_discount_code_tmp')),\n staging_columns=get_order_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__media_image": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__media_image.sql", "original_file_path": "models/rest/stg_shopify__media_image.sql", "unique_id": "model.shopify_source.stg_shopify__media_image", "fqn": ["shopify_source", "rest", "stg_shopify__media_image"], "alias": "stg_shopify__media_image", "checksum": {"name": "sha256", "checksum": "3a6ae116ff7a7f495476ef47c6bd942d29fe17f4e5a683e88323c3e05877e556"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "Specifies the location of the product image, hashed for privacy. Coalesced with the deprecated `src` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5293555, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__media_image_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_image_tmp')),\n staging_columns=get_media_image_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_image_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_image_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__media_image_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__media_image.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_line.sql", "original_file_path": "models/rest/stg_shopify__order_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_line"], "alias": "stg_shopify__order_line", "checksum": {"name": "sha256", "checksum": "36ea0a90f4476fd400178aa8b6a37b2d30c8bc5325f7ff8dc0670ecd740f5def"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.4863024, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_line_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_tmp')),\n staging_columns=get_order_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_pass_through_columns') }}\n\n from fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fulfillable_quantity\n \n as \n \n fulfillable_quantity\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n gift_card\n \n as \n \n gift_card\n \n, \n \n \n grams\n \n as \n \n grams\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n pre_tax_price\n \n as \n \n pre_tax_price\n \n, \n cast(null as TEXT) as \n \n pre_tax_price_set\n \n , \n \n \n price\n \n as \n \n price\n \n, \n cast(null as TEXT) as \n \n price_set\n \n , \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n cast(null as TEXT) as \n \n tax_code\n \n , \n \n \n title\n \n as \n \n title\n \n, \n \n \n total_discount\n \n as \n \n total_discount\n \n, \n cast(null as TEXT) as \n \n total_discount_set\n \n , \n \n \n variant_id\n \n as \n \n variant_id\n \n, \n cast(null as TEXT) as \n \n variant_title\n \n , \n cast(null as TEXT) as \n \n variant_inventory_management\n \n , \n \n \n vendor\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n properties\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_line_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_free_shipping.sql", "original_file_path": "models/rest/stg_shopify__discount_code_free_shipping.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_free_shipping"], "alias": "stg_shopify__discount_code_free_shipping", "checksum": {"name": "sha256", "checksum": "6cfeea54c8a7056fa680b926c2ae6ceeb594bf4e1a9857799b875bae0d73fc53"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for free shipping discount codes in Shopify, where shipping costs are discounted based on qualifying conditions.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5777774, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_free_shipping_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_shopify__discount_code_free_shipping_tmp')),\n staging_columns=get_discount_code_free_shipping_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_free_shipping_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_free_shipping.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__fulfillment_event.sql", "original_file_path": "models/rest/stg_shopify__fulfillment_event.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event", "fqn": ["shopify_source", "rest", "stg_shopify__fulfillment_event"], "alias": "stg_shopify__fulfillment_event", "checksum": {"name": "sha256", "checksum": "2aa34203a0c3980df4a385721479ddf040698998be9432e7334d403a7e525e56"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_event_id": {"name": "fulfillment_event_id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5661535, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"", "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_event_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_shopify__fulfillment_event_tmp')),\n staging_columns=get_fulfillment_event_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n {{ shopify_source.fivetran_convert_timezone(column='cast(estimated_delivery_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as estimated_delivery_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(happened_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__fulfillment_event.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\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 created_at\n \n as \n \n created_at\n \n, \n \n \n estimated_delivery_at\n \n as \n \n estimated_delivery_at\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n happened_at\n \n as \n \n happened_at\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 longitude\n \n as \n \n longitude\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n shop_id\n \n as \n \n shop_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n cast(\n cast(cast(estimated_delivery_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as estimated_delivery_at,\n cast(\n cast(cast(happened_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["fulfillment_event_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_note_attribute.sql", "original_file_path": "models/rest/stg_shopify__order_note_attribute.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute", "fqn": ["shopify_source", "rest", "stg_shopify__order_note_attribute"], "alias": "stg_shopify__order_note_attribute", "checksum": {"name": "sha256", "checksum": "e2c49df60461bef5bfebae6311cc92fa0bef64467a5d22e5dcf31d0d18b31250"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5337543, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_note_attribute_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_shopify__order_note_attribute_tmp')),\n staging_columns=get_order_note_attribute_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_note_attribute_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_note_attribute.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["name", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_line_refund.sql", "original_file_path": "models/rest/stg_shopify__order_line_refund.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund", "fqn": ["shopify_source", "rest", "stg_shopify__order_line_refund"], "alias": "stg_shopify__order_line_refund", "checksum": {"name": "sha256", "checksum": "aa4df0e851d252ad4d9a27a7c0f36bcc0577026ab1e9b016b645a6250dd9d0c6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_line_refund_id": {"name": "order_line_refund_id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.4845302, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_line_refund_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_refund_tmp')),\n staging_columns=get_order_line_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_refund_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_line_refund.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n subtotal\n \n as \n \n subtotal\n \n, \n \n \n subtotal_set\n \n as \n \n subtotal_set\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_tax_set\n \n as \n \n total_tax_set\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n restock_type\n \n as \n \n restock_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_line_refund_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__refund.sql", "original_file_path": "models/rest/stg_shopify__refund.sql", "unique_id": "model.shopify_source.stg_shopify__refund", "fqn": ["shopify_source", "rest", "stg_shopify__refund"], "alias": "stg_shopify__refund", "checksum": {"name": "sha256", "checksum": "bda33a385dc2880adba5bbe2cf033de9509cc5389c76ef11e2c4923f757ef0b8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a refund within Shopify.", "columns": {"refund_id": {"name": "refund_id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5028057, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__refund_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__refund_tmp')),\n staging_columns=get_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__refund.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n restock\n \n as \n \n restock\n \n, \n \n \n total_duties_set\n \n as \n \n total_duties_set\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["refund_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__customer_tag.sql", "original_file_path": "models/rest/stg_shopify__customer_tag.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag", "fqn": ["shopify_source", "rest", "stg_shopify__customer_tag"], "alias": "stg_shopify__customer_tag", "checksum": {"name": "sha256", "checksum": "7ddbfed95b8851221f0fcec884872362a389f01cf7a6e0fdfcf21fae5de68c35"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5155892, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__customer_tag_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_shopify__customer_tag_tmp')),\n staging_columns=get_customer_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__customer_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__customer_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "index"], "time_spine": null}, "model.shopify_source.stg_shopify__product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product.sql", "original_file_path": "models/rest/stg_shopify__product.sql", "unique_id": "model.shopify_source.stg_shopify__product", "fqn": ["shopify_source", "rest", "stg_shopify__product"], "alias": "stg_shopify__product", "checksum": {"name": "sha256", "checksum": "6a92711673f429c4465f05d51488c01ce9e270cbd8df0434bcbeac8809f3d370"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.4915917, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_tmp')),\n staging_columns=get_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_pass_through_columns') }}\n\nfrom fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"\n\n),\n\nfields as (\n\n select\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 handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\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\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n status\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\nfrom fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_tag.sql", "original_file_path": "models/rest/stg_shopify__order_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag", "fqn": ["shopify_source", "rest", "stg_shopify__order_tag"], "alias": "stg_shopify__order_tag", "checksum": {"name": "sha256", "checksum": "e4d40846975eafeecc76f411ee433af97b1ffe1a24fd2d27a11b6a0b17f8096f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.539686, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_tag_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_shopify__order_tag_tmp')),\n staging_columns=get_order_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__location": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__location.sql", "original_file_path": "models/rest/stg_shopify__location.sql", "unique_id": "model.shopify_source.stg_shopify__location", "fqn": ["shopify_source", "rest", "stg_shopify__location"], "alias": "stg_shopify__location", "checksum": {"name": "sha256", "checksum": "9c5af83aa1e6cb6cae684e11bc8c6a6aea6e040e08b32e7e0ce556e6a657df69"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy": {"name": "is_legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5259883, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__location_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_shopify__location_tmp')),\n staging_columns=get_location_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location_tmp", "package": null, "version": null}, {"name": "stg_shopify__location_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_location_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__location_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__location.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\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_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n legacy\n \n as \n \n legacy\n \n, \n \n \n localized_country_name\n \n as \n \n localized_country_name\n \n, \n \n \n localized_province_name\n \n as \n \n localized_province_name\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["location_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_url_tag.sql", "original_file_path": "models/rest/stg_shopify__order_url_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag", "fqn": ["shopify_source", "rest", "stg_shopify__order_url_tag"], "alias": "stg_shopify__order_url_tag", "checksum": {"name": "sha256", "checksum": "c20d1f6f0095e9d95f7694143ef693d91dc3438b40d254a451662414c1aa9699"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.540586, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_url_tag_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_shopify__order_url_tag_tmp')),\n staging_columns=get_order_url_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_url_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_url_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["key", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_media.sql", "original_file_path": "models/rest/stg_shopify__product_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_media", "fqn": ["shopify_source", "rest", "stg_shopify__product_media"], "alias": "stg_shopify__product_media", "checksum": {"name": "sha256", "checksum": "e866179624b96dced4df610afe1303d19b741bd9fba169f6c706a897330f9556"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5414202, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_media_tmp')),\n staging_columns=get_product_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_variant_media.sql", "original_file_path": "models/rest/stg_shopify__product_variant_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media", "fqn": ["shopify_source", "rest", "stg_shopify__product_variant_media"], "alias": "stg_shopify__product_variant_media", "checksum": {"name": "sha256", "checksum": "2a19d359137d9e352d5ab42327cf191199d918cef118124f2aee0272c513bb70"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5425448, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"", "raw_code": "{{ config(enabled=(var('shopify_using_product_variant_media', False) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_media_tmp')),\n staging_columns=get_product_variant_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_variant_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id", "product_variant_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout"], "alias": "stg_shopify__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "f8f4974bab648fcae4b0a95ec02701aad1981cc01d748404977a3bfac64de65a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_currency": {"name": "shop_currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.510856, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_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_shopify__abandoned_checkout_tmp')),\n staging_columns=get_abandoned_checkout_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n abandoned_checkout_url\n \n as \n \n abandoned_checkout_url\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n cast(null as TEXT) as \n \n billing_address_address_2\n \n , \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_locale\n \n as \n \n customer_locale\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n presentment_currency\n \n as \n \n presentment_currency\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n cast(null as TEXT) as \n \n shipping_address_address_2\n \n , \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n \n \n total_duties\n \n as \n \n total_duties\n \n, \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n \n \n total_price\n \n as \n \n total_price\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n user_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_app.sql", "original_file_path": "models/rest/stg_shopify__discount_code_app.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_app"], "alias": "stg_shopify__discount_code_app", "checksum": {"name": "sha256", "checksum": "3ff36db72d417bd6de0b40cba77865f1fcb5f0e5f3b6dc9fff266db6324a3b13"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for discount codes created through third-party apps in Shopify.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5731325, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"", "raw_code": "{{ config(enabled=(var('shopify_using_discount_code_app', False) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_app_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_shopify__discount_code_app_tmp')),\n staging_columns=get_discount_code_app_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_app_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_app.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count_count\n \n as \n \n codes_count_count\n \n, \n \n \n codes_count_precision\n \n as \n \n codes_count_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout_discount_code.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout_discount_code"], "alias": "stg_shopify__abandoned_checkout_discount_code", "checksum": {"name": "sha256", "checksum": "4f79565f0c0b60aaa4b9e6d55bb3d8e69dbc5e52a2bc952224ec9fc2777d5a08"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the discount codes from abandoned checkouts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5584023, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_discount_code_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_shopify__abandoned_checkout_discount_code_tmp')),\n staging_columns=get_abandoned_checkout_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n type\n \n as \n \n type\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 TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout_shipping_line.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout_shipping_line"], "alias": "stg_shopify__abandoned_checkout_shipping_line", "checksum": {"name": "sha256", "checksum": "fbf2d9940115326795a88f5c018c2e369638ef804e59a09602f65814824ba483"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_code": {"name": "shipping_code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "abandoned_checkout_shipping_line_id": {"name": "abandoned_checkout_shipping_line_id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5636241, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_shipping_line_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_shopify__abandoned_checkout_shipping_line_tmp')),\n staging_columns=get_abandoned_checkout_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n delivery_expectation_range\n \n as \n \n delivery_expectation_range\n \n, \n \n \n delivery_expectation_range_max\n \n as \n \n delivery_expectation_range_max\n \n, \n \n \n delivery_expectation_range_min\n \n as \n \n delivery_expectation_range_min\n \n, \n \n \n delivery_expectation_type\n \n as \n \n delivery_expectation_type\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id", "index", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__tax_line.sql", "original_file_path": "models/rest/stg_shopify__tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line", "fqn": ["shopify_source", "rest", "stg_shopify__tax_line"], "alias": "stg_shopify__tax_line", "checksum": {"name": "sha256", "checksum": "d69e6962393ead5e08c53a74bb2310b91352db44f50335ebb42e923f996baba5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5670238, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__tax_line_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_shopify__tax_line_tmp')),\n staging_columns=get_tax_line_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_line_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__collection_product.sql", "original_file_path": "models/rest/stg_shopify__collection_product.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product", "fqn": ["shopify_source", "rest", "stg_shopify__collection_product"], "alias": "stg_shopify__collection_product", "checksum": {"name": "sha256", "checksum": "0abb81383bce80941338fce6c30579fd7e729cce5a443d0921752640c0450779"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5121088, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__collection_product_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_shopify__collection_product_tmp')),\n staging_columns=get_collection_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__collection_product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n collection_id\n \n as \n \n collection_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["collection_id", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__metafield_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__metafield_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__metafield_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__metafield_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__metafield_tmp"], "alias": "stg_shopify__metafield_tmp", "checksum": {"name": "sha256", "checksum": "5414a4c10292fcacadde27a458e5df75130c4f8c14e5b38887bc42eefb8a0b53"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.5124226, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_metafield', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='metafield', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='metafield_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "metafield"], ["shopify", "metafield"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__metafield_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_metafield_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_bxgy_tmp"], "alias": "stg_shopify__discount_code_bxgy_tmp", "checksum": {"name": "sha256", "checksum": "bc9ed40d3831d9595a9522c0dd7c6afddc3ff313c1959896e1bc498d17f12551"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.5540416, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_bxgy', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_bxgy_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_bxgy"], ["shopify", "discount_code_bxgy"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__fulfillment_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__fulfillment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__fulfillment_tmp"], "alias": "stg_shopify__fulfillment_tmp", "checksum": {"name": "sha256", "checksum": "93a633acef33eac51374633d67a9e6bf52c1c1b813b549c211bb9fd23cf16938"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.5632627, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment"], ["shopify", "fulfillment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__fulfillment_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_variant_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_variant_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_variant_tmp"], "alias": "stg_shopify__product_variant_tmp", "checksum": {"name": "sha256", "checksum": "1479b98d0d8fc9c6fd0ded96f6b0aa50e05e71a67bf61d54de8abac635aa1920"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.5729496, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant"], ["shopify", "product_variant"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_variant_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__collection_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__collection_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__collection_tmp"], "alias": "stg_shopify__collection_tmp", "checksum": {"name": "sha256", "checksum": "83677a641e5bf258065b60673dc391162a342de5ac494faafa9af5c370f048d7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.5814633, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection"], ["shopify", "collection"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__collection_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_discount_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_discount_code_tmp"], "alias": "stg_shopify__order_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "37a4d39417499542b5aeca8c362b51a3e3d95e6908f2a7a9af57b44e170c1046"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.5899749, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_discount_code"], ["shopify", "order_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_url_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_url_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_url_tag_tmp"], "alias": "stg_shopify__order_url_tag_tmp", "checksum": {"name": "sha256", "checksum": "9acc8c7614789de25d394b07b8638e54639ea5d0fcb75765963d0bca0f63f353"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.598434, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_url_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_url_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_url_tag"], ["shopify", "order_url_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_url_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_url_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_tmp"], "alias": "stg_shopify__product_tmp", "checksum": {"name": "sha256", "checksum": "dd2e5338bf797082fe088c198911e406eb041e87cd28e1352a7a2835b0122ffe"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6081488, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product"], ["shopify", "product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_tag_tmp"], "alias": "stg_shopify__order_tag_tmp", "checksum": {"name": "sha256", "checksum": "a42066ecdf32f3882d6fa6a1c3df6b75d69ce0a4553375d3320a61f1a1de08f6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6164525, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_tag"], ["shopify", "order_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_quantity_tmp"], "alias": "stg_shopify__inventory_quantity_tmp", "checksum": {"name": "sha256", "checksum": "888a1894a42f30df0c772f9551fb3298534856d39b261bcab4c94f3e62fa4a8d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6248448, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_quantity', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_quantity_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_quantity"], ["shopify", "inventory_quantity"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__tax_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__tax_line_tmp"], "alias": "stg_shopify__tax_line_tmp", "checksum": {"name": "sha256", "checksum": "f904365c42217c601725c775a158e9dd20e3e0cd976b5df19c993275cdb49d6f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6333945, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tax_line"], ["shopify", "tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__customer_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__customer_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__customer_tag_tmp"], "alias": "stg_shopify__customer_tag_tmp", "checksum": {"name": "sha256", "checksum": "cacc0b85d32b6695c089824f90b3d43e47ca479d9fd5b5751bf4d517d60f28be"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6431494, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer_tag"], ["shopify", "customer_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__customer_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_allocation_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_allocation_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_allocation_tmp"], "alias": "stg_shopify__discount_allocation_tmp", "checksum": {"name": "sha256", "checksum": "eef0c91992b9834308249935e8ba406fd0c5782a684da3d90859ef1ae3db7040"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6514988, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_allocation', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_allocation_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_allocation"], ["shopify", "discount_allocation"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_allocation_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_allocation_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_image_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__media_image_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__media_image_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_image_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__media_image_tmp"], "alias": "stg_shopify__media_image_tmp", "checksum": {"name": "sha256", "checksum": "c4780240faf9cb4ab2a407a9419b94336727ec3b77d6bfb1ac753fc8c4179208"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.659768, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media_image', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_image_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media_image"], ["shopify", "media_image"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__media_image_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_image_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__media_tmp"], "alias": "stg_shopify__media_tmp", "checksum": {"name": "sha256", "checksum": "0c94b30527a13af3563413d119affaec39c52720d8aca5223af84b9ad8c55eac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6680481, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media"], ["shopify", "media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__refund_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__refund_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__refund_tmp"], "alias": "stg_shopify__refund_tmp", "checksum": {"name": "sha256", "checksum": "0d3eceddf310b90dc85313e6286c98c2894031ab4569f3db315388dcaef32f8f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6763387, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you create a refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "refund"], ["shopify", "refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__refund_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you create a refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__location_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__location_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__location_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__location_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__location_tmp"], "alias": "stg_shopify__location_tmp", "checksum": {"name": "sha256", "checksum": "b633d3eb65fefb379a9cd5f44ff617a1fc99c132ed5d0bb81e18c9bce0665013"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6859674, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='location', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='location_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "location"], ["shopify", "location"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__location_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_level_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_level_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_level_tmp"], "alias": "stg_shopify__inventory_level_tmp", "checksum": {"name": "sha256", "checksum": "7d78bc258a56f48d8968e1910dd797fe7d73a5d83d4bc165080ea5769a4f0727"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6943145, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_level', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_level_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_level"], ["shopify", "inventory_level"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_level_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_level_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_shipping_line_tmp"], "alias": "stg_shopify__order_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "14e60b7aefb49552134a34cdb90c47cd4ce6da6381d0586553738d7d4b823d6d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.7027407, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_line"], ["shopify", "order_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_discount_code_tmp"], "alias": "stg_shopify__abandoned_checkout_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "a6071b36e80e24d2b0cd31158419e657ac970ce35f8c6c9d3df08606bae64cdc"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.711018, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_discount_code"], ["shopify", "abandoned_checkout_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__fulfillment_event_tmp"], "alias": "stg_shopify__fulfillment_event_tmp", "checksum": {"name": "sha256", "checksum": "f81a5b8e0dd6dbe917bcfeddf57d4d6ac608409132baad5cc131406c3143cb24"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.720929, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_event', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_event_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment_event"], ["shopify", "fulfillment_event"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_line_refund_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_line_refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_line_refund_tmp"], "alias": "stg_shopify__order_line_refund_tmp", "checksum": {"name": "sha256", "checksum": "19f0e79eaed071741c7e53e9b5e90e693184225cc4ca171806f698404df07126"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.7297103, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order line refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line_refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line_refund"], ["shopify", "order_line_refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_line_refund_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order line refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_app_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_app_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_app_tmp"], "alias": "stg_shopify__discount_code_app_tmp", "checksum": {"name": "sha256", "checksum": "c633d1450d2ee190d81cb6f4267d15ed580e17bbcc5bbb0958f2f49a2bafc008"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.737884, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_discount_code_app', False) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_app', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_app_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_app"], ["shopify", "discount_code_app"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_app_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_app_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__shop_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__shop_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__shop_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__shop_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__shop_tmp"], "alias": "stg_shopify__shop_tmp", "checksum": {"name": "sha256", "checksum": "e9f782471f9533f7b339be8a70a57196eb8135b5cfe449d2957810794f289803"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.746534, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='shop', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='shop_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "shop"], ["shopify", "shop"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__shop_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_shop_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__transaction_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__transaction_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__transaction_tmp"], "alias": "stg_shopify__transaction_tmp", "checksum": {"name": "sha256", "checksum": "fe66d5a0482b65f07d4d7173cd2aef146efabcf38e17fed7aa2e7d1d1f8b1f33"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.7559419, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "transaction"], ["shopify", "transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_variant_media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_variant_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_variant_media_tmp"], "alias": "stg_shopify__product_variant_media_tmp", "checksum": {"name": "sha256", "checksum": "cd139c183a1ca8cb8118db376fa3f7d1b31636685eb01ec485a82e75a7a28d65"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.7643719, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_product_variant_media', False) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant_media"], ["shopify", "product_variant_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_variant_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_line_tmp"], "alias": "stg_shopify__order_line_tmp", "checksum": {"name": "sha256", "checksum": "d8a2b2b7331a577fe56b007114d5e8d9c9422dec4bdc3a7a92ed4b975e811eab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.77308, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line"], ["shopify", "order_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_media_tmp"], "alias": "stg_shopify__product_media_tmp", "checksum": {"name": "sha256", "checksum": "a05118e90fbe264d9ec4586834a925938d4ffdc01126953864c80e75d1e1572f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.7813625, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_media"], ["shopify", "product_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_basic_tmp"], "alias": "stg_shopify__discount_code_basic_tmp", "checksum": {"name": "sha256", "checksum": "6b6304e0f284579e79af69626b602eb9c4bd9de54c74e74b4956174d796d24fb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.790841, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_basic', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_basic_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_basic"], ["shopify", "discount_code_basic"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_shipping_tax_line_tmp"], "alias": "stg_shopify__order_shipping_tax_line_tmp", "checksum": {"name": "sha256", "checksum": "5d38344e972f1093709af51973879e64d530563a4b82ec9d06d313db387c5318"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.799197, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_tax_line"], ["shopify", "order_shipping_tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_note_attribute_tmp"], "alias": "stg_shopify__order_note_attribute_tmp", "checksum": {"name": "sha256", "checksum": "2cc3882bae2ba3aa7c2110da7e9e80172971e9ca75b03700615c4ec0e85124af"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.8074446, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_note_attribute', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_note_attribute_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_note_attribute"], ["shopify", "order_note_attribute"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_application_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_application_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_application_tmp"], "alias": "stg_shopify__discount_application_tmp", "checksum": {"name": "sha256", "checksum": "303e6de79bb4d473c2d041c88a66aa1ee0a79961b5b044472cb5a5b2169cb622"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.815803, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_application', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_application_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_application"], ["shopify", "discount_application"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_application_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_application_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__tender_transaction_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__tender_transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__tender_transaction_tmp"], "alias": "stg_shopify__tender_transaction_tmp", "checksum": {"name": "sha256", "checksum": "2ff3b509f93c78e9e47e8dce5e43f5c97a8ad66b5cb9b2ff68f9b4ddb37b502d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.8252335, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tender_transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tender_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tender_transaction"], ["shopify", "tender_transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__tender_transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tender_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_free_shipping_tmp"], "alias": "stg_shopify__discount_code_free_shipping_tmp", "checksum": {"name": "sha256", "checksum": "daf2f7cefba4ef7cf8917d509e7a199b591e31ba3931e27a0b0d81e4e551184d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.833552, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_free_shipping', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_free_shipping_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_free_shipping"], ["shopify", "discount_code_free_shipping"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_tag_tmp"], "alias": "stg_shopify__product_tag_tmp", "checksum": {"name": "sha256", "checksum": "6103799f99a890d76dc2ec51299412d9708fd31f94528fb71198148f4462a9b4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.8418212, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_tag"], ["shopify", "product_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_item_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_item_tmp"], "alias": "stg_shopify__inventory_item_tmp", "checksum": {"name": "sha256", "checksum": "80078c5de257923b797af6925dace90a4bc9540ba0b787c0d94cd99f90fb2df9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.8501863, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_item"], ["shopify", "inventory_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_tmp"], "alias": "stg_shopify__order_tmp", "checksum": {"name": "sha256", "checksum": "67e08e77af56b0e21cbe52d7cae143433d14a805c38eae3aeaaa6325e4849af5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.8596606, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order',\n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order"], ["shopify", "order"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_redeem_code_tmp"], "alias": "stg_shopify__discount_redeem_code_tmp", "checksum": {"name": "sha256", "checksum": "ee9513dba26602b035fed4f3b201585cf07e919856c51d1f846b7ffee8f71cca"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.9408972, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_redeem_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_redeem_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_redeem_code"], ["shopify", "discount_redeem_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__customer_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__customer_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__customer_tmp"], "alias": "stg_shopify__customer_tmp", "checksum": {"name": "sha256", "checksum": "8186176eeffaabc3738d1e3aa65b2a56d1a708202122324f0169520faf245327"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.949549, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer"], ["shopify", "customer"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__customer_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_adjustment_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_adjustment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_adjustment_tmp"], "alias": "stg_shopify__order_adjustment_tmp", "checksum": {"name": "sha256", "checksum": "660c959bd994c8ebeb444328094cae630dae00be0ffdfecedb5e46d62635507d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.9578052, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_adjustment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_adjustment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_adjustment"], ["shopify", "order_adjustment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_adjustment_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_adjustment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_shipping_line_tmp"], "alias": "stg_shopify__abandoned_checkout_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "5197f889810c43cba25bb329b29fc36f1a2694481886a84d85db44061121e4ba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.9663925, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_shipping_line"], ["shopify", "abandoned_checkout_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__collection_product_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__collection_product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__collection_product_tmp"], "alias": "stg_shopify__collection_product_tmp", "checksum": {"name": "sha256", "checksum": "f210c463c05bd68110fb94b96ecc72832aa2b6c6bcbbd0faa14fd9e081f098ff"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.9762955, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection_product"], ["shopify", "collection_product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__collection_product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_tmp"], "alias": "stg_shopify__abandoned_checkout_tmp", "checksum": {"name": "sha256", "checksum": "725135b3d811e4e230601561e990f0c8f03ff22a855abd5b57e8152ae0093e43"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.9846551, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout"], ["shopify", "abandoned_checkout"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__media.sql", "original_file_path": "models/graphql/stg_shopify_gql__media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__media"], "alias": "stg_shopify_gql__media", "checksum": {"name": "sha256", "checksum": "653de7e7a0d32617a2b87aee243be40cd14af47689ece20af8771b3c27136913"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing media metadata, including status and timestamps.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `media_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.371063, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__media_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_shopify_gql__media_tmp')),\n staging_columns=get_graphql_media_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_visit": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_visit.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_visit.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_visit"], "alias": "stg_shopify_gql__customer_visit", "checksum": {"name": "sha256", "checksum": "dc6dbc7c87fbaf8737671d7d2f502113fa6266ae3ed31720df6bf23974c04c56"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metadata about a customer's session visiting a Shopify store, including session, landing page, referrer, marketing campaign, and source attribution information. This data helps merchants analyze the effectiveness of marketing campaigns and customer engagement.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_visit_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_visit_id": {"name": "customer_visit_id", "description": "A globally-unique identifier for the customer visit session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "The ID of the order associated with the customer visit, if any.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of marketing tactic associated with the session. Possible values include: abandoned_cart, ad, affiliate, link, loyalty, message, newsletter, notification, post, retargeting, seo, storefront_app, transactional.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page": {"name": "landing_page", "description": "The URL of the first page the customer landed on for the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page_html": {"name": "landing_page_html", "description": "The landing page URL rendered as HTML with a hyperlink.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "occurred_at": {"name": "occurred_at", "description": "The timestamp when the customer's session occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_code": {"name": "referral_code", "description": "A marketing referral code captured from the landing URL. Supports query params like `ref`, `source`, or `r`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_info_html": {"name": "referral_info_html", "description": "Referral info rendered as HTML with URLs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The referring webpage where the customer clicked a link to arrive at the store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The origin of the customer's visit, such as a platform (e.g., Facebook, Google), a QR code, direct, or other attribution channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_description": {"name": "source_description", "description": "A more descriptive label for the visit source; used primarily for the first or last session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_type": {"name": "source_type", "description": "The marketing tactic type, such as ad, seo, newsletter, etc.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_campaign": {"name": "utm_parameters_campaign", "description": "The name of the marketing campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_content": {"name": "utm_parameters_content", "description": "Identifies specific content within a campaign, used to differentiate similar links.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_medium": {"name": "utm_parameters_medium", "description": "The medium of the campaign (e.g., cpc, banner, email).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_source": {"name": "utm_parameters_source", "description": "The traffic source for the campaign (e.g., google, newsletter).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_term": {"name": "utm_parameters_term", "description": "Search terms associated with paid campaigns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.402766, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_customer_visit', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_visit_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_shopify_gql__customer_visit_tmp')),\n staging_columns=get_graphql_customer_visit_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_visit_id,\n order_id,\n type,\n landing_page,\n landing_page_html,\n referral_code,\n referral_info_html,\n referrer_url as referring_site,\n source,\n source_description,\n source_type,\n utm_parameters_campaign,\n utm_parameters_content,\n utm_parameters_medium,\n utm_parameters_source,\n utm_parameters_term,\n {{ shopify_source.fivetran_convert_timezone(column='cast(occurred_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as occurred_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_visit_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_visit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_visit.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n landing_page\n \n as \n \n landing_page\n \n, \n \n \n landing_page_html\n \n as \n \n landing_page_html\n \n, \n \n \n occurred_at\n \n as \n \n occurred_at\n \n, \n \n \n referral_code\n \n as \n \n referral_code\n \n, \n \n \n referral_info_html\n \n as \n \n referral_info_html\n \n, \n \n \n referrer_url\n \n as \n \n referrer_url\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_description\n \n as \n \n source_description\n \n, \n \n \n source_type\n \n as \n \n source_type\n \n, \n \n \n utm_parameters_campaign\n \n as \n \n utm_parameters_campaign\n \n, \n \n \n utm_parameters_content\n \n as \n \n utm_parameters_content\n \n, \n \n \n utm_parameters_medium\n \n as \n \n utm_parameters_medium\n \n, \n \n \n utm_parameters_source\n \n as \n \n utm_parameters_source\n \n, \n \n \n utm_parameters_term\n \n as \n \n utm_parameters_term\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_visit_id,\n order_id,\n type,\n landing_page,\n landing_page_html,\n referral_code,\n referral_info_html,\n referrer_url as referring_site,\n source,\n source_description,\n source_type,\n utm_parameters_campaign,\n utm_parameters_content,\n utm_parameters_medium,\n utm_parameters_source,\n utm_parameters_term,\n cast(\n cast(cast(occurred_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as occurred_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_app": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_app.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_app.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_app"], "alias": "stg_shopify_gql__discount_code_app", "checksum": {"name": "sha256", "checksum": "0ba65d555b341ea472c2d2b467241a6df089e4b223676e974feffdd7f747df7a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for discount codes created through third-party apps in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3531268, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_discount_code_app', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_app_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_shopify_gql__discount_code_app_tmp')),\n staging_columns=get_graphql_discount_code_app_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_app_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_app_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_app.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count_count\n \n as \n \n codes_count_count\n \n, \n \n \n codes_count_precision\n \n as \n \n codes_count_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_tag"], "alias": "stg_shopify_gql__customer_tag", "checksum": {"name": "sha256", "checksum": "d1dc3244691c097ebdca6b9f76fcb51c4f898b7d4653bb1a2e3c1c092c9b3d70"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.2699218, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_tag_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_shopify_gql__customer_tag_tmp')),\n staging_columns=get_graphql_customer_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['customer_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order.sql", "original_file_path": "models/graphql/stg_shopify_gql__order.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order"], "alias": "stg_shopify_gql__order", "checksum": {"name": "sha256", "checksum": "9c104f3d7986e5c83382a7cec256a7666306e5f61fdbd590a8c0cac6b185c13e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "A globally-unique ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the customer who placed the order. Useful for fraud detection and geographic analysis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The shop currency when the order was placed. For example, \"USD\" or \"CAD\".", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "An order's financial status for display in the Shopify admin. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFinancialStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's fulfillment status that displays in the Shopify admin to merchants. For example, an order might be unfulfilled or scheduled. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFulfillmentStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The unique identifier for the order that appears on the order page in the Shopify admin and the Order status page. For example, \"#1001\", \"EN1001\", or \"1001-A\". This value isn't unique across multiple stores.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The optional note associated with the order. Contains additional information or instructions added by merchants or customers during the order process. Commonly used for special delivery instructions, gift messages, or internal processing notes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The name of the source associated with the order, such as \"web\", \"mobile_app\", or \"pos\". Use this field to identify the platform where the order was placed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_amount": {"name": "total_discounts_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_amount": {"name": "total_discounts_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_currency_code": {"name": "total_discounts_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_currency_code": {"name": "total_discounts_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights before returns, in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The staff member who created or is responsible for the order. Useful for tracking which team member handled phone orders, manual orders, or order modifications. Returns null for orders created directly by customers through the online store.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL where customers can check their order's current status, including tracking information and delivery updates. Provides order tracking links in emails, apps, or customer communications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received_shop_amount": {"name": "total_tip_received_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_amount": {"name": "total_tip_received_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_currency_code": {"name": "total_tip_received_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_currency_code": {"name": "total_tip_received_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_amount": {"name": "shipping_cost_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_amount": {"name": "shipping_cost_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_currency_code": {"name": "shipping_cost_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_currency_code": {"name": "shipping_cost_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.2578309, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_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_shopify_gql__order_tmp')),\n staging_columns=get_graphql_order_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_id,\n staff_member_id as user_id,\n total_discounts_set_pres_amount as total_discounts_pres_amount,\n total_discounts_set_pres_currency_code as total_discounts_pres_currency_code,\n total_discounts_set_shop_amount as total_discounts_shop_amount,\n total_discounts_set_shop_currency_code as total_discounts_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n source_name,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received_set_pres_amount as total_tip_received_pres_amount,\n total_tip_received_set_pres_currency_code as total_tip_received_pres_currency_code,\n total_tip_received_set_shop_amount as total_tip_received_shop_amount,\n total_tip_received_set_shop_currency_code as total_tip_received_shop_currency_code,\n location_id,\n name,\n note,\n number, -- Will be included in 2025-07 release of GraphQL API\n cancel_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(cancelled_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as cancelled_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n currency_code as currency,\n customer_id,\n lower(email) as email,\n lower(display_financial_status) as financial_status,\n lower(display_fulfillment_status) as fulfillment_status,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n client_ip as browser_ip,\n total_shipping_price_set_pres_amount as shipping_cost_pres_amount,\n total_shipping_price_set_pres_currency_code as shipping_cost_pres_currency_code,\n total_shipping_price_set_shop_amount as shipping_cost_shop_amount,\n total_shipping_price_set_shop_currency_code as shipping_cost_shop_currency_code,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n app_id,\n customer_locale,\n status_page_url as order_status_url,\n presentment_currency_code as presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n customer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('order_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n app_id\n \n as \n \n app_id\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n cancel_reason\n \n as \n \n cancel_reason\n \n, \n \n \n cancelled_at\n \n as \n \n cancelled_at\n \n, \n \n \n client_ip\n \n as \n \n client_ip\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n confirmed\n \n as \n \n confirmed\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n customer_accepts_marketing\n \n as \n \n customer_accepts_marketing\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_locale\n \n as \n \n customer_locale\n \n, \n \n \n display_financial_status\n \n as \n \n display_financial_status\n \n, \n \n \n display_fulfillment_status\n \n as \n \n display_fulfillment_status\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n presentment_currency_code\n \n as \n \n presentment_currency_code\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n status_page_url\n \n as \n \n status_page_url\n \n, \n \n \n subtotal_price_set_pres_amount\n \n as \n \n subtotal_price_set_pres_amount\n \n, \n \n \n subtotal_price_set_pres_currency_code\n \n as \n \n subtotal_price_set_pres_currency_code\n \n, \n \n \n subtotal_price_set_shop_amount\n \n as \n \n subtotal_price_set_shop_amount\n \n, \n \n \n subtotal_price_set_shop_currency_code\n \n as \n \n subtotal_price_set_shop_currency_code\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n total_discounts_set_pres_amount\n \n as \n \n total_discounts_set_pres_amount\n \n, \n \n \n total_discounts_set_pres_currency_code\n \n as \n \n total_discounts_set_pres_currency_code\n \n, \n \n \n total_discounts_set_shop_amount\n \n as \n \n total_discounts_set_shop_amount\n \n, \n \n \n total_discounts_set_shop_currency_code\n \n as \n \n total_discounts_set_shop_currency_code\n \n, \n \n \n total_price_set_pres_amount\n \n as \n \n total_price_set_pres_amount\n \n, \n \n \n total_price_set_pres_currency_code\n \n as \n \n total_price_set_pres_currency_code\n \n, \n \n \n total_price_set_shop_amount\n \n as \n \n total_price_set_shop_amount\n \n, \n \n \n total_price_set_shop_currency_code\n \n as \n \n total_price_set_shop_currency_code\n \n, \n \n \n total_shipping_price_set_pres_amount\n \n as \n \n total_shipping_price_set_pres_amount\n \n, \n \n \n total_shipping_price_set_pres_currency_code\n \n as \n \n total_shipping_price_set_pres_currency_code\n \n, \n \n \n total_shipping_price_set_shop_amount\n \n as \n \n total_shipping_price_set_shop_amount\n \n, \n \n \n total_shipping_price_set_shop_currency_code\n \n as \n \n total_shipping_price_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\n \n, \n \n \n total_tip_received_set_pres_amount\n \n as \n \n total_tip_received_set_pres_amount\n \n, \n \n \n total_tip_received_set_pres_currency_code\n \n as \n \n total_tip_received_set_pres_currency_code\n \n, \n \n \n total_tip_received_set_shop_amount\n \n as \n \n total_tip_received_set_shop_amount\n \n, \n \n \n total_tip_received_set_shop_currency_code\n \n as \n \n total_tip_received_set_shop_currency_code\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_id,\n staff_member_id as user_id,\n total_discounts_set_pres_amount as total_discounts_pres_amount,\n total_discounts_set_pres_currency_code as total_discounts_pres_currency_code,\n total_discounts_set_shop_amount as total_discounts_shop_amount,\n total_discounts_set_shop_currency_code as total_discounts_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n source_name,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received_set_pres_amount as total_tip_received_pres_amount,\n total_tip_received_set_pres_currency_code as total_tip_received_pres_currency_code,\n total_tip_received_set_shop_amount as total_tip_received_shop_amount,\n total_tip_received_set_shop_currency_code as total_tip_received_shop_currency_code,\n location_id,\n name,\n note,\n number, -- Will be included in 2025-07 release of GraphQL API\n cancel_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(cancelled_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as cancelled_timestamp,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n currency_code as currency,\n customer_id,\n lower(email) as email,\n lower(display_financial_status) as financial_status,\n lower(display_fulfillment_status) as fulfillment_status,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n client_ip as browser_ip,\n total_shipping_price_set_pres_amount as shipping_cost_pres_amount,\n total_shipping_price_set_pres_currency_code as shipping_cost_pres_currency_code,\n total_shipping_price_set_shop_amount as shipping_cost_shop_amount,\n total_shipping_price_set_shop_currency_code as shipping_cost_shop_currency_code,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n app_id,\n customer_locale,\n status_page_url as order_status_url,\n presentment_currency_code as presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n customer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_line"], "alias": "stg_shopify_gql__order_line", "checksum": {"name": "sha256", "checksum": "109c38abe09fecda46bfe1c3abaab41598133e0972636f50bb20d067987f3185"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.2596526, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_line_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_shopify_gql__order_line_tmp')),\n staging_columns=get_graphql_order_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_line_id,\n row_number() over(partition by order_id, source_relation order by id asc) as index,\n name,\n order_id,\n case \n when unfulfilled_quantity = 0 then 'fulfilled'\n when unfulfilled_quantity > 0 and unfulfilled_quantity < quantity then 'partial'\n when unfulfilled_quantity = quantity then 'unfulfilled'\n else null \n end as fulfillment_status,\n is_gift_card,\n original_total_set_pres_amount as price_pres_amount,\n original_total_set_pres_currency_code as price_pres_currency_code,\n original_total_set_shop_amount as price_shop_amount,\n original_total_set_shop_currency_code as price_shop_currency_code,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n title,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n variant_id,\n variant_title,\n vendor,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n {{ fivetran_utils.fill_pass_through_columns('order_line_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_gift_card\n \n as \n \n is_gift_card\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n original_total_set_pres_amount\n \n as \n \n original_total_set_pres_amount\n \n, \n \n \n original_total_set_pres_currency_code\n \n as \n \n original_total_set_pres_currency_code\n \n, \n \n \n original_total_set_shop_amount\n \n as \n \n original_total_set_shop_amount\n \n, \n \n \n original_total_set_shop_currency_code\n \n as \n \n original_total_set_shop_currency_code\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\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 total_discount_set_pres_amount\n \n as \n \n total_discount_set_pres_amount\n \n, \n \n \n total_discount_set_pres_currency_code\n \n as \n \n total_discount_set_pres_currency_code\n \n, \n \n \n total_discount_set_shop_amount\n \n as \n \n total_discount_set_shop_amount\n \n, \n \n \n total_discount_set_shop_currency_code\n \n as \n \n total_discount_set_shop_currency_code\n \n, \n \n \n unfulfilled_quantity\n \n as \n \n unfulfilled_quantity\n \n, \n \n \n variant_id\n \n as \n \n variant_id\n \n, \n \n \n variant_title\n \n as \n \n variant_title\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_line_id,\n row_number() over(partition by order_id, source_relation order by id asc) as index,\n name,\n order_id,\n case \n when unfulfilled_quantity = 0 then 'fulfilled'\n when unfulfilled_quantity > 0 and unfulfilled_quantity < quantity then 'partial'\n when unfulfilled_quantity = quantity then 'unfulfilled'\n else null \n end as fulfillment_status,\n is_gift_card,\n original_total_set_pres_amount as price_pres_amount,\n original_total_set_pres_currency_code as price_pres_currency_code,\n original_total_set_shop_amount as price_shop_amount,\n original_total_set_shop_currency_code as price_shop_currency_code,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n title,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n variant_id,\n variant_title,\n vendor,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_item.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_item.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_item"], "alias": "stg_shopify_gql__inventory_item", "checksum": {"name": "sha256", "checksum": "32245e3be959135fac78958f66d2bd942b104f90bf7c1cf0176b5fe76d3da089"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_item_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3665292, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_item_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_shopify_gql__inventory_item_tmp')),\n staging_columns=get_graphql_inventory_item_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted,\n unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country_code_of_origin\n \n as \n \n country_code_of_origin\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n duplicate_sku_count\n \n as \n \n duplicate_sku_count\n \n, \n \n \n harmonized_system_code\n \n as \n \n harmonized_system_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_history_url\n \n as \n \n inventory_history_url\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n measurement_id\n \n as \n \n measurement_id\n \n, \n \n \n measurement_weight_unit\n \n as \n \n measurement_weight_unit\n \n, \n \n \n measurement_weight_value\n \n as \n \n measurement_weight_value\n \n, \n \n \n province_code_of_origin\n \n as \n \n province_code_of_origin\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tracked\n \n as \n \n tracked\n \n, \n \n \n tracked_editable_locked\n \n as \n \n tracked_editable_locked\n \n, \n \n \n tracked_editable_reason\n \n as \n \n tracked_editable_reason\n \n, \n \n \n unit_cost_amount\n \n as \n \n unit_cost_amount\n \n, \n \n \n unit_cost_currency_code\n \n as \n \n unit_cost_currency_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted,\n unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_shipping_tax_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_shipping_tax_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_shipping_tax_line"], "alias": "stg_shopify_gql__order_shipping_tax_line", "checksum": {"name": "sha256", "checksum": "1ce49a7e29271683d2a26b5640c826be0a3c626e752ce9600fa531b9cfdbbf26"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents taxes associated with order shipping lines.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_shipping_line_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this record is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The amount of tax in customer currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The amount of tax in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.385554, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_shipping_tax_line_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_shopify_gql__order_shipping_tax_line_tmp')),\n staging_columns=get_graphql_order_shipping_tax_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_shipping_line_id', 'index', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_shipping_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_shipping_tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_shipping_line_id\n \n as \n \n order_shipping_line_id\n \n, \n \n \n price_set_pres_amount\n \n as \n \n price_set_pres_amount\n \n, \n \n \n price_set_pres_currency_code\n \n as \n \n price_set_pres_currency_code\n \n, \n \n \n price_set_shop_amount\n \n as \n \n price_set_shop_amount\n \n, \n \n \n price_set_shop_currency_code\n \n as \n \n price_set_shop_currency_code\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_shipping_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_order_line_item"], "alias": "stg_shopify_gql__fulfillment_order_line_item", "checksum": {"name": "sha256", "checksum": "cce1876da347fe32a6a944ed7db67af1c5897acfa7c3f164c6f02707ecd93e37"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Links a fulfillment order to specific items that require fulfillment. Contains detailed product information, quantity tracking, variant metadata, and shipping requirements. This is a core entity for determining which products and how many units are involved in a given fulfillment process.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_order_line_item_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_order_line_item_id": {"name": "fulfillment_order_line_item_id", "description": "A globally unique identifier for this fulfillment order line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_order_id": {"name": "fulfillment_order_id", "description": "The identifier of the fulfillment order that this line item is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "Alt text describing the image associated with the line item's variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "The height in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "The unique identifier for the variant image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The url of the variant image used in this fulfillment line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "The width in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The identifier of the inventory item being fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_item_id": {"name": "order_line_item_id", "description": "The identifier of the original order line item linked to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_title": {"name": "product_title", "description": "The title of the product at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The identifier of the product variant associated with this fulfillment item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remaining_quantity": {"name": "remaining_quantity", "description": "The number of units remaining to be fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Indicates whether physical shipping is required for this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The SKU of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "The total number of units allocated to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The vendor of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3635907, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_order_line_item', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_order_line_item_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_shopify_gql__fulfillment_order_line_item_tmp')),\n staging_columns=get_graphql_fulfillment_order_line_item_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_order_line_item_id,\n fulfillment_order_id,\n image_alt_text,\n image_height,\n image_id,\n image_url,\n image_width,\n inventory_item_id,\n order_line_item_id,\n product_title,\n product_variant_id,\n remaining_quantity,\n requires_shipping,\n sku,\n total_quantity,\n variant_title,\n vendor,\n weight_unit,\n weight_value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_order_line_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fulfillment_order_id\n \n as \n \n fulfillment_order_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n order_line_item_id\n \n as \n \n order_line_item_id\n \n, \n \n \n product_title\n \n as \n \n product_title\n \n, \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n remaining_quantity\n \n as \n \n remaining_quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n total_quantity\n \n as \n \n total_quantity\n \n, \n \n \n variant_title\n \n as \n \n variant_title\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n, \n \n \n weight_value\n \n as \n \n weight_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_order_line_item_id,\n fulfillment_order_id,\n image_alt_text,\n image_height,\n image_id,\n image_url,\n image_width,\n inventory_item_id,\n order_line_item_id,\n product_title,\n product_variant_id,\n remaining_quantity,\n requires_shipping,\n sku,\n total_quantity,\n variant_title,\n vendor,\n weight_unit,\n weight_value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_shipping_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_shipping_line"], "alias": "stg_shopify_gql__order_shipping_line", "checksum": {"name": "sha256", "checksum": "5da193b8bb92f55d18b8e41ab292c215df78b4d69d5380fa52172a808a1fd08d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents the shipping details that the customer chose for their order.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_shipping_line_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_pres_amount": {"name": "discounted_price_pres_amount", "description": "Shipping price in customer currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_pres_currency_code": {"name": "discounted_price_pres_currency_code", "description": "Three digit customer currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_shop_amount": {"name": "discounted_price_shop_amount", "description": "Shipping price in shop currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_shop_currency_code": {"name": "discounted_price_shop_currency_code", "description": "Three digit shop currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The pre-tax shipping price without any discounts applied in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The pre-tax shipping price without any discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.384279, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_shipping_line_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_shopify_gql__order_shipping_line_tmp')),\n staging_columns=get_graphql_order_shipping_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price_set_pres_amount as discounted_price_pres_amount,\n discounted_price_set_pres_currency_code as discounted_price_pres_currency_code,\n discounted_price_set_shop_amount as discounted_price_shop_amount,\n discounted_price_set_shop_currency_code as discounted_price_shop_currency_code,\n phone,\n original_price_set_pres_amount as price_pres_amount,\n original_price_set_pres_currency_code as price_pres_currency_code,\n original_price_set_shop_amount as price_shop_amount,\n original_price_set_shop_currency_code as price_shop_currency_code,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n discounted_price_set_pres_amount\n \n as \n \n discounted_price_set_pres_amount\n \n, \n \n \n discounted_price_set_pres_currency_code\n \n as \n \n discounted_price_set_pres_currency_code\n \n, \n \n \n discounted_price_set_shop_amount\n \n as \n \n discounted_price_set_shop_amount\n \n, \n \n \n discounted_price_set_shop_currency_code\n \n as \n \n discounted_price_set_shop_currency_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n original_price_set_pres_amount\n \n as \n \n original_price_set_pres_amount\n \n, \n \n \n original_price_set_pres_currency_code\n \n as \n \n original_price_set_pres_currency_code\n \n, \n \n \n original_price_set_shop_amount\n \n as \n \n original_price_set_shop_amount\n \n, \n \n \n original_price_set_shop_currency_code\n \n as \n \n original_price_set_shop_currency_code\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price_set_pres_amount as discounted_price_pres_amount,\n discounted_price_set_pres_currency_code as discounted_price_pres_currency_code,\n discounted_price_set_shop_amount as discounted_price_shop_amount,\n discounted_price_set_shop_currency_code as discounted_price_shop_currency_code,\n phone,\n original_price_set_pres_amount as price_pres_amount,\n original_price_set_pres_currency_code as price_pres_currency_code,\n original_price_set_shop_amount as price_shop_amount,\n original_price_set_shop_currency_code as price_shop_currency_code,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product.sql", "original_file_path": "models/graphql/stg_shopify_gql__product.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product"], "alias": "stg_shopify_gql__product", "checksum": {"name": "sha256", "checksum": "bd16eaf9c2f2b9d327db6071a73dc1fa5aaa07b070d4f3fd72bd82f8621145a9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.387661, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_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_shopify_gql__product_tmp')),\n staging_columns=get_graphql_product_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as product_id,\n handle,\n product_type,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('product_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n status\n \n as \n \n status\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\n \n as \n \n vendor\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as product_id,\n handle,\n product_type,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment"], "alias": "stg_shopify_gql__fulfillment", "checksum": {"name": "sha256", "checksum": "545e435664dc989b50d51ec7cd18d7ad7e582c75fb916d7be3176e7c1ce5af7b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3602514, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_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_shopify_gql__fulfillment_tmp')),\n staging_columns=get_graphql_fulfillment_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service_id as service,\n lower(display_status) as shipment_status,\n lower(status) as status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n display_status\n \n as \n \n display_status\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n service_id\n \n as \n \n service_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n total_quantity\n \n as \n \n total_quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service_id as service,\n lower(display_status) as shipment_status,\n lower(status) as status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_allocation": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_allocation.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_allocation.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_allocation"], "alias": "stg_shopify_gql__discount_allocation", "checksum": {"name": "sha256", "checksum": "739863a768f40dd60d330e331eae06d15864832e04c0ca6b863424ec4f7ac4c6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing allocation amounts from discount applications across specific order lines.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id`, `discount_application_index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocated_pres_amount": {"name": "allocated_pres_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_pres_currency_code": {"name": "allocated_pres_currency_code", "description": "The presentment money currency code for the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_shop_amount": {"name": "allocated_shop_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_shop_currency_code": {"name": "allocated_shop_currency_code", "description": "The shop money currency code for the store\u2019s currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to. Used to join with the discount application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount allocation within the list of allocations on an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.2723432, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_allocation_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_shopify_gql__discount_allocation_tmp')),\n staging_columns=get_graphql_discount_allocation_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n allocated_amount_set_pres_amount as allocated_pres_amount,\n allocated_amount_set_pres_currency_code as allocated_pres_currency_code,\n allocated_amount_set_shop_amount as allocated_shop_amount,\n allocated_amount_set_shop_currency_code as allocated_shop_currency_code,\n discount_application_index,\n index,\n order_line_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_line_id', 'discount_application_index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_allocation_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_allocation_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_allocation.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocated_amount_set_pres_amount\n \n as \n \n allocated_amount_set_pres_amount\n \n, \n \n \n allocated_amount_set_pres_currency_code\n \n as \n \n allocated_amount_set_pres_currency_code\n \n, \n \n \n allocated_amount_set_shop_amount\n \n as \n \n allocated_amount_set_shop_amount\n \n, \n \n \n allocated_amount_set_shop_currency_code\n \n as \n \n allocated_amount_set_shop_currency_code\n \n, \n \n \n discount_application_index\n \n as \n \n discount_application_index\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n allocated_amount_set_pres_amount as allocated_pres_amount,\n allocated_amount_set_pres_currency_code as allocated_pres_currency_code,\n allocated_amount_set_shop_amount as allocated_shop_amount,\n allocated_amount_set_shop_currency_code as allocated_shop_currency_code,\n discount_application_index,\n index,\n order_line_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_application_index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__tax_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__tax_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tax_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__tax_line"], "alias": "stg_shopify_gql__tax_line", "checksum": {"name": "sha256", "checksum": "7c3265693bb444db83715b94d4923ebc32f8d385562f5dd4b570230542e309d6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a single tax applied to the associated line item.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The amount of tax in customer currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The amount of tax in shop currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.397732, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__tax_line_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_shopify_gql__tax_line_tmp')),\n staging_columns=get_graphql_tax_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_line_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n price_set_pres_amount\n \n as \n \n price_set_pres_amount\n \n, \n \n \n price_set_pres_currency_code\n \n as \n \n price_set_pres_currency_code\n \n, \n \n \n price_set_shop_amount\n \n as \n \n price_set_shop_amount\n \n, \n \n \n price_set_shop_currency_code\n \n as \n \n price_set_shop_currency_code\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_line_refund.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_line_refund.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_line_refund"], "alias": "stg_shopify_gql__order_line_refund", "checksum": {"name": "sha256", "checksum": "0402af2a04adb3d40bbdc43cd8f592cecec885892b79aedebe455210880640fe"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item refund in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_refund_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_line_refund_id": {"name": "order_line_refund_id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location where the items will be restocked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_pres_amount": {"name": "subtotal_pres_amount", "description": "The refunded subtotal amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_pres_currency_code": {"name": "subtotal_pres_currency_code", "description": "The three letter currency code for the subtotal the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_shop_amount": {"name": "subtotal_shop_amount", "description": "The refunded subtotal amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_shop_currency_code": {"name": "subtotal_shop_currency_code", "description": "The three letter currency code for the subtotal in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three letter currency code of the tax the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three letter currency code of the tax in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3804662, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_line_refund_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_shopify_gql__order_line_refund_tmp')),\n staging_columns=get_graphql_order_line_refund_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal_set_pres_amount as subtotal_pres_amount,\n subtotal_set_pres_currency_code as subtotal_pres_currency_code,\n subtotal_set_shop_amount as subtotal_shop_amount,\n subtotal_set_shop_currency_code as subtotal_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n quantity,\n refund_id,\n lower(restock_type) as restock_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_refund_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_line_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_line_refund.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n restock_type\n \n as \n \n restock_type\n \n, \n \n \n subtotal_set_pres_amount\n \n as \n \n subtotal_set_pres_amount\n \n, \n \n \n subtotal_set_pres_currency_code\n \n as \n \n subtotal_set_pres_currency_code\n \n, \n \n \n subtotal_set_shop_amount\n \n as \n \n subtotal_set_shop_amount\n \n, \n \n \n subtotal_set_shop_currency_code\n \n as \n \n subtotal_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal_set_pres_amount as subtotal_pres_amount,\n subtotal_set_pres_currency_code as subtotal_pres_currency_code,\n subtotal_set_shop_amount as subtotal_shop_amount,\n subtotal_set_shop_currency_code as subtotal_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n quantity,\n refund_id,\n lower(restock_type) as restock_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_level": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_level.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_level.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_level"], "alias": "stg_shopify_gql__inventory_level", "checksum": {"name": "sha256", "checksum": "666a85a3945cef763805af14862e54687fbadf91916472cc6858e442ff60cf23"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory level represents the quantities of an inventory item for a location. Each inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_level_id`, `inventory_item_id`, `location_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3676677, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_level_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_shopify_gql__inventory_level_tmp')),\n staging_columns=get_graphql_inventory_level_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_level_id,\n inventory_item_id,\n location_id,\n can_deactivate,\n deactivation_alert,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'inventory_item_id', 'location_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_level_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_level_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_level.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n can_deactivate\n \n as \n \n can_deactivate\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deactivation_alert\n \n as \n \n deactivation_alert\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_level_id,\n inventory_item_id,\n location_id,\n can_deactivate,\n deactivation_alert,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_item_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(location_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__shop": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__shop", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__shop.sql", "original_file_path": "models/graphql/stg_shopify_gql__shop.sql", "unique_id": "model.shopify_source.stg_shopify_gql__shop", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__shop"], "alias": "stg_shopify_gql__shop", "checksum": {"name": "sha256", "checksum": "b0950c23a4aef6080249618f83c620290043117629346a3efd333ad95e6e0d90"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `shop_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_checkout_api_supported": {"name": "has_checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_password_enabled": {"name": "is_password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_setup_required": {"name": "is_setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_shipping_taxes": {"name": "has_shipping_taxes", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included_in_price": {"name": "has_taxes_included_in_price", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_abbreviation": {"name": "timezone_abbreviation", "description": "The shop's time zone abbreviation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset": {"name": "timezone_offset", "description": "The shop's time zone offset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset_minutes": {"name": "timezone_offset_minutes", "description": "The shop's time zone offset expressed as a number of minutes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3965967, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__shop_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_shopify_gql__shop_tmp')),\n staging_columns=get_graphql_shop_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n billing_address_address_1 as address_1,\n billing_address_address_2 as address_2,\n billing_address_city as city,\n billing_address_province as province,\n billing_address_province_code as province_code,\n billing_address_country_code_v_2 as country, -- in REST API country = code\n billing_address_country_code_v_2 as country_code,\n billing_address_country as country_name,\n billing_address_zip as zip,\n billing_address_latitude as latitude,\n billing_address_longitude as longitude,\n currency_code as currency,\n {{ shopify_source.json_to_string(\"enabled_presentment_currencies\", source_columns_in_relation) }} as enabled_presentment_currencies,\n contact_email as customer_email,\n email,\n primary_domain_host as domain,\n billing_address_phone as phone,\n timezone_abbreviation,\n {# timezone_offset is formatted like -0400 instead of -04:00 #}\n timezone_offset, \n timezone_offset_minutes, \n iana_timezone, \n primary_domain_localization_default_locale as primary_locale,\n weight_unit,\n myshopify_domain,\n shop_owner_name as shop_owner,\n tax_shipping as has_shipping_taxes,\n coalesce(taxes_included, false) as has_taxes_included_in_price,\n features_storefront as has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n currency_formats_money_format as money_format,\n currency_formats_money_in_emails_format as money_in_emails_format,\n currency_formats_money_with_currency_format as money_with_currency_format,\n currency_formats_money_with_currency_in_emails_format as money_with_currency_in_emails_format,\n plan_display_name,\n password_enabled as is_password_enabled,\n setup_required as is_setup_required,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__shop_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_shop_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__shop_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__shop.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code_v_2\n \n as \n \n billing_address_country_code_v_2\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n checkout_api_supported\n \n as \n \n checkout_api_supported\n \n, \n \n \n contact_email\n \n as \n \n contact_email\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n currency_formats_money_format\n \n as \n \n currency_formats_money_format\n \n, \n \n \n currency_formats_money_in_emails_format\n \n as \n \n currency_formats_money_in_emails_format\n \n, \n \n \n currency_formats_money_with_currency_format\n \n as \n \n currency_formats_money_with_currency_format\n \n, \n \n \n currency_formats_money_with_currency_in_emails_format\n \n as \n \n currency_formats_money_with_currency_in_emails_format\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n enabled_presentment_currencies\n \n as \n \n enabled_presentment_currencies\n \n, \n \n \n features_storefront\n \n as \n \n features_storefront\n \n, \n \n \n iana_timezone\n \n as \n \n iana_timezone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n myshopify_domain\n \n as \n \n myshopify_domain\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n password_enabled\n \n as \n \n password_enabled\n \n, \n \n \n plan_display_name\n \n as \n \n plan_display_name\n \n, \n \n \n primary_domain_host\n \n as \n \n primary_domain_host\n \n, \n \n \n primary_domain_localization_default_locale\n \n as \n \n primary_domain_localization_default_locale\n \n, \n \n \n setup_required\n \n as \n \n setup_required\n \n, \n \n \n shop_owner_name\n \n as \n \n shop_owner_name\n \n, \n \n \n tax_shipping\n \n as \n \n tax_shipping\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n timezone_abbreviation\n \n as \n \n timezone_abbreviation\n \n, \n \n \n timezone_offset\n \n as \n \n timezone_offset\n \n, \n \n \n timezone_offset_minutes\n \n as \n \n timezone_offset_minutes\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n billing_address_address_1 as address_1,\n billing_address_address_2 as address_2,\n billing_address_city as city,\n billing_address_province as province,\n billing_address_province_code as province_code,\n billing_address_country_code_v_2 as country, -- in REST API country = code\n billing_address_country_code_v_2 as country_code,\n billing_address_country as country_name,\n billing_address_zip as zip,\n billing_address_latitude as latitude,\n billing_address_longitude as longitude,\n currency_code as currency,\n enabled_presentment_currencies as enabled_presentment_currencies,\n contact_email as customer_email,\n email,\n primary_domain_host as domain,\n billing_address_phone as phone,\n timezone_abbreviation,\n \n timezone_offset, \n timezone_offset_minutes, \n iana_timezone, \n primary_domain_localization_default_locale as primary_locale,\n weight_unit,\n myshopify_domain,\n shop_owner_name as shop_owner,\n tax_shipping as has_shipping_taxes,\n coalesce(taxes_included, false) as has_taxes_included_in_price,\n features_storefront as has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n currency_formats_money_format as money_format,\n currency_formats_money_in_emails_format as money_in_emails_format,\n currency_formats_money_with_currency_format as money_with_currency_format,\n currency_formats_money_with_currency_in_emails_format as money_with_currency_in_emails_format,\n plan_display_name,\n password_enabled as is_password_enabled,\n setup_required as is_setup_required,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__abandoned_checkout_discount_code"], "alias": "stg_shopify_gql__abandoned_checkout_discount_code", "checksum": {"name": "sha256", "checksum": "0c42da3c30c3c151bce61bb481405da53967b9b43818d4d74ce29d238f4a9b57"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Abandoned checkouts that applied a discount code.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `checkout_id`, `code`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the discount codes from abandoned checkouts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.266278, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__abandoned_checkout_discount_code_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_shopify_gql__abandoned_checkout_discount_code_tmp')),\n staging_columns=get_graphql_abandoned_checkout_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index,\n {{ dbt_utils.generate_surrogate_key(['checkout_id', 'code', 'source_relation']) }} as unique_key\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index,\n md5(cast(coalesce(cast(checkout_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(code as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__location": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__location", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__location.sql", "original_file_path": "models/graphql/stg_shopify_gql__location.sql", "unique_id": "model.shopify_source.stg_shopify_gql__location", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__location"], "alias": "stg_shopify_gql__location", "checksum": {"name": "sha256", "checksum": "8b73ec5a42911c795216811ac8867c5c3d611587e19aa46f698ed21e0802e7df"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `location_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in, this matches the REST API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy": {"name": "is_legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3701642, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__location_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_shopify_gql__location_tmp')),\n staging_columns=get_graphql_location_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n is_active,\n address_1,\n address_2,\n city,\n country_code as country, -- match REST API format\n country_code,\n country as country_name,\n is_fulfillment_service as is_legacy,\n phone,\n province,\n province_code,\n zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__location_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_location_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__location_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__location.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__location_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\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_code\n \n as \n \n country_code\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_active\n \n as \n \n is_active\n \n, \n \n \n is_fulfillment_service\n \n as \n \n is_fulfillment_service\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n is_active,\n address_1,\n address_2,\n city,\n country_code as country, -- match REST API format\n country_code,\n country as country_name,\n is_fulfillment_service as is_legacy,\n phone,\n province,\n province_code,\n zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__transaction", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__transaction.sql", "original_file_path": "models/graphql/stg_shopify_gql__transaction.sql", "unique_id": "model.shopify_source.stg_shopify_gql__transaction", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__transaction"], "alias": "stg_shopify_gql__transaction", "checksum": {"name": "sha256", "checksum": "7424657329c3c4945c6c79b2326dd4991efaf952abff49c191f08dd9ccb5587b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `transaction_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of the transaction in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three letter currency code of the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of the transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three letter currency code of the shop's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.4008274, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__transaction_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_shopify_gql__transaction_tmp')),\n staging_columns=get_graphql_transaction_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_shop_amount as amount_shop,\n device_id, -- Will be included in 2025-07 release of GraphQL API\n gateway,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_currency_code as amount_shop_currency_code,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n lower(kind) as kind, -- lower in REST api\n {{ shopify_source.json_to_string(\"receipt_json\", source_columns_in_relation) }} as receipt,\n currency_exchange_id, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_adjustment, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_original_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_final_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_currency, -- Will be included in 2025-07 release of GraphQL API\n error_code,\n lower(status) as status, -- lower in REST api\n staff_member_id as user_id,\n authorization_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(authorization_expires_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as authorization_expires_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('transaction_pass_through_columns') }}\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount_set_pres_amount\n \n as \n \n amount_set_pres_amount\n \n, \n \n \n amount_set_pres_currency_code\n \n as \n \n amount_set_pres_currency_code\n \n, \n \n \n amount_set_shop_amount\n \n as \n \n amount_set_shop_amount\n \n, \n \n \n amount_set_shop_currency_code\n \n as \n \n amount_set_shop_currency_code\n \n, \n \n \n authorization_code\n \n as \n \n authorization_code\n \n, \n \n \n authorization_expires_at\n \n as \n \n authorization_expires_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n error_code\n \n as \n \n error_code\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n payment_avs_result_code\n \n as \n \n payment_avs_result_code\n \n, \n \n \n payment_credit_card_bin\n \n as \n \n payment_credit_card_bin\n \n, \n \n \n payment_credit_card_company\n \n as \n \n payment_credit_card_company\n \n, \n \n \n payment_credit_card_number\n \n as \n \n payment_credit_card_number\n \n, \n \n \n payment_cvv_result_code\n \n as \n \n payment_cvv_result_code\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n cast(null as TEXT) as \n \n receipt_json\n \n , \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n currency_exchange_id\n \n as \n \n currency_exchange_id\n \n, \n \n \n currency_exchange_adjustment\n \n as \n \n currency_exchange_adjustment\n \n, \n \n \n currency_exchange_original_amount\n \n as \n \n currency_exchange_original_amount\n \n, \n \n \n currency_exchange_final_amount\n \n as \n \n currency_exchange_final_amount\n \n, \n \n \n currency_exchange_currency\n \n as \n \n currency_exchange_currency\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_shop_amount as amount_shop,\n device_id, -- Will be included in 2025-07 release of GraphQL API\n gateway,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_currency_code as amount_shop_currency_code,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n lower(kind) as kind, -- lower in REST api\n receipt_json as receipt,\n currency_exchange_id, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_adjustment, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_original_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_final_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_currency, -- Will be included in 2025-07 release of GraphQL API\n error_code,\n lower(status) as status, -- lower in REST api\n staff_member_id as user_id,\n authorization_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(authorization_expires_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as authorization_expires_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_media.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_media"], "alias": "stg_shopify_gql__product_media", "checksum": {"name": "sha256", "checksum": "cdb03869e9ddfe19b2ce602f5a435a4dd2c24e9ef9e9f38fa6417a3ffaf4e1d9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id`, `media_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3743496, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_media_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_shopify_gql__product_media_tmp')),\n staging_columns=get_graphql_product_media_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n product_id,\n media_id,\n source_relation, \n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n {{ dbt_utils.generate_surrogate_key(['product_id', 'media_id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n media_id,\n source_relation, \n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n md5(cast(coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_variant.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_variant.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_variant"], "alias": "stg_shopify_gql__product_variant", "checksum": {"name": "sha256", "checksum": "c7030869bd75cbabff68beaf7e71249275594b03fc2b06429962e8c596ba07de"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product variant in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `variant_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_available_for_sale": {"name": "is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_components_required": {"name": "has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3897383, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_variant_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_shopify_gql__product_variant_tmp')),\n staging_columns=get_graphql_product_variant_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n taxable as is_taxable,\n barcode,\n inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n tax_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('product_variant_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_variant_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n available_for_sale\n \n as \n \n available_for_sale\n \n, \n \n \n barcode\n \n as \n \n barcode\n \n, \n \n \n compare_at_price\n \n as \n \n compare_at_price\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_policy\n \n as \n \n inventory_policy\n \n, \n \n \n inventory_quantity\n \n as \n \n inventory_quantity\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n position\n \n as \n \n position\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n requires_components\n \n as \n \n requires_components\n \n, \n \n \n sellable_online_quantity\n \n as \n \n sellable_online_quantity\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tax_code\n \n as \n \n tax_code\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 \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n taxable as is_taxable,\n barcode,\n inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n tax_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_image": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_image", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__media_image.sql", "original_file_path": "models/graphql/stg_shopify_gql__media_image.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_image", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__media_image"], "alias": "stg_shopify_gql__media_image", "checksum": {"name": "sha256", "checksum": "69407476920c94773e783d596ed84aaedfefb3524efba4a654239771ec7bad8f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing image-specific properties for media assets.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `media_id`, `image_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.372046, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__media_image_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__media_image_tmp')),\n staging_columns=get_graphql_media_image_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['media_id', 'image_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__media_image_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_media_image_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__media_image.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation,\n md5(cast(coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(image_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__abandoned_checkout.sql", "original_file_path": "models/graphql/stg_shopify_gql__abandoned_checkout.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__abandoned_checkout"], "alias": "stg_shopify_gql__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "07a4852ed7c97ff18d1a526ca4d4f355ab85f81fc1e7cc652030f6a39732159a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `checkout_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_shop_amount": {"name": "total_duties_shop_amount", "description": "The total duties of the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_pres_amount": {"name": "total_duties_pres_amount", "description": "The total duties of the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_shop_currency_code": {"name": "total_duties_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_pres_currency_code": {"name": "total_duties_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_amount": {"name": "total_line_items_price_shop_amount", "description": "The sum of the prices of all line items in the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_amount": {"name": "total_line_items_price_pres_amount", "description": "The sum of the prices of all line items in the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_currency_code": {"name": "total_line_items_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_currency_code": {"name": "total_line_items_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The sum of all the taxes applied to the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The sum of all the taxes applied to the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "completed_at": {"name": "completed_at", "description": "The date and time when the buyer completed the checkout. Null if the checkout has not been completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The price of the checkout before shipping and taxes in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The price of the checkout before shipping and taxes in *presentment* currencyy. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.265279, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__abandoned_checkout_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_shopify_gql__abandoned_checkout_tmp')),\n staging_columns=get_graphql_abandoned_checkout_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n customer_id,\n id as checkout_id,\n name,\n note,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n taxes_included as has_taxes_included,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_duties_set_shop_amount as total_duties_shop_amount,\n total_duties_set_shop_currency_code as total_duties_shop_currency_code,\n total_duties_set_pres_amount as total_duties_pres_amount,\n total_duties_set_pres_currency_code as total_duties_pres_currency_code,\n total_line_items_price_set_shop_amount as total_line_items_price_shop_amount,\n total_line_items_price_set_shop_currency_code as total_line_items_price_shop_currency_code,\n total_line_items_price_set_pres_amount as total_line_items_price_pres_amount,\n total_line_items_price_set_pres_currency_code as total_line_items_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(completed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as completed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_abandoned_checkout_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n abandoned_checkout_url\n \n as \n \n abandoned_checkout_url\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n completed_at\n \n as \n \n completed_at\n \n, \n \n \n customer_id\n \n as \n \n customer_id\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 note\n \n as \n \n note\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n subtotal_price_set_pres_amount\n \n as \n \n subtotal_price_set_pres_amount\n \n, \n \n \n subtotal_price_set_pres_currency_code\n \n as \n \n subtotal_price_set_pres_currency_code\n \n, \n \n \n subtotal_price_set_shop_amount\n \n as \n \n subtotal_price_set_shop_amount\n \n, \n \n \n subtotal_price_set_shop_currency_code\n \n as \n \n subtotal_price_set_shop_currency_code\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n total_discount_set_pres_amount\n \n as \n \n total_discount_set_pres_amount\n \n, \n \n \n total_discount_set_pres_currency_code\n \n as \n \n total_discount_set_pres_currency_code\n \n, \n \n \n total_discount_set_shop_amount\n \n as \n \n total_discount_set_shop_amount\n \n, \n \n \n total_discount_set_shop_currency_code\n \n as \n \n total_discount_set_shop_currency_code\n \n, \n \n \n total_duties_set_pres_amount\n \n as \n \n total_duties_set_pres_amount\n \n, \n \n \n total_duties_set_pres_currency_code\n \n as \n \n total_duties_set_pres_currency_code\n \n, \n \n \n total_duties_set_shop_amount\n \n as \n \n total_duties_set_shop_amount\n \n, \n \n \n total_duties_set_shop_currency_code\n \n as \n \n total_duties_set_shop_currency_code\n \n, \n \n \n total_line_items_price_set_pres_amount\n \n as \n \n total_line_items_price_set_pres_amount\n \n, \n \n \n total_line_items_price_set_pres_currency_code\n \n as \n \n total_line_items_price_set_pres_currency_code\n \n, \n \n \n total_line_items_price_set_shop_amount\n \n as \n \n total_line_items_price_set_shop_amount\n \n, \n \n \n total_line_items_price_set_shop_currency_code\n \n as \n \n total_line_items_price_set_shop_currency_code\n \n, \n \n \n total_price_set_pres_amount\n \n as \n \n total_price_set_pres_amount\n \n, \n \n \n total_price_set_pres_currency_code\n \n as \n \n total_price_set_pres_currency_code\n \n, \n \n \n total_price_set_shop_amount\n \n as \n \n total_price_set_shop_amount\n \n, \n \n \n total_price_set_shop_currency_code\n \n as \n \n total_price_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n customer_id,\n id as checkout_id,\n name,\n note,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n taxes_included as has_taxes_included,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_duties_set_shop_amount as total_duties_shop_amount,\n total_duties_set_shop_currency_code as total_duties_shop_currency_code,\n total_duties_set_pres_amount as total_duties_pres_amount,\n total_duties_set_pres_currency_code as total_duties_pres_currency_code,\n total_line_items_price_set_shop_amount as total_line_items_price_shop_amount,\n total_line_items_price_set_shop_currency_code as total_line_items_price_shop_currency_code,\n total_line_items_price_set_pres_amount as total_line_items_price_pres_amount,\n total_line_items_price_set_pres_currency_code as total_line_items_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n cast(\n cast(cast(completed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as completed_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection"], "alias": "stg_shopify_gql__collection", "checksum": {"name": "sha256", "checksum": "f3cc283d3c7ac17d0c9b19de8ef5940574461038364cc5f2e02db114340908bb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\"). \n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "rule_logic": {"name": "rule_logic", "description": "Whether the `rules` are disjunctive (logical `OR`) or conjunctive (logical `AND`)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values incline - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.267379, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_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_shopify_gql__collection_tmp')),\n staging_columns=get_graphql_collection_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when applied_disjunctively is null then null\n when applied_disjunctively then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n sort_order,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__collection.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n applied_disjunctively\n \n as \n \n applied_disjunctively\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n sort_order\n \n as \n \n sort_order\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 \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when applied_disjunctively is null then null\n when applied_disjunctively then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n sort_order,\n title,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__refund", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__refund.sql", "original_file_path": "models/graphql/stg_shopify_gql__refund.sql", "unique_id": "model.shopify_source.stg_shopify_gql__refund", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__refund"], "alias": "stg_shopify_gql__refund", "checksum": {"name": "sha256", "checksum": "dcdb84868e1656f35342c6bc14ef62d6604ad84a1dffd60a6b759b4e9446bb12"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a refund within Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `refund_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "return_id": {"name": "return_id", "description": "Reference to the return which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_pres_amount": {"name": "total_refunded_pres_amount", "description": "The total amount across all transactions for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_pres_currency_code": {"name": "total_refunded_pres_currency_code", "description": "The three letter currency code for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_shop_amount": {"name": "total_refunded_shop_amount", "description": "The total amount across all transactions for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_shop_currency_code": {"name": "total_refunded_shop_currency_code", "description": "The three letter currency code for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3940556, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__refund_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_shopify_gql__refund_tmp')),\n staging_columns=get_graphql_refund_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as refund_id,\n note,\n order_id,\n staff_member_id as user_id,\n return_id,\n total_refunded_set_pres_amount as total_refunded_pres_amount,\n total_refunded_set_pres_currency_code as total_refunded_pres_currency_code,\n total_refunded_set_shop_amount as total_refunded_shop_amount,\n total_refunded_set_shop_currency_code as total_refunded_shop_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__refund.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n return_id\n \n as \n \n return_id\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n total_refunded_set_pres_amount\n \n as \n \n total_refunded_set_pres_amount\n \n, \n \n \n total_refunded_set_pres_currency_code\n \n as \n \n total_refunded_set_pres_currency_code\n \n, \n \n \n total_refunded_set_shop_amount\n \n as \n \n total_refunded_set_shop_amount\n \n, \n \n \n total_refunded_set_shop_currency_code\n \n as \n \n total_refunded_set_shop_currency_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as refund_id,\n note,\n order_id,\n staff_member_id as user_id,\n return_id,\n total_refunded_set_pres_amount as total_refunded_pres_amount,\n total_refunded_set_pres_currency_code as total_refunded_pres_currency_code,\n total_refunded_set_shop_amount as total_refunded_shop_amount,\n total_refunded_set_shop_currency_code as total_refunded_shop_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_application": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_application.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_application.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_application", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_application"], "alias": "stg_shopify_gql__discount_application", "checksum": {"name": "sha256", "checksum": "4bf285a6880d9d733f1165b4e3f0f50282d80b3e33bb5de1eba42941ef54a367"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing discount applications, which define how discounts were applied at the order level.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to all line items (`all`) or only those that are specifically entitled (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount value is a `percentage` or `fixed_amount`. If `target_type` is `shipping_line`, only `percentage` is accepted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3512506, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_application_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_shopify_gql__discount_application_tmp')),\n staging_columns=get_graphql_discount_application_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n lower(allocation_method) as allocation_method,\n upper(code) as code,\n index,\n order_id,\n lower(target_selection) as target_selection,\n lower(target_type) as target_type,\n value_amount,\n value_percentage,\n value_currency_code,\n case \n when value_percentage is not null then 'percentage'\n when lower(target_type) = 'shipping_line' then 'shipping'\n when value_amount is not null then 'fixed_amount'\n else null end as value_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['index', 'order_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_application_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_application.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocation_method\n \n as \n \n allocation_method\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n target_selection\n \n as \n \n target_selection\n \n, \n \n \n target_type\n \n as \n \n target_type\n \n, \n \n \n value_amount\n \n as \n \n value_amount\n \n, \n \n \n value_currency_code\n \n as \n \n value_currency_code\n \n, \n \n \n value_percentage\n \n as \n \n value_percentage\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n lower(allocation_method) as allocation_method,\n upper(code) as code,\n index,\n order_id,\n lower(target_selection) as target_selection,\n lower(target_type) as target_type,\n value_amount,\n value_percentage,\n value_currency_code,\n case \n when value_percentage is not null then 'percentage'\n when lower(target_type) = 'shipping_line' then 'shipping'\n when value_amount is not null then 'fixed_amount'\n else null end as value_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_tracking_info"], "alias": "stg_shopify_gql__fulfillment_tracking_info", "checksum": {"name": "sha256", "checksum": "b81b5a9a260e0144655ecdf19307a4fd7bc3e27d08f38b679573649357273654"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents tracking information associated with a fulfillment. Used by Shopify to generate clickable tracking numbers and delivery updates.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_id": {"name": "fulfillment_id", "description": "The unique identifier of the fulfillment this tracking info belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company. For supported carriers, Shopify automatically builds tracking URLs and may update the shipment status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Tracking number for the fulfillment. If a known tracking company is specified, or the number matches a known format, Shopify may auto-generate a tracking URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_url": {"name": "tracking_url", "description": "Direct URL to track the fulfillment. This is displayed in the Shopify admin and customer notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the tracking information associated with a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3649247, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_tracking_info', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_tracking_info_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_shopify_gql__fulfillment_tracking_info_tmp')),\n staging_columns=get_graphql_fulfillment_tracking_info_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n fulfillment_id,\n index,\n company as tracking_company,\n number as tracking_number,\n url as tracking_url,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['fulfillment_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_tracking_info_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n url\n \n as \n \n url\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n fulfillment_id,\n index,\n company as tracking_company,\n number as tracking_number,\n url as tracking_url,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(fulfillment_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_discount_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_discount_code"], "alias": "stg_shopify_gql__order_discount_code", "checksum": {"name": "sha256", "checksum": "46169dbd62882ab67770a3a78a62349267dba7b5a5a0ce940de18b35209b060c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Discount codes placed on orders.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.377847, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_discount_code_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_shopify_gql__order_discount_code_tmp')),\n staging_columns=get_graphql_order_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_basic": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_basic.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_basic.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_basic"], "alias": "stg_shopify_gql__discount_code_basic", "checksum": {"name": "sha256", "checksum": "6d6b5c65be3377b64f2b0a2c42b7df1f71649dd2aaa52ba1464ebec3e2f7ef5e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata about basic discount codes created by merchants.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.354712, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_basic_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_shopify_gql__discount_code_basic_tmp')),\n staging_columns=get_graphql_discount_code_basic_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_basic_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_basic_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_basic.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_note_attribute": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_note_attribute.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_note_attribute.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_note_attribute"], "alias": "stg_shopify_gql__order_note_attribute", "checksum": {"name": "sha256", "checksum": "7873d5d4778fda0c06ad067718d305252d77e07908f715611688af7d7fb948d8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing custom attributes placed on orders.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `name`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3815234, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_note_attribute_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_shopify_gql__order_note_attribute_tmp')),\n staging_columns=get_graphql_order_note_attribute_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'name', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_note_attribute_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_note_attribute_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_note_attribute.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tender_transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__tender_transaction.sql", "original_file_path": "models/graphql/stg_shopify_gql__tender_transaction.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__tender_transaction"], "alias": "stg_shopify_gql__tender_transaction", "checksum": {"name": "sha256", "checksum": "10ec55a65a5226c5e72a4837722d9753808b9fab6f01ea59b97f8b9733ff6e95"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `transaction_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3988616, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__tender_transaction_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_shopify_gql__tender_transaction_tmp')),\n staging_columns=get_graphql_tender_transaction_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency_code as currency,\n payment_method,\n remote_reference,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__tender_transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_tender_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__tender_transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n payment_method\n \n as \n \n payment_method\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n remote_reference\n \n as \n \n remote_reference\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency_code as currency,\n payment_method,\n remote_reference,\n user_id,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer"], "alias": "stg_shopify_gql__customer", "checksum": {"name": "sha256", "checksum": "ee040da4cd184398d97000afa6857728219292a2b055904acf172c7d3505cd03"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.2534714, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_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_shopify_gql__customer_tmp')),\n staging_columns=get_graphql_customer_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n lower(email_marketing_consent_state) as marketing_consent_state,\n lower(email_marketing_consent_opt_in_level) as marketing_opt_in_level,\n {{ shopify_source.fivetran_convert_timezone(column='cast(email_marketing_consent_updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as marketing_consent_updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n {{ fivetran_utils.fill_pass_through_columns('customer_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n email_marketing_consent_opt_in_level\n \n as \n \n email_marketing_consent_opt_in_level\n \n, \n \n \n email_marketing_consent_state\n \n as \n \n email_marketing_consent_state\n \n, \n \n \n email_marketing_consent_updated_at\n \n as \n \n email_marketing_consent_updated_at\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n orders_count\n \n as \n \n orders_count\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n tax_exempt\n \n as \n \n tax_exempt\n \n, \n \n \n total_spent\n \n as \n \n total_spent\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n verified_email\n \n as \n \n verified_email\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n lower(email_marketing_consent_state) as marketing_consent_state,\n lower(email_marketing_consent_opt_in_level) as marketing_opt_in_level,\n cast(\n cast(cast(email_marketing_consent_updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as marketing_consent_updated_at,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_tag"], "alias": "stg_shopify_gql__product_tag", "checksum": {"name": "sha256", "checksum": "7f63c730d6dca3cbed580fdb8e75a6f808816c7d132c861e57e18b7600c7cd43"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the product.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3915856, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_tag_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_shopify_gql__product_tag_tmp')),\n staging_columns=get_graphql_product_tag_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['product_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_tag"], "alias": "stg_shopify_gql__order_tag", "checksum": {"name": "sha256", "checksum": "1b21c4d52ba47cab2b79f8ed6d47375b9c817395c7632a7ab2816bff9f78e77b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the order.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3865116, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_tag_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_shopify_gql__order_tag_tmp')),\n staging_columns=get_graphql_order_tag_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__metafield": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__metafield", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__metafield.sql", "original_file_path": "models/graphql/stg_shopify_gql__metafield.sql", "unique_id": "model.shopify_source.stg_shopify_gql__metafield", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__metafield"], "alias": "stg_shopify_gql__metafield", "checksum": {"name": "sha256", "checksum": "4396fe0f88e8e01449008a5e44f202694eca0ffff8fd9a6bf7fb8fc3ce6df932"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context. \n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `metafield_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_id": {"name": "metafield_id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource_id": {"name": "owner_resource_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_reference": {"name": "metafield_reference", "description": "Combination of the namespace and key columns. This field is key for metafield mapping in downstream models.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating the most up to date record identified by the most recent updated_at field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3734314, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_metafield', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__metafield_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_shopify_gql__metafield_tmp')),\n staging_columns=get_graphql_metafield_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(type) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n lower({{ dbt.concat([\"namespace\",\"'_'\",\"key\"]) }}) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_metafield_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt.concat", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__metafield.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n 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 id\n \n as \n \n id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n namespace\n \n as \n \n namespace\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n owner_resource\n \n as \n \n owner_resource\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(type) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n lower(namespace || '_' || key) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_variant_media.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_variant_media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_variant_media"], "alias": "stg_shopify_gql__product_variant_media", "checksum": {"name": "sha256", "checksum": "0127c3b8b208869da17e7b9e75af811a5ece076af61f156cba239e76cba5337e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_variant_id`, `media_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3906221, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_product_variant_media', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_variant_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__product_variant_media_tmp')),\n staging_columns=get_graphql_product_variant_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['product_variant_id', 'media_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_variant_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_variant_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation,\n md5(cast(coalesce(cast(product_variant_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection_product.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection_product.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_product", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection_product"], "alias": "stg_shopify_gql__collection_product", "checksum": {"name": "sha256", "checksum": "f1dafc3138b77c46252e3d61f0ce084cdd24ccdd94e56f0212db3aca550e9aa6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id`, `product_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.2683308, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_product_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_shopify_gql__collection_product_tmp')),\n staging_columns=get_graphql_collection_product_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['collection_id', 'product_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__collection_product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n collection_id\n \n as \n \n collection_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(collection_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_quantity": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_quantity.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_quantity.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_quantity"], "alias": "stg_shopify_gql__inventory_quantity", "checksum": {"name": "sha256", "checksum": "bf44e42da315e47a9d9b7fa5b9e4cad92ba2f087de9c02766a15811a1c5dfb55"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The total quantity of the inventory item available at all locations.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_quantity_id`, `inventory_level_id`, `inventory_item_id`, `inventory_state_name`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity_id": {"name": "inventory_quantity_id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_state_name": {"name": "inventory_state_name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3686604, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_quantity_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_shopify_gql__inventory_quantity_tmp')),\n staging_columns=get_graphql_inventory_quantity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'inventory_item_id', 'inventory_level_id', 'name', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_quantity_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_quantity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_quantity.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_level_id\n \n as \n \n inventory_level_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_item_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_level_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_event": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_event.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_event.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_event"], "alias": "stg_shopify_gql__fulfillment_event", "checksum": {"name": "sha256", "checksum": "e8a4a0010c4cfa96bfd6c5a789ddf6df815ada5e397d8ee06d7480eb9a6150ba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_event_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_event_id": {"name": "fulfillment_event_id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3616958, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_event_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_shopify_gql__fulfillment_event_tmp')),\n staging_columns=get_graphql_fulfillment_event_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n lower(status) as status,\n message,\n {{ shopify_source.fivetran_convert_timezone(column='cast(estimated_delivery_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as estimated_delivery_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(happened_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_event_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_event.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\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 created_at\n \n as \n \n created_at\n \n, \n \n \n estimated_delivery_at\n \n as \n \n estimated_delivery_at\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n happened_at\n \n as \n \n happened_at\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 longitude\n \n as \n \n longitude\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n lower(status) as status,\n message,\n cast(\n cast(cast(estimated_delivery_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as estimated_delivery_at,\n cast(\n cast(cast(happened_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_free_shipping.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_free_shipping.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_free_shipping"], "alias": "stg_shopify_gql__discount_code_free_shipping", "checksum": {"name": "sha256", "checksum": "cdae529b92ea53946c636f7f8bcb98c4f7ff4b853caa5dad542cbf5d34b0adfd"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for free shipping discount codes in Shopify, where shipping costs are discounted based on qualifying conditions.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3577893, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_free_shipping_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_shopify_gql__discount_code_free_shipping_tmp')),\n staging_columns=get_graphql_discount_code_free_shipping_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_free_shipping_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_free_shipping_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_free_shipping.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_address": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_address.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_address.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_address", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_address"], "alias": "stg_shopify_gql__customer_address", "checksum": {"name": "sha256", "checksum": "cca4e8b6590274294b6e15baebf9cd8153a1a9ab4925ab353bc35319ef93dda9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a customer's mailing address and includes additional geographic metadata.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_address_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_address_id": {"name": "customer_address_id", "description": "A globally unique identifier for the customer address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer to whom this address belongs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The first line of the address (e.g., street address or PO Box).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The second line of the address (e.g., apartment, suite, or unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The name of the city, district, village, or town for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The company or organization associated with the customer at this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The full country name for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter ISO country code for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_default": {"name": "is_default", "description": "Indicates if this address is the default shipping address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The full name of the customer, derived from first and last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer\u2019s phone number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The name of the region, state, or province for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The standardized zone or province code for the region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code of the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "validation_result_summary": {"name": "validation_result_summary", "description": "A summary of address validation results (e.g., match confidence or status).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The timezone associated with the address, if available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_coordinates_validated": {"name": "has_coordinates_validated", "description": "Indicates whether the latitude and longitude coordinates were validated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.406158, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_address_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__customer_address_tmp')),\n staging_columns=get_graphql_customer_address_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_address_id,\n customer_id,\n address_1,\n address_2,\n city,\n company,\n country,\n country_code,\n first_name,\n is_default,\n last_name,\n latitude,\n longitude,\n name,\n phone,\n province,\n province_code,\n zip,\n validation_result_summary,\n timezone,\n coordinates_validated as has_coordinates_validated,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_address_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_address.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n is_default\n \n as \n \n is_default\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n latitude\n \n as \n \n latitude\n \n, \n \n \n longitude\n \n as \n \n longitude\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n zip\n \n as \n \n zip\n \n, \n \n \n validation_result_summary\n \n as \n \n validation_result_summary\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n coordinates_validated\n \n as \n \n coordinates_validated\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_address_id,\n customer_id,\n address_1,\n address_2,\n city,\n company,\n country,\n country_code,\n first_name,\n is_default,\n last_name,\n latitude,\n longitude,\n name,\n phone,\n province,\n province_code,\n zip,\n validation_result_summary,\n timezone,\n coordinates_validated as has_coordinates_validated,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_bxgy.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_bxgy.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_bxgy"], "alias": "stg_shopify_gql__discount_code_bxgy", "checksum": {"name": "sha256", "checksum": "8a278226cd258f939cddc99dc0bfaaf6eeb8173af7ecef73c6cee066cffb65d6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for Buy X Get Y-style discount codes in Shopify, where discounts are applied based on product quantity thresholds.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3562663, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_bxgy_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_shopify_gql__discount_code_bxgy_tmp')),\n staging_columns=get_graphql_discount_code_bxgy_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n total_sales_amount,\n total_sales_currency_code, \n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_bxgy_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_bxgy_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_bxgy.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n total_sales_amount,\n total_sales_currency_code, \n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_adjustment.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_adjustment.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_adjustment"], "alias": "stg_shopify_gql__order_adjustment", "checksum": {"name": "sha256", "checksum": "9ddd660936d0935e7496a6a0384b2fbb096e604fec6082d155ae5d6594d61a81"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_adjustment_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_id": {"name": "order_adjustment_id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three letter currency code for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three letter shop currency code of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_pres": {"name": "tax_amount_pres", "description": "The tax amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_pres_currency_code": {"name": "tax_amount_pres_currency_code", "description": "The three letter currency code for the tax of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_shop": {"name": "tax_amount_shop", "description": "The tax amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_shop_currency_code": {"name": "tax_amount_shop_currency_code", "description": "The three letter shop currency code of the tax for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3768888, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_adjustment_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__order_adjustment_tmp')),\n staging_columns=get_graphql_order_adjustment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_amount as amount_shop,\n amount_set_shop_currency_code as amount_shop_currency_code,\n tax_amount_set_pres_amount as tax_amount_pres,\n tax_amount_set_pres_currency_code as tax_amount_pres_currency_code,\n tax_amount_set_shop_amount as tax_amount_shop,\n tax_amount_set_shop_currency_code as tax_amount_shop_currency_code,\n reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_adjustment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_adjustment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_adjustment.sql", "compiled": true, "compiled_code": "\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n amount_set_pres_amount\n \n as \n \n amount_set_pres_amount\n \n, \n \n \n amount_set_pres_currency_code\n \n as \n \n amount_set_pres_currency_code\n \n, \n \n \n amount_set_shop_amount\n \n as \n \n amount_set_shop_amount\n \n, \n \n \n amount_set_shop_currency_code\n \n as \n \n amount_set_shop_currency_code\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n tax_amount_set_pres_amount\n \n as \n \n tax_amount_set_pres_amount\n \n, \n \n \n tax_amount_set_pres_currency_code\n \n as \n \n tax_amount_set_pres_currency_code\n \n, \n \n \n tax_amount_set_shop_amount\n \n as \n \n tax_amount_set_shop_amount\n \n, \n \n \n tax_amount_set_shop_currency_code\n \n as \n \n tax_amount_set_shop_currency_code\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_amount as amount_shop,\n amount_set_shop_currency_code as amount_shop_currency_code,\n tax_amount_set_pres_amount as tax_amount_pres,\n tax_amount_set_pres_currency_code as tax_amount_pres_currency_code,\n tax_amount_set_shop_amount as tax_amount_shop,\n tax_amount_set_shop_currency_code as tax_amount_shop_currency_code,\n reason,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_redeem_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_redeem_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_redeem_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_redeem_code"], "alias": "stg_shopify_gql__discount_redeem_code", "checksum": {"name": "sha256", "checksum": "d67dd71e571048d9820f777d5b66057c66c157c43e2937fd7cd59bbf13b5a300"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each redeem code is tied to a parent discount and may be created by an app or manually.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This is updated asynchronously and may differ from real-time usage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (typically an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount the redeem code is associated with (e.g., `discount_code_basic`, `discount_code_app`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.358965, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_redeem_code_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_shopify_gql__discount_redeem_code_tmp')),\n staging_columns=get_graphql_discount_redeem_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_redeem_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_redeem_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_redeem_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_by_description\n \n as \n \n created_by_description\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_by_title\n \n as \n \n created_by_title\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n discount_type\n \n as \n \n discount_type\n \n, \n \n \n id\n \n as \n \n id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_redeem_code_tmp"], "alias": "stg_shopify_gql__discount_redeem_code_tmp", "checksum": {"name": "sha256", "checksum": "cfc36e942b2ec63cfed9b2ce3fffc11ae5f379cdd12ffb28389ed0380c25e6d0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.2873595, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_redeem_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_redeem_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_redeem_code"], ["shopify_graphql", "discount_redeem_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__refund_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__refund_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__refund_tmp"], "alias": "stg_shopify_gql__refund_tmp", "checksum": {"name": "sha256", "checksum": "a11a22eb9bcb9a62e27a0e2ce13c47296be38a753bd3a1fa9df5e8c90c1af4ab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.2964118, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "refund"], ["shopify_graphql", "refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__refund_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_bxgy_tmp"], "alias": "stg_shopify_gql__discount_code_bxgy_tmp", "checksum": {"name": "sha256", "checksum": "74f77e4738c5c72ca63e005803146b7cdce868cd42f4187da43c47e040a9a713"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.3052318, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_bxgy', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_bxgy_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_bxgy"], ["shopify_graphql", "discount_code_bxgy"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_tracking_info_tmp"], "alias": "stg_shopify_gql__fulfillment_tracking_info_tmp", "checksum": {"name": "sha256", "checksum": "916e15ae9d3b58b4bfaed65f98893baa84653e193472d33ec051a14323d7b859"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.314876, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_tracking_info', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_tracking_info', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_tracking_info_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_tracking_info"], ["shopify_graphql", "fulfillment_tracking_info"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_tmp"], "alias": "stg_shopify_gql__customer_tmp", "checksum": {"name": "sha256", "checksum": "cbad42ba9c8311e55176c04ed3a661a3cf4a5ac59514099a69a595235769a2a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.3239625, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer"], ["shopify_graphql", "customer"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_tmp"], "alias": "stg_shopify_gql__product_tmp", "checksum": {"name": "sha256", "checksum": "d6bdb88269a24c1e7e047ad5cbcd7cb41689fdfe4028c6b73feb2cf06f5d8c4e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.3326392, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product"], ["shopify_graphql", "product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_visit_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_visit_tmp"], "alias": "stg_shopify_gql__customer_visit_tmp", "checksum": {"name": "sha256", "checksum": "a6f824dc3840066caffed56e0389dd7ef63cfb7814e79f0dbedf937bc738e392"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.341363, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_customer_visit', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_visit', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_visit_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_visit"], ["shopify_graphql", "customer_visit"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__shop_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__shop_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__shop_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__shop_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__shop_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__shop_tmp"], "alias": "stg_shopify_gql__shop_tmp", "checksum": {"name": "sha256", "checksum": "484564c85bbddaca318f1165dc0418a31023ea29c6ff8bc0531246eeb8d59a1c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.4262502, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__shop_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='shop', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_shop_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "shop"], ["shopify_graphql", "shop"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__shop_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_shop_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_quantity_tmp"], "alias": "stg_shopify_gql__inventory_quantity_tmp", "checksum": {"name": "sha256", "checksum": "07d53773e990ce9f6350463bc39d7d11d10a77623f572ba7e12f9d4ec1fc637c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.434957, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_quantity', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_quantity_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_quantity"], ["shopify_graphql", "inventory_quantity"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_shipping_line_tmp"], "alias": "stg_shopify_gql__order_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "48a6b1d4908a3a78e6f338213ae2230d0666ea0fd398dc7df1ce269582c553a8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.4434857, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_shipping_line"], ["shopify_graphql", "order_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_tmp"], "alias": "stg_shopify_gql__collection_tmp", "checksum": {"name": "sha256", "checksum": "13622f8f6269a36bc80ce5b592234d5f1b7c88cbf80e19bf6d50aa4c8886d4ab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.452007, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection"], ["shopify_graphql", "collection"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__collection_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_collection_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_item_tmp"], "alias": "stg_shopify_gql__inventory_item_tmp", "checksum": {"name": "sha256", "checksum": "562f5900bff17e2074910b889c93f479d175ca8d45a1c3a94c7f1145632af195"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.4616485, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_item"], ["shopify_graphql", "inventory_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_basic_tmp"], "alias": "stg_shopify_gql__discount_code_basic_tmp", "checksum": {"name": "sha256", "checksum": "3d2c8273708359c8f712f46e5d5178c0d6807fa06cddfac2cef2890f360b6bc2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.4702797, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_basic', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_basic_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_basic"], ["shopify_graphql", "discount_code_basic"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_adjustment_tmp"], "alias": "stg_shopify_gql__order_adjustment_tmp", "checksum": {"name": "sha256", "checksum": "41de7ec16964a262f4fa0545875703abc0c7d188982b1b9697770663e0e5557c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.4786825, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_adjustment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_adjustment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_adjustment"], ["shopify_graphql", "order_adjustment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "compiled": true, "compiled_code": "\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_note_attribute_tmp"], "alias": "stg_shopify_gql__order_note_attribute_tmp", "checksum": {"name": "sha256", "checksum": "1dc3d9e025bc87c95c74672a8a46a3e9751b91727f7e8de84c5d5c4b0ec7bca9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.48721, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_note_attribute', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_note_attribute_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_note_attribute"], ["shopify_graphql", "order_note_attribute"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_application_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_application_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_application_tmp"], "alias": "stg_shopify_gql__discount_application_tmp", "checksum": {"name": "sha256", "checksum": "51b3cf65b837e23b8567427012151bc4daed3ddaa38887bf0f6ed09aa65f98d9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.4968731, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_application', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_application_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_application"], ["shopify_graphql", "discount_application"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_app_tmp"], "alias": "stg_shopify_gql__discount_code_app_tmp", "checksum": {"name": "sha256", "checksum": "42d515dfaa9edf7645c90b5d4e3fba1b10ce11c8e33e5f9004dc3286c70abbb5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.505455, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_discount_code_app', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_app', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_app_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_app"], ["shopify_graphql", "discount_code_app"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_shipping_tax_line_tmp"], "alias": "stg_shopify_gql__order_shipping_tax_line_tmp", "checksum": {"name": "sha256", "checksum": "2f563d319f6ab1e785c0c0dd8c46c7eb60b34036eab89dff6306ce7e0318dc2a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5143747, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_shipping_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_shipping_tax_line"], ["shopify_graphql", "order_shipping_tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_line_refund_tmp"], "alias": "stg_shopify_gql__order_line_refund_tmp", "checksum": {"name": "sha256", "checksum": "de5d8368b1e2f8a01f8457ecfb538f18f39940fbfd88a8bd4317449bdb3500d5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5229928, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line_refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_line_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_line_refund"], ["shopify_graphql", "order_line_refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__metafield_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__metafield_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__metafield_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__metafield_tmp"], "alias": "stg_shopify_gql__metafield_tmp", "checksum": {"name": "sha256", "checksum": "745867433e8c372b8247770c5511da696b44146d8a9cecbb805e2fbccc407b1b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.532867, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_metafield', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='metafield', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_metafield_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "metafield"], ["shopify_graphql", "metafield"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_metafield_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_line_tmp"], "alias": "stg_shopify_gql__order_line_tmp", "checksum": {"name": "sha256", "checksum": "8d070802154be87b0f6abc6a84d1cc04a7479c71e72d51f9c29e9b84ff0a4470"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5420523, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_line"], ["shopify_graphql", "order_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_variant_media_tmp"], "alias": "stg_shopify_gql__product_variant_media_tmp", "checksum": {"name": "sha256", "checksum": "a6a402d3eb1fc91386b58803aeea45dbfa70f93ad6fcc44aebe193e37428c941"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5510588, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_product_variant_media', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_variant_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_variant_media"], ["shopify_graphql", "product_variant_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_discount_code_tmp"], "alias": "stg_shopify_gql__order_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "e5f05cb907273a7d7faf0cb35b3f239d92e59bea6b53b3d9f874621d4702bacd"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5616653, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_discount_code"], ["shopify_graphql", "order_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_variant_tmp"], "alias": "stg_shopify_gql__product_variant_tmp", "checksum": {"name": "sha256", "checksum": "49b89b7bc716e35589007a5ab8431b1371c4a468f4be3bffbba33558f287c85b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5741842, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_variant_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_variant"], ["shopify_graphql", "product_variant"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_tmp"], "alias": "stg_shopify_gql__order_tmp", "checksum": {"name": "sha256", "checksum": "00d88df1afa1afc1c67823cb65c6c737c7efe99876be4543728c56578daa29fa"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5834537, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order"], ["shopify_graphql", "order"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__location_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__location_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__location_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__location_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__location_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__location_tmp"], "alias": "stg_shopify_gql__location_tmp", "checksum": {"name": "sha256", "checksum": "6e50fc60b6453e907f266a407a8ffd9c7e0509261b61e3a62d79bd98ff8f9d16"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5924237, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__location_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='location', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_location_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "location"], ["shopify_graphql", "location"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__location_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_free_shipping_tmp"], "alias": "stg_shopify_gql__discount_code_free_shipping_tmp", "checksum": {"name": "sha256", "checksum": "de9a7bc807b211bfad12ecd0bbffc6f5566d4f52164b3bc66f5bb79a363ac4a1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6013317, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_free_shipping', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_free_shipping_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_free_shipping"], ["shopify_graphql", "discount_code_free_shipping"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tax_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__tax_line_tmp"], "alias": "stg_shopify_gql__tax_line_tmp", "checksum": {"name": "sha256", "checksum": "b797f714cca33152d58d9f9371337be2af75ba71868a9c645a5b661e30953bdb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6115732, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "tax_line"], ["shopify_graphql", "tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_order_line_item_tmp"], "alias": "stg_shopify_gql__fulfillment_order_line_item_tmp", "checksum": {"name": "sha256", "checksum": "7da21a799b42d6572274d5c708e6c1820d534868af0169a999f3ba0baa558cf0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6202376, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_order_line_item', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_order_line_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_order_line_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_order_line_item"], ["shopify_graphql", "fulfillment_order_line_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_product_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_product_tmp"], "alias": "stg_shopify_gql__collection_product_tmp", "checksum": {"name": "sha256", "checksum": "265042e513f9f41755e3d67cb838c5a4bc2a0f30f0005797170d61c7c68c506f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6293364, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection_product"], ["shopify_graphql", "collection_product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_tmp"], "alias": "stg_shopify_gql__fulfillment_tmp", "checksum": {"name": "sha256", "checksum": "33c816c7194073933556f8e74f281eaea2e3f3c728d0cef25ac3270e69ac46b3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6379426, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment"], ["shopify_graphql", "fulfillment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__abandoned_checkout_tmp"], "alias": "stg_shopify_gql__abandoned_checkout_tmp", "checksum": {"name": "sha256", "checksum": "447fcf5964f191e3a35aac2df0126f572f80174deefc22e167e089b2c072d3ad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.646772, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_tmp\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_abandoned_checkout_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "abandoned_checkout"], ["shopify_graphql", "abandoned_checkout"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_tag_tmp"], "alias": "stg_shopify_gql__order_tag_tmp", "checksum": {"name": "sha256", "checksum": "ef3af11883c240380fbddf262db8be9cd7d8008833e23746bc1c7268ba0a43e1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.65728, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_tag"], ["shopify_graphql", "order_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_media_tmp"], "alias": "stg_shopify_gql__product_media_tmp", "checksum": {"name": "sha256", "checksum": "9fec30aae73d36ed6755c3f429db455f56b87fdfb24affac6bb8110c833d7538"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6659124, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_media"], ["shopify_graphql", "product_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_image_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_image_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_image_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__media_image_tmp"], "alias": "stg_shopify_gql__media_image_tmp", "checksum": {"name": "sha256", "checksum": "30d02cd315c4bc627fdb2de7d2c4910b8401ec97e7f9bd572c2f4efb219d3059"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6746957, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media_image', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_media_image_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "media_image"], ["shopify_graphql", "media_image"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_media_image_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__tender_transaction_tmp"], "alias": "stg_shopify_gql__tender_transaction_tmp", "checksum": {"name": "sha256", "checksum": "999811b7c8c9bbb9ca1f553177635c3ff561ce3a498c54e7c2d16ef471dc94a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6941943, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tender_transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_tender_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "tender_transaction"], ["shopify_graphql", "tender_transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__media_tmp"], "alias": "stg_shopify_gql__media_tmp", "checksum": {"name": "sha256", "checksum": "835c3851c7d05b5f89f126d660881e1bd1ba913531e40059ebc9a18e5814a12b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.7028081, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "media"], ["shopify_graphql", "media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_allocation_tmp"], "alias": "stg_shopify_gql__discount_allocation_tmp", "checksum": {"name": "sha256", "checksum": "3031935efab97198e8bfd1d1818023693aed0298c4b4334573c1d099ccb4c8d2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.7114463, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_allocation', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_allocation_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_allocation"], ["shopify_graphql", "discount_allocation"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "alias": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "fadf9a4496c441981f39419454d443a7be6f42ffdb6b1d9be43a628ec71d06c1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.720165, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_abandoned_checkout_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "abandoned_checkout_discount_code"], ["shopify_graphql", "abandoned_checkout_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_level_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_level_tmp"], "alias": "stg_shopify_gql__inventory_level_tmp", "checksum": {"name": "sha256", "checksum": "e940f5fe7081ecb499500343359757242bb316d24954bd29464cccb19e675125"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.7303636, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_level', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_level_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_level"], ["shopify_graphql", "inventory_level"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_tag_tmp"], "alias": "stg_shopify_gql__customer_tag_tmp", "checksum": {"name": "sha256", "checksum": "6c9353c051ba91aace024c85f929cfe6f1fc74e9bf69e7c185ba5abc16b3bad0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.7389839, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_tag"], ["shopify_graphql", "customer_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_event_tmp"], "alias": "stg_shopify_gql__fulfillment_event_tmp", "checksum": {"name": "sha256", "checksum": "b3d654e7eb8d3c87eed9e599ce914c626a86ec7426dd9501721e89556e6e3667"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.7476315, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_event', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_event_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_event"], ["shopify_graphql", "fulfillment_event"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__transaction_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__transaction_tmp"], "alias": "stg_shopify_gql__transaction_tmp", "checksum": {"name": "sha256", "checksum": "2e07b515aabc2fcadb617d88f8bd4b308339b0f2425445340e95c18fe47ea54f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.7566786, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "transaction"], ["shopify_graphql", "transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_tag_tmp"], "alias": "stg_shopify_gql__product_tag_tmp", "checksum": {"name": "sha256", "checksum": "a24216b9e175dc892ba05ae61cef5b660627718f05f76c3773cd851609c471a0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.766825, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_tag"], ["shopify_graphql", "product_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_address_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_address_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_address_tmp"], "alias": "stg_shopify_gql__customer_address_tmp", "checksum": {"name": "sha256", "checksum": "3df59d0c9b1202ab5431236c9ffd08af4840856ea7e880991c6247ca328c89f4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.7757256, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_address', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_address_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_address"], ["shopify_graphql", "customer_address"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c", "fqn": ["shopify", "unique_shopify_gql__customer_cohorts_customer_cohort_id"], "alias": "unique_shopify_gql__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1007311, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_cohorts", "attached_node": "model.shopify.shopify_gql__customer_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2", "fqn": ["shopify", "not_null_shopify_gql__customer_cohorts_customer_cohort_id"], "alias": "not_null_shopify_gql__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1035688, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_cohorts", "attached_node": "model.shopify.shopify_gql__customer_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27", "fqn": ["shopify", "unique_shopify_gql__customer_email_cohorts_customer_cohort_id"], "alias": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1060102, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_email_cohorts", "attached_node": "model.shopify.shopify_gql__customer_email_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f", "fqn": ["shopify", "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id"], "alias": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1085112, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_email_cohorts", "attached_node": "model.shopify.shopify_gql__customer_email_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__orders_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077", "fqn": ["shopify", "unique_shopify_gql__orders_unique_key"], "alias": "unique_shopify_gql__orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1110706, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__orders", "attached_node": "model.shopify.shopify_gql__orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__orders')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__orders_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041", "fqn": ["shopify", "not_null_shopify_gql__orders_unique_key"], "alias": "not_null_shopify_gql__orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.113488, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__orders", "attached_node": "model.shopify.shopify_gql__orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__orders')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4"}, "created_at": 1754507519.115942, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customers"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__customers\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__customers", "attached_node": "model.shopify.shopify_gql__customers", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__customers')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation"], "alias": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc"}, "created_at": 1754507519.1411865, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_emails", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_emails"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__customer_emails", "attached_node": "model.shopify.shopify_gql__customer_emails", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__customer_emails')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__products_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__products_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326", "fqn": ["shopify", "unique_shopify_gql__products_unique_key"], "alias": "unique_shopify_gql__products_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1466558, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__products"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__products_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__products\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__products", "attached_node": "model.shopify.shopify_gql__products", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__products')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__products_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__products_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497", "fqn": ["shopify", "not_null_shopify_gql__products_unique_key"], "alias": "not_null_shopify_gql__products_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1490307, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__products"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__products_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__products\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__products", "attached_node": "model.shopify.shopify_gql__products", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__products')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__order_lines_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4", "fqn": ["shopify", "unique_shopify_gql__order_lines_unique_key"], "alias": "unique_shopify_gql__order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1515565, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__order_lines", "attached_node": "model.shopify.shopify_gql__order_lines", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__order_lines')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__order_lines_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db", "fqn": ["shopify", "not_null_shopify_gql__order_lines_unique_key"], "alias": "not_null_shopify_gql__order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1539583, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__order_lines", "attached_node": "model.shopify.shopify_gql__order_lines", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__order_lines')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__transactions_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__transactions_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c", "fqn": ["shopify", "unique_shopify_gql__transactions_unique_key"], "alias": "unique_shopify_gql__transactions_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1564448, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__transactions_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__transactions", "attached_node": "model.shopify.shopify_gql__transactions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__transactions_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__transactions_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d", "fqn": ["shopify", "not_null_shopify_gql__transactions_unique_key"], "alias": "not_null_shopify_gql__transactions_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1588438, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__transactions_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__transactions", "attached_node": "model.shopify.shopify_gql__transactions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__inventory_levels_inventory_item_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__inventory_levels_inventory_item_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957", "fqn": ["shopify", "not_null_shopify_gql__inventory_levels_inventory_item_id"], "alias": "not_null_shopify_gql__inventory_levels_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1612508, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__inventory_levels_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__inventory_levels_location_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__inventory_levels_location_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e", "fqn": ["shopify", "not_null_shopify_gql__inventory_levels_location_id"], "alias": "not_null_shopify_gql__inventory_levels_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1637459, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__inventory_levels_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e"}, "created_at": 1754507519.166185, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\n group by inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__discounts_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5", "fqn": ["shopify", "unique_shopify_gql__discounts_unique_key"], "alias": "unique_shopify_gql__discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.17156, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__discounts_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994", "fqn": ["shopify", "not_null_shopify_gql__discounts_unique_key"], "alias": "not_null_shopify_gql__discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1739645, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__discounts_discount_code_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__discounts_discount_code_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264", "fqn": ["shopify", "not_null_shopify_gql__discounts_discount_code_id"], "alias": "not_null_shopify_gql__discounts_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.176502, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__discounts_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation"], "alias": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6"}, "created_at": 1754507519.1793752, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n code, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\n group by code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__daily_shop_shop_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__daily_shop_shop_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8", "fqn": ["shopify", "not_null_shopify_gql__daily_shop_shop_id"], "alias": "not_null_shopify_gql__daily_shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1847699, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__daily_shop"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__daily_shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__daily_shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.shopify_gql__daily_shop", "attached_node": "model.shopify.shopify_gql__daily_shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('shopify_gql__daily_shop')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a", "fqn": ["shopify", "unique_shopify__customer_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3095136, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "fqn": ["shopify", "not_null_shopify__customer_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.31208, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182", "fqn": ["shopify", "unique_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3144994, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "fqn": ["shopify", "not_null_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3168552, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51", "fqn": ["shopify", "unique_shopify__orders_orders_unique_key"], "alias": "unique_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3192565, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n orders_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is not null\ngroup by orders_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "fqn": ["shopify", "not_null_shopify__orders_orders_unique_key"], "alias": "not_null_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3217201, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect orders_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696"}, "created_at": 1754507519.3241916, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customers"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__customers\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customers", "attached_node": "model.shopify.shopify__customers", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customers')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation"], "alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f"}, "created_at": 1754507519.330024, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_emails", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_emails"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__customer_emails\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customer_emails", "attached_node": "model.shopify.shopify__customer_emails", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customer_emails')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa"}, "created_at": 1754507519.3352995, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__products"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__products\"\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__products", "attached_node": "model.shopify.shopify__products", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__products')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e", "fqn": ["shopify", "unique_shopify__order_lines_order_lines_unique_key"], "alias": "unique_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.340574, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_lines_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is not null\ngroup by order_lines_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "unique", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "fqn": ["shopify", "not_null_shopify__order_lines_order_lines_unique_key"], "alias": "not_null_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3429484, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_lines_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981", "fqn": ["shopify", "unique_shopify__transactions_transactions_unique_id"], "alias": "unique_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3455126, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n transactions_unique_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is not null\ngroup by transactions_unique_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "fqn": ["shopify", "not_null_shopify__transactions_transactions_unique_id"], "alias": "not_null_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3479009, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transactions_unique_id\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_inventory_item_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_inventory_item_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "fqn": ["shopify", "not_null_shopify__inventory_levels_inventory_item_id"], "alias": "not_null_shopify__inventory_levels_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3502817, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_location_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_location_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0", "fqn": ["shopify", "not_null_shopify__inventory_levels_location_id"], "alias": "not_null_shopify__inventory_levels_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3526483, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b"}, "created_at": 1754507519.3551903, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\n group by inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f", "fqn": ["shopify", "unique_shopify__discounts_discounts_unique_key"], "alias": "unique_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3603728, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n discounts_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is not null\ngroup by discounts_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "fqn": ["shopify", "not_null_shopify__discounts_discounts_unique_key"], "alias": "not_null_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3629622, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discounts_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discount_code_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discount_code_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "fqn": ["shopify", "not_null_shopify__discounts_discount_code_id"], "alias": "not_null_shopify__discounts_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3654337, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation"], "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e"}, "created_at": 1754507519.3678524, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n code, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__discounts\"\n group by code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__daily_shop_shop_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__daily_shop_shop_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f", "fqn": ["shopify", "not_null_shopify__daily_shop_shop_id"], "alias": "not_null_shopify__daily_shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3732207, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__daily_shop"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__daily_shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"shopify__daily_shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.shopify__daily_shop", "attached_node": "model.shopify.shopify__daily_shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('shopify__daily_shop')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3"}, "created_at": 1754507519.3820198, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customers__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customers__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n customer_id, source_relation\n from __dbt__cte__shopify__customers__order_aggregates\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": [{"id": "model.shopify.shopify__customers__order_aggregates", "sql": " __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customers__order_aggregates", "attached_node": "model.shopify.shopify__customers__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customers__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04"}, "created_at": 1754507519.3874068, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__orders__order_line_aggregates", "attached_node": "model.shopify.shopify__orders__order_line_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__orders__order_line_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation"], "alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1"}, "created_at": 1754507519.3927, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__emails__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__emails__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n email, source_relation\n from __dbt__cte__int_shopify__emails__order_aggregates\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__emails__order_aggregates", "sql": " __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__emails__order_aggregates", "attached_node": "model.shopify.int_shopify__emails__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__emails__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation"], "alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce"}, "created_at": 1754507519.3984714, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__customer_email_rollup", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__customer_email_rollup"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__customer_email_rollup", "attached_node": "model.shopify.int_shopify__customer_email_rollup", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__customer_email_rollup')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e"}, "created_at": 1754507519.4037914, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__inventory_level__aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__inventory_level__aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n variant_id, location_id, source_relation\n from __dbt__cte__int_shopify__inventory_level__aggregates\n group by variant_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify__inventory_level__aggregates", "sql": " __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__inventory_level__aggregates", "attached_node": "model.shopify.int_shopify__inventory_level__aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["variant_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__inventory_level__aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation"], "alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13"}, "created_at": 1754507519.4089568, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discounts__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__discounts__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), validation_errors as (\n\n select\n code, type, source_relation\n from __dbt__cte__int_shopify__discounts__order_aggregates\n group by code, type, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discounts__order_aggregates", "sql": " __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__discounts__order_aggregates", "attached_node": "model.shopify.int_shopify__discounts__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "type", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__discounts__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation"], "alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936"}, "created_at": 1754507519.4146483, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discounts__abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__discounts__abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), validation_errors as (\n\n select\n code, type, source_relation\n from __dbt__cte__int_shopify__discounts__abandoned_checkouts\n group by code, type, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "sql": " __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__discounts__abandoned_checkouts", "attached_node": "model.shopify.int_shopify__discounts__abandoned_checkouts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "type", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__discounts__abandoned_checkouts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac"}, "created_at": 1754507519.4199772, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), validation_errors as (\n\n select\n order_id, source_relation\n from __dbt__cte__int_shopify__order__shipping_aggregates\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__order__shipping_aggregates", "attached_node": "model.shopify.int_shopify__order__shipping_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__order__shipping_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28"}, "created_at": 1754507519.4254177, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__product__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__product__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), validation_errors as (\n\n select\n product_id, source_relation\n from __dbt__cte__int_shopify__product__order_line_aggregates\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__product__order_line_aggregates", "sql": " __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__product__order_line_aggregates", "attached_node": "model.shopify.int_shopify__product__order_line_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__product__order_line_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04"}, "created_at": 1754507519.4305606, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__products_with_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__products_with_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), validation_errors as (\n\n select\n product_id, source_relation\n from __dbt__cte__int_shopify__products_with_aggregates\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__products_with_aggregates", "sql": " __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__products_with_aggregates", "attached_node": "model.shopify.int_shopify__products_with_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__products_with_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95.sql", "original_file_path": "models/rest/standardized_models/shopify__standardized_models.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae", "fqn": ["shopify", "rest", "standardized_models", "dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95"}, "created_at": 1754507519.4506645, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__line_item_enhanced"]}, "compiled_path": "target/compiled/shopify/models/rest/standardized_models/shopify__standardized_models.yml/dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n header_id, line_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__line_item_enhanced\"\n group by header_id, line_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__line_item_enhanced", "attached_node": "model.shopify.shopify__line_item_enhanced", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["header_id", "line_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__line_item_enhanced')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742.sql", "original_file_path": "models/graphql/standardized_models/shopify__standardized_models.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1", "fqn": ["shopify", "graphql", "standardized_models", "dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742"}, "created_at": 1754507519.46145, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__line_item_enhanced"]}, "compiled_path": "target/compiled/shopify/models/graphql/standardized_models/shopify__standardized_models.yml/dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n header_id, line_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__line_item_enhanced\"\n group by header_id, line_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__line_item_enhanced", "attached_node": "model.shopify.shopify_gql__line_item_enhanced", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["header_id", "line_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__line_item_enhanced')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be"}, "created_at": 1754507519.5815682, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__customer", "attached_node": "model.shopify_source.stg_shopify__customer", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__customer')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation"], "alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3"}, "created_at": 1754507519.587619, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_refund_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n group by order_line_refund_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_line_refund", "attached_node": "model.shopify_source.stg_shopify__order_line_refund", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_line_refund')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec"}, "created_at": 1754507519.5933397, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n group by order_line_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_line", "attached_node": "model.shopify_source.stg_shopify__order_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e"}, "created_at": 1754507519.59898, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order", "attached_node": "model.shopify_source.stg_shopify__order", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d"}, "created_at": 1754507519.6046298, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product", "attached_node": "model.shopify_source.stg_shopify__product", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation"], "alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e"}, "created_at": 1754507519.6102147, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n variant_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n group by variant_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_variant", "attached_node": "model.shopify_source.stg_shopify__product_variant", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["variant_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_variant')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation"], "alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92"}, "created_at": 1754507519.6156123, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n group by transaction_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__transaction", "attached_node": "model.shopify_source.stg_shopify__transaction", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__transaction')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation"], "alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659"}, "created_at": 1754507519.6211538, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__refund", "attached_node": "model.shopify_source.stg_shopify__refund", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__refund')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207"}, "created_at": 1754507519.6273048, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_adjustment_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"\n group by order_adjustment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_adjustment", "attached_node": "model.shopify_source.stg_shopify__order_adjustment", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_adjustment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_adjustment')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__abandoned_checkout_checkout_id"], "alias": "not_null_stg_shopify__abandoned_checkout_checkout_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.6327572, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation"], "alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f"}, "created_at": 1754507519.6352494, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n group by checkout_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_collection_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_product_collection_id"], "alias": "not_null_stg_shopify__collection_product_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.640596, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_product_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_product_product_id"], "alias": "not_null_stg_shopify__collection_product_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.6430051, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_product_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e"}, "created_at": 1754507519.6454782, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n collection_id, product_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n group by collection_id, product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["collection_id", "product_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_collection_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_collection_id"], "alias": "not_null_stg_shopify__collection_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.6509326, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection", "attached_node": "model.shopify_source.stg_shopify__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation"], "alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad"}, "created_at": 1754507519.6533997, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n collection_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n group by collection_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__collection", "attached_node": "model.shopify_source.stg_shopify__collection", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["collection_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__collection')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__customer_tag_index"], "alias": "not_null_stg_shopify__customer_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.658779, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__customer_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_customer_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_customer_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__customer_tag_customer_id"], "alias": "not_null_stg_shopify__customer_tag_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.6611946, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__customer_tag_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6"}, "created_at": 1754507519.6636615, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n group by customer_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__fulfillment_fulfillment_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__fulfillment_fulfillment_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__fulfillment_fulfillment_id"], "alias": "not_null_stg_shopify__fulfillment_fulfillment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.6692216, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__fulfillment_fulfillment_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fulfillment_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\nwhere fulfillment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fulfillment_id", "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fulfillment_id", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70", "fqn": ["shopify_source", "rest", "accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure"], "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd"}, "created_at": 1754507519.671682, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'pending','open','success','cancelled','error','failure'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["pending", "open", "success", "cancelled", "error", "failure"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation"], "alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01"}, "created_at": 1754507519.6835527, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n fulfillment_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by fulfillment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["fulfillment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__inventory_item_inventory_item_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__inventory_item_inventory_item_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__inventory_item_inventory_item_id"], "alias": "not_null_stg_shopify__inventory_item_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.6887374, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__inventory_item_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.stg_shopify__inventory_item", "attached_node": "model.shopify_source.stg_shopify__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('stg_shopify__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f"}, "created_at": 1754507519.6913633, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\n group by inventory_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_item", "attached_node": "model.shopify_source.stg_shopify__inventory_item", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_item')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014"}, "created_at": 1754507519.6965628, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_level_id, inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"\n group by inventory_level_id, inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_level", "attached_node": "model.shopify_source.stg_shopify__inventory_level", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_level_id", "inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_level')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation"], "alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6"}, "created_at": 1754507519.7019403, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_quantity_id, inventory_item_id, inventory_level_id, inventory_state_name, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"\n group by inventory_quantity_id, inventory_item_id, inventory_level_id, inventory_state_name, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify__inventory_quantity", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_quantity_id", "inventory_item_id", "inventory_level_id", "inventory_state_name", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_quantity')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__location_location_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__location_location_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__location_location_id"], "alias": "not_null_stg_shopify__location_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7072945, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__location_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__location\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_shopify__location", "attached_node": "model.shopify_source.stg_shopify__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_shopify__location')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646"}, "created_at": 1754507519.7097328, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__location\"\n group by location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__location", "attached_node": "model.shopify_source.stg_shopify__location", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__location')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__media_media_id"], "alias": "not_null_stg_shopify__media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.715005, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media", "attached_node": "model.shopify_source.stg_shopify__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e"}, "created_at": 1754507519.717466, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__media\"\n group by media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__media", "attached_node": "model.shopify_source.stg_shopify__media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_image_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_image_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__media_image_media_id"], "alias": "not_null_stg_shopify__media_image_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7234802, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__media_image_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media_image\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media_image", "attached_node": "model.shopify_source.stg_shopify__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media_image')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation"], "alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75"}, "created_at": 1754507519.725933, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n media_id, image_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__media_image\"\n group by media_id, image_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__media_image", "attached_node": "model.shopify_source.stg_shopify__media_image", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["media_id", "image_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__media_image')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__metafield_metafield_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__metafield_metafield_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__metafield_metafield_id"], "alias": "not_null_stg_shopify__metafield_metafield_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7312472, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__metafield_metafield_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metafield_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\nwhere metafield_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metafield_id", "file_key_name": "models.stg_shopify__metafield", "attached_node": "model.shopify_source.stg_shopify__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "metafield_id", "model": "{{ get_where_subquery(ref('stg_shopify__metafield')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation"], "alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea"}, "created_at": 1754507519.7337108, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n metafield_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n group by metafield_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__metafield", "attached_node": "model.shopify_source.stg_shopify__metafield", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["metafield_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__metafield')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_name", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_name.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_note_attribute_name"], "alias": "not_null_stg_shopify__order_note_attribute_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7389815, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect name\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_note_attribute_order_id"], "alias": "not_null_stg_shopify__order_note_attribute_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.741384, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation"], "alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d"}, "created_at": 1754507519.743848, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, name, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\n group by order_id, name, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "name", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1"}, "created_at": 1754507519.7491546, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation"], "alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36"}, "created_at": 1754507519.7515852, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_shipping_line_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by order_shipping_line_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_shipping_line_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_shipping_tax_line_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_tax_line_index"], "alias": "not_null_stg_shopify__order_shipping_tax_line_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7569165, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_shipping_tax_line_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858"}, "created_at": 1754507519.7593777, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f"}, "created_at": 1754507519.761784, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_shipping_line_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by order_shipping_line_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_shipping_line_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_tag_index"], "alias": "not_null_stg_shopify__order_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7670481, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_tag_order_id"], "alias": "not_null_stg_shopify__order_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.769446, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a"}, "created_at": 1754507519.7719932, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\n group by 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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_key.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_url_tag_key"], "alias": "not_null_stg_shopify__order_url_tag_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.777176, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_url_tag_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "key", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "key", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_url_tag_order_id"], "alias": "not_null_stg_shopify__order_url_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7798083, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_url_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation"], "alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f"}, "created_at": 1754507519.7822669, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, key, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\n group by order_id, key, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "key", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_media_product_id"], "alias": "not_null_stg_shopify__product_media_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.787554, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_media_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_media_media_id"], "alias": "not_null_stg_shopify__product_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7899451, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110"}, "created_at": 1754507519.792452, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n group by product_id, media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_product_variant_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_product_variant_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_variant_media_product_variant_id"], "alias": "not_null_stg_shopify__product_variant_media_product_variant_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.797756, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_variant_media_product_variant_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_variant_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere product_variant_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_variant_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_variant_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_variant_media_media_id"], "alias": "not_null_stg_shopify__product_variant_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.8001745, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_variant_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c"}, "created_at": 1754507519.80269, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_variant_id, media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n group by product_variant_id, media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_variant_id", "media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_tag_index"], "alias": "not_null_stg_shopify__product_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.8079658, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_tag_product_id"], "alias": "not_null_stg_shopify__product_tag_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.8103838, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_tag_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed"}, "created_at": 1754507519.812804, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n group by product_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__shop_shop_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__shop_shop_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__shop_shop_id"], "alias": "not_null_stg_shopify__shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.818058, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.stg_shopify__shop", "attached_node": "model.shopify_source.stg_shopify__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('stg_shopify__shop')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation"], "alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e"}, "created_at": 1754507519.8205044, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n shop_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n group by shop_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__shop", "attached_node": "model.shopify_source.stg_shopify__shop", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["shop_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__shop')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__tender_transaction_transaction_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__tender_transaction_transaction_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__tender_transaction_transaction_id"], "alias": "not_null_stg_shopify__tender_transaction_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.8263123, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__tender_transaction_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_shopify__tender_transaction", "attached_node": "model.shopify_source.stg_shopify__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_shopify__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473"}, "created_at": 1754507519.8287082, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\n group by transaction_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__tender_transaction", "attached_node": "model.shopify_source.stg_shopify__tender_transaction", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__tender_transaction')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id"], "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c"}, "created_at": 1754507519.8339736, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation"], "alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1"}, "created_at": 1754507519.8364465, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, code, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n group by checkout_id, code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "code", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_discount_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_code", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_code.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_discount_code_code"], "alias": "not_null_stg_shopify__order_discount_code_code", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.841725, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_discount_code_code.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect code\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "code", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "code", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_discount_code_order_id"], "alias": "not_null_stg_shopify__order_discount_code_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.8441052, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_discount_code_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0"}, "created_at": 1754507519.846544, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n group by 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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2"}, "created_at": 1754507519.8518054, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n group by checkout_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout_shipping_line", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_shipping_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27", "fqn": ["shopify_source", "rest", "accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed"], "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc"}, "created_at": 1754507519.8571706, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'attempted_delivery','delayed','delivered','failure','in_transit','out_for_delivery','ready_for_pickup','picked_up','label_printed','label_purchased','confirmed'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify__fulfillment_event", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["attempted_delivery", "delayed", "delivered", "failure", "in_transit", "out_for_delivery", "ready_for_pickup", "picked_up", "label_printed", "label_purchased", "confirmed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation"], "alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd"}, "created_at": 1754507519.8663797, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n fulfillment_event_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n group by fulfillment_event_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify__fulfillment_event", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["fulfillment_event_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment_event')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136"}, "created_at": 1754507519.8717053, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n group by order_line_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__tax_line", "attached_node": "model.shopify_source.stg_shopify__tax_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__tax_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_allocation_discount_application_index"], "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca"}, "created_at": 1754507519.8770092, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_application_index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere discount_application_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_application_index", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_application_index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_order_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_allocation_order_line_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_allocation_order_line_id"], "alias": "not_null_stg_shopify__discount_allocation_order_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.8794496, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_allocation_order_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere order_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_line_id", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation"], "alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98"}, "created_at": 1754507519.8818595, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, discount_application_index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\n group by order_line_id, discount_application_index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "discount_application_index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_application_index"], "alias": "not_null_stg_shopify__discount_application_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.8871696, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_application_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_application_order_id"], "alias": "not_null_stg_shopify__discount_application_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.889557, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_application_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed"}, "created_at": 1754507519.8919375, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n index, order_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n group by index, order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["index", "order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_app_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_app_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_app_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_app_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.897227, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_app_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_app", "attached_node": "model.shopify_source.stg_shopify__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd"}, "created_at": 1754507519.899669, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_app", "attached_node": "model.shopify_source.stg_shopify__discount_code_app", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_app')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_basic_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_basic_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_basic_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.9049416, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125"}, "created_at": 1754507519.9073815, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify__discount_code_basic", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_basic')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_bxgy_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.9129806, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976"}, "created_at": 1754507519.915447, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify__discount_code_bxgy", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_bxgy')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_free_shipping_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_free_shipping_discount_code_id"], "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354"}, "created_at": 1754507519.9216006, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce"}, "created_at": 1754507519.9240026, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify__discount_code_free_shipping", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_free_shipping')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_redeem_code_discount_code_id"], "alias": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.9293332, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4"}, "created_at": 1754507519.931764, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify__discount_redeem_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_redeem_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_unique_key"], "alias": "unique_stg_shopify_gql__customer_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4073453, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer", "attached_node": "model.shopify_source.stg_shopify_gql__customer", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_unique_key"], "alias": "not_null_stg_shopify_gql__customer_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4099503, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer", "attached_node": "model.shopify_source.stg_shopify_gql__customer", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_unique_key"], "alias": "unique_stg_shopify_gql__order_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4123995, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order", "attached_node": "model.shopify_source.stg_shopify_gql__order", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_unique_key"], "alias": "not_null_stg_shopify_gql__order_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.414879, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order", "attached_node": "model.shopify_source.stg_shopify_gql__order", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_line_unique_key"], "alias": "unique_stg_shopify_gql__order_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.417311, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4196784, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__abandoned_checkout_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__abandoned_checkout_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__abandoned_checkout_unique_key"], "alias": "unique_stg_shopify_gql__abandoned_checkout_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4220617, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__abandoned_checkout_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__abandoned_checkout_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_unique_key"], "alias": "not_null_stg_shopify_gql__abandoned_checkout_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4245465, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__abandoned_checkout_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_checkout_id"], "alias": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.426918, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__abandoned_checkout_checkout_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key"], "alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815"}, "created_at": 1754507520.429307, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key"], "alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256"}, "created_at": 1754507520.4316413, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id"], "alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e"}, "created_at": 1754507520.4339716, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_unique_key"], "alias": "unique_stg_shopify_gql__collection_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4364412, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__collection_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_unique_key"], "alias": "not_null_stg_shopify_gql__collection_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4387915, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_collection_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_collection_id"], "alias": "not_null_stg_shopify_gql__collection_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4411366, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_product_unique_key"], "alias": "unique_stg_shopify_gql__collection_product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4435544, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__collection_product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_unique_key"], "alias": "not_null_stg_shopify_gql__collection_product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.446058, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_collection_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_collection_id"], "alias": "not_null_stg_shopify_gql__collection_product_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.448451, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_product_id"], "alias": "not_null_stg_shopify_gql__collection_product_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4508004, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_tag_unique_key"], "alias": "unique_stg_shopify_gql__customer_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4531503, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_unique_key"], "alias": "not_null_stg_shopify_gql__customer_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4554803, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_index"], "alias": "not_null_stg_shopify_gql__customer_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4579294, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_customer_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_customer_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_customer_id"], "alias": "not_null_stg_shopify_gql__customer_tag_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4602885, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_allocation_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_allocation_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_allocation_unique_key"], "alias": "unique_stg_shopify_gql__discount_allocation_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4626212, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_allocation_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_allocation_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_unique_key"], "alias": "not_null_stg_shopify_gql__discount_allocation_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4649432, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_allocation_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_discount_application_index"], "alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416"}, "created_at": 1754507520.4677594, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_application_index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere discount_application_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_application_index", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_application_index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_order_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_allocation_order_line_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_order_line_id"], "alias": "not_null_stg_shopify_gql__discount_allocation_order_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.470177, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_allocation_order_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere order_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_line_id", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_application_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_application_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_application_unique_key"], "alias": "unique_stg_shopify_gql__discount_application_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4725332, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_application_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_unique_key"], "alias": "not_null_stg_shopify_gql__discount_application_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4749026, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_index"], "alias": "not_null_stg_shopify_gql__discount_application_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.477243, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_order_id"], "alias": "not_null_stg_shopify_gql__discount_application_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4797165, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_app_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_app_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_app_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_app_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.482069, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_app_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_app_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_app_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_app_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_app_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4844563, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_app_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_app_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_app_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_app_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_app_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.486815, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_app_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_basic_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_basic_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_basic_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_basic_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.489298, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_basic_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_basic_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_basic_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_basic_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_basic_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.491679, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_basic_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_basic_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4940438, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_basic_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_bxgy_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_bxgy_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_bxgy_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4964368, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_bxgy_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4988093, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5012927, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_free_shipping_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5036654, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_free_shipping_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_free_shipping_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_free_shipping_unique_key"], "alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34"}, "created_at": 1754507520.5060291, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id"], "alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09"}, "created_at": 1754507520.5083978, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_redeem_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_redeem_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_redeem_code_unique_key"], "alias": "unique_stg_shopify_gql__discount_redeem_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5108438, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_redeem_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_redeem_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_redeem_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_redeem_code_unique_key"], "alias": "not_null_stg_shopify_gql__discount_redeem_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.51323, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_redeem_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5155914, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.51795, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5203285, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_fulfillment_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_fulfillment_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_fulfillment_id"], "alias": "not_null_stg_shopify_gql__fulfillment_fulfillment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5227938, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_fulfillment_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fulfillment_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere fulfillment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fulfillment_id", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fulfillment_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769", "fqn": ["shopify_source", "graphql", "accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure"], "alias": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2"}, "created_at": 1754507520.525236, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'pending','open','success','cancelled','error','failure'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["pending", "open", "success", "cancelled", "error", "failure"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_event_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_event_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_event_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_event_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5312247, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_event_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_event_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_event_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_event_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_event_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.533616, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_event_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81", "fqn": ["shopify_source", "graphql", "accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed"], "alias": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f"}, "created_at": 1754507520.536076, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'attempted_delivery','delayed','delivered','failure','in_transit','out_for_delivery','ready_for_pickup','picked_up','label_printed','label_purchased','confirmed'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["attempted_delivery", "delayed", "delivered", "failure", "in_transit", "out_for_delivery", "ready_for_pickup", "picked_up", "label_printed", "label_purchased", "confirmed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5418005, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_order_line_item", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_order_line_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key"], "alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22"}, "created_at": 1754507520.5442243, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_order_line_item", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_order_line_item')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5466137, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_tracking_info", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_tracking_info')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5491092, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_tracking_info", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_tracking_info')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_item_unique_key"], "alias": "unique_stg_shopify_gql__inventory_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5516107, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_item_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5539925, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_item_inventory_item_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_item_inventory_item_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_item_inventory_item_id"], "alias": "not_null_stg_shopify_gql__inventory_item_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.556362, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_item_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_level_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_level_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_level_unique_key"], "alias": "unique_stg_shopify_gql__inventory_level_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5587296, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_level_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_level_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_level_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_level_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_level_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5612066, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_level_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd", "fqn": ["shopify_source", "graphql", "dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756"}, "created_at": 1754507520.5636485, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_level_id, inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\n group by inventory_level_id, inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_level_id", "inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_quantity_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_quantity_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_quantity_unique_key"], "alias": "unique_stg_shopify_gql__inventory_quantity_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.569026, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_quantity_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_quantity", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_quantity')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_quantity_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_quantity_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_quantity_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_quantity_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.571437, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_quantity_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_quantity", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_quantity')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__location_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__location_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__location_unique_key"], "alias": "unique_stg_shopify_gql__location_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5738084, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__location_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__location_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__location_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__location_unique_key"], "alias": "not_null_stg_shopify_gql__location_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5761964, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__location_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__location_location_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__location_location_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__location_location_id"], "alias": "not_null_stg_shopify_gql__location_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.578649, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__location_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__media_unique_key"], "alias": "unique_stg_shopify_gql__media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5809953, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_unique_key"], "alias": "not_null_stg_shopify_gql__media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5833952, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_media_id"], "alias": "not_null_stg_shopify_gql__media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5857468, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__media_image_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__media_image_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__media_image_unique_key"], "alias": "unique_stg_shopify_gql__media_image_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5880818, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__media_image_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_image_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_image_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_image_unique_key"], "alias": "not_null_stg_shopify_gql__media_image_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5908742, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_image_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_image_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_image_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_image_media_id"], "alias": "not_null_stg_shopify_gql__media_image_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5932245, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_image_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__metafield_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__metafield_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__metafield_unique_key"], "alias": "unique_stg_shopify_gql__metafield_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5955615, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__metafield_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__metafield_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__metafield_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__metafield_unique_key"], "alias": "not_null_stg_shopify_gql__metafield_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5979097, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__metafield_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__metafield_metafield_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__metafield_metafield_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__metafield_metafield_id"], "alias": "not_null_stg_shopify_gql__metafield_metafield_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6003647, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__metafield_metafield_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metafield_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere metafield_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metafield_id", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "metafield_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_media_unique_key"], "alias": "unique_stg_shopify_gql__product_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6027343, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_unique_key"], "alias": "not_null_stg_shopify_gql__product_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6052482, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_product_id"], "alias": "not_null_stg_shopify_gql__product_media_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.607637, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_media_id"], "alias": "not_null_stg_shopify_gql__product_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6100345, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_adjustment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_adjustment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_adjustment_unique_key"], "alias": "unique_stg_shopify_gql__order_adjustment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.612529, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_adjustment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_adjustment", "attached_node": "model.shopify_source.stg_shopify_gql__order_adjustment", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_adjustment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_adjustment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_adjustment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_adjustment_unique_key"], "alias": "not_null_stg_shopify_gql__order_adjustment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6148913, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_adjustment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_adjustment", "attached_node": "model.shopify_source.stg_shopify_gql__order_adjustment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_adjustment')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_discount_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_discount_code_unique_key"], "alias": "unique_stg_shopify_gql__order_discount_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6172855, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_discount_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_unique_key"], "alias": "not_null_stg_shopify_gql__order_discount_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.619635, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_code", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_code.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_code"], "alias": "not_null_stg_shopify_gql__order_discount_code_code", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6220362, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_code.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect code\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "code", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "code", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_order_id"], "alias": "not_null_stg_shopify_gql__order_discount_code_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6243823, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_line_refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_line_refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_line_refund_unique_key"], "alias": "unique_stg_shopify_gql__order_line_refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6267235, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_line_refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line_refund", "attached_node": "model.shopify_source.stg_shopify_gql__order_line_refund", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line_refund')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_line_refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_line_refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_line_refund_unique_key"], "alias": "not_null_stg_shopify_gql__order_line_refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6290405, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_line_refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line_refund", "attached_node": "model.shopify_source.stg_shopify_gql__order_line_refund", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line_refund')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_note_attribute_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_note_attribute_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_note_attribute_unique_key"], "alias": "unique_stg_shopify_gql__order_note_attribute_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.631395, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_note_attribute_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_unique_key"], "alias": "not_null_stg_shopify_gql__order_note_attribute_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6338105, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_name", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_name.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_name"], "alias": "not_null_stg_shopify_gql__order_note_attribute_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.636134, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect name\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_order_id"], "alias": "not_null_stg_shopify_gql__order_note_attribute_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6384556, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_shipping_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_shipping_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_shipping_line_unique_key"], "alias": "unique_stg_shopify_gql__order_shipping_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6407871, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_shipping_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_shipping_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6432242, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id"], "alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2"}, "created_at": 1754507520.6455529, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_shipping_tax_line_unique_key"], "alias": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6478868, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6502624, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id"], "alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4"}, "created_at": 1754507520.652615, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_tax_line_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_index"], "alias": "not_null_stg_shopify_gql__order_shipping_tax_line_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6550727, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_tax_line_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_tag_unique_key"], "alias": "unique_stg_shopify_gql__order_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.657433, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_unique_key"], "alias": "not_null_stg_shopify_gql__order_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6597517, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_order_id"], "alias": "not_null_stg_shopify_gql__order_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6620774, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_index"], "alias": "not_null_stg_shopify_gql__order_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6645458, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_unique_key"], "alias": "unique_stg_shopify_gql__product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6668816, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product", "attached_node": "model.shopify_source.stg_shopify_gql__product", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_unique_key"], "alias": "not_null_stg_shopify_gql__product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6692905, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product", "attached_node": "model.shopify_source.stg_shopify_gql__product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_variant_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_variant_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_variant_unique_key"], "alias": "unique_stg_shopify_gql__product_variant_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6716619, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_variant_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_unique_key"], "alias": "not_null_stg_shopify_gql__product_variant_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6740048, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_variant_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_variant_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_variant_media_unique_key"], "alias": "unique_stg_shopify_gql__product_variant_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6764796, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_variant_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_unique_key"], "alias": "not_null_stg_shopify_gql__product_variant_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.678835, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_product_variant_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_product_variant_id"], "alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943"}, "created_at": 1754507520.681221, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_variant_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere product_variant_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_variant_id", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_variant_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_media_id"], "alias": "not_null_stg_shopify_gql__product_variant_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6835597, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_tag_unique_key"], "alias": "unique_stg_shopify_gql__product_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6860223, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_unique_key"], "alias": "not_null_stg_shopify_gql__product_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.688402, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_index"], "alias": "not_null_stg_shopify_gql__product_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6907363, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_product_id"], "alias": "not_null_stg_shopify_gql__product_tag_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6930966, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__refund_unique_key"], "alias": "unique_stg_shopify_gql__refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.695451, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__refund", "attached_node": "model.shopify_source.stg_shopify_gql__refund", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__refund')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__refund_unique_key"], "alias": "not_null_stg_shopify_gql__refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.69789, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__refund", "attached_node": "model.shopify_source.stg_shopify_gql__refund", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__refund')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__shop_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__shop_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__shop_unique_key"], "alias": "unique_stg_shopify_gql__shop_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7002642, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__shop_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__shop_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__shop_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__shop_unique_key"], "alias": "not_null_stg_shopify_gql__shop_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.702609, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__shop_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__shop_shop_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__shop_shop_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__shop_shop_id"], "alias": "not_null_stg_shopify_gql__shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7049565, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__tax_line_unique_key"], "alias": "unique_stg_shopify_gql__tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7074215, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__tax_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tax_line_unique_key"], "alias": "not_null_stg_shopify_gql__tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7097588, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tax_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__tender_transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__tender_transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__tender_transaction_unique_key"], "alias": "unique_stg_shopify_gql__tender_transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7120986, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__tender_transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tender_transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tender_transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tender_transaction_unique_key"], "alias": "not_null_stg_shopify_gql__tender_transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.714448, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tender_transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tender_transaction_transaction_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tender_transaction_transaction_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tender_transaction_transaction_id"], "alias": "not_null_stg_shopify_gql__tender_transaction_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.716778, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tender_transaction_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__transaction_unique_key"], "alias": "unique_stg_shopify_gql__transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7193396, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__transaction", "attached_node": "model.shopify_source.stg_shopify_gql__transaction", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__transaction_unique_key"], "alias": "not_null_stg_shopify_gql__transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.721663, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__transaction", "attached_node": "model.shopify_source.stg_shopify_gql__transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__transaction')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_visit_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_visit_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_visit_unique_key"], "alias": "unique_stg_shopify_gql__customer_visit_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7239704, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_visit_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_visit", "attached_node": "model.shopify_source.stg_shopify_gql__customer_visit", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_visit')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_visit_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_visit_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_visit_unique_key"], "alias": "not_null_stg_shopify_gql__customer_visit_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7263093, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_visit_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_visit", "attached_node": "model.shopify_source.stg_shopify_gql__customer_visit", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_visit')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_rule_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_rule_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_rule_unique_key"], "alias": "unique_stg_shopify_gql__collection_rule_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7287393, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_rule", "attached_node": "model.shopify_source.stg_shopify_gql__collection_rule", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_rule')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_rule_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_rule_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_rule_unique_key"], "alias": "not_null_stg_shopify_gql__collection_rule_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7310705, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_rule", "attached_node": "model.shopify_source.stg_shopify_gql__collection_rule", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_rule')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_address_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_address_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_address_unique_key"], "alias": "unique_stg_shopify_gql__customer_address_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.733446, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_address_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_address", "attached_node": "model.shopify_source.stg_shopify_gql__customer_address", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_address')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_address_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_address_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_address_unique_key"], "alias": "not_null_stg_shopify_gql__customer_address_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7358007, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_address_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_address", "attached_node": "model.shopify_source.stg_shopify_gql__customer_address", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_address')) }}"}, "namespace": null}}}, "sources": {"source.shopify_source.shopify.order": {"database": "postgres", "schema": "public", "name": "order", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order", "fqn": ["shopify_source", "rest", "shopify", "order"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_data", "quoting": {"database": null, "schema": null, "identifier": true, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_at": {"name": "cancelled_at", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "(DEPRECATED) The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "(DEPRECATED) A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "confirmed": {"name": "confirmed", "description": "Whether inventory has been reserved for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_identifier": {"name": "source_identifier", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "created_at": 1754507520.7672925, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer": {"database": "postgres", "schema": "public", "name": "customer", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer", "fqn": ["shopify_source", "rest", "shopify", "customer"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "accepts_marketing": {"name": "accepts_marketing", "description": "Whether the customer has consented to receive marketing material via email. Deprecated and will be coalesced with `email_marketing_consent_state`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "state": {"name": "state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_exempt": {"name": "tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "verified_email": {"name": "verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_state": {"name": "email_marketing_consent_state", "description": "The current email marketing state for the customer. New version of `accepts_marketing` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_opt_in_level": {"name": "email_marketing_consent_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. New version of `marketing_opt_in_level` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_consent_updated_at": {"name": "email_marketing_consent_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. New version of `accepts_marketing_updated_at` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "accepts_marketing_updated_at": {"name": "accepts_marketing_updated_at", "description": "Deprecated. The package will coalesce with `email_marketing_consent_consent_updated_at`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "Deprecated. The package will coalesce with `email_marketing_consent_opt_in_level`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "created_at": 1754507520.7694664, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line": {"database": "postgres", "schema": "public", "name": "order_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line", "fqn": ["shopify_source", "rest", "shopify", "order_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item for an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gift_card": {"name": "gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "created_at": 1754507520.7704043, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line_refund": {"database": "postgres", "schema": "public", "name": "order_line_refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line_refund", "fqn": ["shopify_source", "rest", "shopify", "order_line_refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item refund in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "created_at": 1754507520.7710884, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product": {"database": "postgres", "schema": "public", "name": "product", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product", "fqn": ["shopify_source", "rest", "shopify", "product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product in Shopify.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "created_at": 1754507520.771772, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant": {"database": "postgres", "schema": "public", "name": "product_variant", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant", "fqn": ["shopify_source", "rest", "shopify", "product_variant"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "old_inventory_quantity": {"name": "old_inventory_quantity", "description": "(DEPRECATED 2025-01-06) Use the InventoryLevel resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "(DEPRECATED 2025-01-06) Use the `requires_shipping` property on the InventoryItem resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "available_for_sale": {"name": "available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield": {"name": "metafield", "description": "A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_components": {"name": "requires_components", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "created_at": 1754507520.7725523, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.transaction": {"database": "postgres", "schema": "public", "name": "transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.transaction", "fqn": ["shopify_source", "rest", "shopify", "transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a transaction in Shopify.", "columns": {"id": {"name": "id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization": {"name": "authorization", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "created_at": 1754507520.7734005, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.refund": {"database": "postgres", "schema": "public", "name": "refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.refund", "fqn": ["shopify_source", "rest", "shopify", "refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a refund within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "created_at": 1754507520.7740576, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_adjustment": {"database": "postgres", "schema": "public", "name": "order_adjustment", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_adjustment", "fqn": ["shopify_source", "rest", "shopify", "order_adjustment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_adjustment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "created_at": 1754507520.7747285, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout": {"database": "postgres", "schema": "public", "name": "abandoned_checkout", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "created_at": 1754507520.7756877, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection_product": {"database": "postgres", "schema": "public", "name": "collection_product", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection_product", "fqn": ["shopify_source", "rest", "shopify", "collection_product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "created_at": 1754507520.776319, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection": {"database": "postgres", "schema": "public", "name": "collection", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection", "fqn": ["shopify_source", "rest", "shopify", "collection"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "disjunctive": {"name": "disjunctive", "description": "Boolean representing whether the `rules` or disjuctive (logical `OR`) or not. True = disjuctive, false = conjunctive (logical `AND`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparitive relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values inclide - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "created_at": 1754507520.7769678, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer_tag": {"database": "postgres", "schema": "public", "name": "customer_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer_tag", "fqn": ["shopify_source", "rest", "shopify", "customer_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "created_at": 1754507520.777591, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment": {"database": "postgres", "schema": "public", "name": "fulfillment", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment", "fqn": ["shopify_source", "rest", "shopify", "fulfillment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt_authorization": {"name": "receipt_authorization", "description": "The authorization code from the receipt.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was succesfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "created_at": 1754507520.7783144, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_item": {"database": "postgres", "schema": "public", "name": "inventory_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_item", "fqn": ["shopify_source", "rest", "shopify", "inventory_item"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked": {"name": "tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_locked": {"name": "tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "created_at": 1754507520.7789948, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_level": {"database": "postgres", "schema": "public", "name": "inventory_level", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_level", "fqn": ["shopify_source", "rest", "shopify", "inventory_level"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_level_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available": {"name": "available", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "created_at": 1754507520.7796447, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_quantity": {"database": "postgres", "schema": "public", "name": "inventory_quantity", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_quantity", "fqn": ["shopify_source", "rest", "shopify", "inventory_quantity"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_quantity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The total quantity of the inventory item available at all locations.", "columns": {"id": {"name": "id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "created_at": 1754507520.780279, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.location": {"database": "postgres", "schema": "public", "name": "location", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.location", "fqn": ["shopify_source", "rest", "shopify", "location"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_location_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "active": {"name": "active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy": {"name": "legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "created_at": 1754507520.7810032, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.metafield": {"database": "postgres", "schema": "public", "name": "metafield", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.metafield", "fqn": ["shopify_source", "rest", "shopify", "metafield"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_metafield_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_id": {"name": "owner_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Use this instead of `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "created_at": 1754507520.7816708, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_note_attribute": {"database": "postgres", "schema": "public", "name": "order_note_attribute", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_note_attribute", "fqn": ["shopify_source", "rest", "shopify", "order_note_attribute"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_note_attribute_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "created_at": 1754507520.7822897, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_line": {"database": "postgres", "schema": "public", "name": "order_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_line", "fqn": ["shopify_source", "rest", "shopify", "order_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "created_at": 1754507520.7829227, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_tax_line": {"database": "postgres", "schema": "public", "name": "order_shipping_tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_tax_line", "fqn": ["shopify_source", "rest", "shopify", "order_shipping_tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this recod is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "created_at": 1754507520.7835598, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_tag": {"database": "postgres", "schema": "public", "name": "order_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_tag", "fqn": ["shopify_source", "rest", "shopify", "order_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "created_at": 1754507520.7841783, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_url_tag": {"database": "postgres", "schema": "public", "name": "order_url_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_url_tag", "fqn": ["shopify_source", "rest", "shopify", "order_url_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_url_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "created_at": 1754507520.784789, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media": {"database": "postgres", "schema": "public", "name": "media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media", "fqn": ["shopify_source", "rest", "shopify", "media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing media metadata, including status and timestamps.", "columns": {"id": {"name": "id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "created_at": 1754507520.7854784, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media_image": {"database": "postgres", "schema": "public", "name": "media_image", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media_image", "fqn": ["shopify_source", "rest", "shopify", "media_image"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_image_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "created_at": 1754507520.786096, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_media": {"database": "postgres", "schema": "public", "name": "product_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_media", "fqn": ["shopify_source", "rest", "shopify", "product_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "created_at": 1754507520.786708, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant_media": {"database": "postgres", "schema": "public", "name": "product_variant_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant_media", "fqn": ["shopify_source", "rest", "shopify", "product_variant_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping product variants to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "created_at": 1754507520.7873209, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_tag": {"database": "postgres", "schema": "public", "name": "product_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_tag", "fqn": ["shopify_source", "rest", "shopify", "product_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "created_at": 1754507520.7879276, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.shop": {"database": "postgres", "schema": "public", "name": "shop", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.shop", "fqn": ["shopify_source", "rest", "shopify", "shop"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_shop_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_api_supported": {"name": "checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "county_taxes": {"name": "county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_card_reader_giveaway": {"name": "eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_payments": {"name": "eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "force_ssl": {"name": "force_ssl", "description": "DEPRECATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_login_enabled": {"name": "google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "multi_location_enabled": {"name": "multi_location_enabled", "description": "DEPRECATED and hard-coded to `true`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "password_enabled": {"name": "password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_launch_enabled": {"name": "pre_launch_enabled", "description": "Boolen representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_location_id": {"name": "primary_location_id", "description": "DEPRECATED. Formerly used for the ID of the shipping origin location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_extra_payments_agreement": {"name": "requires_extra_payments_agreement", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "setup_required": {"name": "setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_shipping": {"name": "tax_shipping", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "created_at": 1754507520.788787, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tender_transaction": {"database": "postgres", "schema": "public", "name": "tender_transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tender_transaction", "fqn": ["shopify_source", "rest", "shopify", "tender_transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tender_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the tender transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "created_at": 1754507520.789435, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index (from 1) representing the application of the discount to the checkout. Use the latest (highest index)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "created_at": 1754507520.7900536, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_discount_code": {"database": "postgres", "schema": "public", "name": "order_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_discount_code", "fqn": ["shopify_source", "rest", "shopify", "order_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "created_at": 1754507520.7907083, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_shop_price": {"name": "original_shop_price", "description": "The pre-tax shipping price without any discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "created_at": 1754507520.7913938, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment_event": {"database": "postgres", "schema": "public", "name": "fulfillment_event", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment_event", "fqn": ["shopify_source", "rest", "shopify", "fulfillment_event"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_event_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "created_at": 1754507520.793042, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tax_line": {"database": "postgres", "schema": "public", "name": "tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tax_line", "fqn": ["shopify_source", "rest", "shopify", "tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "created_at": 1754507520.7937028, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_allocation": {"database": "postgres", "schema": "public", "name": "discount_allocation", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_allocation", "fqn": ["shopify_source", "rest", "shopify", "discount_allocation"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_allocation_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing allocation amounts applied to order lines from discount applications. Discount allocations indicate how much of the discount was applied and how it was split across line items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The currency code associated with the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The currency code associated with the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of this allocation in the list of discount allocations applied to an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "created_at": 1754507520.7943623, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_application": {"database": "postgres", "schema": "public", "name": "discount_application", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_application", "fqn": ["shopify_source", "rest", "shopify", "discount_application"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_application_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount applications, which define how discounts were applied to an order. This includes metadata like allocation method, target type, and value type.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The allocation method used to apply the discount. Valid values include `each` (the discount is applied to each entitled item) and `across` (the discount is applied across all entitled items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A short description of the discount, usually derived from the associated rule or promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Specifies whether the discount applies to all items (`all`) or only entitled ones (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "Indicates whether the discount applies to `line_item` or `shipping_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the discount as displayed in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Possible values include `manual`, `automatic`, or `script`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The numerical value of the discount. This may be a flat amount or a percentage, depending on `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount is a `percentage` or a `fixed_amount`. When the target type is `shipping_line`, only `percentage` is allowed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "created_at": 1754507520.795024, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_app": {"database": "postgres", "schema": "public", "name": "discount_code_app", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_app", "fqn": ["shopify_source", "rest", "shopify", "discount_code_app"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_app_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount codes created and managed through apps using Shopify Functions. These app-based discounts support advanced, dynamic behavior and custom targeting.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_count": {"name": "codes_count_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_precision": {"name": "codes_count_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "created_at": 1754507520.7957444, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_basic": {"database": "postgres", "schema": "public", "name": "discount_code_basic", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_basic", "fqn": ["shopify_source", "rest", "shopify", "discount_code_basic"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_basic_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing basic discount codes and their metadata. This includes usage limits, timeframes, eligible customers, combination rules, and tracked usage.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "Number of billing cycles the discount can be applied for (used for subscriptions).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is an exact number or an estimate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "created_at": 1754507520.7964725, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_bxgy": {"database": "postgres", "schema": "public", "name": "discount_code_bxgy", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_bxgy", "fqn": ["shopify_source", "rest", "shopify", "discount_code_bxgy"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_bxgy_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing Buy X Get Y discount codes, including conditions for what customers must buy, what they receive, and metadata such as usage, status, and combination eligibility.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "uses_per_order_limit": {"name": "uses_per_order_limit", "description": "The maximum number of times the discount can be applied to a single order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "created_at": 1754507520.7971663, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_free_shipping": {"database": "postgres", "schema": "public", "name": "discount_code_free_shipping", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_free_shipping", "fqn": ["shopify_source", "rest", "shopify", "discount_code_free_shipping"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_free_shipping_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing free shipping discount codes and metadata, including subscription and one-time purchase applicability, eligible countries, usage limits, and combination rules.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "created_at": 1754507520.7978427, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_redeem_code": {"database": "postgres", "schema": "public", "name": "discount_redeem_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_redeem_code", "fqn": ["shopify_source", "rest", "shopify", "discount_redeem_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_redeem_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each code is tied to a parent discount and may be created by an app or manually by a merchant.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This value is updated asynchronously and may not match real-time usage counts.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (usually an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount this redeem code is associated with (e.g., `discount_code_basic`, `discount_code_bxgy`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "created_at": 1754507520.7984712, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order": {"database": "postgres", "schema": "public", "name": "order", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_data", "quoting": {"database": null, "schema": null, "identifier": true, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_ip": {"name": "client_ip", "description": "The IP address of the customer who placed the order. Useful for fraud detection and geographic analysis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_accepts_marketing": {"name": "customer_accepts_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_at": {"name": "cancelled_at", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The shop currency when the order was placed. For example, \"USD\" or \"CAD\".", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_financial_status": {"name": "display_financial_status", "description": "An order's financial status for display in the Shopify admin. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFinancialStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_fulfillment_status": {"name": "display_fulfillment_status", "description": "The order's fulfillment status that displays in the Shopify admin to merchants. For example, an order might be unfulfilled or scheduled. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFulfillmentStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The unique identifier for the order that appears on the order page in the Shopify admin and the Order status page. For example, \"#1001\", \"EN1001\", or \"1001-A\". This value isn't unique across multiple stores.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The optional note associated with the order. Contains additional information or instructions added by merchants or customers during the order process. Commonly used for special delivery instructions, gift messages, or internal processing notes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The name of the source associated with the order, such as \"web\", \"mobile_app\", or \"pos\". Use this field to identify the platform where the order was placed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_amount": {"name": "subtotal_price_set_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_amount": {"name": "subtotal_price_set_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_currency_code": {"name": "subtotal_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_currency_code": {"name": "subtotal_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_shop_amount": {"name": "total_discounts_set_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_pres_amount": {"name": "total_discounts_set_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_shop_currency_code": {"name": "total_discounts_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_pres_currency_code": {"name": "total_discounts_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_amount": {"name": "total_price_set_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_amount": {"name": "total_price_set_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_currency_code": {"name": "total_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_currency_code": {"name": "total_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights before returns, in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "The staff member who created or is responsible for the order. Useful for tracking which team member handled phone orders, manual orders, or order modifications. Returns null for orders created directly by customers through the online store.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "confirmed": {"name": "confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status_page_url": {"name": "status_page_url", "description": "The URL where customers can check their order's current status, including tracking information and delivery updates. Provides order tracking links in emails, apps, or customer communications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received_set_shop_amount": {"name": "total_tip_received_set_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_pres_amount": {"name": "total_tip_received_set_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_shop_currency_code": {"name": "total_tip_received_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_pres_currency_code": {"name": "total_tip_received_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency_code": {"name": "presentment_currency_code", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_shop_amount": {"name": "total_shipping_price_set_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_pres_amount": {"name": "total_shipping_price_set_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_shop_currency_code": {"name": "total_shipping_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_pres_currency_code": {"name": "total_shipping_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_data\"", "created_at": 1754507520.7994647, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer": {"database": "postgres", "schema": "public", "name": "customer", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "state": {"name": "state", "description": "The state of the customer's account with a shop. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/customer#field-Customer.fields.state).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_exempt": {"name": "tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "verified_email": {"name": "verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_state": {"name": "email_marketing_consent_state", "description": "The current email marketing state for the customer. New version of `accepts_marketing` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_opt_in_level": {"name": "email_marketing_consent_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. New version of `marketing_opt_in_level` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_updated_at": {"name": "email_marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. New version of `accepts_marketing_updated_at` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_data\"", "created_at": 1754507520.800144, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_line": {"database": "postgres", "schema": "public", "name": "order_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item for an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "unfulfilled_quantity": {"name": "unfulfilled_quantity", "description": "The number of units not yet fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_pres_amount": {"name": "original_total_set_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_pres_currency_code": {"name": "original_total_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_shop_amount": {"name": "original_total_set_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_shop_currency_code": {"name": "original_total_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_amount": {"name": "total_discount_set_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_amount": {"name": "total_discount_set_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_currency_code": {"name": "total_discount_set_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_currency_code": {"name": "total_discount_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_data\"", "created_at": 1754507520.800894, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_line_refund": {"database": "postgres", "schema": "public", "name": "order_line_refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_line_refund", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_line_refund"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_line_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item refund in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location where the items will be restocked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_pres_amount": {"name": "subtotal_set_pres_amount", "description": "The refunded subtotal amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_pres_currency_code": {"name": "subtotal_set_pres_currency_code", "description": "The three letter currency code for the subtotal the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_shop_amount": {"name": "subtotal_set_shop_amount", "description": "The refunded subtotal amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_shop_currency_code": {"name": "subtotal_set_shop_currency_code", "description": "The three letter currency code for the subtotal in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The total tax amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three letter currency code of the tax the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The total tax amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three letter currency code of the tax in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "created_at": 1754507520.8016078, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product": {"database": "postgres", "schema": "public", "name": "product", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product in Shopify.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_data\"", "created_at": 1754507520.8023608, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_variant": {"database": "postgres", "schema": "public", "name": "product_variant", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_variant", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_variant"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_variant_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "available_for_sale": {"name": "available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_components": {"name": "requires_components", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "created_at": 1754507520.8030488, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.transaction": {"database": "postgres", "schema": "public", "name": "transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.transaction", "fqn": ["shopify_source", "graphql", "shopify_graphql", "transaction"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a transaction in Shopify.", "columns": {"id": {"name": "id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_amount": {"name": "amount_set_pres_amount", "description": "The amount of the transaction in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_currency_code": {"name": "amount_set_pres_currency_code", "description": "The three letter currency code of the customer's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_amount": {"name": "amount_set_shop_amount", "description": "The amount of the transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_currency_code": {"name": "amount_set_shop_currency_code", "description": "The three letter currency code of the shop's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used to process the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "Unique identifier of the staff member who was logged into the Shopify POS device when the transaction was processed", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_transaction_data\"", "created_at": 1754507520.8037844, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.refund": {"database": "postgres", "schema": "public", "name": "refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.refund", "fqn": ["shopify_source", "graphql", "shopify_graphql", "refund"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a refund within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the refund was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "return_id": {"name": "return_id", "description": "Reference to the return which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "Reference to the staff member who created the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_pres_amount": {"name": "total_refunded_set_pres_amount", "description": "The total amount across all transactions for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_pres_currency_code": {"name": "total_refunded_set_pres_currency_code", "description": "The three letter currency code for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_shop_amount": {"name": "total_refunded_set_shop_amount", "description": "The total amount across all transactions for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_shop_currency_code": {"name": "total_refunded_set_shop_currency_code", "description": "The three letter currency code for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_refund_data\"", "created_at": 1754507520.8044841, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_adjustment": {"database": "postgres", "schema": "public", "name": "order_adjustment", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_adjustment", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_adjustment"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_adjustment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_amount": {"name": "amount_set_pres_amount", "description": "The amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_currency_code": {"name": "amount_set_pres_currency_code", "description": "The three letter currency code for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_amount": {"name": "amount_set_shop_amount", "description": "The amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_currency_code": {"name": "amount_set_shop_currency_code", "description": "The three letter shop currency code of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_pres_amount": {"name": "tax_amount_set_pres_amount", "description": "The tax amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_pres_currency_code": {"name": "tax_amount_set_pres_currency_code", "description": "The three letter currency code for the tax of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_shop_amount": {"name": "tax_amount_set_shop_amount", "description": "The tax amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_shop_currency_code": {"name": "tax_amount_set_shop_currency_code", "description": "The three letter shop currency code of the tax for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "created_at": 1754507520.805138, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.abandoned_checkout": {"database": "postgres", "schema": "public", "name": "abandoned_checkout", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout", "fqn": ["shopify_source", "graphql", "shopify_graphql", "abandoned_checkout"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_abandoned_checkout_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_amount": {"name": "subtotal_price_set_shop_amount", "description": "The price of the checkout before shipping and taxes in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_amount": {"name": "subtotal_price_set_pres_amount", "description": "The price of the checkout before shipping and taxes in *presentment* currencyy. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_currency_code": {"name": "subtotal_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_currency_code": {"name": "subtotal_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_amount": {"name": "total_discount_set_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_amount": {"name": "total_discount_set_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_currency_code": {"name": "total_discount_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_currency_code": {"name": "total_discount_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_shop_amount": {"name": "total_duties_set_shop_amount", "description": "The total duties of the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_pres_amount": {"name": "total_duties_set_pres_amount", "description": "The total duties of the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_shop_currency_code": {"name": "total_duties_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_pres_currency_code": {"name": "total_duties_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_shop_amount": {"name": "total_line_items_price_set_shop_amount", "description": "The sum of the prices of all line items in the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_pres_amount": {"name": "total_line_items_price_set_pres_amount", "description": "The sum of the prices of all line items in the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_shop_currency_code": {"name": "total_line_items_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_pres_currency_code": {"name": "total_line_items_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_amount": {"name": "total_price_set_shop_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_amount": {"name": "total_price_set_pres_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_currency_code": {"name": "total_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_currency_code": {"name": "total_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The sum of all the taxes applied to the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The sum of all the taxes applied to the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "completed_at": {"name": "completed_at", "description": "The date and time when the buyer completed the checkout. Null if the checkout has not been completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "created_at": 1754507520.8059971, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.collection_product": {"database": "postgres", "schema": "public", "name": "collection_product", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection_product", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection_product"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "created_at": 1754507520.8066187, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.collection": {"database": "postgres", "schema": "public", "name": "collection", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "applied_disjunctively": {"name": "applied_disjunctively", "description": "Boolean representing whether products must match any or all of the `rules` to be included in the collection. True = products must match at least one rule, false = products must match all rules.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values inclide - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_data\"", "created_at": 1754507520.8072577, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_tag": {"database": "postgres", "schema": "public", "name": "customer_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "created_at": 1754507520.807861, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment": {"database": "postgres", "schema": "public", "name": "fulfillment", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_status": {"name": "display_status", "description": "Display status for this fulfillment. Valid values include `attempted_delivery`, `canceled`, `confirmed`, `delayed`, `delivered`, `failure`, `fulfilled`, `in_transit`, `label_printed`, `label_purchased`, `label_voided`, `marked_as_fulfilled`, `not_delivered`, `out_for_delivery`, `picked_up`, `ready_for_pickup`, `submitted`. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service_id": {"name": "service_id", "description": "The id of the fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: (Legacy status, to be deprecated) Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: (Legacy status, to be deprecated) The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "Sum of all line item quantities for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "created_at": 1754507520.8085122, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_item": {"database": "postgres", "schema": "public", "name": "inventory_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_item", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_item"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked": {"name": "tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_locked": {"name": "tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "created_at": 1754507520.8091893, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_level": {"database": "postgres", "schema": "public", "name": "inventory_level", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_level", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_level"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_level_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "created_at": 1754507520.809833, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_quantity": {"database": "postgres", "schema": "public", "name": "inventory_quantity", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_quantity", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_quantity"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_quantity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The total quantity of the inventory item available at all locations.", "columns": {"id": {"name": "id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "created_at": 1754507520.810456, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.location": {"database": "postgres", "schema": "public", "name": "location", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.location", "fqn": ["shopify_source", "graphql", "shopify_graphql", "location"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_location_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_fulfillment_service": {"name": "is_fulfillment_service", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_location_data\"", "created_at": 1754507520.8111217, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.metafield": {"database": "postgres", "schema": "public", "name": "metafield", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.metafield", "fqn": ["shopify_source", "graphql", "shopify_graphql", "metafield"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_metafield_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_id": {"name": "owner_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Use this instead of `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_metafield_data\"", "created_at": 1754507520.811767, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_note_attribute": {"database": "postgres", "schema": "public", "name": "order_note_attribute", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_note_attribute", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_note_attribute"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_note_attribute_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "created_at": 1754507520.812388, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_shipping_line": {"database": "postgres", "schema": "public", "name": "order_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_shipping_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_shipping_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_pres_amount": {"name": "current_discounted_price_set_pres_amount", "description": "Current shipping price in customer currency after applying refunds and discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_pres_currency_code": {"name": "current_discounted_price_set_pres_currency_code", "description": "Three digit customer currency code for the current discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_shop_amount": {"name": "current_discounted_price_set_shop_amount", "description": "Current shipping price in shop currency after applying refunds and discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_shop_currency_code": {"name": "current_discounted_price_set_shop_currency_code", "description": "Three digit shop currency code for the current discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_pres_amount": {"name": "discounted_price_set_pres_amount", "description": "Shipping price in customer currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_pres_currency_code": {"name": "discounted_price_set_pres_currency_code", "description": "Three digit customer currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_shop_amount": {"name": "discounted_price_set_shop_amount", "description": "Shipping price in shop currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_shop_currency_code": {"name": "discounted_price_set_shop_currency_code", "description": "Three digit shop currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_removed": {"name": "is_removed", "description": "Whether the shipping line has been removed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_pres_amount": {"name": "original_price_set_pres_amount", "description": "The pre-tax shipping price without any discounts applied in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_pres_currency_code": {"name": "original_price_set_pres_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_shop_amount": {"name": "original_price_set_shop_amount", "description": "The pre-tax shipping price without any discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_shop_currency_code": {"name": "original_price_set_shop_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_rate_handle": {"name": "shipping_rate_handle", "description": "A unique identifier for the shipping rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "created_at": 1754507520.813097, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_shipping_tax_line": {"database": "postgres", "schema": "public", "name": "order_shipping_tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_shipping_tax_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_shipping_tax_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_shipping_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this recod is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_amount": {"name": "price_set_pres_amount", "description": "The amount of tax in customer currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_currency_code": {"name": "price_set_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_amount": {"name": "price_set_shop_amount", "description": "The amount of tax in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_currency_code": {"name": "price_set_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The source of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "created_at": 1754507520.8137434, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_tag": {"database": "postgres", "schema": "public", "name": "order_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "created_at": 1754507520.8143554, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.media": {"database": "postgres", "schema": "public", "name": "media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing media metadata, including status and timestamps.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "alt": {"name": "alt", "description": "A word or phrase to share the nature or contents of a media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "file_status": {"name": "file_status", "description": "The status of the file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_content_type": {"name": "media_content_type", "description": "The media content type (values include 'external_video', 'image', 'model_3d', 'video')", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_alt_text": {"name": "preview_image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_height": {"name": "preview_image_height", "description": "The original height of the image in pixels (returns null if image not hosted in Shopify).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_id": {"name": "preview_image_id", "description": "A unique id for the image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_url": {"name": "preview_image_url", "description": "The location of the image as a URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_width": {"name": "preview_image_width", "description": "The original width of the image in pixels (returns null if image not hosted in Shopify).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_status": {"name": "preview_status", "description": "Current status of the preview image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_data\"", "created_at": 1754507520.8149836, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.media_image": {"database": "postgres", "schema": "public", "name": "media_image", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.media_image", "fqn": ["shopify_source", "graphql", "shopify_graphql", "media_image"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_media_image_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_image_data\"", "created_at": 1754507520.8156147, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_media": {"database": "postgres", "schema": "public", "name": "product_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_media_data\"", "created_at": 1754507520.8162193, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_variant_media": {"database": "postgres", "schema": "public", "name": "product_variant_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_variant_media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_variant_media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_variant_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping product variants to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "created_at": 1754507520.8168128, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_tag": {"database": "postgres", "schema": "public", "name": "product_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "created_at": 1754507520.817463, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.shop": {"database": "postgres", "schema": "public", "name": "shop", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.shop", "fqn": ["shopify_source", "graphql", "shopify_graphql", "shop"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_shop_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The shop's street address (or PO Box number).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_api_supported": {"name": "checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code_v_2": {"name": "billing_address_country_code_v_2", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The three letter code for the currency that the shop sells in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_domain_host": {"name": "primary_domain_host", "description": "The host name of the primary domain of the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "contact_email": {"name": "contact_email", "description": "The public-facing contact email address for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "features_storefront": {"name": "features_storefront", "description": "Whether a shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_format": {"name": "currency_formats_money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_in_emails_format": {"name": "currency_formats_money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_with_currency_format": {"name": "currency_formats_money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_with_currency_in_emails_format": {"name": "currency_formats_money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "password_enabled": {"name": "password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_domain_localization_default_locale": {"name": "primary_domain_localization_default_locale", "description": "The localization of the domain of the shop's online store, if the domain doesn't redirect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "setup_required": {"name": "setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner_name": {"name": "shop_owner_name", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_shipping": {"name": "tax_shipping", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_abbreviation": {"name": "timezone_abbreviation", "description": "The shop's time zone abbreviation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset": {"name": "timezone_offset", "description": "The shop's time zone offset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset_minutes": {"name": "timezone_offset_minutes", "description": "The shop's time zone offset expressed as a number of minutes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_shop_data\"", "created_at": 1754507520.8182206, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.tender_transaction": {"database": "postgres", "schema": "public", "name": "tender_transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.tender_transaction", "fqn": ["shopify_source", "graphql", "shopify_graphql", "tender_transaction"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_tender_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the tender transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "created_at": 1754507520.8188417, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "abandoned_checkout_discount_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_abandoned_checkout_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index (from 1) representing the application of the discount to the checkout. Use the latest (highest index)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "created_at": 1754507520.819465, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_discount_code": {"database": "postgres", "schema": "public", "name": "order_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_discount_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_discount_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "created_at": 1754507520.8200586, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_event": {"database": "postgres", "schema": "public", "name": "fulfillment_event", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_event", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_event"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_event_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delayed: The shipment was delayed. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "created_at": 1754507520.8207524, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.tax_line": {"database": "postgres", "schema": "public", "name": "tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.tax_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "tax_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_amount": {"name": "price_set_pres_amount", "description": "The amount of tax in customer currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_currency_code": {"name": "price_set_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_amount": {"name": "price_set_shop_amount", "description": "The amount of tax in shop currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_currency_code": {"name": "price_set_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "created_at": 1754507520.8213866, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_allocation": {"database": "postgres", "schema": "public", "name": "discount_allocation", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_allocation", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_allocation"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_allocation_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing allocation amounts applied to order lines from discount applications. Discount allocations indicate how much of the discount was applied and how it was split across line items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocated_amount_set_pres_amount": {"name": "allocated_amount_set_pres_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_pres_currency_code": {"name": "allocated_amount_set_pres_currency_code", "description": "The currency code associated with the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_shop_amount": {"name": "allocated_amount_set_shop_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_shop_currency_code": {"name": "allocated_amount_set_shop_currency_code", "description": "The currency code associated with the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of this allocation in the list of discount allocations applied to an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "created_at": 1754507520.8220036, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_application": {"database": "postgres", "schema": "public", "name": "discount_application", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_application", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_application"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_application_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount applications, which define how discounts were applied to an order or shipping line. This includes metadata like allocation method, target type, and value type.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The allocation method used to apply the discount. Valid values include `each` (the discount is applied to each entitled item) and `across` (the discount is applied across all entitled items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Specifies whether the discount applies to all items (`all`) or only entitled ones (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "Indicates whether the discount applies to `line_item` or `shipping_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "created_at": 1754507520.8226438, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_app": {"database": "postgres", "schema": "public", "name": "discount_code_app", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_app", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_app"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_app_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount codes created and managed through apps using Shopify Functions. These app-based discounts support advanced, dynamic behavior and custom targeting.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of times a discount applies on recurring purchases (subscriptions). 0 will apply infinitely. 1 will only apply to the first checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_count": {"name": "codes_count_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_precision": {"name": "codes_count_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "created_at": 1754507520.8233187, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_basic": {"database": "postgres", "schema": "public", "name": "discount_code_basic", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_basic", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_basic"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_basic_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing basic discount codes and their metadata. This includes usage limits, timeframes, eligible customers, combination rules, and tracked usage.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "Number of billing cycles the discount can be applied for (used for subscriptions).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is an exact number or an estimate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "created_at": 1754507520.8240175, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_bxgy": {"database": "postgres", "schema": "public", "name": "discount_code_bxgy", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_bxgy", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_bxgy"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_bxgy_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing Buy X Get Y discount codes, including conditions for what customers must buy, what they receive, and metadata such as usage, status, and combination eligibility.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "created_at": 1754507520.8246877, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_free_shipping": {"database": "postgres", "schema": "public", "name": "discount_code_free_shipping", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_free_shipping", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_free_shipping"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_free_shipping_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing free shipping discount codes and metadata, including subscription and one-time purchase applicability, eligible countries, usage limits, and combination rules.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles for which the discount can be applied, which is useful for subscription-based discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "created_at": 1754507520.82536, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_redeem_code": {"database": "postgres", "schema": "public", "name": "discount_redeem_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_redeem_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_redeem_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_redeem_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each code is tied to a parent discount and may be created by an app or manually by a merchant.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This value is updated asynchronously and may not match real-time usage counts.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (usually an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount this redeem code is associated with (e.g., `discount_code_basic`, `discount_code_bxgy`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "created_at": 1754507520.8259735, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_tracking_info": {"database": "postgres", "schema": "public", "name": "fulfillment_tracking_info", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_tracking_info", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_tracking_info"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_tracking_info_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents tracking information associated with a fulfillment. Used by Shopify to generate clickable tracking numbers and delivery updates.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_id": {"name": "fulfillment_id", "description": "The unique identifier of the fulfillment this tracking info belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The name of the tracking company. For supported carriers, Shopify automatically builds tracking URLs and may update the shipment status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "Tracking number for the fulfillment. If a known tracking company is specified, or the number matches a known format, Shopify may auto-generate a tracking URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "url": {"name": "url", "description": "Direct URL to track the fulfillment. This is displayed in the Shopify admin and customer notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the tracking information associated with a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "created_at": 1754507520.8270166, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_visit": {"database": "postgres", "schema": "public", "name": "customer_visit", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_visit", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_visit"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_visit_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metadata about a customer's session visiting a Shopify store, including session, landing page, referrer, marketing campaign, and source attribution information. This data helps merchants analyze the effectiveness of marketing campaigns and customer engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "A globally-unique identifier for the customer visit session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order associated with the customer visit, if any.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of marketing tactic associated with the session. Possible values include: abandoned_cart, ad, affiliate, link, loyalty, message, newsletter, notification, post, retargeting, seo, storefront_app, transactional.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page": {"name": "landing_page", "description": "The URL of the first page the customer landed on for the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page_html": {"name": "landing_page_html", "description": "The landing page URL rendered as HTML with a hyperlink.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "occurred_at": {"name": "occurred_at", "description": "The timestamp when the customer's session occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_code": {"name": "referral_code", "description": "A marketing referral code captured from the landing URL. Supports query params like `ref`, `source`, or `r`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_info_html": {"name": "referral_info_html", "description": "Referral info rendered as HTML with URLs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referrer_url": {"name": "referrer_url", "description": "The referring webpage where the customer clicked a link to arrive at the store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The origin of the customer's visit, such as a platform (e.g., Facebook, Google), a QR code, direct, or other attribution channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_description": {"name": "source_description", "description": "A more descriptive label for the visit source; used primarily for the first or last session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_type": {"name": "source_type", "description": "The marketing tactic type, such as ad, seo, newsletter, etc.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_campaign": {"name": "utm_parameters_campaign", "description": "The name of the marketing campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_content": {"name": "utm_parameters_content", "description": "Identifies specific content within a campaign, used to differentiate similar links.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_medium": {"name": "utm_parameters_medium", "description": "The medium of the campaign (e.g., cpc, banner, email).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_source": {"name": "utm_parameters_source", "description": "The traffic source for the campaign (e.g., google, newsletter).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_term": {"name": "utm_parameters_term", "description": "Search terms associated with paid campaigns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "created_at": 1754507520.8276877, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_order_line_item": {"database": "postgres", "schema": "public", "name": "fulfillment_order_line_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_order_line_item", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_order_line_item"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_order_line_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Links a fulfillment order to specific items that require fulfillment. Contains detailed product information, quantity tracking, variant metadata, and shipping requirements. This is a core entity for determining which products and how many units are involved in a given fulfillment process.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_order_id": {"name": "fulfillment_order_id", "description": "The identifier of the fulfillment order that this line item is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for this fulfillment order line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "Alt text describing the image associated with the line item's variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "The height in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "The unique identifier for the variant image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The url of the variant image used in this fulfillment line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "The width in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The identifier of the inventory item being fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_item_id": {"name": "order_line_item_id", "description": "The identifier of the original order line item linked to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_title": {"name": "product_title", "description": "The title of the product at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The identifier of the product variant associated with this fulfillment item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remaining_quantity": {"name": "remaining_quantity", "description": "The number of units remaining to be fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Indicates whether physical shipping is required for this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The SKU of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "The total number of units allocated to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The vendor of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "created_at": 1754507520.828985, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_address": {"database": "postgres", "schema": "public", "name": "customer_address", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_address", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_address"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a customer's mailing address and includes additional geographic metadata.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer to whom this address belongs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the customer address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The first line of the address (e.g., street address or PO Box).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The second line of the address (e.g., apartment, suite, or unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The name of the city, district, village, or town for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The company or organization associated with the customer at this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The full country name for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter ISO country code for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_default": {"name": "is_default", "description": "Indicates if this address is the default shipping address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The full name of the customer, derived from first and last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer\u2019s phone number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The name of the region, state, or province for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The standardized zone or province code for the region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code of the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "validation_result_summary": {"name": "validation_result_summary", "description": "A summary of address validation results (e.g., match confidence or status).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The timezone associated with the address, if available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "coordinates_validated": {"name": "coordinates_validated", "description": "Indicates whether the latitude and longitude coordinates were validated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "created_at": 1754507520.8297405, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.3985634, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.3989828, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.399227, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.3994575, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.3996773, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\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 when 'm' then 'MATERIALIZED 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 where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- 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', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\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{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4016054, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4023044, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4033031, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.403562, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4078279, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4089024, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4095275, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4101338, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4110203, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4118414, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4121923, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4128406, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4135842, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4151547, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4155307, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.416145, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.416659, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.417489, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n {% if relation.type == 'materialized_view' -%}\n {% set relation_type = \"materialized view\" %}\n {%- else -%}\n {%- set relation_type = relation.type -%}\n {%- endif -%}\n comment on {{ relation_type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4182243, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4193368, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4197192, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4199517, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4203186, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4206047, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n update {{ target }}\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }}::text = {{ target }}.{{ columns.dbt_scd_id }}::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n {% if config.get(\"dbt_valid_to_current\") %}\n and ({{ target }}.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }} or {{ target }}.{{ columns.dbt_valid_to }} is null);\n {% else %}\n and {{ target }}.{{ columns.dbt_valid_to }} is null;\n {% endif %}\n\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4229069, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4237752, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_microbatch_sql": {"name": "postgres__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_microbatch_sql", "macro_sql": "{% macro postgres__get_incremental_microbatch_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"dbt-postgres 'microbatch' requires a `unique_key` config\") }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_merge_sql", "macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.424413, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4251869, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.425482, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4264627, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4302297, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4306722, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4315932, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4318743, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4322278, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.433407, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4336927, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}{{ ';' if not loop.last else \"\" }}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4345045, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4350617, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4354177, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4364393, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }}\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\t{{ ';' if not loop.last else \"\" }}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4375772, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config.model) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4381528, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4384377, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4387102, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.439037, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4400296, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4406056, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4412067, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4417844, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4434307, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4438167, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4441006, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4444003, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.444681, "supported_languages": null}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4464383, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.448344, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4488199, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation.render() %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4498081, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4501991, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.450468, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4507482, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4509814, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4513195, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4515522, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4524856, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4528437, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4551914, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation.render())) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4602022, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n {% do create_indexes(intermediate_relation) %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4642823, "supported_languages": ["sql"]}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4683082, "supported_languages": ["sql"]}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.471263, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.472002, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.472503, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation.render() ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation.render() ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4749897, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4754586, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.476707, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4779172, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4783967, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.478759, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4793465, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4797125, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4802928, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.480655, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4811819, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.481663, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.481961, "supported_languages": null}, "macro.dbt.get_incremental_microbatch_sql": {"name": "get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_microbatch_sql", "macro_sql": "{% macro get_incremental_microbatch_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_microbatch_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_microbatch_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4823358, "supported_languages": null}, "macro.dbt.default__get_incremental_microbatch_sql": {"name": "default__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_microbatch_sql", "macro_sql": "{% macro default__get_incremental_microbatch_sql(arg_dict) %}\n\n {{ exceptions.raise_not_implemented('microbatch materialization strategy not implemented for adapter ' + adapter.type()) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.482655, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.483213, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4847429, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.485803, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4870648, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4875321, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4889278, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4909365, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set source_unique_key = (\"DBT_INTERNAL_SOURCE.\" ~ unique_key) | trim %}\n\t {% set target_unique_key = (\"DBT_INTERNAL_DEST.\" ~ unique_key) | trim %}\n\t {% set unique_key_match = equals(source_unique_key, target_unique_key) | trim %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4944453, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4949636, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is string %}\n {% set unique_key = [unique_key] %}\n {% endif %}\n\n {%- set unique_key_str = unique_key|join(', ') -%}\n\n delete from {{ target }} as DBT_INTERNAL_DEST\n where ({{ unique_key_str }}) in (\n select distinct {{ unique_key_str }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4963915, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4969008, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4981546, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% set relation_for_indexes = target_relation %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set relation_for_indexes = intermediate_relation %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% set relation_for_indexes = temp_relation %}\n {% set contract_config = config.get('contract') %}\n {% if not contract_config or not contract_config.enforced %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {% endif %}\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_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(relation_for_indexes) %}\n {% endif %}\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 {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.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": 1754507511.5063794, "supported_languages": ["sql"]}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5075428, "supported_languages": null}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5097544, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5120928, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5144024, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5160134, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5165, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5167356, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation.render() ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% if target_relation.database == defer_relation.database and\n target_relation.schema == defer_relation.schema and\n target_relation.identifier == defer_relation.identifier %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation.render()) }}\n {% else %}\n {% call statement('main') %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endcall %}\n {% endif %}\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.521624, "supported_languages": ["sql"]}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5222278, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation.render() }} clone {{ defer_relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.522565, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5264835, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5268185, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5272758, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set primary_key = config.get('unique_key') %}\n {% set updated_at = config.get('updated_at') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\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 }}.{{ columns.dbt_valid_from }} < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5291579, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5294886, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5298173, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5325387, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set check_cols_config = config.get('check_cols') %}\n {% set primary_key = config.get('unique_key') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set updated_at = config.get('updated_at') or 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_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.535438, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5362604, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n merge into {{ target.render() }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }} = DBT_INTERNAL_DEST.{{ columns.dbt_scd_id }}\n\n when matched\n {% if config.get(\"dbt_valid_to_current\") %}\n\t{% set source_unique_key = (\"DBT_INTERNAL_DEST.\" ~ columns.dbt_valid_to) | trim %}\n\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\tand ({{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null)\n\n {% else %}\n and DBT_INTERNAL_DEST.{{ columns.dbt_valid_to }} is null\n {% endif %}\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5378928, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5417037, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation.render() }} add column {{ adapter.quote(column.name) }} {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5423622, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5426955, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.542882, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5431886, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5434268, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.543825, "supported_languages": null}, "macro.dbt.get_snapshot_table_column_names": {"name": "get_snapshot_table_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_snapshot_table_column_names", "macro_sql": "{% macro get_snapshot_table_column_names() %}\n {{ return({'dbt_valid_to': 'dbt_valid_to', 'dbt_valid_from': 'dbt_valid_from', 'dbt_scd_id': 'dbt_scd_id', 'dbt_updated_at': 'dbt_updated_at', 'dbt_is_deleted': 'dbt_is_deleted'}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5443254, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n {% if strategy.hard_deletes == 'new_record' %}\n {% set new_scd_id = snapshot_hash_arguments([columns.dbt_scd_id, snapshot_get_time()]) %}\n {% endif %}\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }}\n from {{ target_relation }}\n where\n {% if config.get('dbt_valid_to_current') %}\n\t\t{% set source_unique_key = columns.dbt_valid_to | trim %}\n\t\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\n\t\t{# The exact equals semantics between NULL values depends on the current behavior flag set. Also, update records if the source field is null #}\n ( {{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null )\n {% else %}\n {{ columns.dbt_valid_to }} is null\n {% endif %}\n\n ),\n\n insertions_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }},\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }}\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_to }}\n\n from snapshot_query\n ),\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n\n deletes_source_data as (\n\n select *, {{ unique_key_fields(strategy.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 {%- if strategy.hard_deletes == 'new_record' -%}\n ,'False' as {{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from insertions_source_data as source_data\n left outer join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"snapshotted_data\") }}\n or ({{ unique_key_is_not_null(strategy.unique_key, \"snapshotted_data\") }} and (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from updates_source_data as source_data\n join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n )\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n ,\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_to }},\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n and not (\n --avoid updating the record's valid_to if the latest entry is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n {%- endif %}\n )\n {%- endif %}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n {% set snapshotted_cols = get_list_of_column_names(get_columns_in_relation(target_relation)) %}\n {% set source_sql_cols = get_column_schema_from_query(source_sql) %}\n ,\n deletion_records as (\n\n select\n 'insert' as dbt_change_type,\n {#\n If a column has been added to the source it won't yet exist in the\n snapshotted table so we insert a null value as a placeholder for the column.\n #}\n {%- for col in source_sql_cols -%}\n {%- if col.name in snapshotted_cols -%}\n snapshotted_data.{{ adapter.quote(col.column) }},\n {%- else -%}\n NULL as {{ adapter.quote(col.column) }},\n {%- endif -%}\n {% endfor -%}\n {%- if strategy.unique_key | is_list -%}\n {%- for key in strategy.unique_key -%}\n snapshotted_data.{{ key }} as dbt_unique_key_{{ loop.index }},\n {% endfor -%}\n {%- else -%}\n snapshotted_data.dbt_unique_key as dbt_unique_key,\n {% endif -%}\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n snapshotted_data.{{ columns.dbt_valid_to }} as {{ columns.dbt_valid_to }},\n {{ new_scd_id }} as {{ columns.dbt_scd_id }},\n 'True' as {{ columns.dbt_is_deleted }}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n and not (\n --avoid inserting a new record if the latest one is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletes\n {%- endif %}\n {%- if strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletion_records\n {%- endif %}\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments", "macro.dbt.snapshot_get_time", "macro.dbt.unique_key_fields", "macro.dbt.equals", "macro.dbt.get_dbt_valid_to_current", "macro.dbt.unique_key_join_on", "macro.dbt.unique_key_is_null", "macro.dbt.unique_key_is_not_null", "macro.dbt.get_list_of_column_names", "macro.dbt.get_columns_in_relation", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5528848, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5533276, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n\n select *,\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , 'False' as {{ columns.dbt_is_deleted }}\n {% endif -%}\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.get_dbt_valid_to_current"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.554329, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.555166, "supported_languages": null}, "macro.dbt.get_updated_at_column_data_type": {"name": "get_updated_at_column_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_updated_at_column_data_type", "macro_sql": "{% macro get_updated_at_column_data_type(snapshot_sql) %}\n {% set snapshot_sql_column_schema = get_column_schema_from_query(snapshot_sql) %}\n {% set dbt_updated_at_data_type = null %}\n {% set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {% set ns.dbt_updated_at_data_type = null -%}\n {% for column in snapshot_sql_column_schema %}\n {% if ((column.column == 'dbt_updated_at') or (column.column == 'DBT_UPDATED_AT')) %}\n {% set ns.dbt_updated_at_data_type = column.dtype %}\n {% endif %}\n {% endfor %}\n {{ return(ns.dbt_updated_at_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5562985, "supported_languages": null}, "macro.dbt.check_time_data_types": {"name": "check_time_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.check_time_data_types", "macro_sql": "{% macro check_time_data_types(sql) %}\n {% set dbt_updated_at_data_type = get_updated_at_column_data_type(sql) %}\n {% set snapshot_get_time_data_type = get_snapshot_get_time_data_type() %}\n {% if snapshot_get_time_data_type is not none and dbt_updated_at_data_type is not none and snapshot_get_time_data_type != dbt_updated_at_data_type %}\n {% if exceptions.warn_snapshot_timestamp_data_types %}\n {{ exceptions.warn_snapshot_timestamp_data_types(snapshot_get_time_data_type, dbt_updated_at_data_type) }}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_updated_at_column_data_type", "macro.dbt.get_snapshot_get_time_data_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.557126, "supported_languages": null}, "macro.dbt.get_dbt_valid_to_current": {"name": "get_dbt_valid_to_current", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_dbt_valid_to_current", "macro_sql": "{% macro get_dbt_valid_to_current(strategy, columns) %}\n {% set dbt_valid_to_current = config.get('dbt_valid_to_current') or \"null\" %}\n coalesce(nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}), {{dbt_valid_to_current}})\n as {{ columns.dbt_valid_to }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5576675, "supported_languages": null}, "macro.dbt.unique_key_fields": {"name": "unique_key_fields", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_fields", "macro_sql": "{% macro unique_key_fields(unique_key) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n {{ key }} as dbt_unique_key_{{ loop.index }}\n {%- if not loop.last %} , {%- endif %}\n {% endfor %}\n {% else %}\n {{ unique_key }} as dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.558343, "supported_languages": null}, "macro.dbt.unique_key_join_on": {"name": "unique_key_join_on", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_join_on", "macro_sql": "{% macro unique_key_join_on(unique_key, identifier, from_identifier) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n\t {% set source_unique_key = (identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {% set target_unique_key = (from_identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {{ equals(source_unique_key, target_unique_key) }}\n {%- if not loop.last %} and {%- endif %}\n {% endfor %}\n {% else %}\n {{ identifier }}.dbt_unique_key = {{ from_identifier }}.dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5594463, "supported_languages": null}, "macro.dbt.unique_key_is_null": {"name": "unique_key_is_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_null", "macro_sql": "{% macro unique_key_is_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is null\n {% else %}\n {{ identifier }}.dbt_unique_key is null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.559858, "supported_languages": null}, "macro.dbt.unique_key_is_not_null": {"name": "unique_key_is_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_not_null", "macro_sql": "{% macro unique_key_is_not_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is not null\n {% else %}\n {{ identifier }}.dbt_unique_key is not null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5602796, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n\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 {# The model['config'] parameter below is no longer used, but passing anyway for compatibility #}\n {# It was a dictionary of config, instead of the config object from the context #}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", model['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 build_or_select_sql = build_sql %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\n\n {{ adapter.assert_valid_snapshot_target_given_strategy(target_relation, columns, strategy) }}\n\n {% set build_or_select_sql = snapshot_staging_table(strategy, sql, target_relation) %}\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 remove_columns = ['dbt_change_type', 'DBT_CHANGE_TYPE', 'dbt_unique_key', 'DBT_UNIQUE_KEY'] %}\n {% if unique_key | is_list %}\n {% for key in strategy.unique_key %}\n {{ remove_columns.append('dbt_unique_key_' + loop.index|string) }}\n {{ remove_columns.append('DBT_UNIQUE_KEY_' + loop.index|string) }}\n {% endfor %}\n {% endif %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'in', remove_columns)\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', 'in', remove_columns)\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\n {{ check_time_data_types(build_or_select_sql) }}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_staging_table", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.check_time_data_types", "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": 1754507511.5679934, "supported_languages": ["sql"]}, "macro.dbt.materialization_unit_default": {"name": "materialization_unit_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/unit.sql", "original_file_path": "macros/materializations/tests/unit.sql", "unique_id": "macro.dbt.materialization_unit_default", "macro_sql": "{%- materialization unit, default -%}\n\n {% set relations = [] %}\n\n {% set expected_rows = config.get('expected_rows') %}\n {% set expected_sql = config.get('expected_sql') %}\n {% set tested_expected_column_names = expected_rows[0].keys() if (expected_rows | length ) > 0 else get_columns_in_query(sql) %} %}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {% do run_query(get_create_table_as_sql(True, temp_relation, get_empty_subquery_sql(sql))) %}\n {%- set columns_in_relation = adapter.get_columns_in_relation(temp_relation) -%}\n {%- set column_name_to_data_types = {} -%}\n {%- for column in columns_in_relation -%}\n {%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n {%- endfor -%}\n\n {% if not expected_sql %}\n {% set expected_sql = get_expected_sql(expected_rows, column_name_to_data_types) %}\n {% endif %}\n {% set unit_test_sql = get_unit_test_sql(sql, expected_sql, tested_expected_column_names) %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ unit_test_sql }}\n\n {%- endcall %}\n\n {% do adapter.drop_relation(temp_relation) %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt.make_temp_relation", "macro.dbt.run_query", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_empty_subquery_sql", "macro.dbt.get_expected_sql", "macro.dbt.get_unit_test_sql", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5709422, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n {% set limit = config.get('limit') %}\n\n {% set sql_with_limit %}\n {{ get_limit_subquery_sql(sql, limit) }}\n {% endset %}\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\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql_with_limit) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {# Since the test failures have already been saved to the database, reuse that result rather than querying again #}\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_with_limit %}\n\n {% endif %}\n\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 {# The limit has already been included above, and we do not want to duplicate it again. We also want to be safe for macro overrides treating `limit` as a required parameter. #}\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit=none)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5753016, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5763376, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5769281, "supported_languages": null}, "macro.dbt.get_unit_test_sql": {"name": "get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_unit_test_sql", "macro_sql": "{% macro get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n {{ adapter.dispatch('get_unit_test_sql', 'dbt')(main_sql, expected_fixture_sql, expected_column_names) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_unit_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5773451, "supported_languages": null}, "macro.dbt.default__get_unit_test_sql": {"name": "default__get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_unit_test_sql", "macro_sql": "{% macro default__get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n-- Build actual result given inputs\nwith dbt_internal_unit_test_actual as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%},{% endif %}{%- endfor -%}, {{ dbt.string_literal(\"actual\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ main_sql }}\n ) _dbt_internal_unit_test_actual\n),\n-- Build expected result\ndbt_internal_unit_test_expected as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%}, {% endif %}{%- endfor -%}, {{ dbt.string_literal(\"expected\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ expected_fixture_sql }}\n ) _dbt_internal_unit_test_expected\n)\n-- Union actual and expected results\nselect * from dbt_internal_unit_test_actual\nunion all\nselect * from dbt_internal_unit_test_expected\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5785284, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.579155, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5798957, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5803719, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.581352, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5819001, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5824845, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5833278, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5836236, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5839105, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5841413, "supported_languages": null}, "macro.dbt.get_snapshot_get_time_data_type": {"name": "get_snapshot_get_time_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.get_snapshot_get_time_data_type", "macro_sql": "{% macro get_snapshot_get_time_data_type() %}\n {% set snapshot_time = adapter.dispatch('snapshot_get_time', 'dbt')() %}\n {% set time_data_type_sql = 'select ' ~ snapshot_time ~ ' as dbt_snapshot_time' %}\n {% set snapshot_time_column_schema = get_column_schema_from_query(time_data_type_sql) %}\n {% set time_data_type = snapshot_time_column_schema[0].dtype %}\n {{ return(time_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt_postgres.postgres__snapshot_get_time", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5850446, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.585391, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5855496, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5858674, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.586208, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5867982, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5871725, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.58749, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5878594, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5893657, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.589861, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5902634, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.590754, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5911217, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5914392, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5917842, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5922778, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.592682, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5932865, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5937712, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5940804, "supported_languages": null}, "macro.dbt.get_catalog_for_single_relation": {"name": "get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_for_single_relation", "macro_sql": "{% macro get_catalog_for_single_relation(relation) %}\n {{ return(adapter.dispatch('get_catalog_for_single_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_catalog_for_single_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5944505, "supported_languages": null}, "macro.dbt.default__get_catalog_for_single_relation": {"name": "default__get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_for_single_relation", "macro_sql": "{% macro default__get_catalog_for_single_relation(relation) %}\n {{ exceptions.raise_not_implemented(\n 'get_catalog_for_single_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5947578, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5950787, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5953932, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5957892, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.596136, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5969267, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5973132, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5977063, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5980277, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5985656, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5994794, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6000173, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.600478, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6025712, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6028864, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6034992, "supported_languages": null}, "macro.dbt.get_list_of_column_names": {"name": "get_list_of_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_list_of_column_names", "macro_sql": "\n\n{%- macro get_list_of_column_names(columns) -%}\n {% set col_names = [] %}\n {% for col in columns %}\n {% do col_names.append(col.name) %}\n {% endfor %}\n {{ return(col_names) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6042154, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6046307, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.605029, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.605393, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n {{ cast('null', col['data_type']) }} as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6075966, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.608271, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6086257, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.609308, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6097422, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation.render() }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation.render() }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation.render() }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation.render() }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6109958, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6115022, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation.render() }}\n\n {% for column in add_columns %}\n add column {{ column.quoted }} {{ 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.quoted }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.613026, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header is not none -%}\n {{ sql_header }}\n {%- endif %}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.613774, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "\n{%- macro get_limit_subquery_sql(sql, limit) -%}\n {{ adapter.dispatch('get_limit_sql', 'dbt')(sql, limit) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_limit_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6141484, "supported_languages": null}, "macro.dbt.default__get_limit_sql": {"name": "default__get_limit_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_sql", "macro_sql": "{% macro default__get_limit_sql(sql, limit) %}\n {{ sql }}\n {% if limit is not none %}\n limit {{ limit }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6145284, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6157918, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6161308, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {#-- This ensures microbatch batches get unique temp relations to avoid clobbering --#}\n {% if suffix == '__dbt_tmp' and model.batch %}\n {% set suffix = suffix ~ '_' ~ model.batch.id %}\n {% endif %}\n\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6168718, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.617574, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6180453, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6186686, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6190336, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation.render() }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6194355, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.619911, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6209576, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6214123, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6216912, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6225991, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.622869, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6231925, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6239514, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6243305, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6246073, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6249187, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6251967, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6260269, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6268308, "supported_languages": null}, "macro.dbt.collect_freshness_custom_sql": {"name": "collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness_custom_sql", "macro_sql": "{% macro collect_freshness_custom_sql(source, loaded_at_query) %}\n {{ return(adapter.dispatch('collect_freshness_custom_sql', 'dbt')(source, loaded_at_query))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness_custom_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6273894, "supported_languages": null}, "macro.dbt.default__collect_freshness_custom_sql": {"name": "default__collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness_custom_sql", "macro_sql": "{% macro default__collect_freshness_custom_sql(source, loaded_at_query) %}\n {% call statement('collect_freshness_custom_sql', fetch_result=True, auto_begin=False) -%}\n with source_query as (\n {{ loaded_at_query }}\n )\n select\n (select * from source_query) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n {% endcall %}\n {{ return(load_result('collect_freshness_custom_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6279967, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6300683, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6303241, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6306596, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6308863, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.631578, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6319416, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6322014, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.632634, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation.render() }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6330302, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6334805, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation.render() }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.63388, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6343338, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6356194, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6359787, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6364734, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.636913, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation.render() ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6392376, "supported_languages": null}, "macro.dbt.get_fixture_sql": {"name": "get_fixture_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_fixture_sql", "macro_sql": "{% macro get_fixture_sql(rows, column_name_to_data_types) %}\n-- Fixture for {{ model.name }}\n{% set default_row = {} %}\n\n{%- if not column_name_to_data_types -%}\n{#-- Use defer_relation IFF it is available in the manifest and 'this' is missing from the database --#}\n{%- set this_or_defer_relation = defer_relation if (defer_relation and not load_relation(this)) else this -%}\n{%- set columns_in_relation = adapter.get_columns_in_relation(this_or_defer_relation) -%}\n\n{%- set column_name_to_data_types = {} -%}\n{%- for column in columns_in_relation -%}\n{#-- This needs to be a case-insensitive comparison --#}\n{%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n{%- endfor -%}\n{%- endif -%}\n\n{%- if not column_name_to_data_types -%}\n {{ exceptions.raise_compiler_error(\"Not able to get columns for unit test '\" ~ model.name ~ \"' from relation \" ~ this ~ \" because the relation doesn't exist\") }}\n{%- endif -%}\n\n{%- for column_name, column_type in column_name_to_data_types.items() -%}\n {%- do default_row.update({column_name: (safe_cast(\"null\", column_type) | trim )}) -%}\n{%- endfor -%}\n\n{{ validate_fixture_rows(rows, row_number) }}\n\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\n{%- set default_row_copy = default_row.copy() -%}\n{%- do default_row_copy.update(formatted_row) -%}\nselect\n{%- for column_name, column_value in default_row_copy.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n\n{%- if (rows | length) == 0 -%}\n select\n {%- for column_name, column_value in default_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%},{%- endif %}\n {%- endfor %}\n limit 0\n{%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.safe_cast", "macro.dbt.validate_fixture_rows", "macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.643746, "supported_languages": null}, "macro.dbt.get_expected_sql": {"name": "get_expected_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_expected_sql", "macro_sql": "{% macro get_expected_sql(rows, column_name_to_data_types) %}\n\n{%- if (rows | length) == 0 -%}\n select * from dbt_internal_unit_test_actual\n limit 0\n{%- else -%}\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\nselect\n{%- for column_name, column_value in formatted_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6448169, "supported_languages": null}, "macro.dbt.format_row": {"name": "format_row", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.format_row", "macro_sql": "\n\n{%- macro format_row(row, column_name_to_data_types) -%}\n {#-- generate case-insensitive formatted row --#}\n {% set formatted_row = {} %}\n {%- for column_name, column_value in row.items() -%}\n {% set column_name = column_name|lower %}\n\n {%- if column_name not in column_name_to_data_types %}\n {#-- if user-provided row contains column name that relation does not contain, raise an error --#}\n {% set fixture_name = \"expected output\" if model.resource_type == 'unit_test' else (\"'\" ~ model.name ~ \"'\") %}\n {{ exceptions.raise_compiler_error(\n \"Invalid column name: '\" ~ column_name ~ \"' in unit test fixture for \" ~ fixture_name ~ \".\"\n \"\\nAccepted columns for \" ~ fixture_name ~ \" are: \" ~ (column_name_to_data_types.keys()|list)\n ) }}\n {%- endif -%}\n\n {%- set column_type = column_name_to_data_types[column_name] %}\n\n {#-- sanitize column_value: wrap yaml strings in quotes, apply cast --#}\n {%- set column_value_clean = column_value -%}\n {%- if column_value is string -%}\n {%- set column_value_clean = dbt.string_literal(dbt.escape_single_quotes(column_value)) -%}\n {%- elif column_value is none -%}\n {%- set column_value_clean = 'null' -%}\n {%- endif -%}\n\n {%- set row_update = {column_name: safe_cast(column_value_clean, column_type) } -%}\n {%- do formatted_row.update(row_update) -%}\n {%- endfor -%}\n {{ return(formatted_row) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.string_literal", "macro.dbt.escape_single_quotes", "macro.dbt.safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.64693, "supported_languages": null}, "macro.dbt.validate_fixture_rows": {"name": "validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.validate_fixture_rows", "macro_sql": "{%- macro validate_fixture_rows(rows, row_number) -%}\n {{ return(adapter.dispatch('validate_fixture_rows', 'dbt')(rows, row_number)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__validate_fixture_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6473558, "supported_languages": null}, "macro.dbt.default__validate_fixture_rows": {"name": "default__validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.default__validate_fixture_rows", "macro_sql": "{%- macro default__validate_fixture_rows(rows, row_number) -%}\n {# This is an abstract method for adapter overrides as needed #}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6475487, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6488705, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.649188, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n\n {#\n We want to get the string of the returned relation by calling .render() in order to skip sample/empty\n mode rendering logic. However, people override the default ref macro, and often return a string instead\n of a relation (like the ref macro does by default). Thus, to make sure we dont blow things up, we have\n to ensure the resolved relation has a .render() method.\n #}\n {%- if resolved.render is defined and resolved.render is callable -%}\n {%- set resolved = resolved.render() -%}\n {%- endif -%}\n\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6510077, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6517916, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6528876, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6537626, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6539142, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6553152, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.657709, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6591735, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6596286, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6621017, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6632156, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6637805, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.664467, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6649654, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6658862, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6664476, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.666997, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6677296, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6684763, "supported_languages": null}, "macro.dbt.equals": {"name": "equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.equals", "macro_sql": "{% macro equals(expr1, expr2) %}\n {{ return(adapter.dispatch('equals', 'dbt') (expr1, expr2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6690745, "supported_languages": null}, "macro.dbt.default__equals": {"name": "default__equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.default__equals", "macro_sql": "{% macro default__equals(expr1, expr2) -%}\n{%- if adapter.behavior.enable_truthy_nulls_equals_macro.no_warn %}\n case when (({{ expr1 }} = {{ expr2 }}) or ({{ expr1 }} is null and {{ expr2 }} is null))\n then 0\n else 1\n end = 0\n{%- else -%}\n ({{ expr1 }} = {{ expr2 }})\n{%- endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6696637, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6702125, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.670488, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6709127, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6710775, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.671558, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6717687, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6726036, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6730795, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6737847, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6741238, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6745632, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6750329, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6752617, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6756935, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6758475, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6767502, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6778836, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6783438, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.679025, "supported_languages": null}, "macro.dbt.cast": {"name": "cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.cast", "macro_sql": "{% macro cast(field, type) %}\n {{ return(adapter.dispatch('cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6795704, "supported_languages": null}, "macro.dbt.default__cast": {"name": "default__cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.default__cast", "macro_sql": "{% macro default__cast(field, type) %}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6798282, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6806395, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6814563, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6818223, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6829576, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6835046, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6837647, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6842496, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6844625, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6849365, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6852665, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.686521, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6868207, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6871526, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.687453, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6877737, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6880736, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6884065, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6887462, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6890569, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6893675, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6896822, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.690084, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6904182, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.690702, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.691208, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.69146, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6919713, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6922553, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.692764, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6930408, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6935215, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6937306, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.694555, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.695352, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6958926, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.696183, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6967633, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6970856, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6976943, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6980164, "supported_languages": null}, "macro.dbt.date": {"name": "date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.date", "macro_sql": "{% macro date(year, month, day) %}\n {{ return(adapter.dispatch('date', 'dbt') (year, month, day)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.698621, "supported_languages": null}, "macro.dbt.default__date": {"name": "default__date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.default__date", "macro_sql": "{% macro default__date(year, month, day) -%}\n {%- set dt = modules.datetime.date(year, month, day) -%}\n {%- set iso_8601_formatted_date = dt.strftime('%Y-%m-%d') -%}\n to_date('{{ iso_8601_formatted_date }}', 'YYYY-MM-DD')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6996195, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7001667, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7004368, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7009645, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7012577, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7018273, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.70216, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7027335, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7032504, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7035377, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7039866, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7043126, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7051282, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation.render() }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7058651, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7062342, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7066233, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7069998, "supported_languages": null}, "macro.dbt.drop_schema_named": {"name": "drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.drop_schema_named", "macro_sql": "{% macro drop_schema_named(schema_name) %}\n {{ return(adapter.dispatch('drop_schema_named', 'dbt') (schema_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_schema_named"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7075164, "supported_languages": null}, "macro.dbt.default__drop_schema_named": {"name": "default__drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.default__drop_schema_named", "macro_sql": "{% macro default__drop_schema_named(schema_name) %}\n {% set schema_relation = api.Relation.create(schema=schema_name) %}\n {{ adapter.drop_schema(schema_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7516193, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7524989, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7534108, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.754027, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7545743, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7554638, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7563295, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.756739, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation.render() }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7573571, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7579463, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.758376, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7589536, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7593794, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7600126, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7605305, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7615602, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation.type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7640235, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{- adapter.dispatch('drop_table', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7645316, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.764786, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7659454, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.766331, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7671864, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7685423, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7694626, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7698293, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.770202, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7707138, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7710063, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7715633, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.771862, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{- adapter.dispatch('drop_materialized_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7723444, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.772592, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7731075, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.773411, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7738998, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7743335, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7753384, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7757044, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7762706, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.77656, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7771344, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7774036, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7778966, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7782018, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{- adapter.dispatch('drop_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7786555, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7788956, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7795844, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7799015, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7802672, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation.render() }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7811046, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7816455, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7819307, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.782884, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7831912, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7854507, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7858357, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation.render() ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7863116, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.787688, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.78793, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7889602, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.789305, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.78958, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7921271, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7928727, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7935412, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.794381, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7948573, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7954648, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7960145, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7968392, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7983978, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.79893, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7994368, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8000262, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8003166, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8005865, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8008509, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8024533, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8031785, "supported_languages": null}, "macro.dbt_utils.redshift__get_tables_by_pattern_sql": {"name": "redshift__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.redshift__get_tables_by_pattern_sql", "macro_sql": "{% macro redshift__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% set sql %}\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from \"{{ database }}\".\"information_schema\".\"tables\"\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n union all\n select distinct\n schemaname as {{ adapter.quote('table_schema') }},\n tablename as {{ adapter.quote('table_name') }},\n 'external' as {{ adapter.quote('table_type') }}\n from svv_external_tables\n where redshift_database_name = '{{ database }}'\n and schemaname ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n {% endset %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.804488, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8058596, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.806834, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8074806, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8085325, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8092647, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8098102, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8103476, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8106153, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8115275, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.812809, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.81331, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8140063, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.814832, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8156412, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.816006, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.817012, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8176486, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8187122, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, quote_identifiers)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.820177, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n {%- set current_col_name = adapter.quote(col.column) if quote_identifiers else col.column -%}\n select\n {%- for exclude_col in exclude %}\n {{ adapter.quote(exclude_col) if quote_identifiers else exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ adapter.quote(field_name) if quote_identifiers else field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(current_col_name) }}\n {% else %}\n {{ current_col_name }}\n {% endif %}\n as {{ cast_to }}) as {{ adapter.quote(value_name) if quote_identifiers else value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.823881, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.824817, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8264472, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.827322, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8278508, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.828928, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8304994, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8315737, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8319912, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }} as tt\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8323414, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.832722, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.833055, "supported_languages": null}, "macro.dbt_utils.databricks__deduplicate": {"name": "databricks__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.databricks__deduplicate", "macro_sql": "\n{%- macro databricks__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.833398, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8337326, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8343801, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.834834, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8355105, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8367918, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8374023, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8380597, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8395667, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8412185, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8431644, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8498151, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8506846, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.85159, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8519716, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8527346, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8541415, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.854704, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8553903, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.856066, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8573127, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8582118, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8598285, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8612058, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8639903, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8653498, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8682125, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8688116, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8694391, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8700037, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8708892, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8715389, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.872769, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8732722, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.873608, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8741386, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8745127, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8750033, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.875363, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{% if not string %}\n{{ return('') }}\n{% endif %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8767638, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.878238, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8790758, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8799455, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8809423, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.881986, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.883748, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8848312, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8869088, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8876367, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8883762, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8892846, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n {% if group_by_columns|length() == 0 %}\n where {{ column_name }} is not null\n limit 1\n {% endif %}\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8909621, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.892014, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8939614, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns, exclude_columns, precision)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8961294, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n\n{%- if compare_columns and exclude_columns -%}\n {{ exceptions.raise_compiler_error(\"Both a compare and an ignore list were provided to the `equality` macro. Only one is allowed\") }}\n{%- endif -%}\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\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{# Ensure there are no extra columns in the compare_model vs model #}\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- do dbt_utils._is_ephemeral(compare_model, 'test_equality') -%}\n\n {%- set model_columns = adapter.get_columns_in_relation(model) -%}\n {%- set compare_model_columns = adapter.get_columns_in_relation(compare_model) -%}\n\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- set include_model_columns = [] %}\n {%- for column in model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n {%- for column in compare_model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_model_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns_set = set(include_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(include_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- else -%}\n {%- set compare_columns_set = set(model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(compare_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- endif -%}\n\n {% if compare_columns_set != compare_model_columns_set %}\n {{ exceptions.raise_compiler_error(compare_model ~\" has less columns than \" ~ model ~ \", please ensure they have the same columns or use the `compare_columns` or `exclude_columns` arguments to subset them.\") }}\n {% endif %}\n\n\n{% endif %}\n\n{%- if not precision -%}\n {%- if not compare_columns -%}\n {# \n You cannot get the columns in an ephemeral model (due to not existing in the information schema),\n so if the user does not provide an explicit list of columns we must error in the case it is ephemeral\n #}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model)-%}\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- for column in compare_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns = include_columns | map(attribute='quoted') %}\n {%- else -%} {# Compare columns provided #}\n {%- set compare_columns = compare_columns | map(attribute='quoted') %}\n {%- endif -%}\n {%- endif -%}\n\n {% set compare_cols_csv = compare_columns | join(', ') %}\n\n{% else %} {# Precision required #}\n {#-\n If rounding is required, we need to get the types, so it cannot be ephemeral even if they provide column names\n -#}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set columns = adapter.get_columns_in_relation(model) -%}\n\n {% set columns_list = [] %}\n {%- for col in columns -%}\n {%- if (\n (col.name|lower in compare_columns|map('lower') or not compare_columns) and\n (col.name|lower not in exclude_columns|map('lower') or not exclude_columns)\n ) -%}\n {# Databricks double type is not picked up by any number type checks in dbt #}\n {%- if col.is_float() or col.is_numeric() or col.data_type == 'double' -%}\n {# Cast is required due to postgres not having round for a double precision number #}\n {%- do columns_list.append('round(cast(' ~ col.quoted ~ ' as ' ~ dbt.type_numeric() ~ '),' ~ precision ~ ') as ' ~ col.quoted) -%}\n {%- else -%} {# Non-numeric type #}\n {%- do columns_list.append(col.quoted) -%}\n {%- endif -%}\n {% endif %}\n {%- endfor -%}\n\n {% set compare_cols_csv = columns_list | join(', ') %}\n\n{% endif %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_numeric", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9037569, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9053202, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9082618, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.909128, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as {{ dbt.type_numeric() }}) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9107397, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9116428, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.912316, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9131021, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9143565, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.915133, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9158738, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9165819, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.917176, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.918166, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9203608, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9211016, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.921787, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9225626, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.923465, "supported_languages": null}, "macro.shopify.shopify_lookback": {"name": "shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.shopify_lookback", "macro_sql": "{% macro shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n{{ adapter.dispatch('shopify_lookback', 'shopify') (from_date, datepart, interval, safety_date='2010-01-01') }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_lookback"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9242392, "supported_languages": null}, "macro.shopify.default__shopify_lookback": {"name": "default__shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.default__shopify_lookback", "macro_sql": "{% macro default__shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n {% set sql_statement %}\n select coalesce({{ from_date }}, {{ \"'\" ~ safety_date ~ \"'\" }})\n from {{ this }}\n {%- endset -%}\n\n {%- set result = dbt_utils.get_single_value(sql_statement) %}\n\n {{ dbt.dateadd(datepart=datepart, interval=-interval, from_date_or_timestamp=\"cast('\" ~ result ~ \"' as date)\") }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_single_value", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9250786, "supported_languages": null}, "macro.shopify.shopify_is_databricks_sql_warehouse": {"name": "shopify_is_databricks_sql_warehouse", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_is_databricks_sql_warehouse.sql", "original_file_path": "macros/shopify_is_databricks_sql_warehouse.sql", "unique_id": "macro.shopify.shopify_is_databricks_sql_warehouse", "macro_sql": "{% macro shopify_is_databricks_sql_warehouse() %}\n {% if target.type in ('databricks') %}\n {% set re = modules.re %}\n {% set path_match = target.http_path %}\n {% set regex_pattern = \"sql/.+/warehouses/\" %}\n {% set match_result = re.search(regex_pattern, path_match) %}\n {% if match_result %}\n {{ return(True) }}\n {% else %}\n {{ return(False) }}\n {% endif %}\n {% else %}\n {{ return(False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.926444, "supported_languages": null}, "macro.shopify.shopify_partition_by_cols": {"name": "shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.shopify_partition_by_cols", "macro_sql": "{% macro shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n\n{{ adapter.dispatch('shopify_partition_by_cols', 'shopify') (base_col, source_relation) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_partition_by_cols"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9270556, "supported_languages": null}, "macro.shopify.default__shopify_partition_by_cols": {"name": "default__shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.default__shopify_partition_by_cols", "macro_sql": "{% macro default__shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n {%- if var('shopify_union_schemas', false) or var('shopify_union_databases', false) -%}\n {{ base_col }}, {{ source_relation }}\n {%- else %}\n {{ base_col }}\n {%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9276505, "supported_languages": null}, "macro.shopify.get_metafields": {"name": "get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.get_metafields", "macro_sql": "{% macro get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n {{ return(adapter.dispatch('get_metafields', 'shopify')(source_object, reference_values, id_column, lookup_object, key_field, key_value, reference_field)) }} \n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__get_metafields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.928983, "supported_languages": null}, "macro.shopify.default__get_metafields": {"name": "default__get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.default__get_metafields", "macro_sql": "{% macro default__get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n\n{# Manually quote and join reference values #}\n{% set quoted_values = [] %}\n{% for value in reference_values %}\n {% do quoted_values.append(\"'\" ~ value | lower | trim ~ \"'\") %}\n{% endfor %}\n{% set reference_values_clause = quoted_values | join(\", \") %}\n\n{# Get the pivot fields dynamically based on the reference values #}\n{% set pivot_fields = dbt_utils.get_column_values(\n table=ref(lookup_object),\n column=key_field,\n where=\"lower(\" ~ reference_field ~ \") in (\" ~ reference_values_clause ~ \")\"\n) %}\n\n{% set source_columns = adapter.get_columns_in_relation(ref(source_object)) %}\n{% set source_column_count = source_columns | length %}\n\nwith source_table as (\n select *\n from {{ ref(source_object) }}\n)\n\n{% if pivot_fields is not none %},\nlookup_object as (\n select \n *,\n {{ dbt_utils.pivot(\n column=key_field, \n values=pivot_fields, \n agg='', \n then_value=key_value, \n else_value=\"null\",\n quote_identifiers=false\n ) \n }}\n from {{ ref(lookup_object) }}\n where is_most_recent_record\n),\n\nfinal as (\n select\n {% for column in source_columns %}\n source_table.{{ column.name }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% for fields in pivot_fields %}\n , max(lookup_object.{{ dbt_utils.slugify(fields) }}) as metafield_{{ dbt_utils.slugify(fields) }}\n {% endfor %}\n from source_table\n left join lookup_object \n on lookup_object.{{ reference_field }}_id = source_table.{{ id_column }}\n and lower(lookup_object.{{ reference_field }}) in ({{ reference_values_clause }})\n {{ dbt_utils.group_by(source_column_count) }}\n)\n\nselect *\nfrom final\n{% else %}\n\nselect *\nfrom source_table\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_column_values", "macro.dbt_utils.pivot", "macro.dbt_utils.slugify", "macro.dbt_utils.group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9320781, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9335573, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9357076, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9443793, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9472783, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.948105, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9488823, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9502668, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9506032, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9509273, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9512653, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9546373, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9558752, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.956619, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9571586, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9573815, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9575913, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9578, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9586143, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9589558, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9593089, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9596395, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9599319, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9602792, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.960772, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.960988, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9612215, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9626236, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.963593, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9638789, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9646068, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.965187, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9654577, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9657176, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9659753, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9662535, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9669945, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9690487, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9701772, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.97117, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.971522, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9730887, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9742403, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9747338, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9752343, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9757051, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9761899, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9767292, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9774094, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9778848, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9786282, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9797342, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9806402, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9829915, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9837794, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9840968, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.984429, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9847739, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.985083, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.985407, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9859085, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9866784, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.987008, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.987346, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9876661, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9879825, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9883425, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.990379, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9908688, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9910812, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9913118, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9966938, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9974954, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9982176, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9988158, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.99904, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.999289, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9995036, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9997134, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.000529, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0024416, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0035946, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0041733, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.004469, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0048535, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.005489, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.005755, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.006017, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0062973, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0065677, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0073018, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0078382, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0083084, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0093904, "supported_languages": null}, "macro.spark_utils.get_tables": {"name": "get_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_tables", "macro_sql": "{% macro get_tables(table_regex_pattern='.*') %}\n\n {% set tables = [] %}\n {% for database in spark__list_schemas('not_used') %}\n {% for table in spark__list_relations_without_caching(database[0]) %}\n {% set db_tablename = database[0] ~ \".\" ~ table[1] %}\n {% set is_match = modules.re.match(table_regex_pattern, db_tablename) %}\n {% if is_match %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('type', 'TYPE', 'Type'))|first %}\n {% if table_type[1]|lower != 'view' %}\n {{ tables.append(db_tablename) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n {{ return(tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0127637, "supported_languages": null}, "macro.spark_utils.get_delta_tables": {"name": "get_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_delta_tables", "macro_sql": "{% macro get_delta_tables(table_regex_pattern='.*') %}\n\n {% set delta_tables = [] %}\n {% for db_tablename in get_tables(table_regex_pattern) %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('provider', 'PROVIDER', 'Provider'))|first %}\n {% if table_type[1]|lower == 'delta' %}\n {{ delta_tables.append(db_tablename) }}\n {% endif %}\n {% endfor %}\n {{ return(delta_tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0140898, "supported_languages": null}, "macro.spark_utils.get_statistic_columns": {"name": "get_statistic_columns", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_statistic_columns", "macro_sql": "{% macro get_statistic_columns(table) %}\n\n {% call statement('input_columns', fetch_result=True) %}\n SHOW COLUMNS IN {{ table }}\n {% endcall %}\n {% set input_columns = load_result('input_columns').table %}\n\n {% set output_columns = [] %}\n {% for column in input_columns %}\n {% call statement('column_information', fetch_result=True) %}\n DESCRIBE TABLE {{ table }} `{{ column[0] }}`\n {% endcall %}\n {% if not load_result('column_information').table[1][1].startswith('struct') and not load_result('column_information').table[1][1].startswith('array') %}\n {{ output_columns.append('`' ~ column[0] ~ '`') }}\n {% endif %}\n {% endfor %}\n {{ return(output_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0157757, "supported_languages": null}, "macro.spark_utils.spark_optimize_delta_tables": {"name": "spark_optimize_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_optimize_delta_tables", "macro_sql": "{% macro spark_optimize_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Optimizing \" ~ table) }}\n {% do run_query(\"optimize \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.017178, "supported_languages": null}, "macro.spark_utils.spark_vacuum_delta_tables": {"name": "spark_vacuum_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "macro_sql": "{% macro spark_vacuum_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Vacuuming \" ~ table) }}\n {% do run_query(\"vacuum \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.018556, "supported_languages": null}, "macro.spark_utils.spark_analyze_tables": {"name": "spark_analyze_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_analyze_tables", "macro_sql": "{% macro spark_analyze_tables(table_regex_pattern='.*') %}\n\n {% for table in get_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set columns = get_statistic_columns(table) | join(',') %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Analyzing \" ~ table) }}\n {% if columns != '' %}\n {% do run_query(\"analyze table \" ~ table ~ \" compute statistics for columns \" ~ columns) %}\n {% endif %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.spark_utils.get_statistic_columns", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.020262, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_pattern": {"name": "spark__get_relations_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "macro_sql": "{% macro spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n show table extended in {{ schema_pattern }} like '{{ table_pattern }}'\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=None,\n schema=row[0],\n identifier=row[1],\n type=('view' if 'Type: VIEW' in row[3] else 'table')\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0224934, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_prefix": {"name": "spark__get_relations_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "macro_sql": "{% macro spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {% set table_pattern = table_pattern ~ '*' %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0231445, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_pattern": {"name": "spark__get_tables_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "macro_sql": "{% macro spark__get_tables_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0236697, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_prefix": {"name": "spark__get_tables_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "macro_sql": "{% macro spark__get_tables_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0241978, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp": {"name": "spark__current_timestamp", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0244482, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp_in_utc": {"name": "spark__current_timestamp_in_utc", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0246022, "supported_languages": null}, "macro.spark_utils.spark__split_part": {"name": "spark__split_part", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "unique_id": "macro.spark_utils.spark__split_part", "macro_sql": "{% macro spark__split_part(string_text, delimiter_text, part_number) %}\n\n {% set delimiter_expr %}\n \n -- escape if starts with a special character\n case when regexp_extract({{ delimiter_text }}, '([^A-Za-z0-9])(.*)', 1) != '_'\n then concat('\\\\', {{ delimiter_text }})\n else {{ delimiter_text }} end\n \n {% endset %}\n\n {% set split_part_expr %}\n \n split(\n {{ string_text }},\n {{ delimiter_expr }}\n )[({{ part_number - 1 }})]\n \n {% endset %}\n \n {{ return(split_part_expr) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0255287, "supported_languages": null}, "macro.spark_utils.spark__type_numeric": {"name": "spark__type_numeric", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "unique_id": "macro.spark_utils.spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0257568, "supported_languages": null}, "macro.spark_utils.spark__concat": {"name": "spark__concat", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "unique_id": "macro.spark_utils.spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0260875, "supported_languages": null}, "macro.spark_utils.spark__datediff": {"name": "spark__datediff", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "unique_id": "macro.spark_utils.spark__datediff", "macro_sql": "{% macro spark__datediff(first_date, second_date, datepart) %}\n\n {%- if datepart in ['day', 'week', 'month', 'quarter', 'year'] -%}\n \n {# make sure the dates are real, otherwise raise an error asap #}\n {% set first_date = spark_utils.assert_not_null('date', first_date) %}\n {% set second_date = spark_utils.assert_not_null('date', second_date) %}\n \n {%- endif -%}\n \n {%- if datepart == 'day' -%}\n \n datediff({{second_date}}, {{first_date}})\n \n {%- elif datepart == 'week' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(datediff({{second_date}}, {{first_date}})/7)\n else ceil(datediff({{second_date}}, {{first_date}})/7)\n end\n \n -- did we cross a week boundary (Sunday)?\n + case\n when {{first_date}} < {{second_date}} and dayofweek({{second_date}}) < dayofweek({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofweek({{second_date}}) > dayofweek({{first_date}}) then -1\n else 0 end\n\n {%- elif datepart == 'month' -%}\n\n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}})))\n else ceil(months_between(date({{second_date}}), date({{first_date}})))\n end\n \n -- did we cross a month boundary?\n + case\n when {{first_date}} < {{second_date}} and dayofmonth({{second_date}}) < dayofmonth({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofmonth({{second_date}}) > dayofmonth({{first_date}}) then -1\n else 0 end\n \n {%- elif datepart == 'quarter' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}}))/3)\n else ceil(months_between(date({{second_date}}), date({{first_date}}))/3)\n end\n \n -- did we cross a quarter boundary?\n + case\n when {{first_date}} < {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n < (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then 1\n when {{first_date}} > {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n > (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then -1\n else 0 end\n\n {%- elif datepart == 'year' -%}\n \n year({{second_date}}) - year({{first_date}})\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set divisor -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n case when {{first_date}} < {{second_date}}\n then ceil((\n {# make sure the timestamps are real, otherwise raise an error asap #}\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n else floor((\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n end\n \n {% if datepart == 'millisecond' %}\n + cast(date_format({{second_date}}, 'SSS') as int)\n - cast(date_format({{first_date}}, 'SSS') as int)\n {% endif %}\n \n {% if datepart == 'microsecond' %} \n {% set capture_str = '[0-9]{4}-[0-9]{2}-[0-9]{2}.[0-9]{2}:[0-9]{2}:[0-9]{2}.([0-9]{6})' %}\n -- Spark doesn't really support microseconds, so this is a massive hack!\n -- It will only work if the timestamp-string is of the format\n -- 'yyyy-MM-dd-HH mm.ss.SSSSSS'\n + cast(regexp_extract({{second_date}}, '{{capture_str}}', 1) as int)\n - cast(regexp_extract({{first_date}}, '{{capture_str}}', 1) as int) \n {% endif %}\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro datediff not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0329418, "supported_languages": null}, "macro.spark_utils.spark__dateadd": {"name": "spark__dateadd", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "unique_id": "macro.spark_utils.spark__dateadd", "macro_sql": "{% macro spark__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {%- set clock_component -%}\n {# make sure the dates + timestamps are real, otherwise raise an error asap #}\n to_unix_timestamp({{ spark_utils.assert_not_null('to_timestamp', from_date_or_timestamp) }})\n - to_unix_timestamp({{ spark_utils.assert_not_null('date', from_date_or_timestamp) }})\n {%- endset -%}\n\n {%- if datepart in ['day', 'week'] -%}\n \n {%- set multiplier = 7 if datepart == 'week' else 1 -%}\n\n to_timestamp(\n to_unix_timestamp(\n date_add(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ['month', 'quarter', 'year'] -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'month' -%} 1\n {%- elif datepart == 'quarter' -%} 3\n {%- elif datepart == 'year' -%} 12\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n to_unix_timestamp(\n add_months(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n {{ spark_utils.assert_not_null('to_unix_timestamp', from_date_or_timestamp) }}\n + cast({{interval}} * {{multiplier}} as int)\n )\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro dateadd not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0366125, "supported_languages": null}, "macro.spark_utils.assert_not_null": {"name": "assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0372179, "supported_languages": null}, "macro.spark_utils.default__assert_not_null": {"name": "default__assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.default__assert_not_null", "macro_sql": "{% macro default__assert_not_null(function, arg) %}\n\n coalesce({{function}}({{arg}}), nvl2({{function}}({{arg}}), assert_true({{function}}({{arg}}) is not null), null))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.037615, "supported_languages": null}, "macro.spark_utils.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "unique_id": "macro.spark_utils.spark__convert_timezone", "macro_sql": "{% macro spark__convert_timezone(in_tz, out_tz, in_timestamp) %}\n from_utc_timestamp(to_utc_timestamp({{in_timestamp}}, {{in_tz}}), {{out_tz}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0380228, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_shipping_line_columns": {"name": "get_abandoned_checkout_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "original_file_path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro_sql": "{% macro get_abandoned_checkout_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range_max\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_range_min\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.041359, "supported_languages": null}, "macro.shopify_source.get_tender_transaction_columns": {"name": "get_tender_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tender_transaction_columns.sql", "original_file_path": "macros/get_tender_transaction_columns.sql", "unique_id": "macro.shopify_source.get_tender_transaction_columns", "macro_sql": "{% macro get_tender_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"remote_reference\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0437202, "supported_languages": null}, "macro.shopify_source.get_graphql_tender_transaction_columns": {"name": "get_graphql_tender_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tender_transaction_columns.sql", "original_file_path": "macros/get_tender_transaction_columns.sql", "unique_id": "macro.shopify_source.get_graphql_tender_transaction_columns", "macro_sql": "{% macro get_graphql_tender_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"remote_reference\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.045546, "supported_languages": null}, "macro.shopify_source.get_fulfillment_event_columns": {"name": "get_fulfillment_event_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_event_columns.sql", "original_file_path": "macros/get_fulfillment_event_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_event_columns", "macro_sql": "{% macro get_fulfillment_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"estimated_delivery_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"happened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shop_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0496173, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_event_columns": {"name": "get_graphql_fulfillment_event_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_event_columns.sql", "original_file_path": "macros/get_fulfillment_event_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_event_columns", "macro_sql": "{% macro get_graphql_fulfillment_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"estimated_delivery_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"happened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0524511, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_rule_columns": {"name": "get_graphql_collection_rule_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_rule_columns.sql", "original_file_path": "macros/get_collection_rule_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_rule_columns", "macro_sql": "{% macro get_graphql_collection_rule_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"condition\", \"datatype\": dbt.type_string()},\n {\"name\": \"relation\", \"datatype\": dbt.type_string()},\n {\"name\": \"columns\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.053904, "supported_languages": null}, "macro.shopify_source.get_product_media_columns": {"name": "get_product_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_media_columns.sql", "original_file_path": "macros/get_product_media_columns.sql", "unique_id": "macro.shopify_source.get_product_media_columns", "macro_sql": "{% macro get_product_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.054775, "supported_languages": null}, "macro.shopify_source.get_graphql_product_media_columns": {"name": "get_graphql_product_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_media_columns.sql", "original_file_path": "macros/get_product_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_media_columns", "macro_sql": "{% macro get_graphql_product_media_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0555713, "supported_languages": null}, "macro.shopify_source.get_order_columns": {"name": "get_order_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "unique_id": "macro.shopify_source.get_order_columns", "macro_sql": "{% macro get_order_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tip_received\", \"datatype\": dbt.type_float()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cancel_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancelled_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"financial_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"browser_ip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_shipping_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"app_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"client_details_user_agent\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_status_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"confirmed\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0715947, "supported_languages": null}, "macro.shopify_source.get_graphql_order_columns": {"name": "get_graphql_order_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_columns", "macro_sql": "{% macro get_graphql_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"app_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancel_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancelled_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"client_ip\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"confirmed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_financial_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"presentment_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status_page_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_discounts_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discounts_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_shipping_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_shipping_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_shipping_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_shipping_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tip_received_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tip_received_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tip_received_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tip_received_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0846503, "supported_languages": null}, "macro.shopify_source.get_discount_code_free_shipping_columns": {"name": "get_discount_code_free_shipping_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_free_shipping_columns.sql", "original_file_path": "macros/get_discount_code_free_shipping_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_free_shipping_columns", "macro_sql": "{% macro get_discount_code_free_shipping_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.088901, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_free_shipping_columns": {"name": "get_graphql_discount_code_free_shipping_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_free_shipping_columns.sql", "original_file_path": "macros/get_discount_code_free_shipping_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_free_shipping_columns", "macro_sql": "{% macro get_graphql_discount_code_free_shipping_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0922267, "supported_languages": null}, "macro.shopify_source.json_to_string": {"name": "json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.json_to_string", "macro_sql": "{%- macro json_to_string(column, column_list) -%}\n {{ return(adapter.dispatch('json_to_string', 'shopify_source')(column, column_list)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__json_to_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0929453, "supported_languages": null}, "macro.shopify_source.default__json_to_string": {"name": "default__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.default__json_to_string", "macro_sql": "{%- macro default__json_to_string(column, column_list) -%}\n {{ column }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0931964, "supported_languages": null}, "macro.shopify_source.bigquery__json_to_string": {"name": "bigquery__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.bigquery__json_to_string", "macro_sql": "{%- macro bigquery__json_to_string(column, column_list) -%}\n {%- set columns = column_list -%}\n {%- set ns = namespace(column_type='string') -%}\n\n {%- for col in columns -%}\n {%- if col.name|lower == column|lower -%}\n {%- set ns.column_type = col.dtype|lower -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- if ns.column_type == 'json' -%}\n to_json_string({{ column }})\n {%- else -%}\n {{ column }}\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0941546, "supported_languages": null}, "macro.shopify_source.get_product_columns": {"name": "get_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_columns.sql", "original_file_path": "macros/get_product_columns.sql", "unique_id": "macro.shopify_source.get_product_columns", "macro_sql": "{% macro get_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.09701, "supported_languages": null}, "macro.shopify_source.get_graphql_product_columns": {"name": "get_graphql_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_columns.sql", "original_file_path": "macros/get_product_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_columns", "macro_sql": "{% macro get_graphql_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.099161, "supported_languages": null}, "macro.shopify_source.get_collection_columns": {"name": "get_collection_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_columns.sql", "original_file_path": "macros/get_collection_columns.sql", "unique_id": "macro.shopify_source.get_collection_columns", "macro_sql": "{% macro get_collection_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"disjunctive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"rules\", \"datatype\": dbt.type_string()},\n {\"name\": \"sort_order\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.101626, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_columns": {"name": "get_graphql_collection_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_columns.sql", "original_file_path": "macros/get_collection_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_columns", "macro_sql": "{% macro get_graphql_collection_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"applied_disjunctively\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"sort_order\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.103108, "supported_languages": null}, "macro.shopify_source.get_customer_tag_columns": {"name": "get_customer_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_tag_columns.sql", "original_file_path": "macros/get_customer_tag_columns.sql", "unique_id": "macro.shopify_source.get_customer_tag_columns", "macro_sql": "{% macro get_customer_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1043344, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_tag_columns": {"name": "get_graphql_customer_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_tag_columns.sql", "original_file_path": "macros/get_customer_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_tag_columns", "macro_sql": "{% macro get_graphql_customer_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.105247, "supported_languages": null}, "macro.shopify_source.get_shop_columns": {"name": "get_shop_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_shop_columns.sql", "original_file_path": "macros/get_shop_columns.sql", "unique_id": "macro.shopify_source.get_shop_columns", "macro_sql": "{% macro get_shop_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_api_supported\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"cookie_consent_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"county_taxes\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_card_reader_giveaway\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"eligible_for_payments\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"enabled_presentment_currencies\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_login_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_gift_cards\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_storefront\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"iana_timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"money_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"myshopify_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"password_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"pre_launch_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"primary_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_extra_payments_agreement\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"setup_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"shop_owner\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1152349, "supported_languages": null}, "macro.shopify_source.get_graphql_shop_columns": {"name": "get_graphql_shop_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_shop_columns.sql", "original_file_path": "macros/get_shop_columns.sql", "unique_id": "macro.shopify_source.get_graphql_shop_columns", "macro_sql": "{% macro get_graphql_shop_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code_v_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_api_supported\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"contact_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_with_currency_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_with_currency_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"enabled_presentment_currencies\", \"datatype\": dbt.type_string()},\n {\"name\": \"features_storefront\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"iana_timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"myshopify_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"password_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"plan_display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_domain_host\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_domain_localization_default_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"setup_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"shop_owner_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"timezone_abbreviation\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_offset\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_offset_minutes\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1217258, "supported_languages": null}, "macro.shopify_source.get_order_url_tag_columns": {"name": "get_order_url_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_url_tag_columns.sql", "original_file_path": "macros/get_order_url_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_url_tag_columns", "macro_sql": "{% macro get_order_url_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1228824, "supported_languages": null}, "macro.shopify_source.get_order_shipping_line_columns": {"name": "get_order_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_line_columns.sql", "original_file_path": "macros/get_order_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_line_columns", "macro_sql": "{% macro get_order_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1261063, "supported_languages": null}, "macro.shopify_source.get_graphql_order_shipping_line_columns": {"name": "get_graphql_order_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_line_columns.sql", "original_file_path": "macros/get_order_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_shipping_line_columns", "macro_sql": "{% macro get_graphql_order_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"original_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"original_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1290185, "supported_languages": null}, "macro.shopify_source.get_customer_columns": {"name": "get_customer_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "unique_id": "macro.shopify_source.get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_address_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"orders_count\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_spent\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"verified_email\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email_marketing_consent_consent_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_marketing_consent_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepts_marketing_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"marketing_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customer_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1365464, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_columns": {"name": "get_graphql_customer_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_columns", "macro_sql": "{% macro get_graphql_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"orders_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_spent\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"verified_email\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customer_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.139845, "supported_languages": null}, "macro.shopify_source.shopify_union_data": {"name": "shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.shopify_union_data", "macro_sql": "{%- macro shopify_union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases', shopify_model_api='rest') -%}\n\n{{ adapter.dispatch('shopify_union_data', 'shopify_source') (\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 shopify_model_api\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__shopify_union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.142313, "supported_languages": null}, "macro.shopify_source.default__shopify_union_data": {"name": "default__shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.default__shopify_union_data", "macro_sql": "{%- macro default__shopify_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 shopify_model_api\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + ('_gql_' if shopify_model_api == 'graphql' else '_') + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema ~ ('_graphql' if shopify_model_api == 'graphql' else ''), table_identifier).database,\n schema=source(default_schema ~ ('_graphql' if shopify_model_api == 'graphql' else ''), table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1517446, "supported_languages": null}, "macro.shopify_source.get_transaction_columns": {"name": "get_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_transaction_columns.sql", "original_file_path": "macros/get_transaction_columns.sql", "unique_id": "macro.shopify_source.get_transaction_columns", "macro_sql": "{% macro get_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"payment_avs_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_bin\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_cvv_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"receipt\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_exchange_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_adjustment\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_original_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_final_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"error_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"authorization_expires_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{% if target.type in ('redshift','postgres') %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"quote\": True, \"alias\": \"authorization_code\"}) }}\n{% else %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"alias\": \"authorization_code\"}) }}\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1593719, "supported_languages": null}, "macro.shopify_source.get_graphql_transaction_columns": {"name": "get_graphql_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_transaction_columns.sql", "original_file_path": "macros/get_transaction_columns.sql", "unique_id": "macro.shopify_source.get_graphql_transaction_columns", "macro_sql": "{% macro get_graphql_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"authorization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"authorization_expires_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"error_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_avs_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_bin\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_cvv_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"receipt_json\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_exchange_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_adjustment\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_original_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_final_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_currency\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1647148, "supported_languages": null}, "macro.shopify_source.get_location_columns": {"name": "get_location_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_location_columns.sql", "original_file_path": "macros/get_location_columns.sql", "unique_id": "macro.shopify_source.get_location_columns", "macro_sql": "{% macro get_location_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"legacy\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"localized_country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"localized_province_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1689394, "supported_languages": null}, "macro.shopify_source.get_graphql_location_columns": {"name": "get_graphql_location_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_location_columns.sql", "original_file_path": "macros/get_location_columns.sql", "unique_id": "macro.shopify_source.get_graphql_location_columns", "macro_sql": "{% macro get_graphql_location_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"is_fulfillment_service\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1719458, "supported_languages": null}, "macro.shopify_source.get_discount_code_app_columns": {"name": "get_discount_code_app_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_app_columns.sql", "original_file_path": "macros/get_discount_code_app_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_app_columns", "macro_sql": "{% macro get_discount_code_app_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.17623, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_app_columns": {"name": "get_graphql_discount_code_app_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_app_columns.sql", "original_file_path": "macros/get_discount_code_app_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_app_columns", "macro_sql": "{% macro get_graphql_discount_code_app_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1796064, "supported_languages": null}, "macro.shopify_source.get_order_adjustment_columns": {"name": "get_order_adjustment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_adjustment_columns.sql", "original_file_path": "macros/get_order_adjustment_columns.sql", "unique_id": "macro.shopify_source.get_order_adjustment_columns", "macro_sql": "{% macro get_order_adjustment_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1820214, "supported_languages": null}, "macro.shopify_source.get_graphql_order_adjustment_columns": {"name": "get_graphql_order_adjustment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_adjustment_columns.sql", "original_file_path": "macros/get_order_adjustment_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_adjustment_columns", "macro_sql": "{% macro get_graphql_order_adjustment_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.184144, "supported_languages": null}, "macro.shopify_source.get_discount_allocation_columns": {"name": "get_discount_allocation_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_allocation_columns.sql", "original_file_path": "macros/get_discount_allocation_columns.sql", "unique_id": "macro.shopify_source.get_discount_allocation_columns", "macro_sql": "{% macro get_discount_allocation_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_application_index\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1862993, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_allocation_columns": {"name": "get_graphql_discount_allocation_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_allocation_columns.sql", "original_file_path": "macros/get_discount_allocation_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_allocation_columns", "macro_sql": "{% macro get_graphql_discount_allocation_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocated_amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"allocated_amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"allocated_amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"allocated_amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_application_index\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1878073, "supported_languages": null}, "macro.shopify_source.get_discount_redeem_code_columns": {"name": "get_discount_redeem_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_redeem_code_columns.sql", "original_file_path": "macros/get_discount_redeem_code_columns.sql", "unique_id": "macro.shopify_source.get_discount_redeem_code_columns", "macro_sql": "{% macro get_discount_redeem_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"created_by_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"discount_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1899676, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_redeem_code_columns": {"name": "get_graphql_discount_redeem_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_redeem_code_columns.sql", "original_file_path": "macros/get_discount_redeem_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_redeem_code_columns", "macro_sql": "{% macro get_graphql_discount_redeem_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"created_by_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"discount_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.191627, "supported_languages": null}, "macro.shopify_source.get_order_tag_columns": {"name": "get_order_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_tag_columns.sql", "original_file_path": "macros/get_order_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_tag_columns", "macro_sql": "{% macro get_order_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.192847, "supported_languages": null}, "macro.shopify_source.get_graphql_order_tag_columns": {"name": "get_graphql_order_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_tag_columns.sql", "original_file_path": "macros/get_order_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_tag_columns", "macro_sql": "{% macro get_graphql_order_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1937735, "supported_languages": null}, "macro.shopify_source.get_order_shipping_tax_line_columns": {"name": "get_order_shipping_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_tax_line_columns.sql", "original_file_path": "macros/get_order_shipping_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_tax_line_columns", "macro_sql": "{% macro get_order_shipping_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_shipping_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1955981, "supported_languages": null}, "macro.shopify_source.get_graphql_order_shipping_tax_line_columns": {"name": "get_graphql_order_shipping_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_tax_line_columns.sql", "original_file_path": "macros/get_order_shipping_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_shipping_tax_line_columns", "macro_sql": "{% macro get_graphql_order_shipping_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_shipping_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1974764, "supported_languages": null}, "macro.shopify_source.get_refund_columns": {"name": "get_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_refund_columns.sql", "original_file_path": "macros/get_refund_columns.sql", "unique_id": "macro.shopify_source.get_refund_columns", "macro_sql": "{% macro get_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"restock\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_duties_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1996782, "supported_languages": null}, "macro.shopify_source.get_graphql_refund_columns": {"name": "get_graphql_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_refund_columns.sql", "original_file_path": "macros/get_refund_columns.sql", "unique_id": "macro.shopify_source.get_graphql_refund_columns", "macro_sql": "{% macro get_graphql_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"return_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_refunded_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_refunded_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_refunded_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_refunded_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.201774, "supported_languages": null}, "macro.shopify_source.get_inventory_item_columns": {"name": "get_inventory_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_item_columns.sql", "original_file_path": "macros/get_inventory_item_columns.sql", "unique_id": "macro.shopify_source.get_inventory_item_columns", "macro_sql": "{% macro get_inventory_item_columns() %}\n\n{# Columns below line 26 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"province_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duplicate_sku_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"harmonized_system_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_history_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_weight_value\", \"datatype\": dbt.type_float()},\n {\"name\": \"measurement_weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked_editable_locked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()}\n ,\n {\"name\": \"cost\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2063668, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_item_columns": {"name": "get_graphql_inventory_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_item_columns.sql", "original_file_path": "macros/get_inventory_item_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_item_columns", "macro_sql": "{% macro get_graphql_inventory_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duplicate_sku_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"harmonized_system_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_history_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"measurement_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"measurement_weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"measurement_weight_value\", \"datatype\": dbt.type_float()},\n {\"name\": \"province_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_locked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2098804, "supported_languages": null}, "macro.shopify_source.get_tax_line_columns": {"name": "get_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tax_line_columns.sql", "original_file_path": "macros/get_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_tax_line_columns", "macro_sql": "{% macro get_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.211733, "supported_languages": null}, "macro.shopify_source.get_graphql_tax_line_columns": {"name": "get_graphql_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tax_line_columns.sql", "original_file_path": "macros/get_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_tax_line_columns", "macro_sql": "{% macro get_graphql_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2134082, "supported_languages": null}, "macro.shopify_source.get_discount_code_basic_columns": {"name": "get_discount_code_basic_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_basic_columns.sql", "original_file_path": "macros/get_discount_code_basic_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_basic_columns", "macro_sql": "{% macro get_discount_code_basic_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2177134, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_basic_columns": {"name": "get_graphql_discount_code_basic_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_basic_columns.sql", "original_file_path": "macros/get_discount_code_basic_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_basic_columns", "macro_sql": "{% macro get_graphql_discount_code_basic_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2211018, "supported_languages": null}, "macro.shopify_source.get_product_variant_media_columns": {"name": "get_product_variant_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_media_columns.sql", "original_file_path": "macros/get_product_variant_media_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_media_columns", "macro_sql": "{% macro get_product_variant_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2219923, "supported_languages": null}, "macro.shopify_source.get_graphql_product_variant_media_columns": {"name": "get_graphql_product_variant_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_media_columns.sql", "original_file_path": "macros/get_product_variant_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_variant_media_columns", "macro_sql": "{% macro get_graphql_product_variant_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.222635, "supported_languages": null}, "macro.shopify_source.get_order_discount_code_columns": {"name": "get_order_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_discount_code_columns.sql", "original_file_path": "macros/get_order_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_order_discount_code_columns", "macro_sql": "{% macro get_order_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2242174, "supported_languages": null}, "macro.shopify_source.get_graphql_order_discount_code_columns": {"name": "get_graphql_order_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_discount_code_columns.sql", "original_file_path": "macros/get_order_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_discount_code_columns", "macro_sql": "{% macro get_graphql_order_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2251592, "supported_languages": null}, "macro.shopify_source.get_media_image_columns": {"name": "get_media_image_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_image_columns.sql", "original_file_path": "macros/get_media_image_columns.sql", "unique_id": "macro.shopify_source.get_media_image_columns", "macro_sql": "{% macro get_media_image_columns() %}\n\n{% set columns = [\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.226762, "supported_languages": null}, "macro.shopify_source.get_graphql_media_image_columns": {"name": "get_graphql_media_image_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_image_columns.sql", "original_file_path": "macros/get_media_image_columns.sql", "unique_id": "macro.shopify_source.get_graphql_media_image_columns", "macro_sql": "{% macro get_graphql_media_image_columns() %}\n\n{% set columns = [\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.227995, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_order_line_item_columns": {"name": "get_graphql_fulfillment_order_line_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_order_line_item_columns.sql", "original_file_path": "macros/get_fulfillment_order_line_item_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_order_line_item_columns", "macro_sql": "{% macro get_graphql_fulfillment_order_line_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"remaining_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2317774, "supported_languages": null}, "macro.shopify_source.get_fulfillment_columns": {"name": "get_fulfillment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_columns.sql", "original_file_path": "macros/get_fulfillment_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_columns", "macro_sql": "{% macro get_fulfillment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_numbers\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2348077, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_columns": {"name": "get_graphql_fulfillment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_columns.sql", "original_file_path": "macros/get_fulfillment_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_columns", "macro_sql": "{% macro get_graphql_fulfillment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"display_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2368784, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_columns": {"name": "get_abandoned_checkout_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_columns.sql", "original_file_path": "macros/get_abandoned_checkout_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_columns", "macro_sql": "{% macro get_abandoned_checkout_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"abandoned_checkout_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2493427, "supported_languages": null}, "macro.shopify_source.get_graphql_abandoned_checkout_columns": {"name": "get_graphql_abandoned_checkout_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_columns.sql", "original_file_path": "macros/get_abandoned_checkout_columns.sql", "unique_id": "macro.shopify_source.get_graphql_abandoned_checkout_columns", "macro_sql": "{% macro get_graphql_abandoned_checkout_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"abandoned_checkout_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"completed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_discount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_duties_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_duties_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2594295, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_visit_columns": {"name": "get_graphql_customer_visit_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_visit_columns.sql", "original_file_path": "macros/get_customer_visit_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_visit_columns", "macro_sql": "{% macro get_graphql_customer_visit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page_html\", \"datatype\": dbt.type_string()},\n {\"name\": \"occurred_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"referral_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"referral_info_html\", \"datatype\": dbt.type_string()},\n {\"name\": \"referrer_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_campaign\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_content\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_medium\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_term\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2629285, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_tracking_info_columns": {"name": "get_graphql_fulfillment_tracking_info_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_tracking_info_columns.sql", "original_file_path": "macros/get_fulfillment_tracking_info_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_tracking_info_columns", "macro_sql": "{% macro get_graphql_fulfillment_tracking_info_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"number\", \"datatype\": dbt.type_string()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2643921, "supported_languages": null}, "macro.shopify_source.get_collection_product_columns": {"name": "get_collection_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_product_columns.sql", "original_file_path": "macros/get_collection_product_columns.sql", "unique_id": "macro.shopify_source.get_collection_product_columns", "macro_sql": "{% macro get_collection_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.265425, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_product_columns": {"name": "get_graphql_collection_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_product_columns.sql", "original_file_path": "macros/get_collection_product_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_product_columns", "macro_sql": "{% macro get_graphql_collection_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.266216, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_address_columns": {"name": "get_graphql_customer_address_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_address_columns.sql", "original_file_path": "macros/get_customer_address_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_address_columns", "macro_sql": "{% macro get_graphql_customer_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_default\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"validation_result_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"coordinates_validated\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.270375, "supported_languages": null}, "macro.shopify_source.get_order_line_columns": {"name": "get_order_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_columns.sql", "original_file_path": "macros/get_order_line_columns.sql", "unique_id": "macro.shopify_source.get_order_line_columns", "macro_sql": "{% macro get_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillable_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"gift_card\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"grams\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"index\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"pre_tax_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"pre_tax_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"properties\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2760894, "supported_languages": null}, "macro.shopify_source.get_graphql_order_line_columns": {"name": "get_graphql_order_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_columns.sql", "original_file_path": "macros/get_order_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_line_columns", "macro_sql": "{% macro get_graphql_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_gift_card\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"original_total_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_total_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"original_total_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_total_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"unfulfilled_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.280022, "supported_languages": null}, "macro.shopify_source.get_order_line_refund_columns": {"name": "get_order_line_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_refund_columns.sql", "original_file_path": "macros/get_order_line_refund_columns.sql", "unique_id": "macro.shopify_source.get_order_line_refund_columns", "macro_sql": "{% macro get_order_line_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"restock_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_refund_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.282883, "supported_languages": null}, "macro.shopify_source.get_graphql_order_line_refund_columns": {"name": "get_graphql_order_line_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_refund_columns.sql", "original_file_path": "macros/get_order_line_refund_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_line_refund_columns", "macro_sql": "{% macro get_graphql_order_line_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"restock_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_refund_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2855983, "supported_languages": null}, "macro.shopify_source.get_product_variant_columns": {"name": "get_product_variant_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_columns.sql", "original_file_path": "macros/get_product_variant_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_columns", "macro_sql": "{% macro get_product_variant_columns() %}\n\n{# Columns below line 28 to be deprecated. #}\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"position\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"compare_at_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"barcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"old_inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"available_for_sale\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"requires_components\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sellable_online_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"fulfillment_service\", \"datatype\": dbt.type_string()},\n {\"name\": \"grams\", \"datatype\": dbt.type_float()},\n {\"name\": \"inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_3\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_variant_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_boolean", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2918992, "supported_languages": null}, "macro.shopify_source.get_graphql_product_variant_columns": {"name": "get_graphql_product_variant_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_columns.sql", "original_file_path": "macros/get_product_variant_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_variant_columns", "macro_sql": "{% macro get_graphql_product_variant_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_sale\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"barcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"compare_at_price\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"position\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_components\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sellable_online_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_variant_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2956247, "supported_languages": null}, "macro.shopify_source.get_product_tag_columns": {"name": "get_product_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_tag_columns.sql", "original_file_path": "macros/get_product_tag_columns.sql", "unique_id": "macro.shopify_source.get_product_tag_columns", "macro_sql": "{% macro get_product_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.296886, "supported_languages": null}, "macro.shopify_source.get_graphql_product_tag_columns": {"name": "get_graphql_product_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_tag_columns.sql", "original_file_path": "macros/get_product_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_tag_columns", "macro_sql": "{% macro get_graphql_product_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2978969, "supported_languages": null}, "macro.shopify_source.get_media_columns": {"name": "get_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_columns.sql", "original_file_path": "macros/get_media_columns.sql", "unique_id": "macro.shopify_source.get_media_columns", "macro_sql": "{% macro get_media_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}, \n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()}, \n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()} \n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2991726, "supported_languages": null}, "macro.shopify_source.get_graphql_media_columns": {"name": "get_graphql_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_columns.sql", "original_file_path": "macros/get_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_media_columns", "macro_sql": "{% macro get_graphql_media_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3002505, "supported_languages": null}, "macro.shopify_source.get_discount_application_columns": {"name": "get_discount_application_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_application_columns.sql", "original_file_path": "macros/get_discount_application_columns.sql", "unique_id": "macro.shopify_source.get_discount_application_columns", "macro_sql": "{% macro get_discount_application_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocation_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"target_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value\", \"datatype\": dbt.type_float()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3029506, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_application_columns": {"name": "get_graphql_discount_application_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_application_columns.sql", "original_file_path": "macros/get_discount_application_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_application_columns", "macro_sql": "{% macro get_graphql_discount_application_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocation_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"target_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"value_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_percentage\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3048189, "supported_languages": null}, "macro.shopify_source.get_inventory_quantity_columns": {"name": "get_inventory_quantity_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_quantity_columns.sql", "original_file_path": "macros/get_inventory_quantity_columns.sql", "unique_id": "macro.shopify_source.get_inventory_quantity_columns", "macro_sql": "{% macro get_inventory_quantity_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_level_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3066416, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_quantity_columns": {"name": "get_graphql_inventory_quantity_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_quantity_columns.sql", "original_file_path": "macros/get_inventory_quantity_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_quantity_columns", "macro_sql": "{% macro get_graphql_inventory_quantity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_level_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.308027, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_discount_code_columns": {"name": "get_abandoned_checkout_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_discount_code_columns.sql", "original_file_path": "macros/get_abandoned_checkout_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro_sql": "{% macro get_abandoned_checkout_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3100986, "supported_languages": null}, "macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns": {"name": "get_graphql_abandoned_checkout_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_discount_code_columns.sql", "original_file_path": "macros/get_abandoned_checkout_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns", "macro_sql": "{% macro get_graphql_abandoned_checkout_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.311032, "supported_languages": null}, "macro.shopify_source.get_discount_code_bxgy_columns": {"name": "get_discount_code_bxgy_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_bxgy_columns.sql", "original_file_path": "macros/get_discount_code_bxgy_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_bxgy_columns", "macro_sql": "{% macro get_discount_code_bxgy_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.31551, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_bxgy_columns": {"name": "get_graphql_discount_code_bxgy_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_bxgy_columns.sql", "original_file_path": "macros/get_discount_code_bxgy_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_bxgy_columns", "macro_sql": "{% macro get_graphql_discount_code_bxgy_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3186865, "supported_languages": null}, "macro.shopify_source.get_inventory_level_columns": {"name": "get_inventory_level_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_level_columns.sql", "original_file_path": "macros/get_inventory_level_columns.sql", "unique_id": "macro.shopify_source.get_inventory_level_columns", "macro_sql": "{% macro get_inventory_level_columns() %}\n\n{# Columns below line 13 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"can_deactivate\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deactivation_alert\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n ,\n {\"name\": \"available\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3208873, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_level_columns": {"name": "get_graphql_inventory_level_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_level_columns.sql", "original_file_path": "macros/get_inventory_level_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_level_columns", "macro_sql": "{% macro get_graphql_inventory_level_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"can_deactivate\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deactivation_alert\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3224127, "supported_languages": null}, "macro.shopify_source.get_order_note_attribute_columns": {"name": "get_order_note_attribute_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_note_attribute_columns.sql", "original_file_path": "macros/get_order_note_attribute_columns.sql", "unique_id": "macro.shopify_source.get_order_note_attribute_columns", "macro_sql": "{% macro get_order_note_attribute_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3236613, "supported_languages": null}, "macro.shopify_source.get_graphql_order_note_attribute_columns": {"name": "get_graphql_order_note_attribute_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_note_attribute_columns.sql", "original_file_path": "macros/get_order_note_attribute_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_note_attribute_columns", "macro_sql": "{% macro get_graphql_order_note_attribute_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3245788, "supported_languages": null}, "macro.shopify_source.get_metafield_columns": {"name": "get_metafield_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_metafield_columns.sql", "original_file_path": "macros/get_metafield_columns.sql", "unique_id": "macro.shopify_source.get_metafield_columns", "macro_sql": "{% macro get_metafield_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"namespace\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"owner_resource\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.327347, "supported_languages": null}, "macro.shopify_source.get_graphql_metafield_columns": {"name": "get_graphql_metafield_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_metafield_columns.sql", "original_file_path": "macros/get_metafield_columns.sql", "unique_id": "macro.shopify_source.get_graphql_metafield_columns", "macro_sql": "{% macro get_graphql_metafield_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"namespace\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"owner_resource\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3292978, "supported_languages": null}, "macro.shopify_source.fivetran_convert_timezone": {"name": "fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.fivetran_convert_timezone", "macro_sql": "{%- macro fivetran_convert_timezone(column, target_tz=None, source_tz=None) -%}\n{%- set source_tz = \"UTC\" if not source_tz else source_tz -%}\n{%- set target_tz = \"UTC\" if not target_tz else target_tz -%}\n{{ return(adapter.dispatch('fivetran_convert_timezone', 'shopify_source') (column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3305216, "supported_languages": null}, "macro.shopify_source.default__fivetran_convert_timezone": {"name": "default__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.default__fivetran_convert_timezone", "macro_sql": "{% macro default__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ dbt.type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3309183, "supported_languages": null}, "macro.shopify_source.bigquery__fivetran_convert_timezone": {"name": "bigquery__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.bigquery__fivetran_convert_timezone", "macro_sql": "{%- macro bigquery__fivetran_convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3312478, "supported_languages": null}, "macro.shopify_source.postgres__fivetran_convert_timezone": {"name": "postgres__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.postgres__fivetran_convert_timezone", "macro_sql": "{% macro postgres__fivetran_convert_timezone(column, target_tz, source_tz) -%}\ncast(\n cast({{ column }} as {{ dbt.type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt.type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.331701, "supported_languages": null}, "macro.shopify_source.redshift__fivetran_convert_timezone": {"name": "redshift__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.redshift__fivetran_convert_timezone", "macro_sql": "{%- macro redshift__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.default__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3320756, "supported_languages": null}, "macro.shopify_source.duckdb__fivetran_convert_timezone": {"name": "duckdb__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.duckdb__fivetran_convert_timezone", "macro_sql": "{% macro duckdb__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.postgres__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3324544, "supported_languages": null}, "macro.shopify_source.spark__fivetran_convert_timezone": {"name": "spark__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.spark__fivetran_convert_timezone", "macro_sql": "{%- macro spark__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nfrom_utc_timestamp(\n to_utc_timestamp({{ column }}, '{{ source_tz }}'),\n '{{ target_tz }}'\n )\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3327749, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.shopify_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_synced", "block_contents": "The time when a record was last updated by Fivetran."}, "doc.shopify_source._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_deleted", "block_contents": "Boolean representing whether the record was soft-deleted in Shopify."}, "doc.shopify_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source.source_relation", "block_contents": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {"test.shopify_integration_tests.consistency_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_discounts.sql", "original_file_path": "tests/consistency/consistency_discounts.sql", "unique_id": "test.shopify_integration_tests.consistency_discounts", "fqn": ["shopify_integration_tests", "consistency", "consistency_discounts"], "alias": "consistency_discounts", "checksum": {"name": "sha256", "checksum": "c4c0089722a912fc6859d3f23b928425253c88ad16955dc1ec30dd47328d24b8"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.292209, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__discounts\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__discounts\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_transactions": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_transactions", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_transactions.sql", "original_file_path": "tests/consistency/consistency_transactions.sql", "unique_id": "test.shopify_integration_tests.consistency_transactions", "fqn": ["shopify_integration_tests", "consistency", "consistency_transactions"], "alias": "consistency_transactions", "checksum": {"name": "sha256", "checksum": "4a35a742a91f9610e5f2f43d798aa32b4a7a03316db67fa95804ae894a6bddbd"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3243384, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__transactions\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__transactions\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced_count": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced_count", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced_count.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced_count.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced_count", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced_count"], "alias": "consistency_line_item_enhanced_count", "checksum": {"name": "sha256", "checksum": "5966fa4f5d6392d55c6776983375aba21f63ec6d2bce09807769e2f807973074"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3300045, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure the rows counts are the same between versions\nwith prod as (\n select count(*) as prod_rows\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select count(*) as dev_rows\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n)\n\n-- test will return values and fail if the row counts don't match\nselect *\nfrom prod\njoin dev\n on prod.prod_rows != dev.dev_rows", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced"], "alias": "consistency_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "bafda328d8951e5c1315715ae2af2b6db591c008cfb2e3e87102e102a927127d"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3367386, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_email_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_email_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_email_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_email_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_email_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_email_cohorts"], "alias": "consistency_customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "9c68a37c8316395c4e9454f955bf9a88a8ec0f0a1b8e8b92f0324c30118b0a38"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3426375, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_email_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_email_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_emails": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_emails", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_emails.sql", "original_file_path": "tests/consistency/consistency_customer_emails.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_emails", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_emails"], "alias": "consistency_customer_emails", "checksum": {"name": "sha256", "checksum": "f65921899974fb386942217898b874b933b185b03ba96b7b4393a21c57749faf"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.348172, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customer_emails\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customer_emails\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_inventory_levels": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_inventory_levels", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_inventory_levels.sql", "original_file_path": "tests/consistency/consistency_inventory_levels.sql", "unique_id": "test.shopify_integration_tests.consistency_inventory_levels", "fqn": ["shopify_integration_tests", "consistency", "consistency_inventory_levels"], "alias": "consistency_inventory_levels", "checksum": {"name": "sha256", "checksum": "5c4bf90e9896cd512f8251e7b55deaf76564f860f24c9332b2379854562145fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3537698, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__inventory_levels\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_order_lines": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_order_lines", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_order_lines.sql", "original_file_path": "tests/consistency/consistency_order_lines.sql", "unique_id": "test.shopify_integration_tests.consistency_order_lines", "fqn": ["shopify_integration_tests", "consistency", "consistency_order_lines"], "alias": "consistency_order_lines", "checksum": {"name": "sha256", "checksum": "0a6491b31602ef2fecc145804b8b8f386801aba35815ea3dc70e4bc0aaf5c3d9"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3593588, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__order_lines\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__order_lines\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customers.sql", "original_file_path": "tests/consistency/consistency_customers.sql", "unique_id": "test.shopify_integration_tests.consistency_customers", "fqn": ["shopify_integration_tests", "consistency", "consistency_customers"], "alias": "consistency_customers", "checksum": {"name": "sha256", "checksum": "b585f5c5f4001fd7febda99275ce6e83ccc77d28d5113615025a883a10b3fe75"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.365875, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customers\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customers\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_daily_shop": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_daily_shop", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_daily_shop.sql", "original_file_path": "tests/consistency/consistency_daily_shop.sql", "unique_id": "test.shopify_integration_tests.consistency_daily_shop", "fqn": ["shopify_integration_tests", "consistency", "consistency_daily_shop"], "alias": "consistency_daily_shop", "checksum": {"name": "sha256", "checksum": "c6b82febd4b38d78edcc9e3b3f8dba293d1754d7223d5c16828b5f48f01742f5"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3713417, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_prod.shopify__daily_shop\n group by 1,2,3\n),\n\ndev as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_dev.shopify__daily_shop\n group by 1,2,3\n),\n\nfinal as (\n select \n prod.date_day as prod_date_day,\n dev.date_day as dev_date_day,\n prod.shop_id as prod_shop_id,\n dev.shop_id as dev_shop_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.count_orders as prod_count_orders,\n dev.count_orders as dev_count_orders,\n prod.count_customers as prod_count_customers,\n dev.count_customers as dev_count_customers,\n prod.order_adjusted_total as prod_order_adjusted_total,\n dev.order_adjusted_total as dev_order_adjusted_total,\n prod.count_abandoned_checkouts as prod_count_abandoned_checkouts,\n dev.count_abandoned_checkouts as dev_count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , prod.count_fulfillment_attempted_delivery as prod_count_fulfillment_attempted_delivery\n , dev.count_fulfillment_attempted_delivery as dev_count_fulfillment_attempted_delivery\n , prod.count_fulfillment_confirmed as prod_count_fulfillment_confirmed\n , dev.count_fulfillment_confirmed as dev_count_fulfillment_confirmed\n {% endif %}\n\n from prod\n full outer join dev \n on dev.date_day = prod.date_day\n and dev.shop_id = prod.shop_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_date_day != dev_date_day or\n prod_shop_id != dev_shop_id or\n prod_source_relation != dev_source_relation or\n abs(prod_count_orders - dev_count_orders) > .001 or\n abs(prod_count_customers - dev_count_customers) > .001 or\n abs(prod_order_adjusted_total - dev_order_adjusted_total) > .001 or\n abs(prod_count_abandoned_checkouts - dev_count_abandoned_checkouts) > .001\n \n {% if var('shopify_using_fulfillment_event', false) %}\n or abs(prod_count_fulfillment_attempted_delivery - dev_count_fulfillment_attempted_delivery) > .001\n or abs(prod_count_fulfillment_confirmed - dev_count_fulfillment_confirmed) > .001\n {% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_cohorts"], "alias": "consistency_customer_cohorts", "checksum": {"name": "sha256", "checksum": "389c12079464cf20fe1f6888a7e40c8bb469148349a20931a8ba997e2f0023fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3785403, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_orders.sql", "original_file_path": "tests/consistency/consistency_orders.sql", "unique_id": "test.shopify_integration_tests.consistency_orders", "fqn": ["shopify_integration_tests", "consistency", "consistency_orders"], "alias": "consistency_orders", "checksum": {"name": "sha256", "checksum": "0ab8c3335aa456106375ec248d3f309d35588f35d3654b13270a44eadb27faf6"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3842263, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__orders\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__orders\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_line_item_enhanced.sql", "original_file_path": "tests/integrity/vertical_integrity_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_line_item_enhanced", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_line_item_enhanced"], "alias": "vertical_integrity_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "efc2b1e0ac6bc26d2581903d83d1d56be172c14cfff1d8d6d7fa6b6eb160c7f7"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3905194, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure there is no fanout between the staging order_line_table and the line_item_enhanced model.\nwith stg_order_line as (\n select\n 1 as join_key,\n count(*) as order_line_count,\n count(distinct order_id) as order_count\n from {{ ref('stg_shopify__order_line') }}\n),\n\nline_item_enhanced as (\n select\n 1 as join_key,\n count(*) as line_item_enhanced_count\n from {{ ref('shopify__line_item_enhanced') }}\n),\n\n-- test will return values and fail if the row counts don't match\n\nfinal as (\n select \n stg_order_line.join_key,\n stg_order_line.order_line_count + stg_order_line.order_count as total_line_and_order_count,\n line_item_enhanced.line_item_enhanced_count\n from stg_order_line\n join line_item_enhanced\n on stg_order_line.join_key = line_item_enhanced.join_key\n) \n\nselect *\nfrom final\nwhere total_line_and_order_count != line_item_enhanced_count", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "shopify__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_daily_shop_fulfillment", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_daily_shop_fulfillment.sql", "original_file_path": "tests/integrity/vertical_integrity_daily_shop_fulfillment.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_daily_shop_fulfillment"], "alias": "vertical_integrity_daily_shop_fulfillment", "checksum": {"name": "sha256", "checksum": "ba5dfc5af503b2012b977cd000daf131bf61c08241aad583df03926212225016"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3966827, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n-- test will only run if shopify_using_fulfillment_event is set to True\n\nwith source as (\n\n select *\n from {{ ref('stg_shopify__fulfillment_event') }}\n),\n\nsource_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day,\n shop_id,\n count(distinct case when status = 'delayed' then fulfillment_id end) as count_fulfillment_delayed,\n count(distinct case when status = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit,\n count(distinct case when status = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed,\n count(distinct case when status = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n\n from source\n where happened_at > '2020-01-01' and happened_at < '2024-06-10'\n group by 1,2,3\n),\n\nmodel as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\nmodel_metrics as (\n\n select \n source_relation,\n date_day,\n shop_id,\n sum(count_fulfillment_delayed) as count_fulfillment_delayed,\n sum(count_fulfillment_in_transit) as count_fulfillment_in_transit,\n sum(count_fulfillment_confirmed) as count_fulfillment_confirmed,\n sum(count_fulfillment_delivered) as count_fulfillment_delivered\n\n from model\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2,3\n),\n\nfinal as (\n\n select\n model_metrics.source_relation,\n model_metrics.shop_id as model_shop_id,\n source_metrics.shop_id as source_shop_id,\n model_metrics.date_day as model_date_day,\n source_metrics.date_day as source_date_day,\n coalesce(model_metrics.count_fulfillment_delayed, 0) as model_count_fulfillment_delayed,\n coalesce(source_metrics.count_fulfillment_delayed, 0) as source_count_fulfillment_delayed,\n coalesce(model_metrics.count_fulfillment_in_transit, 0) as model_count_fulfillment_in_transit,\n coalesce(source_metrics.count_fulfillment_in_transit, 0) as source_count_fulfillment_in_transit,\n coalesce(model_metrics.count_fulfillment_confirmed, 0) as model_count_fulfillment_confirmed,\n coalesce(source_metrics.count_fulfillment_confirmed, 0) as source_count_fulfillment_confirmed,\n coalesce(model_metrics.count_fulfillment_delivered, 0) as model_count_fulfillment_delivered,\n coalesce(source_metrics.count_fulfillment_delivered, 0) as source_count_fulfillment_delivered\n\n from model_metrics\n full outer join source_metrics\n on model_metrics.source_relation = source_metrics.source_relation\n and model_metrics.shop_id = source_metrics.shop_id\n and model_metrics.date_day = source_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \nmodel_count_fulfillment_delayed != source_count_fulfillment_delayed or\nmodel_count_fulfillment_in_transit != source_count_fulfillment_in_transit or\nmodel_count_fulfillment_confirmed != source_count_fulfillment_confirmed or\nmodel_count_fulfillment_delivered != source_count_fulfillment_delivered", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.integrity_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_customers.sql", "original_file_path": "tests/integrity/integrity_customers.sql", "unique_id": "test.shopify_integration_tests.integrity_customers", "fqn": ["shopify_integration_tests", "integrity", "integrity_customers"], "alias": "integrity_customers", "checksum": {"name": "sha256", "checksum": "690ac16cf903e5fd89a08680246fd495bf3fbdc94a622f0b9b1ce6f6988d8a74"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.405501, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n customer_id,\n count(*) as source_customer_tag_count\n from {{ target.schema }}_shopify_dev.stg_shopify__customer_tag\n group by 1\n),\n\ntransform as (\n select\n customer_id,\n array_length(split(customer_tags, ',')) as transform_customer_tag_count -- Only BigQuery compatible for the time being\n from {{ target.schema }}_shopify_dev.shopify__customers\n where customer_tags is not null\n group by customer_id, customer_tags\n), \n\ncompare as (\n select\n source.customer_id,\n source.source_customer_tag_count,\n transform.transform_customer_tag_count\n from source\n full outer join transform\n on source.customer_id = transform.customer_id\n where source.source_customer_tag_count != transform.transform_customer_tag_count\n )\n\nselect *\nfrom compare", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.integrity_inventory_level": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_inventory_level", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_inventory_level.sql", "original_file_path": "tests/integrity/integrity_inventory_level.sql", "unique_id": "test.shopify_integration_tests.integrity_inventory_level", "fqn": ["shopify_integration_tests", "integrity", "integrity_inventory_level"], "alias": "integrity_inventory_level", "checksum": {"name": "sha256", "checksum": "2f633fb0d91b0bebe0152b97a141df7481c08e0df5557ee4962f8d0ebe7bd7ee"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.411027, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n count(*) as source_count\n from {{ target.schema }}_shopify_dev.stg_shopify__inventory_level as il\n join {{ target.schema }}_shopify_dev.stg_shopify__inventory_item as ii\n on il.inventory_item_id = ii.inventory_item_id \n and il.source_relation = ii.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__location as lo\n on il.location_id = lo.location_id \n and il.source_relation = lo.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__product_variant as pv\n on il.inventory_item_id = pv.inventory_item_id\n and il.source_relation = pv.source_relation\n),\n\ntransform as (\n select\n count(*) as transform_count\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\ncompare as (\n select *\n from source\n cross join transform\n)\n\nselect *\nfrom compare\nwhere source_count != transform_count", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_discounts.sql", "original_file_path": "tests/integrity/vertical_integrity_discounts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_discounts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_discounts"], "alias": "vertical_integrity_discounts", "checksum": {"name": "sha256", "checksum": "591dfe08097b58fd9433339a17d0388c891a6d3eef65c042f13c227737e9ff65"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.4178746, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith discount_redeem_code as (\n\n select \n code,\n discount_code_id,\n source_relation\n from {{ ref('stg_shopify__discount_redeem_code') }} \n group by 1, 2, 3\n),\n\ndiscount_codes_unioned as (\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_basic') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_bxgy') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_free_shipping') }} \n group by 1, 2\n\n {% if var('shopify_using_discount_code_app', False) %}\n\n union all\n \n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_app') }} \n group by 1, 2\n {% endif %}\n),\n\ndiscount_codes_source as (\n \n select \n discount_redeem_code.code, \n discount_redeem_code.source_relation,\n count(*) as code_count_source\n from discount_redeem_code\n left join discount_codes_unioned\n on discount_redeem_code.discount_code_id = discount_codes_unioned.discount_code_id\n and discount_redeem_code.source_relation = discount_codes_unioned.source_relation\n group by 1, 2\n),\n\n\ndiscount_codes_end as (\n\n select \n code, \n source_relation,\n count(*) as code_count_end\n from {{ ref('shopify__discounts') }}\n group by 1, 2\n),\n\n\nfinal as (\n\n select \n discount_codes_source.code,\n discount_codes_source.source_relation,\n coalesce(discount_codes_source.code_count_source, 0) as code_count_source,\n coalesce(discount_codes_end.code_count_end, 0) as code_count_end\n from discount_codes_source\n full outer join discount_codes_end\n on discount_codes_source.code = discount_codes_end.code\n and discount_codes_source.source_relation = discount_codes_end.source_relation\n)\n\nselect *\nfrom final\nwhere code_count_source != code_count_end", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}, {"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "horizontal_integrity_daily_shop_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/horizontal_integrity_daily_shop_orders.sql", "original_file_path": "tests/integrity/horizontal_integrity_daily_shop_orders.sql", "unique_id": "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders", "fqn": ["shopify_integration_tests", "integrity", "horizontal_integrity_daily_shop_orders"], "alias": "horizontal_integrity_daily_shop_orders", "checksum": {"name": "sha256", "checksum": "addd76b5760975069f87aac715bd3ade9a52af4049104f635902fd87b8b41b1a"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.4250348, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norder_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from orders\n where created_timestamp > '2020-01-01' and created_timestamp < '2024-06-10'\n group by 1,2\n),\n\ndaily_shop as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\ndaily_shop_metrics as (\n\n select \n source_relation,\n date_day,\n sum(count_orders) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from daily_shop\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2\n),\n\nfinal as (\n\n select\n daily_shop_metrics.source_relation,\n coalesce(daily_shop_metrics.count_orders, 0) as daily_shop_count_orders,\n coalesce(order_metrics.count_orders, 0) as order_count_orders,\n coalesce(daily_shop_metrics.order_adjusted_total, 0) as daily_shop_order_adjusted_total,\n coalesce(order_metrics.order_adjusted_total, 0) as order_order_adjusted_total\n\n from daily_shop_metrics\n full outer join order_metrics\n on daily_shop_metrics.source_relation = order_metrics.source_relation\n and daily_shop_metrics.date_day = order_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \n abs(daily_shop_count_orders - order_count_orders) > 0 or\n abs(daily_shop_order_adjusted_total - order_order_adjusted_total) > .1", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_customer_cohorts.sql", "original_file_path": "tests/integrity/vertical_integrity_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_customer_cohorts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_customer_cohorts"], "alias": "vertical_integrity_customer_cohorts", "checksum": {"name": "sha256", "checksum": "19553b1bce28d0577a330dc5544f21b9326b91d673b50fdfdc0ca5980b17f7ff"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.431521, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n), \n\ncustomers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), \n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), \n\ncustomer_cohort_source as (\n\n select \n customers.source_relation,\n count(*) as source_rows \n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n group by 1\n),\n\ncustomer_cohort_end as (\n\n select \n source_relation,\n count(*) as end_rows\n from {{ ref('shopify__customer_cohorts') }}\n group by 1\n),\n\nfinal as (\n select\n customer_cohort_source.source_relation,\n source_rows,\n end_rows\n from customer_cohort_source\n join customer_cohort_end\n on customer_cohort_source.source_relation = customer_cohort_end.source_relation\n where customer_cohort_source.source_rows != customer_cohort_end.end_rows\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "model.shopify_source.stg_shopify_gql__collection_rule": [{"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_rule", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection_rule.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection_rule.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_rule", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection_rule"], "alias": "stg_shopify_gql__collection_rule", "checksum": {"name": "sha256", "checksum": "01b76dc43dec6771d2c2ec7d82f1b18c80fa72974103274014b2147c07abaf8f"}, "config": {"enabled": false, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Defines the rules used to automatically include products in a smart collection. Each rule specifies a product attribute, a comparison relation, and a condition value to match against. These rules are evaluated dynamically to determine collection membership without manual curation.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "{{ doc('_fivetran_synced') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID of the smart collection to which this rule applies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of the rule within the collection's rule set. Rules are evaluated in order and may be grouped depending on collection logic.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "condition": {"name": "condition", "description": "The value to compare against the attribute. For example, \u201cHats\u201d if the rule is targeting products with a title containing \u201cHats\u201d. The interpretation depends on the associated `relation` and `columns` values.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "relation": {"name": "relation", "description": "The operator used to evaluate the rule. Common values include: - `equals` - `contains` - `not_equals` - `starts_with` - `ends_with` - `is_set` - `is_not_set` - `greater_than` - `less_than` - `not_contains`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "columns": {"name": "columns", "description": "The attribute being evaluated by the rule. Example values include: - `title` - `vendor` - `tag` - `variant_price` - `product_category_id` - `variant_compare_at_price` - `variant_metafield_definition` - `product_metafield_definition` - `variant_weight` - `type` - `is_price_reduced`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "{{ doc('source_relation') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": false}, "created_at": 1754507520.4038215, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_rule\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_collection_rule', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_rule_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_shopify_gql__collection_rule_tmp')),\n staging_columns=get_graphql_collection_rule_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n index,\n columns,\n condition,\n relation,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['collection_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_rule_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_rule_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}], "model.shopify_source.stg_shopify_gql__collection_rule_tmp": [{"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_rule_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_rule_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_rule_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_rule_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_rule_tmp"], "alias": "stg_shopify_gql__collection_rule_tmp", "checksum": {"name": "sha256", "checksum": "aea52cb2c08d241449697e4e67354b058c5b993645b80afe28dff54b1189108d"}, "config": {"enabled": false, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": false}, "created_at": 1754507518.6836185, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_rule_tmp\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_collection_rule', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_rule', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_rule_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection_rule"], ["shopify_graphql", "collection_rule"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}], "source.shopify_source.shopify_graphql.collection_rule": [{"database": "postgres", "schema": "public", "name": "collection_rule", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection_rule", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection_rule"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_rule_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Defines the rules used to automatically include products in a smart collection. Each rule specifies a product attribute, a comparison relation, and a condition value to match against. These rules are evaluated dynamically to determine collection membership without manual curation.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "{{ doc('_fivetran_synced') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID of the smart collection to which this rule applies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of the rule within the collection's rule set. Rules are evaluated in order and may be grouped depending on collection logic.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "condition": {"name": "condition", "description": "The value to compare against the attribute. For example, \u201cHats\u201d if the rule is targeting products with a title containing \u201cHats\u201d. The interpretation depends on the associated `relation` and `columns` values.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "relation": {"name": "relation", "description": "The operator used to evaluate the rule. Common values include: - `equals` - `contains` - `not_equals` - `starts_with` - `ends_with` - `is_set` - `is_not_set` - `greater_than` - `less_than` - `not_contains`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "columns": {"name": "columns", "description": "The attribute being evaluated by the rule. Example values include: - `title` - `vendor` - `tag` - `variant_price` - `product_category_id` - `variant_compare_at_price` - `variant_metafield_definition` - `product_metafield_definition` - `variant_weight` - `type` - `is_price_reduced`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": false, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": false, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_rule_data\"", "created_at": 1754507520.8283174, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}]}, "parent_map": {"seed.shopify_integration_tests.shopify_gql_product_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_metafield_data": [], "seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_product_data": [], "seed.shopify_integration_tests.shopify_gql_customer_address_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_customer_data": [], "seed.shopify_integration_tests.shopify_gql_customer_visit_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_media_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_gql_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_data": [], "seed.shopify_integration_tests.shopify_gql_order_data": [], "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_refund_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_gql_collection_rule_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_item_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_gql_location_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_gql_shop_data": [], "seed.shopify_integration_tests.shopify_gql_customer_tag_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_collection_data": [], "seed.shopify_integration_tests.shopify_gql_discount_application_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_level_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_media_image_data": [], "model.shopify.shopify__calendar": [], "model.shopify.shopify__customer_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"], "model.shopify.shopify__customer_email_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"], "model.shopify.shopify__inventory_levels": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media"], "model.shopify.shopify__discounts": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.int_shopify__discounts__order_aggregates"], "model.shopify.shopify__customers": ["model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.shopify__orders": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag"], "model.shopify.shopify__transactions": ["model.shopify_source.stg_shopify__tender_transaction", "model.shopify_source.stg_shopify__transaction"], "model.shopify.shopify__order_lines": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.shopify__products": ["model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.int_shopify__products_with_aggregates"], "model.shopify.shopify__daily_shop": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment", "model.shopify.int_shopify__daily_orders", "model.shopify.shopify__calendar", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__customer_emails": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_media", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_app", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.shopify__orders__order_refunds": ["model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__refund"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order"], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__orders", "model.shopify_source.stg_shopify__order_discount_code"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__order"], "model.shopify.shopify__product_variant_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.shopify__order_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"], "model.shopify.shopify__product_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"], "model.shopify.shopify__customer_metafields": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__metafield"], "model.shopify.shopify__shop_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__collection_metafields": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__metafield"], "model.shopify.shopify__line_item_enhanced": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction"], "model.shopify.shopify_gql__customer_email_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customer_emails", "model.shopify.shopify_gql__orders"], "model.shopify.shopify_gql__customers": ["model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify.shopify_gql__order_lines": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.int_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify.shopify_gql__transactions": ["model.shopify.int_shopify_gql__order", "model.shopify_source.stg_shopify_gql__tender_transaction", "model.shopify_source.stg_shopify_gql__transaction"], "model.shopify.shopify_gql__customer_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customers", "model.shopify.shopify_gql__orders"], "model.shopify.shopify_gql__discounts": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.int_shopify_gql__discounts_order_aggregates"], "model.shopify.shopify_gql__inventory_levels": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__inventory_level", "model.shopify_source.stg_shopify_gql__inventory_quantity", "model.shopify_source.stg_shopify_gql__location", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify.shopify_gql__customer_emails": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.int_shopify_gql__emails_order_aggregates"], "model.shopify.shopify_gql__daily_shop": ["model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__daily_fulfillment", "model.shopify.int_shopify_gql__daily_orders", "model.shopify.shopify__calendar", "model.shopify_source.stg_shopify_gql__shop"], "model.shopify.shopify_gql__products": ["model.shopify.int_shopify_gql__product_order_line_aggregates", "model.shopify.int_shopify_gql__products_with_aggregates"], "model.shopify.shopify_gql__orders": ["model.shopify.int_shopify_gql__order", "model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__order_discount_code", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__order_tag"], "model.shopify.int_shopify_gql__discount_code_enriched": ["model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__discount_code_app", "model.shopify_source.stg_shopify_gql__discount_code_basic", "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "model.shopify_source.stg_shopify_gql__discount_redeem_code"], "model.shopify.int_shopify_gql__products_with_aggregates": ["model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__collection_product", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__product_media", "model.shopify_source.stg_shopify_gql__product_tag", "model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify.int_shopify_gql__customers_order_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__daily_orders": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__emails_order_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__order_shipping_aggregates": ["model.shopify_source.stg_shopify_gql__order_shipping_line", "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "model.shopify.int_shopify_gql__order_fulfillment_aggregates": ["model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "model.shopify.int_shopify_gql__product_order_line_aggregates": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__orders_order_line_aggregates": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify.int_shopify_gql__discounts_order_aggregates": ["model.shopify.int_shopify_gql__order_discount_code", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__daily_fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "model.shopify.int_shopify_gql__customer_email_rollup": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify.int_shopify_gql__orders_order_refunds": ["model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__refund"], "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify_gql__discount_application"], "model.shopify.int_shopify_gql__daily_abandoned_checkouts": ["model.shopify.int_shopify_gql__abandoned_checkout"], "model.shopify.int_shopify_gql__inventory_level_aggregates": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment", "model.shopify_source.stg_shopify_gql__refund"], "model.shopify.int_shopify_gql__order_discount_code": ["model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__order_discount_code"], "model.shopify.int_shopify_gql__order": ["model.shopify_source.stg_shopify_gql__customer_visit", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__product_variant": ["model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify.int_shopify_gql__collection": ["model.shopify_source.stg_shopify_gql__collection"], "model.shopify.int_shopify_gql__abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer"], "model.shopify.int_shopify_gql__customer": ["model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_address"], "model.shopify.int_shopify_gql__order_line": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify.shopify_gql__product_metafields": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__product"], "model.shopify.shopify_gql__collection_metafields": ["model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__customer_metafields": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__shop_metafields": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__shop"], "model.shopify.shopify_gql__order_metafields": ["model.shopify.int_shopify_gql__order", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__product_variant_metafields": ["model.shopify.int_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__line_item_enhanced": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__transaction"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "model.shopify_source.stg_shopify__discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "model.shopify_source.stg_shopify__order": ["model.shopify_source.stg_shopify__order_tmp"], "model.shopify_source.stg_shopify__transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "model.shopify_source.stg_shopify__metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "model.shopify_source.stg_shopify__shop": ["model.shopify_source.stg_shopify__shop_tmp"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"], "model.shopify_source.stg_shopify__customer": ["model.shopify_source.stg_shopify__customer_tmp"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "model.shopify_source.stg_shopify__collection": ["model.shopify_source.stg_shopify__collection_tmp"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "model.shopify_source.stg_shopify__media": ["model.shopify_source.stg_shopify__media_tmp"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "model.shopify_source.stg_shopify__media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "model.shopify_source.stg_shopify__order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "model.shopify_source.stg_shopify__order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "model.shopify_source.stg_shopify__refund": ["model.shopify_source.stg_shopify__refund_tmp"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "model.shopify_source.stg_shopify__product": ["model.shopify_source.stg_shopify__product_tmp"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "model.shopify_source.stg_shopify__location": ["model.shopify_source.stg_shopify__location_tmp"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "model.shopify_source.stg_shopify__product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "model.shopify_source.stg_shopify__metafield_tmp": ["source.shopify_source.shopify.metafield"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["source.shopify_source.shopify.discount_code_bxgy"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["source.shopify_source.shopify.fulfillment"], "model.shopify_source.stg_shopify__product_variant_tmp": ["source.shopify_source.shopify.product_variant"], "model.shopify_source.stg_shopify__collection_tmp": ["source.shopify_source.shopify.collection"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["source.shopify_source.shopify.order_discount_code"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["source.shopify_source.shopify.order_url_tag"], "model.shopify_source.stg_shopify__product_tmp": ["source.shopify_source.shopify.product"], "model.shopify_source.stg_shopify__order_tag_tmp": ["source.shopify_source.shopify.order_tag"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["source.shopify_source.shopify.inventory_quantity"], "model.shopify_source.stg_shopify__tax_line_tmp": ["source.shopify_source.shopify.tax_line"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["source.shopify_source.shopify.customer_tag"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["source.shopify_source.shopify.discount_allocation"], "model.shopify_source.stg_shopify__media_image_tmp": ["source.shopify_source.shopify.media_image"], "model.shopify_source.stg_shopify__media_tmp": ["source.shopify_source.shopify.media"], "model.shopify_source.stg_shopify__refund_tmp": ["source.shopify_source.shopify.refund"], "model.shopify_source.stg_shopify__location_tmp": ["source.shopify_source.shopify.location"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["source.shopify_source.shopify.inventory_level"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["source.shopify_source.shopify.order_shipping_line"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["source.shopify_source.shopify.abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["source.shopify_source.shopify.fulfillment_event"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["source.shopify_source.shopify.order_line_refund"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["source.shopify_source.shopify.discount_code_app"], "model.shopify_source.stg_shopify__shop_tmp": ["source.shopify_source.shopify.shop"], "model.shopify_source.stg_shopify__transaction_tmp": ["source.shopify_source.shopify.transaction"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["source.shopify_source.shopify.product_variant_media"], "model.shopify_source.stg_shopify__order_line_tmp": ["source.shopify_source.shopify.order_line"], "model.shopify_source.stg_shopify__product_media_tmp": ["source.shopify_source.shopify.product_media"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["source.shopify_source.shopify.discount_code_basic"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["source.shopify_source.shopify.order_shipping_tax_line"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["source.shopify_source.shopify.order_note_attribute"], "model.shopify_source.stg_shopify__discount_application_tmp": ["source.shopify_source.shopify.discount_application"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["source.shopify_source.shopify.tender_transaction"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["source.shopify_source.shopify.discount_code_free_shipping"], "model.shopify_source.stg_shopify__product_tag_tmp": ["source.shopify_source.shopify.product_tag"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["source.shopify_source.shopify.inventory_item"], "model.shopify_source.stg_shopify__order_tmp": ["source.shopify_source.shopify.order"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["source.shopify_source.shopify.discount_redeem_code"], "model.shopify_source.stg_shopify__customer_tmp": ["source.shopify_source.shopify.customer"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["source.shopify_source.shopify.order_adjustment"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__collection_product_tmp": ["source.shopify_source.shopify.collection_product"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["source.shopify_source.shopify.abandoned_checkout"], "model.shopify_source.stg_shopify_gql__media": ["model.shopify_source.stg_shopify_gql__media_tmp"], "model.shopify_source.stg_shopify_gql__customer_visit": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_app": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"], "model.shopify_source.stg_shopify_gql__customer_tag": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"], "model.shopify_source.stg_shopify_gql__order": ["model.shopify_source.stg_shopify_gql__order_tmp"], "model.shopify_source.stg_shopify_gql__order_line": ["model.shopify_source.stg_shopify_gql__order_line_tmp"], "model.shopify_source.stg_shopify_gql__inventory_item": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"], "model.shopify_source.stg_shopify_gql__order_shipping_line": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"], "model.shopify_source.stg_shopify_gql__product": ["model.shopify_source.stg_shopify_gql__product_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"], "model.shopify_source.stg_shopify_gql__discount_allocation": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"], "model.shopify_source.stg_shopify_gql__tax_line": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"], "model.shopify_source.stg_shopify_gql__order_line_refund": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"], "model.shopify_source.stg_shopify_gql__inventory_level": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"], "model.shopify_source.stg_shopify_gql__shop": ["model.shopify_source.stg_shopify_gql__shop_tmp"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "model.shopify_source.stg_shopify_gql__location": ["model.shopify_source.stg_shopify_gql__location_tmp"], "model.shopify_source.stg_shopify_gql__transaction": ["model.shopify_source.stg_shopify_gql__transaction_tmp"], "model.shopify_source.stg_shopify_gql__product_media": ["model.shopify_source.stg_shopify_gql__product_media_tmp"], "model.shopify_source.stg_shopify_gql__product_variant": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"], "model.shopify_source.stg_shopify_gql__media_image": ["model.shopify_source.stg_shopify_gql__media_image_tmp"], "model.shopify_source.stg_shopify_gql__abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"], "model.shopify_source.stg_shopify_gql__collection": ["model.shopify_source.stg_shopify_gql__collection_tmp"], "model.shopify_source.stg_shopify_gql__refund": ["model.shopify_source.stg_shopify_gql__refund_tmp"], "model.shopify_source.stg_shopify_gql__discount_application": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"], "model.shopify_source.stg_shopify_gql__order_discount_code": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_basic": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"], "model.shopify_source.stg_shopify_gql__order_note_attribute": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"], "model.shopify_source.stg_shopify_gql__tender_transaction": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"], "model.shopify_source.stg_shopify_gql__customer": ["model.shopify_source.stg_shopify_gql__customer_tmp"], "model.shopify_source.stg_shopify_gql__product_tag": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"], "model.shopify_source.stg_shopify_gql__order_tag": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"], "model.shopify_source.stg_shopify_gql__metafield": ["model.shopify_source.stg_shopify_gql__metafield_tmp"], "model.shopify_source.stg_shopify_gql__product_variant_media": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"], "model.shopify_source.stg_shopify_gql__collection_product": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"], "model.shopify_source.stg_shopify_gql__inventory_quantity": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_event": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"], "model.shopify_source.stg_shopify_gql__customer_address": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"], "model.shopify_source.stg_shopify_gql__order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"], "model.shopify_source.stg_shopify_gql__discount_redeem_code": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"], "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": ["source.shopify_source.shopify_graphql.discount_redeem_code"], "model.shopify_source.stg_shopify_gql__refund_tmp": ["source.shopify_source.shopify_graphql.refund"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": ["source.shopify_source.shopify_graphql.discount_code_bxgy"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": ["source.shopify_source.shopify_graphql.fulfillment_tracking_info"], "model.shopify_source.stg_shopify_gql__customer_tmp": ["source.shopify_source.shopify_graphql.customer"], "model.shopify_source.stg_shopify_gql__product_tmp": ["source.shopify_source.shopify_graphql.product"], "model.shopify_source.stg_shopify_gql__customer_visit_tmp": ["source.shopify_source.shopify_graphql.customer_visit"], "model.shopify_source.stg_shopify_gql__shop_tmp": ["source.shopify_source.shopify_graphql.shop"], "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": ["source.shopify_source.shopify_graphql.inventory_quantity"], "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": ["source.shopify_source.shopify_graphql.order_shipping_line"], "model.shopify_source.stg_shopify_gql__collection_tmp": ["source.shopify_source.shopify_graphql.collection"], "model.shopify_source.stg_shopify_gql__inventory_item_tmp": ["source.shopify_source.shopify_graphql.inventory_item"], "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": ["source.shopify_source.shopify_graphql.discount_code_basic"], "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": ["source.shopify_source.shopify_graphql.order_adjustment"], "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": ["source.shopify_source.shopify_graphql.order_note_attribute"], "model.shopify_source.stg_shopify_gql__discount_application_tmp": ["source.shopify_source.shopify_graphql.discount_application"], "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": ["source.shopify_source.shopify_graphql.discount_code_app"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": ["source.shopify_source.shopify_graphql.order_shipping_tax_line"], "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": ["source.shopify_source.shopify_graphql.order_line_refund"], "model.shopify_source.stg_shopify_gql__metafield_tmp": ["source.shopify_source.shopify_graphql.metafield"], "model.shopify_source.stg_shopify_gql__order_line_tmp": ["source.shopify_source.shopify_graphql.order_line"], "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": ["source.shopify_source.shopify_graphql.product_variant_media"], "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": ["source.shopify_source.shopify_graphql.order_discount_code"], "model.shopify_source.stg_shopify_gql__product_variant_tmp": ["source.shopify_source.shopify_graphql.product_variant"], "model.shopify_source.stg_shopify_gql__order_tmp": ["source.shopify_source.shopify_graphql.order"], "model.shopify_source.stg_shopify_gql__location_tmp": ["source.shopify_source.shopify_graphql.location"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": ["source.shopify_source.shopify_graphql.discount_code_free_shipping"], "model.shopify_source.stg_shopify_gql__tax_line_tmp": ["source.shopify_source.shopify_graphql.tax_line"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": ["source.shopify_source.shopify_graphql.fulfillment_order_line_item"], "model.shopify_source.stg_shopify_gql__collection_product_tmp": ["source.shopify_source.shopify_graphql.collection_product"], "model.shopify_source.stg_shopify_gql__fulfillment_tmp": ["source.shopify_source.shopify_graphql.fulfillment"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": ["source.shopify_source.shopify_graphql.abandoned_checkout"], "model.shopify_source.stg_shopify_gql__order_tag_tmp": ["source.shopify_source.shopify_graphql.order_tag"], "model.shopify_source.stg_shopify_gql__product_media_tmp": ["source.shopify_source.shopify_graphql.product_media"], "model.shopify_source.stg_shopify_gql__media_image_tmp": ["source.shopify_source.shopify_graphql.media_image"], "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": ["source.shopify_source.shopify_graphql.tender_transaction"], "model.shopify_source.stg_shopify_gql__media_tmp": ["source.shopify_source.shopify_graphql.media"], "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": ["source.shopify_source.shopify_graphql.discount_allocation"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": ["source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify_gql__inventory_level_tmp": ["source.shopify_source.shopify_graphql.inventory_level"], "model.shopify_source.stg_shopify_gql__customer_tag_tmp": ["source.shopify_source.shopify_graphql.customer_tag"], "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": ["source.shopify_source.shopify_graphql.fulfillment_event"], "model.shopify_source.stg_shopify_gql__transaction_tmp": ["source.shopify_source.shopify_graphql.transaction"], "model.shopify_source.stg_shopify_gql__product_tag_tmp": ["source.shopify_source.shopify_graphql.product_tag"], "model.shopify_source.stg_shopify_gql__customer_address_tmp": ["source.shopify_source.shopify_graphql.customer_address"], "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": ["model.shopify.shopify_gql__customer_cohorts"], "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": ["model.shopify.shopify_gql__customer_cohorts"], "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": ["model.shopify.shopify_gql__customer_email_cohorts"], "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": ["model.shopify.shopify_gql__customer_email_cohorts"], "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": ["model.shopify.shopify_gql__orders"], "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": ["model.shopify.shopify_gql__orders"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171": ["model.shopify.shopify_gql__customers"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003": ["model.shopify.shopify_gql__customer_emails"], "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": ["model.shopify.shopify_gql__products"], "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": ["model.shopify.shopify_gql__products"], "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": ["model.shopify.shopify_gql__order_lines"], "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": ["model.shopify.shopify_gql__order_lines"], "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": ["model.shopify.shopify_gql__transactions"], "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": ["model.shopify.shopify_gql__transactions"], "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": ["model.shopify.shopify_gql__discounts"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": ["model.shopify.shopify_gql__daily_shop"], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": ["model.shopify.shopify__customer_cohorts"], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": ["model.shopify.shopify__customer_cohorts"], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": ["model.shopify.shopify__orders"], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": ["model.shopify.shopify__orders"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": ["model.shopify.shopify__customers"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": ["model.shopify.shopify__customer_emails"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": ["model.shopify.shopify__products"], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": ["model.shopify.shopify__order_lines"], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": ["model.shopify.shopify__order_lines"], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": ["model.shopify.shopify__inventory_levels"], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": ["model.shopify.shopify__inventory_levels"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": ["model.shopify.shopify__inventory_levels"], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": ["model.shopify.shopify__discounts"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": ["model.shopify.shopify__daily_shop"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": ["model.shopify.shopify__customers__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": ["model.shopify.shopify__orders__order_line_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": ["model.shopify.int_shopify__emails__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": ["model.shopify.int_shopify__customer_email_rollup"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": ["model.shopify.int_shopify__inventory_level__aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": ["model.shopify.int_shopify__discounts__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": ["model.shopify.int_shopify__discounts__abandoned_checkouts"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": ["model.shopify.int_shopify__order__shipping_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": ["model.shopify.int_shopify__product__order_line_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": ["model.shopify.int_shopify__products_with_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": ["model.shopify.shopify__line_item_enhanced"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1": ["model.shopify.shopify_gql__line_item_enhanced"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": ["model.shopify_source.stg_shopify__customer"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": ["model.shopify_source.stg_shopify__order_line_refund"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": ["model.shopify_source.stg_shopify__order_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": ["model.shopify_source.stg_shopify__order"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": ["model.shopify_source.stg_shopify__product"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": ["model.shopify_source.stg_shopify__product_variant"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": ["model.shopify_source.stg_shopify__transaction"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": ["model.shopify_source.stg_shopify__refund"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": ["model.shopify_source.stg_shopify__order_adjustment"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": ["model.shopify_source.stg_shopify__abandoned_checkout"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": ["model.shopify_source.stg_shopify__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": ["model.shopify_source.stg_shopify__collection"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": ["model.shopify_source.stg_shopify__collection"], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": ["model.shopify_source.stg_shopify__inventory_item"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": ["model.shopify_source.stg_shopify__inventory_item"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": ["model.shopify_source.stg_shopify__inventory_level"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": ["model.shopify_source.stg_shopify__inventory_quantity"], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": ["model.shopify_source.stg_shopify__location"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": ["model.shopify_source.stg_shopify__location"], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": ["model.shopify_source.stg_shopify__media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": ["model.shopify_source.stg_shopify__media"], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": ["model.shopify_source.stg_shopify__media_image"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": ["model.shopify_source.stg_shopify__media_image"], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": ["model.shopify_source.stg_shopify__metafield"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": ["model.shopify_source.stg_shopify__metafield"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": ["model.shopify_source.stg_shopify__order_shipping_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": ["model.shopify_source.stg_shopify__order_shipping_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": ["model.shopify_source.stg_shopify__shop"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": ["model.shopify_source.stg_shopify__shop"], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": ["model.shopify_source.stg_shopify__tender_transaction"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": ["model.shopify_source.stg_shopify__tender_transaction"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": ["model.shopify_source.stg_shopify__fulfillment_event"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": ["model.shopify_source.stg_shopify__fulfillment_event"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": ["model.shopify_source.stg_shopify__tax_line"], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": ["model.shopify_source.stg_shopify__discount_code_app"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": ["model.shopify_source.stg_shopify__discount_code_app"], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": ["model.shopify_source.stg_shopify__discount_code_basic"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": ["model.shopify_source.stg_shopify__discount_code_basic"], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": ["model.shopify_source.stg_shopify__discount_redeem_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": ["model.shopify_source.stg_shopify__discount_redeem_code"], "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": ["model.shopify_source.stg_shopify_gql__customer"], "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": ["model.shopify_source.stg_shopify_gql__customer"], "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": ["model.shopify_source.stg_shopify_gql__order"], "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": ["model.shopify_source.stg_shopify_gql__order"], "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": ["model.shopify_source.stg_shopify_gql__order_line"], "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": ["model.shopify_source.stg_shopify_gql__order_line"], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": ["model.shopify_source.stg_shopify_gql__product"], "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": ["model.shopify_source.stg_shopify_gql__product"], "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": ["model.shopify_source.stg_shopify_gql__product_variant"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": ["model.shopify_source.stg_shopify_gql__product_variant"], "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": ["model.shopify_source.stg_shopify_gql__refund"], "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": ["model.shopify_source.stg_shopify_gql__refund"], "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": ["model.shopify_source.stg_shopify_gql__tax_line"], "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": ["model.shopify_source.stg_shopify_gql__tax_line"], "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": ["model.shopify_source.stg_shopify_gql__transaction"], "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": ["model.shopify_source.stg_shopify_gql__transaction"], "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": ["model.shopify_source.stg_shopify_gql__customer_visit"], "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": ["model.shopify_source.stg_shopify_gql__customer_visit"], "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": [], "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": [], "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": ["model.shopify_source.stg_shopify_gql__customer_address"], "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": ["model.shopify_source.stg_shopify_gql__customer_address"], "source.shopify_source.shopify.order": [], "source.shopify_source.shopify.customer": [], "source.shopify_source.shopify.order_line": [], "source.shopify_source.shopify.order_line_refund": [], "source.shopify_source.shopify.product": [], "source.shopify_source.shopify.product_variant": [], "source.shopify_source.shopify.transaction": [], "source.shopify_source.shopify.refund": [], "source.shopify_source.shopify.order_adjustment": [], "source.shopify_source.shopify.abandoned_checkout": [], "source.shopify_source.shopify.collection_product": [], "source.shopify_source.shopify.collection": [], "source.shopify_source.shopify.customer_tag": [], "source.shopify_source.shopify.fulfillment": [], "source.shopify_source.shopify.inventory_item": [], "source.shopify_source.shopify.inventory_level": [], "source.shopify_source.shopify.inventory_quantity": [], "source.shopify_source.shopify.location": [], "source.shopify_source.shopify.metafield": [], "source.shopify_source.shopify.order_note_attribute": [], "source.shopify_source.shopify.order_shipping_line": [], "source.shopify_source.shopify.order_shipping_tax_line": [], "source.shopify_source.shopify.order_tag": [], "source.shopify_source.shopify.order_url_tag": [], "source.shopify_source.shopify.media": [], "source.shopify_source.shopify.media_image": [], "source.shopify_source.shopify.product_media": [], "source.shopify_source.shopify.product_variant_media": [], "source.shopify_source.shopify.product_tag": [], "source.shopify_source.shopify.shop": [], "source.shopify_source.shopify.tender_transaction": [], "source.shopify_source.shopify.abandoned_checkout_discount_code": [], "source.shopify_source.shopify.order_discount_code": [], "source.shopify_source.shopify.abandoned_checkout_shipping_line": [], "source.shopify_source.shopify.fulfillment_event": [], "source.shopify_source.shopify.tax_line": [], "source.shopify_source.shopify.discount_allocation": [], "source.shopify_source.shopify.discount_application": [], "source.shopify_source.shopify.discount_code_app": [], "source.shopify_source.shopify.discount_code_basic": [], "source.shopify_source.shopify.discount_code_bxgy": [], "source.shopify_source.shopify.discount_code_free_shipping": [], "source.shopify_source.shopify.discount_redeem_code": [], "source.shopify_source.shopify_graphql.order": [], "source.shopify_source.shopify_graphql.customer": [], "source.shopify_source.shopify_graphql.order_line": [], "source.shopify_source.shopify_graphql.order_line_refund": [], "source.shopify_source.shopify_graphql.product": [], "source.shopify_source.shopify_graphql.product_variant": [], "source.shopify_source.shopify_graphql.transaction": [], "source.shopify_source.shopify_graphql.refund": [], "source.shopify_source.shopify_graphql.order_adjustment": [], "source.shopify_source.shopify_graphql.abandoned_checkout": [], "source.shopify_source.shopify_graphql.collection_product": [], "source.shopify_source.shopify_graphql.collection": [], "source.shopify_source.shopify_graphql.customer_tag": [], "source.shopify_source.shopify_graphql.fulfillment": [], "source.shopify_source.shopify_graphql.inventory_item": [], "source.shopify_source.shopify_graphql.inventory_level": [], "source.shopify_source.shopify_graphql.inventory_quantity": [], "source.shopify_source.shopify_graphql.location": [], "source.shopify_source.shopify_graphql.metafield": [], "source.shopify_source.shopify_graphql.order_note_attribute": [], "source.shopify_source.shopify_graphql.order_shipping_line": [], "source.shopify_source.shopify_graphql.order_shipping_tax_line": [], "source.shopify_source.shopify_graphql.order_tag": [], "source.shopify_source.shopify_graphql.media": [], "source.shopify_source.shopify_graphql.media_image": [], "source.shopify_source.shopify_graphql.product_media": [], "source.shopify_source.shopify_graphql.product_variant_media": [], "source.shopify_source.shopify_graphql.product_tag": [], "source.shopify_source.shopify_graphql.shop": [], "source.shopify_source.shopify_graphql.tender_transaction": [], "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": [], "source.shopify_source.shopify_graphql.order_discount_code": [], "source.shopify_source.shopify_graphql.fulfillment_event": [], "source.shopify_source.shopify_graphql.tax_line": [], "source.shopify_source.shopify_graphql.discount_allocation": [], "source.shopify_source.shopify_graphql.discount_application": [], "source.shopify_source.shopify_graphql.discount_code_app": [], "source.shopify_source.shopify_graphql.discount_code_basic": [], "source.shopify_source.shopify_graphql.discount_code_bxgy": [], "source.shopify_source.shopify_graphql.discount_code_free_shipping": [], "source.shopify_source.shopify_graphql.discount_redeem_code": [], "source.shopify_source.shopify_graphql.fulfillment_tracking_info": [], "source.shopify_source.shopify_graphql.customer_visit": [], "source.shopify_source.shopify_graphql.fulfillment_order_line_item": [], "source.shopify_source.shopify_graphql.customer_address": []}, "child_map": {"seed.shopify_integration_tests.shopify_gql_product_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_metafield_data": [], "seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_product_data": [], "seed.shopify_integration_tests.shopify_gql_customer_address_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_customer_data": [], "seed.shopify_integration_tests.shopify_gql_customer_visit_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_media_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_gql_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_data": [], "seed.shopify_integration_tests.shopify_gql_order_data": [], "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_refund_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_gql_collection_rule_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_item_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_gql_location_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_gql_shop_data": [], "seed.shopify_integration_tests.shopify_gql_customer_tag_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_collection_data": [], "seed.shopify_integration_tests.shopify_gql_discount_application_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_level_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_media_image_data": [], "model.shopify.shopify__calendar": ["model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "model.shopify.shopify__daily_shop", "model.shopify.shopify_gql__customer_cohorts", "model.shopify.shopify_gql__customer_email_cohorts", "model.shopify.shopify_gql__daily_shop"], "model.shopify.shopify__customer_cohorts": ["test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a"], "model.shopify.shopify__customer_email_cohorts": ["test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182"], "model.shopify.shopify__inventory_levels": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606", "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0"], "model.shopify.shopify__discounts": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f", "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f"], "model.shopify.shopify__customers": ["model.shopify.shopify__customer_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469"], "model.shopify.shopify__orders": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51"], "model.shopify.shopify__transactions": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981"], "model.shopify.shopify__order_lines": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__product__order_line_aggregates", "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e"], "model.shopify.shopify__products": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a"], "model.shopify.shopify__daily_shop": ["test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f"], "model.shopify.shopify__customer_emails": ["model.shopify.shopify__customer_email_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__inventory_levels", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__products", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify.shopify__products", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify.shopify__discounts"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__orders", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify.shopify__customer_emails", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda"], "model.shopify.shopify__orders__order_refunds": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify.shopify__discounts", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__customer_emails", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a"], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__discounts", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__customers", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9"], "model.shopify.shopify__product_variant_metafields": [], "model.shopify.shopify__order_metafields": [], "model.shopify.shopify__product_metafields": [], "model.shopify.shopify__customer_metafields": [], "model.shopify.shopify__shop_metafields": [], "model.shopify.shopify__collection_metafields": [], "model.shopify.shopify__line_item_enhanced": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae"], "model.shopify.shopify_gql__customer_email_cohorts": ["test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f", "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27"], "model.shopify.shopify_gql__customers": ["model.shopify.shopify_gql__customer_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171"], "model.shopify.shopify_gql__order_lines": ["model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__product_order_line_aggregates", "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db", "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4"], "model.shopify.shopify_gql__transactions": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d", "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c"], "model.shopify.shopify_gql__customer_cohorts": ["test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2", "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c"], "model.shopify.shopify_gql__discounts": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92", "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264", "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994", "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5"], "model.shopify.shopify_gql__inventory_levels": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b", "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957", "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e"], "model.shopify.shopify_gql__customer_emails": ["model.shopify.shopify_gql__customer_email_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003"], "model.shopify.shopify_gql__daily_shop": ["test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8"], "model.shopify.shopify_gql__products": ["test.shopify.not_null_shopify_gql__products_unique_key.4982d88497", "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326"], "model.shopify.shopify_gql__orders": ["model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.int_shopify_gql__product_order_line_aggregates", "model.shopify.shopify_gql__customer_cohorts", "model.shopify.shopify_gql__customer_email_cohorts", "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041", "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077"], "model.shopify.int_shopify_gql__discount_code_enriched": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__products_with_aggregates": ["model.shopify.shopify_gql__products"], "model.shopify.int_shopify_gql__customers_order_aggregates": ["model.shopify.shopify_gql__customers"], "model.shopify.int_shopify_gql__daily_orders": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__emails_order_aggregates": ["model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__order_shipping_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__line_item_enhanced"], "model.shopify.int_shopify_gql__order_fulfillment_aggregates": ["model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__product_order_line_aggregates": ["model.shopify.shopify_gql__products"], "model.shopify.int_shopify_gql__orders_order_line_aggregates": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__discounts_order_aggregates": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__daily_fulfillment": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__customer_email_rollup": ["model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__orders_order_refunds": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__daily_abandoned_checkouts": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__inventory_level_aggregates": ["model.shopify.shopify_gql__inventory_levels"], "model.shopify.int_shopify_gql__order_adjustment": ["model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__order_discount_code": ["model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__order": ["model.shopify.shopify_gql__order_metafields", "model.shopify.shopify_gql__orders", "model.shopify.shopify_gql__transactions"], "model.shopify.int_shopify_gql__product_variant": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__product_variant_metafields"], "model.shopify.int_shopify_gql__collection": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__collection_metafields"], "model.shopify.int_shopify_gql__abandoned_checkout": ["model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__customer": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.shopify_gql__customer_metafields", "model.shopify.shopify_gql__customers"], "model.shopify.int_shopify_gql__order_line": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.shopify_gql__order_lines"], "model.shopify.shopify_gql__product_metafields": [], "model.shopify.shopify_gql__collection_metafields": [], "model.shopify.shopify_gql__customer_metafields": [], "model.shopify.shopify_gql__shop_metafields": [], "model.shopify.shopify_gql__order_metafields": [], "model.shopify.shopify_gql__product_variant_metafields": [], "model.shopify.shopify_gql__line_item_enhanced": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933", "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613"], "model.shopify_source.stg_shopify__discount_allocation": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300", "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330"], "model.shopify_source.stg_shopify__order": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_metafields", "model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1"], "model.shopify_source.stg_shopify__transaction": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__transactions", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5", "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__orders", "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a", "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e"], "model.shopify_source.stg_shopify__metafield": ["model.shopify.shopify__collection_metafields", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__order_metafields", "model.shopify.shopify__product_metafields", "model.shopify.shopify__product_variant_metafields", "model.shopify.shopify__shop_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca", "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7", "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify.shopify__transactions", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b", "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295"], "model.shopify_source.stg_shopify__shop": ["model.shopify.shopify__daily_shop", "model.shopify.shopify__shop_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415", "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c", "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb"], "model.shopify_source.stg_shopify__customer": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__customers", "model.shopify.shopify__line_item_enhanced", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84", "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe"], "model.shopify_source.stg_shopify__collection": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__collection_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878", "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0"], "model.shopify_source.stg_shopify__media": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f", "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c", "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc", "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "model.shopify.shopify__product_variant_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26", "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d"], "model.shopify_source.stg_shopify__media_image": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5", "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b"], "model.shopify_source.stg_shopify__order_line": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032", "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify.int_shopify__daily_fulfillment", "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a"], "model.shopify_source.stg_shopify__order_note_attribute": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0", "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_refunds", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29"], "model.shopify_source.stg_shopify__refund": ["model.shopify.shopify__orders__order_refunds", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.shopify__customers", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f", "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd"], "model.shopify_source.stg_shopify__product": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__product_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07", "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6"], "model.shopify_source.stg_shopify__location": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9", "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf", "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1"], "model.shopify_source.stg_shopify__product_media": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea", "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19", "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.shopify__customer_emails", "model.shopify.shopify__customers", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c", "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify.int_shopify__discounts__abandoned_checkouts", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify.int_shopify__discounts__abandoned_checkouts", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e", "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1"], "model.shopify_source.stg_shopify__metafield_tmp": ["model.shopify_source.stg_shopify__metafield"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["model.shopify_source.stg_shopify__fulfillment"], "model.shopify_source.stg_shopify__product_variant_tmp": ["model.shopify_source.stg_shopify__product_variant"], "model.shopify_source.stg_shopify__collection_tmp": ["model.shopify_source.stg_shopify__collection"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["model.shopify_source.stg_shopify__order_discount_code"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["model.shopify_source.stg_shopify__order_url_tag"], "model.shopify_source.stg_shopify__product_tmp": ["model.shopify_source.stg_shopify__product"], "model.shopify_source.stg_shopify__order_tag_tmp": ["model.shopify_source.stg_shopify__order_tag"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["model.shopify_source.stg_shopify__inventory_quantity"], "model.shopify_source.stg_shopify__tax_line_tmp": ["model.shopify_source.stg_shopify__tax_line"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["model.shopify_source.stg_shopify__customer_tag"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["model.shopify_source.stg_shopify__discount_allocation"], "model.shopify_source.stg_shopify__media_image_tmp": ["model.shopify_source.stg_shopify__media_image"], "model.shopify_source.stg_shopify__media_tmp": ["model.shopify_source.stg_shopify__media"], "model.shopify_source.stg_shopify__refund_tmp": ["model.shopify_source.stg_shopify__refund"], "model.shopify_source.stg_shopify__location_tmp": ["model.shopify_source.stg_shopify__location"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["model.shopify_source.stg_shopify__inventory_level"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_line"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["model.shopify_source.stg_shopify__order_line_refund"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["model.shopify_source.stg_shopify__discount_code_app"], "model.shopify_source.stg_shopify__shop_tmp": ["model.shopify_source.stg_shopify__shop"], "model.shopify_source.stg_shopify__transaction_tmp": ["model.shopify_source.stg_shopify__transaction"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["model.shopify_source.stg_shopify__product_variant_media"], "model.shopify_source.stg_shopify__order_line_tmp": ["model.shopify_source.stg_shopify__order_line"], "model.shopify_source.stg_shopify__product_media_tmp": ["model.shopify_source.stg_shopify__product_media"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["model.shopify_source.stg_shopify__discount_code_basic"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["model.shopify_source.stg_shopify__order_note_attribute"], "model.shopify_source.stg_shopify__discount_application_tmp": ["model.shopify_source.stg_shopify__discount_application"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["model.shopify_source.stg_shopify__tender_transaction"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "model.shopify_source.stg_shopify__product_tag_tmp": ["model.shopify_source.stg_shopify__product_tag"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["model.shopify_source.stg_shopify__inventory_item"], "model.shopify_source.stg_shopify__order_tmp": ["model.shopify_source.stg_shopify__order"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify_source.stg_shopify__customer_tmp": ["model.shopify_source.stg_shopify__customer"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["model.shopify_source.stg_shopify__order_adjustment"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__collection_product_tmp": ["model.shopify_source.stg_shopify__collection_product"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify_source.stg_shopify_gql__media": ["test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a", "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac", "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989"], "model.shopify_source.stg_shopify_gql__customer_visit": ["model.shopify.int_shopify_gql__order", "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89", "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2"], "model.shopify_source.stg_shopify_gql__discount_code_app": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2", "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c", "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981"], "model.shopify_source.stg_shopify_gql__customer_tag": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.shopify_gql__customers", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8", "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740"], "model.shopify_source.stg_shopify_gql__order": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.int_shopify_gql__order", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b", "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36"], "model.shopify_source.stg_shopify_gql__order_line": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43", "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85"], "model.shopify_source.stg_shopify_gql__inventory_item": ["model.shopify.int_shopify_gql__product_variant", "model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8", "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91", "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8", "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": ["model.shopify.int_shopify_gql__order_line", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c", "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12"], "model.shopify_source.stg_shopify_gql__order_shipping_line": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd", "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478"], "model.shopify_source.stg_shopify_gql__product": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__inventory_levels", "model.shopify.shopify_gql__line_item_enhanced", "model.shopify.shopify_gql__product_metafields", "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb", "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a"], "model.shopify_source.stg_shopify_gql__fulfillment": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a", "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578"], "model.shopify_source.stg_shopify_gql__discount_allocation": ["test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a", "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e", "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04", "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685"], "model.shopify_source.stg_shopify_gql__tax_line": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173", "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33"], "model.shopify_source.stg_shopify_gql__order_line_refund": ["model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e", "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20"], "model.shopify_source.stg_shopify_gql__inventory_level": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd", "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd", "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570"], "model.shopify_source.stg_shopify_gql__shop": ["model.shopify.shopify_gql__daily_shop", "model.shopify.shopify_gql__shop_metafields", "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531", "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075", "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": ["model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398", "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76"], "model.shopify_source.stg_shopify_gql__location": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be", "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03", "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e"], "model.shopify_source.stg_shopify_gql__transaction": ["model.shopify.shopify_gql__line_item_enhanced", "model.shopify.shopify_gql__transactions", "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb", "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd"], "model.shopify_source.stg_shopify_gql__product_media": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb", "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49", "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800", "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b"], "model.shopify_source.stg_shopify_gql__product_variant": ["model.shopify.int_shopify_gql__product_variant", "model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3", "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735"], "model.shopify_source.stg_shopify_gql__media_image": ["test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141", "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4", "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6"], "model.shopify_source.stg_shopify_gql__abandoned_checkout": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.shopify_gql__customers", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f", "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0"], "model.shopify_source.stg_shopify_gql__collection": ["model.shopify.int_shopify_gql__collection", "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6", "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87", "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e"], "model.shopify_source.stg_shopify_gql__refund": ["model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__orders_order_refunds", "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a", "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c"], "model.shopify_source.stg_shopify_gql__discount_application": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.int_shopify_gql__order_discount_code", "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4", "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0", "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af", "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": ["model.shopify.int_shopify_gql__order_fulfillment_aggregates", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8", "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e"], "model.shopify_source.stg_shopify_gql__order_discount_code": ["model.shopify.int_shopify_gql__order_discount_code", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8", "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7"], "model.shopify_source.stg_shopify_gql__discount_code_basic": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc", "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec", "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb"], "model.shopify_source.stg_shopify_gql__order_note_attribute": ["test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e", "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc", "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6", "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c"], "model.shopify_source.stg_shopify_gql__tender_transaction": ["model.shopify.shopify_gql__transactions", "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7", "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93", "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475"], "model.shopify_source.stg_shopify_gql__customer": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7", "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271"], "model.shopify_source.stg_shopify_gql__product_tag": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd", "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c", "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984", "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0"], "model.shopify_source.stg_shopify_gql__order_tag": ["model.shopify.shopify_gql__orders", "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661", "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290", "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479", "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461"], "model.shopify_source.stg_shopify_gql__metafield": ["model.shopify.shopify_gql__collection_metafields", "model.shopify.shopify_gql__customer_metafields", "model.shopify.shopify_gql__order_metafields", "model.shopify.shopify_gql__product_metafields", "model.shopify.shopify_gql__product_variant_metafields", "model.shopify.shopify_gql__shop_metafields", "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5", "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff", "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679"], "model.shopify_source.stg_shopify_gql__product_variant_media": ["model.shopify.shopify_gql__inventory_levels", "model.shopify.shopify_gql__order_lines", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae", "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894"], "model.shopify_source.stg_shopify_gql__collection_product": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16", "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3", "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67", "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066"], "model.shopify_source.stg_shopify_gql__inventory_quantity": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1", "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa"], "model.shopify_source.stg_shopify_gql__fulfillment_event": ["model.shopify.int_shopify_gql__daily_fulfillment", "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c", "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4", "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b", "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232"], "model.shopify_source.stg_shopify_gql__customer_address": ["model.shopify.int_shopify_gql__customer", "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c", "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04", "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565", "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089"], "model.shopify_source.stg_shopify_gql__order_adjustment": ["model.shopify.int_shopify_gql__order_adjustment", "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c", "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861"], "model.shopify_source.stg_shopify_gql__discount_redeem_code": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3", "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742", "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f"], "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "model.shopify_source.stg_shopify_gql__refund_tmp": ["model.shopify_source.stg_shopify_gql__refund"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "model.shopify_source.stg_shopify_gql__customer_tmp": ["model.shopify_source.stg_shopify_gql__customer"], "model.shopify_source.stg_shopify_gql__product_tmp": ["model.shopify_source.stg_shopify_gql__product"], "model.shopify_source.stg_shopify_gql__customer_visit_tmp": ["model.shopify_source.stg_shopify_gql__customer_visit"], "model.shopify_source.stg_shopify_gql__shop_tmp": ["model.shopify_source.stg_shopify_gql__shop"], "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "model.shopify_source.stg_shopify_gql__collection_tmp": ["model.shopify_source.stg_shopify_gql__collection"], "model.shopify_source.stg_shopify_gql__inventory_item_tmp": ["model.shopify_source.stg_shopify_gql__inventory_item"], "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "model.shopify_source.stg_shopify_gql__discount_application_tmp": ["model.shopify_source.stg_shopify_gql__discount_application"], "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "model.shopify_source.stg_shopify_gql__metafield_tmp": ["model.shopify_source.stg_shopify_gql__metafield"], "model.shopify_source.stg_shopify_gql__order_line_tmp": ["model.shopify_source.stg_shopify_gql__order_line"], "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "model.shopify_source.stg_shopify_gql__product_variant_tmp": ["model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify_source.stg_shopify_gql__order_tmp": ["model.shopify_source.stg_shopify_gql__order"], "model.shopify_source.stg_shopify_gql__location_tmp": ["model.shopify_source.stg_shopify_gql__location"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "model.shopify_source.stg_shopify_gql__tax_line_tmp": ["model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "model.shopify_source.stg_shopify_gql__collection_product_tmp": ["model.shopify_source.stg_shopify_gql__collection_product"], "model.shopify_source.stg_shopify_gql__fulfillment_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "model.shopify_source.stg_shopify_gql__order_tag_tmp": ["model.shopify_source.stg_shopify_gql__order_tag"], "model.shopify_source.stg_shopify_gql__product_media_tmp": ["model.shopify_source.stg_shopify_gql__product_media"], "model.shopify_source.stg_shopify_gql__media_image_tmp": ["model.shopify_source.stg_shopify_gql__media_image"], "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "model.shopify_source.stg_shopify_gql__media_tmp": ["model.shopify_source.stg_shopify_gql__media"], "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify_gql__inventory_level_tmp": ["model.shopify_source.stg_shopify_gql__inventory_level"], "model.shopify_source.stg_shopify_gql__customer_tag_tmp": ["model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "model.shopify_source.stg_shopify_gql__transaction_tmp": ["model.shopify_source.stg_shopify_gql__transaction"], "model.shopify_source.stg_shopify_gql__product_tag_tmp": ["model.shopify_source.stg_shopify_gql__product_tag"], "model.shopify_source.stg_shopify_gql__customer_address_tmp": ["model.shopify_source.stg_shopify_gql__customer_address"], "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": [], "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": [], "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": [], "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": [], "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": [], "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003": [], "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": [], "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": [], "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": [], "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": [], "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": [], "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": [], "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": [], "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b": [], "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": [], "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": [], "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92": [], "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": [], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": [], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": [], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": [], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": [], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": [], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": [], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": [], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": [], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": [], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": [], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": [], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": [], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": [], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": [], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": [], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": [], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": [], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": [], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": [], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": [], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": [], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": [], "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": [], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": [], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": [], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": [], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": [], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": [], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": [], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": [], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": [], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": [], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": [], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": [], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": [], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": [], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": [], "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": [], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": [], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": [], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": [], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": [], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": [], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": [], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": [], "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": [], "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": [], "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": [], "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": [], "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": [], "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": [], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": [], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": [], "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": [], "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": [], "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": [], "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": [], "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": [], "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": [], "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": [], "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": [], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": [], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": [], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": [], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": [], "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": [], "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd": [], "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": [], "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": [], "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": [], "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": [], "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": [], "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": [], "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": [], "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": [], "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": [], "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": [], "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": [], "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": [], "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": [], "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": [], "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": [], "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": [], "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": [], "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": [], "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": [], "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": [], "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": [], "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": [], "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": [], "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": [], "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": [], "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": [], "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": [], "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": [], "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": [], "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": [], "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": [], "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": [], "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": [], "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": [], "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": [], "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": [], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": [], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": [], "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": [], "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": [], "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": [], "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": [], "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": [], "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": [], "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": [], "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": [], "source.shopify_source.shopify.order": ["model.shopify_source.stg_shopify__order_tmp"], "source.shopify_source.shopify.customer": ["model.shopify_source.stg_shopify__customer_tmp"], "source.shopify_source.shopify.order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "source.shopify_source.shopify.order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "source.shopify_source.shopify.product": ["model.shopify_source.stg_shopify__product_tmp"], "source.shopify_source.shopify.product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "source.shopify_source.shopify.transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "source.shopify_source.shopify.refund": ["model.shopify_source.stg_shopify__refund_tmp"], "source.shopify_source.shopify.order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "source.shopify_source.shopify.abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "source.shopify_source.shopify.collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "source.shopify_source.shopify.collection": ["model.shopify_source.stg_shopify__collection_tmp"], "source.shopify_source.shopify.customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "source.shopify_source.shopify.fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "source.shopify_source.shopify.inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "source.shopify_source.shopify.inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "source.shopify_source.shopify.inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "source.shopify_source.shopify.location": ["model.shopify_source.stg_shopify__location_tmp"], "source.shopify_source.shopify.metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "source.shopify_source.shopify.order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "source.shopify_source.shopify.order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "source.shopify_source.shopify.order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "source.shopify_source.shopify.order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "source.shopify_source.shopify.order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "source.shopify_source.shopify.media": ["model.shopify_source.stg_shopify__media_tmp"], "source.shopify_source.shopify.media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "source.shopify_source.shopify.product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "source.shopify_source.shopify.product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "source.shopify_source.shopify.product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "source.shopify_source.shopify.shop": ["model.shopify_source.stg_shopify__shop_tmp"], "source.shopify_source.shopify.tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "source.shopify_source.shopify.abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "source.shopify_source.shopify.order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "source.shopify_source.shopify.abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "source.shopify_source.shopify.fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "source.shopify_source.shopify.tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "source.shopify_source.shopify.discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "source.shopify_source.shopify.discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "source.shopify_source.shopify.discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "source.shopify_source.shopify.discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "source.shopify_source.shopify.discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "source.shopify_source.shopify.discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "source.shopify_source.shopify.discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"], "source.shopify_source.shopify_graphql.order": ["model.shopify_source.stg_shopify_gql__order_tmp"], "source.shopify_source.shopify_graphql.customer": ["model.shopify_source.stg_shopify_gql__customer_tmp"], "source.shopify_source.shopify_graphql.order_line": ["model.shopify_source.stg_shopify_gql__order_line_tmp"], "source.shopify_source.shopify_graphql.order_line_refund": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"], "source.shopify_source.shopify_graphql.product": ["model.shopify_source.stg_shopify_gql__product_tmp"], "source.shopify_source.shopify_graphql.product_variant": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"], "source.shopify_source.shopify_graphql.transaction": ["model.shopify_source.stg_shopify_gql__transaction_tmp"], "source.shopify_source.shopify_graphql.refund": ["model.shopify_source.stg_shopify_gql__refund_tmp"], "source.shopify_source.shopify_graphql.order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"], "source.shopify_source.shopify_graphql.abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"], "source.shopify_source.shopify_graphql.collection_product": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"], "source.shopify_source.shopify_graphql.collection": ["model.shopify_source.stg_shopify_gql__collection_tmp"], "source.shopify_source.shopify_graphql.customer_tag": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"], "source.shopify_source.shopify_graphql.fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"], "source.shopify_source.shopify_graphql.inventory_item": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"], "source.shopify_source.shopify_graphql.inventory_level": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"], "source.shopify_source.shopify_graphql.inventory_quantity": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"], "source.shopify_source.shopify_graphql.location": ["model.shopify_source.stg_shopify_gql__location_tmp"], "source.shopify_source.shopify_graphql.metafield": ["model.shopify_source.stg_shopify_gql__metafield_tmp"], "source.shopify_source.shopify_graphql.order_note_attribute": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"], "source.shopify_source.shopify_graphql.order_shipping_line": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"], "source.shopify_source.shopify_graphql.order_shipping_tax_line": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"], "source.shopify_source.shopify_graphql.order_tag": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"], "source.shopify_source.shopify_graphql.media": ["model.shopify_source.stg_shopify_gql__media_tmp"], "source.shopify_source.shopify_graphql.media_image": ["model.shopify_source.stg_shopify_gql__media_image_tmp"], "source.shopify_source.shopify_graphql.product_media": ["model.shopify_source.stg_shopify_gql__product_media_tmp"], "source.shopify_source.shopify_graphql.product_variant_media": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"], "source.shopify_source.shopify_graphql.product_tag": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"], "source.shopify_source.shopify_graphql.shop": ["model.shopify_source.stg_shopify_gql__shop_tmp"], "source.shopify_source.shopify_graphql.tender_transaction": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"], "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "source.shopify_source.shopify_graphql.order_discount_code": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"], "source.shopify_source.shopify_graphql.fulfillment_event": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"], "source.shopify_source.shopify_graphql.tax_line": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"], "source.shopify_source.shopify_graphql.discount_allocation": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"], "source.shopify_source.shopify_graphql.discount_application": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"], "source.shopify_source.shopify_graphql.discount_code_app": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"], "source.shopify_source.shopify_graphql.discount_code_basic": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"], "source.shopify_source.shopify_graphql.discount_code_bxgy": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"], "source.shopify_source.shopify_graphql.discount_code_free_shipping": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"], "source.shopify_source.shopify_graphql.discount_redeem_code": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"], "source.shopify_source.shopify_graphql.fulfillment_tracking_info": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"], "source.shopify_source.shopify_graphql.customer_visit": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"], "source.shopify_source.shopify_graphql.fulfillment_order_line_item": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"], "source.shopify_source.shopify_graphql.customer_address": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}, "unit_tests": {}} \ No newline at end of file From c2d26a27b880bbe03c5686a006f2bdf321c4ee44 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Wed, 6 Aug 2025 17:11:01 -0400 Subject: [PATCH 25/34] Apply suggestions from code review Co-authored-by: fivetran-catfritz <111930712+fivetran-catfritz@users.noreply.github.com> --- CHANGELOG.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55819202..069b381d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ Fivetran very recently released a new version of the Shopify connector that leverages Shopify's newer [GraphQL](https://shopify.dev/docs/apps/build/graphql) API instead of the REST API, as Shopify deprecated the REST API in October 2024. The GraphQL and REST API-based schemas are slightly different, but this package is designed to run for either or, not both. It will do so based on the value of the `shopify_api` variable. -By default, `shopify_api` is set to `rest` and will run the `shopify__*` models in the [rest](https://github.com/fivetran/dbt_shopify/tree/main/models/rest) folder. If you would like to run the package on a GraphQL-based schema, adjust `shopify_api` accordingly. This will run the `shopify_gql__*` models in the [graphql](https://github.com/fivetran/dbt_shopify/tree/main/models/graphql) folder: +By default, `shopify_api` is set to `rest` and will run the `shopify__*` models in the [`rest`](https://github.com/fivetran/dbt_shopify/tree/main/models/rest) folder. If you would like to run the package on a GraphQL-based schema, adjust `shopify_api` accordingly. This will run the `shopify_gql__*` models in the [`graphql`](https://github.com/fivetran/dbt_shopify/tree/main/models/graphql) folder: > This variable is dynamically configured for you in Fivetran Quickstart based on your Shopify connection details. diff --git a/README.md b/README.md index 915ccd03..6c33f60b 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ dispatch: ``` ### Step 3: Define REST API or GraphQL API Source -Fivetran very recently released a new version of the Shopify connector that leverages Shopify's newer [GraphQL](https://shopify.dev/docs/apps/build/graphql) API instead of the REST API, as Shopify deprecated the REST API in October 2024. The GraphQL and REST API-based schemas are slightly different, but this package is designed to run for either or, not both. It will do so based on the value of the `shopify_api` variable. +Fivetran has released a version of the Shopify connector that leverages Shopify's newer [GraphQL](https://shopify.dev/docs/apps/build/graphql) API instead of the REST API, as Shopify deprecated the REST API in October 2024. The GraphQL and REST API-based schemas are slightly different, so this package is designed to run either or, not both. It will do so based on the value of the `shopify_api` variable. By default, `shopify_api` is set to `rest` and will run the `shopify__*` models in the [rest](https://github.com/fivetran/dbt_shopify/tree/main/models/rest) folder. If you would like to run the package on a GraphQL-based schema, adjust `shopify_api` accordingly. This will run the `shopify_gql__*` models in the [graphql](https://github.com/fivetran/dbt_shopify/tree/main/models/graphql) folder: From c05383b8f4ff964dff0bb58b880b83c3cc31abdb Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Wed, 6 Aug 2025 18:21:58 -0400 Subject: [PATCH 26/34] Update packages.yml Co-authored-by: fivetran-catfritz <111930712+fivetran-catfritz@users.noreply.github.com> --- packages.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages.yml b/packages.yml index f677f20c..eb84ae48 100644 --- a/packages.yml +++ b/packages.yml @@ -1,6 +1,3 @@ packages: -# - package: fivetran/shopify_source -# version: [">=0.19.0", "<0.20.0"] -# - local: ../ECommerce/Shopify/dbt_shopify_source -- git: https://github.com/fivetran/dbt_shopify_source.git - revision: update/graphql \ No newline at end of file + - package: fivetran/shopify_source + version: [">=0.19.0", "<0.20.0"] \ No newline at end of file From ddf184cea8c7d022b53fb668e0b9a31f8d146b60 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Thu, 7 Aug 2025 14:14:23 -0400 Subject: [PATCH 27/34] pre-release --- .quickstart/quickstart.yml | 24 ++++++++++++------------ CHANGELOG.md | 8 ++++++++ README.md | 8 ++++---- dbt_project.yml | 2 ++ integration_tests/dbt_project.yml | 1 + packages.yml | 7 +++++-- 6 files changed, 32 insertions(+), 18 deletions(-) diff --git a/.quickstart/quickstart.yml b/.quickstart/quickstart.yml index ff3d727b..15da4fdb 100644 --- a/.quickstart/quickstart.yml +++ b/.quickstart/quickstart.yml @@ -44,16 +44,16 @@ destination_configurations: search_order: [ 'spark_utils', 'dbt_utils' ] public_models: [ - "shopify__customer_email_cohorts", - "shopify__customer_cohorts", - "shopify__discounts", - "shopify__customer_emails", - "shopify__inventory_levels", - "shopify__orders", - "shopify__daily_shop", - "shopify__products", - "shopify__transactions", - "shopify__customers", - "shopify__order_lines", - "shopify__line_item_enhanced" + "shopify_gql__customer_email_cohorts", + "shopify_gql__customer_cohorts", + "shopify_gql__discounts", + "shopify_gql__customer_emails", + "shopify_gql__inventory_levels", + "shopify_gql__orders", + "shopify_gql__daily_shop", + "shopify_gql__products", + "shopify_gql__transactions", + "shopify_gql__customers", + "shopify_gql__order_lines", + "shopify_gql__line_item_enhanced" ] \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 069b381d..5b84e92b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# dbt_shopify_source v0.21.0-a1 + +[PR #114](https://github.com/fivetran/dbt_shopify_source/pull/114) introduces the following changes: + +This pre-release adjusts v0.19.0 so that the GraphQL API-based models are run by default, rather than the REST API ones. It therefore updates the default value of the `shopify_api` variable to be `graphql` instead of its original `rest` value. + +This release is intended to be used by Fivetran Quickstart users who cannot manually adjust the `shopify_api` variable value and have GraphQL Shopify connections. With this in mind, we have updated the `public_models` config in the `quickstart.yml` file to reflect the GraphQL end models only. + # dbt_shopify v0.20.0 [PR #113](https://github.com/fivetran/dbt_shopify/pull/113) introduces the following updates: diff --git a/README.md b/README.md index 6c33f60b..e0b36cbe 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ If you are **not** using the [Shopify Holistic reporting package](https://github ```yml packages: - package: fivetran/shopify - version: [">=0.20.0", "<0.21.0"] # we recommend using ranges to capture non-breaking changes automatically + version: 0.21.0-a1 ``` Do **NOT** include the `shopify_source` package in this file. The transformation package itself has a dependency on it and will install the source package as well. @@ -174,13 +174,13 @@ dispatch: ### Step 3: Define REST API or GraphQL API Source Fivetran has released a version of the Shopify connector that leverages Shopify's newer [GraphQL](https://shopify.dev/docs/apps/build/graphql) API instead of the REST API, as Shopify deprecated the REST API in October 2024. The GraphQL and REST API-based schemas are slightly different, so this package is designed to run either or, not both. It will do so based on the value of the `shopify_api` variable. -By default, `shopify_api` is set to `rest` and will run the `shopify__*` models in the [rest](https://github.com/fivetran/dbt_shopify/tree/main/models/rest) folder. If you would like to run the package on a GraphQL-based schema, adjust `shopify_api` accordingly. This will run the `shopify_gql__*` models in the [graphql](https://github.com/fivetran/dbt_shopify/tree/main/models/graphql) folder: +By default for this `v0.21.0-a1` release, `shopify_api` is set to `graphql` and will run the `shopify_gql__*` models in the [graphql](https://github.com/fivetran/dbt_shopify/tree/main/models/graphql) folder. If you would like to run the package on a REST-based schema, adjust `shopify_api` accordingly or use [`v0.20.0`](https://github.com/fivetran/dbt_shopify/releases/tag/v0.20.0) of this package. This will run the `shopify__*` models in the [rest](https://github.com/fivetran/dbt_shopify/tree/main/models/rest) folder: > This variable is dynamically configured for you in Fivetran Quickstart based on your Shopify connection details. ```yml vars: - shopify_api: graphql # By default = rest. Must be lowercase + shopify_api: rest # By default = graphql. Must be lowercase ``` Overall, the package aims for parity across the different API versions and aligns column names with their REST names, **if the fields are supported in GraphQL**. There will be a 1:1 relationship between REST API and GraphQL based end models, but please note that the following source tables are not present in GraphQL and will therefore not be included in any transformations: @@ -392,7 +392,7 @@ This dbt package is dependent on the following dbt packages. These dependencies ```yml packages: - package: fivetran/shopify_source - version: [">=0.19.0", "<0.20.0"] + version: 0.20.0-a1 - package: fivetran/fivetran_utils version: [">=0.4.0", "<0.5.0"] diff --git a/dbt_project.yml b/dbt_project.yml index 71c1dcb8..b9fe9771 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -29,6 +29,8 @@ models: vars: shopify: + shopify_api: graphql # rest on official release + shopify_customer: "{{ ref('stg_shopify__customer') }}" shopify_order: "{{ ref('stg_shopify__order') }}" shopify_order_line: "{{ ref('stg_shopify__order_line') }}" diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 6a9d037a..99af9424 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -21,6 +21,7 @@ vars: shopify_schema: shopify_integration_tests_17 shopify_api_override: rest + shopify_api: rest shopify_source: shopify_customer_identifier: "shopify_customer_data" diff --git a/packages.yml b/packages.yml index eb84ae48..b07d8030 100644 --- a/packages.yml +++ b/packages.yml @@ -1,3 +1,6 @@ packages: - - package: fivetran/shopify_source - version: [">=0.19.0", "<0.20.0"] \ No newline at end of file + # - package: fivetran/shopify_source + # version: 0.20.0-a1 + # - local: ../ECommerce/Shopify/dbt_shopify_source + - git: https://github.com/fivetran/dbt_shopify_source.git + revision: update/graphql \ No newline at end of file From 782cfbf06132a3f8803e8e566ff517f2b59bf294 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Thu, 7 Aug 2025 14:49:51 -0400 Subject: [PATCH 28/34] prep --- CHANGELOG.md | 2 +- integration_tests/dbt_project.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b84e92b..55c8761c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # dbt_shopify_source v0.21.0-a1 -[PR #114](https://github.com/fivetran/dbt_shopify_source/pull/114) introduces the following changes: +[PR #115](https://github.com/fivetran/dbt_shopify_source/pull/114) introduces the following changes: This pre-release adjusts v0.19.0 so that the GraphQL API-based models are run by default, rather than the REST API ones. It therefore updates the default value of the `shopify_api` variable to be `graphql` instead of its original `rest` value. diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 99af9424..f2fd66ff 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -21,7 +21,7 @@ vars: shopify_schema: shopify_integration_tests_17 shopify_api_override: rest - shopify_api: rest + shopify_source: shopify_customer_identifier: "shopify_customer_data" From 834b2ed327c87c669e19e6fb8007488ed2906f34 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Thu, 7 Aug 2025 14:58:16 -0400 Subject: [PATCH 29/34] changelog --- CHANGELOG.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55c8761c..873610dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,13 @@ [PR #115](https://github.com/fivetran/dbt_shopify_source/pull/114) introduces the following changes: -This pre-release adjusts v0.19.0 so that the GraphQL API-based models are run by default, rather than the REST API ones. It therefore updates the default value of the `shopify_api` variable to be `graphql` instead of its original `rest` value. +## Feature Update +This pre-release adjusts v0.20.0 so that the GraphQL API-based models are run by default, rather than the REST API ones. It therefore updates the default value of the `shopify_api` [variable](https://github.com/fivetran/dbt_shopify?tab=readme-ov-file#step-3-define-rest-api-or-graphql-api-source) to be `graphql` instead of its original `rest` value. -This release is intended to be used by Fivetran Quickstart users who cannot manually adjust the `shopify_api` variable value and have GraphQL Shopify connections. With this in mind, we have updated the `public_models` config in the `quickstart.yml` file to reflect the GraphQL end models only. +This release is intended to be used by Fivetran Quickstart users who cannot manually adjust the `shopify_api` variable value and have GraphQL Shopify connections. + +## Under the Hood +With the above in mind, we have updated the `public_models` config in the `quickstart.yml` file to reflect the GraphQL end models only. # dbt_shopify v0.20.0 From 0da213cf15b5bb0db183590962b4ba713bf2b0a1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 7 Aug 2025 19:36:59 +0000 Subject: [PATCH 30/34] Generate dbt docs via GitHub Actions --- docs/catalog.json | 2 +- docs/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/catalog.json b/docs/catalog.json index ab66323f..277a42ea 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.10.6", "generated_at": "2025-08-06T19:12:35.794443Z", "invocation_id": "a1a1c0f7-774a-452e-8815-3e67df4d0e48", "invocation_started_at": "2025-08-06T19:12:21.203935Z", "env": {}}, "nodes": {"seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_integration_tests.shopify_abandoned_checkout_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data"}, "seed.shopify_integration_tests.shopify_collection_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_data"}, "seed.shopify_integration_tests.shopify_collection_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data"}, "seed.shopify_integration_tests.shopify_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_data"}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data"}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_integration_tests.shopify_discount_allocation_data"}, "seed.shopify_integration_tests.shopify_discount_application_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data"}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data"}, "seed.shopify_integration_tests.shopify_discount_code_basic_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data"}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data"}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data"}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_integration_tests.shopify_discount_redeem_code_data"}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data"}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data"}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_integration_tests.shopify_gql_abandoned_checkout_data"}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data"}, "seed.shopify_integration_tests.shopify_gql_collection_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_integration_tests.shopify_gql_collection_data"}, "seed.shopify_integration_tests.shopify_gql_collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_collection_product"}, "seed.shopify_integration_tests.shopify_gql_collection_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_collection_product_data"}, "seed.shopify_integration_tests.shopify_gql_collection_rule_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_rule_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "condition": {"type": "text", "index": 4, "name": "condition", "comment": null}, "relation": {"type": "text", "index": 5, "name": "relation", "comment": null}, "columns": {"type": "text", "index": 6, "name": "columns", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_rule_data"}, "seed.shopify_integration_tests.shopify_gql_customer_address_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_address_data"}, "seed.shopify_integration_tests.shopify_gql_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_data"}, "seed.shopify_integration_tests.shopify_gql_customer_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_tag_data"}, "seed.shopify_integration_tests.shopify_gql_customer_visit_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_visit_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_visit_data"}, "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_integration_tests.shopify_gql_discount_allocation_data"}, "seed.shopify_integration_tests.shopify_gql_discount_application_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_integration_tests.shopify_gql_discount_application_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_app_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_basic_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_bxgy_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data"}, "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_integration_tests.shopify_gql_discount_redeem_code_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_integration_tests.shopify_gql_fulfillment_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_integration_tests.shopify_gql_inventory_item_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_level_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_integration_tests.shopify_gql_inventory_level_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_integration_tests.shopify_gql_inventory_quantity_data"}, "seed.shopify_integration_tests.shopify_gql_location_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_location_data"}, "seed.shopify_integration_tests.shopify_gql_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_integration_tests.shopify_gql_media_data"}, "seed.shopify_integration_tests.shopify_gql_media_image_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_media_image_data"}, "seed.shopify_integration_tests.shopify_gql_metafield_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_metafield_data"}, "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_adjustment_data"}, "seed.shopify_integration_tests.shopify_gql_order_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_integration_tests.shopify_gql_order_data"}, "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_integration_tests.shopify_gql_order_discount_code_data"}, "seed.shopify_integration_tests.shopify_gql_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_integration_tests.shopify_gql_order_line_refund_data"}, "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data"}, "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_tag_data"}, "seed.shopify_integration_tests.shopify_gql_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_product_data"}, "seed.shopify_integration_tests.shopify_gql_product_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_product_media_data"}, "seed.shopify_integration_tests.shopify_gql_product_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_product_tag_data"}, "seed.shopify_integration_tests.shopify_gql_product_variant_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_integration_tests.shopify_gql_product_variant_data"}, "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_integration_tests.shopify_gql_product_variant_media_data"}, "seed.shopify_integration_tests.shopify_gql_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_integration_tests.shopify_gql_refund_data"}, "seed.shopify_integration_tests.shopify_gql_shop_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_shop_data"}, "seed.shopify_integration_tests.shopify_gql_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_tax_line_data"}, "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_integration_tests.shopify_gql_tender_transaction_data"}, "seed.shopify_integration_tests.shopify_gql_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_transaction_data"}, "seed.shopify_integration_tests.shopify_inventory_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data"}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data"}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data"}, "seed.shopify_integration_tests.shopify_location_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_integration_tests.shopify_location_data"}, "seed.shopify_integration_tests.shopify_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_data"}, "seed.shopify_integration_tests.shopify_media_image_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_image_data"}, "seed.shopify_integration_tests.shopify_metafield_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_metafield_data"}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data"}, "seed.shopify_integration_tests.shopify_order_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_data"}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data"}, "seed.shopify_integration_tests.shopify_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_data"}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data"}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data"}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data"}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data"}, "seed.shopify_integration_tests.shopify_order_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data"}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data"}, "seed.shopify_integration_tests.shopify_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_data"}, "seed.shopify_integration_tests.shopify_product_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_media_data"}, "seed.shopify_integration_tests.shopify_product_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data"}, "seed.shopify_integration_tests.shopify_product_variant_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data"}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_variant_media_data"}, "seed.shopify_integration_tests.shopify_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_integration_tests.shopify_refund_data"}, "seed.shopify_integration_tests.shopify_shop_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_shop_data"}, "seed.shopify_integration_tests.shopify_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data"}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_integration_tests.shopify_tender_transaction_data"}, "seed.shopify_integration_tests.shopify_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_transaction_data"}, "model.shopify.int_shopify__customer_email_rollup": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify__customer_email_rollup"}, "model.shopify.int_shopify_gql__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}, "rules": {"type": "text", "index": 11, "name": "rules", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__collection"}, "model.shopify.int_shopify_gql__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_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.shopify.int_shopify_gql__customer"}, "model.shopify.int_shopify_gql__customer_email_rollup": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__customer_email_rollup", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "account_state": {"type": "text", "index": 15, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 16, "name": "note", "comment": null}, "currency": {"type": "text", "index": 17, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 18, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 19, "name": "marketing_opt_in_level", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_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.shopify.int_shopify_gql__customer_email_rollup"}, "model.shopify.int_shopify_gql__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_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.shopify.int_shopify_gql__order"}, "model.shopify.int_shopify_gql__orders_order_line_aggregates": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_line_aggregates", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "line_item_count": {"type": "bigint", "index": 3, "name": "line_item_count", "comment": null}, "order_total_quantity": {"type": "bigint", "index": 4, "name": "order_total_quantity", "comment": null}, "order_total_tax": {"type": "double precision", "index": 5, "name": "order_total_tax", "comment": null}, "order_total_discount": {"type": "double precision", "index": 6, "name": "order_total_discount", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 8, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_pres_currency_codes": {"type": "text", "index": 9, "name": "total_line_items_price_pres_currency_codes", "comment": null}, "total_line_items_price_shop_currency_codes": {"type": "text", "index": 10, "name": "total_line_items_price_shop_currency_codes", "comment": null}, "order_total_shipping": {"type": "double precision", "index": 11, "name": "order_total_shipping", "comment": null}, "order_total_shipping_with_discounts": {"type": "double precision", "index": 12, "name": "order_total_shipping_with_discounts", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 13, "name": "order_total_shipping_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__orders_order_line_aggregates"}, "model.shopify.int_shopify_gql__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}, "weight": {"type": "double precision", "index": 24, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__product_variant"}, "model.shopify.shopify__calendar": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__calendar", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__calendar"}, "model.shopify.shopify__collection_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__collection_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__collection_metafields"}, "model.shopify.shopify__customer_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "date", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_cohorts"}, "model.shopify.shopify__customer_email_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_email_cohorts"}, "model.shopify.shopify__customer_emails": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_emails", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 21, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_order_value": {"type": "double precision", "index": 24, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 25, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 26, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 27, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 28, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 29, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 30, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 31, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 32, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 33, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 34, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 35, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 36, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 37, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 38, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 39, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_emails"}, "model.shopify.shopify__customer_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "metafield_star_wars_firstname": {"type": "text", "index": 21, "name": "metafield_star_wars_firstname", "comment": null}, "metafield_star_wars_fullname": {"type": "text", "index": 22, "name": "metafield_star_wars_fullname", "comment": null}, "metafield_star_wars_isjedi": {"type": "text", "index": 23, "name": "metafield_star_wars_isjedi", "comment": null}, "metafield_star_wars_lastname": {"type": "text", "index": 24, "name": "metafield_star_wars_lastname", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_metafields"}, "model.shopify.shopify__customers": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customers", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 5, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 9, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 10, "name": "note", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 12, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 13, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 14, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 15, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 19, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_order_timestamp", "comment": null}, "customer_tags": {"type": "text", "index": 22, "name": "customer_tags", "comment": null}, "avg_order_value": {"type": "double precision", "index": 23, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 24, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 25, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 26, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 27, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 28, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 29, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 30, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 31, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 32, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 33, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 34, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 35, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 36, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 37, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 38, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customers"}, "model.shopify.shopify__daily_shop": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__daily_shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "shop_id": {"type": "integer", "index": 2, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "domain": {"type": "text", "index": 4, "name": "domain", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 7, "name": "enabled_presentment_currencies", "comment": null}, "iana_timezone": {"type": "text", "index": 8, "name": "iana_timezone", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "count_orders": {"type": "bigint", "index": 11, "name": "count_orders", "comment": null}, "count_line_items": {"type": "numeric", "index": 12, "name": "count_line_items", "comment": null}, "avg_line_item_count": {"type": "numeric", "index": 13, "name": "avg_line_item_count", "comment": null}, "count_customers": {"type": "bigint", "index": 14, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 15, "name": "count_customer_emails", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 16, "name": "order_adjusted_total", "comment": null}, "avg_order_value": {"type": "double precision", "index": 17, "name": "avg_order_value", "comment": null}, "shipping_cost": {"type": "double precision", "index": 18, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "numeric", "index": 19, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 20, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "numeric", "index": 21, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 22, "name": "refund_total_tax", "comment": null}, "total_discounts": {"type": "double precision", "index": 23, "name": "total_discounts", "comment": null}, "avg_discount": {"type": "double precision", "index": 24, "name": "avg_discount", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 25, "name": "shipping_discount_amount", "comment": null}, "avg_shipping_discount_amount": {"type": "double precision", "index": 26, "name": "avg_shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 27, "name": "percentage_calc_discount_amount", "comment": null}, "avg_percentage_calc_discount_amount": {"type": "double precision", "index": 28, "name": "avg_percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 29, "name": "fixed_amount_discount_amount", "comment": null}, "avg_fixed_amount_discount_amount": {"type": "double precision", "index": 30, "name": "avg_fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "numeric", "index": 31, "name": "count_discount_codes_applied", "comment": null}, "count_locations_ordered_from": {"type": "bigint", "index": 32, "name": "count_locations_ordered_from", "comment": null}, "count_orders_with_discounts": {"type": "bigint", "index": 33, "name": "count_orders_with_discounts", "comment": null}, "count_orders_with_refunds": {"type": "bigint", "index": 34, "name": "count_orders_with_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 36, "name": "last_order_timestamp", "comment": null}, "quantity_sold": {"type": "bigint", "index": 37, "name": "quantity_sold", "comment": null}, "quantity_refunded": {"type": "numeric", "index": 38, "name": "quantity_refunded", "comment": null}, "quantity_net": {"type": "numeric", "index": 39, "name": "quantity_net", "comment": null}, "avg_quantity_sold": {"type": "bigint", "index": 40, "name": "avg_quantity_sold", "comment": null}, "avg_quantity_net": {"type": "numeric", "index": 41, "name": "avg_quantity_net", "comment": null}, "count_variants_sold": {"type": "bigint", "index": 42, "name": "count_variants_sold", "comment": null}, "count_products_sold": {"type": "bigint", "index": 43, "name": "count_products_sold", "comment": null}, "quantity_gift_cards_sold": {"type": "numeric", "index": 44, "name": "quantity_gift_cards_sold", "comment": null}, "quantity_requiring_shipping": {"type": "numeric", "index": 45, "name": "quantity_requiring_shipping", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 46, "name": "count_abandoned_checkouts", "comment": null}, "count_customers_abandoned_checkout": {"type": "bigint", "index": 47, "name": "count_customers_abandoned_checkout", "comment": null}, "count_customer_emails_abandoned_checkout": {"type": "bigint", "index": 48, "name": "count_customer_emails_abandoned_checkout", "comment": null}, "count_fulfillment_attempted_delivery": {"type": "bigint", "index": 49, "name": "count_fulfillment_attempted_delivery", "comment": null}, "count_fulfillment_delayed": {"type": "bigint", "index": 50, "name": "count_fulfillment_delayed", "comment": null}, "count_fulfillment_delivered": {"type": "bigint", "index": 51, "name": "count_fulfillment_delivered", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 52, "name": "count_fulfillment_failure", "comment": null}, "count_fulfillment_in_transit": {"type": "bigint", "index": 53, "name": "count_fulfillment_in_transit", "comment": null}, "count_fulfillment_out_for_delivery": {"type": "bigint", "index": 54, "name": "count_fulfillment_out_for_delivery", "comment": null}, "count_fulfillment_ready_for_pickup": {"type": "bigint", "index": 55, "name": "count_fulfillment_ready_for_pickup", "comment": null}, "count_fulfillment_picked_up": {"type": "bigint", "index": 56, "name": "count_fulfillment_picked_up", "comment": null}, "count_fulfillment_label_printed": {"type": "bigint", "index": 57, "name": "count_fulfillment_label_printed", "comment": null}, "count_fulfillment_label_purchased": {"type": "bigint", "index": 58, "name": "count_fulfillment_label_purchased", "comment": null}, "count_fulfillment_confirmed": {"type": "bigint", "index": 59, "name": "count_fulfillment_confirmed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__daily_shop"}, "model.shopify.shopify__discounts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__discounts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"code": {"type": "character varying", "index": 1, "name": "code", "comment": null}, "discount_code_id": {"type": "bigint", "index": 2, "name": "discount_code_id", "comment": null}, "discount_type": {"type": "text", "index": 3, "name": "discount_type", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_count": {"type": "integer", "index": 5, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 14, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 15, "name": "status", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 17, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 18, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 20, "name": "usage_limit", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "allocation_method": {"type": "character varying", "index": 22, "name": "allocation_method", "comment": null}, "description": {"type": "character varying", "index": 23, "name": "description", "comment": null}, "target_selection": {"type": "character varying", "index": 24, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 25, "name": "target_type", "comment": null}, "application_type": {"type": "character varying", "index": 26, "name": "application_type", "comment": null}, "value": {"type": "double precision", "index": 27, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 28, "name": "value_type", "comment": null}, "discounts_unique_key": {"type": "text", "index": 29, "name": "discounts_unique_key", "comment": null}, "count_orders": {"type": "bigint", "index": 30, "name": "count_orders", "comment": null}, "avg_order_discount_amount": {"type": "double precision", "index": 31, "name": "avg_order_discount_amount", "comment": null}, "total_order_discount_amount": {"type": "double precision", "index": 32, "name": "total_order_discount_amount", "comment": null}, "total_order_line_items_price": {"type": "double precision", "index": 33, "name": "total_order_line_items_price", "comment": null}, "total_order_shipping_cost": {"type": "double precision", "index": 34, "name": "total_order_shipping_cost", "comment": null}, "total_order_refund_amount": {"type": "double precision", "index": 35, "name": "total_order_refund_amount", "comment": null}, "count_customers": {"type": "bigint", "index": 36, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 37, "name": "count_customer_emails", "comment": null}, "total_abandoned_checkout_discount_amount": {"type": "double precision", "index": 38, "name": "total_abandoned_checkout_discount_amount", "comment": null}, "total_abandoned_checkout_shipping_price": {"type": "double precision", "index": 39, "name": "total_abandoned_checkout_shipping_price", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 40, "name": "count_abandoned_checkouts", "comment": null}, "count_abandoned_checkout_customers": {"type": "bigint", "index": 41, "name": "count_abandoned_checkout_customers", "comment": null}, "count_abandoned_checkout_customer_emails": {"type": "bigint", "index": 42, "name": "count_abandoned_checkout_customer_emails", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__discounts"}, "model.shopify.shopify__inventory_levels": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__inventory_levels", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "sku": {"type": "text", "index": 10, "name": "sku", "comment": null}, "is_inventory_item_deleted": {"type": "boolean", "index": 11, "name": "is_inventory_item_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 14, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 15, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 16, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 17, "name": "is_inventory_quantity_tracked", "comment": null}, "inventory_item_created_at": {"type": "timestamp without time zone", "index": 18, "name": "inventory_item_created_at", "comment": null}, "inventory_item_updated_at": {"type": "timestamp without time zone", "index": 19, "name": "inventory_item_updated_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 20, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 21, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 22, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 23, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 24, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 25, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 26, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 27, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 28, "name": "tracked_editable_reason", "comment": null}, "location_name": {"type": "text", "index": 29, "name": "location_name", "comment": null}, "is_location_deleted": {"type": "boolean", "index": 30, "name": "is_location_deleted", "comment": null}, "is_location_active": {"type": "boolean", "index": 31, "name": "is_location_active", "comment": null}, "address_1": {"type": "text", "index": 32, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 33, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 34, "name": "city", "comment": null}, "country": {"type": "text", "index": 35, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 36, "name": "country_code", "comment": null}, "is_legacy_location": {"type": "boolean", "index": 37, "name": "is_legacy_location", "comment": null}, "province": {"type": "text", "index": 38, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 39, "name": "province_code", "comment": null}, "phone": {"type": "integer", "index": 40, "name": "phone", "comment": null}, "zip": {"type": "integer", "index": 41, "name": "zip", "comment": null}, "location_created_at": {"type": "timestamp without time zone", "index": 42, "name": "location_created_at", "comment": null}, "location_updated_at": {"type": "timestamp without time zone", "index": 43, "name": "location_updated_at", "comment": null}, "variant_id": {"type": "bigint", "index": 44, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 45, "name": "product_id", "comment": null}, "variant_title": {"type": "text", "index": 46, "name": "variant_title", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 47, "name": "variant_inventory_policy", "comment": null}, "variant_price": {"type": "double precision", "index": 48, "name": "variant_price", "comment": null}, "variant_media_id": {"type": "bigint", "index": 49, "name": "variant_media_id", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 50, "name": "variant_fulfillment_service", "comment": null}, "variant_inventory_management": {"type": "text", "index": 51, "name": "variant_inventory_management", "comment": null}, "is_variant_taxable": {"type": "boolean", "index": 52, "name": "is_variant_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 53, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 54, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 55, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 56, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 57, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 58, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 59, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 60, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 61, "name": "variant_tax_code", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 62, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 63, "name": "variant_updated_at", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 64, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 65, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 66, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 67, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 68, "name": "variant_sellable_online_quantity", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 69, "name": "subtotal_sold", "comment": null}, "quantity_sold": {"type": "bigint", "index": 70, "name": "quantity_sold", "comment": null}, "count_distinct_orders": {"type": "bigint", "index": 71, "name": "count_distinct_orders", "comment": null}, "count_distinct_customers": {"type": "bigint", "index": 72, "name": "count_distinct_customers", "comment": null}, "count_distinct_customer_emails": {"type": "bigint", "index": 73, "name": "count_distinct_customer_emails", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 74, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 75, "name": "last_order_timestamp", "comment": null}, "subtotal_sold_refunds": {"type": "numeric", "index": 76, "name": "subtotal_sold_refunds", "comment": null}, "quantity_sold_refunds": {"type": "numeric", "index": 77, "name": "quantity_sold_refunds", "comment": null}, "count_fulfillment_pending": {"type": "bigint", "index": 78, "name": "count_fulfillment_pending", "comment": null}, "count_fulfillment_open": {"type": "bigint", "index": 79, "name": "count_fulfillment_open", "comment": null}, "count_fulfillment_success": {"type": "bigint", "index": 80, "name": "count_fulfillment_success", "comment": null}, "count_fulfillment_cancelled": {"type": "bigint", "index": 81, "name": "count_fulfillment_cancelled", "comment": null}, "count_fulfillment_error": {"type": "bigint", "index": 82, "name": "count_fulfillment_error", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 83, "name": "count_fulfillment_failure", "comment": null}, "incoming_quantity": {"type": "bigint", "index": 84, "name": "incoming_quantity", "comment": null}, "on_hand_quantity": {"type": "bigint", "index": 85, "name": "on_hand_quantity", "comment": null}, "available_quantity": {"type": "bigint", "index": 86, "name": "available_quantity", "comment": null}, "committed_quantity": {"type": "bigint", "index": 87, "name": "committed_quantity", "comment": null}, "reserved_quantity": {"type": "bigint", "index": 88, "name": "reserved_quantity", "comment": null}, "damaged_quantity": {"type": "bigint", "index": 89, "name": "damaged_quantity", "comment": null}, "safety_stock_quantity": {"type": "bigint", "index": 90, "name": "safety_stock_quantity", "comment": null}, "quality_control_quantity": {"type": "bigint", "index": 91, "name": "quality_control_quantity", "comment": null}, "net_subtotal_sold": {"type": "numeric", "index": 92, "name": "net_subtotal_sold", "comment": null}, "net_quantity_sold": {"type": "numeric", "index": 93, "name": "net_quantity_sold", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__inventory_levels"}, "model.shopify.shopify__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"header_id": {"type": "bigint", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "numeric(28,6)", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "numeric(28,6)", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "numeric(28,6)", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "numeric(28,6)", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "numeric(28,6)", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "numeric(28,6)", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "text", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "double precision", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "text", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "bigint", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "source_relation": {"type": "text", "index": 37, "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.shopify.shopify__line_item_enhanced"}, "model.shopify.shopify__order_lines": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_lines", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "name": "source_relation", "comment": null}, "order_lines_unique_key": {"type": "text", "index": 29, "name": "order_lines_unique_key", "comment": null}, "restock_types": {"type": "text", "index": 30, "name": "restock_types", "comment": null}, "refunded_quantity": {"type": "bigint", "index": 31, "name": "refunded_quantity", "comment": null}, "refunded_subtotal": {"type": "bigint", "index": 32, "name": "refunded_subtotal", "comment": null}, "quantity_net_refunds": {"type": "bigint", "index": 33, "name": "quantity_net_refunds", "comment": null}, "subtotal_net_refunds": {"type": "bigint", "index": 34, "name": "subtotal_net_refunds", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 35, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 36, "name": "variant_updated_at", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 37, "name": "inventory_item_id", "comment": null}, "media_id": {"type": "bigint", "index": 38, "name": "media_id", "comment": null}, "variant_price": {"type": "double precision", "index": 39, "name": "variant_price", "comment": null}, "variant_sku": {"type": "text", "index": 40, "name": "variant_sku", "comment": null}, "variant_position": {"type": "integer", "index": 41, "name": "variant_position", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 42, "name": "variant_inventory_policy", "comment": null}, "variant_compare_at_price": {"type": "integer", "index": 43, "name": "variant_compare_at_price", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 44, "name": "variant_fulfillment_service", "comment": null}, "variant_is_taxable": {"type": "boolean", "index": 45, "name": "variant_is_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 46, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 47, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 48, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 49, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 50, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 51, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 52, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 53, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 54, "name": "variant_tax_code", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 55, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 56, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 57, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 58, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 59, "name": "variant_sellable_online_quantity", "comment": null}, "order_line_tax": {"type": "double precision", "index": 60, "name": "order_line_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_lines"}, "model.shopify.shopify__order_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 81, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_howmany": {"type": "text", "index": 82, "name": "metafield_avengers_howmany", "comment": null}, "metafield_star_wars_isinspace": {"type": "text", "index": 83, "name": "metafield_star_wars_isinspace", "comment": null}, "metafield_star_wars_numbersequels": {"type": "text", "index": 84, "name": "metafield_star_wars_numbersequels", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_metafields"}, "model.shopify.shopify__orders": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "orders_unique_key": {"type": "text", "index": 81, "name": "orders_unique_key", "comment": null}, "shipping_cost": {"type": "double precision", "index": 82, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "bigint", "index": 83, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 84, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "bigint", "index": 85, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 86, "name": "refund_total_tax", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 87, "name": "order_adjusted_total", "comment": null}, "line_item_count": {"type": "bigint", "index": 88, "name": "line_item_count", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 89, "name": "shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 90, "name": "percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 91, "name": "fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "bigint", "index": 92, "name": "count_discount_codes_applied", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 93, "name": "order_total_shipping_tax", "comment": null}, "order_tags": {"type": "text", "index": 94, "name": "order_tags", "comment": null}, "order_url_tags": {"type": "text", "index": 95, "name": "order_url_tags", "comment": null}, "number_of_fulfillments": {"type": "bigint", "index": 96, "name": "number_of_fulfillments", "comment": null}, "fulfillment_services": {"type": "text", "index": 97, "name": "fulfillment_services", "comment": null}, "tracking_companies": {"type": "text", "index": 98, "name": "tracking_companies", "comment": null}, "tracking_numbers": {"type": "text", "index": 99, "name": "tracking_numbers", "comment": null}, "customer_order_seq_number": {"type": "bigint", "index": 100, "name": "customer_order_seq_number", "comment": null}, "new_vs_repeat": {"type": "text", "index": 101, "name": "new_vs_repeat", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders"}, "model.shopify.shopify__orders__order_line_aggregates": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "line_item_count": {"type": "bigint", "index": 3, "name": "line_item_count", "comment": null}, "order_total_quantity": {"type": "bigint", "index": 4, "name": "order_total_quantity", "comment": null}, "order_total_tax": {"type": "double precision", "index": 5, "name": "order_total_tax", "comment": null}, "order_total_discount": {"type": "bigint", "index": 6, "name": "order_total_discount", "comment": null}, "order_total_shipping": {"type": "double precision", "index": 7, "name": "order_total_shipping", "comment": null}, "order_total_shipping_with_discounts": {"type": "double precision", "index": 8, "name": "order_total_shipping_with_discounts", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 9, "name": "order_total_shipping_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders__order_line_aggregates"}, "model.shopify.shopify__product_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__product_metafields"}, "model.shopify.shopify__product_variant_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 31, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_wherearethey": {"type": "text", "index": 32, "name": "metafield_avengers_wherearethey", "comment": null}, "metafield_star_wars_wheninspace": {"type": "text", "index": 33, "name": "metafield_star_wars_wheninspace", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__product_variant_metafields"}, "model.shopify.shopify__products": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__products", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "collections": {"type": "text", "index": 14, "name": "collections", "comment": null}, "tags": {"type": "text", "index": 15, "name": "tags", "comment": null}, "count_variants": {"type": "bigint", "index": 16, "name": "count_variants", "comment": null}, "has_product_media": {"type": "boolean", "index": 17, "name": "has_product_media", "comment": null}, "total_quantity_sold": {"type": "bigint", "index": 18, "name": "total_quantity_sold", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 19, "name": "subtotal_sold", "comment": null}, "quantity_sold_net_refunds": {"type": "numeric", "index": 20, "name": "quantity_sold_net_refunds", "comment": null}, "subtotal_sold_net_refunds": {"type": "numeric", "index": 21, "name": "subtotal_sold_net_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_quantity_per_order_line": {"type": "numeric", "index": 24, "name": "avg_quantity_per_order_line", "comment": null}, "product_total_discount": {"type": "bigint", "index": 25, "name": "product_total_discount", "comment": null}, "product_avg_discount_per_order_line": {"type": "numeric", "index": 26, "name": "product_avg_discount_per_order_line", "comment": null}, "product_total_tax": {"type": "double precision", "index": 27, "name": "product_total_tax", "comment": null}, "product_avg_tax_per_order_line": {"type": "double precision", "index": 28, "name": "product_avg_tax_per_order_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__products"}, "model.shopify.shopify__shop_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__shop_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify.shopify__shop_metafields"}, "model.shopify.shopify__transactions": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__transactions", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "name": "source_relation", "comment": null}, "transactions_unique_id": {"type": "text", "index": 33, "name": "transactions_unique_id", "comment": null}, "payment_method": {"type": "text", "index": 34, "name": "payment_method", "comment": null}, "parent_created_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "parent_created_timestamp", "comment": null}, "parent_kind": {"type": "text", "index": 36, "name": "parent_kind", "comment": null}, "parent_amount": {"type": "double precision", "index": 37, "name": "parent_amount", "comment": null}, "parent_status": {"type": "text", "index": 38, "name": "parent_status", "comment": null}, "exchange_rate": {"type": "numeric", "index": 39, "name": "exchange_rate", "comment": null}, "currency_exchange_calculated_amount": {"type": "double precision", "index": 40, "name": "currency_exchange_calculated_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__transactions"}, "model.shopify.shopify_gql__collection_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__collection_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}, "rules": {"type": "text", "index": 11, "name": "rules", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb": {"type": "text", "index": 12, "name": "metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw": {"type": "text", "index": 13, "name": "metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__collection_metafields"}, "model.shopify.shopify_gql__customer_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify_gql__customer_cohorts"}, "model.shopify.shopify_gql__customer_email_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_email_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify_gql__customer_email_cohorts"}, "model.shopify.shopify_gql__customer_emails": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_emails", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "account_state": {"type": "text", "index": 15, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 16, "name": "note", "comment": null}, "currency": {"type": "text", "index": 17, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 18, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 19, "name": "marketing_opt_in_level", "comment": null}, "default_address_id": {"type": "integer", "index": 20, "name": "default_address_id", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 21, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_order_value": {"type": "double precision", "index": 24, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 25, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 26, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 27, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 28, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 29, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 30, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 31, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "double precision", "index": 32, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "double precision", "index": 33, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 34, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 35, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 36, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 37, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 38, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 39, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customer_emails"}, "model.shopify.shopify_gql__customer_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_id", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj": {"type": "text", "index": 22, "name": "metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre": {"type": "text", "index": 23, "name": "metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customer_metafields"}, "model.shopify.shopify_gql__customers": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customers", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "phone": {"type": "character varying", "index": 5, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 6, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 7, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 8, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 9, "name": "note", "comment": null}, "currency": {"type": "text", "index": 10, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 11, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 12, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 13, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 14, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 15, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 16, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}, "default_address_id": {"type": "integer", "index": 18, "name": "default_address_id", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 19, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_order_timestamp", "comment": null}, "customer_tags": {"type": "text", "index": 22, "name": "customer_tags", "comment": null}, "avg_order_value": {"type": "double precision", "index": 23, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 24, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 25, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 26, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 27, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 28, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 29, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 30, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "double precision", "index": 31, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "double precision", "index": 32, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 33, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 34, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 35, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 36, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 37, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 38, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customers"}, "model.shopify.shopify_gql__daily_shop": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__daily_shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "shop_id": {"type": "integer", "index": 2, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "domain": {"type": "text", "index": 4, "name": "domain", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 7, "name": "enabled_presentment_currencies", "comment": null}, "iana_timezone": {"type": "text", "index": 8, "name": "iana_timezone", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "count_orders": {"type": "bigint", "index": 11, "name": "count_orders", "comment": null}, "count_line_items": {"type": "numeric", "index": 12, "name": "count_line_items", "comment": null}, "avg_line_item_count": {"type": "numeric", "index": 13, "name": "avg_line_item_count", "comment": null}, "count_customers": {"type": "bigint", "index": 14, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 15, "name": "count_customer_emails", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 16, "name": "order_adjusted_total", "comment": null}, "avg_order_value": {"type": "double precision", "index": 17, "name": "avg_order_value", "comment": null}, "shipping_cost": {"type": "double precision", "index": 18, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "double precision", "index": 19, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 20, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "double precision", "index": 21, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 22, "name": "refund_total_tax", "comment": null}, "total_discounts": {"type": "double precision", "index": 23, "name": "total_discounts", "comment": null}, "avg_discount": {"type": "double precision", "index": 24, "name": "avg_discount", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 25, "name": "shipping_discount_amount", "comment": null}, "avg_shipping_discount_amount": {"type": "double precision", "index": 26, "name": "avg_shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 27, "name": "percentage_calc_discount_amount", "comment": null}, "avg_percentage_calc_discount_amount": {"type": "double precision", "index": 28, "name": "avg_percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 29, "name": "fixed_amount_discount_amount", "comment": null}, "avg_fixed_amount_discount_amount": {"type": "double precision", "index": 30, "name": "avg_fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "numeric", "index": 31, "name": "count_discount_codes_applied", "comment": null}, "count_locations_ordered_from": {"type": "bigint", "index": 32, "name": "count_locations_ordered_from", "comment": null}, "count_orders_with_discounts": {"type": "bigint", "index": 33, "name": "count_orders_with_discounts", "comment": null}, "count_orders_with_refunds": {"type": "bigint", "index": 34, "name": "count_orders_with_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 36, "name": "last_order_timestamp", "comment": null}, "quantity_sold": {"type": "bigint", "index": 37, "name": "quantity_sold", "comment": null}, "quantity_refunded": {"type": "double precision", "index": 38, "name": "quantity_refunded", "comment": null}, "quantity_net": {"type": "double precision", "index": 39, "name": "quantity_net", "comment": null}, "avg_quantity_sold": {"type": "bigint", "index": 40, "name": "avg_quantity_sold", "comment": null}, "avg_quantity_net": {"type": "double precision", "index": 41, "name": "avg_quantity_net", "comment": null}, "count_variants_sold": {"type": "bigint", "index": 42, "name": "count_variants_sold", "comment": null}, "count_products_sold": {"type": "bigint", "index": 43, "name": "count_products_sold", "comment": null}, "quantity_gift_cards_sold": {"type": "double precision", "index": 44, "name": "quantity_gift_cards_sold", "comment": null}, "quantity_requiring_shipping": {"type": "double precision", "index": 45, "name": "quantity_requiring_shipping", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 46, "name": "count_abandoned_checkouts", "comment": null}, "count_customers_abandoned_checkout": {"type": "bigint", "index": 47, "name": "count_customers_abandoned_checkout", "comment": null}, "count_customer_emails_abandoned_checkout": {"type": "bigint", "index": 48, "name": "count_customer_emails_abandoned_checkout", "comment": null}, "count_fulfillment_attempted_delivery": {"type": "bigint", "index": 49, "name": "count_fulfillment_attempted_delivery", "comment": null}, "count_fulfillment_delayed": {"type": "bigint", "index": 50, "name": "count_fulfillment_delayed", "comment": null}, "count_fulfillment_delivered": {"type": "bigint", "index": 51, "name": "count_fulfillment_delivered", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 52, "name": "count_fulfillment_failure", "comment": null}, "count_fulfillment_in_transit": {"type": "bigint", "index": 53, "name": "count_fulfillment_in_transit", "comment": null}, "count_fulfillment_out_for_delivery": {"type": "bigint", "index": 54, "name": "count_fulfillment_out_for_delivery", "comment": null}, "count_fulfillment_ready_for_pickup": {"type": "bigint", "index": 55, "name": "count_fulfillment_ready_for_pickup", "comment": null}, "count_fulfillment_label_printed": {"type": "bigint", "index": 56, "name": "count_fulfillment_label_printed", "comment": null}, "count_fulfillment_label_purchased": {"type": "bigint", "index": 57, "name": "count_fulfillment_label_purchased", "comment": null}, "count_fulfillment_confirmed": {"type": "bigint", "index": 58, "name": "count_fulfillment_confirmed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__daily_shop"}, "model.shopify.shopify_gql__discounts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__discounts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"code": {"type": "text", "index": 1, "name": "code", "comment": null}, "discount_code_id": {"type": "integer", "index": 2, "name": "discount_code_id", "comment": null}, "discount_type": {"type": "text", "index": 3, "name": "discount_type", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_count": {"type": "integer", "index": 5, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 14, "name": "starts_at", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 17, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 18, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 20, "name": "usage_limit", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "allocation_method": {"type": "text", "index": 22, "name": "allocation_method", "comment": null}, "target_selection": {"type": "text", "index": 23, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 24, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 25, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 26, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 27, "name": "value_percentage", "comment": null}, "value_type": {"type": "text", "index": 28, "name": "value_type", "comment": null}, "unique_key": {"type": "text", "index": 29, "name": "unique_key", "comment": null}, "count_orders": {"type": "bigint", "index": 30, "name": "count_orders", "comment": null}, "avg_order_discount_amount": {"type": "double precision", "index": 31, "name": "avg_order_discount_amount", "comment": null}, "total_order_discount_amount": {"type": "double precision", "index": 32, "name": "total_order_discount_amount", "comment": null}, "total_order_line_items_price": {"type": "double precision", "index": 33, "name": "total_order_line_items_price", "comment": null}, "total_order_shipping_cost": {"type": "double precision", "index": 34, "name": "total_order_shipping_cost", "comment": null}, "total_order_refund_amount": {"type": "double precision", "index": 35, "name": "total_order_refund_amount", "comment": null}, "count_customers": {"type": "bigint", "index": 36, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 37, "name": "count_customer_emails", "comment": null}, "total_abandoned_checkout_discount_amount": {"type": "double precision", "index": 38, "name": "total_abandoned_checkout_discount_amount", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 39, "name": "count_abandoned_checkouts", "comment": null}, "count_abandoned_checkout_customers": {"type": "bigint", "index": 40, "name": "count_abandoned_checkout_customers", "comment": null}, "count_abandoned_checkout_customer_emails": {"type": "bigint", "index": 41, "name": "count_abandoned_checkout_customer_emails", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__discounts"}, "model.shopify.shopify_gql__inventory_levels": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__inventory_levels", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "integer", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "sku": {"type": "text", "index": 10, "name": "sku", "comment": null}, "is_inventory_item_deleted": {"type": "boolean", "index": 11, "name": "is_inventory_item_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "text", "index": 14, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "text", "index": 15, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 16, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 17, "name": "is_inventory_quantity_tracked", "comment": null}, "inventory_item_created_at": {"type": "timestamp without time zone", "index": 18, "name": "inventory_item_created_at", "comment": null}, "inventory_item_updated_at": {"type": "timestamp without time zone", "index": 19, "name": "inventory_item_updated_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 20, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 21, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 22, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 23, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 24, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 25, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 26, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "boolean", "index": 27, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 28, "name": "tracked_editable_reason", "comment": null}, "location_name": {"type": "text", "index": 29, "name": "location_name", "comment": null}, "is_location_deleted": {"type": "boolean", "index": 30, "name": "is_location_deleted", "comment": null}, "is_location_active": {"type": "boolean", "index": 31, "name": "is_location_active", "comment": null}, "address_1": {"type": "text", "index": 32, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 33, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 34, "name": "city", "comment": null}, "country": {"type": "text", "index": 35, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 36, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 37, "name": "country_name", "comment": null}, "is_legacy_location": {"type": "boolean", "index": 38, "name": "is_legacy_location", "comment": null}, "province": {"type": "text", "index": 39, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 40, "name": "province_code", "comment": null}, "phone": {"type": "character varying", "index": 41, "name": "phone", "comment": null}, "zip": {"type": "integer", "index": 42, "name": "zip", "comment": null}, "location_created_at": {"type": "timestamp without time zone", "index": 43, "name": "location_created_at", "comment": null}, "location_updated_at": {"type": "timestamp without time zone", "index": 44, "name": "location_updated_at", "comment": null}, "variant_id": {"type": "integer", "index": 45, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 46, "name": "product_id", "comment": null}, "variant_title": {"type": "text", "index": 47, "name": "variant_title", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 48, "name": "variant_inventory_policy", "comment": null}, "variant_price": {"type": "double precision", "index": 49, "name": "variant_price", "comment": null}, "variant_media_id": {"type": "integer", "index": 50, "name": "variant_media_id", "comment": null}, "is_variant_taxable": {"type": "boolean", "index": 51, "name": "is_variant_taxable", "comment": null}, "variant_barcode": {"type": "text", "index": 52, "name": "variant_barcode", "comment": null}, "variant_inventory_quantity": {"type": "integer", "index": 53, "name": "variant_inventory_quantity", "comment": null}, "variant_tax_code": {"type": "text", "index": 54, "name": "variant_tax_code", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 55, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 56, "name": "variant_updated_at", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 57, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 58, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "integer", "index": 59, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 60, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 61, "name": "variant_sellable_online_quantity", "comment": null}, "subtotal_sold": {"type": "double precision", "index": 62, "name": "subtotal_sold", "comment": null}, "quantity_sold": {"type": "bigint", "index": 63, "name": "quantity_sold", "comment": null}, "count_distinct_orders": {"type": "bigint", "index": 64, "name": "count_distinct_orders", "comment": null}, "count_distinct_customers": {"type": "bigint", "index": 65, "name": "count_distinct_customers", "comment": null}, "count_distinct_customer_emails": {"type": "bigint", "index": 66, "name": "count_distinct_customer_emails", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 67, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 68, "name": "last_order_timestamp", "comment": null}, "subtotal_sold_refunds": {"type": "double precision", "index": 69, "name": "subtotal_sold_refunds", "comment": null}, "quantity_sold_refunds": {"type": "double precision", "index": 70, "name": "quantity_sold_refunds", "comment": null}, "count_fulfillment_pending": {"type": "bigint", "index": 71, "name": "count_fulfillment_pending", "comment": null}, "count_fulfillment_open": {"type": "bigint", "index": 72, "name": "count_fulfillment_open", "comment": null}, "count_fulfillment_success": {"type": "bigint", "index": 73, "name": "count_fulfillment_success", "comment": null}, "count_fulfillment_cancelled": {"type": "bigint", "index": 74, "name": "count_fulfillment_cancelled", "comment": null}, "count_fulfillment_error": {"type": "bigint", "index": 75, "name": "count_fulfillment_error", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 76, "name": "count_fulfillment_failure", "comment": null}, "incoming_quantity": {"type": "bigint", "index": 77, "name": "incoming_quantity", "comment": null}, "on_hand_quantity": {"type": "bigint", "index": 78, "name": "on_hand_quantity", "comment": null}, "available_quantity": {"type": "bigint", "index": 79, "name": "available_quantity", "comment": null}, "committed_quantity": {"type": "bigint", "index": 80, "name": "committed_quantity", "comment": null}, "reserved_quantity": {"type": "bigint", "index": 81, "name": "reserved_quantity", "comment": null}, "damaged_quantity": {"type": "bigint", "index": 82, "name": "damaged_quantity", "comment": null}, "safety_stock_quantity": {"type": "bigint", "index": 83, "name": "safety_stock_quantity", "comment": null}, "quality_control_quantity": {"type": "bigint", "index": 84, "name": "quality_control_quantity", "comment": null}, "net_subtotal_sold": {"type": "double precision", "index": 85, "name": "net_subtotal_sold", "comment": null}, "net_quantity_sold": {"type": "double precision", "index": 86, "name": "net_quantity_sold", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__inventory_levels"}, "model.shopify.shopify_gql__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__line_item_enhanced", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"header_id": {"type": "integer", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "numeric(28,6)", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "numeric(28,6)", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "numeric(28,6)", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "numeric(28,6)", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "numeric(28,6)", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "numeric(28,6)", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "text", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "double precision", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "text", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "integer", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "source_relation": {"type": "text", "index": 37, "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.shopify.shopify_gql__line_item_enhanced"}, "model.shopify.shopify_gql__order_lines": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__order_lines", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}, "pre_tax_price": {"type": "double precision", "index": 27, "name": "pre_tax_price", "comment": null}, "order_line_tax": {"type": "double precision", "index": 28, "name": "order_line_tax", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 29, "name": "fulfillable_quantity", "comment": null}, "weight_unit": {"type": "text", "index": 30, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 31, "name": "weight_value", "comment": null}, "restock_types": {"type": "text", "index": 32, "name": "restock_types", "comment": null}, "refunded_quantity": {"type": "double precision", "index": 33, "name": "refunded_quantity", "comment": null}, "refunded_subtotal": {"type": "double precision", "index": 34, "name": "refunded_subtotal", "comment": null}, "quantity_net_refunds": {"type": "double precision", "index": 35, "name": "quantity_net_refunds", "comment": null}, "subtotal_net_refunds": {"type": "double precision", "index": 36, "name": "subtotal_net_refunds", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 37, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 38, "name": "variant_updated_at", "comment": null}, "inventory_item_id": {"type": "integer", "index": 39, "name": "inventory_item_id", "comment": null}, "media_id": {"type": "integer", "index": 40, "name": "media_id", "comment": null}, "variant_price": {"type": "double precision", "index": 41, "name": "variant_price", "comment": null}, "variant_sku": {"type": "text", "index": 42, "name": "variant_sku", "comment": null}, "variant_position": {"type": "integer", "index": 43, "name": "variant_position", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 44, "name": "variant_inventory_policy", "comment": null}, "variant_compare_at_price": {"type": "character varying", "index": 45, "name": "variant_compare_at_price", "comment": null}, "variant_is_taxable": {"type": "boolean", "index": 46, "name": "variant_is_taxable", "comment": null}, "variant_barcode": {"type": "text", "index": 47, "name": "variant_barcode", "comment": null}, "variant_inventory_quantity": {"type": "integer", "index": 48, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 49, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 50, "name": "variant_weight_unit", "comment": null}, "variant_tax_code": {"type": "text", "index": 51, "name": "variant_tax_code", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 52, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 53, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "integer", "index": 54, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 55, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 56, "name": "variant_sellable_online_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.shopify.shopify_gql__order_lines"}, "model.shopify.shopify_gql__order_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__order_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_url", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw": {"type": "text", "index": 89, "name": "metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe": {"type": "text", "index": 90, "name": "metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__order_metafields"}, "model.shopify.shopify_gql__orders": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__orders", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_url", "comment": null}, "order_adjustment_amount": {"type": "double precision", "index": 89, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 90, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "double precision", "index": 91, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 92, "name": "refund_total_tax", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 93, "name": "order_adjusted_total", "comment": null}, "line_item_count": {"type": "bigint", "index": 94, "name": "line_item_count", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 95, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 96, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_pres_currency_codes": {"type": "text", "index": 97, "name": "total_line_items_price_pres_currency_codes", "comment": null}, "total_line_items_price_shop_currency_codes": {"type": "text", "index": 98, "name": "total_line_items_price_shop_currency_codes", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 99, "name": "shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 100, "name": "percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 101, "name": "fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "bigint", "index": 102, "name": "count_discount_codes_applied", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 103, "name": "order_total_shipping_tax", "comment": null}, "order_tags": {"type": "text", "index": 104, "name": "order_tags", "comment": null}, "number_of_fulfillments": {"type": "bigint", "index": 105, "name": "number_of_fulfillments", "comment": null}, "fulfillment_services": {"type": "text", "index": 106, "name": "fulfillment_services", "comment": null}, "tracking_companies": {"type": "text", "index": 107, "name": "tracking_companies", "comment": null}, "tracking_numbers": {"type": "text", "index": 108, "name": "tracking_numbers", "comment": null}, "customer_order_seq_number": {"type": "bigint", "index": 109, "name": "customer_order_seq_number", "comment": null}, "new_vs_repeat": {"type": "text", "index": 110, "name": "new_vs_repeat", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__orders"}, "model.shopify.shopify_gql__product_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__product_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bc_brenbre": {"type": "text", "index": 14, "name": "metafield_bea81c1795a612d8fc3a232b156467bc_brenbre", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42": {"type": "text", "index": 15, "name": "metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__product_metafields"}, "model.shopify.shopify_gql__product_variant_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__product_variant_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}, "weight": {"type": "double precision", "index": 24, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__product_variant_metafields"}, "model.shopify.shopify_gql__products": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__products", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}, "collections": {"type": "text", "index": 14, "name": "collections", "comment": null}, "tags": {"type": "text", "index": 15, "name": "tags", "comment": null}, "count_variants": {"type": "bigint", "index": 16, "name": "count_variants", "comment": null}, "has_product_media": {"type": "boolean", "index": 17, "name": "has_product_media", "comment": null}, "total_quantity_sold": {"type": "bigint", "index": 18, "name": "total_quantity_sold", "comment": null}, "subtotal_sold": {"type": "double precision", "index": 19, "name": "subtotal_sold", "comment": null}, "quantity_sold_net_refunds": {"type": "double precision", "index": 20, "name": "quantity_sold_net_refunds", "comment": null}, "subtotal_sold_net_refunds": {"type": "double precision", "index": 21, "name": "subtotal_sold_net_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_quantity_per_order_line": {"type": "numeric", "index": 24, "name": "avg_quantity_per_order_line", "comment": null}, "product_total_discount": {"type": "double precision", "index": 25, "name": "product_total_discount", "comment": null}, "product_avg_discount_per_order_line": {"type": "double precision", "index": 26, "name": "product_avg_discount_per_order_line", "comment": null}, "product_total_tax": {"type": "double precision", "index": 27, "name": "product_total_tax", "comment": null}, "product_avg_tax_per_order_line": {"type": "double precision", "index": 28, "name": "product_avg_tax_per_order_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__products"}, "model.shopify.shopify_gql__shop_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__shop_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 16, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 17, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 18, "name": "email", "comment": null}, "domain": {"type": "text", "index": 19, "name": "domain", "comment": null}, "phone": {"type": "character varying", "index": 20, "name": "phone", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 21, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 22, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 23, "name": "timezone_offset_minutes", "comment": null}, "iana_timezone": {"type": "text", "index": 24, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 25, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 26, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "has_shipping_taxes": {"type": "boolean", "index": 29, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 30, "name": "has_taxes_included_in_price", "comment": null}, "has_storefront": {"type": "boolean", "index": 31, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 32, "name": "has_checkout_api_supported", "comment": null}, "money_format": {"type": "text", "index": 33, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 34, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 35, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 36, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 37, "name": "plan_display_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 38, "name": "is_password_enabled", "comment": null}, "is_setup_required": {"type": "boolean", "index": 39, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 40, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 41, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 42, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 43, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 44, "name": "unique_key", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew": {"type": "text", "index": 45, "name": "metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__shop_metafields"}, "model.shopify.shopify_gql__transactions": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__transactions", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "integer", "index": 3, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 4, "name": "amount_pres", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "device_id": {"type": "text", "index": 6, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 7, "name": "gateway", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 8, "name": "amount_pres_currency_code", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 9, "name": "amount_shop_currency_code", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 11, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 12, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 13, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 14, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 15, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 17, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 18, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 19, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 20, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 21, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 22, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "text", "index": 23, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 24, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 26, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 29, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 30, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 31, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 32, "name": "unique_key", "comment": null}, "payment_method": {"type": "text", "index": 33, "name": "payment_method", "comment": null}, "parent_created_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "parent_created_timestamp", "comment": null}, "parent_kind": {"type": "text", "index": 35, "name": "parent_kind", "comment": null}, "parent_amount": {"type": "double precision", "index": 36, "name": "parent_amount", "comment": null}, "parent_status": {"type": "text", "index": 37, "name": "parent_status", "comment": null}, "location_id": {"type": "integer", "index": 38, "name": "location_id", "comment": null}, "source_name": {"type": "text", "index": 39, "name": "source_name", "comment": null}, "exchange_rate": {"type": "numeric", "index": 40, "name": "exchange_rate", "comment": null}, "currency_exchange_calculated_amount": {"type": "double precision", "index": 41, "name": "currency_exchange_calculated_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__transactions"}, "model.shopify_source.stg_shopify__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 18, "name": "has_buyer_accepted_marketing", "comment": null}, "cart_token": {"type": "text", "index": 19, "name": "cart_token", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 20, "name": "created_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 21, "name": "closed_at", "comment": null}, "shop_currency": {"type": "text", "index": 22, "name": "shop_currency", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 24, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 25, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 26, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 27, "name": "gateway", "comment": null}, "checkout_id": {"type": "integer", "index": 28, "name": "checkout_id", "comment": null}, "landing_site_base_url": {"type": "text", "index": 29, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 30, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 31, "name": "name", "comment": null}, "note": {"type": "integer", "index": 32, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 33, "name": "phone", "comment": null}, "presentment_currency": {"type": "text", "index": 34, "name": "presentment_currency", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 36, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 37, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 38, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 39, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 40, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 41, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 42, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 43, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 44, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 45, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 46, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 47, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 48, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 49, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 50, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 51, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 52, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 53, "name": "has_taxes_included", "comment": null}, "token": {"type": "text", "index": 54, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_duties": {"type": "integer", "index": 56, "name": "total_duties", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 57, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 58, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 59, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 60, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 61, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 62, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 63, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 64, "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.shopify_source.stg_shopify__abandoned_checkout"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "discount_id": {"type": "bigint", "index": 3, "name": "discount_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "type": {"type": "character varying", "index": 5, "name": "type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 10, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"abandoned_checkout_shipping_line_id": {"type": "text", "index": 1, "name": "abandoned_checkout_shipping_line_id", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "shipping_code": {"type": "text", "index": 5, "name": "shipping_code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 7, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 8, "name": "delivery_expectation_range_max", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 9, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 10, "name": "delivery_expectation_type", "comment": null}, "discounted_price": {"type": "integer", "index": 11, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "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.shopify_source.stg_shopify__abandoned_checkout_shipping_line"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.stg_shopify__abandoned_checkout_tmp"}, "model.shopify_source.stg_shopify__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection"}, "model.shopify_source.stg_shopify__collection_product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection_product"}, "model.shopify_source.stg_shopify__collection_product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp"}, "model.shopify_source.stg_shopify__collection_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_tmp"}, "model.shopify_source.stg_shopify__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__customer"}, "model.shopify_source.stg_shopify__customer_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__customer_tag"}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp"}, "model.shopify_source.stg_shopify__customer_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tmp"}, "model.shopify_source.stg_shopify__discount_allocation": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"amount": {"type": "double precision", "index": 1, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 2, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 3, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 5, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 8, "name": "order_line_id", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_allocation"}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.stg_shopify__discount_allocation_tmp"}, "model.shopify_source.stg_shopify__discount_application": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocation_method": {"type": "character varying", "index": 1, "name": "allocation_method", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 3, "name": "description", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 5, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 6, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 7, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 8, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 9, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_application"}, "model.shopify_source.stg_shopify__discount_application_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp"}, "model.shopify_source.stg_shopify__discount_code_app": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_app"}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp"}, "model.shopify_source.stg_shopify__discount_code_basic": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_basic"}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp"}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_bxgy"}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp"}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_free_shipping"}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"}, "model.shopify_source.stg_shopify__discount_redeem_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_redeem_code"}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.stg_shopify__discount_redeem_code_tmp"}, "model.shopify_source.stg_shopify__fulfillment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "service": {"type": "text", "index": 5, "name": "service", "comment": null}, "shipment_status": {"type": "integer", "index": 6, "name": "shipment_status", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 8, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 9, "name": "tracking_number", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__fulfillment"}, "model.shopify_source.stg_shopify__fulfillment_event": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_event_id": {"type": "integer", "index": 1, "name": "fulfillment_event_id", "comment": null}, "fulfillment_id": {"type": "integer", "index": 2, "name": "fulfillment_id", "comment": null}, "shop_id": {"type": "integer", "index": 3, "name": "shop_id", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "message": {"type": "text", "index": 6, "name": "message", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 8, "name": "happened_at", "comment": null}, "address_1": {"type": "integer", "index": 9, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 10, "name": "city", "comment": null}, "province": {"type": "text", "index": 11, "name": "province", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "zip": {"type": "text", "index": 13, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 14, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 15, "name": "longitude", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "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.shopify_source.stg_shopify__fulfillment_event"}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp"}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp"}, "model.shopify_source.stg_shopify__inventory_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_item_id": {"type": "bigint", "index": 1, "name": "inventory_item_id", "comment": null}, "sku": {"type": "text", "index": 2, "name": "sku", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 4, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 5, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 6, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 7, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 8, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 9, "name": "is_inventory_quantity_tracked", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 10, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 11, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 12, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 13, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 14, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 15, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 16, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 17, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 18, "name": "tracked_editable_reason", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "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.shopify_source.stg_shopify__inventory_item"}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp"}, "model.shopify_source.stg_shopify__inventory_level": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "available_quantity": {"type": "integer", "index": 4, "name": "available_quantity", "comment": null}, "can_deactivate": {"type": "boolean", "index": 5, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_level"}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp"}, "model.shopify_source.stg_shopify__inventory_quantity": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_quantity_id": {"type": "bigint", "index": 1, "name": "inventory_quantity_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "inventory_state_name": {"type": "text", "index": 4, "name": "inventory_state_name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_quantity"}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp"}, "model.shopify_source.stg_shopify__location": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "is_active": {"type": "boolean", "index": 4, "name": "is_active", "comment": null}, "address_1": {"type": "text", "index": 5, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 6, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 10, "name": "country_name", "comment": null}, "is_legacy": {"type": "boolean", "index": 11, "name": "is_legacy", "comment": null}, "localized_country_name": {"type": "text", "index": 12, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 13, "name": "localized_province_name", "comment": null}, "phone": {"type": "integer", "index": 14, "name": "phone", "comment": null}, "province": {"type": "text", "index": 15, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 16, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 20, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 21, "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.shopify_source.stg_shopify__location"}, "model.shopify_source.stg_shopify__location_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.stg_shopify__location_tmp"}, "model.shopify_source.stg_shopify__media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media"}, "model.shopify_source.stg_shopify__media_image": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media_image"}, "model.shopify_source.stg_shopify__media_image_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_image_tmp"}, "model.shopify_source.stg_shopify__media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_tmp"}, "model.shopify_source.stg_shopify__metafield": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "stg_shopify__metafield", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"metafield_id": {"type": "bigint", "index": 1, "name": "metafield_id", "comment": null}, "description": {"type": "integer", "index": 2, "name": "description", "comment": null}, "namespace": {"type": "text", "index": 3, "name": "namespace", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "value_type": {"type": "text", "index": 6, "name": "value_type", "comment": null}, "owner_resource_id": {"type": "bigint", "index": 7, "name": "owner_resource_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "metafield_reference": {"type": "text", "index": 12, "name": "metafield_reference", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__metafield"}, "model.shopify_source.stg_shopify__metafield_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__metafield_tmp"}, "model.shopify_source.stg_shopify__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "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.shopify_source.stg_shopify__order"}, "model.shopify_source.stg_shopify__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "bigint", "index": 1, "name": "order_adjustment_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "amount_set": {"type": "integer", "index": 5, "name": "amount_set", "comment": null}, "tax_amount": {"type": "double precision", "index": 6, "name": "tax_amount", "comment": null}, "tax_amount_set": {"type": "integer", "index": 7, "name": "tax_amount_set", "comment": null}, "kind": {"type": "text", "index": 8, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 9, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_adjustment"}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp"}, "model.shopify_source.stg_shopify__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_discount_code"}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp"}, "model.shopify_source.stg_shopify__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "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.shopify_source.stg_shopify__order_line"}, "model.shopify_source.stg_shopify__order_line_refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_refund_id": {"type": "bigint", "index": 1, "name": "order_line_refund_id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "order_line_id": {"type": "bigint", "index": 3, "name": "order_line_id", "comment": null}, "subtotal": {"type": "integer", "index": 4, "name": "subtotal", "comment": null}, "subtotal_set": {"type": "integer", "index": 5, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 6, "name": "total_tax", "comment": null}, "total_tax_set": {"type": "integer", "index": 7, "name": "total_tax_set", "comment": null}, "quantity": {"type": "integer", "index": 8, "name": "quantity", "comment": null}, "refund_id": {"type": "bigint", "index": 9, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 10, "name": "restock_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_line_refund"}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp"}, "model.shopify_source.stg_shopify__order_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_tmp"}, "model.shopify_source.stg_shopify__order_note_attribute": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_note_attribute"}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp"}, "model.shopify_source.stg_shopify__order_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 3, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 5, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 6, "name": "discounted_price", "comment": null}, "discounted_price_set": {"type": "text", "index": 7, "name": "discounted_price_set", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 10, "name": "price_set", "comment": null}, "is_third_party_required": {"type": "boolean", "index": 11, "name": "is_third_party_required", "comment": null}, "source": {"type": "text", "index": 12, "name": "source", "comment": null}, "title": {"type": "text", "index": 13, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_line"}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp"}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_tax_line"}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"}, "model.shopify_source.stg_shopify__order_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_tag"}, "model.shopify_source.stg_shopify__order_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp"}, "model.shopify_source.stg_shopify__order_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tmp"}, "model.shopify_source.stg_shopify__order_url_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "key": {"type": "text", "index": 2, "name": "key", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_url_tag"}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp"}, "model.shopify_source.stg_shopify__product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product"}, "model.shopify_source.stg_shopify__product_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_media"}, "model.shopify_source.stg_shopify__product_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_media_tmp"}, "model.shopify_source.stg_shopify__product_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product_tag"}, "model.shopify_source.stg_shopify__product_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp"}, "model.shopify_source.stg_shopify__product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tmp"}, "model.shopify_source.stg_shopify__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "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.shopify_source.stg_shopify__product_variant"}, "model.shopify_source.stg_shopify__product_variant_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_variant_media"}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_variant_media_tmp"}, "model.shopify_source.stg_shopify__product_variant_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp"}, "model.shopify_source.stg_shopify__refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"refund_id": {"type": "bigint", "index": 1, "name": "refund_id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "order_id": {"type": "bigint", "index": 3, "name": "order_id", "comment": null}, "restock": {"type": "boolean", "index": 4, "name": "restock", "comment": null}, "total_duties_set": {"type": "integer", "index": 5, "name": "total_duties_set", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__refund"}, "model.shopify_source.stg_shopify__refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.stg_shopify__refund_tmp"}, "model.shopify_source.stg_shopify__shop": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify_source.stg_shopify__shop"}, "model.shopify_source.stg_shopify__shop_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__shop_tmp"}, "model.shopify_source.stg_shopify__tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tax_line"}, "model.shopify_source.stg_shopify__tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp"}, "model.shopify_source.stg_shopify__tender_transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "payment_method": {"type": "text", "index": 5, "name": "payment_method", "comment": null}, "remote_reference": {"type": "integer", "index": 6, "name": "remote_reference", "comment": null}, "user_id": {"type": "integer", "index": 7, "name": "user_id", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tender_transaction"}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.stg_shopify__tender_transaction_tmp"}, "model.shopify_source.stg_shopify__transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "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.shopify_source.stg_shopify__transaction"}, "model.shopify_source.stg_shopify__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__transaction_tmp"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "checkout_id": {"type": "integer", "index": 20, "name": "checkout_id", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "note": {"type": "text", "index": 22, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 23, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 24, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 25, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 26, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 27, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 28, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 29, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 30, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 31, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 32, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 33, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 34, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 35, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 36, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 37, "name": "shipping_address_zip", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 38, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 39, "name": "subtotal_price_shop_currency_code", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_pres_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 42, "name": "has_taxes_included", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 43, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 44, "name": "total_discount_shop_currency_code", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_pres_currency_code", "comment": null}, "total_duties_shop_amount": {"type": "double precision", "index": 47, "name": "total_duties_shop_amount", "comment": null}, "total_duties_shop_currency_code": {"type": "text", "index": 48, "name": "total_duties_shop_currency_code", "comment": null}, "total_duties_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_pres_amount", "comment": null}, "total_duties_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_pres_currency_code", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 51, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_shop_currency_code": {"type": "text", "index": 52, "name": "total_line_items_price_shop_currency_code", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 55, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 56, "name": "total_price_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 59, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 60, "name": "total_tax_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_pres_currency_code", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 63, "name": "completed_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 64, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 65, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 66, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 67, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 5, "name": "index", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"}, "model.shopify_source.stg_shopify_gql__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__collection"}, "model.shopify_source.stg_shopify_gql__collection_product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 5, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__collection_product"}, "model.shopify_source.stg_shopify_gql__collection_product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.stg_shopify_gql__collection_product_tmp"}, "model.shopify_source.stg_shopify_gql__collection_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.stg_shopify_gql__collection_tmp"}, "model.shopify_source.stg_shopify_gql__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer"}, "model.shopify_source.stg_shopify_gql__customer_address": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_address_id": {"type": "integer", "index": 1, "name": "customer_address_id", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "company": {"type": "text", "index": 6, "name": "company", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 8, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 10, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 11, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 12, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 13, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 15, "name": "phone", "comment": null}, "province": {"type": "text", "index": 16, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 17, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 18, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 19, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 20, "name": "timezone", "comment": null}, "has_coordinates_validated": {"type": "boolean", "index": 21, "name": "has_coordinates_validated", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 22, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 23, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 24, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_address"}, "model.shopify_source.stg_shopify_gql__customer_address_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_address_tmp"}, "model.shopify_source.stg_shopify_gql__customer_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag"}, "model.shopify_source.stg_shopify_gql__customer_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag_tmp"}, "model.shopify_source.stg_shopify_gql__customer_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tmp"}, "model.shopify_source.stg_shopify_gql__customer_visit": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_visit_id": {"type": "integer", "index": 1, "name": "customer_visit_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 4, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 5, "name": "landing_page_html", "comment": null}, "referral_code": {"type": "text", "index": 6, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 7, "name": "referral_info_html", "comment": null}, "referring_site": {"type": "text", "index": 8, "name": "referring_site", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 10, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 11, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 12, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 13, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 14, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 15, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 16, "name": "utm_parameters_term", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 17, "name": "occurred_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit"}, "model.shopify_source.stg_shopify_gql__customer_visit_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit_tmp"}, "model.shopify_source.stg_shopify_gql__discount_allocation": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocated_pres_amount": {"type": "double precision", "index": 1, "name": "allocated_pres_amount", "comment": null}, "allocated_pres_currency_code": {"type": "text", "index": 2, "name": "allocated_pres_currency_code", "comment": null}, "allocated_shop_amount": {"type": "double precision", "index": 3, "name": "allocated_shop_amount", "comment": null}, "allocated_shop_currency_code": {"type": "text", "index": 4, "name": "allocated_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 5, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 6, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 7, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation"}, "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_source.stg_shopify_gql__discount_allocation_tmp"}, "model.shopify_source.stg_shopify_gql__discount_application": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocation_method": {"type": "text", "index": 1, "name": "allocation_method", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_percentage": {"type": "double precision", "index": 8, "name": "value_percentage", "comment": null}, "value_currency_code": {"type": "text", "index": 9, "name": "value_currency_code", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_application"}, "model.shopify_source.stg_shopify_gql__discount_application_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_source.stg_shopify_gql__discount_application_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_app": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app"}, "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_app_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_basic": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic"}, "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_basic_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 13, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 14, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 17, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 18, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy"}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping"}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"}, "model.shopify_source.stg_shopify_gql__discount_redeem_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code"}, "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "service": {"type": "text", "index": 5, "name": "service", "comment": null}, "shipment_status": {"type": "text", "index": 6, "name": "shipment_status", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 12, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment"}, "model.shopify_source.stg_shopify_gql__fulfillment_event": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_event_id": {"type": "integer", "index": 1, "name": "fulfillment_event_id", "comment": null}, "fulfillment_id": {"type": "integer", "index": 2, "name": "fulfillment_id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "message": {"type": "text", "index": 4, "name": "message", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 5, "name": "estimated_delivery_at", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 6, "name": "happened_at", "comment": null}, "address_1": {"type": "text", "index": 7, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "province": {"type": "text", "index": 9, "name": "province", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "zip": {"type": "text", "index": 11, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 12, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 13, "name": "longitude", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 17, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event"}, "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_order_line_item_id": {"type": "integer", "index": 1, "name": "fulfillment_order_line_item_id", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 5, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 6, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 7, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 9, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 10, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 11, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 12, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 13, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 15, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 16, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 17, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 18, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 19, "name": "weight_value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 20, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 22, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_source.stg_shopify_gql__fulfillment_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "tracking_company": {"type": "text", "index": 3, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "text", "index": 4, "name": "tracking_number", "comment": null}, "tracking_url": {"type": "text", "index": 5, "name": "tracking_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 8, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_item_id": {"type": "integer", "index": 1, "name": "inventory_item_id", "comment": null}, "sku": {"type": "text", "index": 2, "name": "sku", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 4, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 5, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "text", "index": 6, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "text", "index": 7, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 8, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 9, "name": "is_inventory_quantity_tracked", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 10, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 11, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 12, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 13, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 14, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 15, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 16, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "boolean", "index": 17, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item"}, "model.shopify_source.stg_shopify_gql__inventory_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.stg_shopify_gql__inventory_item_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_level": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "integer", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level"}, "model.shopify_source.stg_shopify_gql__inventory_level_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.stg_shopify_gql__inventory_level_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_quantity": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_quantity_id": {"type": "integer", "index": 1, "name": "inventory_quantity_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 3, "name": "inventory_level_id", "comment": null}, "inventory_state_name": {"type": "text", "index": 4, "name": "inventory_state_name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 9, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity"}, "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_source.stg_shopify_gql__inventory_quantity_tmp"}, "model.shopify_source.stg_shopify_gql__location": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__location", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "is_active": {"type": "boolean", "index": 4, "name": "is_active", "comment": null}, "address_1": {"type": "text", "index": 5, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 6, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 10, "name": "country_name", "comment": null}, "is_legacy": {"type": "boolean", "index": 11, "name": "is_legacy", "comment": null}, "phone": {"type": "character varying", "index": 12, "name": "phone", "comment": null}, "province": {"type": "text", "index": 13, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 14, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 15, "name": "zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__location"}, "model.shopify_source.stg_shopify_gql__location_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__location_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__location_tmp"}, "model.shopify_source.stg_shopify_gql__media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "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}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media"}, "model.shopify_source.stg_shopify_gql__media_image": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_image", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 8, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media_image"}, "model.shopify_source.stg_shopify_gql__media_image_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_image_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media_image_tmp"}, "model.shopify_source.stg_shopify_gql__media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_source.stg_shopify_gql__media_tmp"}, "model.shopify_source.stg_shopify_gql__metafield": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__metafield", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"metafield_id": {"type": "integer", "index": 1, "name": "metafield_id", "comment": null}, "description": {"type": "text", "index": 2, "name": "description", "comment": null}, "namespace": {"type": "text", "index": 3, "name": "namespace", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "value_type": {"type": "text", "index": 6, "name": "value_type", "comment": null}, "owner_resource_id": {"type": "integer", "index": 7, "name": "owner_resource_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "metafield_reference": {"type": "text", "index": 12, "name": "metafield_reference", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 15, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__metafield"}, "model.shopify_source.stg_shopify_gql__metafield_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__metafield_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__metafield_tmp"}, "model.shopify_source.stg_shopify_gql__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order"}, "model.shopify_source.stg_shopify_gql__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "integer", "index": 1, "name": "order_adjustment_id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 3, "name": "amount_pres", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 4, "name": "amount_pres_currency_code", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 6, "name": "amount_shop_currency_code", "comment": null}, "tax_amount_pres": {"type": "double precision", "index": 7, "name": "tax_amount_pres", "comment": null}, "tax_amount_pres_currency_code": {"type": "text", "index": 8, "name": "tax_amount_pres_currency_code", "comment": null}, "tax_amount_shop": {"type": "double precision", "index": 9, "name": "tax_amount_shop", "comment": null}, "tax_amount_shop_currency_code": {"type": "text", "index": 10, "name": "tax_amount_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 11, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 14, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment"}, "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment_tmp"}, "model.shopify_source.stg_shopify_gql__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code"}, "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_source.stg_shopify_gql__order_discount_code_tmp"}, "model.shopify_source.stg_shopify_gql__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line"}, "model.shopify_source.stg_shopify_gql__order_line_refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_refund_id": {"type": "integer", "index": 1, "name": "order_line_refund_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "subtotal_pres_amount": {"type": "double precision", "index": 4, "name": "subtotal_pres_amount", "comment": null}, "subtotal_pres_currency_code": {"type": "text", "index": 5, "name": "subtotal_pres_currency_code", "comment": null}, "subtotal_shop_amount": {"type": "double precision", "index": 6, "name": "subtotal_shop_amount", "comment": null}, "subtotal_shop_currency_code": {"type": "text", "index": 7, "name": "subtotal_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 8, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 9, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 10, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 11, "name": "total_tax_shop_currency_code", "comment": null}, "quantity": {"type": "double precision", "index": 12, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 13, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 14, "name": "restock_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 17, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund"}, "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_source.stg_shopify_gql__order_line_refund_tmp"}, "model.shopify_source.stg_shopify_gql__order_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_note_attribute": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute"}, "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"}, "model.shopify_source.stg_shopify_gql__order_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "carrier_identifier": {"type": "text", "index": 3, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "delivery_category": {"type": "text", "index": 5, "name": "delivery_category", "comment": null}, "discounted_price_pres_amount": {"type": "double precision", "index": 6, "name": "discounted_price_pres_amount", "comment": null}, "discounted_price_pres_currency_code": {"type": "text", "index": 7, "name": "discounted_price_pres_currency_code", "comment": null}, "discounted_price_shop_amount": {"type": "double precision", "index": 8, "name": "discounted_price_shop_amount", "comment": null}, "discounted_price_shop_currency_code": {"type": "text", "index": 9, "name": "discounted_price_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 10, "name": "phone", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 11, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 12, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 13, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 14, "name": "price_shop_currency_code", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 19, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line"}, "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 3, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 4, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 5, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 6, "name": "price_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 7, "name": "rate", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_tag"}, "model.shopify_source.stg_shopify_gql__order_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_tag_tmp"}, "model.shopify_source.stg_shopify_gql__order_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_source.stg_shopify_gql__order_tmp"}, "model.shopify_source.stg_shopify_gql__product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product"}, "model.shopify_source.stg_shopify_gql__product_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "unique_key": {"type": "text", "index": 5, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_media"}, "model.shopify_source.stg_shopify_gql__product_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.stg_shopify_gql__product_media_tmp"}, "model.shopify_source.stg_shopify_gql__product_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tag"}, "model.shopify_source.stg_shopify_gql__product_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tag_tmp"}, "model.shopify_source.stg_shopify_gql__product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tmp"}, "model.shopify_source.stg_shopify_gql__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_variant"}, "model.shopify_source.stg_shopify_gql__product_variant_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 4, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media"}, "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_source.stg_shopify_gql__product_variant_media_tmp"}, "model.shopify_source.stg_shopify_gql__product_variant_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.stg_shopify_gql__product_variant_tmp"}, "model.shopify_source.stg_shopify_gql__refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"refund_id": {"type": "integer", "index": 1, "name": "refund_id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 4, "name": "user_id", "comment": null}, "return_id": {"type": "integer", "index": 5, "name": "return_id", "comment": null}, "total_refunded_pres_amount": {"type": "double precision", "index": 6, "name": "total_refunded_pres_amount", "comment": null}, "total_refunded_pres_currency_code": {"type": "text", "index": 7, "name": "total_refunded_pres_currency_code", "comment": null}, "total_refunded_shop_amount": {"type": "double precision", "index": 8, "name": "total_refunded_shop_amount", "comment": null}, "total_refunded_shop_currency_code": {"type": "text", "index": 9, "name": "total_refunded_shop_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__refund"}, "model.shopify_source.stg_shopify_gql__refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_source.stg_shopify_gql__refund_tmp"}, "model.shopify_source.stg_shopify_gql__shop": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 16, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 17, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 18, "name": "email", "comment": null}, "domain": {"type": "text", "index": 19, "name": "domain", "comment": null}, "phone": {"type": "character varying", "index": 20, "name": "phone", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 21, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 22, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 23, "name": "timezone_offset_minutes", "comment": null}, "iana_timezone": {"type": "text", "index": 24, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 25, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 26, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "has_shipping_taxes": {"type": "boolean", "index": 29, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 30, "name": "has_taxes_included_in_price", "comment": null}, "has_storefront": {"type": "boolean", "index": 31, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 32, "name": "has_checkout_api_supported", "comment": null}, "money_format": {"type": "text", "index": 33, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 34, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 35, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 36, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 37, "name": "plan_display_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 38, "name": "is_password_enabled", "comment": null}, "is_setup_required": {"type": "boolean", "index": 39, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 40, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 41, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 42, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 43, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 44, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__shop"}, "model.shopify_source.stg_shopify_gql__shop_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__shop_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__shop_tmp"}, "model.shopify_source.stg_shopify_gql__tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 3, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 4, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 5, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 6, "name": "price_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 7, "name": "rate", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tax_line"}, "model.shopify_source.stg_shopify_gql__tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tax_line_tmp"}, "model.shopify_source.stg_shopify_gql__tender_transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "payment_method": {"type": "text", "index": 5, "name": "payment_method", "comment": null}, "remote_reference": {"type": "text", "index": 6, "name": "remote_reference", "comment": null}, "user_id": {"type": "integer", "index": 7, "name": "user_id", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction"}, "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_source.stg_shopify_gql__tender_transaction_tmp"}, "model.shopify_source.stg_shopify_gql__transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "integer", "index": 3, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 4, "name": "amount_pres", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "device_id": {"type": "text", "index": 6, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 7, "name": "gateway", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 8, "name": "amount_pres_currency_code", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 9, "name": "amount_shop_currency_code", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 11, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 12, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 13, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 14, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 15, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 17, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 18, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 19, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 20, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 21, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 22, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "text", "index": 23, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 24, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 26, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 29, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 30, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 31, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 32, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__transaction"}, "model.shopify_source.stg_shopify_gql__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__transaction_tmp"}}, "sources": {"source.shopify_source.shopify.abandoned_checkout": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.shopify.abandoned_checkout"}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code"}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line"}, "source.shopify_source.shopify.collection": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection"}, "source.shopify_source.shopify.collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection_product"}, "source.shopify_source.shopify.customer": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer"}, "source.shopify_source.shopify.customer_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer_tag"}, "source.shopify_source.shopify.discount_allocation": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.shopify.discount_allocation"}, "source.shopify_source.shopify.discount_application": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_application"}, "source.shopify_source.shopify.discount_code_app": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_app"}, "source.shopify_source.shopify.discount_code_basic": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_basic"}, "source.shopify_source.shopify.discount_code_bxgy": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_bxgy"}, "source.shopify_source.shopify.discount_code_free_shipping": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_free_shipping"}, "source.shopify_source.shopify.discount_redeem_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.shopify.discount_redeem_code"}, "source.shopify_source.shopify.fulfillment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment"}, "source.shopify_source.shopify.fulfillment_event": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment_event"}, "source.shopify_source.shopify_graphql.abandoned_checkout": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_source.shopify_graphql.abandoned_checkout"}, "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"}, "source.shopify_source.shopify_graphql.collection": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.shopify_graphql.collection"}, "source.shopify_source.shopify_graphql.collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.shopify_graphql.collection_product"}, "source.shopify_source.shopify_graphql.customer_address": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_address"}, "source.shopify_source.shopify_graphql.customer": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer"}, "source.shopify_source.shopify_graphql.customer_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_tag"}, "source.shopify_source.shopify_graphql.customer_visit": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_visit_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_visit"}, "source.shopify_source.shopify_graphql.discount_allocation": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_source.shopify_graphql.discount_allocation"}, "source.shopify_source.shopify_graphql.discount_application": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_source.shopify_graphql.discount_application"}, "source.shopify_source.shopify_graphql.discount_code_app": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_app"}, "source.shopify_source.shopify_graphql.discount_code_basic": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_basic"}, "source.shopify_source.shopify_graphql.discount_code_bxgy": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_bxgy"}, "source.shopify_source.shopify_graphql.discount_code_free_shipping": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_free_shipping"}, "source.shopify_source.shopify_graphql.discount_redeem_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_source.shopify_graphql.discount_redeem_code"}, "source.shopify_source.shopify_graphql.fulfillment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_source.shopify_graphql.fulfillment"}, "source.shopify_source.shopify_graphql.fulfillment_event": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_event"}, "source.shopify_source.shopify_graphql.fulfillment_order_line_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_order_line_item"}, "source.shopify_source.shopify_graphql.fulfillment_tracking_info": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_tracking_info"}, "source.shopify_source.shopify_graphql.inventory_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.shopify_graphql.inventory_item"}, "source.shopify_source.shopify_graphql.inventory_level": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.shopify_graphql.inventory_level"}, "source.shopify_source.shopify_graphql.inventory_quantity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_source.shopify_graphql.inventory_quantity"}, "source.shopify_source.shopify_graphql.location": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.location"}, "source.shopify_source.shopify_graphql.media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_source.shopify_graphql.media"}, "source.shopify_source.shopify_graphql.media_image": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.media_image"}, "source.shopify_source.shopify_graphql.metafield": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.metafield"}, "source.shopify_source.shopify_graphql.order_adjustment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_adjustment"}, "source.shopify_source.shopify_graphql.order": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_source.shopify_graphql.order"}, "source.shopify_source.shopify_graphql.order_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_source.shopify_graphql.order_discount_code"}, "source.shopify_source.shopify_graphql.order_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_line"}, "source.shopify_source.shopify_graphql.order_line_refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_source.shopify_graphql.order_line_refund"}, "source.shopify_source.shopify_graphql.order_note_attribute": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_note_attribute"}, "source.shopify_source.shopify_graphql.order_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_shipping_line"}, "source.shopify_source.shopify_graphql.order_shipping_tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_shipping_tax_line"}, "source.shopify_source.shopify_graphql.order_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_tag"}, "source.shopify_source.shopify_graphql.product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.product"}, "source.shopify_source.shopify_graphql.product_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.shopify_graphql.product_media"}, "source.shopify_source.shopify_graphql.product_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.product_tag"}, "source.shopify_source.shopify_graphql.product_variant": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.shopify_graphql.product_variant"}, "source.shopify_source.shopify_graphql.product_variant_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_source.shopify_graphql.product_variant_media"}, "source.shopify_source.shopify_graphql.refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_source.shopify_graphql.refund"}, "source.shopify_source.shopify_graphql.shop": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.shop"}, "source.shopify_source.shopify_graphql.tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.tax_line"}, "source.shopify_source.shopify_graphql.tender_transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_source.shopify_graphql.tender_transaction"}, "source.shopify_source.shopify_graphql.transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.transaction"}, "source.shopify_source.shopify.inventory_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_item"}, "source.shopify_source.shopify.inventory_level": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_level"}, "source.shopify_source.shopify.inventory_quantity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_quantity"}, "source.shopify_source.shopify.location": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.shopify.location"}, "source.shopify_source.shopify.media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media"}, "source.shopify_source.shopify.media_image": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media_image"}, "source.shopify_source.shopify.metafield": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.metafield"}, "source.shopify_source.shopify.order_adjustment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_adjustment"}, "source.shopify_source.shopify.order": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order"}, "source.shopify_source.shopify.order_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_discount_code"}, "source.shopify_source.shopify.order_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line"}, "source.shopify_source.shopify.order_line_refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line_refund"}, "source.shopify_source.shopify.order_note_attribute": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_note_attribute"}, "source.shopify_source.shopify.order_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_line"}, "source.shopify_source.shopify.order_shipping_tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_tax_line"}, "source.shopify_source.shopify.order_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_tag"}, "source.shopify_source.shopify.order_url_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_url_tag"}, "source.shopify_source.shopify.product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product"}, "source.shopify_source.shopify.product_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_media"}, "source.shopify_source.shopify.product_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_tag"}, "source.shopify_source.shopify.product_variant": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_variant"}, "source.shopify_source.shopify.product_variant_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_variant_media"}, "source.shopify_source.shopify.refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.shopify.refund"}, "source.shopify_source.shopify.shop": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.shop"}, "source.shopify_source.shopify.tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.tax_line"}, "source.shopify_source.shopify.tender_transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.shopify.tender_transaction"}, "source.shopify_source.shopify.transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.transaction"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.10.6", "generated_at": "2025-08-07T19:36:58.186896Z", "invocation_id": "0464ca02-c0b9-4ac6-ab83-2d1523af5822", "invocation_started_at": "2025-08-07T19:36:44.341798Z", "env": {}}, "nodes": {"seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_integration_tests.shopify_abandoned_checkout_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data"}, "seed.shopify_integration_tests.shopify_collection_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_data"}, "seed.shopify_integration_tests.shopify_collection_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data"}, "seed.shopify_integration_tests.shopify_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_data"}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data"}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_integration_tests.shopify_discount_allocation_data"}, "seed.shopify_integration_tests.shopify_discount_application_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data"}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data"}, "seed.shopify_integration_tests.shopify_discount_code_basic_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data"}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data"}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data"}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_integration_tests.shopify_discount_redeem_code_data"}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data"}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data"}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_integration_tests.shopify_gql_abandoned_checkout_data"}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data"}, "seed.shopify_integration_tests.shopify_gql_collection_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_integration_tests.shopify_gql_collection_data"}, "seed.shopify_integration_tests.shopify_gql_collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_collection_product"}, "seed.shopify_integration_tests.shopify_gql_collection_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_collection_product_data"}, "seed.shopify_integration_tests.shopify_gql_collection_rule_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_rule_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "condition": {"type": "text", "index": 4, "name": "condition", "comment": null}, "relation": {"type": "text", "index": 5, "name": "relation", "comment": null}, "columns": {"type": "text", "index": 6, "name": "columns", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_rule_data"}, "seed.shopify_integration_tests.shopify_gql_customer_address_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_address_data"}, "seed.shopify_integration_tests.shopify_gql_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_data"}, "seed.shopify_integration_tests.shopify_gql_customer_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_tag_data"}, "seed.shopify_integration_tests.shopify_gql_customer_visit_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_visit_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_visit_data"}, "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_integration_tests.shopify_gql_discount_allocation_data"}, "seed.shopify_integration_tests.shopify_gql_discount_application_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_integration_tests.shopify_gql_discount_application_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_app_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_basic_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_bxgy_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data"}, "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_integration_tests.shopify_gql_discount_redeem_code_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_integration_tests.shopify_gql_fulfillment_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_integration_tests.shopify_gql_inventory_item_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_level_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_integration_tests.shopify_gql_inventory_level_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_integration_tests.shopify_gql_inventory_quantity_data"}, "seed.shopify_integration_tests.shopify_gql_location_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_location_data"}, "seed.shopify_integration_tests.shopify_gql_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_integration_tests.shopify_gql_media_data"}, "seed.shopify_integration_tests.shopify_gql_media_image_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_media_image_data"}, "seed.shopify_integration_tests.shopify_gql_metafield_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_metafield_data"}, "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_adjustment_data"}, "seed.shopify_integration_tests.shopify_gql_order_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_integration_tests.shopify_gql_order_data"}, "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_integration_tests.shopify_gql_order_discount_code_data"}, "seed.shopify_integration_tests.shopify_gql_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_integration_tests.shopify_gql_order_line_refund_data"}, "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data"}, "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_tag_data"}, "seed.shopify_integration_tests.shopify_gql_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_product_data"}, "seed.shopify_integration_tests.shopify_gql_product_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_product_media_data"}, "seed.shopify_integration_tests.shopify_gql_product_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_product_tag_data"}, "seed.shopify_integration_tests.shopify_gql_product_variant_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_integration_tests.shopify_gql_product_variant_data"}, "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_integration_tests.shopify_gql_product_variant_media_data"}, "seed.shopify_integration_tests.shopify_gql_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_integration_tests.shopify_gql_refund_data"}, "seed.shopify_integration_tests.shopify_gql_shop_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_shop_data"}, "seed.shopify_integration_tests.shopify_gql_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_tax_line_data"}, "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_integration_tests.shopify_gql_tender_transaction_data"}, "seed.shopify_integration_tests.shopify_gql_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_transaction_data"}, "seed.shopify_integration_tests.shopify_inventory_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data"}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data"}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data"}, "seed.shopify_integration_tests.shopify_location_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_integration_tests.shopify_location_data"}, "seed.shopify_integration_tests.shopify_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_data"}, "seed.shopify_integration_tests.shopify_media_image_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_image_data"}, "seed.shopify_integration_tests.shopify_metafield_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_metafield_data"}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data"}, "seed.shopify_integration_tests.shopify_order_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_data"}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data"}, "seed.shopify_integration_tests.shopify_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_data"}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data"}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data"}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data"}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data"}, "seed.shopify_integration_tests.shopify_order_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data"}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data"}, "seed.shopify_integration_tests.shopify_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_data"}, "seed.shopify_integration_tests.shopify_product_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_media_data"}, "seed.shopify_integration_tests.shopify_product_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data"}, "seed.shopify_integration_tests.shopify_product_variant_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data"}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_variant_media_data"}, "seed.shopify_integration_tests.shopify_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_integration_tests.shopify_refund_data"}, "seed.shopify_integration_tests.shopify_shop_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_shop_data"}, "seed.shopify_integration_tests.shopify_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data"}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_integration_tests.shopify_tender_transaction_data"}, "seed.shopify_integration_tests.shopify_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_transaction_data"}, "model.shopify.int_shopify__customer_email_rollup": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify__customer_email_rollup"}, "model.shopify.int_shopify_gql__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}, "rules": {"type": "text", "index": 11, "name": "rules", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__collection"}, "model.shopify.int_shopify_gql__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_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.shopify.int_shopify_gql__customer"}, "model.shopify.int_shopify_gql__customer_email_rollup": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__customer_email_rollup", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "account_state": {"type": "text", "index": 15, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 16, "name": "note", "comment": null}, "currency": {"type": "text", "index": 17, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 18, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 19, "name": "marketing_opt_in_level", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_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.shopify.int_shopify_gql__customer_email_rollup"}, "model.shopify.int_shopify_gql__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_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.shopify.int_shopify_gql__order"}, "model.shopify.int_shopify_gql__orders_order_line_aggregates": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_line_aggregates", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "line_item_count": {"type": "bigint", "index": 3, "name": "line_item_count", "comment": null}, "order_total_quantity": {"type": "bigint", "index": 4, "name": "order_total_quantity", "comment": null}, "order_total_tax": {"type": "double precision", "index": 5, "name": "order_total_tax", "comment": null}, "order_total_discount": {"type": "double precision", "index": 6, "name": "order_total_discount", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 8, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_pres_currency_codes": {"type": "text", "index": 9, "name": "total_line_items_price_pres_currency_codes", "comment": null}, "total_line_items_price_shop_currency_codes": {"type": "text", "index": 10, "name": "total_line_items_price_shop_currency_codes", "comment": null}, "order_total_shipping": {"type": "double precision", "index": 11, "name": "order_total_shipping", "comment": null}, "order_total_shipping_with_discounts": {"type": "double precision", "index": 12, "name": "order_total_shipping_with_discounts", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 13, "name": "order_total_shipping_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__orders_order_line_aggregates"}, "model.shopify.int_shopify_gql__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}, "weight": {"type": "double precision", "index": 24, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__product_variant"}, "model.shopify.shopify__calendar": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__calendar", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__calendar"}, "model.shopify.shopify__collection_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__collection_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__collection_metafields"}, "model.shopify.shopify__customer_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "date", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_cohorts"}, "model.shopify.shopify__customer_email_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_email_cohorts"}, "model.shopify.shopify__customer_emails": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_emails", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 21, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_order_value": {"type": "double precision", "index": 24, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 25, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 26, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 27, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 28, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 29, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 30, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 31, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 32, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 33, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 34, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 35, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 36, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 37, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 38, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 39, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_emails"}, "model.shopify.shopify__customer_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "metafield_star_wars_firstname": {"type": "text", "index": 21, "name": "metafield_star_wars_firstname", "comment": null}, "metafield_star_wars_fullname": {"type": "text", "index": 22, "name": "metafield_star_wars_fullname", "comment": null}, "metafield_star_wars_isjedi": {"type": "text", "index": 23, "name": "metafield_star_wars_isjedi", "comment": null}, "metafield_star_wars_lastname": {"type": "text", "index": 24, "name": "metafield_star_wars_lastname", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_metafields"}, "model.shopify.shopify__customers": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customers", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 5, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 9, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 10, "name": "note", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 12, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 13, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 14, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 15, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 19, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_order_timestamp", "comment": null}, "customer_tags": {"type": "text", "index": 22, "name": "customer_tags", "comment": null}, "avg_order_value": {"type": "double precision", "index": 23, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 24, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 25, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 26, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 27, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 28, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 29, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 30, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 31, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 32, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 33, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 34, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 35, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 36, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 37, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 38, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customers"}, "model.shopify.shopify__daily_shop": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__daily_shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "shop_id": {"type": "integer", "index": 2, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "domain": {"type": "text", "index": 4, "name": "domain", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 7, "name": "enabled_presentment_currencies", "comment": null}, "iana_timezone": {"type": "text", "index": 8, "name": "iana_timezone", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "count_orders": {"type": "bigint", "index": 11, "name": "count_orders", "comment": null}, "count_line_items": {"type": "numeric", "index": 12, "name": "count_line_items", "comment": null}, "avg_line_item_count": {"type": "numeric", "index": 13, "name": "avg_line_item_count", "comment": null}, "count_customers": {"type": "bigint", "index": 14, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 15, "name": "count_customer_emails", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 16, "name": "order_adjusted_total", "comment": null}, "avg_order_value": {"type": "double precision", "index": 17, "name": "avg_order_value", "comment": null}, "shipping_cost": {"type": "double precision", "index": 18, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "numeric", "index": 19, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 20, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "numeric", "index": 21, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 22, "name": "refund_total_tax", "comment": null}, "total_discounts": {"type": "double precision", "index": 23, "name": "total_discounts", "comment": null}, "avg_discount": {"type": "double precision", "index": 24, "name": "avg_discount", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 25, "name": "shipping_discount_amount", "comment": null}, "avg_shipping_discount_amount": {"type": "double precision", "index": 26, "name": "avg_shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 27, "name": "percentage_calc_discount_amount", "comment": null}, "avg_percentage_calc_discount_amount": {"type": "double precision", "index": 28, "name": "avg_percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 29, "name": "fixed_amount_discount_amount", "comment": null}, "avg_fixed_amount_discount_amount": {"type": "double precision", "index": 30, "name": "avg_fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "numeric", "index": 31, "name": "count_discount_codes_applied", "comment": null}, "count_locations_ordered_from": {"type": "bigint", "index": 32, "name": "count_locations_ordered_from", "comment": null}, "count_orders_with_discounts": {"type": "bigint", "index": 33, "name": "count_orders_with_discounts", "comment": null}, "count_orders_with_refunds": {"type": "bigint", "index": 34, "name": "count_orders_with_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 36, "name": "last_order_timestamp", "comment": null}, "quantity_sold": {"type": "bigint", "index": 37, "name": "quantity_sold", "comment": null}, "quantity_refunded": {"type": "numeric", "index": 38, "name": "quantity_refunded", "comment": null}, "quantity_net": {"type": "numeric", "index": 39, "name": "quantity_net", "comment": null}, "avg_quantity_sold": {"type": "bigint", "index": 40, "name": "avg_quantity_sold", "comment": null}, "avg_quantity_net": {"type": "numeric", "index": 41, "name": "avg_quantity_net", "comment": null}, "count_variants_sold": {"type": "bigint", "index": 42, "name": "count_variants_sold", "comment": null}, "count_products_sold": {"type": "bigint", "index": 43, "name": "count_products_sold", "comment": null}, "quantity_gift_cards_sold": {"type": "numeric", "index": 44, "name": "quantity_gift_cards_sold", "comment": null}, "quantity_requiring_shipping": {"type": "numeric", "index": 45, "name": "quantity_requiring_shipping", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 46, "name": "count_abandoned_checkouts", "comment": null}, "count_customers_abandoned_checkout": {"type": "bigint", "index": 47, "name": "count_customers_abandoned_checkout", "comment": null}, "count_customer_emails_abandoned_checkout": {"type": "bigint", "index": 48, "name": "count_customer_emails_abandoned_checkout", "comment": null}, "count_fulfillment_attempted_delivery": {"type": "bigint", "index": 49, "name": "count_fulfillment_attempted_delivery", "comment": null}, "count_fulfillment_delayed": {"type": "bigint", "index": 50, "name": "count_fulfillment_delayed", "comment": null}, "count_fulfillment_delivered": {"type": "bigint", "index": 51, "name": "count_fulfillment_delivered", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 52, "name": "count_fulfillment_failure", "comment": null}, "count_fulfillment_in_transit": {"type": "bigint", "index": 53, "name": "count_fulfillment_in_transit", "comment": null}, "count_fulfillment_out_for_delivery": {"type": "bigint", "index": 54, "name": "count_fulfillment_out_for_delivery", "comment": null}, "count_fulfillment_ready_for_pickup": {"type": "bigint", "index": 55, "name": "count_fulfillment_ready_for_pickup", "comment": null}, "count_fulfillment_picked_up": {"type": "bigint", "index": 56, "name": "count_fulfillment_picked_up", "comment": null}, "count_fulfillment_label_printed": {"type": "bigint", "index": 57, "name": "count_fulfillment_label_printed", "comment": null}, "count_fulfillment_label_purchased": {"type": "bigint", "index": 58, "name": "count_fulfillment_label_purchased", "comment": null}, "count_fulfillment_confirmed": {"type": "bigint", "index": 59, "name": "count_fulfillment_confirmed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__daily_shop"}, "model.shopify.shopify__discounts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__discounts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"code": {"type": "character varying", "index": 1, "name": "code", "comment": null}, "discount_code_id": {"type": "bigint", "index": 2, "name": "discount_code_id", "comment": null}, "discount_type": {"type": "text", "index": 3, "name": "discount_type", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_count": {"type": "integer", "index": 5, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 14, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 15, "name": "status", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 17, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 18, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 20, "name": "usage_limit", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "allocation_method": {"type": "character varying", "index": 22, "name": "allocation_method", "comment": null}, "description": {"type": "character varying", "index": 23, "name": "description", "comment": null}, "target_selection": {"type": "character varying", "index": 24, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 25, "name": "target_type", "comment": null}, "application_type": {"type": "character varying", "index": 26, "name": "application_type", "comment": null}, "value": {"type": "double precision", "index": 27, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 28, "name": "value_type", "comment": null}, "discounts_unique_key": {"type": "text", "index": 29, "name": "discounts_unique_key", "comment": null}, "count_orders": {"type": "bigint", "index": 30, "name": "count_orders", "comment": null}, "avg_order_discount_amount": {"type": "double precision", "index": 31, "name": "avg_order_discount_amount", "comment": null}, "total_order_discount_amount": {"type": "double precision", "index": 32, "name": "total_order_discount_amount", "comment": null}, "total_order_line_items_price": {"type": "double precision", "index": 33, "name": "total_order_line_items_price", "comment": null}, "total_order_shipping_cost": {"type": "double precision", "index": 34, "name": "total_order_shipping_cost", "comment": null}, "total_order_refund_amount": {"type": "double precision", "index": 35, "name": "total_order_refund_amount", "comment": null}, "count_customers": {"type": "bigint", "index": 36, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 37, "name": "count_customer_emails", "comment": null}, "total_abandoned_checkout_discount_amount": {"type": "double precision", "index": 38, "name": "total_abandoned_checkout_discount_amount", "comment": null}, "total_abandoned_checkout_shipping_price": {"type": "double precision", "index": 39, "name": "total_abandoned_checkout_shipping_price", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 40, "name": "count_abandoned_checkouts", "comment": null}, "count_abandoned_checkout_customers": {"type": "bigint", "index": 41, "name": "count_abandoned_checkout_customers", "comment": null}, "count_abandoned_checkout_customer_emails": {"type": "bigint", "index": 42, "name": "count_abandoned_checkout_customer_emails", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__discounts"}, "model.shopify.shopify__inventory_levels": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__inventory_levels", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "sku": {"type": "text", "index": 10, "name": "sku", "comment": null}, "is_inventory_item_deleted": {"type": "boolean", "index": 11, "name": "is_inventory_item_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 14, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 15, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 16, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 17, "name": "is_inventory_quantity_tracked", "comment": null}, "inventory_item_created_at": {"type": "timestamp without time zone", "index": 18, "name": "inventory_item_created_at", "comment": null}, "inventory_item_updated_at": {"type": "timestamp without time zone", "index": 19, "name": "inventory_item_updated_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 20, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 21, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 22, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 23, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 24, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 25, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 26, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 27, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 28, "name": "tracked_editable_reason", "comment": null}, "location_name": {"type": "text", "index": 29, "name": "location_name", "comment": null}, "is_location_deleted": {"type": "boolean", "index": 30, "name": "is_location_deleted", "comment": null}, "is_location_active": {"type": "boolean", "index": 31, "name": "is_location_active", "comment": null}, "address_1": {"type": "text", "index": 32, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 33, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 34, "name": "city", "comment": null}, "country": {"type": "text", "index": 35, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 36, "name": "country_code", "comment": null}, "is_legacy_location": {"type": "boolean", "index": 37, "name": "is_legacy_location", "comment": null}, "province": {"type": "text", "index": 38, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 39, "name": "province_code", "comment": null}, "phone": {"type": "integer", "index": 40, "name": "phone", "comment": null}, "zip": {"type": "integer", "index": 41, "name": "zip", "comment": null}, "location_created_at": {"type": "timestamp without time zone", "index": 42, "name": "location_created_at", "comment": null}, "location_updated_at": {"type": "timestamp without time zone", "index": 43, "name": "location_updated_at", "comment": null}, "variant_id": {"type": "bigint", "index": 44, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 45, "name": "product_id", "comment": null}, "variant_title": {"type": "text", "index": 46, "name": "variant_title", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 47, "name": "variant_inventory_policy", "comment": null}, "variant_price": {"type": "double precision", "index": 48, "name": "variant_price", "comment": null}, "variant_media_id": {"type": "bigint", "index": 49, "name": "variant_media_id", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 50, "name": "variant_fulfillment_service", "comment": null}, "variant_inventory_management": {"type": "text", "index": 51, "name": "variant_inventory_management", "comment": null}, "is_variant_taxable": {"type": "boolean", "index": 52, "name": "is_variant_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 53, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 54, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 55, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 56, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 57, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 58, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 59, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 60, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 61, "name": "variant_tax_code", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 62, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 63, "name": "variant_updated_at", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 64, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 65, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 66, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 67, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 68, "name": "variant_sellable_online_quantity", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 69, "name": "subtotal_sold", "comment": null}, "quantity_sold": {"type": "bigint", "index": 70, "name": "quantity_sold", "comment": null}, "count_distinct_orders": {"type": "bigint", "index": 71, "name": "count_distinct_orders", "comment": null}, "count_distinct_customers": {"type": "bigint", "index": 72, "name": "count_distinct_customers", "comment": null}, "count_distinct_customer_emails": {"type": "bigint", "index": 73, "name": "count_distinct_customer_emails", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 74, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 75, "name": "last_order_timestamp", "comment": null}, "subtotal_sold_refunds": {"type": "numeric", "index": 76, "name": "subtotal_sold_refunds", "comment": null}, "quantity_sold_refunds": {"type": "numeric", "index": 77, "name": "quantity_sold_refunds", "comment": null}, "count_fulfillment_pending": {"type": "bigint", "index": 78, "name": "count_fulfillment_pending", "comment": null}, "count_fulfillment_open": {"type": "bigint", "index": 79, "name": "count_fulfillment_open", "comment": null}, "count_fulfillment_success": {"type": "bigint", "index": 80, "name": "count_fulfillment_success", "comment": null}, "count_fulfillment_cancelled": {"type": "bigint", "index": 81, "name": "count_fulfillment_cancelled", "comment": null}, "count_fulfillment_error": {"type": "bigint", "index": 82, "name": "count_fulfillment_error", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 83, "name": "count_fulfillment_failure", "comment": null}, "incoming_quantity": {"type": "bigint", "index": 84, "name": "incoming_quantity", "comment": null}, "on_hand_quantity": {"type": "bigint", "index": 85, "name": "on_hand_quantity", "comment": null}, "available_quantity": {"type": "bigint", "index": 86, "name": "available_quantity", "comment": null}, "committed_quantity": {"type": "bigint", "index": 87, "name": "committed_quantity", "comment": null}, "reserved_quantity": {"type": "bigint", "index": 88, "name": "reserved_quantity", "comment": null}, "damaged_quantity": {"type": "bigint", "index": 89, "name": "damaged_quantity", "comment": null}, "safety_stock_quantity": {"type": "bigint", "index": 90, "name": "safety_stock_quantity", "comment": null}, "quality_control_quantity": {"type": "bigint", "index": 91, "name": "quality_control_quantity", "comment": null}, "net_subtotal_sold": {"type": "numeric", "index": 92, "name": "net_subtotal_sold", "comment": null}, "net_quantity_sold": {"type": "numeric", "index": 93, "name": "net_quantity_sold", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__inventory_levels"}, "model.shopify.shopify__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"header_id": {"type": "bigint", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "numeric(28,6)", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "numeric(28,6)", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "numeric(28,6)", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "numeric(28,6)", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "numeric(28,6)", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "numeric(28,6)", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "text", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "double precision", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "text", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "bigint", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "source_relation": {"type": "text", "index": 37, "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.shopify.shopify__line_item_enhanced"}, "model.shopify.shopify__order_lines": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_lines", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "name": "source_relation", "comment": null}, "order_lines_unique_key": {"type": "text", "index": 29, "name": "order_lines_unique_key", "comment": null}, "restock_types": {"type": "text", "index": 30, "name": "restock_types", "comment": null}, "refunded_quantity": {"type": "bigint", "index": 31, "name": "refunded_quantity", "comment": null}, "refunded_subtotal": {"type": "bigint", "index": 32, "name": "refunded_subtotal", "comment": null}, "quantity_net_refunds": {"type": "bigint", "index": 33, "name": "quantity_net_refunds", "comment": null}, "subtotal_net_refunds": {"type": "bigint", "index": 34, "name": "subtotal_net_refunds", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 35, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 36, "name": "variant_updated_at", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 37, "name": "inventory_item_id", "comment": null}, "media_id": {"type": "bigint", "index": 38, "name": "media_id", "comment": null}, "variant_price": {"type": "double precision", "index": 39, "name": "variant_price", "comment": null}, "variant_sku": {"type": "text", "index": 40, "name": "variant_sku", "comment": null}, "variant_position": {"type": "integer", "index": 41, "name": "variant_position", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 42, "name": "variant_inventory_policy", "comment": null}, "variant_compare_at_price": {"type": "integer", "index": 43, "name": "variant_compare_at_price", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 44, "name": "variant_fulfillment_service", "comment": null}, "variant_is_taxable": {"type": "boolean", "index": 45, "name": "variant_is_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 46, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 47, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 48, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 49, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 50, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 51, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 52, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 53, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 54, "name": "variant_tax_code", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 55, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 56, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 57, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 58, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 59, "name": "variant_sellable_online_quantity", "comment": null}, "order_line_tax": {"type": "double precision", "index": 60, "name": "order_line_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_lines"}, "model.shopify.shopify__order_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 81, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_howmany": {"type": "text", "index": 82, "name": "metafield_avengers_howmany", "comment": null}, "metafield_star_wars_isinspace": {"type": "text", "index": 83, "name": "metafield_star_wars_isinspace", "comment": null}, "metafield_star_wars_numbersequels": {"type": "text", "index": 84, "name": "metafield_star_wars_numbersequels", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_metafields"}, "model.shopify.shopify__orders": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "orders_unique_key": {"type": "text", "index": 81, "name": "orders_unique_key", "comment": null}, "shipping_cost": {"type": "double precision", "index": 82, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "bigint", "index": 83, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 84, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "bigint", "index": 85, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 86, "name": "refund_total_tax", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 87, "name": "order_adjusted_total", "comment": null}, "line_item_count": {"type": "bigint", "index": 88, "name": "line_item_count", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 89, "name": "shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 90, "name": "percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 91, "name": "fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "bigint", "index": 92, "name": "count_discount_codes_applied", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 93, "name": "order_total_shipping_tax", "comment": null}, "order_tags": {"type": "text", "index": 94, "name": "order_tags", "comment": null}, "order_url_tags": {"type": "text", "index": 95, "name": "order_url_tags", "comment": null}, "number_of_fulfillments": {"type": "bigint", "index": 96, "name": "number_of_fulfillments", "comment": null}, "fulfillment_services": {"type": "text", "index": 97, "name": "fulfillment_services", "comment": null}, "tracking_companies": {"type": "text", "index": 98, "name": "tracking_companies", "comment": null}, "tracking_numbers": {"type": "text", "index": 99, "name": "tracking_numbers", "comment": null}, "customer_order_seq_number": {"type": "bigint", "index": 100, "name": "customer_order_seq_number", "comment": null}, "new_vs_repeat": {"type": "text", "index": 101, "name": "new_vs_repeat", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders"}, "model.shopify.shopify__orders__order_line_aggregates": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "line_item_count": {"type": "bigint", "index": 3, "name": "line_item_count", "comment": null}, "order_total_quantity": {"type": "bigint", "index": 4, "name": "order_total_quantity", "comment": null}, "order_total_tax": {"type": "double precision", "index": 5, "name": "order_total_tax", "comment": null}, "order_total_discount": {"type": "bigint", "index": 6, "name": "order_total_discount", "comment": null}, "order_total_shipping": {"type": "double precision", "index": 7, "name": "order_total_shipping", "comment": null}, "order_total_shipping_with_discounts": {"type": "double precision", "index": 8, "name": "order_total_shipping_with_discounts", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 9, "name": "order_total_shipping_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders__order_line_aggregates"}, "model.shopify.shopify__product_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__product_metafields"}, "model.shopify.shopify__product_variant_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 31, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_wherearethey": {"type": "text", "index": 32, "name": "metafield_avengers_wherearethey", "comment": null}, "metafield_star_wars_wheninspace": {"type": "text", "index": 33, "name": "metafield_star_wars_wheninspace", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__product_variant_metafields"}, "model.shopify.shopify__products": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__products", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "collections": {"type": "text", "index": 14, "name": "collections", "comment": null}, "tags": {"type": "text", "index": 15, "name": "tags", "comment": null}, "count_variants": {"type": "bigint", "index": 16, "name": "count_variants", "comment": null}, "has_product_media": {"type": "boolean", "index": 17, "name": "has_product_media", "comment": null}, "total_quantity_sold": {"type": "bigint", "index": 18, "name": "total_quantity_sold", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 19, "name": "subtotal_sold", "comment": null}, "quantity_sold_net_refunds": {"type": "numeric", "index": 20, "name": "quantity_sold_net_refunds", "comment": null}, "subtotal_sold_net_refunds": {"type": "numeric", "index": 21, "name": "subtotal_sold_net_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_quantity_per_order_line": {"type": "numeric", "index": 24, "name": "avg_quantity_per_order_line", "comment": null}, "product_total_discount": {"type": "bigint", "index": 25, "name": "product_total_discount", "comment": null}, "product_avg_discount_per_order_line": {"type": "numeric", "index": 26, "name": "product_avg_discount_per_order_line", "comment": null}, "product_total_tax": {"type": "double precision", "index": 27, "name": "product_total_tax", "comment": null}, "product_avg_tax_per_order_line": {"type": "double precision", "index": 28, "name": "product_avg_tax_per_order_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__products"}, "model.shopify.shopify__shop_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__shop_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify.shopify__shop_metafields"}, "model.shopify.shopify__transactions": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__transactions", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "name": "source_relation", "comment": null}, "transactions_unique_id": {"type": "text", "index": 33, "name": "transactions_unique_id", "comment": null}, "payment_method": {"type": "text", "index": 34, "name": "payment_method", "comment": null}, "parent_created_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "parent_created_timestamp", "comment": null}, "parent_kind": {"type": "text", "index": 36, "name": "parent_kind", "comment": null}, "parent_amount": {"type": "double precision", "index": 37, "name": "parent_amount", "comment": null}, "parent_status": {"type": "text", "index": 38, "name": "parent_status", "comment": null}, "exchange_rate": {"type": "numeric", "index": 39, "name": "exchange_rate", "comment": null}, "currency_exchange_calculated_amount": {"type": "double precision", "index": 40, "name": "currency_exchange_calculated_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__transactions"}, "model.shopify.shopify_gql__collection_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__collection_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}, "rules": {"type": "text", "index": 11, "name": "rules", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb": {"type": "text", "index": 12, "name": "metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw": {"type": "text", "index": 13, "name": "metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__collection_metafields"}, "model.shopify.shopify_gql__customer_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify_gql__customer_cohorts"}, "model.shopify.shopify_gql__customer_email_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_email_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify_gql__customer_email_cohorts"}, "model.shopify.shopify_gql__customer_emails": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_emails", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "account_state": {"type": "text", "index": 15, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 16, "name": "note", "comment": null}, "currency": {"type": "text", "index": 17, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 18, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 19, "name": "marketing_opt_in_level", "comment": null}, "default_address_id": {"type": "integer", "index": 20, "name": "default_address_id", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 21, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_order_value": {"type": "double precision", "index": 24, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 25, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 26, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 27, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 28, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 29, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 30, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 31, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "double precision", "index": 32, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "double precision", "index": 33, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 34, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 35, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 36, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 37, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 38, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 39, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customer_emails"}, "model.shopify.shopify_gql__customer_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_id", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj": {"type": "text", "index": 22, "name": "metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre": {"type": "text", "index": 23, "name": "metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customer_metafields"}, "model.shopify.shopify_gql__customers": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customers", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "phone": {"type": "character varying", "index": 5, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 6, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 7, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 8, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 9, "name": "note", "comment": null}, "currency": {"type": "text", "index": 10, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 11, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 12, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 13, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 14, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 15, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 16, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}, "default_address_id": {"type": "integer", "index": 18, "name": "default_address_id", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 19, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_order_timestamp", "comment": null}, "customer_tags": {"type": "text", "index": 22, "name": "customer_tags", "comment": null}, "avg_order_value": {"type": "double precision", "index": 23, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 24, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 25, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 26, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 27, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 28, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 29, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 30, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "double precision", "index": 31, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "double precision", "index": 32, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 33, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 34, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 35, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 36, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 37, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 38, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customers"}, "model.shopify.shopify_gql__daily_shop": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__daily_shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "shop_id": {"type": "integer", "index": 2, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "domain": {"type": "text", "index": 4, "name": "domain", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 7, "name": "enabled_presentment_currencies", "comment": null}, "iana_timezone": {"type": "text", "index": 8, "name": "iana_timezone", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "count_orders": {"type": "bigint", "index": 11, "name": "count_orders", "comment": null}, "count_line_items": {"type": "numeric", "index": 12, "name": "count_line_items", "comment": null}, "avg_line_item_count": {"type": "numeric", "index": 13, "name": "avg_line_item_count", "comment": null}, "count_customers": {"type": "bigint", "index": 14, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 15, "name": "count_customer_emails", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 16, "name": "order_adjusted_total", "comment": null}, "avg_order_value": {"type": "double precision", "index": 17, "name": "avg_order_value", "comment": null}, "shipping_cost": {"type": "double precision", "index": 18, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "double precision", "index": 19, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 20, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "double precision", "index": 21, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 22, "name": "refund_total_tax", "comment": null}, "total_discounts": {"type": "double precision", "index": 23, "name": "total_discounts", "comment": null}, "avg_discount": {"type": "double precision", "index": 24, "name": "avg_discount", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 25, "name": "shipping_discount_amount", "comment": null}, "avg_shipping_discount_amount": {"type": "double precision", "index": 26, "name": "avg_shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 27, "name": "percentage_calc_discount_amount", "comment": null}, "avg_percentage_calc_discount_amount": {"type": "double precision", "index": 28, "name": "avg_percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 29, "name": "fixed_amount_discount_amount", "comment": null}, "avg_fixed_amount_discount_amount": {"type": "double precision", "index": 30, "name": "avg_fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "numeric", "index": 31, "name": "count_discount_codes_applied", "comment": null}, "count_locations_ordered_from": {"type": "bigint", "index": 32, "name": "count_locations_ordered_from", "comment": null}, "count_orders_with_discounts": {"type": "bigint", "index": 33, "name": "count_orders_with_discounts", "comment": null}, "count_orders_with_refunds": {"type": "bigint", "index": 34, "name": "count_orders_with_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 36, "name": "last_order_timestamp", "comment": null}, "quantity_sold": {"type": "bigint", "index": 37, "name": "quantity_sold", "comment": null}, "quantity_refunded": {"type": "double precision", "index": 38, "name": "quantity_refunded", "comment": null}, "quantity_net": {"type": "double precision", "index": 39, "name": "quantity_net", "comment": null}, "avg_quantity_sold": {"type": "bigint", "index": 40, "name": "avg_quantity_sold", "comment": null}, "avg_quantity_net": {"type": "double precision", "index": 41, "name": "avg_quantity_net", "comment": null}, "count_variants_sold": {"type": "bigint", "index": 42, "name": "count_variants_sold", "comment": null}, "count_products_sold": {"type": "bigint", "index": 43, "name": "count_products_sold", "comment": null}, "quantity_gift_cards_sold": {"type": "double precision", "index": 44, "name": "quantity_gift_cards_sold", "comment": null}, "quantity_requiring_shipping": {"type": "double precision", "index": 45, "name": "quantity_requiring_shipping", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 46, "name": "count_abandoned_checkouts", "comment": null}, "count_customers_abandoned_checkout": {"type": "bigint", "index": 47, "name": "count_customers_abandoned_checkout", "comment": null}, "count_customer_emails_abandoned_checkout": {"type": "bigint", "index": 48, "name": "count_customer_emails_abandoned_checkout", "comment": null}, "count_fulfillment_attempted_delivery": {"type": "bigint", "index": 49, "name": "count_fulfillment_attempted_delivery", "comment": null}, "count_fulfillment_delayed": {"type": "bigint", "index": 50, "name": "count_fulfillment_delayed", "comment": null}, "count_fulfillment_delivered": {"type": "bigint", "index": 51, "name": "count_fulfillment_delivered", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 52, "name": "count_fulfillment_failure", "comment": null}, "count_fulfillment_in_transit": {"type": "bigint", "index": 53, "name": "count_fulfillment_in_transit", "comment": null}, "count_fulfillment_out_for_delivery": {"type": "bigint", "index": 54, "name": "count_fulfillment_out_for_delivery", "comment": null}, "count_fulfillment_ready_for_pickup": {"type": "bigint", "index": 55, "name": "count_fulfillment_ready_for_pickup", "comment": null}, "count_fulfillment_label_printed": {"type": "bigint", "index": 56, "name": "count_fulfillment_label_printed", "comment": null}, "count_fulfillment_label_purchased": {"type": "bigint", "index": 57, "name": "count_fulfillment_label_purchased", "comment": null}, "count_fulfillment_confirmed": {"type": "bigint", "index": 58, "name": "count_fulfillment_confirmed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__daily_shop"}, "model.shopify.shopify_gql__discounts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__discounts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"code": {"type": "text", "index": 1, "name": "code", "comment": null}, "discount_code_id": {"type": "integer", "index": 2, "name": "discount_code_id", "comment": null}, "discount_type": {"type": "text", "index": 3, "name": "discount_type", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_count": {"type": "integer", "index": 5, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 14, "name": "starts_at", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 17, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 18, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 20, "name": "usage_limit", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "allocation_method": {"type": "text", "index": 22, "name": "allocation_method", "comment": null}, "target_selection": {"type": "text", "index": 23, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 24, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 25, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 26, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 27, "name": "value_percentage", "comment": null}, "value_type": {"type": "text", "index": 28, "name": "value_type", "comment": null}, "unique_key": {"type": "text", "index": 29, "name": "unique_key", "comment": null}, "count_orders": {"type": "bigint", "index": 30, "name": "count_orders", "comment": null}, "avg_order_discount_amount": {"type": "double precision", "index": 31, "name": "avg_order_discount_amount", "comment": null}, "total_order_discount_amount": {"type": "double precision", "index": 32, "name": "total_order_discount_amount", "comment": null}, "total_order_line_items_price": {"type": "double precision", "index": 33, "name": "total_order_line_items_price", "comment": null}, "total_order_shipping_cost": {"type": "double precision", "index": 34, "name": "total_order_shipping_cost", "comment": null}, "total_order_refund_amount": {"type": "double precision", "index": 35, "name": "total_order_refund_amount", "comment": null}, "count_customers": {"type": "bigint", "index": 36, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 37, "name": "count_customer_emails", "comment": null}, "total_abandoned_checkout_discount_amount": {"type": "double precision", "index": 38, "name": "total_abandoned_checkout_discount_amount", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 39, "name": "count_abandoned_checkouts", "comment": null}, "count_abandoned_checkout_customers": {"type": "bigint", "index": 40, "name": "count_abandoned_checkout_customers", "comment": null}, "count_abandoned_checkout_customer_emails": {"type": "bigint", "index": 41, "name": "count_abandoned_checkout_customer_emails", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__discounts"}, "model.shopify.shopify_gql__inventory_levels": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__inventory_levels", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "integer", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "sku": {"type": "text", "index": 10, "name": "sku", "comment": null}, "is_inventory_item_deleted": {"type": "boolean", "index": 11, "name": "is_inventory_item_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "text", "index": 14, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "text", "index": 15, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 16, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 17, "name": "is_inventory_quantity_tracked", "comment": null}, "inventory_item_created_at": {"type": "timestamp without time zone", "index": 18, "name": "inventory_item_created_at", "comment": null}, "inventory_item_updated_at": {"type": "timestamp without time zone", "index": 19, "name": "inventory_item_updated_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 20, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 21, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 22, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 23, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 24, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 25, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 26, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "boolean", "index": 27, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 28, "name": "tracked_editable_reason", "comment": null}, "location_name": {"type": "text", "index": 29, "name": "location_name", "comment": null}, "is_location_deleted": {"type": "boolean", "index": 30, "name": "is_location_deleted", "comment": null}, "is_location_active": {"type": "boolean", "index": 31, "name": "is_location_active", "comment": null}, "address_1": {"type": "text", "index": 32, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 33, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 34, "name": "city", "comment": null}, "country": {"type": "text", "index": 35, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 36, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 37, "name": "country_name", "comment": null}, "is_legacy_location": {"type": "boolean", "index": 38, "name": "is_legacy_location", "comment": null}, "province": {"type": "text", "index": 39, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 40, "name": "province_code", "comment": null}, "phone": {"type": "character varying", "index": 41, "name": "phone", "comment": null}, "zip": {"type": "integer", "index": 42, "name": "zip", "comment": null}, "location_created_at": {"type": "timestamp without time zone", "index": 43, "name": "location_created_at", "comment": null}, "location_updated_at": {"type": "timestamp without time zone", "index": 44, "name": "location_updated_at", "comment": null}, "variant_id": {"type": "integer", "index": 45, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 46, "name": "product_id", "comment": null}, "variant_title": {"type": "text", "index": 47, "name": "variant_title", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 48, "name": "variant_inventory_policy", "comment": null}, "variant_price": {"type": "double precision", "index": 49, "name": "variant_price", "comment": null}, "variant_media_id": {"type": "integer", "index": 50, "name": "variant_media_id", "comment": null}, "is_variant_taxable": {"type": "boolean", "index": 51, "name": "is_variant_taxable", "comment": null}, "variant_barcode": {"type": "text", "index": 52, "name": "variant_barcode", "comment": null}, "variant_inventory_quantity": {"type": "integer", "index": 53, "name": "variant_inventory_quantity", "comment": null}, "variant_tax_code": {"type": "text", "index": 54, "name": "variant_tax_code", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 55, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 56, "name": "variant_updated_at", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 57, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 58, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "integer", "index": 59, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 60, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 61, "name": "variant_sellable_online_quantity", "comment": null}, "subtotal_sold": {"type": "double precision", "index": 62, "name": "subtotal_sold", "comment": null}, "quantity_sold": {"type": "bigint", "index": 63, "name": "quantity_sold", "comment": null}, "count_distinct_orders": {"type": "bigint", "index": 64, "name": "count_distinct_orders", "comment": null}, "count_distinct_customers": {"type": "bigint", "index": 65, "name": "count_distinct_customers", "comment": null}, "count_distinct_customer_emails": {"type": "bigint", "index": 66, "name": "count_distinct_customer_emails", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 67, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 68, "name": "last_order_timestamp", "comment": null}, "subtotal_sold_refunds": {"type": "double precision", "index": 69, "name": "subtotal_sold_refunds", "comment": null}, "quantity_sold_refunds": {"type": "double precision", "index": 70, "name": "quantity_sold_refunds", "comment": null}, "count_fulfillment_pending": {"type": "bigint", "index": 71, "name": "count_fulfillment_pending", "comment": null}, "count_fulfillment_open": {"type": "bigint", "index": 72, "name": "count_fulfillment_open", "comment": null}, "count_fulfillment_success": {"type": "bigint", "index": 73, "name": "count_fulfillment_success", "comment": null}, "count_fulfillment_cancelled": {"type": "bigint", "index": 74, "name": "count_fulfillment_cancelled", "comment": null}, "count_fulfillment_error": {"type": "bigint", "index": 75, "name": "count_fulfillment_error", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 76, "name": "count_fulfillment_failure", "comment": null}, "incoming_quantity": {"type": "bigint", "index": 77, "name": "incoming_quantity", "comment": null}, "on_hand_quantity": {"type": "bigint", "index": 78, "name": "on_hand_quantity", "comment": null}, "available_quantity": {"type": "bigint", "index": 79, "name": "available_quantity", "comment": null}, "committed_quantity": {"type": "bigint", "index": 80, "name": "committed_quantity", "comment": null}, "reserved_quantity": {"type": "bigint", "index": 81, "name": "reserved_quantity", "comment": null}, "damaged_quantity": {"type": "bigint", "index": 82, "name": "damaged_quantity", "comment": null}, "safety_stock_quantity": {"type": "bigint", "index": 83, "name": "safety_stock_quantity", "comment": null}, "quality_control_quantity": {"type": "bigint", "index": 84, "name": "quality_control_quantity", "comment": null}, "net_subtotal_sold": {"type": "double precision", "index": 85, "name": "net_subtotal_sold", "comment": null}, "net_quantity_sold": {"type": "double precision", "index": 86, "name": "net_quantity_sold", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__inventory_levels"}, "model.shopify.shopify_gql__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__line_item_enhanced", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"header_id": {"type": "integer", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "numeric(28,6)", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "numeric(28,6)", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "numeric(28,6)", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "numeric(28,6)", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "numeric(28,6)", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "numeric(28,6)", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "text", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "double precision", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "text", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "integer", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "source_relation": {"type": "text", "index": 37, "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.shopify.shopify_gql__line_item_enhanced"}, "model.shopify.shopify_gql__order_lines": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__order_lines", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}, "pre_tax_price": {"type": "double precision", "index": 27, "name": "pre_tax_price", "comment": null}, "order_line_tax": {"type": "double precision", "index": 28, "name": "order_line_tax", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 29, "name": "fulfillable_quantity", "comment": null}, "weight_unit": {"type": "text", "index": 30, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 31, "name": "weight_value", "comment": null}, "restock_types": {"type": "text", "index": 32, "name": "restock_types", "comment": null}, "refunded_quantity": {"type": "double precision", "index": 33, "name": "refunded_quantity", "comment": null}, "refunded_subtotal": {"type": "double precision", "index": 34, "name": "refunded_subtotal", "comment": null}, "quantity_net_refunds": {"type": "double precision", "index": 35, "name": "quantity_net_refunds", "comment": null}, "subtotal_net_refunds": {"type": "double precision", "index": 36, "name": "subtotal_net_refunds", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 37, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 38, "name": "variant_updated_at", "comment": null}, "inventory_item_id": {"type": "integer", "index": 39, "name": "inventory_item_id", "comment": null}, "media_id": {"type": "integer", "index": 40, "name": "media_id", "comment": null}, "variant_price": {"type": "double precision", "index": 41, "name": "variant_price", "comment": null}, "variant_sku": {"type": "text", "index": 42, "name": "variant_sku", "comment": null}, "variant_position": {"type": "integer", "index": 43, "name": "variant_position", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 44, "name": "variant_inventory_policy", "comment": null}, "variant_compare_at_price": {"type": "character varying", "index": 45, "name": "variant_compare_at_price", "comment": null}, "variant_is_taxable": {"type": "boolean", "index": 46, "name": "variant_is_taxable", "comment": null}, "variant_barcode": {"type": "text", "index": 47, "name": "variant_barcode", "comment": null}, "variant_inventory_quantity": {"type": "integer", "index": 48, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 49, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 50, "name": "variant_weight_unit", "comment": null}, "variant_tax_code": {"type": "text", "index": 51, "name": "variant_tax_code", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 52, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 53, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "integer", "index": 54, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 55, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 56, "name": "variant_sellable_online_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.shopify.shopify_gql__order_lines"}, "model.shopify.shopify_gql__order_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__order_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_url", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw": {"type": "text", "index": 89, "name": "metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe": {"type": "text", "index": 90, "name": "metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__order_metafields"}, "model.shopify.shopify_gql__orders": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__orders", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_url", "comment": null}, "order_adjustment_amount": {"type": "double precision", "index": 89, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 90, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "double precision", "index": 91, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 92, "name": "refund_total_tax", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 93, "name": "order_adjusted_total", "comment": null}, "line_item_count": {"type": "bigint", "index": 94, "name": "line_item_count", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 95, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 96, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_pres_currency_codes": {"type": "text", "index": 97, "name": "total_line_items_price_pres_currency_codes", "comment": null}, "total_line_items_price_shop_currency_codes": {"type": "text", "index": 98, "name": "total_line_items_price_shop_currency_codes", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 99, "name": "shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 100, "name": "percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 101, "name": "fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "bigint", "index": 102, "name": "count_discount_codes_applied", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 103, "name": "order_total_shipping_tax", "comment": null}, "order_tags": {"type": "text", "index": 104, "name": "order_tags", "comment": null}, "number_of_fulfillments": {"type": "bigint", "index": 105, "name": "number_of_fulfillments", "comment": null}, "fulfillment_services": {"type": "text", "index": 106, "name": "fulfillment_services", "comment": null}, "tracking_companies": {"type": "text", "index": 107, "name": "tracking_companies", "comment": null}, "tracking_numbers": {"type": "text", "index": 108, "name": "tracking_numbers", "comment": null}, "customer_order_seq_number": {"type": "bigint", "index": 109, "name": "customer_order_seq_number", "comment": null}, "new_vs_repeat": {"type": "text", "index": 110, "name": "new_vs_repeat", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__orders"}, "model.shopify.shopify_gql__product_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__product_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bc_brenbre": {"type": "text", "index": 14, "name": "metafield_bea81c1795a612d8fc3a232b156467bc_brenbre", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42": {"type": "text", "index": 15, "name": "metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__product_metafields"}, "model.shopify.shopify_gql__product_variant_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__product_variant_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}, "weight": {"type": "double precision", "index": 24, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__product_variant_metafields"}, "model.shopify.shopify_gql__products": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__products", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}, "collections": {"type": "text", "index": 14, "name": "collections", "comment": null}, "tags": {"type": "text", "index": 15, "name": "tags", "comment": null}, "count_variants": {"type": "bigint", "index": 16, "name": "count_variants", "comment": null}, "has_product_media": {"type": "boolean", "index": 17, "name": "has_product_media", "comment": null}, "total_quantity_sold": {"type": "bigint", "index": 18, "name": "total_quantity_sold", "comment": null}, "subtotal_sold": {"type": "double precision", "index": 19, "name": "subtotal_sold", "comment": null}, "quantity_sold_net_refunds": {"type": "double precision", "index": 20, "name": "quantity_sold_net_refunds", "comment": null}, "subtotal_sold_net_refunds": {"type": "double precision", "index": 21, "name": "subtotal_sold_net_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_quantity_per_order_line": {"type": "numeric", "index": 24, "name": "avg_quantity_per_order_line", "comment": null}, "product_total_discount": {"type": "double precision", "index": 25, "name": "product_total_discount", "comment": null}, "product_avg_discount_per_order_line": {"type": "double precision", "index": 26, "name": "product_avg_discount_per_order_line", "comment": null}, "product_total_tax": {"type": "double precision", "index": 27, "name": "product_total_tax", "comment": null}, "product_avg_tax_per_order_line": {"type": "double precision", "index": 28, "name": "product_avg_tax_per_order_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__products"}, "model.shopify.shopify_gql__shop_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__shop_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 16, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 17, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 18, "name": "email", "comment": null}, "domain": {"type": "text", "index": 19, "name": "domain", "comment": null}, "phone": {"type": "character varying", "index": 20, "name": "phone", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 21, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 22, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 23, "name": "timezone_offset_minutes", "comment": null}, "iana_timezone": {"type": "text", "index": 24, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 25, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 26, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "has_shipping_taxes": {"type": "boolean", "index": 29, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 30, "name": "has_taxes_included_in_price", "comment": null}, "has_storefront": {"type": "boolean", "index": 31, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 32, "name": "has_checkout_api_supported", "comment": null}, "money_format": {"type": "text", "index": 33, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 34, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 35, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 36, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 37, "name": "plan_display_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 38, "name": "is_password_enabled", "comment": null}, "is_setup_required": {"type": "boolean", "index": 39, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 40, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 41, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 42, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 43, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 44, "name": "unique_key", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew": {"type": "text", "index": 45, "name": "metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__shop_metafields"}, "model.shopify.shopify_gql__transactions": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__transactions", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "integer", "index": 3, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 4, "name": "amount_pres", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "device_id": {"type": "text", "index": 6, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 7, "name": "gateway", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 8, "name": "amount_pres_currency_code", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 9, "name": "amount_shop_currency_code", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 11, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 12, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 13, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 14, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 15, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 17, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 18, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 19, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 20, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 21, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 22, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "text", "index": 23, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 24, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 26, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 29, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 30, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 31, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 32, "name": "unique_key", "comment": null}, "payment_method": {"type": "text", "index": 33, "name": "payment_method", "comment": null}, "parent_created_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "parent_created_timestamp", "comment": null}, "parent_kind": {"type": "text", "index": 35, "name": "parent_kind", "comment": null}, "parent_amount": {"type": "double precision", "index": 36, "name": "parent_amount", "comment": null}, "parent_status": {"type": "text", "index": 37, "name": "parent_status", "comment": null}, "location_id": {"type": "integer", "index": 38, "name": "location_id", "comment": null}, "source_name": {"type": "text", "index": 39, "name": "source_name", "comment": null}, "exchange_rate": {"type": "numeric", "index": 40, "name": "exchange_rate", "comment": null}, "currency_exchange_calculated_amount": {"type": "double precision", "index": 41, "name": "currency_exchange_calculated_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__transactions"}, "model.shopify_source.stg_shopify__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 18, "name": "has_buyer_accepted_marketing", "comment": null}, "cart_token": {"type": "text", "index": 19, "name": "cart_token", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 20, "name": "created_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 21, "name": "closed_at", "comment": null}, "shop_currency": {"type": "text", "index": 22, "name": "shop_currency", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 24, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 25, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 26, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 27, "name": "gateway", "comment": null}, "checkout_id": {"type": "integer", "index": 28, "name": "checkout_id", "comment": null}, "landing_site_base_url": {"type": "text", "index": 29, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 30, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 31, "name": "name", "comment": null}, "note": {"type": "integer", "index": 32, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 33, "name": "phone", "comment": null}, "presentment_currency": {"type": "text", "index": 34, "name": "presentment_currency", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 36, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 37, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 38, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 39, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 40, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 41, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 42, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 43, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 44, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 45, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 46, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 47, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 48, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 49, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 50, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 51, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 52, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 53, "name": "has_taxes_included", "comment": null}, "token": {"type": "text", "index": 54, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_duties": {"type": "integer", "index": 56, "name": "total_duties", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 57, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 58, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 59, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 60, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 61, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 62, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 63, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 64, "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.shopify_source.stg_shopify__abandoned_checkout"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "discount_id": {"type": "bigint", "index": 3, "name": "discount_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "type": {"type": "character varying", "index": 5, "name": "type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 10, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"abandoned_checkout_shipping_line_id": {"type": "text", "index": 1, "name": "abandoned_checkout_shipping_line_id", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "shipping_code": {"type": "text", "index": 5, "name": "shipping_code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 7, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 8, "name": "delivery_expectation_range_max", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 9, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 10, "name": "delivery_expectation_type", "comment": null}, "discounted_price": {"type": "integer", "index": 11, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "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.shopify_source.stg_shopify__abandoned_checkout_shipping_line"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.stg_shopify__abandoned_checkout_tmp"}, "model.shopify_source.stg_shopify__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection"}, "model.shopify_source.stg_shopify__collection_product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection_product"}, "model.shopify_source.stg_shopify__collection_product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp"}, "model.shopify_source.stg_shopify__collection_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_tmp"}, "model.shopify_source.stg_shopify__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__customer"}, "model.shopify_source.stg_shopify__customer_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__customer_tag"}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp"}, "model.shopify_source.stg_shopify__customer_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tmp"}, "model.shopify_source.stg_shopify__discount_allocation": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"amount": {"type": "double precision", "index": 1, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 2, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 3, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 5, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 8, "name": "order_line_id", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_allocation"}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.stg_shopify__discount_allocation_tmp"}, "model.shopify_source.stg_shopify__discount_application": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocation_method": {"type": "character varying", "index": 1, "name": "allocation_method", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 3, "name": "description", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 5, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 6, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 7, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 8, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 9, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_application"}, "model.shopify_source.stg_shopify__discount_application_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp"}, "model.shopify_source.stg_shopify__discount_code_app": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_app"}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp"}, "model.shopify_source.stg_shopify__discount_code_basic": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_basic"}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp"}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_bxgy"}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp"}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_free_shipping"}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"}, "model.shopify_source.stg_shopify__discount_redeem_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_redeem_code"}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.stg_shopify__discount_redeem_code_tmp"}, "model.shopify_source.stg_shopify__fulfillment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "service": {"type": "text", "index": 5, "name": "service", "comment": null}, "shipment_status": {"type": "integer", "index": 6, "name": "shipment_status", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 8, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 9, "name": "tracking_number", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__fulfillment"}, "model.shopify_source.stg_shopify__fulfillment_event": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_event_id": {"type": "integer", "index": 1, "name": "fulfillment_event_id", "comment": null}, "fulfillment_id": {"type": "integer", "index": 2, "name": "fulfillment_id", "comment": null}, "shop_id": {"type": "integer", "index": 3, "name": "shop_id", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "message": {"type": "text", "index": 6, "name": "message", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 8, "name": "happened_at", "comment": null}, "address_1": {"type": "integer", "index": 9, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 10, "name": "city", "comment": null}, "province": {"type": "text", "index": 11, "name": "province", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "zip": {"type": "text", "index": 13, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 14, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 15, "name": "longitude", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "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.shopify_source.stg_shopify__fulfillment_event"}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp"}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp"}, "model.shopify_source.stg_shopify__inventory_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_item_id": {"type": "bigint", "index": 1, "name": "inventory_item_id", "comment": null}, "sku": {"type": "text", "index": 2, "name": "sku", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 4, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 5, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 6, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 7, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 8, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 9, "name": "is_inventory_quantity_tracked", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 10, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 11, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 12, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 13, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 14, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 15, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 16, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 17, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 18, "name": "tracked_editable_reason", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "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.shopify_source.stg_shopify__inventory_item"}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp"}, "model.shopify_source.stg_shopify__inventory_level": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "available_quantity": {"type": "integer", "index": 4, "name": "available_quantity", "comment": null}, "can_deactivate": {"type": "boolean", "index": 5, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_level"}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp"}, "model.shopify_source.stg_shopify__inventory_quantity": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_quantity_id": {"type": "bigint", "index": 1, "name": "inventory_quantity_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "inventory_state_name": {"type": "text", "index": 4, "name": "inventory_state_name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_quantity"}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp"}, "model.shopify_source.stg_shopify__location": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "is_active": {"type": "boolean", "index": 4, "name": "is_active", "comment": null}, "address_1": {"type": "text", "index": 5, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 6, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 10, "name": "country_name", "comment": null}, "is_legacy": {"type": "boolean", "index": 11, "name": "is_legacy", "comment": null}, "localized_country_name": {"type": "text", "index": 12, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 13, "name": "localized_province_name", "comment": null}, "phone": {"type": "integer", "index": 14, "name": "phone", "comment": null}, "province": {"type": "text", "index": 15, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 16, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 20, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 21, "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.shopify_source.stg_shopify__location"}, "model.shopify_source.stg_shopify__location_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.stg_shopify__location_tmp"}, "model.shopify_source.stg_shopify__media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media"}, "model.shopify_source.stg_shopify__media_image": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media_image"}, "model.shopify_source.stg_shopify__media_image_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_image_tmp"}, "model.shopify_source.stg_shopify__media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_tmp"}, "model.shopify_source.stg_shopify__metafield": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "stg_shopify__metafield", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"metafield_id": {"type": "bigint", "index": 1, "name": "metafield_id", "comment": null}, "description": {"type": "integer", "index": 2, "name": "description", "comment": null}, "namespace": {"type": "text", "index": 3, "name": "namespace", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "value_type": {"type": "text", "index": 6, "name": "value_type", "comment": null}, "owner_resource_id": {"type": "bigint", "index": 7, "name": "owner_resource_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "metafield_reference": {"type": "text", "index": 12, "name": "metafield_reference", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__metafield"}, "model.shopify_source.stg_shopify__metafield_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__metafield_tmp"}, "model.shopify_source.stg_shopify__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "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.shopify_source.stg_shopify__order"}, "model.shopify_source.stg_shopify__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "bigint", "index": 1, "name": "order_adjustment_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "amount_set": {"type": "integer", "index": 5, "name": "amount_set", "comment": null}, "tax_amount": {"type": "double precision", "index": 6, "name": "tax_amount", "comment": null}, "tax_amount_set": {"type": "integer", "index": 7, "name": "tax_amount_set", "comment": null}, "kind": {"type": "text", "index": 8, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 9, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_adjustment"}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp"}, "model.shopify_source.stg_shopify__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_discount_code"}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp"}, "model.shopify_source.stg_shopify__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "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.shopify_source.stg_shopify__order_line"}, "model.shopify_source.stg_shopify__order_line_refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_refund_id": {"type": "bigint", "index": 1, "name": "order_line_refund_id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "order_line_id": {"type": "bigint", "index": 3, "name": "order_line_id", "comment": null}, "subtotal": {"type": "integer", "index": 4, "name": "subtotal", "comment": null}, "subtotal_set": {"type": "integer", "index": 5, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 6, "name": "total_tax", "comment": null}, "total_tax_set": {"type": "integer", "index": 7, "name": "total_tax_set", "comment": null}, "quantity": {"type": "integer", "index": 8, "name": "quantity", "comment": null}, "refund_id": {"type": "bigint", "index": 9, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 10, "name": "restock_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_line_refund"}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp"}, "model.shopify_source.stg_shopify__order_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_tmp"}, "model.shopify_source.stg_shopify__order_note_attribute": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_note_attribute"}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp"}, "model.shopify_source.stg_shopify__order_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 3, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 5, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 6, "name": "discounted_price", "comment": null}, "discounted_price_set": {"type": "text", "index": 7, "name": "discounted_price_set", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 10, "name": "price_set", "comment": null}, "is_third_party_required": {"type": "boolean", "index": 11, "name": "is_third_party_required", "comment": null}, "source": {"type": "text", "index": 12, "name": "source", "comment": null}, "title": {"type": "text", "index": 13, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_line"}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp"}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_tax_line"}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"}, "model.shopify_source.stg_shopify__order_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_tag"}, "model.shopify_source.stg_shopify__order_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp"}, "model.shopify_source.stg_shopify__order_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tmp"}, "model.shopify_source.stg_shopify__order_url_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "key": {"type": "text", "index": 2, "name": "key", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_url_tag"}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp"}, "model.shopify_source.stg_shopify__product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product"}, "model.shopify_source.stg_shopify__product_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_media"}, "model.shopify_source.stg_shopify__product_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_media_tmp"}, "model.shopify_source.stg_shopify__product_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product_tag"}, "model.shopify_source.stg_shopify__product_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp"}, "model.shopify_source.stg_shopify__product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tmp"}, "model.shopify_source.stg_shopify__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "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.shopify_source.stg_shopify__product_variant"}, "model.shopify_source.stg_shopify__product_variant_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_variant_media"}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_variant_media_tmp"}, "model.shopify_source.stg_shopify__product_variant_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp"}, "model.shopify_source.stg_shopify__refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"refund_id": {"type": "bigint", "index": 1, "name": "refund_id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "order_id": {"type": "bigint", "index": 3, "name": "order_id", "comment": null}, "restock": {"type": "boolean", "index": 4, "name": "restock", "comment": null}, "total_duties_set": {"type": "integer", "index": 5, "name": "total_duties_set", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__refund"}, "model.shopify_source.stg_shopify__refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.stg_shopify__refund_tmp"}, "model.shopify_source.stg_shopify__shop": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify_source.stg_shopify__shop"}, "model.shopify_source.stg_shopify__shop_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__shop_tmp"}, "model.shopify_source.stg_shopify__tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tax_line"}, "model.shopify_source.stg_shopify__tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp"}, "model.shopify_source.stg_shopify__tender_transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "payment_method": {"type": "text", "index": 5, "name": "payment_method", "comment": null}, "remote_reference": {"type": "integer", "index": 6, "name": "remote_reference", "comment": null}, "user_id": {"type": "integer", "index": 7, "name": "user_id", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tender_transaction"}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.stg_shopify__tender_transaction_tmp"}, "model.shopify_source.stg_shopify__transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "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.shopify_source.stg_shopify__transaction"}, "model.shopify_source.stg_shopify__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__transaction_tmp"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "checkout_id": {"type": "integer", "index": 20, "name": "checkout_id", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "note": {"type": "text", "index": 22, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 23, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 24, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 25, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 26, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 27, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 28, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 29, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 30, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 31, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 32, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 33, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 34, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 35, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 36, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 37, "name": "shipping_address_zip", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 38, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 39, "name": "subtotal_price_shop_currency_code", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_pres_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 42, "name": "has_taxes_included", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 43, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 44, "name": "total_discount_shop_currency_code", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_pres_currency_code", "comment": null}, "total_duties_shop_amount": {"type": "double precision", "index": 47, "name": "total_duties_shop_amount", "comment": null}, "total_duties_shop_currency_code": {"type": "text", "index": 48, "name": "total_duties_shop_currency_code", "comment": null}, "total_duties_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_pres_amount", "comment": null}, "total_duties_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_pres_currency_code", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 51, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_shop_currency_code": {"type": "text", "index": 52, "name": "total_line_items_price_shop_currency_code", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 55, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 56, "name": "total_price_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 59, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 60, "name": "total_tax_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_pres_currency_code", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 63, "name": "completed_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 64, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 65, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 66, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 67, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 5, "name": "index", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"}, "model.shopify_source.stg_shopify_gql__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__collection"}, "model.shopify_source.stg_shopify_gql__collection_product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 5, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__collection_product"}, "model.shopify_source.stg_shopify_gql__collection_product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.stg_shopify_gql__collection_product_tmp"}, "model.shopify_source.stg_shopify_gql__collection_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.stg_shopify_gql__collection_tmp"}, "model.shopify_source.stg_shopify_gql__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer"}, "model.shopify_source.stg_shopify_gql__customer_address": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_address_id": {"type": "integer", "index": 1, "name": "customer_address_id", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "company": {"type": "text", "index": 6, "name": "company", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 8, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 10, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 11, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 12, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 13, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 15, "name": "phone", "comment": null}, "province": {"type": "text", "index": 16, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 17, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 18, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 19, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 20, "name": "timezone", "comment": null}, "has_coordinates_validated": {"type": "boolean", "index": 21, "name": "has_coordinates_validated", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 22, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 23, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 24, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_address"}, "model.shopify_source.stg_shopify_gql__customer_address_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_address_tmp"}, "model.shopify_source.stg_shopify_gql__customer_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag"}, "model.shopify_source.stg_shopify_gql__customer_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag_tmp"}, "model.shopify_source.stg_shopify_gql__customer_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tmp"}, "model.shopify_source.stg_shopify_gql__customer_visit": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_visit_id": {"type": "integer", "index": 1, "name": "customer_visit_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 4, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 5, "name": "landing_page_html", "comment": null}, "referral_code": {"type": "text", "index": 6, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 7, "name": "referral_info_html", "comment": null}, "referring_site": {"type": "text", "index": 8, "name": "referring_site", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 10, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 11, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 12, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 13, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 14, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 15, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 16, "name": "utm_parameters_term", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 17, "name": "occurred_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit"}, "model.shopify_source.stg_shopify_gql__customer_visit_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit_tmp"}, "model.shopify_source.stg_shopify_gql__discount_allocation": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocated_pres_amount": {"type": "double precision", "index": 1, "name": "allocated_pres_amount", "comment": null}, "allocated_pres_currency_code": {"type": "text", "index": 2, "name": "allocated_pres_currency_code", "comment": null}, "allocated_shop_amount": {"type": "double precision", "index": 3, "name": "allocated_shop_amount", "comment": null}, "allocated_shop_currency_code": {"type": "text", "index": 4, "name": "allocated_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 5, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 6, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 7, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation"}, "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_source.stg_shopify_gql__discount_allocation_tmp"}, "model.shopify_source.stg_shopify_gql__discount_application": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocation_method": {"type": "text", "index": 1, "name": "allocation_method", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_percentage": {"type": "double precision", "index": 8, "name": "value_percentage", "comment": null}, "value_currency_code": {"type": "text", "index": 9, "name": "value_currency_code", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_application"}, "model.shopify_source.stg_shopify_gql__discount_application_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_source.stg_shopify_gql__discount_application_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_app": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app"}, "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_app_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_basic": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic"}, "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_basic_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 13, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 14, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 17, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 18, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy"}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping"}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"}, "model.shopify_source.stg_shopify_gql__discount_redeem_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code"}, "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "service": {"type": "text", "index": 5, "name": "service", "comment": null}, "shipment_status": {"type": "text", "index": 6, "name": "shipment_status", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 12, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment"}, "model.shopify_source.stg_shopify_gql__fulfillment_event": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_event_id": {"type": "integer", "index": 1, "name": "fulfillment_event_id", "comment": null}, "fulfillment_id": {"type": "integer", "index": 2, "name": "fulfillment_id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "message": {"type": "text", "index": 4, "name": "message", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 5, "name": "estimated_delivery_at", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 6, "name": "happened_at", "comment": null}, "address_1": {"type": "text", "index": 7, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "province": {"type": "text", "index": 9, "name": "province", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "zip": {"type": "text", "index": 11, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 12, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 13, "name": "longitude", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 17, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event"}, "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_order_line_item_id": {"type": "integer", "index": 1, "name": "fulfillment_order_line_item_id", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 5, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 6, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 7, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 9, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 10, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 11, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 12, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 13, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 15, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 16, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 17, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 18, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 19, "name": "weight_value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 20, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 22, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_source.stg_shopify_gql__fulfillment_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "tracking_company": {"type": "text", "index": 3, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "text", "index": 4, "name": "tracking_number", "comment": null}, "tracking_url": {"type": "text", "index": 5, "name": "tracking_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 8, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_item_id": {"type": "integer", "index": 1, "name": "inventory_item_id", "comment": null}, "sku": {"type": "text", "index": 2, "name": "sku", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 4, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 5, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "text", "index": 6, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "text", "index": 7, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 8, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 9, "name": "is_inventory_quantity_tracked", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 10, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 11, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 12, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 13, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 14, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 15, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 16, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "boolean", "index": 17, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item"}, "model.shopify_source.stg_shopify_gql__inventory_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.stg_shopify_gql__inventory_item_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_level": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "integer", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level"}, "model.shopify_source.stg_shopify_gql__inventory_level_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.stg_shopify_gql__inventory_level_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_quantity": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_quantity_id": {"type": "integer", "index": 1, "name": "inventory_quantity_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 3, "name": "inventory_level_id", "comment": null}, "inventory_state_name": {"type": "text", "index": 4, "name": "inventory_state_name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 9, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity"}, "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_source.stg_shopify_gql__inventory_quantity_tmp"}, "model.shopify_source.stg_shopify_gql__location": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__location", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "is_active": {"type": "boolean", "index": 4, "name": "is_active", "comment": null}, "address_1": {"type": "text", "index": 5, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 6, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 10, "name": "country_name", "comment": null}, "is_legacy": {"type": "boolean", "index": 11, "name": "is_legacy", "comment": null}, "phone": {"type": "character varying", "index": 12, "name": "phone", "comment": null}, "province": {"type": "text", "index": 13, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 14, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 15, "name": "zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__location"}, "model.shopify_source.stg_shopify_gql__location_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__location_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__location_tmp"}, "model.shopify_source.stg_shopify_gql__media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "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}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media"}, "model.shopify_source.stg_shopify_gql__media_image": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_image", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 8, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media_image"}, "model.shopify_source.stg_shopify_gql__media_image_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_image_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media_image_tmp"}, "model.shopify_source.stg_shopify_gql__media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_source.stg_shopify_gql__media_tmp"}, "model.shopify_source.stg_shopify_gql__metafield": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__metafield", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"metafield_id": {"type": "integer", "index": 1, "name": "metafield_id", "comment": null}, "description": {"type": "text", "index": 2, "name": "description", "comment": null}, "namespace": {"type": "text", "index": 3, "name": "namespace", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "value_type": {"type": "text", "index": 6, "name": "value_type", "comment": null}, "owner_resource_id": {"type": "integer", "index": 7, "name": "owner_resource_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "metafield_reference": {"type": "text", "index": 12, "name": "metafield_reference", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 15, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__metafield"}, "model.shopify_source.stg_shopify_gql__metafield_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__metafield_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__metafield_tmp"}, "model.shopify_source.stg_shopify_gql__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order"}, "model.shopify_source.stg_shopify_gql__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "integer", "index": 1, "name": "order_adjustment_id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 3, "name": "amount_pres", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 4, "name": "amount_pres_currency_code", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 6, "name": "amount_shop_currency_code", "comment": null}, "tax_amount_pres": {"type": "double precision", "index": 7, "name": "tax_amount_pres", "comment": null}, "tax_amount_pres_currency_code": {"type": "text", "index": 8, "name": "tax_amount_pres_currency_code", "comment": null}, "tax_amount_shop": {"type": "double precision", "index": 9, "name": "tax_amount_shop", "comment": null}, "tax_amount_shop_currency_code": {"type": "text", "index": 10, "name": "tax_amount_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 11, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 14, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment"}, "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment_tmp"}, "model.shopify_source.stg_shopify_gql__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code"}, "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_source.stg_shopify_gql__order_discount_code_tmp"}, "model.shopify_source.stg_shopify_gql__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line"}, "model.shopify_source.stg_shopify_gql__order_line_refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_refund_id": {"type": "integer", "index": 1, "name": "order_line_refund_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "subtotal_pres_amount": {"type": "double precision", "index": 4, "name": "subtotal_pres_amount", "comment": null}, "subtotal_pres_currency_code": {"type": "text", "index": 5, "name": "subtotal_pres_currency_code", "comment": null}, "subtotal_shop_amount": {"type": "double precision", "index": 6, "name": "subtotal_shop_amount", "comment": null}, "subtotal_shop_currency_code": {"type": "text", "index": 7, "name": "subtotal_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 8, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 9, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 10, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 11, "name": "total_tax_shop_currency_code", "comment": null}, "quantity": {"type": "double precision", "index": 12, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 13, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 14, "name": "restock_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 17, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund"}, "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_source.stg_shopify_gql__order_line_refund_tmp"}, "model.shopify_source.stg_shopify_gql__order_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_note_attribute": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute"}, "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"}, "model.shopify_source.stg_shopify_gql__order_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "carrier_identifier": {"type": "text", "index": 3, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "delivery_category": {"type": "text", "index": 5, "name": "delivery_category", "comment": null}, "discounted_price_pres_amount": {"type": "double precision", "index": 6, "name": "discounted_price_pres_amount", "comment": null}, "discounted_price_pres_currency_code": {"type": "text", "index": 7, "name": "discounted_price_pres_currency_code", "comment": null}, "discounted_price_shop_amount": {"type": "double precision", "index": 8, "name": "discounted_price_shop_amount", "comment": null}, "discounted_price_shop_currency_code": {"type": "text", "index": 9, "name": "discounted_price_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 10, "name": "phone", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 11, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 12, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 13, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 14, "name": "price_shop_currency_code", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 19, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line"}, "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 3, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 4, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 5, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 6, "name": "price_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 7, "name": "rate", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_tag"}, "model.shopify_source.stg_shopify_gql__order_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_tag_tmp"}, "model.shopify_source.stg_shopify_gql__order_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_source.stg_shopify_gql__order_tmp"}, "model.shopify_source.stg_shopify_gql__product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product"}, "model.shopify_source.stg_shopify_gql__product_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "unique_key": {"type": "text", "index": 5, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_media"}, "model.shopify_source.stg_shopify_gql__product_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.stg_shopify_gql__product_media_tmp"}, "model.shopify_source.stg_shopify_gql__product_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tag"}, "model.shopify_source.stg_shopify_gql__product_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tag_tmp"}, "model.shopify_source.stg_shopify_gql__product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tmp"}, "model.shopify_source.stg_shopify_gql__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_variant"}, "model.shopify_source.stg_shopify_gql__product_variant_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 4, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media"}, "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_source.stg_shopify_gql__product_variant_media_tmp"}, "model.shopify_source.stg_shopify_gql__product_variant_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.stg_shopify_gql__product_variant_tmp"}, "model.shopify_source.stg_shopify_gql__refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"refund_id": {"type": "integer", "index": 1, "name": "refund_id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 4, "name": "user_id", "comment": null}, "return_id": {"type": "integer", "index": 5, "name": "return_id", "comment": null}, "total_refunded_pres_amount": {"type": "double precision", "index": 6, "name": "total_refunded_pres_amount", "comment": null}, "total_refunded_pres_currency_code": {"type": "text", "index": 7, "name": "total_refunded_pres_currency_code", "comment": null}, "total_refunded_shop_amount": {"type": "double precision", "index": 8, "name": "total_refunded_shop_amount", "comment": null}, "total_refunded_shop_currency_code": {"type": "text", "index": 9, "name": "total_refunded_shop_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__refund"}, "model.shopify_source.stg_shopify_gql__refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_source.stg_shopify_gql__refund_tmp"}, "model.shopify_source.stg_shopify_gql__shop": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 16, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 17, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 18, "name": "email", "comment": null}, "domain": {"type": "text", "index": 19, "name": "domain", "comment": null}, "phone": {"type": "character varying", "index": 20, "name": "phone", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 21, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 22, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 23, "name": "timezone_offset_minutes", "comment": null}, "iana_timezone": {"type": "text", "index": 24, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 25, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 26, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "has_shipping_taxes": {"type": "boolean", "index": 29, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 30, "name": "has_taxes_included_in_price", "comment": null}, "has_storefront": {"type": "boolean", "index": 31, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 32, "name": "has_checkout_api_supported", "comment": null}, "money_format": {"type": "text", "index": 33, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 34, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 35, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 36, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 37, "name": "plan_display_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 38, "name": "is_password_enabled", "comment": null}, "is_setup_required": {"type": "boolean", "index": 39, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 40, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 41, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 42, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 43, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 44, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__shop"}, "model.shopify_source.stg_shopify_gql__shop_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__shop_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__shop_tmp"}, "model.shopify_source.stg_shopify_gql__tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 3, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 4, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 5, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 6, "name": "price_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 7, "name": "rate", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tax_line"}, "model.shopify_source.stg_shopify_gql__tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tax_line_tmp"}, "model.shopify_source.stg_shopify_gql__tender_transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "payment_method": {"type": "text", "index": 5, "name": "payment_method", "comment": null}, "remote_reference": {"type": "text", "index": 6, "name": "remote_reference", "comment": null}, "user_id": {"type": "integer", "index": 7, "name": "user_id", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction"}, "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_source.stg_shopify_gql__tender_transaction_tmp"}, "model.shopify_source.stg_shopify_gql__transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "integer", "index": 3, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 4, "name": "amount_pres", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "device_id": {"type": "text", "index": 6, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 7, "name": "gateway", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 8, "name": "amount_pres_currency_code", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 9, "name": "amount_shop_currency_code", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 11, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 12, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 13, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 14, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 15, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 17, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 18, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 19, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 20, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 21, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 22, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "text", "index": 23, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 24, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 26, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 29, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 30, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 31, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 32, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__transaction"}, "model.shopify_source.stg_shopify_gql__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__transaction_tmp"}}, "sources": {"source.shopify_source.shopify.abandoned_checkout": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.shopify.abandoned_checkout"}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code"}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line"}, "source.shopify_source.shopify.collection": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection"}, "source.shopify_source.shopify.collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection_product"}, "source.shopify_source.shopify.customer": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer"}, "source.shopify_source.shopify.customer_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer_tag"}, "source.shopify_source.shopify.discount_allocation": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.shopify.discount_allocation"}, "source.shopify_source.shopify.discount_application": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_application"}, "source.shopify_source.shopify.discount_code_app": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_app"}, "source.shopify_source.shopify.discount_code_basic": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_basic"}, "source.shopify_source.shopify.discount_code_bxgy": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_bxgy"}, "source.shopify_source.shopify.discount_code_free_shipping": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_free_shipping"}, "source.shopify_source.shopify.discount_redeem_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.shopify.discount_redeem_code"}, "source.shopify_source.shopify.fulfillment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment"}, "source.shopify_source.shopify.fulfillment_event": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment_event"}, "source.shopify_source.shopify_graphql.abandoned_checkout": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_source.shopify_graphql.abandoned_checkout"}, "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"}, "source.shopify_source.shopify_graphql.collection": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.shopify_graphql.collection"}, "source.shopify_source.shopify_graphql.collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.shopify_graphql.collection_product"}, "source.shopify_source.shopify_graphql.customer_address": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_address"}, "source.shopify_source.shopify_graphql.customer": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer"}, "source.shopify_source.shopify_graphql.customer_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_tag"}, "source.shopify_source.shopify_graphql.customer_visit": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_visit_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_visit"}, "source.shopify_source.shopify_graphql.discount_allocation": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_source.shopify_graphql.discount_allocation"}, "source.shopify_source.shopify_graphql.discount_application": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_source.shopify_graphql.discount_application"}, "source.shopify_source.shopify_graphql.discount_code_app": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_app"}, "source.shopify_source.shopify_graphql.discount_code_basic": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_basic"}, "source.shopify_source.shopify_graphql.discount_code_bxgy": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_bxgy"}, "source.shopify_source.shopify_graphql.discount_code_free_shipping": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_free_shipping"}, "source.shopify_source.shopify_graphql.discount_redeem_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_source.shopify_graphql.discount_redeem_code"}, "source.shopify_source.shopify_graphql.fulfillment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_source.shopify_graphql.fulfillment"}, "source.shopify_source.shopify_graphql.fulfillment_event": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_event"}, "source.shopify_source.shopify_graphql.fulfillment_order_line_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_order_line_item"}, "source.shopify_source.shopify_graphql.fulfillment_tracking_info": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_tracking_info"}, "source.shopify_source.shopify_graphql.inventory_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.shopify_graphql.inventory_item"}, "source.shopify_source.shopify_graphql.inventory_level": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.shopify_graphql.inventory_level"}, "source.shopify_source.shopify_graphql.inventory_quantity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_source.shopify_graphql.inventory_quantity"}, "source.shopify_source.shopify_graphql.location": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.location"}, "source.shopify_source.shopify_graphql.media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_source.shopify_graphql.media"}, "source.shopify_source.shopify_graphql.media_image": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.media_image"}, "source.shopify_source.shopify_graphql.metafield": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.metafield"}, "source.shopify_source.shopify_graphql.order_adjustment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_adjustment"}, "source.shopify_source.shopify_graphql.order": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_source.shopify_graphql.order"}, "source.shopify_source.shopify_graphql.order_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_source.shopify_graphql.order_discount_code"}, "source.shopify_source.shopify_graphql.order_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_line"}, "source.shopify_source.shopify_graphql.order_line_refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_source.shopify_graphql.order_line_refund"}, "source.shopify_source.shopify_graphql.order_note_attribute": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_note_attribute"}, "source.shopify_source.shopify_graphql.order_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_shipping_line"}, "source.shopify_source.shopify_graphql.order_shipping_tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_shipping_tax_line"}, "source.shopify_source.shopify_graphql.order_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_tag"}, "source.shopify_source.shopify_graphql.product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.product"}, "source.shopify_source.shopify_graphql.product_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.shopify_graphql.product_media"}, "source.shopify_source.shopify_graphql.product_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.product_tag"}, "source.shopify_source.shopify_graphql.product_variant": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.shopify_graphql.product_variant"}, "source.shopify_source.shopify_graphql.product_variant_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_source.shopify_graphql.product_variant_media"}, "source.shopify_source.shopify_graphql.refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_source.shopify_graphql.refund"}, "source.shopify_source.shopify_graphql.shop": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.shop"}, "source.shopify_source.shopify_graphql.tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.tax_line"}, "source.shopify_source.shopify_graphql.tender_transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_source.shopify_graphql.tender_transaction"}, "source.shopify_source.shopify_graphql.transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.transaction"}, "source.shopify_source.shopify.inventory_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_item"}, "source.shopify_source.shopify.inventory_level": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_level"}, "source.shopify_source.shopify.inventory_quantity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_quantity"}, "source.shopify_source.shopify.location": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.shopify.location"}, "source.shopify_source.shopify.media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media"}, "source.shopify_source.shopify.media_image": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media_image"}, "source.shopify_source.shopify.metafield": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.metafield"}, "source.shopify_source.shopify.order_adjustment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_adjustment"}, "source.shopify_source.shopify.order": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order"}, "source.shopify_source.shopify.order_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_discount_code"}, "source.shopify_source.shopify.order_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line"}, "source.shopify_source.shopify.order_line_refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line_refund"}, "source.shopify_source.shopify.order_note_attribute": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_note_attribute"}, "source.shopify_source.shopify.order_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_line"}, "source.shopify_source.shopify.order_shipping_tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_tax_line"}, "source.shopify_source.shopify.order_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_tag"}, "source.shopify_source.shopify.order_url_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_url_tag"}, "source.shopify_source.shopify.product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product"}, "source.shopify_source.shopify.product_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_media"}, "source.shopify_source.shopify.product_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_tag"}, "source.shopify_source.shopify.product_variant": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_variant"}, "source.shopify_source.shopify.product_variant_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_variant_media"}, "source.shopify_source.shopify.refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.shopify.refund"}, "source.shopify_source.shopify.shop": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.shop"}, "source.shopify_source.shopify.tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.tax_line"}, "source.shopify_source.shopify.tender_transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.shopify.tender_transaction"}, "source.shopify_source.shopify.transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.transaction"}}, "errors": null} \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index 5dc94075..1fb7dd20 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v12.json", "dbt_version": "1.10.6", "generated_at": "2025-08-06T19:12:22.185492Z", "invocation_id": "a1a1c0f7-774a-452e-8815-3e67df4d0e48", "invocation_started_at": "2025-08-06T19:11:50.205643+00:00", "env": {}, "project_name": "shopify_integration_tests", "project_id": "c39719ba3d679fd569bed21921e72e32", "user_id": null, "send_anonymous_usage_stats": false, "adapter_type": "postgres", "quoting": {"database": true, "schema": true, "identifier": true, "column": null}}, "nodes": {"seed.shopify_integration_tests.shopify_gql_product_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_tag_data.csv", "original_file_path": "seeds/shopify_gql_product_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_tag_data"], "alias": "shopify_gql_product_tag_data", "checksum": {"name": "sha256", "checksum": "8c043c435f2de4a4004471419a272adaf066c1e9e36fa2e9de62a6562d4d2e26"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.5937836, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_event_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_event_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_event_data"], "alias": "shopify_gql_fulfillment_event_data", "checksum": {"name": "sha256", "checksum": "c8df472434961ad12566344da5a47483bd18c4b9cb7b5eafd44f96f284aaebea"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6012533, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_metafield_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_metafield_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_metafield_data.csv", "original_file_path": "seeds/shopify_gql_metafield_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_metafield_data", "fqn": ["shopify_integration_tests", "shopify_gql_metafield_data"], "alias": "shopify_gql_metafield_data", "checksum": {"name": "sha256", "checksum": "b698e66e6a1d23c772fe5d1c36943dd9e5be8609f08b7f0990b1c20417e3f4d1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6044488, "relation_name": "\"postgres\".\"public\".\"shopify_gql_metafield_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_basic_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_basic_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_basic_data.csv", "original_file_path": "seeds/shopify_discount_code_basic_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_basic_data"], "alias": "shopify_discount_code_basic_data", "checksum": {"name": "sha256", "checksum": "dc25a6ca420db34e1ce13e0749f1e65e949cef3a260c736e1eb6e53b7db15ace"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1754507513.6078064, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_order_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_discount_code_data.csv", "original_file_path": "seeds/shopify_order_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_order_discount_code_data"], "alias": "shopify_order_discount_code_data", "checksum": {"name": "sha256", "checksum": "f4e391a3f00ebb1f7444487e4577dc95e28c39745e40f6c0fcb1bd90562833f6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"order_id": "bigint", "amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float"}}, "created_at": 1754507513.6113634, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_data": {"database": "postgres", "schema": "public", "name": "shopify_order_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_data.csv", "original_file_path": "seeds/shopify_order_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_data", "fqn": ["shopify_integration_tests", "shopify_order_data"], "alias": "shopify_order_data", "checksum": {"name": "sha256", "checksum": "274aec2c5b1f7cd936359683f33c830d2ef7067e6e445469df0c3b460ad9d56c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "bigint", "customer_id": "bigint", "location_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.6146753, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_basic_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_basic_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_basic_data"], "alias": "shopify_gql_discount_code_basic_data", "checksum": {"name": "sha256", "checksum": "d42fbb32c0fcf3c168a45013a7a5c9b9e9c8871e7b2079d5973741f88543c079"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"total_sales_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"total_sales_amount": "float"}}, "created_at": 1754507513.617918, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_line_data.csv", "original_file_path": "seeds/shopify_gql_order_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_line_data"], "alias": "shopify_gql_order_line_data", "checksum": {"name": "sha256", "checksum": "c4ef70509cf12a7e963b4427bd4ecaf67fa4597191c62bd6da8844e0c448a3ef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6209915, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_tag_data.csv", "original_file_path": "seeds/shopify_order_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_tag_data"], "alias": "shopify_order_tag_data", "checksum": {"name": "sha256", "checksum": "c448adfe655f83dcaf6370ad2ef36f0ad6991c1b6d001e3aab317fd17359b129"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6241226, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_tracking_info_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_tracking_info_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_tracking_info_data"], "alias": "shopify_gql_fulfillment_tracking_info_data", "checksum": {"name": "sha256", "checksum": "0ce5041eae13306e77b2f03c364a8e5767be39e68e711fbb1b76709e51191b12"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.627157, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_redeem_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_redeem_code_data.csv", "original_file_path": "seeds/shopify_discount_redeem_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_redeem_code_data", "fqn": ["shopify_integration_tests", "shopify_discount_redeem_code_data"], "alias": "shopify_discount_redeem_code_data", "checksum": {"name": "sha256", "checksum": "801a010544f98b358371e38d9af1023f4e91747d6f4e488c5a65358794bc3ab5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "discount_id": "bigint", "created_by_id": "bigint", "async_usage_count": "integer", "code": "varchar", "discount_type": "varchar", "created_by_description": "varchar", "created_by_title": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "created_by_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "async_usage_count": "integer", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.6303473, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_application_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_application_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_application_data.csv", "original_file_path": "seeds/shopify_discount_application_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data", "fqn": ["shopify_integration_tests", "shopify_discount_application_data"], "alias": "shopify_discount_application_data", "checksum": {"name": "sha256", "checksum": "9d678050ac7442f36d8aa9a5b0b013aeea7ab64a785a564a31aa41fa6a6ee70a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"allocation_method": "varchar", "code": "varchar", "description": "varchar", "index": "integer", "order_id": "bigint", "target_selection": "varchar", "target_type": "varchar", "title": "varchar", "type": "varchar", "value": "float", "value_type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"allocation_method": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "index": "integer", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "target_selection": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "target_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "value": "float", "value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.6337478, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_data.csv", "original_file_path": "seeds/shopify_gql_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_data"], "alias": "shopify_gql_product_data", "checksum": {"name": "sha256", "checksum": "5c3d5008de7c87b129567ced494177bc809a49587033e462e8e099dfe3c02662"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6370761, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_address_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_address_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_address_data.csv", "original_file_path": "seeds/shopify_gql_customer_address_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_address_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_address_data"], "alias": "shopify_gql_customer_address_data", "checksum": {"name": "sha256", "checksum": "55643b705646db36fbaeb65e2786f9981acc20dbcd95996c0ee31afacef123b6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.640213, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_free_shipping_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_free_shipping_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_free_shipping_data"], "alias": "shopify_gql_discount_code_free_shipping_data", "checksum": {"name": "sha256", "checksum": "0d9313224e67ae163a3b90d05629775d330a68deef8c6826316ffa88d75254a2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6432855, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_refund_data.csv", "original_file_path": "seeds/shopify_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_refund_data", "fqn": ["shopify_integration_tests", "shopify_refund_data"], "alias": "shopify_refund_data", "checksum": {"name": "sha256", "checksum": "8d8bc98681d9b0d57a43af3fc99ff13cc42401d97e49bba41c1fafb28f858d23"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.6463594, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_product_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_product_data.csv", "original_file_path": "seeds/shopify_collection_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data", "fqn": ["shopify_integration_tests", "shopify_collection_product_data"], "alias": "shopify_collection_product_data", "checksum": {"name": "sha256", "checksum": "f0829ff9b0c3116846c83d4cb2dfae170594e230d3586b8abae97a31d4a51c55"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.649412, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_abandoned_checkout_discount_code_data.csv", "original_file_path": "seeds/shopify_gql_abandoned_checkout_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_abandoned_checkout_discount_code_data"], "alias": "shopify_gql_abandoned_checkout_discount_code_data", "checksum": {"name": "sha256", "checksum": "90c5089352dfe1ea90e277813ae7824053992fa838896d4d55130c1ca0e51b82"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.652484, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_shipping_tax_line_data.csv", "original_file_path": "seeds/shopify_gql_order_shipping_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_shipping_tax_line_data"], "alias": "shopify_gql_order_shipping_tax_line_data", "checksum": {"name": "sha256", "checksum": "4c0d33725e1979f861188e46f54626db2fa5d1dc12a23b6dec4d67b2617e8493"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6554754, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_data.csv", "original_file_path": "seeds/shopify_customer_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_data", "fqn": ["shopify_integration_tests", "shopify_customer_data"], "alias": "shopify_customer_data", "checksum": {"name": "sha256", "checksum": "72ba9c7141e483ec3a8715cb27d57c8e36f8ca293b0a507676391c8804c717f2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint", "default_address_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "default_address_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.6585896, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_media_data.csv", "original_file_path": "seeds/shopify_product_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_media_data", "fqn": ["shopify_integration_tests", "shopify_product_media_data"], "alias": "shopify_product_media_data", "checksum": {"name": "sha256", "checksum": "b38d774b588961b4cd6e5b8cdb9c0319dd694bcdd474a54a68e062b3cf488d44"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.6617794, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_tax_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_tax_line_data"], "alias": "shopify_order_shipping_tax_line_data", "checksum": {"name": "sha256", "checksum": "279d995731cd3b85aa948f6721ada5f455324347f7ac3211a98bf2f3bb72f899"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float"}}, "created_at": 1754507513.6650066, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_image_data": {"database": "postgres", "schema": "public", "name": "shopify_media_image_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_image_data.csv", "original_file_path": "seeds/shopify_media_image_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_image_data", "fqn": ["shopify_integration_tests", "shopify_media_image_data"], "alias": "shopify_media_image_data", "checksum": {"name": "sha256", "checksum": "98621ab1fd6334df5ffa045d9642644d5e465d8684cd635dd5bf8c157f964966"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"media_id": "bigint", "image_id": "bigint", "image_alt_text": "varchar", "image_height": "integer", "image_url": "varchar", "image_width": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_alt_text": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_height": "integer", "image_url": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_width": "integer"}}, "created_at": 1754507513.6682227, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_allocation_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_allocation_data.csv", "original_file_path": "seeds/shopify_gql_discount_allocation_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_allocation_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_allocation_data"], "alias": "shopify_gql_discount_allocation_data", "checksum": {"name": "sha256", "checksum": "66070d7edfd03f95cce45261aff8868c52ac272d23457e8b00d31f89bee13bb2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.671323, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_data": {"database": "postgres", "schema": "public", "name": "shopify_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_data.csv", "original_file_path": "seeds/shopify_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_data", "fqn": ["shopify_integration_tests", "shopify_product_data"], "alias": "shopify_product_data", "checksum": {"name": "sha256", "checksum": "e3e37227f60cd1960dc29421bf94785a59c058e4b6a4cd01262376f34947e320"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.6744256, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_refund_data.csv", "original_file_path": "seeds/shopify_order_line_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data", "fqn": ["shopify_integration_tests", "shopify_order_line_refund_data"], "alias": "shopify_order_line_refund_data", "checksum": {"name": "sha256", "checksum": "5d28c17ac30b49f32cb92c5ade7643c3322d0a18e38094140cf06ace9fc85e72"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "id": "bigint", "location_id": "bigint", "refund_id": "bigint", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.6776018, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_item_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_item_data.csv", "original_file_path": "seeds/shopify_inventory_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data", "fqn": ["shopify_integration_tests", "shopify_inventory_item_data"], "alias": "shopify_inventory_item_data", "checksum": {"name": "sha256", "checksum": "11076fbaaf5cb0b1a1cdfdcb8520fc3c6049ef627ff305251d40f1e562dfcd52"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "measurement_id": "bigint", "legacy_resource_id": "bigint", "updated_at": "timestamp", "created_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "measurement_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "updated_at": "timestamp", "created_at": "timestamp"}}, "created_at": 1754507513.6808896, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_data.csv", "original_file_path": "seeds/shopify_gql_customer_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_data"], "alias": "shopify_gql_customer_data", "checksum": {"name": "sha256", "checksum": "ccd33f05c9942cd47dc7bf8abef925334aa740a60181b9ce13657323fe63267d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.6840317, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_visit_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_visit_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_visit_data.csv", "original_file_path": "seeds/shopify_gql_customer_visit_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_visit_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_visit_data"], "alias": "shopify_gql_customer_visit_data", "checksum": {"name": "sha256", "checksum": "33bcb50366b3a771c4a408cf198e0ba0ed4308af90d0d9066fcf5b8a0cb74ce6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.6870751, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_abandoned_checkout_data.csv", "original_file_path": "seeds/shopify_gql_abandoned_checkout_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data", "fqn": ["shopify_integration_tests", "shopify_gql_abandoned_checkout_data"], "alias": "shopify_gql_abandoned_checkout_data", "checksum": {"name": "sha256", "checksum": "f3999e4554d821e95b65fc49d14ab501151f3026c8936871197cabfbac47e25a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar", "shipping_address_phone": "varchar", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_discount_set_shop_amount": "float", "total_discount_set_pres_amount": "float", "total_duties_set_shop_amount": "float", "total_duties_set_pres_amount": "float", "total_line_items_price_set_shop_amount": "float", "total_line_items_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_tax_set_pres_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_discount_set_shop_amount": "float", "total_discount_set_pres_amount": "float", "total_duties_set_shop_amount": "float", "total_duties_set_pres_amount": "float", "total_line_items_price_set_shop_amount": "float", "total_line_items_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_tax_set_pres_amount": "float"}}, "created_at": 1754507513.6902804, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_quantity_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_quantity_data.csv", "original_file_path": "seeds/shopify_inventory_quantity_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data", "fqn": ["shopify_integration_tests", "shopify_inventory_quantity_data"], "alias": "shopify_inventory_quantity_data", "checksum": {"name": "sha256", "checksum": "8fa9f26df5501b6f7a065d74a2da5bf70329b7197e8c11139cda950874243d1c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "inventory_level_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_level_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.6936226, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_variant_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_variant_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_variant_data.csv", "original_file_path": "seeds/shopify_gql_product_variant_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_variant_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_variant_data"], "alias": "shopify_gql_product_variant_data", "checksum": {"name": "sha256", "checksum": "fba49f77a3f4d25f1d1ab0cb5fbf89e4309fffa50c45a5c2b51eccd816888748"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"compare_at_price": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"compare_at_price": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.6968105, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_bxgy_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_bxgy_data.csv", "original_file_path": "seeds/shopify_discount_code_bxgy_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_bxgy_data"], "alias": "shopify_discount_code_bxgy_data", "checksum": {"name": "sha256", "checksum": "676970b98658b2da21aec24691e589c9d1bd42703e266864d7af1d310f57fc53"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "varchar", "summary": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "summary": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}}, "created_at": 1754507513.700196, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_data.csv", "original_file_path": "seeds/shopify_order_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_data", "fqn": ["shopify_integration_tests", "shopify_order_line_data"], "alias": "shopify_order_line_data", "checksum": {"name": "sha256", "checksum": "a4e65b3c0ee73ff8755aec89198632427baa2dbcc39d2e97659a8a976a92b8cd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "order_id": "bigint", "id": "bigint", "product_id": "bigint", "variant_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.70349, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_media_data.csv", "original_file_path": "seeds/shopify_gql_product_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_media_data"], "alias": "shopify_gql_product_media_data", "checksum": {"name": "sha256", "checksum": "9b99a3ca51b4ecd63cc1d2a8a83a5a96dbf52e878990055a8e3a03b89666272d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7065332, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_quantity_data.csv", "original_file_path": "seeds/shopify_gql_inventory_quantity_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_quantity_data"], "alias": "shopify_gql_inventory_quantity_data", "checksum": {"name": "sha256", "checksum": "aa5cdc0d5565496916a0f61055b029546d99b6aab2a2433c11f936abeeafcb1b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7095673, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_shipping_line_data.csv", "original_file_path": "seeds/shopify_gql_order_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_shipping_line_data"], "alias": "shopify_gql_order_shipping_line_data", "checksum": {"name": "sha256", "checksum": "5e77fbe4d6a87d50fcee326d856b97033aa850a6bc3edab4b70064c89498c01b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.7126439, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_free_shipping_data.csv", "original_file_path": "seeds/shopify_discount_code_free_shipping_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_free_shipping_data"], "alias": "shopify_discount_code_free_shipping_data", "checksum": {"name": "sha256", "checksum": "55e37730e02503078ff03a624def743c4413c5feda1bdcdd38cc7d0dbe47e2bd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1754507513.7160635, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_tax_line_data.csv", "original_file_path": "seeds/shopify_gql_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_tax_line_data"], "alias": "shopify_gql_tax_line_data", "checksum": {"name": "sha256", "checksum": "08f6ab93144ae307e2e9f808278e5e6f13b1c76a609df067a7b3e18c52623bc2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7192724, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_variant_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_variant_media_data.csv", "original_file_path": "seeds/shopify_gql_product_variant_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_variant_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_variant_media_data"], "alias": "shopify_gql_product_variant_media_data", "checksum": {"name": "sha256", "checksum": "42fdae13aac1a3868e29e1586fa30cb8c01f5265ecb6040353c147ede2a30f9e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7223346, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_tag_data.csv", "original_file_path": "seeds/shopify_gql_order_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_tag_data"], "alias": "shopify_gql_order_tag_data", "checksum": {"name": "sha256", "checksum": "6fb78d3ccb69ab26e0ab8d781865dece254bfa951b1e1e57efe800e4c3c9aa9d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7253246, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_order_line_item_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_order_line_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_order_line_item_data"], "alias": "shopify_gql_fulfillment_order_line_item_data", "checksum": {"name": "sha256", "checksum": "038512c381c821457b427a8a6d19049e6eb9302f5acfaaebdf56896f31aa0c01"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7283018, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_product_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_product_data.csv", "original_file_path": "seeds/shopify_gql_collection_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_product_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_product_data"], "alias": "shopify_gql_collection_product_data", "checksum": {"name": "sha256", "checksum": "97528489feaf3fe056bfad2e1d5704c7a27d9fd0e90253b3fd64eceecfe31a7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7312846, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_data"], "alias": "shopify_gql_fulfillment_data", "checksum": {"name": "sha256", "checksum": "707d77c094f00fb4c21d1968550d66a131bbfbec48addd7d7137936b00aca500"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.7342517, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_data.csv", "original_file_path": "seeds/shopify_gql_order_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_data"], "alias": "shopify_gql_order_data", "checksum": {"name": "sha256", "checksum": "5f2c9bc0a1d81234edf8945c72a99425ebe0450aad71cf418ca24b12c0ab3fd3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar", "shipping_address_phone": "varchar", "total_shipping_price_set_pres_amount": "float", "total_shipping_price_set_shop_amount": "float", "total_tax_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_discounts_set_pres_amount": "float", "total_discounts_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_tip_received_set_pres_amount": "float", "total_tip_received_set_shop_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_shipping_price_set_pres_amount": "float", "total_shipping_price_set_shop_amount": "float", "total_tax_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_discounts_set_pres_amount": "float", "total_discounts_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_tip_received_set_pres_amount": "float", "total_tip_received_set_shop_amount": "float"}}, "created_at": 1754507513.7380316, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_tender_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_tender_transaction_data.csv", "original_file_path": "seeds/shopify_gql_tender_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_tender_transaction_data", "fqn": ["shopify_integration_tests", "shopify_gql_tender_transaction_data"], "alias": "shopify_gql_tender_transaction_data", "checksum": {"name": "sha256", "checksum": "6e660fced8b377b4a7c7a3ea5c4cb1e8dff259e0b3596bfff56868873a7348dc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.741232, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_refund_data.csv", "original_file_path": "seeds/shopify_gql_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_refund_data", "fqn": ["shopify_integration_tests", "shopify_gql_refund_data"], "alias": "shopify_gql_refund_data", "checksum": {"name": "sha256", "checksum": "f8767945248aa31df8667d9a302c98da70ecfa3200f09ae9a8a08e56f648b1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.744268, "relation_name": "\"postgres\".\"public\".\"shopify_gql_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"database": "postgres", "schema": "public", "name": "shopify_order_adjustment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_adjustment_data.csv", "original_file_path": "seeds/shopify_order_adjustment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data", "fqn": ["shopify_integration_tests", "shopify_order_adjustment_data"], "alias": "shopify_order_adjustment_data", "checksum": {"name": "sha256", "checksum": "48ce96540f19450088c661fd48bd8f6d58bb4ca13a1f048880e9984be367172e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.7473476, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_product_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_tag_data.csv", "original_file_path": "seeds/shopify_product_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data", "fqn": ["shopify_integration_tests", "shopify_product_tag_data"], "alias": "shopify_product_tag_data", "checksum": {"name": "sha256", "checksum": "10203c8ee30c2d400a7f5126732f6c17985017df02cd4eceff90ef483e1c0729"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8089805, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_shop_data": {"database": "postgres", "schema": "public", "name": "shopify_shop_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_shop_data.csv", "original_file_path": "seeds/shopify_shop_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_shop_data", "fqn": ["shopify_integration_tests", "shopify_shop_data"], "alias": "shopify_shop_data", "checksum": {"name": "sha256", "checksum": "1029ea325d95c96dbdf0c52a9fd8ef272516b15f99f834a507bff27eda689bba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}}, "created_at": 1754507513.8124022, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_line_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_line_refund_data.csv", "original_file_path": "seeds/shopify_gql_order_line_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_refund_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_line_refund_data"], "alias": "shopify_gql_order_line_refund_data", "checksum": {"name": "sha256", "checksum": "f42ec092931b7b6629fad2c44ca9d9cfa5b655980dd1140d69d8b687178b8d32"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"quantity": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"quantity": "float"}}, "created_at": 1754507513.815558, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_adjustment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_adjustment_data.csv", "original_file_path": "seeds/shopify_gql_order_adjustment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_adjustment_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_adjustment_data"], "alias": "shopify_gql_order_adjustment_data", "checksum": {"name": "sha256", "checksum": "5477a81fe785b813c63156e1f04d73748f431cd6f247ad0f5ac75785a9cc1325"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8186002, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_rule_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_rule_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_rule_data.csv", "original_file_path": "seeds/shopify_gql_collection_rule_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_rule_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_rule_data"], "alias": "shopify_gql_collection_rule_data", "checksum": {"name": "sha256", "checksum": "fc43b048e1c1c4e2dc67460f2d7ad884ccc7a3f02ba7d749a766459199c1a6aa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8216906, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_rule_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_data.csv", "original_file_path": "seeds/shopify_fulfillment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_data"], "alias": "shopify_fulfillment_data", "checksum": {"name": "sha256", "checksum": "36993dd7ab6cd0951d3229c9d72237f4115292350e2659bdb717866f8fe8ebd8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8246868, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_data.csv", "original_file_path": "seeds/shopify_collection_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_data", "fqn": ["shopify_integration_tests", "shopify_collection_data"], "alias": "shopify_collection_data", "checksum": {"name": "sha256", "checksum": "27cb0f0a37833f86bc7d0eb153acacdca987a69caf07dccdea4a072895f0a518"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754507513.827778, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"database": "postgres", "schema": "public", "name": "shopify_order_note_attribute_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_note_attribute_data.csv", "original_file_path": "seeds/shopify_order_note_attribute_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data", "fqn": ["shopify_integration_tests", "shopify_order_note_attribute_data"], "alias": "shopify_order_note_attribute_data", "checksum": {"name": "sha256", "checksum": "9076f469c15ad5e18c4365039836b6739c2d7fc79ed987564ab8c1849994309c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8308296, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_discount_code_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_discount_code_data"], "alias": "shopify_abandoned_checkout_discount_code_data", "checksum": {"name": "sha256", "checksum": "f60365d56b94e348893476184122a98c6a4b939de1c7de1f7f3684e2ba344e48"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"checkout_id": "bigint", "discount_id": "bigint", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "varchar", "type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"checkout_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.8340137, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_event_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_event_data.csv", "original_file_path": "seeds/shopify_fulfillment_event_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_event_data"], "alias": "shopify_fulfillment_event_data", "checksum": {"name": "sha256", "checksum": "ae538cd22df11081f1f4d2b6970c945d432f92af0e96fac2e10e1e09d886abef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8371356, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_media_data.csv", "original_file_path": "seeds/shopify_gql_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_media_data"], "alias": "shopify_gql_media_data", "checksum": {"name": "sha256", "checksum": "ffa3f564a810c9230c529066f5be55051045d32e14bfee4c04479ec3e5140a3c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8400967, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_bxgy_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_bxgy_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_bxgy_data"], "alias": "shopify_gql_discount_code_bxgy_data", "checksum": {"name": "sha256", "checksum": "93dd6da3ac1575fe61eed846dd3e2db2d75f16237571cfd4a4647f33ec612a28"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8431232, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_line_data"], "alias": "shopify_order_shipping_line_data", "checksum": {"name": "sha256", "checksum": "7a83a6e1121c088d6cd6ab3a944c683bfe4ac72ac440fcf97d55c3ca709b88a8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"discounted_price": "float", "price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"discounted_price": "float", "price": "float"}}, "created_at": 1754507513.8462088, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_item_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_item_data.csv", "original_file_path": "seeds/shopify_gql_inventory_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_item_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_item_data"], "alias": "shopify_gql_inventory_item_data", "checksum": {"name": "sha256", "checksum": "cb50caac3e13ddc3c4011ecbd1929f2c6876a6010e0e055ce0d32891a2caa6f0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.849371, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_data"], "alias": "shopify_abandoned_checkout_data", "checksum": {"name": "sha256", "checksum": "1fc66dc1ee0e84111cc6c3de1b49c3e172d477eadda206ec80095dbae720a7b4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"total_line_items_price": "float", "billing_address_phone": "varchar", "shipping_address_phone": "varchar", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"total_line_items_price": "float", "billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754507513.852583, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_location_data": {"database": "postgres", "schema": "public", "name": "shopify_location_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_location_data.csv", "original_file_path": "seeds/shopify_location_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_location_data", "fqn": ["shopify_integration_tests", "shopify_location_data"], "alias": "shopify_location_data", "checksum": {"name": "sha256", "checksum": "781bb070fbf96fd7e01d4229ccbac91f77bcd52726ffea2de9fa36abe6804b38"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8556814, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_location_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_location_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_location_data.csv", "original_file_path": "seeds/shopify_gql_location_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_location_data", "fqn": ["shopify_integration_tests", "shopify_gql_location_data"], "alias": "shopify_gql_location_data", "checksum": {"name": "sha256", "checksum": "0e3fcbfcccb24bff1a397108c5284f013e54846463ce693db515c9e843d65c82"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.8587308, "relation_name": "\"postgres\".\"public\".\"shopify_gql_location_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_data.csv", "original_file_path": "seeds/shopify_product_variant_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_data"], "alias": "shopify_product_variant_data", "checksum": {"name": "sha256", "checksum": "2c7c29665cf22fea389ed017edcd174d97384f19f5fa65e1e70073b6e29de1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "product_id": "bigint", "inventory_item_id": "bigint", "legacy_resource_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.8619933, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_shop_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_shop_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_shop_data.csv", "original_file_path": "seeds/shopify_gql_shop_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_shop_data", "fqn": ["shopify_integration_tests", "shopify_gql_shop_data"], "alias": "shopify_gql_shop_data", "checksum": {"name": "sha256", "checksum": "e691117d38fb0c6a9ad757f7adc677a8a3454f881d6c9f7d3fd625611addb1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.8651474, "relation_name": "\"postgres\".\"public\".\"shopify_gql_shop_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_tag_data.csv", "original_file_path": "seeds/shopify_gql_customer_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_tag_data"], "alias": "shopify_gql_customer_tag_data", "checksum": {"name": "sha256", "checksum": "b9990af8b8157368df2e7cd54ad712620ce79cfb8bcddbce8ceac25314d1f98f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8682191, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_tag_data.csv", "original_file_path": "seeds/shopify_customer_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data", "fqn": ["shopify_integration_tests", "shopify_customer_tag_data"], "alias": "shopify_customer_tag_data", "checksum": {"name": "sha256", "checksum": "27dad4d9a29bfd94903c156e01cdee4c0b33cfb2c5d88af98b89c19287596e5c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.8712752, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_note_attribute_data.csv", "original_file_path": "seeds/shopify_gql_order_note_attribute_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_note_attribute_data"], "alias": "shopify_gql_order_note_attribute_data", "checksum": {"name": "sha256", "checksum": "fdc162afb1aaf6ccc432a5df8eb1d42ebe945151101a43edf6176d98c3cd4ec6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8743055, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_metafield_data": {"database": "postgres", "schema": "public", "name": "shopify_metafield_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_metafield_data.csv", "original_file_path": "seeds/shopify_metafield_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_metafield_data", "fqn": ["shopify_integration_tests", "shopify_metafield_data"], "alias": "shopify_metafield_data", "checksum": {"name": "sha256", "checksum": "f9586af820e5f4c1d04e71e5a8fc699080ecb101b85735abe9724a8ea9bf0d97"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"value_type": "varchar", "type": "varchar", "id": "bigint", "owner_id": "bigint", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "owner_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754507513.8775048, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_level_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_level_data.csv", "original_file_path": "seeds/shopify_inventory_level_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data", "fqn": ["shopify_integration_tests", "shopify_inventory_level_data"], "alias": "shopify_inventory_level_data", "checksum": {"name": "sha256", "checksum": "d8bde61ad5a46b099f9e615464abf20677a00869ba308860ce0c80e59ebf40bb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "location_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.8807507, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_transaction_data.csv", "original_file_path": "seeds/shopify_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_transaction_data", "fqn": ["shopify_integration_tests", "shopify_transaction_data"], "alias": "shopify_transaction_data", "checksum": {"name": "sha256", "checksum": "def7b7fc64e42148b900dcd1f7327b470e5d3b0ed8e73f263e46a715ecb09199"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.8839595, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_data": {"database": "postgres", "schema": "public", "name": "shopify_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_data.csv", "original_file_path": "seeds/shopify_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_data", "fqn": ["shopify_integration_tests", "shopify_media_data"], "alias": "shopify_media_data", "checksum": {"name": "sha256", "checksum": "7c6234841dd8ff01ec7cd72fb11d8f933c4b12efbf8470324f0671f6afb6e266"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "status": "varchar", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754507513.8871381, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_redeem_code_data.csv", "original_file_path": "seeds/shopify_gql_discount_redeem_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_redeem_code_data"], "alias": "shopify_gql_discount_redeem_code_data", "checksum": {"name": "sha256", "checksum": "0b1fd8ebdc11adc10b729eb22fe80d4e8f69d29dbc42114ea54d5977fdb6d638"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8902948, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_data.csv", "original_file_path": "seeds/shopify_gql_collection_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_data"], "alias": "shopify_gql_collection_data", "checksum": {"name": "sha256", "checksum": "29e0276fbf7a043b812e101d81438672484cca31a69ba9c4ce2df96dc215a3b2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8932774, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_application_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_application_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_application_data.csv", "original_file_path": "seeds/shopify_gql_discount_application_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_application_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_application_data"], "alias": "shopify_gql_discount_application_data", "checksum": {"name": "sha256", "checksum": "02bf15863aaf29b404a84ab214ff73121e4ee411f2e6fecf3f757e179b6c9c2e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8962543, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_url_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_url_tag_data.csv", "original_file_path": "seeds/shopify_order_url_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_url_tag_data"], "alias": "shopify_order_url_tag_data", "checksum": {"name": "sha256", "checksum": "18d23ae4cb9bb569772db2a5622ab7f84281f3391b6c9295973a8fed3d887567"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.8992527, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_app_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_app_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_app_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_app_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_app_data"], "alias": "shopify_gql_discount_code_app_data", "checksum": {"name": "sha256", "checksum": "b6ea6c09ffbae0eedd94577b2ec3a6074bff0d33b6338d895111b7f9521ce049"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.9022295, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_allocation_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_allocation_data.csv", "original_file_path": "seeds/shopify_discount_allocation_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_allocation_data", "fqn": ["shopify_integration_tests", "shopify_discount_allocation_data"], "alias": "shopify_discount_allocation_data", "checksum": {"name": "sha256", "checksum": "22cd7acd65491fcbbd2d2de60dc69b993fa1ac45d90b41dee7976905d6418fcf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "varchar", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "varchar", "discount_application_index": "integer", "index": "integer", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_application_index": "integer", "index": "integer", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.905444, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_discount_code_data.csv", "original_file_path": "seeds/shopify_gql_order_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_discount_code_data"], "alias": "shopify_gql_order_discount_code_data", "checksum": {"name": "sha256", "checksum": "aafb732b582b0f19c9f004febfb986cf33a2d090c53d87dc5d9875584d1c9643"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.9085336, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_transaction_data.csv", "original_file_path": "seeds/shopify_gql_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_transaction_data", "fqn": ["shopify_integration_tests", "shopify_gql_transaction_data"], "alias": "shopify_gql_transaction_data", "checksum": {"name": "sha256", "checksum": "6daf1a707db559a969488734847d9996d22fc0c1eb96d91c6ae621e6fa0c9a53"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.9114907, "relation_name": "\"postgres\".\"public\".\"shopify_gql_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_product": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_product", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_product.csv", "original_file_path": "seeds/shopify_gql_collection_product.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_product", "fqn": ["shopify_integration_tests", "shopify_gql_collection_product"], "alias": "shopify_gql_collection_product", "checksum": {"name": "sha256", "checksum": "97528489feaf3fe056bfad2e1d5704c7a27d9fd0e90253b3fd64eceecfe31a7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.9144666, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_tender_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tender_transaction_data.csv", "original_file_path": "seeds/shopify_tender_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tender_transaction_data", "fqn": ["shopify_integration_tests", "shopify_tender_transaction_data"], "alias": "shopify_tender_transaction_data", "checksum": {"name": "sha256", "checksum": "7d1b7ebc547f9068b258e49431a3955f9143b99afa151664aa26a2ad9c5b479c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.917525, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tax_line_data.csv", "original_file_path": "seeds/shopify_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_tax_line_data"], "alias": "shopify_tax_line_data", "checksum": {"name": "sha256", "checksum": "af3615f675a22513590ef6a8abcce714b286f06c7532e650a56787c6afbd36de"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float", "rate": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float", "rate": "float"}}, "created_at": 1754507513.9205904, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_level_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_level_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_level_data.csv", "original_file_path": "seeds/shopify_gql_inventory_level_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_level_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_level_data"], "alias": "shopify_gql_inventory_level_data", "checksum": {"name": "sha256", "checksum": "aceaf50aec7f3b9a2fe70cc7a95c7c5a9206d11c10469987fdb88503051a0a3f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.9236326, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_shipping_line_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_shipping_line_data"], "alias": "shopify_abandoned_checkout_shipping_line_data", "checksum": {"name": "sha256", "checksum": "9b1e873b952f85626352f2ca85b67b7a14e54e7edd01467951653fc2716023d5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"markup": "varchar", "price": "float", "original_shop_markup": "varchar", "original_shop_price": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "price": "float", "original_shop_markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "original_shop_price": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754507513.926742, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_app_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_app_data.csv", "original_file_path": "seeds/shopify_discount_code_app_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_app_data"], "alias": "shopify_discount_code_app_data", "checksum": {"name": "sha256", "checksum": "079a9204224ded648d6e15b794bf77034e41f319b72801fcfee0f5b1c9e37d77"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1754507513.9301372, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_media_data.csv", "original_file_path": "seeds/shopify_product_variant_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_media_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_media_data"], "alias": "shopify_product_variant_media_data", "checksum": {"name": "sha256", "checksum": "ffa08a9130b2aa66803955797f46a610fc32abcdb404635c6c1dc3a8b289e48b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_variant_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754507513.9335012, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_media_image_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_media_image_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_media_image_data.csv", "original_file_path": "seeds/shopify_gql_media_image_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_media_image_data", "fqn": ["shopify_integration_tests", "shopify_gql_media_image_data"], "alias": "shopify_gql_media_image_data", "checksum": {"name": "sha256", "checksum": "6581609f609de50cc0b430e64d53a728502cdaea962a90bffd1e5f72079cfc47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754507513.9365768, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_image_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "model.shopify.shopify__calendar": {"database": "postgres", "schema": "public_shopify", "name": "shopify__calendar", "resource_type": "model", "package_name": "shopify", "path": "utils/shopify__calendar.sql", "original_file_path": "models/utils/shopify__calendar.sql", "unique_id": "model.shopify.shopify__calendar", "fqn": ["shopify", "utils", "shopify__calendar"], "alias": "shopify__calendar", "checksum": {"name": "sha256", "checksum": "5295fe06c949deb345450af0ad6b0335b6edc25b2e883a4f2452ae276a3e85f4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1754507514.1596346, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__calendar\"", "raw_code": "{% set start_date = var('shopify__calendar_start_date', '2019-01-01') %}\n\n{{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date=\"cast('\" ~ start_date ~ \"' as date)\",\n end_date=\"current_date\"\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.date_spine"], "nodes": []}, "compiled_path": "target/compiled/shopify/models/utils/shopify__calendar.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 2409\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2019-01-01' as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= current_date\n\n)\n\nselect * from filtered\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_cohorts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_cohorts.sql", "original_file_path": "models/rest/shopify__customer_cohorts.sql", "unique_id": "model.shopify.shopify__customer_cohorts", "fqn": ["shopify", "rest", "shopify__customer_cohorts"], "alias": "shopify__customer_cohorts", "checksum": {"name": "sha256", "checksum": "8b92c597e275f6464fbf1375ffb22714ad640588e7f163bb322202ef25f70304"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "created_at": 1754507519.1880713, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == 'rest',\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'customer_id'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customers\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast(date_trunc('month', first_order_timestamp) as date) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n customer_id\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify__customer_email_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_email_cohorts.sql", "original_file_path": "models/rest/shopify__customer_email_cohorts.sql", "unique_id": "model.shopify.shopify__customer_email_cohorts", "fqn": ["shopify", "rest", "shopify__customer_email_cohorts"], "alias": "shopify__customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "3c60f6ffa19bb9a0e60b9b3a02e5c5a3a5baa560bcfa85b39e38194b2bae552a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's (on the EMAIL grain) performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "created_at": 1754507519.1893647, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == 'rest',\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'email'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customer_emails') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customer_emails", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_email_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customer_emails\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n email\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.email as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify__inventory_levels": {"database": "postgres", "schema": "public_shopify", "name": "shopify__inventory_levels", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__inventory_levels.sql", "original_file_path": "models/rest/shopify__inventory_levels.sql", "unique_id": "model.shopify.shopify__inventory_levels", "fqn": ["shopify", "rest", "shopify__inventory_levels"], "alias": "shopify__inventory_levels", "checksum": {"name": "sha256", "checksum": "002b6af06d7fddeab16ac942f625a60d1d40315396b4f4a5c1013ac3febbbb93"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of inventory items (which have a 1:1 relationship with product variants) and locations. \nInventory Level = Inventory item @ a Location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_item_deleted": {"name": "is_inventory_item_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "(DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_created_at": {"name": "inventory_item_created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_updated_at": {"name": "inventory_item_updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_location_deleted": {"name": "is_location_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_location_active": {"name": "is_location_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_created_at": {"name": "location_created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy_location": {"name": "is_legacy_location", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_name": {"name": "location_name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_updated_at": {"name": "location_updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_media_id": {"name": "variant_media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_variant_taxable": {"name": "is_variant_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_orders": {"name": "count_distinct_orders", "description": "The number of distinct orders placed from this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customers": {"name": "count_distinct_customers", "description": "The number of distinct customers (based on customer_id) that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customer_emails": {"name": "count_distinct_customer_emails", "description": "The number of distinct customer emails that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timetamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "The timestamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_refunds": {"name": "subtotal_sold_refunds", "description": "The monetary amount (in shop currency) of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_refunds": {"name": "quantity_sold_refunds", "description": "The quantity of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_subtotal_sold": {"name": "net_subtotal_sold", "description": "Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_quantity_sold": {"name": "net_quantity_sold", "description": "Net quantity sold from this inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_pending": {"name": "count_fulfillment_pending", "description": "Count of currently pending distinct fulfillments for this inventory level. \"Pending\" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_open": {"name": "count_fulfillment_open", "description": "Count of currently open distinct fulfillments for this inventory level. \"Open\" = The fulfillment has been acknowledged by the service and is in processing.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_success": {"name": "count_fulfillment_success", "description": "Count of successful distinct fulfillments for this inventory level. \"Success\" = The fulfillment was successful.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_cancelled": {"name": "count_fulfillment_cancelled", "description": "Count of cancelled distinct fulfillments for this inventory level. \"Cancelled\" = The fulfillment was cancelled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_error": {"name": "count_fulfillment_error", "description": "Count of distinct fulfillments for this inventory level that encountered an error. \"Error\" = There was an error with the fulfillment request.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of distinct fulfillments for this inventory level that failed. \"Failure\" = The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "available_quantity": {"name": "available_quantity", "description": "The available quantity that a merchant can sell, determined by coalescing the `quantity` where inventory_state_name = 'available' from `stg_shopify__inventory_quantity`and `available_quantity` from the deprecated `stg_shopify__inventory_level`. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "incoming_quantity": {"name": "incoming_quantity", "description": "The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "on_hand_quantity": {"name": "on_hand_quantity", "description": "The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "committed_quantity": {"name": "committed_quantity", "description": "The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reserved_quantity": {"name": "reserved_quantity", "description": "The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "damaged_quantity": {"name": "damaged_quantity", "description": "The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "safety_stock_quantity": {"name": "safety_stock_quantity", "description": "The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quality_control_quantity": {"name": "quality_control_quantity", "description": "The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.3004675, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__inventory_levels\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith inventory_level as (\n\n select *\n from {{ var('shopify_inventory_level') }}\n), \n\ninventory_item as (\n\n select *\n from {{ var('shopify_inventory_item') }}\n),\n\ninventory_quantity as (\n\n select *\n from {{ var('shopify_inventory_quantity') }}\n),\n\nlocation as (\n\n select *\n from {{ var('shopify_location') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n),\n\nproduct as (\n\n select *\n from {{ var('shopify_product') }}\n),\n\ninventory_level_aggregated as (\n\n select *\n from {{ ref('int_shopify__inventory_level__aggregates') }}\n),\n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%}\n {% for inventory_state in inventory_states -%}\n , sum(case when lower(inventory_state_name) = {{ \"'\" ~ inventory_state|lower ~ \"'\" }}\n {% if inventory_state|lower == 'available ' -%}\n then coalesce(inventory_quantity.quantity, inventory_level.available_quantity)\n {% else -%}\n then inventory_quantity.quantity\n {% endif -%}\n end) as {{ inventory_state }}_quantity\n {% endfor -%}\n\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id as variant_media_id,\n {% endif %}\n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }}\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n {% endif %}\n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n\n {% for inventory_state in inventory_states -%}\n , inventory_quantity_aggregated.{{ inventory_state }}_quantity\n {% endfor -%}\n\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level", "package": null, "version": null}, {"name": "stg_shopify__inventory_item", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity", "package": null, "version": null}, {"name": "stg_shopify__location", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "int_shopify__inventory_level__aggregates", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__inventory_levels.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), inventory_level as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"\n), \n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\n),\n\ninventory_quantity as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"\n),\n\nlocation as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__location\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n),\n\nproduct as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n),\n\ninventory_level_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__inventory_level__aggregates\n),\n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n , sum(case when lower(inventory_state_name) = 'incoming'\n then inventory_quantity.quantity\n end) as incoming_quantity\n , sum(case when lower(inventory_state_name) = 'on_hand'\n then inventory_quantity.quantity\n end) as on_hand_quantity\n , sum(case when lower(inventory_state_name) = 'available'\n then inventory_quantity.quantity\n end) as available_quantity\n , sum(case when lower(inventory_state_name) = 'committed'\n then inventory_quantity.quantity\n end) as committed_quantity\n , sum(case when lower(inventory_state_name) = 'reserved'\n then inventory_quantity.quantity\n end) as reserved_quantity\n , sum(case when lower(inventory_state_name) = 'damaged'\n then inventory_quantity.quantity\n end) as damaged_quantity\n , sum(case when lower(inventory_state_name) = 'safety_stock'\n then inventory_quantity.quantity\n end) as safety_stock_quantity\n , sum(case when lower(inventory_state_name) = 'quality_control'\n then inventory_quantity.quantity\n end) as quality_control_quantity\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n \n product_variant_media.media_id as variant_media_id,\n \n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n \n\n\n\n\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n \n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n \n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n \n , coalesce(inventory_level_aggregated.count_fulfillment_pending, 0) as count_fulfillment_pending\n \n , coalesce(inventory_level_aggregated.count_fulfillment_open, 0) as count_fulfillment_open\n \n , coalesce(inventory_level_aggregated.count_fulfillment_success, 0) as count_fulfillment_success\n \n , coalesce(inventory_level_aggregated.count_fulfillment_cancelled, 0) as count_fulfillment_cancelled\n \n , coalesce(inventory_level_aggregated.count_fulfillment_error, 0) as count_fulfillment_error\n \n , coalesce(inventory_level_aggregated.count_fulfillment_failure, 0) as count_fulfillment_failure\n \n\n , inventory_quantity_aggregated.incoming_quantity\n , inventory_quantity_aggregated.on_hand_quantity\n , inventory_quantity_aggregated.available_quantity\n , inventory_quantity_aggregated.committed_quantity\n , inventory_quantity_aggregated.reserved_quantity\n , inventory_quantity_aggregated.damaged_quantity\n , inventory_quantity_aggregated.safety_stock_quantity\n , inventory_quantity_aggregated.quality_control_quantity\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify__inventory_level__aggregates", "sql": " __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "location_id"], "time_spine": null}, "model.shopify.shopify__discounts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__discounts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__discounts.sql", "original_file_path": "models/rest/shopify__discounts.sql", "unique_id": "model.shopify.shopify__discounts", "fqn": ["shopify", "rest", "shopify__discounts"], "alias": "shopify__discounts", "checksum": {"name": "sha256", "checksum": "62fa5f60084ea0263c89743d8e99e3642dc01df675b0f810158be89eba5984aa"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts.\n", "columns": {"discounts_unique_key": {"name": "discounts_unique_key", "description": "Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "The case-insensitive discount code that customers use at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether the discount can be used only once per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "Number of times the discount has been used (asynchronously updated).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "Number of unique redeem codes associated with the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether `codes_count` is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "Timestamp when the discount ends or expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "Timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "Current status of the discount (e.g. 'active', 'expired', 'scheduled').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount\u2019s display name in the Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to 'all' or 'entitled' items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "application_type": {"name": "application_type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Numeric value of the discount (e.g., percentage or fixed amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "How the discount value is interpreted (e.g., 'percentage', 'fixed_amount').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_discount_amount": {"name": "total_order_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off of orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_discount_amount": {"name": "total_abandoned_checkout_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_line_items_price": {"name": "total_order_line_items_price", "description": "Total monetary amount (in shop currency) of line items for orders that have used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_shipping_cost": {"name": "total_order_shipping_cost", "description": "Total shipping costs for orders that used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_shipping_price": {"name": "total_abandoned_checkout_shipping_price", "description": "Total projected shipping costs for abandoned checkouts that applied this discount first.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_refund_amount": {"name": "total_order_refund_amount", "description": "Total refunded amount (in shop currency) for orders that used this discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer emails who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_discount_amount": {"name": "avg_order_discount_amount", "description": "Average amount (in shop currency) of discount taken off orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "count_orders": {"name": "count_orders", "description": "Count of orders in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customers": {"name": "count_abandoned_checkout_customers", "description": "Distinct count of customers who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customer_emails": {"name": "count_abandoned_checkout_customer_emails", "description": "Distinct count of customer emails who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.3050218, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__discounts\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith discounts_enriched as (\n\n select *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as discounts_unique_key\n from {{ ref('int_shopify__discount_code_enriched')}}\n),\n\norders_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__order_aggregates')}}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\nabandoned_checkouts_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__abandoned_checkouts')}}\n),\n{% endif %}\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n {% endif %} \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n {% endif %}\n)\n\nselect * \nfrom aggregates_joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discount_code_enriched", "package": null, "version": null}, {"name": "int_shopify__discounts__order_aggregates", "package": null, "version": null}, {"name": "int_shopify__discounts__abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__discounts__abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__discounts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n), __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), discounts_enriched as (\n\n select *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_code_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as discounts_unique_key\n from __dbt__cte__int_shopify__discount_code_enriched\n),\n\norders_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__order_aggregates\n),\n\n\nabandoned_checkouts_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__abandoned_checkouts\n),\n\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n \n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n \n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n \n)\n\nselect * \nfrom aggregates_joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discount_code_enriched", "sql": " __dbt__cte__int_shopify__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n)"}, {"id": "model.shopify.int_shopify__discounts__order_aggregates", "sql": " __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}, {"id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "sql": " __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discounts_unique_key"], "time_spine": null}, "model.shopify.shopify__customers": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customers.sql", "original_file_path": "models/rest/shopify__customers.sql", "unique_id": "model.shopify.shopify__customers", "fqn": ["shopify", "rest", "shopify__customers"], "alias": "shopify__customers", "checksum": {"name": "sha256", "checksum": "0ecd7f0b22e3a25224a922e9f02cfa4d5deadd8d3b62d124e6caff3602c729c0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money in shop currency that the customer has spent on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.2802787, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customers\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customers as (\n\n select \n {{ dbt_utils.star(from=ref('stg_shopify__customer'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ var('shopify_customer') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__customers__order_aggregates' )}}\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where customer_id is not null\n group by 1,2\n{% endif %}\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags\n\n from {{ var('shopify_customer_tag' )}}\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n {% endif %}\n\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "shopify__customers__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customers.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n), customers as (\n\n select \n \"customer_id\",\n \"email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"phone\",\n \"account_state\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"marketing_consent_updated_at\",\n \"created_timestamp\",\n \"updated_timestamp\",\n \"_fivetran_synced\",\n \"source_relation\"\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), orders as (\n\n select *\n from __dbt__cte__shopify__customers__order_aggregates\n\n\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where customer_id is not null\n group by 1,2\n\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as customer_tags\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n \n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__customers__order_aggregates", "sql": " __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__orders.sql", "original_file_path": "models/rest/shopify__orders.sql", "unique_id": "model.shopify.shopify__orders", "fqn": ["shopify", "rest", "shopify__orders"], "alias": "shopify__orders", "checksum": {"name": "sha256", "checksum": "391f81515fc070ec8ddcf72d17f302ea6b76c9341329302d11ed57e3ff96b0e0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"orders_unique_key": {"name": "orders_unique_key", "description": "Unique key representing an order. Hashed on 'order_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count": {"name": "line_item_count", "description": "Number of line items included in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_order_seq_number": {"name": "customer_order_seq_number", "description": "The sequential number of the order as it relates to the customer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "new_vs_repeat": {"name": "new_vs_repeat", "description": "Whether the order was a new or repeat order for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to the adjustment on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "The checkout token applied to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price set to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_total_shipping_tax": {"name": "order_total_shipping_tax", "description": "Total shipping tax attributed to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_tags": {"name": "order_tags", "description": "List of tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_url_tags": {"name": "order_url_tags", "description": "List of url tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number_of_fulfillments": {"name": "number_of_fulfillments", "description": "Total fulfillments for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_services": {"name": "fulfillment_services", "description": "List of fulfillment services for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_companies": {"name": "tracking_companies", "description": "List of tracking companies for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "List of tracking numbers for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied on the order", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.2777612, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_id']) }} as orders_unique_key\n from {{ var('shopify_order') }}\n \n), order_lines as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), order_adjustments as (\n\n select *\n from {{ var('shopify_order_adjustment') }}\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from {{ var('shopify_order_discount_code') }}\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_tags\n \n from {{ var('shopify_order_tag') }}\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_url_tags\n \n from {{ var('shopify_order_url_tag') }}\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n {{ fivetran_utils.string_agg(\"distinct cast(service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_company as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_number as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_numbers\n\n from {{ var('shopify_fulfillment') }}\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast({{ fivetran_utils.json_parse(\"total_shipping_price_set\",[\"shop_money\",\"amount\"]) }} as {{ dbt.type_float() }}) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify__order_tag", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.json_parse", "macro.dbt.type_float", "macro.shopify.shopify_partition_by_cols"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag", "model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__orders.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), orders as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as orders_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n \n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), order_adjustments as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_url_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n \n string_agg(distinct cast(service as TEXT), ', ')\n\n as fulfillment_services,\n \n string_agg(distinct cast(tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(tracking_number as TEXT), ', ')\n\n as tracking_numbers\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast(\n\n total_shipping_price_set::json #>> '{shop_money,amount}'\n\n as float) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by \n\n\n customer_id\n\n\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["orders_unique_key"], "time_spine": null}, "model.shopify.shopify__transactions": {"database": "postgres", "schema": "public_shopify", "name": "shopify__transactions", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__transactions.sql", "original_file_path": "models/rest/shopify__transactions.sql", "unique_id": "model.shopify.shopify__transactions", "fqn": ["shopify", "rest", "shopify__transactions"], "alias": "shopify__transactions", "checksum": {"name": "sha256", "checksum": "4c15f502fa243723bce0834561afdefee97a2ca1dee9e4bebadad7e2e2f42c1a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transactions_unique_id": {"name": "transactions_unique_id", "description": "Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of the date the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "exchange_rate": {"name": "exchange_rate", "description": "The exchange rate between the home currency and the currency of sale at the time of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_calculated_amount": {"name": "currency_exchange_calculated_amount", "description": "The total amount of the transaction with the currency exchange rate applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Method of payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_created_timestamp": {"name": "parent_created_timestamp", "description": "Created on timestamp of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_kind": {"name": "parent_kind", "description": "Kind of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_amount": {"name": "parent_amount", "description": "Amount of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_status": {"name": "parent_status", "description": "Status of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "Timestamp when the authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.2959719, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__transactions\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith transactions as (\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'transaction_id'])}} as transactions_unique_id\n from {{ var('shopify_transaction') }} \n\n), tender_transactions as (\n\n select *\n from {{ var('shopify_tender_transaction') }}\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.json_parse", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__transactions.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as transactions_unique_id\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\" \n\n), tender_transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) as exchange_rate,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["transactions_unique_id"], "time_spine": null}, "model.shopify.shopify__order_lines": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_lines", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__order_lines.sql", "original_file_path": "models/rest/shopify__order_lines.sql", "unique_id": "model.shopify.shopify__order_lines", "fqn": ["shopify", "rest", "shopify__order_lines"], "alias": "shopify__order_lines", "checksum": {"name": "sha256", "checksum": "4bea1545ae004b8d366bcf551eead0be215407510cf95a048869e1346d111116"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item of an order in Shopify.", "columns": {"order_lines_unique_key": {"name": "order_lines_unique_key", "description": "Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_quantity": {"name": "refunded_quantity", "description": "Quantity of the item that has been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net_refunds": {"name": "quantity_net_refunds", "description": "Quantity ordered, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_compare_at_price": {"name": "variant_compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_position": {"name": "variant_position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sku": {"name": "variant_sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_taxable": {"name": "variant_is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_subtotal": {"name": "refunded_subtotal", "description": "Subtotal amount of the refund applied to the order line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_net_refunds": {"name": "subtotal_net_refunds", "description": "Subtotal of the order line with refunds subtracted in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_types": {"name": "restock_types", "description": "List of how this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_tax": {"name": "order_line_tax", "description": "Total taxes for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The total pre tax price of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.2926292, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_lines\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_line_id']) }} as order_lines_unique_key\n from {{ var('shopify_order_line') }}\n\n), product_variants as (\n\n select *\n from {{ var('shopify_product_variant') }}\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), \n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n {{ fivetran_utils.string_agg(\"distinct cast(refunds.restock_type as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from {{ var('shopify_tax_line')}}\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id,\n {% endif %}\n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__order_lines.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as order_lines_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), \n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n \n string_agg(distinct cast(refunds.restock_type as TEXT), ', ')\n\n as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n \n product_variant_media.media_id,\n \n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n \n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_lines_unique_key"], "time_spine": null}, "model.shopify.shopify__products": {"database": "postgres", "schema": "public_shopify", "name": "shopify__products", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__products.sql", "original_file_path": "models/rest/shopify__products.sql", "unique_id": "model.shopify.shopify__products", "fqn": ["shopify", "rest", "shopify__products"], "alias": "shopify__products", "checksum": {"name": "sha256", "checksum": "cfa6ebbb138e82d7287894a9ab6ea7d2ae5511199880dd0650bea0aeaf4f09a8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity_sold": {"name": "total_quantity_sold", "description": "Quantity of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (in shop currency) of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_net_refunds": {"name": "quantity_sold_net_refunds", "description": "Quantity of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_net_refunds": {"name": "subtotal_sold_net_refunds", "description": "Total amount (in shop currency) of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the product was first ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the product was most recently ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order_line": {"name": "avg_quantity_per_order_line", "description": "Average quantity per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_discount": {"name": "product_total_discount", "description": "Total discounts associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_discount_per_order_line": {"name": "product_avg_discount_per_order_line", "description": "Average discount per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_tax": {"name": "product_total_tax", "description": "Total taxes associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_tax_per_order_line": {"name": "product_avg_tax_per_order_line", "description": "Average taxes per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants": {"name": "count_variants", "description": "Count of product variants.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_product_media": {"name": "has_product_media", "description": "If the product has media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collections": {"name": "collections", "description": "Comma-separated list of collections associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tags": {"name": "tags", "description": "Comma-separated list of tags associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.2847552, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__products\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith products as (\n\n select *\n from {{ ref('int_shopify__products_with_aggregates') }}\n\n), product_order_lines as (\n\n select *\n from {{ ref('int_shopify__product__order_line_aggregates')}}\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__products_with_aggregates", "package": null, "version": null}, {"name": "int_shopify__product__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.int_shopify__product__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__products.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), products as (\n\n select *\n from __dbt__cte__int_shopify__products_with_aggregates\n\n), product_order_lines as (\n\n select *\n from __dbt__cte__int_shopify__product__order_line_aggregates\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__products_with_aggregates", "sql": " __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify__product__order_line_aggregates", "sql": " __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__daily_shop": {"database": "postgres", "schema": "public_shopify", "name": "shopify__daily_shop", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__daily_shop.sql", "original_file_path": "models/rest/shopify__daily_shop.sql", "unique_id": "model.shopify.shopify__daily_shop", "fqn": ["shopify", "rest", "shopify__daily_shop"], "alias": "shopify__daily_shop", "checksum": {"name": "sha256", "checksum": "26b5fbd6bc74a61de3e6051ace6b3c123b9a789b1871f098d3803e2a0a348335"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a day in your Shop, enriched with a suite of metrics.\n", "columns": {"date_day": {"name": "date_day", "description": "Day for which the shop activity is being measured.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders": {"name": "count_orders", "description": "Count of the distinct orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_line_items": {"name": "count_line_items", "description": "Count of the line items included in orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer email addresses who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "Average adjusted total per order placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount (in shop currency) applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to adjustments (in shop currency) on the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of the discount allocated to this day's orders in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied by customers on orders for this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_locations_ordered_from": {"name": "count_locations_ordered_from", "description": "Distinct locations with orders placed against them on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_discounts": {"name": "count_orders_with_discounts", "description": "Count of orders in which a discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_refunds": {"name": "count_orders_with_refunds", "description": "Count of orders in which there was a refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "Timestamp of the first order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "Timestamp of the last order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_refunded": {"name": "quantity_refunded", "description": "The quantity of goods ORDERED on this day that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net": {"name": "quantity_net", "description": "Net quantity sold from this shop on this day. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants_sold": {"name": "count_variants_sold", "description": "Distinct product variants sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_products_sold": {"name": "count_products_sold", "description": "Distinct products sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_gift_cards_sold": {"name": "quantity_gift_cards_sold", "description": "Quantity of gift cards sold on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_requiring_shipping": {"name": "quantity_requiring_shipping", "description": "Quantity of goods sold on this day that require shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers_abandoned_checkout": {"name": "count_customers_abandoned_checkout", "description": "Count of distinct customers who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails_abandoned_checkout": {"name": "count_customer_emails_abandoned_checkout", "description": "Count of distinct customer emails who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_attempted_delivery": {"name": "count_fulfillment_attempted_delivery", "description": "Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delivered": {"name": "count_fulfillment_delivered", "description": "Count of successful distinct fulfillments successfully delivered on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_in_transit": {"name": "count_fulfillment_in_transit", "description": "Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_out_for_delivery": {"name": "count_fulfillment_out_for_delivery", "description": "Count of distinct fulfillments being delivered to their final destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_ready_for_pickup": {"name": "count_fulfillment_ready_for_pickup", "description": "Count of distinct fulfillments ready for pickup at a shipping depot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_picked_up": {"name": "count_fulfillment_picked_up", "description": "Count of distinct fulfillments successfully picked up on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_printed": {"name": "count_fulfillment_label_printed", "description": "Count of distinct fulfillments for which a purchased shipping label has been printed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_purchased": {"name": "count_fulfillment_label_purchased", "description": "Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_confirmed": {"name": "count_fulfillment_confirmed", "description": "Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delayed": {"name": "count_fulfillment_delayed", "description": "Count of delayed distinct fulfillments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_line_item_count": {"name": "avg_line_item_count", "description": "Average line item count for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount": {"name": "avg_discount", "description": "Average total discount placed on orders on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_discount_amount": {"name": "avg_shipping_discount_amount", "description": "Average discount amount (in shop currency) allocated toward shipping on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_percentage_calc_discount_amount": {"name": "avg_percentage_calc_discount_amount", "description": "Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_fixed_amount_discount_amount": {"name": "avg_fixed_amount_discount_amount", "description": "Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_sold": {"name": "avg_quantity_sold", "description": "Average quantity sold per order on this day. Includes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_net": {"name": "avg_quantity_net", "description": "Average net quantity sold per order on this day. Excludes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.3083591, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__daily_shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith shop as (\n\n select *\n from {{ var('shopify_shop') }}\n),\n\ncalendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from {{ ref('int_shopify__daily_orders') }}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\ndaily_abandoned_checkouts as (\n\n select *\n from {{ ref('int_shopify__daily_abandoned_checkouts') }}\n),\n{% endif %}\n\n{% if var('shopify_using_fulfillment_event', false) %}\ndaily_fulfillment as (\n\n select *\n from {{ ref('int_shopify__daily_fulfillment') }}\n),\n{% endif %}\n\nshop_calendar as (\n\n select\n cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n {% endif %}\n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n {% endif %}\n \n)\n\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "shopify__calendar", "package": null, "version": null}, {"name": "int_shopify__daily_orders", "package": null, "version": null}, {"name": "int_shopify__daily_abandoned_checkouts", "package": null, "version": null}, {"name": "int_shopify__daily_fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__shop", "model.shopify.shopify__calendar", "model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__daily_shop.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n), __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n), __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n), shop as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n),\n\ncalendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('day', date_day) as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from __dbt__cte__int_shopify__daily_orders\n),\n\n\ndaily_abandoned_checkouts as (\n\n select *\n from __dbt__cte__int_shopify__daily_abandoned_checkouts\n),\n\n\n\ndaily_fulfillment as (\n\n select *\n from __dbt__cte__int_shopify__daily_fulfillment\n),\n\n\nshop_calendar as (\n\n select\n cast(date_trunc('day', calendar.date_day) as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n \n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n \n\n \n \n , coalesce(count_fulfillment_attempted_delivery, 0) as count_fulfillment_attempted_delivery\n \n , coalesce(count_fulfillment_delayed, 0) as count_fulfillment_delayed\n \n , coalesce(count_fulfillment_delivered, 0) as count_fulfillment_delivered\n \n , coalesce(count_fulfillment_failure, 0) as count_fulfillment_failure\n \n , coalesce(count_fulfillment_in_transit, 0) as count_fulfillment_in_transit\n \n , coalesce(count_fulfillment_out_for_delivery, 0) as count_fulfillment_out_for_delivery\n \n , coalesce(count_fulfillment_ready_for_pickup, 0) as count_fulfillment_ready_for_pickup\n \n , coalesce(count_fulfillment_picked_up, 0) as count_fulfillment_picked_up\n \n , coalesce(count_fulfillment_label_printed, 0) as count_fulfillment_label_printed\n \n , coalesce(count_fulfillment_label_purchased, 0) as count_fulfillment_label_purchased\n \n , coalesce(count_fulfillment_confirmed, 0) as count_fulfillment_confirmed\n \n \n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n \n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n \n\n \n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n \n \n)\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__daily_orders", "sql": " __dbt__cte__int_shopify__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify__daily_abandoned_checkouts", "sql": " __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n)"}, {"id": "model.shopify.int_shopify__daily_fulfillment", "sql": " __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_emails": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_emails", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_emails.sql", "original_file_path": "models/rest/shopify__customer_emails.sql", "unique_id": "model.shopify.shopify__customer_emails", "fqn": ["shopify", "rest", "shopify__customer_emails"], "alias": "shopify__customer_emails", "checksum": {"name": "sha256", "checksum": "950e6e68218fd53bf2bd11f089af340c092a4251e1fd9d8c9230bf9c298af01f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer email in Shopify.", "columns": {"last_fivetran_synced": {"name": "last_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_ids": {"name": "customer_ids", "description": "Comma-separated list of customer IDs associated with the email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone_numbers": {"name": "phone_numbers", "description": "Comma-separated list of phone numbers associated with this email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_updated_at": {"name": "last_updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money that the customer has spent on orders across their order history (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_account_created_at": {"name": "first_account_created_at", "description": "Timestamp of when the first account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_account_created_at": {"name": "last_account_created_at", "description": "Timestamp of when the last account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.2826772, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_emails\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customer_emails as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify__customer_email_rollup'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ ref('int_shopify__customer_email_rollup') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify__emails__order_aggregates' )}}\n where email is not null\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where email is not null\n group by 1,2\n{% endif %}\n\n), joined as (\n\n select \n customer_emails.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__emails__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star"], "nodes": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_emails.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), customer_emails as (\n\n select \n \"email\",\n \"source_relation\",\n \"customer_ids\",\n \"phone_numbers\",\n \"customer_tags\",\n \"first_account_created_at\",\n \"last_account_created_at\",\n \"last_updated_at\",\n \"marketing_consent_updated_at\",\n \"last_fivetran_synced\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"account_state\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\"\n from \"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify__emails__order_aggregates\n where email is not null\n\n\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where email is not null\n group by 1,2\n\n\n), joined as (\n\n select \n customer_emails.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n \n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__emails__order_aggregates", "sql": " __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__inventory_level__aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__inventory_level__aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__inventory_level__aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__inventory_level__aggregates.sql", "unique_id": "model.shopify.int_shopify__inventory_level__aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__inventory_level__aggregates"], "alias": "int_shopify__inventory_level__aggregates", "checksum": {"name": "sha256", "checksum": "71c148adee52b31e8a96b36110d93dba3f37be66f265625ca908744297ac0a92"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.378401, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select *\n from {{ var('shopify_order_line') }}\n),\n\nfulfillment as (\n\n select *\n from {{ var('shopify_fulfillment') }}\n),\n\norders as (\n\n select *\n from {{ var('shopify_order') }}\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n {{ dbt_utils.group_by(n=3) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_refunds"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__inventory_level__aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["location_id", "source_relation", "variant_id"], "time_spine": null}, "model.shopify.int_shopify__product__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__product__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__product__order_line_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__product__order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify__product__order_line_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__product__order_line_aggregates"], "alias": "int_shopify__product__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "7318e3e5faba66745a27e59d40674690031727a7c2719c8660c8c73a685e3896"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.380478, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select *\n from {{ ref('shopify__order_lines') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders')}}\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__product__order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__products_with_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__products_with_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__products_with_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__products_with_aggregates.sql", "unique_id": "model.shopify.int_shopify__products_with_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__products_with_aggregates"], "alias": "int_shopify__products_with_aggregates", "checksum": {"name": "sha256", "checksum": "f76affed4b8f7e1cbce3598d02d4114978ee18b9e5b4583720285c3c7c19750d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.3809793, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith products as (\n\n select *\n from {{ var('shopify_product') }}\n), \n\ncollection_product as (\n\n select *\n from {{ var('shopify_collection_product') }}\n),\n\ncollection as (\n\n select *\n from {{ var('shopify_collection') }}\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from {{ var('shopify_product_tag') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n), \n\nproduct_media as (\n\n select *\n from {{ var('shopify_product_media') }}\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter=\"', '\") }} as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='value', delimiter=\"', '\") }} as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__collection_product", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__product_tag", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__products_with_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__discount_code_enriched": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discount_code_enriched", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discount_code_enriched.sql", "original_file_path": "models/rest/intermediate/int_shopify__discount_code_enriched.sql", "unique_id": "model.shopify.int_shopify__discount_code_enriched", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discount_code_enriched"], "alias": "int_shopify__discount_code_enriched", "checksum": {"name": "sha256", "checksum": "bcf513cc78532e595d895f3b33240d906515eaf4979369990586897a7bb64e84"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.4497445, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith discount_redeem_codes as (\n \n select *\n from {{ var('shopify_discount_redeem_code') }}\n),\n\ndiscount_applications as (\n\n select *\n from {{ var('shopify_discount_application') }}\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_basic') }}\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_bxgy') }}\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_free_shipping') }}\n\n {% if var('shopify_using_discount_code_app', False) %}\n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_app') }}\n {% endif %}\n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_application", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code", "model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discount_code_enriched.sql", "compiled": true, "compiled_code": "\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__daily_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__daily_abandoned_checkouts", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_abandoned_checkouts"], "alias": "int_shopify__daily_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "3ed79baa28d3b9160647ad92b70096d29c4bffe408b4d69e2fcd790e124f9074"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.4617696, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__order__shipping_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__order__shipping_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__order__shipping_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__order__shipping_aggregates.sql", "unique_id": "model.shopify.int_shopify__order__shipping_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__order__shipping_aggregates"], "alias": "int_shopify__order__shipping_aggregates", "checksum": {"name": "sha256", "checksum": "0b62dd0d5d3643dd2d497124c55db965c77cbf556e68645f15965bf80f3d3a82"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.379949, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from {{ var('shopify_order_shipping_line') }}\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from {{ var('shopify_order_shipping_tax_line') }}\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__order__shipping_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__orders__order_line_aggregates.sql", "original_file_path": "models/rest/intermediate/shopify__orders__order_line_aggregates.sql", "unique_id": "model.shopify.shopify__orders__order_line_aggregates", "fqn": ["shopify", "rest", "intermediate", "shopify__orders__order_line_aggregates"], "alias": "shopify__orders__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "dc06ee54fe54de8c7cd7a17fc15bb4ab1331d5d1f7ea6b71aabce4a6d9cc3a3f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.376353, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"", "raw_code": "{{ config(materialized='table', enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_line as (\n\n select *\n from {{ var('shopify_order_line') }}\n\n), tax as (\n\n select\n *\n from {{ var('shopify_tax_line') }}\n\n), shipping as (\n\n select\n *\n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__orders__order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), order_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), tax as (\n\n select\n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), shipping as (\n\n select\n *\n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__daily_orders": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_orders", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_orders.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_orders.sql", "unique_id": "model.shopify.int_shopify__daily_orders", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_orders"], "alias": "int_shopify__daily_orders", "checksum": {"name": "sha256", "checksum": "f866152e2f91cf3593173286eeb1d4337212bc81a34a1b8550189f69081f69a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.4881716, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from {{ ref('shopify__order_lines') }}\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.shopify__orders", "model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_orders.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__customer_email_rollup": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__customer_email_rollup.sql", "original_file_path": "models/rest/intermediate/int_shopify__customer_email_rollup.sql", "unique_id": "model.shopify.int_shopify__customer_email_rollup", "fqn": ["shopify", "rest", "intermediate", "int_shopify__customer_email_rollup"], "alias": "int_shopify__customer_email_rollup", "checksum": {"name": "sha256", "checksum": "37f30d45093b6c1ed887121ee7e4b1ff6dafc2f9353024e4255b86946a64b431"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.3778663, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by created_timestamp desc) \n as customer_index\n\n from {{ var('shopify_customer') }}\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from {{ var('shopify_customer_tag' )}}\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n {{ fivetran_utils.string_agg(\"distinct cast(customers.customer_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_ids,\n {{ fivetran_utils.string_agg(\"distinct cast(customers.phone as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as phone_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(customer_tags.value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n {{ fivetran_utils.max_bool(\"case when customers.customer_index = 1 then customers.is_tax_exempt else null end\") }} as is_tax_exempt, -- since this changes every year\n {{ fivetran_utils.max_bool(\"customers.is_verified_email\") }} as is_verified_email\n\n -- for all other fields, just take the latest value\n {% set cols = adapter.get_columns_in_relation(ref('stg_shopify__customer')) %}\n {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', \n 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp',\n 'is_tax_exempt', 'is_verified_email'] %}\n {% for col in cols %}\n {% if col.column|lower not in except_cols %}\n , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }}\n {% endif %}\n {% endfor %}\n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_partition_by_cols", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.max_bool"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__customer_email_rollup.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by \n\n\n email\n\n\n order by created_timestamp desc) \n as customer_index\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n \n string_agg(distinct cast(customers.customer_id as TEXT), ', ')\n\n as customer_ids,\n \n string_agg(distinct cast(customers.phone as TEXT), ', ')\n\n as phone_numbers,\n \n string_agg(distinct cast(customer_tags.value as TEXT), ', ')\n\n as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n \n\n bool_or( case when customers.customer_index = 1 then customers.is_tax_exempt else null end )\n\n as is_tax_exempt, -- since this changes every year\n \n\n bool_or( customers.is_verified_email )\n\n as is_verified_email\n\n -- for all other fields, just take the latest value\n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.first_name else null end) as first_name\n \n \n \n , max(case when customers.customer_index = 1 then customers.last_name else null end) as last_name\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.default_address_id else null end) as default_address_id\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.account_state else null end) as account_state\n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.note else null end) as note\n \n \n \n , max(case when customers.customer_index = 1 then customers.currency else null end) as currency\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_consent_state else null end) as marketing_consent_state\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_opt_in_level else null end) as marketing_opt_in_level\n \n \n \n \n \n \n \n \n \n \n \n \n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders__order_refunds": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_refunds", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__orders__order_refunds.sql", "original_file_path": "models/rest/intermediate/shopify__orders__order_refunds.sql", "unique_id": "model.shopify.shopify__orders__order_refunds", "fqn": ["shopify", "rest", "intermediate", "shopify__orders__order_refunds"], "alias": "shopify__orders__order_refunds", "checksum": {"name": "sha256", "checksum": "b2779287393dd936f29751f0839d05d36aa9ac1ec21f071744d6d1c3047adc11"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.3768246, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith refunds as (\n\n select *\n from {{ var('shopify_refund') }}\n\n), order_line_refunds as (\n\n select *\n from {{ var('shopify_order_line_refund') }}\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__refund", "model.shopify_source.stg_shopify__order_line_refund"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__orders__order_refunds.sql", "compiled": true, "compiled_code": "\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "original_file_path": "models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discounts__abandoned_checkouts"], "alias": "int_shopify__discounts__abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "4db18a80ca151075ad7431fe218c35b61b96196951cf2da104512d277ca94f83"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.3794434, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from {{ var('shopify_abandoned_checkout_discount_code') }}\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from {{ var('shopify_abandoned_checkout_shipping_line') }}\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["code", "source_relation", "type"], "time_spine": null}, "model.shopify.int_shopify__emails__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__emails__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__emails__order_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__emails__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__emails__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__emails__order_aggregates"], "alias": "int_shopify__emails__order_aggregates", "checksum": {"name": "sha256", "checksum": "1b106193505d9a5cbf6f64b6fbc51c6eb010151e48da445481c726fc0a5a1f46"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.3773537, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_order') }}\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from {{ var('shopify_customer') }}\n where email is not null\n {{ dbt_utils.group_by(n=3) }}\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__emails__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__daily_fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_fulfillment", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_fulfillment.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_fulfillment.sql", "unique_id": "model.shopify.int_shopify__daily_fulfillment", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_fulfillment"], "alias": "int_shopify__daily_fulfillment", "checksum": {"name": "sha256", "checksum": "5d07c22ba6468bebf18c3be8c5d123914dc91b33eb036c4bc75feb1bd4f7529c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.543837, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith fulfillment_event as (\n\n select *\n from {{ var('shopify_fulfillment_event') }}\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day\n\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discounts__order_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__discounts__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__discounts__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discounts__order_aggregates"], "alias": "int_shopify__discounts__order_aggregates", "checksum": {"name": "sha256", "checksum": "bf596881f17db03334a269b53a5856d2cddfe92d6bd8dffc26b5b779e874a480"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.378912, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_discount_code as (\n\n select *\n from {{ var('shopify_order_discount_code') }}\n),\n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_discount_code", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discounts__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["code", "source_relation", "type"], "time_spine": null}, "model.shopify.shopify__customers__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__customers__order_aggregates.sql", "original_file_path": "models/rest/intermediate/shopify__customers__order_aggregates.sql", "unique_id": "model.shopify.shopify__customers__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "shopify__customers__order_aggregates"], "alias": "shopify__customers__order_aggregates", "checksum": {"name": "sha256", "checksum": "e1af84adc51e48a677e22660a99ca8e7d48ee8fabc49c0b4505c8fc1c7233264"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507519.37579, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_order') }}\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n {{ dbt_utils.group_by(n=2) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__customers__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__product_variant_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__product_variant_metafields.sql", "original_file_path": "models/rest/metafields/shopify__product_variant_metafields.sql", "unique_id": "model.shopify.shopify__product_variant_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__product_variant_metafields"], "alias": "shopify__product_variant_metafields", "checksum": {"name": "sha256", "checksum": "aa2cdc58708d40d191a197a74aaa246cf15f5a6f3d984f70f378309283819367"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product_variant model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4375184, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_variant_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product_variant\",\n reference_values = ['variant', 'productvariant'],\n id_column = \"variant_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__product_variant_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_wherearethey'\n then value\n else null\n end\n )\n \n \n as avengers_wherearethey\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_wheninspace'\n then value\n else null\n end\n )\n \n \n as star_wars_wheninspace\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.variant_id,\n \n source_table.product_id,\n \n source_table.inventory_item_id,\n \n source_table.title,\n \n source_table.price,\n \n source_table.sku,\n \n source_table.position,\n \n source_table.inventory_policy,\n \n source_table.compare_at_price,\n \n source_table.fulfillment_service,\n \n source_table.inventory_management,\n \n source_table.is_taxable,\n \n source_table.barcode,\n \n source_table.grams,\n \n source_table.inventory_quantity,\n \n source_table.is_available_for_sale,\n \n source_table.display_name,\n \n source_table.legacy_resource_id,\n \n source_table.has_components_required,\n \n source_table.sellable_online_quantity,\n \n source_table.weight,\n \n source_table.weight_unit,\n \n source_table.option_1,\n \n source_table.option_2,\n \n source_table.option_3,\n \n source_table.tax_code,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_wherearethey) as metafield_avengers_wherearethey\n \n , max(lookup_object.star_wars_wheninspace) as metafield_star_wars_wheninspace\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.variant_id\n and lower(lookup_object.owner_resource) in ('variant', 'productvariant')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__order_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__order_metafields.sql", "original_file_path": "models/rest/metafields/shopify__order_metafields.sql", "unique_id": "model.shopify.shopify__order_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__order_metafields"], "alias": "shopify__order_metafields", "checksum": {"name": "sha256", "checksum": "bb661fd29f14623b4e28a900a1a3b19cd679f288fdcc6b2db556b48c38756164"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__order model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4365444, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__order\", \n reference_values = ['order'],\n id_column = \"order_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__order_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_howmany'\n then value\n else null\n end\n )\n \n \n as avengers_howmany\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isinspace'\n then value\n else null\n end\n )\n \n \n as star_wars_isinspace\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_numbersequels'\n then value\n else null\n end\n )\n \n \n as star_wars_numbersequels\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.order_id,\n \n source_table.user_id,\n \n source_table.total_discounts,\n \n source_table.total_discounts_set,\n \n source_table.total_line_items_price,\n \n source_table.total_line_items_price_set,\n \n source_table.total_price,\n \n source_table.total_price_set,\n \n source_table.total_tax_set,\n \n source_table.total_tax,\n \n source_table.source_name,\n \n source_table.subtotal_price,\n \n source_table.has_taxes_included,\n \n source_table.total_weight,\n \n source_table.total_tip_received,\n \n source_table.landing_site_base_url,\n \n source_table.location_id,\n \n source_table.name,\n \n source_table.note,\n \n source_table.number,\n \n source_table.order_number,\n \n source_table.cancel_reason,\n \n source_table.cart_token,\n \n source_table.checkout_token,\n \n source_table.created_timestamp,\n \n source_table.cancelled_timestamp,\n \n source_table.closed_timestamp,\n \n source_table.processed_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.currency,\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.financial_status,\n \n source_table.fulfillment_status,\n \n source_table.referring_site,\n \n source_table.billing_address_address_1,\n \n source_table.billing_address_address_2,\n \n source_table.billing_address_city,\n \n source_table.billing_address_company,\n \n source_table.billing_address_country,\n \n source_table.billing_address_country_code,\n \n source_table.billing_address_first_name,\n \n source_table.billing_address_last_name,\n \n source_table.billing_address_latitude,\n \n source_table.billing_address_longitude,\n \n source_table.billing_address_name,\n \n source_table.billing_address_phone,\n \n source_table.billing_address_province,\n \n source_table.billing_address_province_code,\n \n source_table.billing_address_zip,\n \n source_table.browser_ip,\n \n source_table.total_shipping_price_set,\n \n source_table.shipping_address_address_1,\n \n source_table.shipping_address_address_2,\n \n source_table.shipping_address_city,\n \n source_table.shipping_address_company,\n \n source_table.shipping_address_country,\n \n source_table.shipping_address_country_code,\n \n source_table.shipping_address_first_name,\n \n source_table.shipping_address_last_name,\n \n source_table.shipping_address_latitude,\n \n source_table.shipping_address_longitude,\n \n source_table.shipping_address_name,\n \n source_table.shipping_address_phone,\n \n source_table.shipping_address_province,\n \n source_table.shipping_address_province_code,\n \n source_table.shipping_address_zip,\n \n source_table.token,\n \n source_table.app_id,\n \n source_table.checkout_id,\n \n source_table.client_details_user_agent,\n \n source_table.customer_locale,\n \n source_table.order_status_url,\n \n source_table.presentment_currency,\n \n source_table.is_test_order,\n \n source_table.is_deleted,\n \n source_table.has_buyer_accepted_marketing,\n \n source_table.is_confirmed,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_howmany) as metafield_avengers_howmany\n \n , max(lookup_object.star_wars_isinspace) as metafield_star_wars_isinspace\n \n , max(lookup_object.star_wars_numbersequels) as metafield_star_wars_numbersequels\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.order_id\n and lower(lookup_object.owner_resource) in ('order')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__product_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__product_metafields.sql", "original_file_path": "models/rest/metafields/shopify__product_metafields.sql", "unique_id": "model.shopify.shopify__product_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__product_metafields"], "alias": "shopify__product_metafields", "checksum": {"name": "sha256", "checksum": "4ecabbfee204dd6d41c39d99eafd9e4627db1710831547eaf6b5ecc38ddb012a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4370213, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product\", \n reference_values = ['product'],\n id_column = \"product_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__product_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__customer_metafields.sql", "original_file_path": "models/rest/metafields/shopify__customer_metafields.sql", "unique_id": "model.shopify.shopify__customer_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__customer_metafields"], "alias": "shopify__customer_metafields", "checksum": {"name": "sha256", "checksum": "1d183df4efbd1c05e74961913c1e9eda390a0aa59312a8e7914d2e26ac02f0f8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__customer model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4360409, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__customer\", \n reference_values = ['customer'],\n id_column = \"customer_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__customer_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'star_wars_firstname'\n then value\n else null\n end\n )\n \n \n as star_wars_firstname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_fullname'\n then value\n else null\n end\n )\n \n \n as star_wars_fullname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isjedi'\n then value\n else null\n end\n )\n \n \n as star_wars_isjedi\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_lastname'\n then value\n else null\n end\n )\n \n \n as star_wars_lastname\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.first_name,\n \n source_table.last_name,\n \n source_table.orders_count,\n \n source_table.default_address_id,\n \n source_table.phone,\n \n source_table.account_state,\n \n source_table.is_tax_exempt,\n \n source_table.total_spent,\n \n source_table.is_verified_email,\n \n source_table.note,\n \n source_table.currency,\n \n source_table.marketing_consent_state,\n \n source_table.marketing_opt_in_level,\n \n source_table.marketing_consent_updated_at,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.star_wars_firstname) as metafield_star_wars_firstname\n \n , max(lookup_object.star_wars_fullname) as metafield_star_wars_fullname\n \n , max(lookup_object.star_wars_isjedi) as metafield_star_wars_isjedi\n \n , max(lookup_object.star_wars_lastname) as metafield_star_wars_lastname\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.customer_id\n and lower(lookup_object.owner_resource) in ('customer')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__shop_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__shop_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__shop_metafields.sql", "original_file_path": "models/rest/metafields/shopify__shop_metafields.sql", "unique_id": "model.shopify.shopify__shop_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__shop_metafields"], "alias": "shopify__shop_metafields", "checksum": {"name": "sha256", "checksum": "a6c83b00e994807860ae5fbe8c7766fe0ace4300cfd53c5ba206ea6bf1831f3c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__shop model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.43799, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__shop_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__shop\", \n reference_values = ['shop'],\n id_column = \"shop_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__shop_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__collection_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__collection_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__collection_metafields.sql", "original_file_path": "models/rest/metafields/shopify__collection_metafields.sql", "unique_id": "model.shopify.shopify__collection_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__collection_metafields"], "alias": "shopify__collection_metafields", "checksum": {"name": "sha256", "checksum": "9a0e96e6e6a37a4a6acea599ac4a0e4fec53dbb44e8a29d52c87ed7ac596bbde"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__collection model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4355445, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__collection_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__collection\", \n reference_values = ['collection'],\n id_column = \"collection_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__collection_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__line_item_enhanced": {"database": "postgres", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "resource_type": "model", "package_name": "shopify", "path": "rest/standardized_models/shopify__line_item_enhanced.sql", "original_file_path": "models/rest/standardized_models/shopify__line_item_enhanced.sql", "unique_id": "model.shopify.shopify__line_item_enhanced", "fqn": ["shopify", "rest", "standardized_models", "shopify__line_item_enhanced"], "alias": "shopify__line_item_enhanced", "checksum": {"name": "sha256", "checksum": "b7aba2e3c1eb834a55bcb5174c0e3ad5db1e8699f88d14469d04cbdcbefe0e5c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It\u2019s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details.", "columns": {"header_id": {"name": "header_id", "description": "Id of corresponding order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_id": {"name": "line_item_id", "description": "Order line item id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_index": {"name": "line_item_index", "description": "Unique index of each line item id for each order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "record_type": {"name": "record_type", "description": "header or line_item", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the order was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "header_status": {"name": "header_status", "description": "Status of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_type": {"name": "billing_type", "description": "NA for Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "Currency used in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "Product ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_name": {"name": "product_name", "description": "Product name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "Product type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_type": {"name": "transaction_type", "description": "Transaction type (Charge, Refund, etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of units of this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_amount": {"name": "unit_amount", "description": "Amount per unit, or the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_amount": {"name": "discount_amount", "description": "The discount amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "The tax amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_amount": {"name": "total_amount", "description": "Order total", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_id": {"name": "payment_id", "description": "Transaction ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Transaction gateway for Shopify ('gift card', 'shopify payments', etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method_id": {"name": "payment_method_id", "description": "Shopify does not have a particular payment_method_id, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_at": {"name": "payment_at", "description": "Transaction processed timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fee_amount": {"name": "fee_amount", "description": "The total shipping fee associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_amount": {"name": "refund_amount", "description": "Refund amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_id": {"name": "subscription_id", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_plan": {"name": "subscription_plan", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_started_at": {"name": "subscription_period_started_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_ended_at": {"name": "subscription_period_ended_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_status": {"name": "subscription_status", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "Customer associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_created_at": {"name": "customer_created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_level": {"name": "customer_level", "description": "Whether 'account' or 'customer'. For Shopify, the level is 'customer'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_name": {"name": "customer_name", "description": "Customer name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_company": {"name": "customer_company", "description": "Associated customer's company noted on the shipping address if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "Customer email", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_city": {"name": "customer_city", "description": "Customer's shipping address city", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_country": {"name": "customer_country", "description": "Customer's shipping address country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/standardized_models/shopify__standardized_models.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.44958, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__line_item_enhanced\"", "raw_code": "{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith line_items as (\n\n select * \n from {{ var('shopify_order_line')}}\n\n), orders as ( \n\n select * \n from {{ var('shopify_order')}}\n\n), product as (\n\n select *\n from {{ var('shopify_product')}}\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n {{ fivetran_utils.string_agg(\"cast (transaction_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} AS transaction_id,\n {{ fivetran_utils.string_agg(\"cast (processed_timestamp as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as processed_timestamp,\n {{ fivetran_utils.string_agg('gateway', \"', '\") }} as gateway\n\n from {{ var('shopify_transaction')}}\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from {{ var('shopify_transaction')}}\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from {{ var('shopify_order_line_refund')}}\n group by 1,2\n\n), customer as (\n\n select *\n from {{ var('shopify_customer')}}\n\n), shipping as (\n\n select * \n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as {{ dbt.type_string() }}) as subscription_id,\n cast(null as {{ dbt.type_string() }}) as subscription_plan,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at,\n cast(null as {{ dbt.type_string() }}) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n {{ dbt.concat([\"c.first_name\", \"''\", \"c.last_name\"]) }} as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id,\n cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as {{ dbt.type_numeric() }}) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as {{ dbt.type_numeric() }}) as quantity,\n cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,\n cast(null as {{ dbt.type_numeric() }}) as discount_amount,\n cast(null as {{ dbt.type_numeric() }}) as tax_amount,\n cast(total_amount as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as {{ dbt.type_numeric() }}) as fee_amount,\n cast(null as {{ dbt.type_numeric() }}) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as {{ dbt.type_numeric() }}) as line_item_id,\n cast(0 as {{ dbt.type_numeric() }}) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as {{ dbt.type_numeric() }}) as product_id,\n cast(null as {{ dbt.type_string() }}) as product_name,\n transaction_type,\n billing_type,\n cast(null as {{ dbt.type_string() }}) as product_type,\n cast(null as {{ dbt.type_numeric() }}) as quantity,\n cast(null as {{ dbt.type_numeric() }}) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.dbt.type_timestamp", "macro.dbt.concat", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__customer", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/standardized_models/shopify__line_item_enhanced.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), line_items as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), orders as ( \n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n \n string_agg(cast (transaction_id as TEXT), ', ')\n\n AS transaction_id,\n \n string_agg(cast (processed_timestamp as TEXT), ', ')\n\n as processed_timestamp,\n \n string_agg(gateway, ', ')\n\n as gateway\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n group by 1,2\n\n), customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), shipping as (\n\n select * \n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as TEXT) as subscription_id,\n cast(null as TEXT) as subscription_plan,\n cast(null as timestamp) as subscription_period_started_at,\n cast(null as timestamp) as subscription_period_ended_at,\n cast(null as TEXT) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n c.first_name || '' || c.last_name as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as numeric(28,6)) as line_item_id,\n cast(line_item_index as numeric(28,6)) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as numeric(28,6)) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as numeric(28,6)) as quantity,\n cast(unit_amount as numeric(28,6)) as unit_amount,\n cast(null as numeric(28,6)) as discount_amount,\n cast(null as numeric(28,6)) as tax_amount,\n cast(total_amount as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as numeric(28,6)) as fee_amount,\n cast(null as numeric(28,6)) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as numeric(28,6)) as line_item_id,\n cast(0 as numeric(28,6)) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as numeric(28,6)) as product_id,\n cast(null as TEXT) as product_name,\n transaction_type,\n billing_type,\n cast(null as TEXT) as product_type,\n cast(null as numeric(28,6)) as quantity,\n cast(null as numeric(28,6)) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["header_id", "line_item_id", "source_relation"], "time_spine": null}, "model.shopify.shopify_gql__customer_email_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_email_cohorts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_email_cohorts.sql", "original_file_path": "models/graphql/shopify_gql__customer_email_cohorts.sql", "unique_id": "model.shopify.shopify_gql__customer_email_cohorts", "fqn": ["shopify", "graphql", "shopify_gql__customer_email_cohorts"], "alias": "shopify_gql__customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "44ea3b7181f25acbd8740e7b4084080f926680aeac54311144a29cf6dd814708"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's (on the EMAIL grain) performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "created_at": 1754507518.8832595, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'),\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'email'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify_gql__customer_emails') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify_gql__customer_emails", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customer_emails", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_email_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n email\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.email as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify_gql__customers": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customers", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customers.sql", "original_file_path": "models/graphql/shopify_gql__customers.sql", "unique_id": "model.shopify.shopify_gql__customers", "fqn": ["shopify", "graphql", "shopify_gql__customers"], "alias": "shopify_gql__customers", "checksum": {"name": "sha256", "checksum": "9c21a0b94a0b4b535719777ad86c81e3780eabb5274d18ef3bffa0b82fa98633"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money in shop currency that the customer has spent on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507518.9326966, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customers\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customers as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify_gql__customer'), except=[\"orders_count\", \"total_spent\", \"unique_key\"]) }}\n from {{ ref('int_shopify_gql__customer') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__customers_order_aggregates' )}}\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_gql_abandoned_checkout' )}}\n where customer_id is not null\n group by 1,2\n{% endif %}\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags\n\n from {{ var('shopify_gql_customer_tag' )}}\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n {% endif %}\n\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customers_order_aggregates", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customers.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__customers_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated\n), customers as (\n\n select \n \"customer_id\",\n \"email\",\n \"first_name\",\n \"last_name\",\n \"phone\",\n \"account_state\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"marketing_consent_updated_at\",\n \"created_timestamp\",\n \"updated_timestamp\",\n \"_fivetran_synced\",\n \"source_relation\",\n \"default_address_id\"\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__customers_order_aggregates\n\n\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n where customer_id is not null\n group by 1,2\n\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as customer_tags\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n \n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__customers_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__customers_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify_gql__order_lines": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__order_lines", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__order_lines.sql", "original_file_path": "models/graphql/shopify_gql__order_lines.sql", "unique_id": "model.shopify.shopify_gql__order_lines", "fqn": ["shopify", "graphql", "shopify_gql__order_lines"], "alias": "shopify_gql__order_lines", "checksum": {"name": "sha256", "checksum": "05e8538403e3ee72811dc4d13bee21fd937ef51018cc15f1b72b25fb9f047d03"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item of an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_quantity": {"name": "refunded_quantity", "description": "Quantity of the item that has been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net_refunds": {"name": "quantity_net_refunds", "description": "Quantity ordered, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_compare_at_price": {"name": "variant_compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_position": {"name": "variant_position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sku": {"name": "variant_sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_taxable": {"name": "variant_is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "The weight value of the variant's inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "The unit of measurement for the variant's inventory item's weight.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_subtotal": {"name": "refunded_subtotal", "description": "Subtotal amount of the refund applied to the order line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_net_refunds": {"name": "subtotal_net_refunds", "description": "Subtotal of the order line with refunds subtracted in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_types": {"name": "restock_types", "description": "List of how this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_tax": {"name": "order_line_tax", "description": "Total taxes for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The total pre tax price of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507518.96332, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__order_line') }}\n\n), product_variants as (\n\n select *\n from {{ ref('int_shopify_gql__product_variant') }}\n\n), refunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), \n\n{% if var('shopify_gql_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_gql_product_variant_media') }}\n),\n{% endif %}\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n {{ fivetran_utils.string_agg(\"distinct cast(refunds.restock_type as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as restock_types\n from refunds\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n refunds_aggregated.restock_types,\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n product_variant_media.media_id,\n {% endif %}\n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_line", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__product_variant", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__order_lines.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n\n), product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"\n\n), refunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), \n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\n),\n\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n \n string_agg(distinct cast(refunds.restock_type as TEXT), ', ')\n\n as restock_types\n from refunds\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n refunds_aggregated.restock_types,\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n \n product_variant_media.media_id,\n \n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n\n \n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_line", "sql": " __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__transactions": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__transactions", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__transactions.sql", "original_file_path": "models/graphql/shopify_gql__transactions.sql", "unique_id": "model.shopify.shopify_gql__transactions", "fqn": ["shopify", "graphql", "shopify_gql__transactions"], "alias": "shopify_gql__transactions", "checksum": {"name": "sha256", "checksum": "a515293deae8b33e3c0c262d12f78da246ceff07bf83ee3f6d3458d27c8d7234"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of money included in the transaction in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of money included in the transaction in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of the date the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "exchange_rate": {"name": "exchange_rate", "description": "The exchange rate between the home currency and the currency of sale at the time of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_calculated_amount": {"name": "currency_exchange_calculated_amount", "description": "The total amount of the transaction with the currency exchange rate applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Method of payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_created_timestamp": {"name": "parent_created_timestamp", "description": "Created on timestamp of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_kind": {"name": "parent_kind", "description": "Kind of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_amount": {"name": "parent_amount", "description": "Amount of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_status": {"name": "parent_status", "description": "Status of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "Timestamp when the authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507518.975455, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__transactions\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith transactions as (\n select *\n from {{ var('shopify_gql_transaction') }} \n\n), tender_transactions as (\n\n select *\n from {{ var('shopify_gql_tender_transaction') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__order') }}\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount_shop as parent_amount,\n parent_transactions.status as parent_status,\n orders.location_id,\n orders.source_name \n\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n left join orders\n on transactions.order_id = orders.order_id\n and transactions.source_relation = orders.source_relation\n\n), exchange_rate as (\n\n select\n *,\n {# QUESTION/ISSUE: Cannot confirm if receipt looks the same in GraphQL #}\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount_shop as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.json_parse", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction", "model.shopify_source.stg_shopify_gql__tender_transaction", "model.shopify.int_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__transactions.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\" \n\n), tender_transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount_shop as parent_amount,\n parent_transactions.status as parent_status,\n orders.location_id,\n orders.source_name \n\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n left join orders\n on transactions.order_id = orders.order_id\n and transactions.source_relation = orders.source_relation\n\n), exchange_rate as (\n\n select\n *,\n \n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) as exchange_rate,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) * amount_shop as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__customer_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_cohorts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_cohorts.sql", "original_file_path": "models/graphql/shopify_gql__customer_cohorts.sql", "unique_id": "model.shopify.shopify_gql__customer_cohorts", "fqn": ["shopify", "graphql", "shopify_gql__customer_cohorts"], "alias": "shopify_gql__customer_cohorts", "checksum": {"name": "sha256", "checksum": "ee60abfcf8dbc62b9076eba78f3ae9049684e928f2bb727d820ae9bff594820c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "created_at": 1754507518.8799977, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'),\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'customer_id'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify_gql__customers') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify_gql__customers", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customers", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__customers\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n customer_id\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify_gql__discounts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__discounts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__discounts.sql", "original_file_path": "models/graphql/shopify_gql__discounts.sql", "unique_id": "model.shopify.shopify_gql__discounts", "fqn": ["shopify", "graphql", "shopify_gql__discounts"], "alias": "shopify_gql__discounts", "checksum": {"name": "sha256", "checksum": "7a569223e2c4c3386f19482d1460516239b38fe1ff56f7c435ad56adcbe8a5e3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The case-insensitive discount code that customers use at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether the discount can be used only once per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "Number of times the discount has been used (asynchronously updated).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "Number of unique redeem codes associated with the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether `codes_count` is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "Timestamp when the discount ends or expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "Timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "Current status of the discount (e.g. 'active', 'expired', 'scheduled').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount\u2019s display name in the Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to 'all' or 'entitled' items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "How the discount value is interpreted (e.g., 'percentage', 'fixed_amount').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_discount_amount": {"name": "total_order_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off of orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_discount_amount": {"name": "total_abandoned_checkout_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_line_items_price": {"name": "total_order_line_items_price", "description": "Total monetary amount (in shop currency) of line items for orders that have used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_shipping_cost": {"name": "total_order_shipping_cost", "description": "Total shipping costs for orders that used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_refund_amount": {"name": "total_order_refund_amount", "description": "Total refunded amount (in shop currency) for orders that used this discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer emails who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_discount_amount": {"name": "avg_order_discount_amount", "description": "Average amount (in shop currency) of discount taken off orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "count_orders": {"name": "count_orders", "description": "Count of orders in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customers": {"name": "count_abandoned_checkout_customers", "description": "Distinct count of customers who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customer_emails": {"name": "count_abandoned_checkout_customer_emails", "description": "Distinct count of customer emails who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.0127764, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__discounts\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith discounts_enriched as (\n\n select *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as unique_key\n from {{ ref('int_shopify_gql__discount_code_enriched')}}\n),\n\norders_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__discounts_order_aggregates')}}\n),\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\nabandoned_checkouts_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__discounts_abandoned_checkouts')}}\n),\n{% endif %}\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n {% endif %} \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n {% endif %}\n)\n\nselect * \nfrom aggregates_joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__discount_code_enriched", "package": null, "version": null}, {"name": "int_shopify_gql__discounts_order_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__discounts_abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__discounts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n), __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__discounts_order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), discounts_enriched as (\n\n select *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_code_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n from __dbt__cte__int_shopify_gql__discount_code_enriched\n),\n\norders_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__discounts_order_aggregates\n),\n\n\nabandoned_checkouts_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts\n),\n\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n \n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n \n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n \n)\n\nselect * \nfrom aggregates_joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__discount_code_enriched", "sql": " __dbt__cte__int_shopify_gql__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n)"}, {"id": "model.shopify.int_shopify_gql__order_discount_code", "sql": " __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__discounts_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__discounts_order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}, {"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}, {"id": "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "sql": " __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__inventory_levels": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__inventory_levels", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__inventory_levels.sql", "original_file_path": "models/graphql/shopify_gql__inventory_levels.sql", "unique_id": "model.shopify.shopify_gql__inventory_levels", "fqn": ["shopify", "graphql", "shopify_gql__inventory_levels"], "alias": "shopify_gql__inventory_levels", "checksum": {"name": "sha256", "checksum": "4445bf0d90a7fc6692d5de872684081dc6e76bd29a80094451a7b855651b8cba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of inventory items (which have a 1:1 relationship with product variants) and locations. \nInventory Level = Inventory item @ a Location.\n", "columns": {"inventory_level_id": {"name": "inventory_level_id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The name of the country where the inventory level is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_item_deleted": {"name": "is_inventory_item_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "(DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_created_at": {"name": "inventory_item_created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_updated_at": {"name": "inventory_item_updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_location_deleted": {"name": "is_location_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_location_active": {"name": "is_location_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_created_at": {"name": "location_created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy_location": {"name": "is_legacy_location", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_name": {"name": "location_name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_updated_at": {"name": "location_updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_media_id": {"name": "variant_media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_variant_taxable": {"name": "is_variant_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_orders": {"name": "count_distinct_orders", "description": "The number of distinct orders placed from this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customers": {"name": "count_distinct_customers", "description": "The number of distinct customers (based on customer_id) that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customer_emails": {"name": "count_distinct_customer_emails", "description": "The number of distinct customer emails that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timetamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "The timestamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_refunds": {"name": "subtotal_sold_refunds", "description": "The monetary amount (in shop currency) of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_refunds": {"name": "quantity_sold_refunds", "description": "The quantity of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_subtotal_sold": {"name": "net_subtotal_sold", "description": "Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_quantity_sold": {"name": "net_quantity_sold", "description": "Net quantity sold from this inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_pending": {"name": "count_fulfillment_pending", "description": "Count of currently pending distinct fulfillments for this inventory level. \"Pending\" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_open": {"name": "count_fulfillment_open", "description": "Count of currently open distinct fulfillments for this inventory level. \"Open\" = The fulfillment has been acknowledged by the service and is in processing.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_success": {"name": "count_fulfillment_success", "description": "Count of successful distinct fulfillments for this inventory level. \"Success\" = The fulfillment was successful.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_cancelled": {"name": "count_fulfillment_cancelled", "description": "Count of cancelled distinct fulfillments for this inventory level. \"Cancelled\" = The fulfillment was cancelled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_error": {"name": "count_fulfillment_error", "description": "Count of distinct fulfillments for this inventory level that encountered an error. \"Error\" = There was an error with the fulfillment request.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of distinct fulfillments for this inventory level that failed. \"Failure\" = The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "available_quantity": {"name": "available_quantity", "description": "The available quantity that a merchant can sell, determined by coalescing the `quantity` where inventory_state_name = 'available' from `stg_shopify_gql__inventory_quantity`and `available_quantity` from the deprecated `stg_shopify_gql__inventory_level`. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "incoming_quantity": {"name": "incoming_quantity", "description": "The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "on_hand_quantity": {"name": "on_hand_quantity", "description": "The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "committed_quantity": {"name": "committed_quantity", "description": "The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reserved_quantity": {"name": "reserved_quantity", "description": "The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "damaged_quantity": {"name": "damaged_quantity", "description": "The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "safety_stock_quantity": {"name": "safety_stock_quantity", "description": "The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quality_control_quantity": {"name": "quality_control_quantity", "description": "The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507518.999425, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith inventory_level as (\n\n select *\n from {{ var('shopify_gql_inventory_level') }}\n), \n\ninventory_item as (\n\n select *\n from {{ var('shopify_gql_inventory_item') }}\n),\n\ninventory_quantity as (\n\n select *\n from {{ var('shopify_gql_inventory_quantity') }}\n),\n\nlocation as (\n\n select *\n from {{ var('shopify_gql_location') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n),\n\nproduct as (\n\n select *\n from {{ var('shopify_gql_product') }}\n),\n\ninventory_level_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__inventory_level_aggregates') }}\n),\n\n{% if var('shopify_gql_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_gql_product_variant_media') }}\n),\n{% endif %}\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%}\n {% for inventory_state in inventory_states -%}\n , sum(case when lower(inventory_state_name) = {{ \"'\" ~ inventory_state|lower ~ \"'\" }}\n then inventory_quantity.quantity end) as {{ inventory_state }}_quantity\n {% endfor -%}\n\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.country_name,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n product_variant_media.media_id as variant_media_id,\n {% endif %}\n\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }}\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n {% endif %}\n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n\n {% for inventory_state in inventory_states -%}\n , inventory_quantity_aggregated.{{ inventory_state }}_quantity\n {% endfor -%}\n\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}, {"name": "stg_shopify_gql__location", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "int_shopify_gql__inventory_level_aggregates", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level", "model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__inventory_quantity", "model.shopify_source.stg_shopify_gql__location", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product", "model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__inventory_levels.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify_gql__inventory_level_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), inventory_level as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\n), \n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\n),\n\ninventory_quantity as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\n),\n\nlocation as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n),\n\nproduct as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n),\n\ninventory_level_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__inventory_level_aggregates\n),\n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\n),\n\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n , sum(case when lower(inventory_state_name) = 'incoming'\n then inventory_quantity.quantity end) as incoming_quantity\n , sum(case when lower(inventory_state_name) = 'on_hand'\n then inventory_quantity.quantity end) as on_hand_quantity\n , sum(case when lower(inventory_state_name) = 'available'\n then inventory_quantity.quantity end) as available_quantity\n , sum(case when lower(inventory_state_name) = 'committed'\n then inventory_quantity.quantity end) as committed_quantity\n , sum(case when lower(inventory_state_name) = 'reserved'\n then inventory_quantity.quantity end) as reserved_quantity\n , sum(case when lower(inventory_state_name) = 'damaged'\n then inventory_quantity.quantity end) as damaged_quantity\n , sum(case when lower(inventory_state_name) = 'safety_stock'\n then inventory_quantity.quantity end) as safety_stock_quantity\n , sum(case when lower(inventory_state_name) = 'quality_control'\n then inventory_quantity.quantity end) as quality_control_quantity\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.country_name,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n\n \n product_variant_media.media_id as variant_media_id,\n \n\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n \n\n\n\n\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n \n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n \n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n \n , coalesce(inventory_level_aggregated.count_fulfillment_pending, 0) as count_fulfillment_pending\n \n , coalesce(inventory_level_aggregated.count_fulfillment_open, 0) as count_fulfillment_open\n \n , coalesce(inventory_level_aggregated.count_fulfillment_success, 0) as count_fulfillment_success\n \n , coalesce(inventory_level_aggregated.count_fulfillment_cancelled, 0) as count_fulfillment_cancelled\n \n , coalesce(inventory_level_aggregated.count_fulfillment_error, 0) as count_fulfillment_error\n \n , coalesce(inventory_level_aggregated.count_fulfillment_failure, 0) as count_fulfillment_failure\n \n\n , inventory_quantity_aggregated.incoming_quantity\n , inventory_quantity_aggregated.on_hand_quantity\n , inventory_quantity_aggregated.available_quantity\n , inventory_quantity_aggregated.committed_quantity\n , inventory_quantity_aggregated.reserved_quantity\n , inventory_quantity_aggregated.damaged_quantity\n , inventory_quantity_aggregated.safety_stock_quantity\n , inventory_quantity_aggregated.quality_control_quantity\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_line", "sql": " __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify_gql__inventory_level_aggregates", "sql": " __dbt__cte__int_shopify_gql__inventory_level_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "location_id"], "time_spine": null}, "model.shopify.shopify_gql__customer_emails": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_emails", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_emails.sql", "original_file_path": "models/graphql/shopify_gql__customer_emails.sql", "unique_id": "model.shopify.shopify_gql__customer_emails", "fqn": ["shopify", "graphql", "shopify_gql__customer_emails"], "alias": "shopify_gql__customer_emails", "checksum": {"name": "sha256", "checksum": "af89662d410ca87ac66c148c1f5f7e4194cec7c47a6939591c5bc3b2bc113825"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer email in Shopify.", "columns": {"last_fivetran_synced": {"name": "last_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_ids": {"name": "customer_ids", "description": "Comma-separated list of customer IDs associated with the email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone_numbers": {"name": "phone_numbers", "description": "Comma-separated list of phone numbers associated with this email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_updated_at": {"name": "last_updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money that the customer has spent on orders across their order history (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_account_created_at": {"name": "first_account_created_at", "description": "Timestamp of when the first account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_account_created_at": {"name": "last_account_created_at", "description": "Timestamp of when the last account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507518.937183, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customer_emails as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify_gql__customer_email_rollup'), except=[\"orders_count\", \"total_spent\", \"unique_key\"]) }}\n from {{ ref('int_shopify_gql__customer_email_rollup') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__emails_order_aggregates' )}}\n where email is not null\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ ref('int_shopify_gql__abandoned_checkout' )}}\n where email is not null\n group by 1,2\n{% endif %}\n\n), joined as (\n\n select \n customer_emails.*,\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify_gql__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify_gql__emails_order_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star"], "nodes": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.int_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_emails.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__emails_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), customer_emails as (\n\n select \n \"email\",\n \"source_relation\",\n \"customer_ids\",\n \"phone_numbers\",\n \"customer_tags\",\n \"first_account_created_at\",\n \"last_account_created_at\",\n \"last_updated_at\",\n \"marketing_consent_updated_at\",\n \"last_fivetran_synced\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"first_name\",\n \"last_name\",\n \"account_state\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"default_address_id\"\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer_email_rollup\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__emails_order_aggregates\n where email is not null\n\n\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n where email is not null\n group by 1,2\n\n\n), joined as (\n\n select \n customer_emails.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n \n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__emails_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__emails_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}, {"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.shopify_gql__daily_shop": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__daily_shop", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__daily_shop.sql", "original_file_path": "models/graphql/shopify_gql__daily_shop.sql", "unique_id": "model.shopify.shopify_gql__daily_shop", "fqn": ["shopify", "graphql", "shopify_gql__daily_shop"], "alias": "shopify_gql__daily_shop", "checksum": {"name": "sha256", "checksum": "cab8dd258f8ec32221ccbf94b62a452a5070fc9714d799c939ee0fa6c48f9a5e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a day in your Shop, enriched with a suite of metrics.\n", "columns": {"date_day": {"name": "date_day", "description": "Day for which the shop activity is being measured.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders": {"name": "count_orders", "description": "Count of the distinct orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_line_items": {"name": "count_line_items", "description": "Count of the line items included in orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer email addresses who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "Average adjusted total per order placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount (in shop currency) applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to adjustments (in shop currency) on the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of the discount allocated to this day's orders in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied by customers on orders for this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_locations_ordered_from": {"name": "count_locations_ordered_from", "description": "Distinct locations with orders placed against them on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_discounts": {"name": "count_orders_with_discounts", "description": "Count of orders in which a discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_refunds": {"name": "count_orders_with_refunds", "description": "Count of orders in which there was a refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "Timestamp of the first order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "Timestamp of the last order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_refunded": {"name": "quantity_refunded", "description": "The quantity of goods ORDERED on this day that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net": {"name": "quantity_net", "description": "Net quantity sold from this shop on this day. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants_sold": {"name": "count_variants_sold", "description": "Distinct product variants sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_products_sold": {"name": "count_products_sold", "description": "Distinct products sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_gift_cards_sold": {"name": "quantity_gift_cards_sold", "description": "Quantity of gift cards sold on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_requiring_shipping": {"name": "quantity_requiring_shipping", "description": "Quantity of goods sold on this day that require shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers_abandoned_checkout": {"name": "count_customers_abandoned_checkout", "description": "Count of distinct customers who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails_abandoned_checkout": {"name": "count_customer_emails_abandoned_checkout", "description": "Count of distinct customer emails who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_attempted_delivery": {"name": "count_fulfillment_attempted_delivery", "description": "Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delivered": {"name": "count_fulfillment_delivered", "description": "Count of successful distinct fulfillments successfully delivered on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_in_transit": {"name": "count_fulfillment_in_transit", "description": "Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_out_for_delivery": {"name": "count_fulfillment_out_for_delivery", "description": "Count of distinct fulfillments being delivered to their final destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_ready_for_pickup": {"name": "count_fulfillment_ready_for_pickup", "description": "Count of distinct fulfillments ready for pickup at a shipping depot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_printed": {"name": "count_fulfillment_label_printed", "description": "Count of distinct fulfillments for which a purchased shipping label has been printed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_purchased": {"name": "count_fulfillment_label_purchased", "description": "Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_confirmed": {"name": "count_fulfillment_confirmed", "description": "Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delayed": {"name": "count_fulfillment_delayed", "description": "Count of delayed distinct fulfillments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_line_item_count": {"name": "avg_line_item_count", "description": "Average line item count for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount": {"name": "avg_discount", "description": "Average total discount placed on orders on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_discount_amount": {"name": "avg_shipping_discount_amount", "description": "Average discount amount (in shop currency) allocated toward shipping on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_percentage_calc_discount_amount": {"name": "avg_percentage_calc_discount_amount", "description": "Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_fixed_amount_discount_amount": {"name": "avg_fixed_amount_discount_amount", "description": "Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_sold": {"name": "avg_quantity_sold", "description": "Average quantity sold per order on this day. Includes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_net": {"name": "avg_quantity_net", "description": "Average net quantity sold per order on this day. Excludes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.0266235, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__daily_shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith shop as (\n\n select *\n from {{ var('shopify_gql_shop') }}\n),\n\ncalendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from {{ ref('int_shopify_gql__daily_orders') }}\n),\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\ndaily_abandoned_checkouts as (\n\n select *\n from {{ ref('int_shopify_gql__daily_abandoned_checkouts') }}\n),\n{% endif %}\n\n{% if var('shopify_gql_using_fulfillment_event', false) %}\ndaily_fulfillment as (\n\n select *\n from {{ ref('int_shopify_gql__daily_fulfillment') }}\n),\n{% endif %}\n\nshop_calendar as (\n\n select\n cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n {% endif %}\n\n {% if var('shopify_gql_using_fulfillment_event', false) %}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%}\n , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n {% endif %}\n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n {% endif %}\n\n {% if var('shopify_gql_using_fulfillment_event', false) %}\n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n {% endif %}\n \n)\n\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "shopify__calendar", "package": null, "version": null}, {"name": "int_shopify_gql__daily_orders", "package": null, "version": null}, {"name": "int_shopify_gql__daily_abandoned_checkouts", "package": null, "version": null}, {"name": "int_shopify_gql__daily_fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify_gql__shop", "model.shopify.shopify__calendar", "model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__daily_fulfillment"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__daily_shop.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n), __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), __dbt__cte__int_shopify_gql__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n), __dbt__cte__int_shopify_gql__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n), shop as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\n),\n\ncalendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('day', date_day) as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_orders\n),\n\n\ndaily_abandoned_checkouts as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_abandoned_checkouts\n),\n\n\n\ndaily_fulfillment as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_fulfillment\n),\n\n\nshop_calendar as (\n\n select\n cast(date_trunc('day', calendar.date_day) as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n \n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n \n\n \n \n , coalesce(count_fulfillment_attempted_delivery, 0) as count_fulfillment_attempted_delivery\n \n , coalesce(count_fulfillment_delayed, 0) as count_fulfillment_delayed\n \n , coalesce(count_fulfillment_delivered, 0) as count_fulfillment_delivered\n \n , coalesce(count_fulfillment_failure, 0) as count_fulfillment_failure\n \n , coalesce(count_fulfillment_in_transit, 0) as count_fulfillment_in_transit\n \n , coalesce(count_fulfillment_out_for_delivery, 0) as count_fulfillment_out_for_delivery\n \n , coalesce(count_fulfillment_ready_for_pickup, 0) as count_fulfillment_ready_for_pickup\n \n , coalesce(count_fulfillment_label_printed, 0) as count_fulfillment_label_printed\n \n , coalesce(count_fulfillment_label_purchased, 0) as count_fulfillment_label_purchased\n \n , coalesce(count_fulfillment_confirmed, 0) as count_fulfillment_confirmed\n \n \n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n \n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n \n\n \n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n \n \n)\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__daily_orders", "sql": " __dbt__cte__int_shopify_gql__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}, {"id": "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "sql": " __dbt__cte__int_shopify_gql__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n)"}, {"id": "model.shopify.int_shopify_gql__daily_fulfillment", "sql": " __dbt__cte__int_shopify_gql__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__products": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__products", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__products.sql", "original_file_path": "models/graphql/shopify_gql__products.sql", "unique_id": "model.shopify.shopify_gql__products", "fqn": ["shopify", "graphql", "shopify_gql__products"], "alias": "shopify_gql__products", "checksum": {"name": "sha256", "checksum": "2f676f8591456d8c9e51c9c86d2a748f05045aea58b9b9f9d470c5a5f09e0320"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a product. Hashed on 'product_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity_sold": {"name": "total_quantity_sold", "description": "Quantity of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (in shop currency) of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_net_refunds": {"name": "quantity_sold_net_refunds", "description": "Quantity of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_net_refunds": {"name": "subtotal_sold_net_refunds", "description": "Total amount (in shop currency) of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the product was first ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the product was most recently ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order_line": {"name": "avg_quantity_per_order_line", "description": "Average quantity per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_discount": {"name": "product_total_discount", "description": "Total discounts associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_discount_per_order_line": {"name": "product_avg_discount_per_order_line", "description": "Average discount per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_tax": {"name": "product_total_tax", "description": "Total taxes associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_tax_per_order_line": {"name": "product_avg_tax_per_order_line", "description": "Average taxes per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants": {"name": "count_variants", "description": "Count of product variants.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_product_media": {"name": "has_product_media", "description": "If the product has media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collections": {"name": "collections", "description": "Comma-separated list of collections associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tags": {"name": "tags", "description": "Comma-separated list of tags associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507518.9451697, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__products\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith products as (\n\n select *\n from {{ ref('int_shopify_gql__products_with_aggregates') }}\n\n), product_order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__product_order_line_aggregates')}}\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__products_with_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__product_order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.int_shopify_gql__product_order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__products.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__product_order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), products as (\n\n select *\n from __dbt__cte__int_shopify_gql__products_with_aggregates\n\n), product_order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__product_order_line_aggregates\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__products_with_aggregates", "sql": " __dbt__cte__int_shopify_gql__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__product_order_line_aggregates", "sql": " __dbt__cte__int_shopify_gql__product_order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__orders": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__orders", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__orders.sql", "original_file_path": "models/graphql/shopify_gql__orders.sql", "unique_id": "model.shopify.shopify_gql__orders", "fqn": ["shopify", "graphql", "shopify_gql__orders"], "alias": "shopify_gql__orders", "checksum": {"name": "sha256", "checksum": "2ecbe0d27380045217fefb1d40c135d7557dd131145cb6c48ae86521585cd5e5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing an order. Hashed on 'order_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_amount": {"name": "total_discounts_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_amount": {"name": "total_discounts_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_currency_code": {"name": "total_discounts_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_currency_code": {"name": "total_discounts_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_amount": {"name": "total_line_items_price_shop_amount", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_amount": {"name": "total_line_items_price_pres_amount", "description": "The sum of all line item prices in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_currency_codes": {"name": "total_line_items_price_shop_currency_codes", "description": "The three-letter codes (ISO 4217 format) for the shop currency used to display the total line item price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_currency_codes": {"name": "total_line_items_price_pres_currency_codes", "description": "The three-letter codes (ISO 4217 format) for the presentment currency used to display the total line item price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count": {"name": "line_item_count", "description": "Number of line items included in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_order_seq_number": {"name": "customer_order_seq_number", "description": "The sequential number of the order as it relates to the customer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "new_vs_repeat": {"name": "new_vs_repeat", "description": "Whether the order was a new or repeat order for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_amount": {"name": "shipping_cost_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_amount": {"name": "shipping_cost_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_currency_code": {"name": "shipping_cost_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_currency_code": {"name": "shipping_cost_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to the adjustment on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_total_shipping_tax": {"name": "order_total_shipping_tax", "description": "Total shipping tax attributed to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_tags": {"name": "order_tags", "description": "List of tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number_of_fulfillments": {"name": "number_of_fulfillments", "description": "Total fulfillments for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_services": {"name": "fulfillment_services", "description": "List of fulfillment services for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_companies": {"name": "tracking_companies", "description": "List of tracking companies for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "List of tracking numbers for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_amount": {"name": "total_tip_received_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_amount": {"name": "total_tip_received_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_currency_code": {"name": "total_tip_received_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_currency_code": {"name": "total_tip_received_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied on the order", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507518.9213953, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__orders\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ ref('int_shopify_gql__order') }}\n\n), order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), fulfillments as (\n\n select *\n from {{ ref('int_shopify_gql__order_fulfillment_aggregates') }}\n \n), order_adjustments as (\n\n select *\n from {{ ref('int_shopify_gql__order_adjustment') }}\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount_shop) as order_adjustment_amount,\n sum(tax_amount_shop) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from {{ ref('int_shopify_gql__order_discount_code') }}\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then value_amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then value_amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then value_amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_tags\n \n from {{ var('shopify_gql_order_tag') }}\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n (orders.total_price_shop_amount\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n order_lines.total_line_items_price_pres_amount,\n order_lines.total_line_items_price_shop_amount,\n order_lines.total_line_items_price_pres_currency_codes,\n order_lines.total_line_items_price_shop_currency_codes,\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__order_fulfillment_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__order_adjustment", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}, {"name": "int_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.shopify.shopify_partition_by_cols"], "nodes": ["model.shopify.int_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.int_shopify_gql__order_discount_code", "model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__orders.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_fulfillment_aggregates as (\n\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final\n), __dbt__cte__int_shopify_gql__order_adjustment as (\n\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), fulfillments as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_fulfillment_aggregates\n \n), order_adjustments as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_adjustment\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount_shop) as order_adjustment_amount,\n sum(tax_amount_shop) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then value_amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then value_amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then value_amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n (orders.total_price_shop_amount\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n order_lines.total_line_items_price_pres_amount,\n order_lines.total_line_items_price_shop_amount,\n order_lines.total_line_items_price_pres_currency_codes,\n order_lines.total_line_items_price_shop_currency_codes,\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by \n\n\n customer_id\n\n\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_fulfillment_aggregates as (\n\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify_gql__order_adjustment", "sql": " __dbt__cte__int_shopify_gql__order_adjustment as (\n\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify_gql__order_discount_code", "sql": " __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.int_shopify_gql__discount_code_enriched": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discount_code_enriched", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "unique_id": "model.shopify.int_shopify_gql__discount_code_enriched", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discount_code_enriched"], "alias": "int_shopify_gql__discount_code_enriched", "checksum": {"name": "sha256", "checksum": "d268ffc342662037c84c650aab638ba29d2e2136da8c908bc04508c9a7ddc129"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.8973005, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith discount_redeem_codes as (\n \n select *\n from {{ var('shopify_gql_discount_redeem_code') }}\n),\n\ndiscount_applications as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_basic') }}\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_bxgy') }}\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_free_shipping') }}\n\n {% if var('shopify_gql_using_discount_code_app', False) %}\n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_app') }}\n {% endif %}\n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code", "model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__discount_code_basic", "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "compiled": true, "compiled_code": "\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__products_with_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__products_with_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__products_with_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__products_with_aggregates"], "alias": "int_shopify_gql__products_with_aggregates", "checksum": {"name": "sha256", "checksum": "e193bda9d00349acc767910a46f163e2c0cbf21e745ac7e7268ab3a8429e3cac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.909629, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith products as (\n\n select *\n from {{ var('shopify_gql_product') }}\n), \n\ncollection_product as (\n\n select *\n from {{ var('shopify_gql_collection_product') }}\n),\n\ncollection as (\n\n select *\n from {{ ref('int_shopify_gql__collection') }}\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from {{ var('shopify_gql_product_tag') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n), \n\nproduct_media as (\n\n select *\n from {{ var('shopify_gql_product_media') }}\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter=\"', '\") }} as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='value', delimiter=\"', '\") }} as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_product", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tag", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__collection_product", "model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__product_tag", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customers_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customers_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__customers_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__customers_order_aggregates"], "alias": "int_shopify_gql__customers_order_aggregates", "checksum": {"name": "sha256", "checksum": "d0a702cbdb5b6a1fb0b18326465045024d5cf44d97d55a324cb07c68f6927844"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.922275, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify_gql__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_orders": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_orders", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_orders.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_orders.sql", "unique_id": "model.shopify.int_shopify_gql__daily_orders", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_orders"], "alias": "int_shopify_gql__daily_orders", "checksum": {"name": "sha256", "checksum": "65a52e078d07bc36095bbfe50d4c57f831d112c3229bd68887265843aaf50be4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.9308467, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from {{ ref('shopify_gql__order_lines') }}\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}, {"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.shopify_gql__orders", "model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_orders.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__emails_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__emails_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__emails_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__emails_order_aggregates"], "alias": "int_shopify_gql__emails_order_aggregates", "checksum": {"name": "sha256", "checksum": "46a6101b635fbaac9e4c4f48883e0c13893e9a0ea161d2e182bb07a5a8c5bf81"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.9410381, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n\n), order_aggregates as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify_gql__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from {{ var('shopify_gql_customer') }}\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "shopify_gql__transactions", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_shipping_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_shipping_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__order_shipping_aggregates"], "alias": "int_shopify_gql__order_shipping_aggregates", "checksum": {"name": "sha256", "checksum": "26bcfed5649b9547dd26cec0717b663322f2a11fe33a1018bba98b4a41ec0dce"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.9504988, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from {{ var('shopify_gql_order_shipping_line') }}\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from {{ var('shopify_gql_order_shipping_tax_line') }}\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line", "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_fulfillment_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_fulfillment_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__order_fulfillment_aggregates"], "alias": "int_shopify_gql__order_fulfillment_aggregates", "checksum": {"name": "sha256", "checksum": "eab4b050977a64c32a911238f62cd031e55c7fdf4d70257621648e0100ef3bb6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.9590905, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith fulfillment as (\n\n select *\n from {{ var('shopify_gql_fulfillment') }}\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n{% if var('shopify_gql_using_fulfillment_tracking_info', False) %}\nfulfillment_tracking_info as (\n\n select *\n from {{ var('shopify_gql_fulfillment_tracking_info') }}\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_number as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_url as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_urls,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_company as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment.service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n{% else %}\nfinal as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n count_fulfillments.number_of_fulfillments,\n max(cast(null as {{ dbt.type_string() }})) as tracking_numbers,\n max(cast(null as {{ dbt.type_string() }})) as tracking_urls,\n max(cast(null as {{ dbt.type_string() }})) as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment.service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services\n \n from fulfillment\n left join count_fulfillments\n on fulfillment.order_id = count_fulfillments.order_id\n and fulfillment.source_relation = count_fulfillments.source_relation\n group by 1,2,3\n)\n{% endif %}\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__product_order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__product_order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__product_order_line_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__product_order_line_aggregates"], "alias": "int_shopify_gql__product_order_line_aggregates", "checksum": {"name": "sha256", "checksum": "920e1fc150f4213e06a67d88602663cef81d03069da2be99d221bea87c439370"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.9744399, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('shopify_gql__order_lines') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders')}}\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__orders_order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__orders_order_line_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__orders_order_line_aggregates"], "alias": "int_shopify_gql__orders_order_line_aggregates", "checksum": {"name": "sha256", "checksum": "d4920955a26e1fe0a86640c97e6cf61a18199255c10350c485aad97d1706beab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507514.9831297, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"", "raw_code": "{{ config(\n materialized='table', \n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')\n) }}\n\nwith order_line as (\n\n select *\n from {{ var('shopify_gql_order_line') }}\n\n), tax as (\n\n select\n *\n from {{ var('shopify_gql_tax_line') }}\n\n), shipping as (\n\n select\n *\n from {{ ref('int_shopify_gql__order_shipping_aggregates')}}\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(coalesce(order_line.quantity, 0)) as order_total_quantity,\n sum(coalesce(tax_aggregates.price, 0)) as order_total_tax,\n sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount,\n sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount,\n sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount,\n {{ fivetran_utils.string_agg(\"distinct cast(order_line.price_pres_currency_code as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as total_line_items_price_pres_currency_codes,\n {{ fivetran_utils.string_agg(\"distinct cast(order_line.price_shop_currency_code as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as total_line_items_price_shop_currency_codes\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n order_line_aggregates.total_line_items_price_pres_amount,\n order_line_aggregates.total_line_items_price_shop_amount,\n order_line_aggregates.total_line_items_price_pres_currency_codes,\n order_line_aggregates.total_line_items_price_shop_currency_codes,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line", "package": null, "version": null}, {"name": "int_shopify_gql__order_shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line", "model.shopify.int_shopify_gql__order_shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), order_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n\n), tax as (\n\n select\n *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n\n), shipping as (\n\n select\n *\n from __dbt__cte__int_shopify_gql__order_shipping_aggregates\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(coalesce(order_line.quantity, 0)) as order_total_quantity,\n sum(coalesce(tax_aggregates.price, 0)) as order_total_tax,\n sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount,\n sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount,\n sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount,\n \n string_agg(distinct cast(order_line.price_pres_currency_code as TEXT), ', ')\n\n as total_line_items_price_pres_currency_codes,\n \n string_agg(distinct cast(order_line.price_shop_currency_code as TEXT), ', ')\n\n as total_line_items_price_shop_currency_codes\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n order_line_aggregates.total_line_items_price_pres_amount,\n order_line_aggregates.total_line_items_price_shop_amount,\n order_line_aggregates.total_line_items_price_pres_currency_codes,\n order_line_aggregates.total_line_items_price_shop_currency_codes,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discounts_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discounts_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__discounts_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discounts_order_aggregates"], "alias": "int_shopify_gql__discounts_order_aggregates", "checksum": {"name": "sha256", "checksum": "28bcab684975ed061e765767dcc92ed6ca7a8c8f7235aee1d6c1ac349bae7799"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507514.9949677, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_discount_code as (\n\n select *\n from {{ ref('int_shopify_gql__order_discount_code') }}\n),\n\norders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__order_discount_code", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n), order_discount_code as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_discount_code", "sql": " __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_fulfillment", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "unique_id": "model.shopify.int_shopify_gql__daily_fulfillment", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_fulfillment"], "alias": "int_shopify_gql__daily_fulfillment", "checksum": {"name": "sha256", "checksum": "6093ddf8463f9914ea1a6f6798a01d89e77af1f43f0ef6f475ceb741b0824740"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.002516, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', false) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith fulfillment_event as (\n\n select *\n from {{ var('shopify_gql_fulfillment_event') }}\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day\n\n {# Possible status values: https://shopify.dev/docs/api/admin-graphql/latest/objects/fulfillmentevent#field-FulfillmentEvent.fields.status #}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%}\n , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customer_email_rollup": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customer_email_rollup", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "unique_id": "model.shopify.int_shopify_gql__customer_email_rollup", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__customer_email_rollup"], "alias": "int_shopify_gql__customer_email_rollup", "checksum": {"name": "sha256", "checksum": "64c2801aa55efb47b328ad86e87224082a02e6ca3e915d5820e53f09078cd22a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507515.012212, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__customer_email_rollup\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by created_timestamp desc) \n as customer_index\n\n from {{ ref('int_shopify_gql__customer') }}\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from {{ var('shopify_gql_customer_tag' )}}\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n {{ fivetran_utils.string_agg(\"distinct cast(customers.customer_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_ids,\n {{ fivetran_utils.string_agg(\"distinct cast(customers.phone as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as phone_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(customer_tags.value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n {{ fivetran_utils.max_bool(\"case when customers.customer_index = 1 then customers.is_tax_exempt else null end\") }} as is_tax_exempt, -- since this changes every year\n {{ fivetran_utils.max_bool(\"customers.is_verified_email\") }} as is_verified_email\n\n -- for all other fields, just take the latest value\n {% set cols = adapter.get_columns_in_relation(ref('int_shopify_gql__customer')) %}\n {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', \n 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp',\n 'is_tax_exempt', 'is_verified_email'] %}\n {% for col in cols %}\n {% if col.column|lower not in except_cols %}\n , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }}\n {% endif %}\n {% endfor %}\n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_partition_by_cols", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.max_bool"], "nodes": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by \n\n\n email\n\n\n order by created_timestamp desc) \n as customer_index\n\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n \n string_agg(distinct cast(customers.customer_id as TEXT), ', ')\n\n as customer_ids,\n \n string_agg(distinct cast(customers.phone as TEXT), ', ')\n\n as phone_numbers,\n \n string_agg(distinct cast(customer_tags.value as TEXT), ', ')\n\n as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n \n\n bool_or( case when customers.customer_index = 1 then customers.is_tax_exempt else null end )\n\n as is_tax_exempt, -- since this changes every year\n \n\n bool_or( customers.is_verified_email )\n\n as is_verified_email\n\n -- for all other fields, just take the latest value\n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.first_name else null end) as first_name\n \n \n \n , max(case when customers.customer_index = 1 then customers.last_name else null end) as last_name\n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.account_state else null end) as account_state\n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.note else null end) as note\n \n \n \n , max(case when customers.customer_index = 1 then customers.currency else null end) as currency\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_consent_state else null end) as marketing_consent_state\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_opt_in_level else null end) as marketing_opt_in_level\n \n \n \n \n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.unique_key else null end) as unique_key\n \n \n \n , max(case when customers.customer_index = 1 then customers.default_address_id else null end) as default_address_id\n \n \n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__orders_order_refunds": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_refunds", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "unique_id": "model.shopify.int_shopify_gql__orders_order_refunds", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__orders_order_refunds"], "alias": "int_shopify_gql__orders_order_refunds", "checksum": {"name": "sha256", "checksum": "5c76fbeaab2dd2bff9d13131a4e4fb19a7716c825c70436c6c42ff0f8f1f6234"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.029287, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith refunds as (\n\n select *\n from {{ var('shopify_gql_refund') }}\n\n), order_line_refunds as (\n\n select *\n from {{ var('shopify_gql_order_line_refund') }}\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__refund", "model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "compiled": true, "compiled_code": "\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discounts_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discounts_abandoned_checkouts"], "alias": "int_shopify_gql__discounts_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "ab9f8f0b086697ca51e0f7ffc6005ff2797126920b53eb844a2e5e9ed34f5da7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.0377429, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ ref('int_shopify_gql__abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from {{ var('shopify_gql_abandoned_checkout_discount_code') }}\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_abandoned_checkouts"], "alias": "int_shopify_gql__daily_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "0afd0194490f924273b15c246f6827d0a5fe61b0a084cbaf0673a36995d63d7b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.047021, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ ref('int_shopify_gql__abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.int_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__inventory_level_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__inventory_level_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__inventory_level_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__inventory_level_aggregates"], "alias": "int_shopify_gql__inventory_level_aggregates", "checksum": {"name": "sha256", "checksum": "e25fd92bb71fc3846d1c2e59cf59c2bbdb36b4d99ba571160394a38b4854625a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.0554216, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__order_line') }}\n),\n\nfulfillment as (\n\n select *\n from {{ var('shopify_gql_fulfillment') }}\n),\n\norders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n {# open and pending are set to be deprecated in the future by Shopify #}\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n {{ dbt_utils.group_by(n=3) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}, {"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify.int_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_refunds"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_line", "sql": " __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_adjustment", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "unique_id": "model.shopify.int_shopify_gql__order_adjustment", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_adjustment"], "alias": "int_shopify_gql__order_adjustment", "checksum": {"name": "sha256", "checksum": "566b80b0396e349d2332bee356ba5a1d82377b770a0ff4905c5e8d0ab17ddcb8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.067324, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_adjustment as (\n\n select *\n from {{ var('shopify_gql_order_adjustment') }}\n),\n\nrefund as (\n\n select *\n from {{ var('shopify_gql_refund') }}\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}, {"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment", "model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "compiled": true, "compiled_code": "\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_discount_code", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "unique_id": "model.shopify.int_shopify_gql__order_discount_code", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_discount_code"], "alias": "int_shopify_gql__order_discount_code", "checksum": {"name": "sha256", "checksum": "2c39fac4f334420b741ddf5b87e22b5ace34b1e5183fde13fefd3564e4a85353"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.0759034, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_discount_code as (\n\n select *\n from {{ var('shopify_gql_order_discount_code') }}\n),\n\ndiscount_application as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code", "model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order.sql", "unique_id": "model.shopify.int_shopify_gql__order", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order"], "alias": "int_shopify_gql__order", "checksum": {"name": "sha256", "checksum": "d39c46fbe7a2d41c1b096e78f78ba70cf0d6930f622f93b2424f3c03517cf0ef"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507515.0844526, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select * \n from {{ var('shopify_gql_order') }}\n)\n\n{% if var('shopify_gql_using_customer_visit', True) %}\n, customer_visit as (\n \n select * \n from {{ var('shopify_gql_customer_visit') }}\n),\n\njoined as (\n\n select \n orders.*,\n customer_visit.referring_site,\n customer_visit.landing_page as landing_site_base_url\n from orders\n left join customer_visit\n on orders.order_id = customer_visit.order_id\n and orders.source_relation = customer_visit.source_relation\n)\n\nselect *\nfrom joined\n\n{% else %}\n\nselect \n orders.*,\n cast(null as {{ dbt.type_string() }}) as referring_site,\n cast(null as {{ dbt.type_string() }}) as landing_site_base_url\nfrom orders\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n)\n\n\n, customer_visit as (\n \n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\n),\n\njoined as (\n\n select \n orders.*,\n customer_visit.referring_site,\n customer_visit.landing_page as landing_site_base_url\n from orders\n left join customer_visit\n on orders.order_id = customer_visit.order_id\n and orders.source_relation = customer_visit.source_relation\n)\n\nselect *\nfrom joined\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__product_variant", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__product_variant.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__product_variant.sql", "unique_id": "model.shopify.int_shopify_gql__product_variant", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__product_variant"], "alias": "int_shopify_gql__product_variant", "checksum": {"name": "sha256", "checksum": "9fd96455970237120c405b947004cecc05bd570910786e801daa7df3cf823a5b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507515.0940394, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith product_variants as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n),\n\ninventory_item as (\n\n select *\n from {{ var('shopify_gql_inventory_item') }}\n),\n\njoined as (\n\n select\n product_variants.*,\n inventory_item.measurement_weight_value as weight,\n inventory_item.measurement_weight_unit as weight_unit\n\n from product_variants\n left join inventory_item\n on product_variants.inventory_item_id = inventory_item.inventory_item_id\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n),\n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\n),\n\njoined as (\n\n select\n product_variants.*,\n inventory_item.measurement_weight_value as weight,\n inventory_item.measurement_weight_unit as weight_unit\n\n from product_variants\n left join inventory_item\n on product_variants.inventory_item_id = inventory_item.inventory_item_id\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__collection": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__collection", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__collection.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__collection.sql", "unique_id": "model.shopify.int_shopify_gql__collection", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__collection"], "alias": "int_shopify_gql__collection", "checksum": {"name": "sha256", "checksum": "79c88599b5c946df080af1c74d71b27aed4f7771a481e1c5f675687ea792341a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507515.103999, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith collection as (\n\n select *\n from {{ var('shopify_gql_collection') }}\n)\n\n{% if var('shopify_gql_using_collection_rule', False) %}\n, collection_rule as (\n\n select *\n from {{ var('shopify_gql_collection_rule') }}\n),\n\nprep_collection_rule as (\n\n select \n collection_id,\n source_relation,\n '{\"column\":\"' || columns || '\",\"relation\":\"' || relation || '\",\"condition\":\"' || condition || '\"}' as rule\n from collection_rule\n),\n\nagg_collection_rule as (\n \n select \n collection_id,\n source_relation,\n '[' || {{ fivetran_utils.string_agg(\"rule\", \"','\") }} || ']' as rules\n from prep_collection_rule\n group by 1,2\n),\n\njoined as (\n\n select \n collection.*,\n agg_collection_rule.rules\n from collection\n left join agg_collection_rule\n on collection.collection_id = agg_collection_rule.collection_id\n and collection.source_relation = agg_collection_rule.source_relation\n)\n\nselect *\nfrom joined\n\n{% else %}\nselect \n collection.*,\n cast(null as {{ dbt.type_string() }}) as rules\nfrom collection\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__collection.sql", "compiled": true, "compiled_code": "\n\nwith collection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\n)\n\n\nselect \n collection.*,\n cast(null as TEXT) as rules\nfrom collection\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__abandoned_checkout", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "unique_id": "model.shopify.int_shopify_gql__abandoned_checkout", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__abandoned_checkout"], "alias": "int_shopify_gql__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "1fbb259948ecde6f3a26ef67f85419e23adb92a76099e8951574038b36f320eb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.1133978, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_gql_abandoned_checkout') }}\n),\n\ncustomer as (\n\n select *\n from {{ var('shopify_gql_customer') }}\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customer": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customer", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__customer.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__customer.sql", "unique_id": "model.shopify.int_shopify_gql__customer", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__customer"], "alias": "int_shopify_gql__customer", "checksum": {"name": "sha256", "checksum": "42669a857b1fdc53d88ee34544dfc078e52ceb729cfe1fe4fc47b48691288e07"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507515.1223028, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customer as (\n\n select *\n from {{ var('shopify_gql_customer') }}\n),\n\ncustomer_address as (\n\n select *\n from {{ var('shopify_gql_customer_address') }}\n),\n\ncustomer_default_address as (\n\n select *\n from customer_address\n where coalesce(is_default, false)\n),\n\njoined as (\n\n select \n customer.*,\n customer_default_address.customer_address_id as default_address_id\n {# QUESTION: maybe add other fields that are helpful (would be new)? #}\n \n from customer \n left join customer_default_address\n on customer_default_address.customer_id = customer.customer_id\n and customer_default_address.source_relation = customer.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__customer.sql", "compiled": true, "compiled_code": "\n\nwith customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\ncustomer_address as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\n),\n\ncustomer_default_address as (\n\n select *\n from customer_address\n where coalesce(is_default, false)\n),\n\njoined as (\n\n select \n customer.*,\n customer_default_address.customer_address_id as default_address_id\n \n \n from customer \n left join customer_default_address\n on customer_default_address.customer_id = customer.customer_id\n and customer_default_address.source_relation = customer.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_line": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_line", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_line.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_line.sql", "unique_id": "model.shopify.int_shopify_gql__order_line", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_line"], "alias": "int_shopify_gql__order_line", "checksum": {"name": "sha256", "checksum": "d31c98c59428343bb271372b984f57abf5a5c0ef5b2acc38050034d694a12bc2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754507515.1310158, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_line as (\n \n select *\n from {{ var('shopify_gql_order_line') }}\n),\n\ntax_line as (\n\n select *\n from {{ var('shopify_gql_tax_line') }}\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n{% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\nfulfillment_order_line_item as (\n\n select *\n from {{ var('shopify_gql_fulfillment_order_line_item') }}\n),\n{% endif %}\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n {% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n {% else %}\n cast(null as {{ dbt.type_int() }}) as fulfillable_quantity,\n cast(null as {{ dbt.type_string() }}) as weight_unit,\n cast(null as {{ dbt.type_float() }}) as weight_value\n {% endif %}\n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n {% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line", "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_line.sql", "compiled": true, "compiled_code": "\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__product_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__product_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__product_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__product_metafields.sql", "unique_id": "model.shopify.shopify_gql__product_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__product_metafields"], "alias": "shopify_gql__product_metafields", "checksum": {"name": "sha256", "checksum": "e662128efd355a0a62e3fdd489bcec4cbec57e7f5630e356a1ce31cdbf150fa5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__product model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4570773, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__product_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify_gql__product\", \n reference_values = ['product'],\n id_column = \"product_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__product_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bc_brenbre'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bc_brenbre\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.product_id,\n \n source_table.handle,\n \n source_table.product_type,\n \n source_table.title,\n \n source_table.vendor,\n \n source_table.status,\n \n source_table.is_deleted,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.published_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bc_brenbre) as metafield_bea81c1795a612d8fc3a232b156467bc_brenbre\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42) as metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.product_id\n and lower(lookup_object.owner_resource) in ('product')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__collection_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__collection_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__collection_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__collection_metafields.sql", "unique_id": "model.shopify.shopify_gql__collection_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__collection_metafields"], "alias": "shopify_gql__collection_metafields", "checksum": {"name": "sha256", "checksum": "32b746ed89b86970bc65491e90337339d95f490f4b53efbad3c2d67b17c29056"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__collection model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4555936, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__collection_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__collection\", \n reference_values = ['collection'],\n id_column = \"collection_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__collection_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bd_gwhebwrb'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bd_gwhebwrb\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c3_wgewvevw'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c3_wgewvevw\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.collection_id,\n \n source_table.is_deleted,\n \n source_table.rule_logic,\n \n source_table.handle,\n \n source_table.sort_order,\n \n source_table.title,\n \n source_table.updated_at,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.rules\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bd_gwhebwrb) as metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c3_wgewvevw) as metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.collection_id\n and lower(lookup_object.owner_resource) in ('collection')\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__customer_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__customer_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__customer_metafields.sql", "unique_id": "model.shopify.shopify_gql__customer_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__customer_metafields"], "alias": "shopify_gql__customer_metafields", "checksum": {"name": "sha256", "checksum": "6baad0e1b580a1d84fbd7b945503df32990beafd0d64caa90296378d893291fb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__customer model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.456093, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__customer\", \n reference_values = ['customer'],\n id_column = \"customer_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__customer_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467be_bwrtbnwrj'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467be_bwrtbnwrj\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c4_brewbrewbre'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c4_brewbrewbre\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.first_name,\n \n source_table.last_name,\n \n source_table.orders_count,\n \n source_table.phone,\n \n source_table.account_state,\n \n source_table.is_tax_exempt,\n \n source_table.total_spent,\n \n source_table.is_verified_email,\n \n source_table.note,\n \n source_table.currency,\n \n source_table.marketing_consent_state,\n \n source_table.marketing_opt_in_level,\n \n source_table.marketing_consent_updated_at,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.default_address_id\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467be_bwrtbnwrj) as metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c4_brewbrewbre) as metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.customer_id\n and lower(lookup_object.owner_resource) in ('customer')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__shop_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__shop_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__shop_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__shop_metafields.sql", "unique_id": "model.shopify.shopify_gql__shop_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__shop_metafields"], "alias": "shopify_gql__shop_metafields", "checksum": {"name": "sha256", "checksum": "e4981591a733469551b3e4de1f177957b0575b0f2a7a2fd1a9c87926c9be0fad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__shop model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4580421, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__shop_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify_gql__shop\", \n reference_values = ['shop'],\n id_column = \"shop_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__shop_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c0_gwrgew'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c0_gwrgew\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.shop_id,\n \n source_table.name,\n \n source_table.is_deleted,\n \n source_table.address_1,\n \n source_table.address_2,\n \n source_table.city,\n \n source_table.province,\n \n source_table.province_code,\n \n source_table.country,\n \n source_table.country_code,\n \n source_table.country_name,\n \n source_table.zip,\n \n source_table.latitude,\n \n source_table.longitude,\n \n source_table.currency,\n \n source_table.enabled_presentment_currencies,\n \n source_table.customer_email,\n \n source_table.email,\n \n source_table.domain,\n \n source_table.phone,\n \n source_table.timezone_abbreviation,\n \n source_table.timezone_offset,\n \n source_table.timezone_offset_minutes,\n \n source_table.iana_timezone,\n \n source_table.primary_locale,\n \n source_table.weight_unit,\n \n source_table.myshopify_domain,\n \n source_table.shop_owner,\n \n source_table.has_shipping_taxes,\n \n source_table.has_taxes_included_in_price,\n \n source_table.has_storefront,\n \n source_table.has_checkout_api_supported,\n \n source_table.money_format,\n \n source_table.money_in_emails_format,\n \n source_table.money_with_currency_format,\n \n source_table.money_with_currency_in_emails_format,\n \n source_table.plan_display_name,\n \n source_table.is_password_enabled,\n \n source_table.is_setup_required,\n \n source_table.created_at,\n \n source_table.updated_at,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c0_gwrgew) as metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.shop_id\n and lower(lookup_object.owner_resource) in ('shop')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__order_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__order_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__order_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__order_metafields.sql", "unique_id": "model.shopify.shopify_gql__order_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__order_metafields"], "alias": "shopify_gql__order_metafields", "checksum": {"name": "sha256", "checksum": "9fac4f22b24cd29d081991b5d98aa549f4e86f07b07d203a5ff11c21b304b7a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__order model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4566, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__order_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__order\", \n reference_values = ['order'],\n id_column = \"order_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}\n\n{# Does not contain total_line_items_price columns as these are calculated in shopify_gql_orders__order_line_aggregates in GraphQL #}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__order_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bf_htynetnbw'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bf_htynetnbw\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.order_id,\n \n source_table.user_id,\n \n source_table.total_discounts_pres_amount,\n \n source_table.total_discounts_pres_currency_code,\n \n source_table.total_discounts_shop_amount,\n \n source_table.total_discounts_shop_currency_code,\n \n source_table.total_price_pres_amount,\n \n source_table.total_price_pres_currency_code,\n \n source_table.total_price_shop_amount,\n \n source_table.total_price_shop_currency_code,\n \n source_table.total_tax_pres_amount,\n \n source_table.total_tax_pres_currency_code,\n \n source_table.total_tax_shop_amount,\n \n source_table.total_tax_shop_currency_code,\n \n source_table.source_name,\n \n source_table.subtotal_price_pres_amount,\n \n source_table.subtotal_price_pres_currency_code,\n \n source_table.subtotal_price_shop_amount,\n \n source_table.subtotal_price_shop_currency_code,\n \n source_table.has_taxes_included,\n \n source_table.total_weight,\n \n source_table.total_tip_received_pres_amount,\n \n source_table.total_tip_received_pres_currency_code,\n \n source_table.total_tip_received_shop_amount,\n \n source_table.total_tip_received_shop_currency_code,\n \n source_table.location_id,\n \n source_table.name,\n \n source_table.note,\n \n source_table.number,\n \n source_table.cancel_reason,\n \n source_table.created_timestamp,\n \n source_table.cancelled_timestamp,\n \n source_table.closed_timestamp,\n \n source_table.processed_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.currency,\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.financial_status,\n \n source_table.fulfillment_status,\n \n source_table.billing_address_address_1,\n \n source_table.billing_address_address_2,\n \n source_table.billing_address_city,\n \n source_table.billing_address_company,\n \n source_table.billing_address_country,\n \n source_table.billing_address_country_code,\n \n source_table.billing_address_first_name,\n \n source_table.billing_address_last_name,\n \n source_table.billing_address_latitude,\n \n source_table.billing_address_longitude,\n \n source_table.billing_address_name,\n \n source_table.billing_address_phone,\n \n source_table.billing_address_province,\n \n source_table.billing_address_province_code,\n \n source_table.billing_address_zip,\n \n source_table.browser_ip,\n \n source_table.shipping_cost_pres_amount,\n \n source_table.shipping_cost_pres_currency_code,\n \n source_table.shipping_cost_shop_amount,\n \n source_table.shipping_cost_shop_currency_code,\n \n source_table.shipping_address_address_1,\n \n source_table.shipping_address_address_2,\n \n source_table.shipping_address_city,\n \n source_table.shipping_address_company,\n \n source_table.shipping_address_country,\n \n source_table.shipping_address_country_code,\n \n source_table.shipping_address_first_name,\n \n source_table.shipping_address_last_name,\n \n source_table.shipping_address_latitude,\n \n source_table.shipping_address_longitude,\n \n source_table.shipping_address_name,\n \n source_table.shipping_address_phone,\n \n source_table.shipping_address_province,\n \n source_table.shipping_address_province_code,\n \n source_table.shipping_address_zip,\n \n source_table.app_id,\n \n source_table.customer_locale,\n \n source_table.order_status_url,\n \n source_table.presentment_currency,\n \n source_table.is_test_order,\n \n source_table.is_deleted,\n \n source_table.has_buyer_accepted_marketing,\n \n source_table.is_confirmed,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.referring_site,\n \n source_table.landing_site_base_url\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bf_htynetnbw) as metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe) as metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.order_id\n and lower(lookup_object.owner_resource) in ('order')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88\n)\n\nselect *\nfrom final\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__product_variant_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__product_variant_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__product_variant_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__product_variant_metafields.sql", "unique_id": "model.shopify.shopify_gql__product_variant_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__product_variant_metafields"], "alias": "shopify_gql__product_variant_metafields", "checksum": {"name": "sha256", "checksum": "78d300b3aa3591fe3640572e9da4b3d8deb530699a6526cbcc9eb6b629ef698b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__product_variant model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4575734, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__product_variant_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__product_variant\",\n reference_values = ['variant', 'productvariant'],\n id_column = \"variant_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__product_variant_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__line_item_enhanced": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__line_item_enhanced", "resource_type": "model", "package_name": "shopify", "path": "graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "original_file_path": "models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "unique_id": "model.shopify.shopify_gql__line_item_enhanced", "fqn": ["shopify", "graphql", "standardized_models", "shopify_gql__line_item_enhanced"], "alias": "shopify_gql__line_item_enhanced", "checksum": {"name": "sha256", "checksum": "397d1387f769ec2a75bd7c041e9c6fd40a46cd420f15904cd27c12ca712fcc84"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It\u2019s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details.", "columns": {"header_id": {"name": "header_id", "description": "Id of corresponding order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_id": {"name": "line_item_id", "description": "Order line item id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_index": {"name": "line_item_index", "description": "Unique index of each line item id for each order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "record_type": {"name": "record_type", "description": "header or line_item", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the order was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "header_status": {"name": "header_status", "description": "Status of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_type": {"name": "billing_type", "description": "NA for Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "Currency used in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "Product ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_name": {"name": "product_name", "description": "Product name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "Product type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_type": {"name": "transaction_type", "description": "Transaction type (Charge, Refund, etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of units of this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_amount": {"name": "unit_amount", "description": "Amount per unit, or the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_amount": {"name": "discount_amount", "description": "The discount amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "The tax amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_amount": {"name": "total_amount", "description": "Order total", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_id": {"name": "payment_id", "description": "Transaction ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Transaction gateway for Shopify ('gift card', 'shopify payments', etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method_id": {"name": "payment_method_id", "description": "Shopify does not have a particular payment_method_id, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_at": {"name": "payment_at", "description": "Transaction processed timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fee_amount": {"name": "fee_amount", "description": "The total shipping fee associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_amount": {"name": "refund_amount", "description": "Refund amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_id": {"name": "subscription_id", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_plan": {"name": "subscription_plan", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_started_at": {"name": "subscription_period_started_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_ended_at": {"name": "subscription_period_ended_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_status": {"name": "subscription_status", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "Customer associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_created_at": {"name": "customer_created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_level": {"name": "customer_level", "description": "Whether 'account' or 'customer'. For Shopify, the level is 'customer'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_name": {"name": "customer_name", "description": "Customer name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_company": {"name": "customer_company", "description": "Associated customer's company noted on the shipping address if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "Customer email", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_city": {"name": "customer_city", "description": "Customer's shipping address city", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_country": {"name": "customer_country", "description": "Customer's shipping address country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/standardized_models/shopify__standardized_models.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.4603796, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__line_item_enhanced\"", "raw_code": "{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith line_items as (\n\n select * \n from {{ var('shopify_gql_order_line')}}\n\n), orders as ( \n\n select * \n from {{ var('shopify_gql_order')}}\n\n), product as (\n\n select *\n from {{ var('shopify_gql_product')}}\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n {{ fivetran_utils.string_agg(\"cast (transaction_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} AS transaction_id,\n {{ fivetran_utils.string_agg(\"cast (processed_timestamp as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as processed_timestamp,\n {{ fivetran_utils.string_agg('gateway', \"', '\") }} as gateway\n\n from {{ var('shopify_gql_transaction')}}\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount_shop) as total_order_refund_amount\n from {{ var('shopify_gql_transaction')}}\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal_shop_amount + total_tax_shop_amount) as total_refund_amount\n from {{ var('shopify_gql_order_line_refund')}}\n group by 1,2\n\n), customer as (\n\n select *\n from {{ var('shopify_gql_customer')}}\n\n), shipping as (\n\n select * \n from {{ ref('int_shopify_gql__order_shipping_aggregates')}}\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price_shop_amount as unit_amount,\n o.total_discounts_shop_amount as discount_amount,\n o.total_tax_shop_amount as tax_amount,\n (li.quantity * li.price_shop_amount) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as {{ dbt.type_string() }}) as subscription_id,\n cast(null as {{ dbt.type_string() }}) as subscription_plan,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at,\n cast(null as {{ dbt.type_string() }}) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n {{ dbt.concat([\"c.first_name\", \"''\", \"c.last_name\"]) }} as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id,\n cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as {{ dbt.type_numeric() }}) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as {{ dbt.type_numeric() }}) as quantity,\n cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,\n cast(null as {{ dbt.type_numeric() }}) as discount_amount,\n cast(null as {{ dbt.type_numeric() }}) as tax_amount,\n cast(total_amount as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as {{ dbt.type_numeric() }}) as fee_amount,\n cast(null as {{ dbt.type_numeric() }}) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as {{ dbt.type_numeric() }}) as line_item_id,\n cast(0 as {{ dbt.type_numeric() }}) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as {{ dbt.type_numeric() }}) as product_id,\n cast(null as {{ dbt.type_string() }}) as product_name,\n transaction_type,\n billing_type,\n cast(null as {{ dbt.type_string() }}) as product_type,\n cast(null as {{ dbt.type_numeric() }}) as quantity,\n cast(null as {{ dbt.type_numeric() }}) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__order_shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.dbt.type_timestamp", "macro.dbt.concat", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__transaction", "model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__customer", "model.shopify.int_shopify_gql__order_shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), line_items as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n\n), orders as ( \n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n \n string_agg(cast (transaction_id as TEXT), ', ')\n\n AS transaction_id,\n \n string_agg(cast (processed_timestamp as TEXT), ', ')\n\n as processed_timestamp,\n \n string_agg(gateway, ', ')\n\n as gateway\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount_shop) as total_order_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal_shop_amount + total_tax_shop_amount) as total_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n group by 1,2\n\n), customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n\n), shipping as (\n\n select * \n from __dbt__cte__int_shopify_gql__order_shipping_aggregates\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price_shop_amount as unit_amount,\n o.total_discounts_shop_amount as discount_amount,\n o.total_tax_shop_amount as tax_amount,\n (li.quantity * li.price_shop_amount) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as TEXT) as subscription_id,\n cast(null as TEXT) as subscription_plan,\n cast(null as timestamp) as subscription_period_started_at,\n cast(null as timestamp) as subscription_period_ended_at,\n cast(null as TEXT) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n c.first_name || '' || c.last_name as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as numeric(28,6)) as line_item_id,\n cast(line_item_index as numeric(28,6)) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as numeric(28,6)) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as numeric(28,6)) as quantity,\n cast(unit_amount as numeric(28,6)) as unit_amount,\n cast(null as numeric(28,6)) as discount_amount,\n cast(null as numeric(28,6)) as tax_amount,\n cast(total_amount as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as numeric(28,6)) as fee_amount,\n cast(null as numeric(28,6)) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as numeric(28,6)) as line_item_id,\n cast(0 as numeric(28,6)) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as numeric(28,6)) as product_id,\n cast(null as TEXT) as product_name,\n transaction_type,\n billing_type,\n cast(null as TEXT) as product_type,\n cast(null as numeric(28,6)) as quantity,\n cast(null as numeric(28,6)) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["header_id", "line_item_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_shipping_line.sql", "original_file_path": "models/rest/stg_shopify__order_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_shipping_line"], "alias": "stg_shopify__order_shipping_line", "checksum": {"name": "sha256", "checksum": "2a53345accb04b023d123b631a1fe94ad8a69fd7e81658e7f9b0c26389f4fa02"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_third_party_required": {"name": "is_third_party_required", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5373313, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_line_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_shopify__order_shipping_line_tmp')),\n staging_columns=get_order_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n discounted_price_set\n \n as \n \n discounted_price_set\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_shipping_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_allocation.sql", "original_file_path": "models/rest/stg_shopify__discount_allocation.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation", "fqn": ["shopify_source", "rest", "stg_shopify__discount_allocation"], "alias": "stg_shopify__discount_allocation", "checksum": {"name": "sha256", "checksum": "834136ae3fedb83876370eb77b57f96fe24028aee02681d1dc2ac6d0d7d3553e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing allocation amounts from discount applications across specific order lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The presentment money currency code for the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The shop money currency code for the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to. Used to join with the discount application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount allocation within the list of allocations on an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5698698, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_allocation_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_shopify__discount_allocation_tmp')),\n staging_columns=get_discount_allocation_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_allocation_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_allocation.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set_presentment_money_amount\n \n as \n \n amount_set_presentment_money_amount\n \n, \n \n \n amount_set_presentment_money_currency_code\n \n as \n \n amount_set_presentment_money_currency_code\n \n, \n \n \n amount_set_shop_money_amount\n \n as \n \n amount_set_shop_money_amount\n \n, \n \n \n amount_set_shop_money_currency_code\n \n as \n \n amount_set_shop_money_currency_code\n \n, \n \n \n discount_application_index\n \n as \n \n discount_application_index\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_application_index", "order_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order.sql", "original_file_path": "models/rest/stg_shopify__order.sql", "unique_id": "model.shopify_source.stg_shopify__order", "fqn": ["shopify_source", "rest", "stg_shopify__order"], "alias": "stg_shopify__order", "checksum": {"name": "sha256", "checksum": "6610716cd337bcefb217f0cf6588b855c6ecf4045a690e229a1c57b19b48241e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.4904065, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__order_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_order_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n {{ shopify_source.json_to_string(\"total_discounts_set\", source_columns_in_relation) }} as total_discounts_set,\n total_line_items_price,\n {{ shopify_source.json_to_string(\"total_line_items_price_set\", source_columns_in_relation) }} as total_line_items_price_set,\n total_price,\n {{ shopify_source.json_to_string(\"total_price_set\", source_columns_in_relation) }} as total_price_set,\n {{ shopify_source.json_to_string(\"total_tax_set\", source_columns_in_relation) }} as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(cancelled_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as cancelled_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n {{ shopify_source.json_to_string(\"total_shipping_price_set\", source_columns_in_relation) }} as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n cast(null as TEXT) as \n \n total_discounts_set\n \n , \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n cast(null as TEXT) as \n \n total_line_items_price_set\n \n , \n \n \n total_price\n \n as \n \n total_price\n \n, \n cast(null as TEXT) as \n \n total_price_set\n \n , \n cast(null as TEXT) as \n \n total_tax_set\n \n , \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n cast(null as float) as \n \n total_tip_received\n \n , \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n order_number\n \n as \n \n order_number\n \n, \n \n \n cancel_reason\n \n as \n \n cancel_reason\n \n, \n \n \n cancelled_at\n \n as \n \n cancelled_at\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n checkout_token\n \n as \n \n checkout_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n financial_status\n \n as \n \n financial_status\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n browser_ip\n \n as \n \n browser_ip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n cast(null as TEXT) as \n \n total_shipping_price_set\n \n , \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as integer) as \n \n app_id\n \n , \n cast(null as integer) as \n \n checkout_id\n \n , \n cast(null as TEXT) as \n \n client_details_user_agent\n \n , \n cast(null as TEXT) as \n \n customer_locale\n \n , \n cast(null as TEXT) as \n \n order_status_url\n \n , \n cast(null as TEXT) as \n \n presentment_currency\n \n , \n cast(null as boolean) as \n \n confirmed\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n total_discounts_set as total_discounts_set,\n total_line_items_price,\n total_line_items_price_set as total_line_items_price_set,\n total_price,\n total_price_set as total_price_set,\n total_tax_set as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(cancelled_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as cancelled_timestamp,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n total_shipping_price_set as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__transaction.sql", "original_file_path": "models/rest/stg_shopify__transaction.sql", "unique_id": "model.shopify_source.stg_shopify__transaction", "fqn": ["shopify_source", "rest", "stg_shopify__transaction"], "alias": "stg_shopify__transaction", "checksum": {"name": "sha256", "checksum": "d1c4d552029ac5491af20f77ec0fd7a2a98236f3c25c2dc1e6a613a4dbbb10ad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5008023, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__transaction_tmp')) %}\n\nwith base as (\n\n select * from {{ ref('stg_shopify__transaction_tmp') }}\n\n),\n\nfields as (\n\n select\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n {{ shopify_source.json_to_string(\"receipt\", source_columns_in_relation) }} as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(authorization_expires_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as authorization_expires_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('transaction_pass_through_columns') }}\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__transaction.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * from \"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"\n\n),\n\nfields as (\n\n select\n\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\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 processed_at\n \n as \n \n processed_at\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n payment_avs_result_code\n \n as \n \n payment_avs_result_code\n \n, \n \n \n payment_credit_card_bin\n \n as \n \n payment_credit_card_bin\n \n, \n \n \n payment_cvv_result_code\n \n as \n \n payment_cvv_result_code\n \n, \n \n \n payment_credit_card_number\n \n as \n \n payment_credit_card_number\n \n, \n \n \n payment_credit_card_company\n \n as \n \n payment_credit_card_company\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n receipt\n \n as \n \n receipt\n \n, \n \n \n currency_exchange_id\n \n as \n \n currency_exchange_id\n \n, \n \n \n currency_exchange_adjustment\n \n as \n \n currency_exchange_adjustment\n \n, \n \n \n currency_exchange_original_amount\n \n as \n \n currency_exchange_original_amount\n \n, \n \n \n currency_exchange_final_amount\n \n as \n \n currency_exchange_final_amount\n \n, \n \n \n currency_exchange_currency\n \n as \n \n currency_exchange_currency\n \n, \n \n \n error_code\n \n as \n \n error_code\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as timestamp) as \n \n authorization_expires_at\n \n , \n \n \n \n \n \"authorization\"\n \n \n \n as authorization_code \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n receipt as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(authorization_expires_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as authorization_expires_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["source_relation", "transaction_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_basic.sql", "original_file_path": "models/rest/stg_shopify__discount_code_basic.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_basic"], "alias": "stg_shopify__discount_code_basic", "checksum": {"name": "sha256", "checksum": "36e6431d35cf4791624e49bc76a0f3124e087452e777031fcfb250818ba0b9b5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata about basic discount codes created by merchants.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5746932, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_basic_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_shopify__discount_code_basic_tmp')),\n staging_columns=get_discount_code_basic_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_basic_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_basic.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as TEXT) as \n \n title\n \n , \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__fulfillment.sql", "original_file_path": "models/rest/stg_shopify__fulfillment.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment", "fqn": ["shopify_source", "rest", "stg_shopify__fulfillment"], "alias": "stg_shopify__fulfillment", "checksum": {"name": "sha256", "checksum": "ca3697aa2d2acc4e0714a2689336a063495e3bc64cc9515944e36f7ee55f1810"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5188942, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_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_shopify__fulfillment_tmp')),\n staging_columns=get_fulfillment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n shipment_status\n \n as \n \n shipment_status\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n tracking_company\n \n as \n \n tracking_company\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n tracking_numbers\n \n as \n \n tracking_numbers\n \n, \n \n \n tracking_urls\n \n as \n \n tracking_urls\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["fulfillment_id"], "time_spine": null}, "model.shopify_source.stg_shopify__metafield": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__metafield.sql", "original_file_path": "models/rest/stg_shopify__metafield.sql", "unique_id": "model.shopify_source.stg_shopify__metafield", "fqn": ["shopify_source", "rest", "stg_shopify__metafield"], "alias": "stg_shopify__metafield", "checksum": {"name": "sha256", "checksum": "e7e2a824bf892f5c1d89602d012a6ccdce8e45362840db93f341c741eb754596"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_id": {"name": "metafield_id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource_id": {"name": "owner_resource_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Coalescing of type and value_type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_reference": {"name": "metafield_reference", "description": "Combination of the namespace and key columns. This field is key for metafield mapping in downstream models.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating the most up to date record identified by the most recent updated_at field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754507519.532854, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield\"", "raw_code": "{{ config(enabled=(var('shopify_using_metafield', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__metafield_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_shopify__metafield_tmp')),\n staging_columns=get_metafield_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n lower({{ dbt.concat([\"namespace\",\"'_'\",\"key\"]) }}) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield_tmp", "package": null, "version": null}, {"name": "stg_shopify__metafield_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_metafield_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt.concat"], "nodes": ["model.shopify_source.stg_shopify__metafield_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__metafield.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n 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 id\n \n as \n \n id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n namespace\n \n as \n \n namespace\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n owner_resource\n \n as \n \n owner_resource\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n lower(namespace || '_' || key) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["metafield_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_bxgy.sql", "original_file_path": "models/rest/stg_shopify__discount_code_bxgy.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_bxgy"], "alias": "stg_shopify__discount_code_bxgy", "checksum": {"name": "sha256", "checksum": "b47ced0eb2ea79958678c2ed4453bb46573b8b484f255c2e709af7ebe51453b8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for Buy X Get Y-style discount codes in Shopify, where discounts are applied based on product quantity thresholds.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5762315, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_bxgy_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_shopify__discount_code_bxgy_tmp')),\n staging_columns=get_discount_code_bxgy_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_bxgy_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_bxgy.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n cast(null as integer) as \n \n recurring_cycle_limit\n \n , \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__tender_transaction.sql", "original_file_path": "models/rest/stg_shopify__tender_transaction.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction", "fqn": ["shopify_source", "rest", "stg_shopify__tender_transaction"], "alias": "stg_shopify__tender_transaction", "checksum": {"name": "sha256", "checksum": "d4d8a6ff82d57efdf1f1814199d70d44444154dc08519b85aad3258b7fadeaa6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5569327, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__tender_transaction_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_shopify__tender_transaction_tmp')),\n staging_columns=get_tender_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tender_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__tender_transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n payment_method\n \n as \n \n payment_method\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n remote_reference\n \n as \n \n remote_reference\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["transaction_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_shipping_tax_line.sql", "original_file_path": "models/rest/stg_shopify__order_shipping_tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_shipping_tax_line"], "alias": "stg_shopify__order_shipping_tax_line", "checksum": {"name": "sha256", "checksum": "26fc98d9b37f25a22d931bc0786714888c2e7809a61b9e2cdd84c6c02c1deee4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this record is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5387824, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_tax_line_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_shopify__order_shipping_tax_line_tmp')),\n staging_columns=get_order_shipping_tax_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_shipping_tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_shipping_line_id\n \n as \n \n order_shipping_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_shipping_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__shop": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__shop.sql", "original_file_path": "models/rest/stg_shopify__shop.sql", "unique_id": "model.shopify_source.stg_shopify__shop", "fqn": ["shopify_source", "rest", "stg_shopify__shop"], "alias": "stg_shopify__shop", "checksum": {"name": "sha256", "checksum": "5530f9eaba5fde4a59b8556a0f242759bc63e380c45442ae1d5bc2a95225c3af"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_checkout_api_supported": {"name": "has_checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_county_taxes": {"name": "has_county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_card_reader_giveaway": {"name": "is_eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_payments": {"name": "is_eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_google_apps_login_enabled": {"name": "is_google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_password_enabled": {"name": "is_password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_pre_launch_enabled": {"name": "is_pre_launch_enabled", "description": "Boolean representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_extra_payments_agreement_required": {"name": "is_extra_payments_agreement_required", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_setup_required": {"name": "is_setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_shipping_taxes": {"name": "has_shipping_taxes", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included_in_price": {"name": "has_taxes_included_in_price", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5554335, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__shop_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__shop_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_shop_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n {{ shopify_source.json_to_string(\"enabled_presentment_currencies\", source_columns_in_relation) }} as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop_tmp", "package": null, "version": null}, {"name": "stg_shopify__shop_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_shop_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__shop_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__shop.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\n \n, \n \n \n checkout_api_supported\n \n as \n \n checkout_api_supported\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n cookie_consent_level\n \n as \n \n cookie_consent_level\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n county_taxes\n \n as \n \n county_taxes\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_email\n \n as \n \n customer_email\n \n, \n \n \n domain\n \n as \n \n domain\n \n, \n \n \n eligible_for_card_reader_giveaway\n \n as \n \n eligible_for_card_reader_giveaway\n \n, \n \n \n eligible_for_payments\n \n as \n \n eligible_for_payments\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n enabled_presentment_currencies\n \n as \n \n enabled_presentment_currencies\n \n, \n \n \n google_apps_domain\n \n as \n \n google_apps_domain\n \n, \n \n \n google_apps_login_enabled\n \n as \n \n google_apps_login_enabled\n \n, \n \n \n has_discounts\n \n as \n \n has_discounts\n \n, \n \n \n has_gift_cards\n \n as \n \n has_gift_cards\n \n, \n \n \n has_storefront\n \n as \n \n has_storefront\n \n, \n \n \n iana_timezone\n \n as \n \n iana_timezone\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 longitude\n \n as \n \n longitude\n \n, \n \n \n money_format\n \n as \n \n money_format\n \n, \n \n \n money_in_emails_format\n \n as \n \n money_in_emails_format\n \n, \n \n \n money_with_currency_format\n \n as \n \n money_with_currency_format\n \n, \n \n \n money_with_currency_in_emails_format\n \n as \n \n money_with_currency_in_emails_format\n \n, \n \n \n myshopify_domain\n \n as \n \n myshopify_domain\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n password_enabled\n \n as \n \n password_enabled\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n plan_display_name\n \n as \n \n plan_display_name\n \n, \n \n \n plan_name\n \n as \n \n plan_name\n \n, \n \n \n pre_launch_enabled\n \n as \n \n pre_launch_enabled\n \n, \n \n \n primary_locale\n \n as \n \n primary_locale\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n requires_extra_payments_agreement\n \n as \n \n requires_extra_payments_agreement\n \n, \n \n \n setup_required\n \n as \n \n setup_required\n \n, \n \n \n shop_owner\n \n as \n \n shop_owner\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n tax_shipping\n \n as \n \n tax_shipping\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n enabled_presentment_currencies as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["shop_id"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_level.sql", "original_file_path": "models/rest/stg_shopify__inventory_level.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_level"], "alias": "stg_shopify__inventory_level", "checksum": {"name": "sha256", "checksum": "79a7a96d7bd30b27bd745353030e4bd5a8f5bfa29cdc816e938a7b323d0a1d01"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available_quantity": {"name": "available_quantity", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.521515, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_level_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_shopify__inventory_level_tmp')),\n staging_columns=get_inventory_level_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_level_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_level_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_level.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n can_deactivate\n \n as \n \n can_deactivate\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deactivation_alert\n \n as \n \n deactivation_alert\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as integer) as \n \n available\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "inventory_level_id", "location_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_redeem_code.sql", "original_file_path": "models/rest/stg_shopify__discount_redeem_code.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code", "fqn": ["shopify_source", "rest", "stg_shopify__discount_redeem_code"], "alias": "stg_shopify__discount_redeem_code", "checksum": {"name": "sha256", "checksum": "999024fc5a37f651b415e8f306756d8c0a6c78043c125950dd1cb95377237b6d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each redeem code is tied to a parent discount and may be created by an app or manually.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This is updated asynchronously and may differ from real-time usage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (typically an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount the redeem code is associated with (e.g., `discount_code_basic`, `discount_code_app`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5802379, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_redeem_code_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_shopify__discount_redeem_code_tmp')),\n staging_columns=get_discount_redeem_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_redeem_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_redeem_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_by_description\n \n as \n \n created_by_description\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_by_title\n \n as \n \n created_by_title\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n discount_type\n \n as \n \n discount_type\n \n, \n \n \n id\n \n as \n \n id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__customer": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__customer.sql", "original_file_path": "models/rest/stg_shopify__customer.sql", "unique_id": "model.shopify_source.stg_shopify__customer", "fqn": ["shopify_source", "rest", "stg_shopify__customer"], "alias": "stg_shopify__customer", "checksum": {"name": "sha256", "checksum": "2493d71ed3533a8938368c51239486949c4a399cd4005d846f8008eb82b945e6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.4820132, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__customer_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n {{ shopify_source.fivetran_convert_timezone(column='cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as marketing_consent_updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n {{ fivetran_utils.fill_pass_through_columns('customer_pass_through_columns') }}\n\n from fields\n \n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__customer_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__customer.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accepts_marketing\n \n as \n \n accepts_marketing\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n default_address_id\n \n as \n \n default_address_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n orders_count\n \n as \n \n orders_count\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n tax_exempt\n \n as \n \n tax_exempt\n \n, \n \n \n total_spent\n \n as \n \n total_spent\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n verified_email\n \n as \n \n verified_email\n \n, \n cast(null as timestamp) as \n \n email_marketing_consent_consent_updated_at\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_opt_in_level\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_state\n \n , \n cast(null as TEXT) as \n \n note\n \n , \n cast(null as timestamp) as \n \n accepts_marketing_updated_at\n \n , \n cast(null as TEXT) as \n \n marketing_opt_in_level\n \n , \n cast(null as TEXT) as \n \n currency\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n cast(\n cast(cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as marketing_consent_updated_at,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n \n\n\n\n\n\n from fields\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_item.sql", "original_file_path": "models/rest/stg_shopify__inventory_item.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_item"], "alias": "stg_shopify__inventory_item", "checksum": {"name": "sha256", "checksum": "853a6e06a16707a06826f7d445f609b75da97e7990fdb4386fb2bf47b5cd088b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item. Coalesced with the deprecated `cost` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5204513, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_item_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_shopify__inventory_item_tmp')),\n staging_columns=get_inventory_item_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country_code_of_origin\n \n as \n \n country_code_of_origin\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n province_code_of_origin\n \n as \n \n province_code_of_origin\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tracked\n \n as \n \n tracked\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n duplicate_sku_count\n \n as \n \n duplicate_sku_count\n \n, \n \n \n harmonized_system_code\n \n as \n \n harmonized_system_code\n \n, \n \n \n inventory_history_url\n \n as \n \n inventory_history_url\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n measurement_id\n \n as \n \n measurement_id\n \n, \n \n \n measurement_weight_value\n \n as \n \n measurement_weight_value\n \n, \n \n \n measurement_weight_unit\n \n as \n \n measurement_weight_unit\n \n, \n \n \n tracked_editable_locked\n \n as \n \n tracked_editable_locked\n \n, \n \n \n tracked_editable_reason\n \n as \n \n tracked_editable_reason\n \n, \n \n \n unit_cost_amount\n \n as \n \n unit_cost_amount\n \n, \n \n \n unit_cost_currency_code\n \n as \n \n unit_cost_currency_code\n \n, \n cast(null as float) as \n \n cost\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id"], "time_spine": null}, "model.shopify_source.stg_shopify__collection": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__collection.sql", "original_file_path": "models/rest/stg_shopify__collection.sql", "unique_id": "model.shopify_source.stg_shopify__collection", "fqn": ["shopify_source", "rest", "stg_shopify__collection"], "alias": "stg_shopify__collection", "checksum": {"name": "sha256", "checksum": "b14f356bbf20e962744b82a4ba45e57c6b82e6a988d3cfe60ce1cdf23b849904"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "rule_logic": {"name": "rule_logic", "description": "Whether the `rules` are disjunctive (logical `OR`) or conjunctive (logical `AND`)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparative relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values incline - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.514665, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__collection_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__collection_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_collection_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n {{ shopify_source.json_to_string(\"rules\", source_columns_in_relation) }} as rules,\n sort_order,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__collection.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n disjunctive\n \n as \n \n disjunctive\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\n \n, \n \n \n rules\n \n as \n \n rules\n \n, \n \n \n sort_order\n \n as \n \n sort_order\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\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n rules as rules,\n sort_order,\n title,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["collection_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_adjustment.sql", "original_file_path": "models/rest/stg_shopify__order_adjustment.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment", "fqn": ["shopify_source", "rest", "stg_shopify__order_adjustment"], "alias": "stg_shopify__order_adjustment", "checksum": {"name": "sha256", "checksum": "c4ddb2ba573ce5e01cef92e306dabe987669b60eaee828727876182dec8d4537"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"order_adjustment_id": {"name": "order_adjustment_id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in the shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5052226, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_adjustment_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_adjustment_tmp')),\n staging_columns=get_order_adjustment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_adjustment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_adjustment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_adjustment.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set\n \n as \n \n amount_set\n \n, \n \n \n tax_amount\n \n as \n \n tax_amount\n \n, \n \n \n tax_amount_set\n \n as \n \n tax_amount_set\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_adjustment_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__media.sql", "original_file_path": "models/rest/stg_shopify__media.sql", "unique_id": "model.shopify_source.stg_shopify__media", "fqn": ["shopify_source", "rest", "stg_shopify__media"], "alias": "stg_shopify__media", "checksum": {"name": "sha256", "checksum": "fbddf6477f3a1498b88f3a0699a65e4395a7631bb615234a6338242df8580429"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing media metadata, including status and timestamps.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5268443, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_tmp')),\n staging_columns=get_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_application.sql", "original_file_path": "models/rest/stg_shopify__discount_application.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application", "fqn": ["shopify_source", "rest", "stg_shopify__discount_application"], "alias": "stg_shopify__discount_application", "checksum": {"name": "sha256", "checksum": "eb9d6cd583dcf8522153a756ebd4b6179a68ebce8da489c17bee9b294d173ba8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing discount applications, which define how discounts were applied at the order level.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code associated with the application, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to all line items (`all`) or only those that are specifically entitled (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name or title of the discount as defined in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The value of the discount. If `value_type` is `percentage`, this represents a percentage. If `fixed_amount`, this is a fixed currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount value is a `percentage` or `fixed_amount`. If `target_type` is `shipping_line`, only `percentage` is accepted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5711503, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_application_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_shopify__discount_application_tmp')),\n staging_columns=get_discount_application_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_application_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_application_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_application.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocation_method\n \n as \n \n allocation_method\n \n, \n \n \n code\n \n as \n \n code\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 order_id\n \n as \n \n order_id\n \n, \n \n \n target_selection\n \n as \n \n target_selection\n \n, \n \n \n target_type\n \n as \n \n target_type\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value\n \n as \n \n value\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_quantity.sql", "original_file_path": "models/rest/stg_shopify__inventory_quantity.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_quantity"], "alias": "stg_shopify__inventory_quantity", "checksum": {"name": "sha256", "checksum": "ceec14a24511cf768af52d91c6ee0c193dc4871c832b3a4136ed4ed7497f98dc"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The total quantity of the inventory item available at all locations.", "columns": {"inventory_quantity_id": {"name": "inventory_quantity_id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_state_name": {"name": "inventory_state_name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5231335, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_quantity_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_shopify__inventory_quantity_tmp')),\n staging_columns=get_inventory_quantity_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_quantity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_quantity.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_level_id\n \n as \n \n inventory_level_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "inventory_level_id", "inventory_quantity_id", "inventory_state_name", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_tag.sql", "original_file_path": "models/rest/stg_shopify__product_tag.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag", "fqn": ["shopify_source", "rest", "stg_shopify__product_tag"], "alias": "stg_shopify__product_tag", "checksum": {"name": "sha256", "checksum": "30ae521143e47b36580f3e0c4bc03bf3a2b2d39e2f219078194419fd2ef0ba08"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5435622, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_tag_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_shopify__product_tag_tmp')),\n staging_columns=get_product_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__product_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_variant.sql", "original_file_path": "models/rest/stg_shopify__product_variant.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant", "fqn": ["shopify_source", "rest", "stg_shopify__product_variant"], "alias": "stg_shopify__product_variant", "checksum": {"name": "sha256", "checksum": "8a25c78869bc4281ee618d06cc2a9154294d3a4d475d473f133a59ea72532f1a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_available_for_sale": {"name": "is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_components_required": {"name": "has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.4984171, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_tmp')),\n staging_columns=get_product_variant_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_variant_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_variant_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\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 updated_at\n \n as \n \n updated_at\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n position\n \n as \n \n position\n \n, \n \n \n inventory_policy\n \n as \n \n inventory_policy\n \n, \n \n \n compare_at_price\n \n as \n \n compare_at_price\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n barcode\n \n as \n \n barcode\n \n, \n cast(null as numeric(28,6)) as \n \n old_inventory_quantity\n \n , \n \n \n inventory_quantity\n \n as \n \n inventory_quantity\n \n, \n \n \n tax_code\n \n as \n \n tax_code\n \n, \n \n \n available_for_sale\n \n as \n \n available_for_sale\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n requires_components\n \n as \n \n requires_components\n \n, \n \n \n sellable_online_quantity\n \n as \n \n sellable_online_quantity\n \n, \n cast(null as TEXT) as \n \n fulfillment_service\n \n , \n cast(null as float) as \n \n grams\n \n , \n cast(null as TEXT) as \n \n inventory_management\n \n , \n cast(null as float) as \n \n weight\n \n , \n cast(null as TEXT) as \n \n weight_unit\n \n , \n cast(null as TEXT) as \n \n option_1\n \n , \n cast(null as TEXT) as \n \n option_2\n \n , \n cast(null as TEXT) as \n \n option_3\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["source_relation", "variant_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_discount_code.sql", "original_file_path": "models/rest/stg_shopify__order_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code", "fqn": ["shopify_source", "rest", "stg_shopify__order_discount_code"], "alias": "stg_shopify__order_discount_code", "checksum": {"name": "sha256", "checksum": "e8738ee571f2712e359118c5799400f39259f8aef959df3c6df84aa83d819b71"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5594094, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_discount_code_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_shopify__order_discount_code_tmp')),\n staging_columns=get_order_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__media_image": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__media_image.sql", "original_file_path": "models/rest/stg_shopify__media_image.sql", "unique_id": "model.shopify_source.stg_shopify__media_image", "fqn": ["shopify_source", "rest", "stg_shopify__media_image"], "alias": "stg_shopify__media_image", "checksum": {"name": "sha256", "checksum": "3a6ae116ff7a7f495476ef47c6bd942d29fe17f4e5a683e88323c3e05877e556"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "Specifies the location of the product image, hashed for privacy. Coalesced with the deprecated `src` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5293555, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__media_image_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_image_tmp')),\n staging_columns=get_media_image_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_image_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_image_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__media_image_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__media_image.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_line.sql", "original_file_path": "models/rest/stg_shopify__order_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_line"], "alias": "stg_shopify__order_line", "checksum": {"name": "sha256", "checksum": "36ea0a90f4476fd400178aa8b6a37b2d30c8bc5325f7ff8dc0670ecd740f5def"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.4863024, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_line_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_tmp')),\n staging_columns=get_order_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_pass_through_columns') }}\n\n from fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fulfillable_quantity\n \n as \n \n fulfillable_quantity\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n gift_card\n \n as \n \n gift_card\n \n, \n \n \n grams\n \n as \n \n grams\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n pre_tax_price\n \n as \n \n pre_tax_price\n \n, \n cast(null as TEXT) as \n \n pre_tax_price_set\n \n , \n \n \n price\n \n as \n \n price\n \n, \n cast(null as TEXT) as \n \n price_set\n \n , \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n cast(null as TEXT) as \n \n tax_code\n \n , \n \n \n title\n \n as \n \n title\n \n, \n \n \n total_discount\n \n as \n \n total_discount\n \n, \n cast(null as TEXT) as \n \n total_discount_set\n \n , \n \n \n variant_id\n \n as \n \n variant_id\n \n, \n cast(null as TEXT) as \n \n variant_title\n \n , \n cast(null as TEXT) as \n \n variant_inventory_management\n \n , \n \n \n vendor\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n properties\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_line_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_free_shipping.sql", "original_file_path": "models/rest/stg_shopify__discount_code_free_shipping.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_free_shipping"], "alias": "stg_shopify__discount_code_free_shipping", "checksum": {"name": "sha256", "checksum": "6cfeea54c8a7056fa680b926c2ae6ceeb594bf4e1a9857799b875bae0d73fc53"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for free shipping discount codes in Shopify, where shipping costs are discounted based on qualifying conditions.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5777774, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_free_shipping_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_shopify__discount_code_free_shipping_tmp')),\n staging_columns=get_discount_code_free_shipping_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_free_shipping_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_free_shipping.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__fulfillment_event.sql", "original_file_path": "models/rest/stg_shopify__fulfillment_event.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event", "fqn": ["shopify_source", "rest", "stg_shopify__fulfillment_event"], "alias": "stg_shopify__fulfillment_event", "checksum": {"name": "sha256", "checksum": "2aa34203a0c3980df4a385721479ddf040698998be9432e7334d403a7e525e56"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_event_id": {"name": "fulfillment_event_id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5661535, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"", "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_event_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_shopify__fulfillment_event_tmp')),\n staging_columns=get_fulfillment_event_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n {{ shopify_source.fivetran_convert_timezone(column='cast(estimated_delivery_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as estimated_delivery_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(happened_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__fulfillment_event.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\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 created_at\n \n as \n \n created_at\n \n, \n \n \n estimated_delivery_at\n \n as \n \n estimated_delivery_at\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n happened_at\n \n as \n \n happened_at\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 longitude\n \n as \n \n longitude\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n shop_id\n \n as \n \n shop_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n cast(\n cast(cast(estimated_delivery_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as estimated_delivery_at,\n cast(\n cast(cast(happened_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["fulfillment_event_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_note_attribute.sql", "original_file_path": "models/rest/stg_shopify__order_note_attribute.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute", "fqn": ["shopify_source", "rest", "stg_shopify__order_note_attribute"], "alias": "stg_shopify__order_note_attribute", "checksum": {"name": "sha256", "checksum": "e2c49df60461bef5bfebae6311cc92fa0bef64467a5d22e5dcf31d0d18b31250"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5337543, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_note_attribute_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_shopify__order_note_attribute_tmp')),\n staging_columns=get_order_note_attribute_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_note_attribute_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_note_attribute.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["name", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_line_refund.sql", "original_file_path": "models/rest/stg_shopify__order_line_refund.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund", "fqn": ["shopify_source", "rest", "stg_shopify__order_line_refund"], "alias": "stg_shopify__order_line_refund", "checksum": {"name": "sha256", "checksum": "aa4df0e851d252ad4d9a27a7c0f36bcc0577026ab1e9b016b645a6250dd9d0c6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_line_refund_id": {"name": "order_line_refund_id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.4845302, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_line_refund_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_refund_tmp')),\n staging_columns=get_order_line_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_refund_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_line_refund.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n subtotal\n \n as \n \n subtotal\n \n, \n \n \n subtotal_set\n \n as \n \n subtotal_set\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_tax_set\n \n as \n \n total_tax_set\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n restock_type\n \n as \n \n restock_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_line_refund_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__refund.sql", "original_file_path": "models/rest/stg_shopify__refund.sql", "unique_id": "model.shopify_source.stg_shopify__refund", "fqn": ["shopify_source", "rest", "stg_shopify__refund"], "alias": "stg_shopify__refund", "checksum": {"name": "sha256", "checksum": "bda33a385dc2880adba5bbe2cf033de9509cc5389c76ef11e2c4923f757ef0b8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a refund within Shopify.", "columns": {"refund_id": {"name": "refund_id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5028057, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__refund_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__refund_tmp')),\n staging_columns=get_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__refund.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n restock\n \n as \n \n restock\n \n, \n \n \n total_duties_set\n \n as \n \n total_duties_set\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["refund_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__customer_tag.sql", "original_file_path": "models/rest/stg_shopify__customer_tag.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag", "fqn": ["shopify_source", "rest", "stg_shopify__customer_tag"], "alias": "stg_shopify__customer_tag", "checksum": {"name": "sha256", "checksum": "7ddbfed95b8851221f0fcec884872362a389f01cf7a6e0fdfcf21fae5de68c35"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5155892, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__customer_tag_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_shopify__customer_tag_tmp')),\n staging_columns=get_customer_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__customer_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__customer_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "index"], "time_spine": null}, "model.shopify_source.stg_shopify__product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product.sql", "original_file_path": "models/rest/stg_shopify__product.sql", "unique_id": "model.shopify_source.stg_shopify__product", "fqn": ["shopify_source", "rest", "stg_shopify__product"], "alias": "stg_shopify__product", "checksum": {"name": "sha256", "checksum": "6a92711673f429c4465f05d51488c01ce9e270cbd8df0434bcbeac8809f3d370"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.4915917, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_tmp')),\n staging_columns=get_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_pass_through_columns') }}\n\nfrom fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"\n\n),\n\nfields as (\n\n select\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 handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\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\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n status\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\nfrom fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_tag.sql", "original_file_path": "models/rest/stg_shopify__order_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag", "fqn": ["shopify_source", "rest", "stg_shopify__order_tag"], "alias": "stg_shopify__order_tag", "checksum": {"name": "sha256", "checksum": "e4d40846975eafeecc76f411ee433af97b1ffe1a24fd2d27a11b6a0b17f8096f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.539686, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_tag_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_shopify__order_tag_tmp')),\n staging_columns=get_order_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__location": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__location.sql", "original_file_path": "models/rest/stg_shopify__location.sql", "unique_id": "model.shopify_source.stg_shopify__location", "fqn": ["shopify_source", "rest", "stg_shopify__location"], "alias": "stg_shopify__location", "checksum": {"name": "sha256", "checksum": "9c5af83aa1e6cb6cae684e11bc8c6a6aea6e040e08b32e7e0ce556e6a657df69"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy": {"name": "is_legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5259883, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__location_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_shopify__location_tmp')),\n staging_columns=get_location_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location_tmp", "package": null, "version": null}, {"name": "stg_shopify__location_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_location_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__location_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__location.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\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_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n legacy\n \n as \n \n legacy\n \n, \n \n \n localized_country_name\n \n as \n \n localized_country_name\n \n, \n \n \n localized_province_name\n \n as \n \n localized_province_name\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["location_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_url_tag.sql", "original_file_path": "models/rest/stg_shopify__order_url_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag", "fqn": ["shopify_source", "rest", "stg_shopify__order_url_tag"], "alias": "stg_shopify__order_url_tag", "checksum": {"name": "sha256", "checksum": "c20d1f6f0095e9d95f7694143ef693d91dc3438b40d254a451662414c1aa9699"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.540586, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_url_tag_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_shopify__order_url_tag_tmp')),\n staging_columns=get_order_url_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_url_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_url_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["key", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_media.sql", "original_file_path": "models/rest/stg_shopify__product_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_media", "fqn": ["shopify_source", "rest", "stg_shopify__product_media"], "alias": "stg_shopify__product_media", "checksum": {"name": "sha256", "checksum": "e866179624b96dced4df610afe1303d19b741bd9fba169f6c706a897330f9556"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5414202, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_media_tmp')),\n staging_columns=get_product_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_variant_media.sql", "original_file_path": "models/rest/stg_shopify__product_variant_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media", "fqn": ["shopify_source", "rest", "stg_shopify__product_variant_media"], "alias": "stg_shopify__product_variant_media", "checksum": {"name": "sha256", "checksum": "2a19d359137d9e352d5ab42327cf191199d918cef118124f2aee0272c513bb70"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5425448, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"", "raw_code": "{{ config(enabled=(var('shopify_using_product_variant_media', False) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_media_tmp')),\n staging_columns=get_product_variant_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_variant_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id", "product_variant_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout"], "alias": "stg_shopify__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "f8f4974bab648fcae4b0a95ec02701aad1981cc01d748404977a3bfac64de65a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_currency": {"name": "shop_currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.510856, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_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_shopify__abandoned_checkout_tmp')),\n staging_columns=get_abandoned_checkout_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n abandoned_checkout_url\n \n as \n \n abandoned_checkout_url\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n cast(null as TEXT) as \n \n billing_address_address_2\n \n , \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_locale\n \n as \n \n customer_locale\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n presentment_currency\n \n as \n \n presentment_currency\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n cast(null as TEXT) as \n \n shipping_address_address_2\n \n , \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n \n \n total_duties\n \n as \n \n total_duties\n \n, \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n \n \n total_price\n \n as \n \n total_price\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n user_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_app.sql", "original_file_path": "models/rest/stg_shopify__discount_code_app.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_app"], "alias": "stg_shopify__discount_code_app", "checksum": {"name": "sha256", "checksum": "3ff36db72d417bd6de0b40cba77865f1fcb5f0e5f3b6dc9fff266db6324a3b13"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for discount codes created through third-party apps in Shopify.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5731325, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"", "raw_code": "{{ config(enabled=(var('shopify_using_discount_code_app', False) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_app_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_shopify__discount_code_app_tmp')),\n staging_columns=get_discount_code_app_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_app_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_app.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count_count\n \n as \n \n codes_count_count\n \n, \n \n \n codes_count_precision\n \n as \n \n codes_count_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout_discount_code.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout_discount_code"], "alias": "stg_shopify__abandoned_checkout_discount_code", "checksum": {"name": "sha256", "checksum": "4f79565f0c0b60aaa4b9e6d55bb3d8e69dbc5e52a2bc952224ec9fc2777d5a08"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the discount codes from abandoned checkouts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5584023, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_discount_code_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_shopify__abandoned_checkout_discount_code_tmp')),\n staging_columns=get_abandoned_checkout_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n type\n \n as \n \n type\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 TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout_shipping_line.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout_shipping_line"], "alias": "stg_shopify__abandoned_checkout_shipping_line", "checksum": {"name": "sha256", "checksum": "fbf2d9940115326795a88f5c018c2e369638ef804e59a09602f65814824ba483"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_code": {"name": "shipping_code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "abandoned_checkout_shipping_line_id": {"name": "abandoned_checkout_shipping_line_id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5636241, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_shipping_line_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_shopify__abandoned_checkout_shipping_line_tmp')),\n staging_columns=get_abandoned_checkout_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n delivery_expectation_range\n \n as \n \n delivery_expectation_range\n \n, \n \n \n delivery_expectation_range_max\n \n as \n \n delivery_expectation_range_max\n \n, \n \n \n delivery_expectation_range_min\n \n as \n \n delivery_expectation_range_min\n \n, \n \n \n delivery_expectation_type\n \n as \n \n delivery_expectation_type\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id", "index", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__tax_line.sql", "original_file_path": "models/rest/stg_shopify__tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line", "fqn": ["shopify_source", "rest", "stg_shopify__tax_line"], "alias": "stg_shopify__tax_line", "checksum": {"name": "sha256", "checksum": "d69e6962393ead5e08c53a74bb2310b91352db44f50335ebb42e923f996baba5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5670238, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__tax_line_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_shopify__tax_line_tmp')),\n staging_columns=get_tax_line_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_line_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__collection_product.sql", "original_file_path": "models/rest/stg_shopify__collection_product.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product", "fqn": ["shopify_source", "rest", "stg_shopify__collection_product"], "alias": "stg_shopify__collection_product", "checksum": {"name": "sha256", "checksum": "0abb81383bce80941338fce6c30579fd7e729cce5a443d0921752640c0450779"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507519.5121088, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__collection_product_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_shopify__collection_product_tmp')),\n staging_columns=get_collection_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__collection_product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n collection_id\n \n as \n \n collection_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["collection_id", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__metafield_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__metafield_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__metafield_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__metafield_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__metafield_tmp"], "alias": "stg_shopify__metafield_tmp", "checksum": {"name": "sha256", "checksum": "5414a4c10292fcacadde27a458e5df75130c4f8c14e5b38887bc42eefb8a0b53"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.5124226, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_metafield', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='metafield', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='metafield_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "metafield"], ["shopify", "metafield"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__metafield_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_metafield_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_bxgy_tmp"], "alias": "stg_shopify__discount_code_bxgy_tmp", "checksum": {"name": "sha256", "checksum": "bc9ed40d3831d9595a9522c0dd7c6afddc3ff313c1959896e1bc498d17f12551"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.5540416, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_bxgy', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_bxgy_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_bxgy"], ["shopify", "discount_code_bxgy"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__fulfillment_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__fulfillment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__fulfillment_tmp"], "alias": "stg_shopify__fulfillment_tmp", "checksum": {"name": "sha256", "checksum": "93a633acef33eac51374633d67a9e6bf52c1c1b813b549c211bb9fd23cf16938"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.5632627, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment"], ["shopify", "fulfillment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__fulfillment_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_variant_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_variant_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_variant_tmp"], "alias": "stg_shopify__product_variant_tmp", "checksum": {"name": "sha256", "checksum": "1479b98d0d8fc9c6fd0ded96f6b0aa50e05e71a67bf61d54de8abac635aa1920"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.5729496, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant"], ["shopify", "product_variant"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_variant_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__collection_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__collection_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__collection_tmp"], "alias": "stg_shopify__collection_tmp", "checksum": {"name": "sha256", "checksum": "83677a641e5bf258065b60673dc391162a342de5ac494faafa9af5c370f048d7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.5814633, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection"], ["shopify", "collection"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__collection_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_discount_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_discount_code_tmp"], "alias": "stg_shopify__order_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "37a4d39417499542b5aeca8c362b51a3e3d95e6908f2a7a9af57b44e170c1046"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.5899749, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_discount_code"], ["shopify", "order_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_url_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_url_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_url_tag_tmp"], "alias": "stg_shopify__order_url_tag_tmp", "checksum": {"name": "sha256", "checksum": "9acc8c7614789de25d394b07b8638e54639ea5d0fcb75765963d0bca0f63f353"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.598434, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_url_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_url_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_url_tag"], ["shopify", "order_url_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_url_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_url_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_tmp"], "alias": "stg_shopify__product_tmp", "checksum": {"name": "sha256", "checksum": "dd2e5338bf797082fe088c198911e406eb041e87cd28e1352a7a2835b0122ffe"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6081488, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product"], ["shopify", "product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_tag_tmp"], "alias": "stg_shopify__order_tag_tmp", "checksum": {"name": "sha256", "checksum": "a42066ecdf32f3882d6fa6a1c3df6b75d69ce0a4553375d3320a61f1a1de08f6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6164525, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_tag"], ["shopify", "order_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_quantity_tmp"], "alias": "stg_shopify__inventory_quantity_tmp", "checksum": {"name": "sha256", "checksum": "888a1894a42f30df0c772f9551fb3298534856d39b261bcab4c94f3e62fa4a8d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6248448, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_quantity', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_quantity_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_quantity"], ["shopify", "inventory_quantity"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__tax_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__tax_line_tmp"], "alias": "stg_shopify__tax_line_tmp", "checksum": {"name": "sha256", "checksum": "f904365c42217c601725c775a158e9dd20e3e0cd976b5df19c993275cdb49d6f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6333945, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tax_line"], ["shopify", "tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__customer_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__customer_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__customer_tag_tmp"], "alias": "stg_shopify__customer_tag_tmp", "checksum": {"name": "sha256", "checksum": "cacc0b85d32b6695c089824f90b3d43e47ca479d9fd5b5751bf4d517d60f28be"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6431494, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer_tag"], ["shopify", "customer_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__customer_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_allocation_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_allocation_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_allocation_tmp"], "alias": "stg_shopify__discount_allocation_tmp", "checksum": {"name": "sha256", "checksum": "eef0c91992b9834308249935e8ba406fd0c5782a684da3d90859ef1ae3db7040"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6514988, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_allocation', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_allocation_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_allocation"], ["shopify", "discount_allocation"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_allocation_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_allocation_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_image_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__media_image_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__media_image_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_image_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__media_image_tmp"], "alias": "stg_shopify__media_image_tmp", "checksum": {"name": "sha256", "checksum": "c4780240faf9cb4ab2a407a9419b94336727ec3b77d6bfb1ac753fc8c4179208"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.659768, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media_image', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_image_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media_image"], ["shopify", "media_image"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__media_image_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_image_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__media_tmp"], "alias": "stg_shopify__media_tmp", "checksum": {"name": "sha256", "checksum": "0c94b30527a13af3563413d119affaec39c52720d8aca5223af84b9ad8c55eac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6680481, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media"], ["shopify", "media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__refund_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__refund_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__refund_tmp"], "alias": "stg_shopify__refund_tmp", "checksum": {"name": "sha256", "checksum": "0d3eceddf310b90dc85313e6286c98c2894031ab4569f3db315388dcaef32f8f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6763387, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you create a refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "refund"], ["shopify", "refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__refund_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you create a refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__location_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__location_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__location_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__location_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__location_tmp"], "alias": "stg_shopify__location_tmp", "checksum": {"name": "sha256", "checksum": "b633d3eb65fefb379a9cd5f44ff617a1fc99c132ed5d0bb81e18c9bce0665013"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6859674, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='location', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='location_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "location"], ["shopify", "location"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__location_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_level_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_level_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_level_tmp"], "alias": "stg_shopify__inventory_level_tmp", "checksum": {"name": "sha256", "checksum": "7d78bc258a56f48d8968e1910dd797fe7d73a5d83d4bc165080ea5769a4f0727"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.6943145, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_level', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_level_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_level"], ["shopify", "inventory_level"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_level_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_level_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_shipping_line_tmp"], "alias": "stg_shopify__order_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "14e60b7aefb49552134a34cdb90c47cd4ce6da6381d0586553738d7d4b823d6d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.7027407, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_line"], ["shopify", "order_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_discount_code_tmp"], "alias": "stg_shopify__abandoned_checkout_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "a6071b36e80e24d2b0cd31158419e657ac970ce35f8c6c9d3df08606bae64cdc"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.711018, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_discount_code"], ["shopify", "abandoned_checkout_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__fulfillment_event_tmp"], "alias": "stg_shopify__fulfillment_event_tmp", "checksum": {"name": "sha256", "checksum": "f81a5b8e0dd6dbe917bcfeddf57d4d6ac608409132baad5cc131406c3143cb24"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.720929, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_event', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_event_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment_event"], ["shopify", "fulfillment_event"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_line_refund_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_line_refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_line_refund_tmp"], "alias": "stg_shopify__order_line_refund_tmp", "checksum": {"name": "sha256", "checksum": "19f0e79eaed071741c7e53e9b5e90e693184225cc4ca171806f698404df07126"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.7297103, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order line refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line_refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line_refund"], ["shopify", "order_line_refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_line_refund_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order line refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_app_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_app_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_app_tmp"], "alias": "stg_shopify__discount_code_app_tmp", "checksum": {"name": "sha256", "checksum": "c633d1450d2ee190d81cb6f4267d15ed580e17bbcc5bbb0958f2f49a2bafc008"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.737884, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_discount_code_app', False) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_app', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_app_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_app"], ["shopify", "discount_code_app"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_app_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_app_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__shop_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__shop_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__shop_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__shop_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__shop_tmp"], "alias": "stg_shopify__shop_tmp", "checksum": {"name": "sha256", "checksum": "e9f782471f9533f7b339be8a70a57196eb8135b5cfe449d2957810794f289803"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.746534, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='shop', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='shop_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "shop"], ["shopify", "shop"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__shop_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_shop_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__transaction_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__transaction_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__transaction_tmp"], "alias": "stg_shopify__transaction_tmp", "checksum": {"name": "sha256", "checksum": "fe66d5a0482b65f07d4d7173cd2aef146efabcf38e17fed7aa2e7d1d1f8b1f33"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.7559419, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "transaction"], ["shopify", "transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_variant_media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_variant_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_variant_media_tmp"], "alias": "stg_shopify__product_variant_media_tmp", "checksum": {"name": "sha256", "checksum": "cd139c183a1ca8cb8118db376fa3f7d1b31636685eb01ec485a82e75a7a28d65"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.7643719, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_product_variant_media', False) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant_media"], ["shopify", "product_variant_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_variant_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_line_tmp"], "alias": "stg_shopify__order_line_tmp", "checksum": {"name": "sha256", "checksum": "d8a2b2b7331a577fe56b007114d5e8d9c9422dec4bdc3a7a92ed4b975e811eab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.77308, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line"], ["shopify", "order_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_media_tmp"], "alias": "stg_shopify__product_media_tmp", "checksum": {"name": "sha256", "checksum": "a05118e90fbe264d9ec4586834a925938d4ffdc01126953864c80e75d1e1572f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.7813625, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_media"], ["shopify", "product_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_basic_tmp"], "alias": "stg_shopify__discount_code_basic_tmp", "checksum": {"name": "sha256", "checksum": "6b6304e0f284579e79af69626b602eb9c4bd9de54c74e74b4956174d796d24fb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.790841, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_basic', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_basic_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_basic"], ["shopify", "discount_code_basic"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_shipping_tax_line_tmp"], "alias": "stg_shopify__order_shipping_tax_line_tmp", "checksum": {"name": "sha256", "checksum": "5d38344e972f1093709af51973879e64d530563a4b82ec9d06d313db387c5318"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.799197, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_tax_line"], ["shopify", "order_shipping_tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_note_attribute_tmp"], "alias": "stg_shopify__order_note_attribute_tmp", "checksum": {"name": "sha256", "checksum": "2cc3882bae2ba3aa7c2110da7e9e80172971e9ca75b03700615c4ec0e85124af"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.8074446, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_note_attribute', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_note_attribute_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_note_attribute"], ["shopify", "order_note_attribute"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_application_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_application_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_application_tmp"], "alias": "stg_shopify__discount_application_tmp", "checksum": {"name": "sha256", "checksum": "303e6de79bb4d473c2d041c88a66aa1ee0a79961b5b044472cb5a5b2169cb622"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.815803, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_application', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_application_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_application"], ["shopify", "discount_application"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_application_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_application_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__tender_transaction_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__tender_transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__tender_transaction_tmp"], "alias": "stg_shopify__tender_transaction_tmp", "checksum": {"name": "sha256", "checksum": "2ff3b509f93c78e9e47e8dce5e43f5c97a8ad66b5cb9b2ff68f9b4ddb37b502d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.8252335, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tender_transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tender_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tender_transaction"], ["shopify", "tender_transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__tender_transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tender_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_free_shipping_tmp"], "alias": "stg_shopify__discount_code_free_shipping_tmp", "checksum": {"name": "sha256", "checksum": "daf2f7cefba4ef7cf8917d509e7a199b591e31ba3931e27a0b0d81e4e551184d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.833552, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_free_shipping', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_free_shipping_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_free_shipping"], ["shopify", "discount_code_free_shipping"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_tag_tmp"], "alias": "stg_shopify__product_tag_tmp", "checksum": {"name": "sha256", "checksum": "6103799f99a890d76dc2ec51299412d9708fd31f94528fb71198148f4462a9b4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.8418212, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_tag"], ["shopify", "product_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_item_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_item_tmp"], "alias": "stg_shopify__inventory_item_tmp", "checksum": {"name": "sha256", "checksum": "80078c5de257923b797af6925dace90a4bc9540ba0b787c0d94cd99f90fb2df9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.8501863, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_item"], ["shopify", "inventory_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_tmp"], "alias": "stg_shopify__order_tmp", "checksum": {"name": "sha256", "checksum": "67e08e77af56b0e21cbe52d7cae143433d14a805c38eae3aeaaa6325e4849af5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.8596606, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order',\n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order"], ["shopify", "order"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_redeem_code_tmp"], "alias": "stg_shopify__discount_redeem_code_tmp", "checksum": {"name": "sha256", "checksum": "ee9513dba26602b035fed4f3b201585cf07e919856c51d1f846b7ffee8f71cca"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.9408972, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_redeem_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_redeem_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_redeem_code"], ["shopify", "discount_redeem_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__customer_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__customer_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__customer_tmp"], "alias": "stg_shopify__customer_tmp", "checksum": {"name": "sha256", "checksum": "8186176eeffaabc3738d1e3aa65b2a56d1a708202122324f0169520faf245327"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.949549, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer"], ["shopify", "customer"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__customer_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_adjustment_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_adjustment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_adjustment_tmp"], "alias": "stg_shopify__order_adjustment_tmp", "checksum": {"name": "sha256", "checksum": "660c959bd994c8ebeb444328094cae630dae00be0ffdfecedb5e46d62635507d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.9578052, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_adjustment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_adjustment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_adjustment"], ["shopify", "order_adjustment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_adjustment_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_adjustment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_shipping_line_tmp"], "alias": "stg_shopify__abandoned_checkout_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "5197f889810c43cba25bb329b29fc36f1a2694481886a84d85db44061121e4ba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.9663925, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_shipping_line"], ["shopify", "abandoned_checkout_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__collection_product_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__collection_product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__collection_product_tmp"], "alias": "stg_shopify__collection_product_tmp", "checksum": {"name": "sha256", "checksum": "f210c463c05bd68110fb94b96ecc72832aa2b6c6bcbbd0faa14fd9e081f098ff"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.9762955, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection_product"], ["shopify", "collection_product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__collection_product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_tmp"], "alias": "stg_shopify__abandoned_checkout_tmp", "checksum": {"name": "sha256", "checksum": "725135b3d811e4e230601561e990f0c8f03ff22a855abd5b57e8152ae0093e43"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507516.9846551, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout"], ["shopify", "abandoned_checkout"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__media.sql", "original_file_path": "models/graphql/stg_shopify_gql__media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__media"], "alias": "stg_shopify_gql__media", "checksum": {"name": "sha256", "checksum": "653de7e7a0d32617a2b87aee243be40cd14af47689ece20af8771b3c27136913"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing media metadata, including status and timestamps.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `media_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.371063, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__media_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_shopify_gql__media_tmp')),\n staging_columns=get_graphql_media_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_visit": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_visit.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_visit.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_visit"], "alias": "stg_shopify_gql__customer_visit", "checksum": {"name": "sha256", "checksum": "dc6dbc7c87fbaf8737671d7d2f502113fa6266ae3ed31720df6bf23974c04c56"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metadata about a customer's session visiting a Shopify store, including session, landing page, referrer, marketing campaign, and source attribution information. This data helps merchants analyze the effectiveness of marketing campaigns and customer engagement.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_visit_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_visit_id": {"name": "customer_visit_id", "description": "A globally-unique identifier for the customer visit session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "The ID of the order associated with the customer visit, if any.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of marketing tactic associated with the session. Possible values include: abandoned_cart, ad, affiliate, link, loyalty, message, newsletter, notification, post, retargeting, seo, storefront_app, transactional.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page": {"name": "landing_page", "description": "The URL of the first page the customer landed on for the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page_html": {"name": "landing_page_html", "description": "The landing page URL rendered as HTML with a hyperlink.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "occurred_at": {"name": "occurred_at", "description": "The timestamp when the customer's session occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_code": {"name": "referral_code", "description": "A marketing referral code captured from the landing URL. Supports query params like `ref`, `source`, or `r`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_info_html": {"name": "referral_info_html", "description": "Referral info rendered as HTML with URLs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The referring webpage where the customer clicked a link to arrive at the store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The origin of the customer's visit, such as a platform (e.g., Facebook, Google), a QR code, direct, or other attribution channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_description": {"name": "source_description", "description": "A more descriptive label for the visit source; used primarily for the first or last session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_type": {"name": "source_type", "description": "The marketing tactic type, such as ad, seo, newsletter, etc.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_campaign": {"name": "utm_parameters_campaign", "description": "The name of the marketing campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_content": {"name": "utm_parameters_content", "description": "Identifies specific content within a campaign, used to differentiate similar links.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_medium": {"name": "utm_parameters_medium", "description": "The medium of the campaign (e.g., cpc, banner, email).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_source": {"name": "utm_parameters_source", "description": "The traffic source for the campaign (e.g., google, newsletter).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_term": {"name": "utm_parameters_term", "description": "Search terms associated with paid campaigns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.402766, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_customer_visit', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_visit_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_shopify_gql__customer_visit_tmp')),\n staging_columns=get_graphql_customer_visit_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_visit_id,\n order_id,\n type,\n landing_page,\n landing_page_html,\n referral_code,\n referral_info_html,\n referrer_url as referring_site,\n source,\n source_description,\n source_type,\n utm_parameters_campaign,\n utm_parameters_content,\n utm_parameters_medium,\n utm_parameters_source,\n utm_parameters_term,\n {{ shopify_source.fivetran_convert_timezone(column='cast(occurred_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as occurred_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_visit_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_visit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_visit.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n landing_page\n \n as \n \n landing_page\n \n, \n \n \n landing_page_html\n \n as \n \n landing_page_html\n \n, \n \n \n occurred_at\n \n as \n \n occurred_at\n \n, \n \n \n referral_code\n \n as \n \n referral_code\n \n, \n \n \n referral_info_html\n \n as \n \n referral_info_html\n \n, \n \n \n referrer_url\n \n as \n \n referrer_url\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_description\n \n as \n \n source_description\n \n, \n \n \n source_type\n \n as \n \n source_type\n \n, \n \n \n utm_parameters_campaign\n \n as \n \n utm_parameters_campaign\n \n, \n \n \n utm_parameters_content\n \n as \n \n utm_parameters_content\n \n, \n \n \n utm_parameters_medium\n \n as \n \n utm_parameters_medium\n \n, \n \n \n utm_parameters_source\n \n as \n \n utm_parameters_source\n \n, \n \n \n utm_parameters_term\n \n as \n \n utm_parameters_term\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_visit_id,\n order_id,\n type,\n landing_page,\n landing_page_html,\n referral_code,\n referral_info_html,\n referrer_url as referring_site,\n source,\n source_description,\n source_type,\n utm_parameters_campaign,\n utm_parameters_content,\n utm_parameters_medium,\n utm_parameters_source,\n utm_parameters_term,\n cast(\n cast(cast(occurred_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as occurred_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_app": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_app.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_app.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_app"], "alias": "stg_shopify_gql__discount_code_app", "checksum": {"name": "sha256", "checksum": "0ba65d555b341ea472c2d2b467241a6df089e4b223676e974feffdd7f747df7a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for discount codes created through third-party apps in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3531268, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_discount_code_app', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_app_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_shopify_gql__discount_code_app_tmp')),\n staging_columns=get_graphql_discount_code_app_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_app_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_app_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_app.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count_count\n \n as \n \n codes_count_count\n \n, \n \n \n codes_count_precision\n \n as \n \n codes_count_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_tag"], "alias": "stg_shopify_gql__customer_tag", "checksum": {"name": "sha256", "checksum": "d1dc3244691c097ebdca6b9f76fcb51c4f898b7d4653bb1a2e3c1c092c9b3d70"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.2699218, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_tag_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_shopify_gql__customer_tag_tmp')),\n staging_columns=get_graphql_customer_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['customer_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order.sql", "original_file_path": "models/graphql/stg_shopify_gql__order.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order"], "alias": "stg_shopify_gql__order", "checksum": {"name": "sha256", "checksum": "9c104f3d7986e5c83382a7cec256a7666306e5f61fdbd590a8c0cac6b185c13e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "A globally-unique ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the customer who placed the order. Useful for fraud detection and geographic analysis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The shop currency when the order was placed. For example, \"USD\" or \"CAD\".", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "An order's financial status for display in the Shopify admin. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFinancialStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's fulfillment status that displays in the Shopify admin to merchants. For example, an order might be unfulfilled or scheduled. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFulfillmentStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The unique identifier for the order that appears on the order page in the Shopify admin and the Order status page. For example, \"#1001\", \"EN1001\", or \"1001-A\". This value isn't unique across multiple stores.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The optional note associated with the order. Contains additional information or instructions added by merchants or customers during the order process. Commonly used for special delivery instructions, gift messages, or internal processing notes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The name of the source associated with the order, such as \"web\", \"mobile_app\", or \"pos\". Use this field to identify the platform where the order was placed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_amount": {"name": "total_discounts_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_amount": {"name": "total_discounts_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_currency_code": {"name": "total_discounts_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_currency_code": {"name": "total_discounts_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights before returns, in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The staff member who created or is responsible for the order. Useful for tracking which team member handled phone orders, manual orders, or order modifications. Returns null for orders created directly by customers through the online store.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL where customers can check their order's current status, including tracking information and delivery updates. Provides order tracking links in emails, apps, or customer communications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received_shop_amount": {"name": "total_tip_received_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_amount": {"name": "total_tip_received_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_currency_code": {"name": "total_tip_received_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_currency_code": {"name": "total_tip_received_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_amount": {"name": "shipping_cost_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_amount": {"name": "shipping_cost_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_currency_code": {"name": "shipping_cost_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_currency_code": {"name": "shipping_cost_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.2578309, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_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_shopify_gql__order_tmp')),\n staging_columns=get_graphql_order_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_id,\n staff_member_id as user_id,\n total_discounts_set_pres_amount as total_discounts_pres_amount,\n total_discounts_set_pres_currency_code as total_discounts_pres_currency_code,\n total_discounts_set_shop_amount as total_discounts_shop_amount,\n total_discounts_set_shop_currency_code as total_discounts_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n source_name,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received_set_pres_amount as total_tip_received_pres_amount,\n total_tip_received_set_pres_currency_code as total_tip_received_pres_currency_code,\n total_tip_received_set_shop_amount as total_tip_received_shop_amount,\n total_tip_received_set_shop_currency_code as total_tip_received_shop_currency_code,\n location_id,\n name,\n note,\n number, -- Will be included in 2025-07 release of GraphQL API\n cancel_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(cancelled_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as cancelled_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n currency_code as currency,\n customer_id,\n lower(email) as email,\n lower(display_financial_status) as financial_status,\n lower(display_fulfillment_status) as fulfillment_status,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n client_ip as browser_ip,\n total_shipping_price_set_pres_amount as shipping_cost_pres_amount,\n total_shipping_price_set_pres_currency_code as shipping_cost_pres_currency_code,\n total_shipping_price_set_shop_amount as shipping_cost_shop_amount,\n total_shipping_price_set_shop_currency_code as shipping_cost_shop_currency_code,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n app_id,\n customer_locale,\n status_page_url as order_status_url,\n presentment_currency_code as presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n customer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('order_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n app_id\n \n as \n \n app_id\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n cancel_reason\n \n as \n \n cancel_reason\n \n, \n \n \n cancelled_at\n \n as \n \n cancelled_at\n \n, \n \n \n client_ip\n \n as \n \n client_ip\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n confirmed\n \n as \n \n confirmed\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n customer_accepts_marketing\n \n as \n \n customer_accepts_marketing\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_locale\n \n as \n \n customer_locale\n \n, \n \n \n display_financial_status\n \n as \n \n display_financial_status\n \n, \n \n \n display_fulfillment_status\n \n as \n \n display_fulfillment_status\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n presentment_currency_code\n \n as \n \n presentment_currency_code\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n status_page_url\n \n as \n \n status_page_url\n \n, \n \n \n subtotal_price_set_pres_amount\n \n as \n \n subtotal_price_set_pres_amount\n \n, \n \n \n subtotal_price_set_pres_currency_code\n \n as \n \n subtotal_price_set_pres_currency_code\n \n, \n \n \n subtotal_price_set_shop_amount\n \n as \n \n subtotal_price_set_shop_amount\n \n, \n \n \n subtotal_price_set_shop_currency_code\n \n as \n \n subtotal_price_set_shop_currency_code\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n total_discounts_set_pres_amount\n \n as \n \n total_discounts_set_pres_amount\n \n, \n \n \n total_discounts_set_pres_currency_code\n \n as \n \n total_discounts_set_pres_currency_code\n \n, \n \n \n total_discounts_set_shop_amount\n \n as \n \n total_discounts_set_shop_amount\n \n, \n \n \n total_discounts_set_shop_currency_code\n \n as \n \n total_discounts_set_shop_currency_code\n \n, \n \n \n total_price_set_pres_amount\n \n as \n \n total_price_set_pres_amount\n \n, \n \n \n total_price_set_pres_currency_code\n \n as \n \n total_price_set_pres_currency_code\n \n, \n \n \n total_price_set_shop_amount\n \n as \n \n total_price_set_shop_amount\n \n, \n \n \n total_price_set_shop_currency_code\n \n as \n \n total_price_set_shop_currency_code\n \n, \n \n \n total_shipping_price_set_pres_amount\n \n as \n \n total_shipping_price_set_pres_amount\n \n, \n \n \n total_shipping_price_set_pres_currency_code\n \n as \n \n total_shipping_price_set_pres_currency_code\n \n, \n \n \n total_shipping_price_set_shop_amount\n \n as \n \n total_shipping_price_set_shop_amount\n \n, \n \n \n total_shipping_price_set_shop_currency_code\n \n as \n \n total_shipping_price_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\n \n, \n \n \n total_tip_received_set_pres_amount\n \n as \n \n total_tip_received_set_pres_amount\n \n, \n \n \n total_tip_received_set_pres_currency_code\n \n as \n \n total_tip_received_set_pres_currency_code\n \n, \n \n \n total_tip_received_set_shop_amount\n \n as \n \n total_tip_received_set_shop_amount\n \n, \n \n \n total_tip_received_set_shop_currency_code\n \n as \n \n total_tip_received_set_shop_currency_code\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_id,\n staff_member_id as user_id,\n total_discounts_set_pres_amount as total_discounts_pres_amount,\n total_discounts_set_pres_currency_code as total_discounts_pres_currency_code,\n total_discounts_set_shop_amount as total_discounts_shop_amount,\n total_discounts_set_shop_currency_code as total_discounts_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n source_name,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received_set_pres_amount as total_tip_received_pres_amount,\n total_tip_received_set_pres_currency_code as total_tip_received_pres_currency_code,\n total_tip_received_set_shop_amount as total_tip_received_shop_amount,\n total_tip_received_set_shop_currency_code as total_tip_received_shop_currency_code,\n location_id,\n name,\n note,\n number, -- Will be included in 2025-07 release of GraphQL API\n cancel_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(cancelled_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as cancelled_timestamp,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n currency_code as currency,\n customer_id,\n lower(email) as email,\n lower(display_financial_status) as financial_status,\n lower(display_fulfillment_status) as fulfillment_status,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n client_ip as browser_ip,\n total_shipping_price_set_pres_amount as shipping_cost_pres_amount,\n total_shipping_price_set_pres_currency_code as shipping_cost_pres_currency_code,\n total_shipping_price_set_shop_amount as shipping_cost_shop_amount,\n total_shipping_price_set_shop_currency_code as shipping_cost_shop_currency_code,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n app_id,\n customer_locale,\n status_page_url as order_status_url,\n presentment_currency_code as presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n customer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_line"], "alias": "stg_shopify_gql__order_line", "checksum": {"name": "sha256", "checksum": "109c38abe09fecda46bfe1c3abaab41598133e0972636f50bb20d067987f3185"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.2596526, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_line_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_shopify_gql__order_line_tmp')),\n staging_columns=get_graphql_order_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_line_id,\n row_number() over(partition by order_id, source_relation order by id asc) as index,\n name,\n order_id,\n case \n when unfulfilled_quantity = 0 then 'fulfilled'\n when unfulfilled_quantity > 0 and unfulfilled_quantity < quantity then 'partial'\n when unfulfilled_quantity = quantity then 'unfulfilled'\n else null \n end as fulfillment_status,\n is_gift_card,\n original_total_set_pres_amount as price_pres_amount,\n original_total_set_pres_currency_code as price_pres_currency_code,\n original_total_set_shop_amount as price_shop_amount,\n original_total_set_shop_currency_code as price_shop_currency_code,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n title,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n variant_id,\n variant_title,\n vendor,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n {{ fivetran_utils.fill_pass_through_columns('order_line_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_gift_card\n \n as \n \n is_gift_card\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n original_total_set_pres_amount\n \n as \n \n original_total_set_pres_amount\n \n, \n \n \n original_total_set_pres_currency_code\n \n as \n \n original_total_set_pres_currency_code\n \n, \n \n \n original_total_set_shop_amount\n \n as \n \n original_total_set_shop_amount\n \n, \n \n \n original_total_set_shop_currency_code\n \n as \n \n original_total_set_shop_currency_code\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\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 total_discount_set_pres_amount\n \n as \n \n total_discount_set_pres_amount\n \n, \n \n \n total_discount_set_pres_currency_code\n \n as \n \n total_discount_set_pres_currency_code\n \n, \n \n \n total_discount_set_shop_amount\n \n as \n \n total_discount_set_shop_amount\n \n, \n \n \n total_discount_set_shop_currency_code\n \n as \n \n total_discount_set_shop_currency_code\n \n, \n \n \n unfulfilled_quantity\n \n as \n \n unfulfilled_quantity\n \n, \n \n \n variant_id\n \n as \n \n variant_id\n \n, \n \n \n variant_title\n \n as \n \n variant_title\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_line_id,\n row_number() over(partition by order_id, source_relation order by id asc) as index,\n name,\n order_id,\n case \n when unfulfilled_quantity = 0 then 'fulfilled'\n when unfulfilled_quantity > 0 and unfulfilled_quantity < quantity then 'partial'\n when unfulfilled_quantity = quantity then 'unfulfilled'\n else null \n end as fulfillment_status,\n is_gift_card,\n original_total_set_pres_amount as price_pres_amount,\n original_total_set_pres_currency_code as price_pres_currency_code,\n original_total_set_shop_amount as price_shop_amount,\n original_total_set_shop_currency_code as price_shop_currency_code,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n title,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n variant_id,\n variant_title,\n vendor,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_item.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_item.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_item"], "alias": "stg_shopify_gql__inventory_item", "checksum": {"name": "sha256", "checksum": "32245e3be959135fac78958f66d2bd942b104f90bf7c1cf0176b5fe76d3da089"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_item_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3665292, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_item_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_shopify_gql__inventory_item_tmp')),\n staging_columns=get_graphql_inventory_item_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted,\n unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country_code_of_origin\n \n as \n \n country_code_of_origin\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n duplicate_sku_count\n \n as \n \n duplicate_sku_count\n \n, \n \n \n harmonized_system_code\n \n as \n \n harmonized_system_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_history_url\n \n as \n \n inventory_history_url\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n measurement_id\n \n as \n \n measurement_id\n \n, \n \n \n measurement_weight_unit\n \n as \n \n measurement_weight_unit\n \n, \n \n \n measurement_weight_value\n \n as \n \n measurement_weight_value\n \n, \n \n \n province_code_of_origin\n \n as \n \n province_code_of_origin\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tracked\n \n as \n \n tracked\n \n, \n \n \n tracked_editable_locked\n \n as \n \n tracked_editable_locked\n \n, \n \n \n tracked_editable_reason\n \n as \n \n tracked_editable_reason\n \n, \n \n \n unit_cost_amount\n \n as \n \n unit_cost_amount\n \n, \n \n \n unit_cost_currency_code\n \n as \n \n unit_cost_currency_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted,\n unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_shipping_tax_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_shipping_tax_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_shipping_tax_line"], "alias": "stg_shopify_gql__order_shipping_tax_line", "checksum": {"name": "sha256", "checksum": "1ce49a7e29271683d2a26b5640c826be0a3c626e752ce9600fa531b9cfdbbf26"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents taxes associated with order shipping lines.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_shipping_line_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this record is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The amount of tax in customer currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The amount of tax in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.385554, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_shipping_tax_line_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_shopify_gql__order_shipping_tax_line_tmp')),\n staging_columns=get_graphql_order_shipping_tax_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_shipping_line_id', 'index', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_shipping_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_shipping_tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_shipping_line_id\n \n as \n \n order_shipping_line_id\n \n, \n \n \n price_set_pres_amount\n \n as \n \n price_set_pres_amount\n \n, \n \n \n price_set_pres_currency_code\n \n as \n \n price_set_pres_currency_code\n \n, \n \n \n price_set_shop_amount\n \n as \n \n price_set_shop_amount\n \n, \n \n \n price_set_shop_currency_code\n \n as \n \n price_set_shop_currency_code\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_shipping_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_order_line_item"], "alias": "stg_shopify_gql__fulfillment_order_line_item", "checksum": {"name": "sha256", "checksum": "cce1876da347fe32a6a944ed7db67af1c5897acfa7c3f164c6f02707ecd93e37"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Links a fulfillment order to specific items that require fulfillment. Contains detailed product information, quantity tracking, variant metadata, and shipping requirements. This is a core entity for determining which products and how many units are involved in a given fulfillment process.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_order_line_item_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_order_line_item_id": {"name": "fulfillment_order_line_item_id", "description": "A globally unique identifier for this fulfillment order line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_order_id": {"name": "fulfillment_order_id", "description": "The identifier of the fulfillment order that this line item is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "Alt text describing the image associated with the line item's variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "The height in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "The unique identifier for the variant image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The url of the variant image used in this fulfillment line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "The width in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The identifier of the inventory item being fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_item_id": {"name": "order_line_item_id", "description": "The identifier of the original order line item linked to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_title": {"name": "product_title", "description": "The title of the product at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The identifier of the product variant associated with this fulfillment item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remaining_quantity": {"name": "remaining_quantity", "description": "The number of units remaining to be fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Indicates whether physical shipping is required for this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The SKU of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "The total number of units allocated to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The vendor of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3635907, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_order_line_item', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_order_line_item_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_shopify_gql__fulfillment_order_line_item_tmp')),\n staging_columns=get_graphql_fulfillment_order_line_item_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_order_line_item_id,\n fulfillment_order_id,\n image_alt_text,\n image_height,\n image_id,\n image_url,\n image_width,\n inventory_item_id,\n order_line_item_id,\n product_title,\n product_variant_id,\n remaining_quantity,\n requires_shipping,\n sku,\n total_quantity,\n variant_title,\n vendor,\n weight_unit,\n weight_value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_order_line_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fulfillment_order_id\n \n as \n \n fulfillment_order_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n order_line_item_id\n \n as \n \n order_line_item_id\n \n, \n \n \n product_title\n \n as \n \n product_title\n \n, \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n remaining_quantity\n \n as \n \n remaining_quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n total_quantity\n \n as \n \n total_quantity\n \n, \n \n \n variant_title\n \n as \n \n variant_title\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n, \n \n \n weight_value\n \n as \n \n weight_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_order_line_item_id,\n fulfillment_order_id,\n image_alt_text,\n image_height,\n image_id,\n image_url,\n image_width,\n inventory_item_id,\n order_line_item_id,\n product_title,\n product_variant_id,\n remaining_quantity,\n requires_shipping,\n sku,\n total_quantity,\n variant_title,\n vendor,\n weight_unit,\n weight_value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_shipping_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_shipping_line"], "alias": "stg_shopify_gql__order_shipping_line", "checksum": {"name": "sha256", "checksum": "5da193b8bb92f55d18b8e41ab292c215df78b4d69d5380fa52172a808a1fd08d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents the shipping details that the customer chose for their order.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_shipping_line_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_pres_amount": {"name": "discounted_price_pres_amount", "description": "Shipping price in customer currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_pres_currency_code": {"name": "discounted_price_pres_currency_code", "description": "Three digit customer currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_shop_amount": {"name": "discounted_price_shop_amount", "description": "Shipping price in shop currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_shop_currency_code": {"name": "discounted_price_shop_currency_code", "description": "Three digit shop currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The pre-tax shipping price without any discounts applied in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The pre-tax shipping price without any discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.384279, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_shipping_line_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_shopify_gql__order_shipping_line_tmp')),\n staging_columns=get_graphql_order_shipping_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price_set_pres_amount as discounted_price_pres_amount,\n discounted_price_set_pres_currency_code as discounted_price_pres_currency_code,\n discounted_price_set_shop_amount as discounted_price_shop_amount,\n discounted_price_set_shop_currency_code as discounted_price_shop_currency_code,\n phone,\n original_price_set_pres_amount as price_pres_amount,\n original_price_set_pres_currency_code as price_pres_currency_code,\n original_price_set_shop_amount as price_shop_amount,\n original_price_set_shop_currency_code as price_shop_currency_code,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n discounted_price_set_pres_amount\n \n as \n \n discounted_price_set_pres_amount\n \n, \n \n \n discounted_price_set_pres_currency_code\n \n as \n \n discounted_price_set_pres_currency_code\n \n, \n \n \n discounted_price_set_shop_amount\n \n as \n \n discounted_price_set_shop_amount\n \n, \n \n \n discounted_price_set_shop_currency_code\n \n as \n \n discounted_price_set_shop_currency_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n original_price_set_pres_amount\n \n as \n \n original_price_set_pres_amount\n \n, \n \n \n original_price_set_pres_currency_code\n \n as \n \n original_price_set_pres_currency_code\n \n, \n \n \n original_price_set_shop_amount\n \n as \n \n original_price_set_shop_amount\n \n, \n \n \n original_price_set_shop_currency_code\n \n as \n \n original_price_set_shop_currency_code\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price_set_pres_amount as discounted_price_pres_amount,\n discounted_price_set_pres_currency_code as discounted_price_pres_currency_code,\n discounted_price_set_shop_amount as discounted_price_shop_amount,\n discounted_price_set_shop_currency_code as discounted_price_shop_currency_code,\n phone,\n original_price_set_pres_amount as price_pres_amount,\n original_price_set_pres_currency_code as price_pres_currency_code,\n original_price_set_shop_amount as price_shop_amount,\n original_price_set_shop_currency_code as price_shop_currency_code,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product.sql", "original_file_path": "models/graphql/stg_shopify_gql__product.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product"], "alias": "stg_shopify_gql__product", "checksum": {"name": "sha256", "checksum": "bd16eaf9c2f2b9d327db6071a73dc1fa5aaa07b070d4f3fd72bd82f8621145a9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.387661, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_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_shopify_gql__product_tmp')),\n staging_columns=get_graphql_product_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as product_id,\n handle,\n product_type,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('product_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n status\n \n as \n \n status\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\n \n as \n \n vendor\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as product_id,\n handle,\n product_type,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment"], "alias": "stg_shopify_gql__fulfillment", "checksum": {"name": "sha256", "checksum": "545e435664dc989b50d51ec7cd18d7ad7e582c75fb916d7be3176e7c1ce5af7b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3602514, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_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_shopify_gql__fulfillment_tmp')),\n staging_columns=get_graphql_fulfillment_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service_id as service,\n lower(display_status) as shipment_status,\n lower(status) as status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n display_status\n \n as \n \n display_status\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n service_id\n \n as \n \n service_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n total_quantity\n \n as \n \n total_quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service_id as service,\n lower(display_status) as shipment_status,\n lower(status) as status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_allocation": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_allocation.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_allocation.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_allocation"], "alias": "stg_shopify_gql__discount_allocation", "checksum": {"name": "sha256", "checksum": "739863a768f40dd60d330e331eae06d15864832e04c0ca6b863424ec4f7ac4c6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing allocation amounts from discount applications across specific order lines.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id`, `discount_application_index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocated_pres_amount": {"name": "allocated_pres_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_pres_currency_code": {"name": "allocated_pres_currency_code", "description": "The presentment money currency code for the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_shop_amount": {"name": "allocated_shop_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_shop_currency_code": {"name": "allocated_shop_currency_code", "description": "The shop money currency code for the store\u2019s currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to. Used to join with the discount application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount allocation within the list of allocations on an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.2723432, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_allocation_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_shopify_gql__discount_allocation_tmp')),\n staging_columns=get_graphql_discount_allocation_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n allocated_amount_set_pres_amount as allocated_pres_amount,\n allocated_amount_set_pres_currency_code as allocated_pres_currency_code,\n allocated_amount_set_shop_amount as allocated_shop_amount,\n allocated_amount_set_shop_currency_code as allocated_shop_currency_code,\n discount_application_index,\n index,\n order_line_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_line_id', 'discount_application_index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_allocation_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_allocation_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_allocation.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocated_amount_set_pres_amount\n \n as \n \n allocated_amount_set_pres_amount\n \n, \n \n \n allocated_amount_set_pres_currency_code\n \n as \n \n allocated_amount_set_pres_currency_code\n \n, \n \n \n allocated_amount_set_shop_amount\n \n as \n \n allocated_amount_set_shop_amount\n \n, \n \n \n allocated_amount_set_shop_currency_code\n \n as \n \n allocated_amount_set_shop_currency_code\n \n, \n \n \n discount_application_index\n \n as \n \n discount_application_index\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n allocated_amount_set_pres_amount as allocated_pres_amount,\n allocated_amount_set_pres_currency_code as allocated_pres_currency_code,\n allocated_amount_set_shop_amount as allocated_shop_amount,\n allocated_amount_set_shop_currency_code as allocated_shop_currency_code,\n discount_application_index,\n index,\n order_line_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_application_index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__tax_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__tax_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tax_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__tax_line"], "alias": "stg_shopify_gql__tax_line", "checksum": {"name": "sha256", "checksum": "7c3265693bb444db83715b94d4923ebc32f8d385562f5dd4b570230542e309d6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a single tax applied to the associated line item.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The amount of tax in customer currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The amount of tax in shop currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.397732, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__tax_line_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_shopify_gql__tax_line_tmp')),\n staging_columns=get_graphql_tax_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_line_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n price_set_pres_amount\n \n as \n \n price_set_pres_amount\n \n, \n \n \n price_set_pres_currency_code\n \n as \n \n price_set_pres_currency_code\n \n, \n \n \n price_set_shop_amount\n \n as \n \n price_set_shop_amount\n \n, \n \n \n price_set_shop_currency_code\n \n as \n \n price_set_shop_currency_code\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_line_refund.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_line_refund.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_line_refund"], "alias": "stg_shopify_gql__order_line_refund", "checksum": {"name": "sha256", "checksum": "0402af2a04adb3d40bbdc43cd8f592cecec885892b79aedebe455210880640fe"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item refund in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_refund_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_line_refund_id": {"name": "order_line_refund_id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location where the items will be restocked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_pres_amount": {"name": "subtotal_pres_amount", "description": "The refunded subtotal amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_pres_currency_code": {"name": "subtotal_pres_currency_code", "description": "The three letter currency code for the subtotal the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_shop_amount": {"name": "subtotal_shop_amount", "description": "The refunded subtotal amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_shop_currency_code": {"name": "subtotal_shop_currency_code", "description": "The three letter currency code for the subtotal in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three letter currency code of the tax the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three letter currency code of the tax in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3804662, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_line_refund_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_shopify_gql__order_line_refund_tmp')),\n staging_columns=get_graphql_order_line_refund_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal_set_pres_amount as subtotal_pres_amount,\n subtotal_set_pres_currency_code as subtotal_pres_currency_code,\n subtotal_set_shop_amount as subtotal_shop_amount,\n subtotal_set_shop_currency_code as subtotal_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n quantity,\n refund_id,\n lower(restock_type) as restock_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_refund_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_line_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_line_refund.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n restock_type\n \n as \n \n restock_type\n \n, \n \n \n subtotal_set_pres_amount\n \n as \n \n subtotal_set_pres_amount\n \n, \n \n \n subtotal_set_pres_currency_code\n \n as \n \n subtotal_set_pres_currency_code\n \n, \n \n \n subtotal_set_shop_amount\n \n as \n \n subtotal_set_shop_amount\n \n, \n \n \n subtotal_set_shop_currency_code\n \n as \n \n subtotal_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal_set_pres_amount as subtotal_pres_amount,\n subtotal_set_pres_currency_code as subtotal_pres_currency_code,\n subtotal_set_shop_amount as subtotal_shop_amount,\n subtotal_set_shop_currency_code as subtotal_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n quantity,\n refund_id,\n lower(restock_type) as restock_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_level": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_level.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_level.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_level"], "alias": "stg_shopify_gql__inventory_level", "checksum": {"name": "sha256", "checksum": "666a85a3945cef763805af14862e54687fbadf91916472cc6858e442ff60cf23"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory level represents the quantities of an inventory item for a location. Each inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_level_id`, `inventory_item_id`, `location_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3676677, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_level_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_shopify_gql__inventory_level_tmp')),\n staging_columns=get_graphql_inventory_level_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_level_id,\n inventory_item_id,\n location_id,\n can_deactivate,\n deactivation_alert,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'inventory_item_id', 'location_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_level_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_level_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_level.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n can_deactivate\n \n as \n \n can_deactivate\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deactivation_alert\n \n as \n \n deactivation_alert\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_level_id,\n inventory_item_id,\n location_id,\n can_deactivate,\n deactivation_alert,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_item_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(location_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__shop": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__shop", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__shop.sql", "original_file_path": "models/graphql/stg_shopify_gql__shop.sql", "unique_id": "model.shopify_source.stg_shopify_gql__shop", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__shop"], "alias": "stg_shopify_gql__shop", "checksum": {"name": "sha256", "checksum": "b0950c23a4aef6080249618f83c620290043117629346a3efd333ad95e6e0d90"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `shop_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_checkout_api_supported": {"name": "has_checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_password_enabled": {"name": "is_password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_setup_required": {"name": "is_setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_shipping_taxes": {"name": "has_shipping_taxes", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included_in_price": {"name": "has_taxes_included_in_price", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_abbreviation": {"name": "timezone_abbreviation", "description": "The shop's time zone abbreviation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset": {"name": "timezone_offset", "description": "The shop's time zone offset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset_minutes": {"name": "timezone_offset_minutes", "description": "The shop's time zone offset expressed as a number of minutes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3965967, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__shop_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_shopify_gql__shop_tmp')),\n staging_columns=get_graphql_shop_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n billing_address_address_1 as address_1,\n billing_address_address_2 as address_2,\n billing_address_city as city,\n billing_address_province as province,\n billing_address_province_code as province_code,\n billing_address_country_code_v_2 as country, -- in REST API country = code\n billing_address_country_code_v_2 as country_code,\n billing_address_country as country_name,\n billing_address_zip as zip,\n billing_address_latitude as latitude,\n billing_address_longitude as longitude,\n currency_code as currency,\n {{ shopify_source.json_to_string(\"enabled_presentment_currencies\", source_columns_in_relation) }} as enabled_presentment_currencies,\n contact_email as customer_email,\n email,\n primary_domain_host as domain,\n billing_address_phone as phone,\n timezone_abbreviation,\n {# timezone_offset is formatted like -0400 instead of -04:00 #}\n timezone_offset, \n timezone_offset_minutes, \n iana_timezone, \n primary_domain_localization_default_locale as primary_locale,\n weight_unit,\n myshopify_domain,\n shop_owner_name as shop_owner,\n tax_shipping as has_shipping_taxes,\n coalesce(taxes_included, false) as has_taxes_included_in_price,\n features_storefront as has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n currency_formats_money_format as money_format,\n currency_formats_money_in_emails_format as money_in_emails_format,\n currency_formats_money_with_currency_format as money_with_currency_format,\n currency_formats_money_with_currency_in_emails_format as money_with_currency_in_emails_format,\n plan_display_name,\n password_enabled as is_password_enabled,\n setup_required as is_setup_required,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__shop_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_shop_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__shop_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__shop.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code_v_2\n \n as \n \n billing_address_country_code_v_2\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n checkout_api_supported\n \n as \n \n checkout_api_supported\n \n, \n \n \n contact_email\n \n as \n \n contact_email\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n currency_formats_money_format\n \n as \n \n currency_formats_money_format\n \n, \n \n \n currency_formats_money_in_emails_format\n \n as \n \n currency_formats_money_in_emails_format\n \n, \n \n \n currency_formats_money_with_currency_format\n \n as \n \n currency_formats_money_with_currency_format\n \n, \n \n \n currency_formats_money_with_currency_in_emails_format\n \n as \n \n currency_formats_money_with_currency_in_emails_format\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n enabled_presentment_currencies\n \n as \n \n enabled_presentment_currencies\n \n, \n \n \n features_storefront\n \n as \n \n features_storefront\n \n, \n \n \n iana_timezone\n \n as \n \n iana_timezone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n myshopify_domain\n \n as \n \n myshopify_domain\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n password_enabled\n \n as \n \n password_enabled\n \n, \n \n \n plan_display_name\n \n as \n \n plan_display_name\n \n, \n \n \n primary_domain_host\n \n as \n \n primary_domain_host\n \n, \n \n \n primary_domain_localization_default_locale\n \n as \n \n primary_domain_localization_default_locale\n \n, \n \n \n setup_required\n \n as \n \n setup_required\n \n, \n \n \n shop_owner_name\n \n as \n \n shop_owner_name\n \n, \n \n \n tax_shipping\n \n as \n \n tax_shipping\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n timezone_abbreviation\n \n as \n \n timezone_abbreviation\n \n, \n \n \n timezone_offset\n \n as \n \n timezone_offset\n \n, \n \n \n timezone_offset_minutes\n \n as \n \n timezone_offset_minutes\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n billing_address_address_1 as address_1,\n billing_address_address_2 as address_2,\n billing_address_city as city,\n billing_address_province as province,\n billing_address_province_code as province_code,\n billing_address_country_code_v_2 as country, -- in REST API country = code\n billing_address_country_code_v_2 as country_code,\n billing_address_country as country_name,\n billing_address_zip as zip,\n billing_address_latitude as latitude,\n billing_address_longitude as longitude,\n currency_code as currency,\n enabled_presentment_currencies as enabled_presentment_currencies,\n contact_email as customer_email,\n email,\n primary_domain_host as domain,\n billing_address_phone as phone,\n timezone_abbreviation,\n \n timezone_offset, \n timezone_offset_minutes, \n iana_timezone, \n primary_domain_localization_default_locale as primary_locale,\n weight_unit,\n myshopify_domain,\n shop_owner_name as shop_owner,\n tax_shipping as has_shipping_taxes,\n coalesce(taxes_included, false) as has_taxes_included_in_price,\n features_storefront as has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n currency_formats_money_format as money_format,\n currency_formats_money_in_emails_format as money_in_emails_format,\n currency_formats_money_with_currency_format as money_with_currency_format,\n currency_formats_money_with_currency_in_emails_format as money_with_currency_in_emails_format,\n plan_display_name,\n password_enabled as is_password_enabled,\n setup_required as is_setup_required,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__abandoned_checkout_discount_code"], "alias": "stg_shopify_gql__abandoned_checkout_discount_code", "checksum": {"name": "sha256", "checksum": "0c42da3c30c3c151bce61bb481405da53967b9b43818d4d74ce29d238f4a9b57"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Abandoned checkouts that applied a discount code.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `checkout_id`, `code`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the discount codes from abandoned checkouts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.266278, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__abandoned_checkout_discount_code_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_shopify_gql__abandoned_checkout_discount_code_tmp')),\n staging_columns=get_graphql_abandoned_checkout_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index,\n {{ dbt_utils.generate_surrogate_key(['checkout_id', 'code', 'source_relation']) }} as unique_key\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index,\n md5(cast(coalesce(cast(checkout_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(code as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__location": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__location", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__location.sql", "original_file_path": "models/graphql/stg_shopify_gql__location.sql", "unique_id": "model.shopify_source.stg_shopify_gql__location", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__location"], "alias": "stg_shopify_gql__location", "checksum": {"name": "sha256", "checksum": "8b73ec5a42911c795216811ac8867c5c3d611587e19aa46f698ed21e0802e7df"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `location_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in, this matches the REST API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy": {"name": "is_legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3701642, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__location_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_shopify_gql__location_tmp')),\n staging_columns=get_graphql_location_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n is_active,\n address_1,\n address_2,\n city,\n country_code as country, -- match REST API format\n country_code,\n country as country_name,\n is_fulfillment_service as is_legacy,\n phone,\n province,\n province_code,\n zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__location_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_location_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__location_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__location.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__location_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\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_code\n \n as \n \n country_code\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_active\n \n as \n \n is_active\n \n, \n \n \n is_fulfillment_service\n \n as \n \n is_fulfillment_service\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n is_active,\n address_1,\n address_2,\n city,\n country_code as country, -- match REST API format\n country_code,\n country as country_name,\n is_fulfillment_service as is_legacy,\n phone,\n province,\n province_code,\n zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__transaction", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__transaction.sql", "original_file_path": "models/graphql/stg_shopify_gql__transaction.sql", "unique_id": "model.shopify_source.stg_shopify_gql__transaction", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__transaction"], "alias": "stg_shopify_gql__transaction", "checksum": {"name": "sha256", "checksum": "7424657329c3c4945c6c79b2326dd4991efaf952abff49c191f08dd9ccb5587b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `transaction_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of the transaction in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three letter currency code of the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of the transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three letter currency code of the shop's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.4008274, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__transaction_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_shopify_gql__transaction_tmp')),\n staging_columns=get_graphql_transaction_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_shop_amount as amount_shop,\n device_id, -- Will be included in 2025-07 release of GraphQL API\n gateway,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_currency_code as amount_shop_currency_code,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n lower(kind) as kind, -- lower in REST api\n {{ shopify_source.json_to_string(\"receipt_json\", source_columns_in_relation) }} as receipt,\n currency_exchange_id, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_adjustment, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_original_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_final_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_currency, -- Will be included in 2025-07 release of GraphQL API\n error_code,\n lower(status) as status, -- lower in REST api\n staff_member_id as user_id,\n authorization_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(authorization_expires_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as authorization_expires_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('transaction_pass_through_columns') }}\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount_set_pres_amount\n \n as \n \n amount_set_pres_amount\n \n, \n \n \n amount_set_pres_currency_code\n \n as \n \n amount_set_pres_currency_code\n \n, \n \n \n amount_set_shop_amount\n \n as \n \n amount_set_shop_amount\n \n, \n \n \n amount_set_shop_currency_code\n \n as \n \n amount_set_shop_currency_code\n \n, \n \n \n authorization_code\n \n as \n \n authorization_code\n \n, \n \n \n authorization_expires_at\n \n as \n \n authorization_expires_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n error_code\n \n as \n \n error_code\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n payment_avs_result_code\n \n as \n \n payment_avs_result_code\n \n, \n \n \n payment_credit_card_bin\n \n as \n \n payment_credit_card_bin\n \n, \n \n \n payment_credit_card_company\n \n as \n \n payment_credit_card_company\n \n, \n \n \n payment_credit_card_number\n \n as \n \n payment_credit_card_number\n \n, \n \n \n payment_cvv_result_code\n \n as \n \n payment_cvv_result_code\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n cast(null as TEXT) as \n \n receipt_json\n \n , \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n currency_exchange_id\n \n as \n \n currency_exchange_id\n \n, \n \n \n currency_exchange_adjustment\n \n as \n \n currency_exchange_adjustment\n \n, \n \n \n currency_exchange_original_amount\n \n as \n \n currency_exchange_original_amount\n \n, \n \n \n currency_exchange_final_amount\n \n as \n \n currency_exchange_final_amount\n \n, \n \n \n currency_exchange_currency\n \n as \n \n currency_exchange_currency\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_shop_amount as amount_shop,\n device_id, -- Will be included in 2025-07 release of GraphQL API\n gateway,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_currency_code as amount_shop_currency_code,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n lower(kind) as kind, -- lower in REST api\n receipt_json as receipt,\n currency_exchange_id, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_adjustment, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_original_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_final_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_currency, -- Will be included in 2025-07 release of GraphQL API\n error_code,\n lower(status) as status, -- lower in REST api\n staff_member_id as user_id,\n authorization_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(authorization_expires_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as authorization_expires_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_media.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_media"], "alias": "stg_shopify_gql__product_media", "checksum": {"name": "sha256", "checksum": "cdb03869e9ddfe19b2ce602f5a435a4dd2c24e9ef9e9f38fa6417a3ffaf4e1d9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id`, `media_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3743496, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_media_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_shopify_gql__product_media_tmp')),\n staging_columns=get_graphql_product_media_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n product_id,\n media_id,\n source_relation, \n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n {{ dbt_utils.generate_surrogate_key(['product_id', 'media_id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n media_id,\n source_relation, \n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n md5(cast(coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_variant.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_variant.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_variant"], "alias": "stg_shopify_gql__product_variant", "checksum": {"name": "sha256", "checksum": "c7030869bd75cbabff68beaf7e71249275594b03fc2b06429962e8c596ba07de"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product variant in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `variant_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_available_for_sale": {"name": "is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_components_required": {"name": "has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3897383, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_variant_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_shopify_gql__product_variant_tmp')),\n staging_columns=get_graphql_product_variant_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n taxable as is_taxable,\n barcode,\n inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n tax_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('product_variant_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_variant_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n available_for_sale\n \n as \n \n available_for_sale\n \n, \n \n \n barcode\n \n as \n \n barcode\n \n, \n \n \n compare_at_price\n \n as \n \n compare_at_price\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_policy\n \n as \n \n inventory_policy\n \n, \n \n \n inventory_quantity\n \n as \n \n inventory_quantity\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n position\n \n as \n \n position\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n requires_components\n \n as \n \n requires_components\n \n, \n \n \n sellable_online_quantity\n \n as \n \n sellable_online_quantity\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tax_code\n \n as \n \n tax_code\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 \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n taxable as is_taxable,\n barcode,\n inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n tax_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_image": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_image", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__media_image.sql", "original_file_path": "models/graphql/stg_shopify_gql__media_image.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_image", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__media_image"], "alias": "stg_shopify_gql__media_image", "checksum": {"name": "sha256", "checksum": "69407476920c94773e783d596ed84aaedfefb3524efba4a654239771ec7bad8f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing image-specific properties for media assets.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `media_id`, `image_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.372046, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__media_image_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__media_image_tmp')),\n staging_columns=get_graphql_media_image_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['media_id', 'image_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__media_image_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_media_image_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__media_image.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation,\n md5(cast(coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(image_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__abandoned_checkout.sql", "original_file_path": "models/graphql/stg_shopify_gql__abandoned_checkout.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__abandoned_checkout"], "alias": "stg_shopify_gql__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "07a4852ed7c97ff18d1a526ca4d4f355ab85f81fc1e7cc652030f6a39732159a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `checkout_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_shop_amount": {"name": "total_duties_shop_amount", "description": "The total duties of the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_pres_amount": {"name": "total_duties_pres_amount", "description": "The total duties of the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_shop_currency_code": {"name": "total_duties_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_pres_currency_code": {"name": "total_duties_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_amount": {"name": "total_line_items_price_shop_amount", "description": "The sum of the prices of all line items in the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_amount": {"name": "total_line_items_price_pres_amount", "description": "The sum of the prices of all line items in the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_currency_code": {"name": "total_line_items_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_currency_code": {"name": "total_line_items_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The sum of all the taxes applied to the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The sum of all the taxes applied to the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "completed_at": {"name": "completed_at", "description": "The date and time when the buyer completed the checkout. Null if the checkout has not been completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The price of the checkout before shipping and taxes in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The price of the checkout before shipping and taxes in *presentment* currencyy. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.265279, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__abandoned_checkout_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_shopify_gql__abandoned_checkout_tmp')),\n staging_columns=get_graphql_abandoned_checkout_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n customer_id,\n id as checkout_id,\n name,\n note,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n taxes_included as has_taxes_included,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_duties_set_shop_amount as total_duties_shop_amount,\n total_duties_set_shop_currency_code as total_duties_shop_currency_code,\n total_duties_set_pres_amount as total_duties_pres_amount,\n total_duties_set_pres_currency_code as total_duties_pres_currency_code,\n total_line_items_price_set_shop_amount as total_line_items_price_shop_amount,\n total_line_items_price_set_shop_currency_code as total_line_items_price_shop_currency_code,\n total_line_items_price_set_pres_amount as total_line_items_price_pres_amount,\n total_line_items_price_set_pres_currency_code as total_line_items_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(completed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as completed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_abandoned_checkout_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n abandoned_checkout_url\n \n as \n \n abandoned_checkout_url\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n completed_at\n \n as \n \n completed_at\n \n, \n \n \n customer_id\n \n as \n \n customer_id\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 note\n \n as \n \n note\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n subtotal_price_set_pres_amount\n \n as \n \n subtotal_price_set_pres_amount\n \n, \n \n \n subtotal_price_set_pres_currency_code\n \n as \n \n subtotal_price_set_pres_currency_code\n \n, \n \n \n subtotal_price_set_shop_amount\n \n as \n \n subtotal_price_set_shop_amount\n \n, \n \n \n subtotal_price_set_shop_currency_code\n \n as \n \n subtotal_price_set_shop_currency_code\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n total_discount_set_pres_amount\n \n as \n \n total_discount_set_pres_amount\n \n, \n \n \n total_discount_set_pres_currency_code\n \n as \n \n total_discount_set_pres_currency_code\n \n, \n \n \n total_discount_set_shop_amount\n \n as \n \n total_discount_set_shop_amount\n \n, \n \n \n total_discount_set_shop_currency_code\n \n as \n \n total_discount_set_shop_currency_code\n \n, \n \n \n total_duties_set_pres_amount\n \n as \n \n total_duties_set_pres_amount\n \n, \n \n \n total_duties_set_pres_currency_code\n \n as \n \n total_duties_set_pres_currency_code\n \n, \n \n \n total_duties_set_shop_amount\n \n as \n \n total_duties_set_shop_amount\n \n, \n \n \n total_duties_set_shop_currency_code\n \n as \n \n total_duties_set_shop_currency_code\n \n, \n \n \n total_line_items_price_set_pres_amount\n \n as \n \n total_line_items_price_set_pres_amount\n \n, \n \n \n total_line_items_price_set_pres_currency_code\n \n as \n \n total_line_items_price_set_pres_currency_code\n \n, \n \n \n total_line_items_price_set_shop_amount\n \n as \n \n total_line_items_price_set_shop_amount\n \n, \n \n \n total_line_items_price_set_shop_currency_code\n \n as \n \n total_line_items_price_set_shop_currency_code\n \n, \n \n \n total_price_set_pres_amount\n \n as \n \n total_price_set_pres_amount\n \n, \n \n \n total_price_set_pres_currency_code\n \n as \n \n total_price_set_pres_currency_code\n \n, \n \n \n total_price_set_shop_amount\n \n as \n \n total_price_set_shop_amount\n \n, \n \n \n total_price_set_shop_currency_code\n \n as \n \n total_price_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n customer_id,\n id as checkout_id,\n name,\n note,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n taxes_included as has_taxes_included,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_duties_set_shop_amount as total_duties_shop_amount,\n total_duties_set_shop_currency_code as total_duties_shop_currency_code,\n total_duties_set_pres_amount as total_duties_pres_amount,\n total_duties_set_pres_currency_code as total_duties_pres_currency_code,\n total_line_items_price_set_shop_amount as total_line_items_price_shop_amount,\n total_line_items_price_set_shop_currency_code as total_line_items_price_shop_currency_code,\n total_line_items_price_set_pres_amount as total_line_items_price_pres_amount,\n total_line_items_price_set_pres_currency_code as total_line_items_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n cast(\n cast(cast(completed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as completed_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection"], "alias": "stg_shopify_gql__collection", "checksum": {"name": "sha256", "checksum": "f3cc283d3c7ac17d0c9b19de8ef5940574461038364cc5f2e02db114340908bb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\"). \n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "rule_logic": {"name": "rule_logic", "description": "Whether the `rules` are disjunctive (logical `OR`) or conjunctive (logical `AND`)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values incline - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.267379, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_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_shopify_gql__collection_tmp')),\n staging_columns=get_graphql_collection_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when applied_disjunctively is null then null\n when applied_disjunctively then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n sort_order,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__collection.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n applied_disjunctively\n \n as \n \n applied_disjunctively\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n sort_order\n \n as \n \n sort_order\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 \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when applied_disjunctively is null then null\n when applied_disjunctively then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n sort_order,\n title,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__refund", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__refund.sql", "original_file_path": "models/graphql/stg_shopify_gql__refund.sql", "unique_id": "model.shopify_source.stg_shopify_gql__refund", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__refund"], "alias": "stg_shopify_gql__refund", "checksum": {"name": "sha256", "checksum": "dcdb84868e1656f35342c6bc14ef62d6604ad84a1dffd60a6b759b4e9446bb12"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a refund within Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `refund_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "return_id": {"name": "return_id", "description": "Reference to the return which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_pres_amount": {"name": "total_refunded_pres_amount", "description": "The total amount across all transactions for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_pres_currency_code": {"name": "total_refunded_pres_currency_code", "description": "The three letter currency code for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_shop_amount": {"name": "total_refunded_shop_amount", "description": "The total amount across all transactions for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_shop_currency_code": {"name": "total_refunded_shop_currency_code", "description": "The three letter currency code for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3940556, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__refund_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_shopify_gql__refund_tmp')),\n staging_columns=get_graphql_refund_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as refund_id,\n note,\n order_id,\n staff_member_id as user_id,\n return_id,\n total_refunded_set_pres_amount as total_refunded_pres_amount,\n total_refunded_set_pres_currency_code as total_refunded_pres_currency_code,\n total_refunded_set_shop_amount as total_refunded_shop_amount,\n total_refunded_set_shop_currency_code as total_refunded_shop_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__refund.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n return_id\n \n as \n \n return_id\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n total_refunded_set_pres_amount\n \n as \n \n total_refunded_set_pres_amount\n \n, \n \n \n total_refunded_set_pres_currency_code\n \n as \n \n total_refunded_set_pres_currency_code\n \n, \n \n \n total_refunded_set_shop_amount\n \n as \n \n total_refunded_set_shop_amount\n \n, \n \n \n total_refunded_set_shop_currency_code\n \n as \n \n total_refunded_set_shop_currency_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as refund_id,\n note,\n order_id,\n staff_member_id as user_id,\n return_id,\n total_refunded_set_pres_amount as total_refunded_pres_amount,\n total_refunded_set_pres_currency_code as total_refunded_pres_currency_code,\n total_refunded_set_shop_amount as total_refunded_shop_amount,\n total_refunded_set_shop_currency_code as total_refunded_shop_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_application": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_application.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_application.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_application", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_application"], "alias": "stg_shopify_gql__discount_application", "checksum": {"name": "sha256", "checksum": "4bf285a6880d9d733f1165b4e3f0f50282d80b3e33bb5de1eba42941ef54a367"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing discount applications, which define how discounts were applied at the order level.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to all line items (`all`) or only those that are specifically entitled (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount value is a `percentage` or `fixed_amount`. If `target_type` is `shipping_line`, only `percentage` is accepted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3512506, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_application_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_shopify_gql__discount_application_tmp')),\n staging_columns=get_graphql_discount_application_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n lower(allocation_method) as allocation_method,\n upper(code) as code,\n index,\n order_id,\n lower(target_selection) as target_selection,\n lower(target_type) as target_type,\n value_amount,\n value_percentage,\n value_currency_code,\n case \n when value_percentage is not null then 'percentage'\n when lower(target_type) = 'shipping_line' then 'shipping'\n when value_amount is not null then 'fixed_amount'\n else null end as value_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['index', 'order_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_application_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_application.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocation_method\n \n as \n \n allocation_method\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n target_selection\n \n as \n \n target_selection\n \n, \n \n \n target_type\n \n as \n \n target_type\n \n, \n \n \n value_amount\n \n as \n \n value_amount\n \n, \n \n \n value_currency_code\n \n as \n \n value_currency_code\n \n, \n \n \n value_percentage\n \n as \n \n value_percentage\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n lower(allocation_method) as allocation_method,\n upper(code) as code,\n index,\n order_id,\n lower(target_selection) as target_selection,\n lower(target_type) as target_type,\n value_amount,\n value_percentage,\n value_currency_code,\n case \n when value_percentage is not null then 'percentage'\n when lower(target_type) = 'shipping_line' then 'shipping'\n when value_amount is not null then 'fixed_amount'\n else null end as value_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_tracking_info"], "alias": "stg_shopify_gql__fulfillment_tracking_info", "checksum": {"name": "sha256", "checksum": "b81b5a9a260e0144655ecdf19307a4fd7bc3e27d08f38b679573649357273654"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents tracking information associated with a fulfillment. Used by Shopify to generate clickable tracking numbers and delivery updates.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_id": {"name": "fulfillment_id", "description": "The unique identifier of the fulfillment this tracking info belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company. For supported carriers, Shopify automatically builds tracking URLs and may update the shipment status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Tracking number for the fulfillment. If a known tracking company is specified, or the number matches a known format, Shopify may auto-generate a tracking URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_url": {"name": "tracking_url", "description": "Direct URL to track the fulfillment. This is displayed in the Shopify admin and customer notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the tracking information associated with a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3649247, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_tracking_info', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_tracking_info_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_shopify_gql__fulfillment_tracking_info_tmp')),\n staging_columns=get_graphql_fulfillment_tracking_info_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n fulfillment_id,\n index,\n company as tracking_company,\n number as tracking_number,\n url as tracking_url,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['fulfillment_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_tracking_info_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n url\n \n as \n \n url\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n fulfillment_id,\n index,\n company as tracking_company,\n number as tracking_number,\n url as tracking_url,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(fulfillment_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_discount_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_discount_code"], "alias": "stg_shopify_gql__order_discount_code", "checksum": {"name": "sha256", "checksum": "46169dbd62882ab67770a3a78a62349267dba7b5a5a0ce940de18b35209b060c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Discount codes placed on orders.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.377847, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_discount_code_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_shopify_gql__order_discount_code_tmp')),\n staging_columns=get_graphql_order_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_basic": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_basic.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_basic.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_basic"], "alias": "stg_shopify_gql__discount_code_basic", "checksum": {"name": "sha256", "checksum": "6d6b5c65be3377b64f2b0a2c42b7df1f71649dd2aaa52ba1464ebec3e2f7ef5e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata about basic discount codes created by merchants.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.354712, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_basic_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_shopify_gql__discount_code_basic_tmp')),\n staging_columns=get_graphql_discount_code_basic_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_basic_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_basic_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_basic.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_note_attribute": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_note_attribute.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_note_attribute.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_note_attribute"], "alias": "stg_shopify_gql__order_note_attribute", "checksum": {"name": "sha256", "checksum": "7873d5d4778fda0c06ad067718d305252d77e07908f715611688af7d7fb948d8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing custom attributes placed on orders.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `name`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3815234, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_note_attribute_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_shopify_gql__order_note_attribute_tmp')),\n staging_columns=get_graphql_order_note_attribute_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'name', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_note_attribute_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_note_attribute_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_note_attribute.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tender_transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__tender_transaction.sql", "original_file_path": "models/graphql/stg_shopify_gql__tender_transaction.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__tender_transaction"], "alias": "stg_shopify_gql__tender_transaction", "checksum": {"name": "sha256", "checksum": "10ec55a65a5226c5e72a4837722d9753808b9fab6f01ea59b97f8b9733ff6e95"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `transaction_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3988616, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__tender_transaction_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_shopify_gql__tender_transaction_tmp')),\n staging_columns=get_graphql_tender_transaction_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency_code as currency,\n payment_method,\n remote_reference,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__tender_transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_tender_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__tender_transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n payment_method\n \n as \n \n payment_method\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n remote_reference\n \n as \n \n remote_reference\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency_code as currency,\n payment_method,\n remote_reference,\n user_id,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer"], "alias": "stg_shopify_gql__customer", "checksum": {"name": "sha256", "checksum": "ee040da4cd184398d97000afa6857728219292a2b055904acf172c7d3505cd03"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.2534714, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_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_shopify_gql__customer_tmp')),\n staging_columns=get_graphql_customer_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n lower(email_marketing_consent_state) as marketing_consent_state,\n lower(email_marketing_consent_opt_in_level) as marketing_opt_in_level,\n {{ shopify_source.fivetran_convert_timezone(column='cast(email_marketing_consent_updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as marketing_consent_updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n {{ fivetran_utils.fill_pass_through_columns('customer_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n email_marketing_consent_opt_in_level\n \n as \n \n email_marketing_consent_opt_in_level\n \n, \n \n \n email_marketing_consent_state\n \n as \n \n email_marketing_consent_state\n \n, \n \n \n email_marketing_consent_updated_at\n \n as \n \n email_marketing_consent_updated_at\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n orders_count\n \n as \n \n orders_count\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n tax_exempt\n \n as \n \n tax_exempt\n \n, \n \n \n total_spent\n \n as \n \n total_spent\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n verified_email\n \n as \n \n verified_email\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n lower(email_marketing_consent_state) as marketing_consent_state,\n lower(email_marketing_consent_opt_in_level) as marketing_opt_in_level,\n cast(\n cast(cast(email_marketing_consent_updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as marketing_consent_updated_at,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_tag"], "alias": "stg_shopify_gql__product_tag", "checksum": {"name": "sha256", "checksum": "7f63c730d6dca3cbed580fdb8e75a6f808816c7d132c861e57e18b7600c7cd43"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the product.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3915856, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_tag_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_shopify_gql__product_tag_tmp')),\n staging_columns=get_graphql_product_tag_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['product_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_tag"], "alias": "stg_shopify_gql__order_tag", "checksum": {"name": "sha256", "checksum": "1b21c4d52ba47cab2b79f8ed6d47375b9c817395c7632a7ab2816bff9f78e77b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the order.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3865116, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_tag_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_shopify_gql__order_tag_tmp')),\n staging_columns=get_graphql_order_tag_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__metafield": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__metafield", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__metafield.sql", "original_file_path": "models/graphql/stg_shopify_gql__metafield.sql", "unique_id": "model.shopify_source.stg_shopify_gql__metafield", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__metafield"], "alias": "stg_shopify_gql__metafield", "checksum": {"name": "sha256", "checksum": "4396fe0f88e8e01449008a5e44f202694eca0ffff8fd9a6bf7fb8fc3ce6df932"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context. \n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `metafield_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_id": {"name": "metafield_id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource_id": {"name": "owner_resource_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_reference": {"name": "metafield_reference", "description": "Combination of the namespace and key columns. This field is key for metafield mapping in downstream models.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating the most up to date record identified by the most recent updated_at field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3734314, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_metafield', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__metafield_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_shopify_gql__metafield_tmp')),\n staging_columns=get_graphql_metafield_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(type) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n lower({{ dbt.concat([\"namespace\",\"'_'\",\"key\"]) }}) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_metafield_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt.concat", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__metafield.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n 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 id\n \n as \n \n id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n namespace\n \n as \n \n namespace\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n owner_resource\n \n as \n \n owner_resource\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(type) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n lower(namespace || '_' || key) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_variant_media.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_variant_media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_variant_media"], "alias": "stg_shopify_gql__product_variant_media", "checksum": {"name": "sha256", "checksum": "0127c3b8b208869da17e7b9e75af811a5ece076af61f156cba239e76cba5337e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_variant_id`, `media_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3906221, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_product_variant_media', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_variant_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__product_variant_media_tmp')),\n staging_columns=get_graphql_product_variant_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['product_variant_id', 'media_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_variant_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_variant_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation,\n md5(cast(coalesce(cast(product_variant_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection_product.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection_product.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_product", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection_product"], "alias": "stg_shopify_gql__collection_product", "checksum": {"name": "sha256", "checksum": "f1dafc3138b77c46252e3d61f0ce084cdd24ccdd94e56f0212db3aca550e9aa6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id`, `product_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.2683308, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_product_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_shopify_gql__collection_product_tmp')),\n staging_columns=get_graphql_collection_product_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['collection_id', 'product_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__collection_product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n collection_id\n \n as \n \n collection_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(collection_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_quantity": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_quantity.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_quantity.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_quantity"], "alias": "stg_shopify_gql__inventory_quantity", "checksum": {"name": "sha256", "checksum": "bf44e42da315e47a9d9b7fa5b9e4cad92ba2f087de9c02766a15811a1c5dfb55"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The total quantity of the inventory item available at all locations.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_quantity_id`, `inventory_level_id`, `inventory_item_id`, `inventory_state_name`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity_id": {"name": "inventory_quantity_id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_state_name": {"name": "inventory_state_name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3686604, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_quantity_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_shopify_gql__inventory_quantity_tmp')),\n staging_columns=get_graphql_inventory_quantity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'inventory_item_id', 'inventory_level_id', 'name', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_quantity_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_quantity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_quantity.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_level_id\n \n as \n \n inventory_level_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_item_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_level_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_event": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_event.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_event.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_event"], "alias": "stg_shopify_gql__fulfillment_event", "checksum": {"name": "sha256", "checksum": "e8a4a0010c4cfa96bfd6c5a789ddf6df815ada5e397d8ee06d7480eb9a6150ba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_event_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_event_id": {"name": "fulfillment_event_id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3616958, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_event_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_shopify_gql__fulfillment_event_tmp')),\n staging_columns=get_graphql_fulfillment_event_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n lower(status) as status,\n message,\n {{ shopify_source.fivetran_convert_timezone(column='cast(estimated_delivery_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as estimated_delivery_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(happened_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_event_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_event.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\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 created_at\n \n as \n \n created_at\n \n, \n \n \n estimated_delivery_at\n \n as \n \n estimated_delivery_at\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n happened_at\n \n as \n \n happened_at\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 longitude\n \n as \n \n longitude\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n lower(status) as status,\n message,\n cast(\n cast(cast(estimated_delivery_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as estimated_delivery_at,\n cast(\n cast(cast(happened_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_free_shipping.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_free_shipping.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_free_shipping"], "alias": "stg_shopify_gql__discount_code_free_shipping", "checksum": {"name": "sha256", "checksum": "cdae529b92ea53946c636f7f8bcb98c4f7ff4b853caa5dad542cbf5d34b0adfd"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for free shipping discount codes in Shopify, where shipping costs are discounted based on qualifying conditions.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3577893, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_free_shipping_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_shopify_gql__discount_code_free_shipping_tmp')),\n staging_columns=get_graphql_discount_code_free_shipping_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_free_shipping_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_free_shipping_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_free_shipping.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_address": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_address.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_address.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_address", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_address"], "alias": "stg_shopify_gql__customer_address", "checksum": {"name": "sha256", "checksum": "cca4e8b6590274294b6e15baebf9cd8153a1a9ab4925ab353bc35319ef93dda9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a customer's mailing address and includes additional geographic metadata.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_address_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_address_id": {"name": "customer_address_id", "description": "A globally unique identifier for the customer address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer to whom this address belongs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The first line of the address (e.g., street address or PO Box).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The second line of the address (e.g., apartment, suite, or unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The name of the city, district, village, or town for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The company or organization associated with the customer at this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The full country name for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter ISO country code for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_default": {"name": "is_default", "description": "Indicates if this address is the default shipping address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The full name of the customer, derived from first and last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer\u2019s phone number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The name of the region, state, or province for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The standardized zone or province code for the region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code of the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "validation_result_summary": {"name": "validation_result_summary", "description": "A summary of address validation results (e.g., match confidence or status).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The timezone associated with the address, if available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_coordinates_validated": {"name": "has_coordinates_validated", "description": "Indicates whether the latitude and longitude coordinates were validated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.406158, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_address_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__customer_address_tmp')),\n staging_columns=get_graphql_customer_address_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_address_id,\n customer_id,\n address_1,\n address_2,\n city,\n company,\n country,\n country_code,\n first_name,\n is_default,\n last_name,\n latitude,\n longitude,\n name,\n phone,\n province,\n province_code,\n zip,\n validation_result_summary,\n timezone,\n coordinates_validated as has_coordinates_validated,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_address_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_address.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n is_default\n \n as \n \n is_default\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n latitude\n \n as \n \n latitude\n \n, \n \n \n longitude\n \n as \n \n longitude\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n zip\n \n as \n \n zip\n \n, \n \n \n validation_result_summary\n \n as \n \n validation_result_summary\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n coordinates_validated\n \n as \n \n coordinates_validated\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_address_id,\n customer_id,\n address_1,\n address_2,\n city,\n company,\n country,\n country_code,\n first_name,\n is_default,\n last_name,\n latitude,\n longitude,\n name,\n phone,\n province,\n province_code,\n zip,\n validation_result_summary,\n timezone,\n coordinates_validated as has_coordinates_validated,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_bxgy.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_bxgy.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_bxgy"], "alias": "stg_shopify_gql__discount_code_bxgy", "checksum": {"name": "sha256", "checksum": "8a278226cd258f939cddc99dc0bfaaf6eeb8173af7ecef73c6cee066cffb65d6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for Buy X Get Y-style discount codes in Shopify, where discounts are applied based on product quantity thresholds.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3562663, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_bxgy_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_shopify_gql__discount_code_bxgy_tmp')),\n staging_columns=get_graphql_discount_code_bxgy_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n total_sales_amount,\n total_sales_currency_code, \n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_bxgy_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_bxgy_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_bxgy.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n total_sales_amount,\n total_sales_currency_code, \n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_adjustment.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_adjustment.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_adjustment"], "alias": "stg_shopify_gql__order_adjustment", "checksum": {"name": "sha256", "checksum": "9ddd660936d0935e7496a6a0384b2fbb096e604fec6082d155ae5d6594d61a81"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_adjustment_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_id": {"name": "order_adjustment_id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three letter currency code for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three letter shop currency code of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_pres": {"name": "tax_amount_pres", "description": "The tax amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_pres_currency_code": {"name": "tax_amount_pres_currency_code", "description": "The three letter currency code for the tax of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_shop": {"name": "tax_amount_shop", "description": "The tax amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_shop_currency_code": {"name": "tax_amount_shop_currency_code", "description": "The three letter shop currency code of the tax for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.3768888, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_adjustment_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__order_adjustment_tmp')),\n staging_columns=get_graphql_order_adjustment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_amount as amount_shop,\n amount_set_shop_currency_code as amount_shop_currency_code,\n tax_amount_set_pres_amount as tax_amount_pres,\n tax_amount_set_pres_currency_code as tax_amount_pres_currency_code,\n tax_amount_set_shop_amount as tax_amount_shop,\n tax_amount_set_shop_currency_code as tax_amount_shop_currency_code,\n reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_adjustment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_adjustment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_adjustment.sql", "compiled": true, "compiled_code": "\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n amount_set_pres_amount\n \n as \n \n amount_set_pres_amount\n \n, \n \n \n amount_set_pres_currency_code\n \n as \n \n amount_set_pres_currency_code\n \n, \n \n \n amount_set_shop_amount\n \n as \n \n amount_set_shop_amount\n \n, \n \n \n amount_set_shop_currency_code\n \n as \n \n amount_set_shop_currency_code\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n tax_amount_set_pres_amount\n \n as \n \n tax_amount_set_pres_amount\n \n, \n \n \n tax_amount_set_pres_currency_code\n \n as \n \n tax_amount_set_pres_currency_code\n \n, \n \n \n tax_amount_set_shop_amount\n \n as \n \n tax_amount_set_shop_amount\n \n, \n \n \n tax_amount_set_shop_currency_code\n \n as \n \n tax_amount_set_shop_currency_code\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_amount as amount_shop,\n amount_set_shop_currency_code as amount_shop_currency_code,\n tax_amount_set_pres_amount as tax_amount_pres,\n tax_amount_set_pres_currency_code as tax_amount_pres_currency_code,\n tax_amount_set_shop_amount as tax_amount_shop,\n tax_amount_set_shop_currency_code as tax_amount_shop_currency_code,\n reason,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_redeem_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_redeem_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_redeem_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_redeem_code"], "alias": "stg_shopify_gql__discount_redeem_code", "checksum": {"name": "sha256", "checksum": "d67dd71e571048d9820f777d5b66057c66c157c43e2937fd7cd59bbf13b5a300"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each redeem code is tied to a parent discount and may be created by an app or manually.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This is updated asynchronously and may differ from real-time usage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (typically an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount the redeem code is associated with (e.g., `discount_code_basic`, `discount_code_app`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507520.358965, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_redeem_code_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_shopify_gql__discount_redeem_code_tmp')),\n staging_columns=get_graphql_discount_redeem_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_redeem_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_redeem_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_redeem_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_by_description\n \n as \n \n created_by_description\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_by_title\n \n as \n \n created_by_title\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n discount_type\n \n as \n \n discount_type\n \n, \n \n \n id\n \n as \n \n id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_redeem_code_tmp"], "alias": "stg_shopify_gql__discount_redeem_code_tmp", "checksum": {"name": "sha256", "checksum": "cfc36e942b2ec63cfed9b2ce3fffc11ae5f379cdd12ffb28389ed0380c25e6d0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.2873595, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_redeem_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_redeem_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_redeem_code"], ["shopify_graphql", "discount_redeem_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__refund_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__refund_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__refund_tmp"], "alias": "stg_shopify_gql__refund_tmp", "checksum": {"name": "sha256", "checksum": "a11a22eb9bcb9a62e27a0e2ce13c47296be38a753bd3a1fa9df5e8c90c1af4ab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.2964118, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "refund"], ["shopify_graphql", "refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__refund_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_bxgy_tmp"], "alias": "stg_shopify_gql__discount_code_bxgy_tmp", "checksum": {"name": "sha256", "checksum": "74f77e4738c5c72ca63e005803146b7cdce868cd42f4187da43c47e040a9a713"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.3052318, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_bxgy', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_bxgy_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_bxgy"], ["shopify_graphql", "discount_code_bxgy"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_tracking_info_tmp"], "alias": "stg_shopify_gql__fulfillment_tracking_info_tmp", "checksum": {"name": "sha256", "checksum": "916e15ae9d3b58b4bfaed65f98893baa84653e193472d33ec051a14323d7b859"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.314876, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_tracking_info', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_tracking_info', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_tracking_info_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_tracking_info"], ["shopify_graphql", "fulfillment_tracking_info"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_tmp"], "alias": "stg_shopify_gql__customer_tmp", "checksum": {"name": "sha256", "checksum": "cbad42ba9c8311e55176c04ed3a661a3cf4a5ac59514099a69a595235769a2a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.3239625, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer"], ["shopify_graphql", "customer"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_tmp"], "alias": "stg_shopify_gql__product_tmp", "checksum": {"name": "sha256", "checksum": "d6bdb88269a24c1e7e047ad5cbcd7cb41689fdfe4028c6b73feb2cf06f5d8c4e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.3326392, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product"], ["shopify_graphql", "product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_visit_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_visit_tmp"], "alias": "stg_shopify_gql__customer_visit_tmp", "checksum": {"name": "sha256", "checksum": "a6f824dc3840066caffed56e0389dd7ef63cfb7814e79f0dbedf937bc738e392"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.341363, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_customer_visit', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_visit', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_visit_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_visit"], ["shopify_graphql", "customer_visit"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__shop_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__shop_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__shop_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__shop_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__shop_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__shop_tmp"], "alias": "stg_shopify_gql__shop_tmp", "checksum": {"name": "sha256", "checksum": "484564c85bbddaca318f1165dc0418a31023ea29c6ff8bc0531246eeb8d59a1c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.4262502, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__shop_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='shop', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_shop_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "shop"], ["shopify_graphql", "shop"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__shop_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_shop_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_quantity_tmp"], "alias": "stg_shopify_gql__inventory_quantity_tmp", "checksum": {"name": "sha256", "checksum": "07d53773e990ce9f6350463bc39d7d11d10a77623f572ba7e12f9d4ec1fc637c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.434957, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_quantity', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_quantity_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_quantity"], ["shopify_graphql", "inventory_quantity"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_shipping_line_tmp"], "alias": "stg_shopify_gql__order_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "48a6b1d4908a3a78e6f338213ae2230d0666ea0fd398dc7df1ce269582c553a8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.4434857, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_shipping_line"], ["shopify_graphql", "order_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_tmp"], "alias": "stg_shopify_gql__collection_tmp", "checksum": {"name": "sha256", "checksum": "13622f8f6269a36bc80ce5b592234d5f1b7c88cbf80e19bf6d50aa4c8886d4ab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.452007, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection"], ["shopify_graphql", "collection"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__collection_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_collection_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_item_tmp"], "alias": "stg_shopify_gql__inventory_item_tmp", "checksum": {"name": "sha256", "checksum": "562f5900bff17e2074910b889c93f479d175ca8d45a1c3a94c7f1145632af195"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.4616485, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_item"], ["shopify_graphql", "inventory_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_basic_tmp"], "alias": "stg_shopify_gql__discount_code_basic_tmp", "checksum": {"name": "sha256", "checksum": "3d2c8273708359c8f712f46e5d5178c0d6807fa06cddfac2cef2890f360b6bc2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.4702797, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_basic', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_basic_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_basic"], ["shopify_graphql", "discount_code_basic"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_adjustment_tmp"], "alias": "stg_shopify_gql__order_adjustment_tmp", "checksum": {"name": "sha256", "checksum": "41de7ec16964a262f4fa0545875703abc0c7d188982b1b9697770663e0e5557c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.4786825, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_adjustment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_adjustment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_adjustment"], ["shopify_graphql", "order_adjustment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "compiled": true, "compiled_code": "\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_note_attribute_tmp"], "alias": "stg_shopify_gql__order_note_attribute_tmp", "checksum": {"name": "sha256", "checksum": "1dc3d9e025bc87c95c74672a8a46a3e9751b91727f7e8de84c5d5c4b0ec7bca9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.48721, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_note_attribute', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_note_attribute_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_note_attribute"], ["shopify_graphql", "order_note_attribute"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_application_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_application_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_application_tmp"], "alias": "stg_shopify_gql__discount_application_tmp", "checksum": {"name": "sha256", "checksum": "51b3cf65b837e23b8567427012151bc4daed3ddaa38887bf0f6ed09aa65f98d9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.4968731, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_application', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_application_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_application"], ["shopify_graphql", "discount_application"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_app_tmp"], "alias": "stg_shopify_gql__discount_code_app_tmp", "checksum": {"name": "sha256", "checksum": "42d515dfaa9edf7645c90b5d4e3fba1b10ce11c8e33e5f9004dc3286c70abbb5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.505455, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_discount_code_app', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_app', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_app_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_app"], ["shopify_graphql", "discount_code_app"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_shipping_tax_line_tmp"], "alias": "stg_shopify_gql__order_shipping_tax_line_tmp", "checksum": {"name": "sha256", "checksum": "2f563d319f6ab1e785c0c0dd8c46c7eb60b34036eab89dff6306ce7e0318dc2a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5143747, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_shipping_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_shipping_tax_line"], ["shopify_graphql", "order_shipping_tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_line_refund_tmp"], "alias": "stg_shopify_gql__order_line_refund_tmp", "checksum": {"name": "sha256", "checksum": "de5d8368b1e2f8a01f8457ecfb538f18f39940fbfd88a8bd4317449bdb3500d5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5229928, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line_refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_line_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_line_refund"], ["shopify_graphql", "order_line_refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__metafield_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__metafield_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__metafield_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__metafield_tmp"], "alias": "stg_shopify_gql__metafield_tmp", "checksum": {"name": "sha256", "checksum": "745867433e8c372b8247770c5511da696b44146d8a9cecbb805e2fbccc407b1b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.532867, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_metafield', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='metafield', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_metafield_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "metafield"], ["shopify_graphql", "metafield"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_metafield_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_line_tmp"], "alias": "stg_shopify_gql__order_line_tmp", "checksum": {"name": "sha256", "checksum": "8d070802154be87b0f6abc6a84d1cc04a7479c71e72d51f9c29e9b84ff0a4470"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5420523, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_line"], ["shopify_graphql", "order_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_variant_media_tmp"], "alias": "stg_shopify_gql__product_variant_media_tmp", "checksum": {"name": "sha256", "checksum": "a6a402d3eb1fc91386b58803aeea45dbfa70f93ad6fcc44aebe193e37428c941"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5510588, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_product_variant_media', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_variant_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_variant_media"], ["shopify_graphql", "product_variant_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_discount_code_tmp"], "alias": "stg_shopify_gql__order_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "e5f05cb907273a7d7faf0cb35b3f239d92e59bea6b53b3d9f874621d4702bacd"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5616653, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_discount_code"], ["shopify_graphql", "order_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_variant_tmp"], "alias": "stg_shopify_gql__product_variant_tmp", "checksum": {"name": "sha256", "checksum": "49b89b7bc716e35589007a5ab8431b1371c4a468f4be3bffbba33558f287c85b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5741842, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_variant_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_variant"], ["shopify_graphql", "product_variant"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_tmp"], "alias": "stg_shopify_gql__order_tmp", "checksum": {"name": "sha256", "checksum": "00d88df1afa1afc1c67823cb65c6c737c7efe99876be4543728c56578daa29fa"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5834537, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order"], ["shopify_graphql", "order"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__location_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__location_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__location_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__location_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__location_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__location_tmp"], "alias": "stg_shopify_gql__location_tmp", "checksum": {"name": "sha256", "checksum": "6e50fc60b6453e907f266a407a8ffd9c7e0509261b61e3a62d79bd98ff8f9d16"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.5924237, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__location_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='location', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_location_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "location"], ["shopify_graphql", "location"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__location_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_free_shipping_tmp"], "alias": "stg_shopify_gql__discount_code_free_shipping_tmp", "checksum": {"name": "sha256", "checksum": "de9a7bc807b211bfad12ecd0bbffc6f5566d4f52164b3bc66f5bb79a363ac4a1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6013317, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_free_shipping', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_free_shipping_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_free_shipping"], ["shopify_graphql", "discount_code_free_shipping"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tax_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__tax_line_tmp"], "alias": "stg_shopify_gql__tax_line_tmp", "checksum": {"name": "sha256", "checksum": "b797f714cca33152d58d9f9371337be2af75ba71868a9c645a5b661e30953bdb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6115732, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "tax_line"], ["shopify_graphql", "tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_order_line_item_tmp"], "alias": "stg_shopify_gql__fulfillment_order_line_item_tmp", "checksum": {"name": "sha256", "checksum": "7da21a799b42d6572274d5c708e6c1820d534868af0169a999f3ba0baa558cf0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6202376, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_order_line_item', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_order_line_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_order_line_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_order_line_item"], ["shopify_graphql", "fulfillment_order_line_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_product_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_product_tmp"], "alias": "stg_shopify_gql__collection_product_tmp", "checksum": {"name": "sha256", "checksum": "265042e513f9f41755e3d67cb838c5a4bc2a0f30f0005797170d61c7c68c506f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6293364, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection_product"], ["shopify_graphql", "collection_product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_tmp"], "alias": "stg_shopify_gql__fulfillment_tmp", "checksum": {"name": "sha256", "checksum": "33c816c7194073933556f8e74f281eaea2e3f3c728d0cef25ac3270e69ac46b3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6379426, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment"], ["shopify_graphql", "fulfillment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__abandoned_checkout_tmp"], "alias": "stg_shopify_gql__abandoned_checkout_tmp", "checksum": {"name": "sha256", "checksum": "447fcf5964f191e3a35aac2df0126f572f80174deefc22e167e089b2c072d3ad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.646772, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_tmp\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_abandoned_checkout_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "abandoned_checkout"], ["shopify_graphql", "abandoned_checkout"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_tag_tmp"], "alias": "stg_shopify_gql__order_tag_tmp", "checksum": {"name": "sha256", "checksum": "ef3af11883c240380fbddf262db8be9cd7d8008833e23746bc1c7268ba0a43e1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.65728, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_tag"], ["shopify_graphql", "order_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_media_tmp"], "alias": "stg_shopify_gql__product_media_tmp", "checksum": {"name": "sha256", "checksum": "9fec30aae73d36ed6755c3f429db455f56b87fdfb24affac6bb8110c833d7538"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6659124, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_media"], ["shopify_graphql", "product_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_image_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_image_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_image_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__media_image_tmp"], "alias": "stg_shopify_gql__media_image_tmp", "checksum": {"name": "sha256", "checksum": "30d02cd315c4bc627fdb2de7d2c4910b8401ec97e7f9bd572c2f4efb219d3059"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6746957, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media_image', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_media_image_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "media_image"], ["shopify_graphql", "media_image"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_media_image_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__tender_transaction_tmp"], "alias": "stg_shopify_gql__tender_transaction_tmp", "checksum": {"name": "sha256", "checksum": "999811b7c8c9bbb9ca1f553177635c3ff561ce3a498c54e7c2d16ef471dc94a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.6941943, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tender_transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_tender_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "tender_transaction"], ["shopify_graphql", "tender_transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__media_tmp"], "alias": "stg_shopify_gql__media_tmp", "checksum": {"name": "sha256", "checksum": "835c3851c7d05b5f89f126d660881e1bd1ba913531e40059ebc9a18e5814a12b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.7028081, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "media"], ["shopify_graphql", "media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_allocation_tmp"], "alias": "stg_shopify_gql__discount_allocation_tmp", "checksum": {"name": "sha256", "checksum": "3031935efab97198e8bfd1d1818023693aed0298c4b4334573c1d099ccb4c8d2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.7114463, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_allocation', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_allocation_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_allocation"], ["shopify_graphql", "discount_allocation"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "alias": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "fadf9a4496c441981f39419454d443a7be6f42ffdb6b1d9be43a628ec71d06c1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.720165, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_abandoned_checkout_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "abandoned_checkout_discount_code"], ["shopify_graphql", "abandoned_checkout_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_level_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_level_tmp"], "alias": "stg_shopify_gql__inventory_level_tmp", "checksum": {"name": "sha256", "checksum": "e940f5fe7081ecb499500343359757242bb316d24954bd29464cccb19e675125"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.7303636, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_level', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_level_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_level"], ["shopify_graphql", "inventory_level"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_tag_tmp"], "alias": "stg_shopify_gql__customer_tag_tmp", "checksum": {"name": "sha256", "checksum": "6c9353c051ba91aace024c85f929cfe6f1fc74e9bf69e7c185ba5abc16b3bad0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.7389839, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_tag"], ["shopify_graphql", "customer_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_event_tmp"], "alias": "stg_shopify_gql__fulfillment_event_tmp", "checksum": {"name": "sha256", "checksum": "b3d654e7eb8d3c87eed9e599ce914c626a86ec7426dd9501721e89556e6e3667"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.7476315, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_event', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_event_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_event"], ["shopify_graphql", "fulfillment_event"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__transaction_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__transaction_tmp"], "alias": "stg_shopify_gql__transaction_tmp", "checksum": {"name": "sha256", "checksum": "2e07b515aabc2fcadb617d88f8bd4b308339b0f2425445340e95c18fe47ea54f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.7566786, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "transaction"], ["shopify_graphql", "transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_tag_tmp"], "alias": "stg_shopify_gql__product_tag_tmp", "checksum": {"name": "sha256", "checksum": "a24216b9e175dc892ba05ae61cef5b660627718f05f76c3773cd851609c471a0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.766825, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_tag"], ["shopify_graphql", "product_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_address_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_address_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_address_tmp"], "alias": "stg_shopify_gql__customer_address_tmp", "checksum": {"name": "sha256", "checksum": "3df59d0c9b1202ab5431236c9ffd08af4840856ea7e880991c6247ca328c89f4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754507518.7757256, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_address', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_address_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_address"], ["shopify_graphql", "customer_address"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c", "fqn": ["shopify", "unique_shopify_gql__customer_cohorts_customer_cohort_id"], "alias": "unique_shopify_gql__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1007311, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_cohorts", "attached_node": "model.shopify.shopify_gql__customer_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2", "fqn": ["shopify", "not_null_shopify_gql__customer_cohorts_customer_cohort_id"], "alias": "not_null_shopify_gql__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1035688, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_cohorts", "attached_node": "model.shopify.shopify_gql__customer_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27", "fqn": ["shopify", "unique_shopify_gql__customer_email_cohorts_customer_cohort_id"], "alias": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1060102, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_email_cohorts", "attached_node": "model.shopify.shopify_gql__customer_email_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f", "fqn": ["shopify", "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id"], "alias": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1085112, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_email_cohorts", "attached_node": "model.shopify.shopify_gql__customer_email_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__orders_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077", "fqn": ["shopify", "unique_shopify_gql__orders_unique_key"], "alias": "unique_shopify_gql__orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1110706, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__orders", "attached_node": "model.shopify.shopify_gql__orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__orders')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__orders_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041", "fqn": ["shopify", "not_null_shopify_gql__orders_unique_key"], "alias": "not_null_shopify_gql__orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.113488, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__orders", "attached_node": "model.shopify.shopify_gql__orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__orders')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4"}, "created_at": 1754507519.115942, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customers"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__customers\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__customers", "attached_node": "model.shopify.shopify_gql__customers", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__customers')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation"], "alias": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc"}, "created_at": 1754507519.1411865, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_emails", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_emails"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__customer_emails", "attached_node": "model.shopify.shopify_gql__customer_emails", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__customer_emails')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__products_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__products_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326", "fqn": ["shopify", "unique_shopify_gql__products_unique_key"], "alias": "unique_shopify_gql__products_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1466558, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__products"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__products_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__products\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__products", "attached_node": "model.shopify.shopify_gql__products", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__products')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__products_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__products_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497", "fqn": ["shopify", "not_null_shopify_gql__products_unique_key"], "alias": "not_null_shopify_gql__products_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1490307, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__products"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__products_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__products\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__products", "attached_node": "model.shopify.shopify_gql__products", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__products')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__order_lines_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4", "fqn": ["shopify", "unique_shopify_gql__order_lines_unique_key"], "alias": "unique_shopify_gql__order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1515565, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__order_lines", "attached_node": "model.shopify.shopify_gql__order_lines", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__order_lines')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__order_lines_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db", "fqn": ["shopify", "not_null_shopify_gql__order_lines_unique_key"], "alias": "not_null_shopify_gql__order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1539583, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__order_lines", "attached_node": "model.shopify.shopify_gql__order_lines", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__order_lines')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__transactions_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__transactions_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c", "fqn": ["shopify", "unique_shopify_gql__transactions_unique_key"], "alias": "unique_shopify_gql__transactions_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1564448, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__transactions_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__transactions", "attached_node": "model.shopify.shopify_gql__transactions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__transactions_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__transactions_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d", "fqn": ["shopify", "not_null_shopify_gql__transactions_unique_key"], "alias": "not_null_shopify_gql__transactions_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1588438, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__transactions_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__transactions", "attached_node": "model.shopify.shopify_gql__transactions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__inventory_levels_inventory_item_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__inventory_levels_inventory_item_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957", "fqn": ["shopify", "not_null_shopify_gql__inventory_levels_inventory_item_id"], "alias": "not_null_shopify_gql__inventory_levels_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1612508, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__inventory_levels_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__inventory_levels_location_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__inventory_levels_location_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e", "fqn": ["shopify", "not_null_shopify_gql__inventory_levels_location_id"], "alias": "not_null_shopify_gql__inventory_levels_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1637459, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__inventory_levels_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e"}, "created_at": 1754507519.166185, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\n group by inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__discounts_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5", "fqn": ["shopify", "unique_shopify_gql__discounts_unique_key"], "alias": "unique_shopify_gql__discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.17156, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__discounts_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994", "fqn": ["shopify", "not_null_shopify_gql__discounts_unique_key"], "alias": "not_null_shopify_gql__discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1739645, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__discounts_discount_code_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__discounts_discount_code_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264", "fqn": ["shopify", "not_null_shopify_gql__discounts_discount_code_id"], "alias": "not_null_shopify_gql__discounts_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.176502, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__discounts_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation"], "alias": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6"}, "created_at": 1754507519.1793752, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n code, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\n group by code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__daily_shop_shop_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__daily_shop_shop_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8", "fqn": ["shopify", "not_null_shopify_gql__daily_shop_shop_id"], "alias": "not_null_shopify_gql__daily_shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.1847699, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__daily_shop"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__daily_shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__daily_shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.shopify_gql__daily_shop", "attached_node": "model.shopify.shopify_gql__daily_shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('shopify_gql__daily_shop')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a", "fqn": ["shopify", "unique_shopify__customer_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3095136, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "fqn": ["shopify", "not_null_shopify__customer_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.31208, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182", "fqn": ["shopify", "unique_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3144994, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "fqn": ["shopify", "not_null_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3168552, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51", "fqn": ["shopify", "unique_shopify__orders_orders_unique_key"], "alias": "unique_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3192565, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n orders_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is not null\ngroup by orders_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "fqn": ["shopify", "not_null_shopify__orders_orders_unique_key"], "alias": "not_null_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3217201, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect orders_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696"}, "created_at": 1754507519.3241916, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customers"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__customers\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customers", "attached_node": "model.shopify.shopify__customers", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customers')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation"], "alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f"}, "created_at": 1754507519.330024, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_emails", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_emails"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__customer_emails\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customer_emails", "attached_node": "model.shopify.shopify__customer_emails", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customer_emails')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa"}, "created_at": 1754507519.3352995, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__products"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__products\"\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__products", "attached_node": "model.shopify.shopify__products", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__products')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e", "fqn": ["shopify", "unique_shopify__order_lines_order_lines_unique_key"], "alias": "unique_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.340574, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_lines_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is not null\ngroup by order_lines_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "unique", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "fqn": ["shopify", "not_null_shopify__order_lines_order_lines_unique_key"], "alias": "not_null_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3429484, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_lines_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981", "fqn": ["shopify", "unique_shopify__transactions_transactions_unique_id"], "alias": "unique_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3455126, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n transactions_unique_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is not null\ngroup by transactions_unique_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "fqn": ["shopify", "not_null_shopify__transactions_transactions_unique_id"], "alias": "not_null_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3479009, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transactions_unique_id\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_inventory_item_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_inventory_item_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "fqn": ["shopify", "not_null_shopify__inventory_levels_inventory_item_id"], "alias": "not_null_shopify__inventory_levels_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3502817, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_location_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_location_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0", "fqn": ["shopify", "not_null_shopify__inventory_levels_location_id"], "alias": "not_null_shopify__inventory_levels_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3526483, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b"}, "created_at": 1754507519.3551903, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\n group by inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f", "fqn": ["shopify", "unique_shopify__discounts_discounts_unique_key"], "alias": "unique_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3603728, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n discounts_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is not null\ngroup by discounts_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "fqn": ["shopify", "not_null_shopify__discounts_discounts_unique_key"], "alias": "not_null_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3629622, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discounts_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discount_code_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discount_code_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "fqn": ["shopify", "not_null_shopify__discounts_discount_code_id"], "alias": "not_null_shopify__discounts_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3654337, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation"], "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e"}, "created_at": 1754507519.3678524, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n code, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__discounts\"\n group by code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__daily_shop_shop_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__daily_shop_shop_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f", "fqn": ["shopify", "not_null_shopify__daily_shop_shop_id"], "alias": "not_null_shopify__daily_shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.3732207, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__daily_shop"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__daily_shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"shopify__daily_shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.shopify__daily_shop", "attached_node": "model.shopify.shopify__daily_shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('shopify__daily_shop')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3"}, "created_at": 1754507519.3820198, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customers__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customers__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n customer_id, source_relation\n from __dbt__cte__shopify__customers__order_aggregates\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": [{"id": "model.shopify.shopify__customers__order_aggregates", "sql": " __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customers__order_aggregates", "attached_node": "model.shopify.shopify__customers__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customers__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04"}, "created_at": 1754507519.3874068, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__orders__order_line_aggregates", "attached_node": "model.shopify.shopify__orders__order_line_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__orders__order_line_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation"], "alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1"}, "created_at": 1754507519.3927, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__emails__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__emails__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n email, source_relation\n from __dbt__cte__int_shopify__emails__order_aggregates\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__emails__order_aggregates", "sql": " __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__emails__order_aggregates", "attached_node": "model.shopify.int_shopify__emails__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__emails__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation"], "alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce"}, "created_at": 1754507519.3984714, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__customer_email_rollup", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__customer_email_rollup"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__customer_email_rollup", "attached_node": "model.shopify.int_shopify__customer_email_rollup", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__customer_email_rollup')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e"}, "created_at": 1754507519.4037914, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__inventory_level__aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__inventory_level__aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n variant_id, location_id, source_relation\n from __dbt__cte__int_shopify__inventory_level__aggregates\n group by variant_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify__inventory_level__aggregates", "sql": " __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__inventory_level__aggregates", "attached_node": "model.shopify.int_shopify__inventory_level__aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["variant_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__inventory_level__aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation"], "alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13"}, "created_at": 1754507519.4089568, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discounts__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__discounts__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), validation_errors as (\n\n select\n code, type, source_relation\n from __dbt__cte__int_shopify__discounts__order_aggregates\n group by code, type, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discounts__order_aggregates", "sql": " __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__discounts__order_aggregates", "attached_node": "model.shopify.int_shopify__discounts__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "type", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__discounts__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation"], "alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936"}, "created_at": 1754507519.4146483, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discounts__abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__discounts__abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), validation_errors as (\n\n select\n code, type, source_relation\n from __dbt__cte__int_shopify__discounts__abandoned_checkouts\n group by code, type, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "sql": " __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__discounts__abandoned_checkouts", "attached_node": "model.shopify.int_shopify__discounts__abandoned_checkouts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "type", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__discounts__abandoned_checkouts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac"}, "created_at": 1754507519.4199772, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), validation_errors as (\n\n select\n order_id, source_relation\n from __dbt__cte__int_shopify__order__shipping_aggregates\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__order__shipping_aggregates", "attached_node": "model.shopify.int_shopify__order__shipping_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__order__shipping_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28"}, "created_at": 1754507519.4254177, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__product__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__product__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), validation_errors as (\n\n select\n product_id, source_relation\n from __dbt__cte__int_shopify__product__order_line_aggregates\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__product__order_line_aggregates", "sql": " __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__product__order_line_aggregates", "attached_node": "model.shopify.int_shopify__product__order_line_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__product__order_line_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04"}, "created_at": 1754507519.4305606, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__products_with_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__products_with_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), validation_errors as (\n\n select\n product_id, source_relation\n from __dbt__cte__int_shopify__products_with_aggregates\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__products_with_aggregates", "sql": " __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__products_with_aggregates", "attached_node": "model.shopify.int_shopify__products_with_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__products_with_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95.sql", "original_file_path": "models/rest/standardized_models/shopify__standardized_models.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae", "fqn": ["shopify", "rest", "standardized_models", "dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95"}, "created_at": 1754507519.4506645, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__line_item_enhanced"]}, "compiled_path": "target/compiled/shopify/models/rest/standardized_models/shopify__standardized_models.yml/dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n header_id, line_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__line_item_enhanced\"\n group by header_id, line_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__line_item_enhanced", "attached_node": "model.shopify.shopify__line_item_enhanced", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["header_id", "line_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__line_item_enhanced')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742.sql", "original_file_path": "models/graphql/standardized_models/shopify__standardized_models.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1", "fqn": ["shopify", "graphql", "standardized_models", "dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742"}, "created_at": 1754507519.46145, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__line_item_enhanced"]}, "compiled_path": "target/compiled/shopify/models/graphql/standardized_models/shopify__standardized_models.yml/dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n header_id, line_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__line_item_enhanced\"\n group by header_id, line_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__line_item_enhanced", "attached_node": "model.shopify.shopify_gql__line_item_enhanced", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["header_id", "line_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__line_item_enhanced')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be"}, "created_at": 1754507519.5815682, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__customer", "attached_node": "model.shopify_source.stg_shopify__customer", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__customer')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation"], "alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3"}, "created_at": 1754507519.587619, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_refund_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n group by order_line_refund_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_line_refund", "attached_node": "model.shopify_source.stg_shopify__order_line_refund", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_line_refund')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec"}, "created_at": 1754507519.5933397, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n group by order_line_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_line", "attached_node": "model.shopify_source.stg_shopify__order_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e"}, "created_at": 1754507519.59898, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order", "attached_node": "model.shopify_source.stg_shopify__order", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d"}, "created_at": 1754507519.6046298, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product", "attached_node": "model.shopify_source.stg_shopify__product", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation"], "alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e"}, "created_at": 1754507519.6102147, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n variant_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n group by variant_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_variant", "attached_node": "model.shopify_source.stg_shopify__product_variant", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["variant_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_variant')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation"], "alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92"}, "created_at": 1754507519.6156123, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n group by transaction_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__transaction", "attached_node": "model.shopify_source.stg_shopify__transaction", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__transaction')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation"], "alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659"}, "created_at": 1754507519.6211538, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__refund", "attached_node": "model.shopify_source.stg_shopify__refund", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__refund')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207"}, "created_at": 1754507519.6273048, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_adjustment_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"\n group by order_adjustment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_adjustment", "attached_node": "model.shopify_source.stg_shopify__order_adjustment", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_adjustment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_adjustment')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__abandoned_checkout_checkout_id"], "alias": "not_null_stg_shopify__abandoned_checkout_checkout_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.6327572, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation"], "alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f"}, "created_at": 1754507519.6352494, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n group by checkout_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_collection_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_product_collection_id"], "alias": "not_null_stg_shopify__collection_product_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.640596, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_product_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_product_product_id"], "alias": "not_null_stg_shopify__collection_product_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.6430051, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_product_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e"}, "created_at": 1754507519.6454782, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n collection_id, product_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n group by collection_id, product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["collection_id", "product_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_collection_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_collection_id"], "alias": "not_null_stg_shopify__collection_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.6509326, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection", "attached_node": "model.shopify_source.stg_shopify__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation"], "alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad"}, "created_at": 1754507519.6533997, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n collection_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n group by collection_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__collection", "attached_node": "model.shopify_source.stg_shopify__collection", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["collection_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__collection')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__customer_tag_index"], "alias": "not_null_stg_shopify__customer_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.658779, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__customer_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_customer_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_customer_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__customer_tag_customer_id"], "alias": "not_null_stg_shopify__customer_tag_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.6611946, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__customer_tag_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6"}, "created_at": 1754507519.6636615, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n group by customer_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__fulfillment_fulfillment_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__fulfillment_fulfillment_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__fulfillment_fulfillment_id"], "alias": "not_null_stg_shopify__fulfillment_fulfillment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.6692216, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__fulfillment_fulfillment_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fulfillment_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\nwhere fulfillment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fulfillment_id", "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fulfillment_id", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70", "fqn": ["shopify_source", "rest", "accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure"], "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd"}, "created_at": 1754507519.671682, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'pending','open','success','cancelled','error','failure'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["pending", "open", "success", "cancelled", "error", "failure"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation"], "alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01"}, "created_at": 1754507519.6835527, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n fulfillment_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by fulfillment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["fulfillment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__inventory_item_inventory_item_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__inventory_item_inventory_item_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__inventory_item_inventory_item_id"], "alias": "not_null_stg_shopify__inventory_item_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.6887374, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__inventory_item_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.stg_shopify__inventory_item", "attached_node": "model.shopify_source.stg_shopify__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('stg_shopify__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f"}, "created_at": 1754507519.6913633, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\n group by inventory_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_item", "attached_node": "model.shopify_source.stg_shopify__inventory_item", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_item')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014"}, "created_at": 1754507519.6965628, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_level_id, inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"\n group by inventory_level_id, inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_level", "attached_node": "model.shopify_source.stg_shopify__inventory_level", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_level_id", "inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_level')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation"], "alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6"}, "created_at": 1754507519.7019403, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_quantity_id, inventory_item_id, inventory_level_id, inventory_state_name, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"\n group by inventory_quantity_id, inventory_item_id, inventory_level_id, inventory_state_name, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify__inventory_quantity", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_quantity_id", "inventory_item_id", "inventory_level_id", "inventory_state_name", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_quantity')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__location_location_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__location_location_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__location_location_id"], "alias": "not_null_stg_shopify__location_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7072945, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__location_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__location\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_shopify__location", "attached_node": "model.shopify_source.stg_shopify__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_shopify__location')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646"}, "created_at": 1754507519.7097328, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__location\"\n group by location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__location", "attached_node": "model.shopify_source.stg_shopify__location", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__location')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__media_media_id"], "alias": "not_null_stg_shopify__media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.715005, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media", "attached_node": "model.shopify_source.stg_shopify__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e"}, "created_at": 1754507519.717466, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__media\"\n group by media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__media", "attached_node": "model.shopify_source.stg_shopify__media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_image_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_image_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__media_image_media_id"], "alias": "not_null_stg_shopify__media_image_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7234802, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__media_image_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media_image\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media_image", "attached_node": "model.shopify_source.stg_shopify__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media_image')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation"], "alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75"}, "created_at": 1754507519.725933, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n media_id, image_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__media_image\"\n group by media_id, image_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__media_image", "attached_node": "model.shopify_source.stg_shopify__media_image", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["media_id", "image_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__media_image')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__metafield_metafield_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__metafield_metafield_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__metafield_metafield_id"], "alias": "not_null_stg_shopify__metafield_metafield_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7312472, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__metafield_metafield_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metafield_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\nwhere metafield_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metafield_id", "file_key_name": "models.stg_shopify__metafield", "attached_node": "model.shopify_source.stg_shopify__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "metafield_id", "model": "{{ get_where_subquery(ref('stg_shopify__metafield')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation"], "alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea"}, "created_at": 1754507519.7337108, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n metafield_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n group by metafield_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__metafield", "attached_node": "model.shopify_source.stg_shopify__metafield", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["metafield_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__metafield')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_name", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_name.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_note_attribute_name"], "alias": "not_null_stg_shopify__order_note_attribute_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7389815, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect name\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_note_attribute_order_id"], "alias": "not_null_stg_shopify__order_note_attribute_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.741384, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation"], "alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d"}, "created_at": 1754507519.743848, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, name, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\n group by order_id, name, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "name", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1"}, "created_at": 1754507519.7491546, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation"], "alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36"}, "created_at": 1754507519.7515852, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_shipping_line_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by order_shipping_line_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_shipping_line_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_shipping_tax_line_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_tax_line_index"], "alias": "not_null_stg_shopify__order_shipping_tax_line_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7569165, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_shipping_tax_line_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858"}, "created_at": 1754507519.7593777, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f"}, "created_at": 1754507519.761784, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_shipping_line_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by order_shipping_line_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_shipping_line_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_tag_index"], "alias": "not_null_stg_shopify__order_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7670481, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_tag_order_id"], "alias": "not_null_stg_shopify__order_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.769446, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a"}, "created_at": 1754507519.7719932, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\n group by 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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_key.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_url_tag_key"], "alias": "not_null_stg_shopify__order_url_tag_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.777176, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_url_tag_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "key", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "key", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_url_tag_order_id"], "alias": "not_null_stg_shopify__order_url_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7798083, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_url_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation"], "alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f"}, "created_at": 1754507519.7822669, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, key, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\n group by order_id, key, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "key", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_media_product_id"], "alias": "not_null_stg_shopify__product_media_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.787554, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_media_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_media_media_id"], "alias": "not_null_stg_shopify__product_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.7899451, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110"}, "created_at": 1754507519.792452, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n group by product_id, media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_product_variant_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_product_variant_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_variant_media_product_variant_id"], "alias": "not_null_stg_shopify__product_variant_media_product_variant_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.797756, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_variant_media_product_variant_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_variant_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere product_variant_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_variant_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_variant_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_variant_media_media_id"], "alias": "not_null_stg_shopify__product_variant_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.8001745, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_variant_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c"}, "created_at": 1754507519.80269, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_variant_id, media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n group by product_variant_id, media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_variant_id", "media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_tag_index"], "alias": "not_null_stg_shopify__product_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.8079658, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_tag_product_id"], "alias": "not_null_stg_shopify__product_tag_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.8103838, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_tag_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed"}, "created_at": 1754507519.812804, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n group by product_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__shop_shop_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__shop_shop_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__shop_shop_id"], "alias": "not_null_stg_shopify__shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.818058, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.stg_shopify__shop", "attached_node": "model.shopify_source.stg_shopify__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('stg_shopify__shop')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation"], "alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e"}, "created_at": 1754507519.8205044, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n shop_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n group by shop_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__shop", "attached_node": "model.shopify_source.stg_shopify__shop", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["shop_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__shop')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__tender_transaction_transaction_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__tender_transaction_transaction_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__tender_transaction_transaction_id"], "alias": "not_null_stg_shopify__tender_transaction_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.8263123, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__tender_transaction_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_shopify__tender_transaction", "attached_node": "model.shopify_source.stg_shopify__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_shopify__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473"}, "created_at": 1754507519.8287082, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\n group by transaction_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__tender_transaction", "attached_node": "model.shopify_source.stg_shopify__tender_transaction", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__tender_transaction')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id"], "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c"}, "created_at": 1754507519.8339736, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation"], "alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1"}, "created_at": 1754507519.8364465, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, code, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n group by checkout_id, code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "code", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_discount_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_code", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_code.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_discount_code_code"], "alias": "not_null_stg_shopify__order_discount_code_code", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.841725, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_discount_code_code.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect code\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "code", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "code", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_discount_code_order_id"], "alias": "not_null_stg_shopify__order_discount_code_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.8441052, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_discount_code_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0"}, "created_at": 1754507519.846544, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n group by 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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2"}, "created_at": 1754507519.8518054, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n group by checkout_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout_shipping_line", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_shipping_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27", "fqn": ["shopify_source", "rest", "accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed"], "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc"}, "created_at": 1754507519.8571706, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'attempted_delivery','delayed','delivered','failure','in_transit','out_for_delivery','ready_for_pickup','picked_up','label_printed','label_purchased','confirmed'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify__fulfillment_event", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["attempted_delivery", "delayed", "delivered", "failure", "in_transit", "out_for_delivery", "ready_for_pickup", "picked_up", "label_printed", "label_purchased", "confirmed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation"], "alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd"}, "created_at": 1754507519.8663797, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n fulfillment_event_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n group by fulfillment_event_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify__fulfillment_event", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["fulfillment_event_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment_event')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136"}, "created_at": 1754507519.8717053, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n group by order_line_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__tax_line", "attached_node": "model.shopify_source.stg_shopify__tax_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__tax_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_allocation_discount_application_index"], "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca"}, "created_at": 1754507519.8770092, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_application_index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere discount_application_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_application_index", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_application_index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_order_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_allocation_order_line_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_allocation_order_line_id"], "alias": "not_null_stg_shopify__discount_allocation_order_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.8794496, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_allocation_order_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere order_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_line_id", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation"], "alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98"}, "created_at": 1754507519.8818595, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, discount_application_index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\n group by order_line_id, discount_application_index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "discount_application_index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_application_index"], "alias": "not_null_stg_shopify__discount_application_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.8871696, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_application_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_application_order_id"], "alias": "not_null_stg_shopify__discount_application_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.889557, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_application_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed"}, "created_at": 1754507519.8919375, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n index, order_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n group by index, order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["index", "order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_app_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_app_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_app_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_app_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.897227, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_app_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_app", "attached_node": "model.shopify_source.stg_shopify__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd"}, "created_at": 1754507519.899669, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_app", "attached_node": "model.shopify_source.stg_shopify__discount_code_app", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_app')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_basic_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_basic_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_basic_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.9049416, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125"}, "created_at": 1754507519.9073815, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify__discount_code_basic", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_basic')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_bxgy_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.9129806, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976"}, "created_at": 1754507519.915447, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify__discount_code_bxgy", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_bxgy')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_free_shipping_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_free_shipping_discount_code_id"], "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354"}, "created_at": 1754507519.9216006, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce"}, "created_at": 1754507519.9240026, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify__discount_code_free_shipping", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_free_shipping')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_redeem_code_discount_code_id"], "alias": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507519.9293332, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4"}, "created_at": 1754507519.931764, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify__discount_redeem_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_redeem_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_unique_key"], "alias": "unique_stg_shopify_gql__customer_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4073453, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer", "attached_node": "model.shopify_source.stg_shopify_gql__customer", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_unique_key"], "alias": "not_null_stg_shopify_gql__customer_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4099503, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer", "attached_node": "model.shopify_source.stg_shopify_gql__customer", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_unique_key"], "alias": "unique_stg_shopify_gql__order_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4123995, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order", "attached_node": "model.shopify_source.stg_shopify_gql__order", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_unique_key"], "alias": "not_null_stg_shopify_gql__order_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.414879, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order", "attached_node": "model.shopify_source.stg_shopify_gql__order", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_line_unique_key"], "alias": "unique_stg_shopify_gql__order_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.417311, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4196784, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__abandoned_checkout_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__abandoned_checkout_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__abandoned_checkout_unique_key"], "alias": "unique_stg_shopify_gql__abandoned_checkout_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4220617, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__abandoned_checkout_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__abandoned_checkout_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_unique_key"], "alias": "not_null_stg_shopify_gql__abandoned_checkout_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4245465, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__abandoned_checkout_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_checkout_id"], "alias": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.426918, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__abandoned_checkout_checkout_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key"], "alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815"}, "created_at": 1754507520.429307, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key"], "alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256"}, "created_at": 1754507520.4316413, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id"], "alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e"}, "created_at": 1754507520.4339716, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_unique_key"], "alias": "unique_stg_shopify_gql__collection_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4364412, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__collection_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_unique_key"], "alias": "not_null_stg_shopify_gql__collection_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4387915, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_collection_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_collection_id"], "alias": "not_null_stg_shopify_gql__collection_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4411366, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_product_unique_key"], "alias": "unique_stg_shopify_gql__collection_product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4435544, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__collection_product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_unique_key"], "alias": "not_null_stg_shopify_gql__collection_product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.446058, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_collection_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_collection_id"], "alias": "not_null_stg_shopify_gql__collection_product_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.448451, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_product_id"], "alias": "not_null_stg_shopify_gql__collection_product_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4508004, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_tag_unique_key"], "alias": "unique_stg_shopify_gql__customer_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4531503, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_unique_key"], "alias": "not_null_stg_shopify_gql__customer_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4554803, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_index"], "alias": "not_null_stg_shopify_gql__customer_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4579294, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_customer_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_customer_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_customer_id"], "alias": "not_null_stg_shopify_gql__customer_tag_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4602885, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_allocation_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_allocation_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_allocation_unique_key"], "alias": "unique_stg_shopify_gql__discount_allocation_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4626212, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_allocation_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_allocation_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_unique_key"], "alias": "not_null_stg_shopify_gql__discount_allocation_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4649432, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_allocation_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_discount_application_index"], "alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416"}, "created_at": 1754507520.4677594, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_application_index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere discount_application_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_application_index", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_application_index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_order_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_allocation_order_line_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_order_line_id"], "alias": "not_null_stg_shopify_gql__discount_allocation_order_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.470177, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_allocation_order_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere order_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_line_id", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_application_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_application_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_application_unique_key"], "alias": "unique_stg_shopify_gql__discount_application_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4725332, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_application_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_unique_key"], "alias": "not_null_stg_shopify_gql__discount_application_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4749026, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_index"], "alias": "not_null_stg_shopify_gql__discount_application_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.477243, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_order_id"], "alias": "not_null_stg_shopify_gql__discount_application_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4797165, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_app_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_app_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_app_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_app_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.482069, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_app_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_app_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_app_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_app_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_app_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4844563, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_app_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_app_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_app_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_app_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_app_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.486815, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_app_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_basic_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_basic_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_basic_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_basic_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.489298, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_basic_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_basic_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_basic_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_basic_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_basic_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.491679, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_basic_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_basic_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4940438, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_basic_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_bxgy_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_bxgy_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_bxgy_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4964368, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_bxgy_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.4988093, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5012927, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_free_shipping_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5036654, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_free_shipping_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_free_shipping_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_free_shipping_unique_key"], "alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34"}, "created_at": 1754507520.5060291, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id"], "alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09"}, "created_at": 1754507520.5083978, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_redeem_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_redeem_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_redeem_code_unique_key"], "alias": "unique_stg_shopify_gql__discount_redeem_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5108438, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_redeem_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_redeem_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_redeem_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_redeem_code_unique_key"], "alias": "not_null_stg_shopify_gql__discount_redeem_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.51323, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_redeem_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5155914, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.51795, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5203285, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_fulfillment_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_fulfillment_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_fulfillment_id"], "alias": "not_null_stg_shopify_gql__fulfillment_fulfillment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5227938, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_fulfillment_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fulfillment_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere fulfillment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fulfillment_id", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fulfillment_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769", "fqn": ["shopify_source", "graphql", "accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure"], "alias": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2"}, "created_at": 1754507520.525236, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'pending','open','success','cancelled','error','failure'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["pending", "open", "success", "cancelled", "error", "failure"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_event_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_event_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_event_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_event_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5312247, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_event_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_event_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_event_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_event_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_event_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.533616, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_event_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81", "fqn": ["shopify_source", "graphql", "accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed"], "alias": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f"}, "created_at": 1754507520.536076, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'attempted_delivery','delayed','delivered','failure','in_transit','out_for_delivery','ready_for_pickup','picked_up','label_printed','label_purchased','confirmed'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["attempted_delivery", "delayed", "delivered", "failure", "in_transit", "out_for_delivery", "ready_for_pickup", "picked_up", "label_printed", "label_purchased", "confirmed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5418005, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_order_line_item", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_order_line_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key"], "alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22"}, "created_at": 1754507520.5442243, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_order_line_item", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_order_line_item')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5466137, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_tracking_info", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_tracking_info')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5491092, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_tracking_info", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_tracking_info')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_item_unique_key"], "alias": "unique_stg_shopify_gql__inventory_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5516107, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_item_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5539925, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_item_inventory_item_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_item_inventory_item_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_item_inventory_item_id"], "alias": "not_null_stg_shopify_gql__inventory_item_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.556362, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_item_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_level_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_level_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_level_unique_key"], "alias": "unique_stg_shopify_gql__inventory_level_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5587296, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_level_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_level_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_level_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_level_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_level_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5612066, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_level_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd", "fqn": ["shopify_source", "graphql", "dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756"}, "created_at": 1754507520.5636485, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_level_id, inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\n group by inventory_level_id, inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_level_id", "inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_quantity_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_quantity_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_quantity_unique_key"], "alias": "unique_stg_shopify_gql__inventory_quantity_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.569026, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_quantity_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_quantity", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_quantity')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_quantity_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_quantity_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_quantity_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_quantity_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.571437, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_quantity_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_quantity", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_quantity')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__location_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__location_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__location_unique_key"], "alias": "unique_stg_shopify_gql__location_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5738084, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__location_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__location_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__location_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__location_unique_key"], "alias": "not_null_stg_shopify_gql__location_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5761964, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__location_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__location_location_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__location_location_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__location_location_id"], "alias": "not_null_stg_shopify_gql__location_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.578649, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__location_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__media_unique_key"], "alias": "unique_stg_shopify_gql__media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5809953, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_unique_key"], "alias": "not_null_stg_shopify_gql__media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5833952, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_media_id"], "alias": "not_null_stg_shopify_gql__media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5857468, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__media_image_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__media_image_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__media_image_unique_key"], "alias": "unique_stg_shopify_gql__media_image_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5880818, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__media_image_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_image_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_image_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_image_unique_key"], "alias": "not_null_stg_shopify_gql__media_image_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5908742, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_image_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_image_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_image_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_image_media_id"], "alias": "not_null_stg_shopify_gql__media_image_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5932245, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_image_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__metafield_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__metafield_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__metafield_unique_key"], "alias": "unique_stg_shopify_gql__metafield_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5955615, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__metafield_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__metafield_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__metafield_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__metafield_unique_key"], "alias": "not_null_stg_shopify_gql__metafield_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.5979097, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__metafield_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__metafield_metafield_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__metafield_metafield_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__metafield_metafield_id"], "alias": "not_null_stg_shopify_gql__metafield_metafield_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6003647, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__metafield_metafield_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metafield_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere metafield_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metafield_id", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "metafield_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_media_unique_key"], "alias": "unique_stg_shopify_gql__product_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6027343, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_unique_key"], "alias": "not_null_stg_shopify_gql__product_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6052482, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_product_id"], "alias": "not_null_stg_shopify_gql__product_media_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.607637, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_media_id"], "alias": "not_null_stg_shopify_gql__product_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6100345, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_adjustment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_adjustment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_adjustment_unique_key"], "alias": "unique_stg_shopify_gql__order_adjustment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.612529, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_adjustment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_adjustment", "attached_node": "model.shopify_source.stg_shopify_gql__order_adjustment", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_adjustment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_adjustment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_adjustment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_adjustment_unique_key"], "alias": "not_null_stg_shopify_gql__order_adjustment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6148913, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_adjustment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_adjustment", "attached_node": "model.shopify_source.stg_shopify_gql__order_adjustment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_adjustment')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_discount_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_discount_code_unique_key"], "alias": "unique_stg_shopify_gql__order_discount_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6172855, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_discount_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_unique_key"], "alias": "not_null_stg_shopify_gql__order_discount_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.619635, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_code", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_code.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_code"], "alias": "not_null_stg_shopify_gql__order_discount_code_code", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6220362, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_code.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect code\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "code", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "code", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_order_id"], "alias": "not_null_stg_shopify_gql__order_discount_code_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6243823, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_line_refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_line_refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_line_refund_unique_key"], "alias": "unique_stg_shopify_gql__order_line_refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6267235, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_line_refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line_refund", "attached_node": "model.shopify_source.stg_shopify_gql__order_line_refund", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line_refund')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_line_refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_line_refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_line_refund_unique_key"], "alias": "not_null_stg_shopify_gql__order_line_refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6290405, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_line_refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line_refund", "attached_node": "model.shopify_source.stg_shopify_gql__order_line_refund", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line_refund')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_note_attribute_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_note_attribute_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_note_attribute_unique_key"], "alias": "unique_stg_shopify_gql__order_note_attribute_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.631395, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_note_attribute_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_unique_key"], "alias": "not_null_stg_shopify_gql__order_note_attribute_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6338105, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_name", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_name.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_name"], "alias": "not_null_stg_shopify_gql__order_note_attribute_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.636134, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect name\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_order_id"], "alias": "not_null_stg_shopify_gql__order_note_attribute_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6384556, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_shipping_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_shipping_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_shipping_line_unique_key"], "alias": "unique_stg_shopify_gql__order_shipping_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6407871, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_shipping_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_shipping_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6432242, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id"], "alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2"}, "created_at": 1754507520.6455529, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_shipping_tax_line_unique_key"], "alias": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6478868, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6502624, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id"], "alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4"}, "created_at": 1754507520.652615, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_tax_line_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_index"], "alias": "not_null_stg_shopify_gql__order_shipping_tax_line_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6550727, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_tax_line_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_tag_unique_key"], "alias": "unique_stg_shopify_gql__order_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.657433, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_unique_key"], "alias": "not_null_stg_shopify_gql__order_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6597517, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_order_id"], "alias": "not_null_stg_shopify_gql__order_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6620774, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_index"], "alias": "not_null_stg_shopify_gql__order_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6645458, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_unique_key"], "alias": "unique_stg_shopify_gql__product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6668816, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product", "attached_node": "model.shopify_source.stg_shopify_gql__product", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_unique_key"], "alias": "not_null_stg_shopify_gql__product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6692905, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product", "attached_node": "model.shopify_source.stg_shopify_gql__product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_variant_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_variant_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_variant_unique_key"], "alias": "unique_stg_shopify_gql__product_variant_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6716619, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_variant_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_unique_key"], "alias": "not_null_stg_shopify_gql__product_variant_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6740048, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_variant_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_variant_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_variant_media_unique_key"], "alias": "unique_stg_shopify_gql__product_variant_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6764796, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_variant_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_unique_key"], "alias": "not_null_stg_shopify_gql__product_variant_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.678835, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_product_variant_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_product_variant_id"], "alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943"}, "created_at": 1754507520.681221, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_variant_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere product_variant_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_variant_id", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_variant_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_media_id"], "alias": "not_null_stg_shopify_gql__product_variant_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6835597, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_tag_unique_key"], "alias": "unique_stg_shopify_gql__product_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6860223, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_unique_key"], "alias": "not_null_stg_shopify_gql__product_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.688402, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_index"], "alias": "not_null_stg_shopify_gql__product_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6907363, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_product_id"], "alias": "not_null_stg_shopify_gql__product_tag_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.6930966, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__refund_unique_key"], "alias": "unique_stg_shopify_gql__refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.695451, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__refund", "attached_node": "model.shopify_source.stg_shopify_gql__refund", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__refund')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__refund_unique_key"], "alias": "not_null_stg_shopify_gql__refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.69789, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__refund", "attached_node": "model.shopify_source.stg_shopify_gql__refund", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__refund')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__shop_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__shop_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__shop_unique_key"], "alias": "unique_stg_shopify_gql__shop_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7002642, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__shop_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__shop_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__shop_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__shop_unique_key"], "alias": "not_null_stg_shopify_gql__shop_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.702609, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__shop_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__shop_shop_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__shop_shop_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__shop_shop_id"], "alias": "not_null_stg_shopify_gql__shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7049565, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__tax_line_unique_key"], "alias": "unique_stg_shopify_gql__tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7074215, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__tax_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tax_line_unique_key"], "alias": "not_null_stg_shopify_gql__tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7097588, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tax_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__tender_transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__tender_transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__tender_transaction_unique_key"], "alias": "unique_stg_shopify_gql__tender_transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7120986, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__tender_transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tender_transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tender_transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tender_transaction_unique_key"], "alias": "not_null_stg_shopify_gql__tender_transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.714448, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tender_transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tender_transaction_transaction_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tender_transaction_transaction_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tender_transaction_transaction_id"], "alias": "not_null_stg_shopify_gql__tender_transaction_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.716778, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tender_transaction_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__transaction_unique_key"], "alias": "unique_stg_shopify_gql__transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7193396, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__transaction", "attached_node": "model.shopify_source.stg_shopify_gql__transaction", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__transaction_unique_key"], "alias": "not_null_stg_shopify_gql__transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.721663, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__transaction", "attached_node": "model.shopify_source.stg_shopify_gql__transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__transaction')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_visit_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_visit_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_visit_unique_key"], "alias": "unique_stg_shopify_gql__customer_visit_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7239704, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_visit_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_visit", "attached_node": "model.shopify_source.stg_shopify_gql__customer_visit", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_visit')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_visit_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_visit_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_visit_unique_key"], "alias": "not_null_stg_shopify_gql__customer_visit_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7263093, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_visit_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_visit", "attached_node": "model.shopify_source.stg_shopify_gql__customer_visit", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_visit')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_rule_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_rule_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_rule_unique_key"], "alias": "unique_stg_shopify_gql__collection_rule_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7287393, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_rule", "attached_node": "model.shopify_source.stg_shopify_gql__collection_rule", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_rule')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_rule_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_rule_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_rule_unique_key"], "alias": "not_null_stg_shopify_gql__collection_rule_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7310705, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_rule", "attached_node": "model.shopify_source.stg_shopify_gql__collection_rule", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_rule')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_address_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_address_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_address_unique_key"], "alias": "unique_stg_shopify_gql__customer_address_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.733446, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_address_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_address", "attached_node": "model.shopify_source.stg_shopify_gql__customer_address", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_address')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_address_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_address_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_address_unique_key"], "alias": "not_null_stg_shopify_gql__customer_address_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754507520.7358007, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_address_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_address", "attached_node": "model.shopify_source.stg_shopify_gql__customer_address", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_address')) }}"}, "namespace": null}}}, "sources": {"source.shopify_source.shopify.order": {"database": "postgres", "schema": "public", "name": "order", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order", "fqn": ["shopify_source", "rest", "shopify", "order"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_data", "quoting": {"database": null, "schema": null, "identifier": true, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_at": {"name": "cancelled_at", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "(DEPRECATED) The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "(DEPRECATED) A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "confirmed": {"name": "confirmed", "description": "Whether inventory has been reserved for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_identifier": {"name": "source_identifier", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "created_at": 1754507520.7672925, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer": {"database": "postgres", "schema": "public", "name": "customer", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer", "fqn": ["shopify_source", "rest", "shopify", "customer"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "accepts_marketing": {"name": "accepts_marketing", "description": "Whether the customer has consented to receive marketing material via email. Deprecated and will be coalesced with `email_marketing_consent_state`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "state": {"name": "state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_exempt": {"name": "tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "verified_email": {"name": "verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_state": {"name": "email_marketing_consent_state", "description": "The current email marketing state for the customer. New version of `accepts_marketing` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_opt_in_level": {"name": "email_marketing_consent_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. New version of `marketing_opt_in_level` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_consent_updated_at": {"name": "email_marketing_consent_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. New version of `accepts_marketing_updated_at` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "accepts_marketing_updated_at": {"name": "accepts_marketing_updated_at", "description": "Deprecated. The package will coalesce with `email_marketing_consent_consent_updated_at`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "Deprecated. The package will coalesce with `email_marketing_consent_opt_in_level`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "created_at": 1754507520.7694664, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line": {"database": "postgres", "schema": "public", "name": "order_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line", "fqn": ["shopify_source", "rest", "shopify", "order_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item for an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gift_card": {"name": "gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "created_at": 1754507520.7704043, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line_refund": {"database": "postgres", "schema": "public", "name": "order_line_refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line_refund", "fqn": ["shopify_source", "rest", "shopify", "order_line_refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item refund in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "created_at": 1754507520.7710884, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product": {"database": "postgres", "schema": "public", "name": "product", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product", "fqn": ["shopify_source", "rest", "shopify", "product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product in Shopify.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "created_at": 1754507520.771772, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant": {"database": "postgres", "schema": "public", "name": "product_variant", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant", "fqn": ["shopify_source", "rest", "shopify", "product_variant"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "old_inventory_quantity": {"name": "old_inventory_quantity", "description": "(DEPRECATED 2025-01-06) Use the InventoryLevel resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "(DEPRECATED 2025-01-06) Use the `requires_shipping` property on the InventoryItem resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "available_for_sale": {"name": "available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield": {"name": "metafield", "description": "A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_components": {"name": "requires_components", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "created_at": 1754507520.7725523, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.transaction": {"database": "postgres", "schema": "public", "name": "transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.transaction", "fqn": ["shopify_source", "rest", "shopify", "transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a transaction in Shopify.", "columns": {"id": {"name": "id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization": {"name": "authorization", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "created_at": 1754507520.7734005, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.refund": {"database": "postgres", "schema": "public", "name": "refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.refund", "fqn": ["shopify_source", "rest", "shopify", "refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a refund within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "created_at": 1754507520.7740576, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_adjustment": {"database": "postgres", "schema": "public", "name": "order_adjustment", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_adjustment", "fqn": ["shopify_source", "rest", "shopify", "order_adjustment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_adjustment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "created_at": 1754507520.7747285, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout": {"database": "postgres", "schema": "public", "name": "abandoned_checkout", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "created_at": 1754507520.7756877, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection_product": {"database": "postgres", "schema": "public", "name": "collection_product", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection_product", "fqn": ["shopify_source", "rest", "shopify", "collection_product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "created_at": 1754507520.776319, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection": {"database": "postgres", "schema": "public", "name": "collection", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection", "fqn": ["shopify_source", "rest", "shopify", "collection"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "disjunctive": {"name": "disjunctive", "description": "Boolean representing whether the `rules` or disjuctive (logical `OR`) or not. True = disjuctive, false = conjunctive (logical `AND`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparitive relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values inclide - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "created_at": 1754507520.7769678, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer_tag": {"database": "postgres", "schema": "public", "name": "customer_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer_tag", "fqn": ["shopify_source", "rest", "shopify", "customer_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "created_at": 1754507520.777591, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment": {"database": "postgres", "schema": "public", "name": "fulfillment", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment", "fqn": ["shopify_source", "rest", "shopify", "fulfillment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt_authorization": {"name": "receipt_authorization", "description": "The authorization code from the receipt.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was succesfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "created_at": 1754507520.7783144, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_item": {"database": "postgres", "schema": "public", "name": "inventory_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_item", "fqn": ["shopify_source", "rest", "shopify", "inventory_item"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked": {"name": "tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_locked": {"name": "tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "created_at": 1754507520.7789948, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_level": {"database": "postgres", "schema": "public", "name": "inventory_level", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_level", "fqn": ["shopify_source", "rest", "shopify", "inventory_level"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_level_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available": {"name": "available", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "created_at": 1754507520.7796447, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_quantity": {"database": "postgres", "schema": "public", "name": "inventory_quantity", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_quantity", "fqn": ["shopify_source", "rest", "shopify", "inventory_quantity"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_quantity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The total quantity of the inventory item available at all locations.", "columns": {"id": {"name": "id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "created_at": 1754507520.780279, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.location": {"database": "postgres", "schema": "public", "name": "location", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.location", "fqn": ["shopify_source", "rest", "shopify", "location"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_location_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "active": {"name": "active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy": {"name": "legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "created_at": 1754507520.7810032, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.metafield": {"database": "postgres", "schema": "public", "name": "metafield", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.metafield", "fqn": ["shopify_source", "rest", "shopify", "metafield"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_metafield_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_id": {"name": "owner_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Use this instead of `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "created_at": 1754507520.7816708, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_note_attribute": {"database": "postgres", "schema": "public", "name": "order_note_attribute", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_note_attribute", "fqn": ["shopify_source", "rest", "shopify", "order_note_attribute"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_note_attribute_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "created_at": 1754507520.7822897, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_line": {"database": "postgres", "schema": "public", "name": "order_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_line", "fqn": ["shopify_source", "rest", "shopify", "order_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "created_at": 1754507520.7829227, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_tax_line": {"database": "postgres", "schema": "public", "name": "order_shipping_tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_tax_line", "fqn": ["shopify_source", "rest", "shopify", "order_shipping_tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this recod is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "created_at": 1754507520.7835598, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_tag": {"database": "postgres", "schema": "public", "name": "order_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_tag", "fqn": ["shopify_source", "rest", "shopify", "order_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "created_at": 1754507520.7841783, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_url_tag": {"database": "postgres", "schema": "public", "name": "order_url_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_url_tag", "fqn": ["shopify_source", "rest", "shopify", "order_url_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_url_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "created_at": 1754507520.784789, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media": {"database": "postgres", "schema": "public", "name": "media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media", "fqn": ["shopify_source", "rest", "shopify", "media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing media metadata, including status and timestamps.", "columns": {"id": {"name": "id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "created_at": 1754507520.7854784, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media_image": {"database": "postgres", "schema": "public", "name": "media_image", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media_image", "fqn": ["shopify_source", "rest", "shopify", "media_image"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_image_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "created_at": 1754507520.786096, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_media": {"database": "postgres", "schema": "public", "name": "product_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_media", "fqn": ["shopify_source", "rest", "shopify", "product_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "created_at": 1754507520.786708, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant_media": {"database": "postgres", "schema": "public", "name": "product_variant_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant_media", "fqn": ["shopify_source", "rest", "shopify", "product_variant_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping product variants to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "created_at": 1754507520.7873209, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_tag": {"database": "postgres", "schema": "public", "name": "product_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_tag", "fqn": ["shopify_source", "rest", "shopify", "product_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "created_at": 1754507520.7879276, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.shop": {"database": "postgres", "schema": "public", "name": "shop", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.shop", "fqn": ["shopify_source", "rest", "shopify", "shop"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_shop_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_api_supported": {"name": "checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "county_taxes": {"name": "county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_card_reader_giveaway": {"name": "eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_payments": {"name": "eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "force_ssl": {"name": "force_ssl", "description": "DEPRECATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_login_enabled": {"name": "google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "multi_location_enabled": {"name": "multi_location_enabled", "description": "DEPRECATED and hard-coded to `true`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "password_enabled": {"name": "password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_launch_enabled": {"name": "pre_launch_enabled", "description": "Boolen representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_location_id": {"name": "primary_location_id", "description": "DEPRECATED. Formerly used for the ID of the shipping origin location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_extra_payments_agreement": {"name": "requires_extra_payments_agreement", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "setup_required": {"name": "setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_shipping": {"name": "tax_shipping", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "created_at": 1754507520.788787, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tender_transaction": {"database": "postgres", "schema": "public", "name": "tender_transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tender_transaction", "fqn": ["shopify_source", "rest", "shopify", "tender_transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tender_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the tender transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "created_at": 1754507520.789435, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index (from 1) representing the application of the discount to the checkout. Use the latest (highest index)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "created_at": 1754507520.7900536, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_discount_code": {"database": "postgres", "schema": "public", "name": "order_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_discount_code", "fqn": ["shopify_source", "rest", "shopify", "order_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "created_at": 1754507520.7907083, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_shop_price": {"name": "original_shop_price", "description": "The pre-tax shipping price without any discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "created_at": 1754507520.7913938, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment_event": {"database": "postgres", "schema": "public", "name": "fulfillment_event", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment_event", "fqn": ["shopify_source", "rest", "shopify", "fulfillment_event"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_event_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "created_at": 1754507520.793042, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tax_line": {"database": "postgres", "schema": "public", "name": "tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tax_line", "fqn": ["shopify_source", "rest", "shopify", "tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "created_at": 1754507520.7937028, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_allocation": {"database": "postgres", "schema": "public", "name": "discount_allocation", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_allocation", "fqn": ["shopify_source", "rest", "shopify", "discount_allocation"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_allocation_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing allocation amounts applied to order lines from discount applications. Discount allocations indicate how much of the discount was applied and how it was split across line items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The currency code associated with the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The currency code associated with the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of this allocation in the list of discount allocations applied to an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "created_at": 1754507520.7943623, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_application": {"database": "postgres", "schema": "public", "name": "discount_application", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_application", "fqn": ["shopify_source", "rest", "shopify", "discount_application"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_application_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount applications, which define how discounts were applied to an order. This includes metadata like allocation method, target type, and value type.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The allocation method used to apply the discount. Valid values include `each` (the discount is applied to each entitled item) and `across` (the discount is applied across all entitled items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A short description of the discount, usually derived from the associated rule or promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Specifies whether the discount applies to all items (`all`) or only entitled ones (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "Indicates whether the discount applies to `line_item` or `shipping_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the discount as displayed in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Possible values include `manual`, `automatic`, or `script`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The numerical value of the discount. This may be a flat amount or a percentage, depending on `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount is a `percentage` or a `fixed_amount`. When the target type is `shipping_line`, only `percentage` is allowed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "created_at": 1754507520.795024, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_app": {"database": "postgres", "schema": "public", "name": "discount_code_app", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_app", "fqn": ["shopify_source", "rest", "shopify", "discount_code_app"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_app_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount codes created and managed through apps using Shopify Functions. These app-based discounts support advanced, dynamic behavior and custom targeting.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_count": {"name": "codes_count_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_precision": {"name": "codes_count_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "created_at": 1754507520.7957444, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_basic": {"database": "postgres", "schema": "public", "name": "discount_code_basic", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_basic", "fqn": ["shopify_source", "rest", "shopify", "discount_code_basic"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_basic_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing basic discount codes and their metadata. This includes usage limits, timeframes, eligible customers, combination rules, and tracked usage.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "Number of billing cycles the discount can be applied for (used for subscriptions).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is an exact number or an estimate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "created_at": 1754507520.7964725, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_bxgy": {"database": "postgres", "schema": "public", "name": "discount_code_bxgy", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_bxgy", "fqn": ["shopify_source", "rest", "shopify", "discount_code_bxgy"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_bxgy_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing Buy X Get Y discount codes, including conditions for what customers must buy, what they receive, and metadata such as usage, status, and combination eligibility.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "uses_per_order_limit": {"name": "uses_per_order_limit", "description": "The maximum number of times the discount can be applied to a single order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "created_at": 1754507520.7971663, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_free_shipping": {"database": "postgres", "schema": "public", "name": "discount_code_free_shipping", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_free_shipping", "fqn": ["shopify_source", "rest", "shopify", "discount_code_free_shipping"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_free_shipping_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing free shipping discount codes and metadata, including subscription and one-time purchase applicability, eligible countries, usage limits, and combination rules.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "created_at": 1754507520.7978427, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_redeem_code": {"database": "postgres", "schema": "public", "name": "discount_redeem_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_redeem_code", "fqn": ["shopify_source", "rest", "shopify", "discount_redeem_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_redeem_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each code is tied to a parent discount and may be created by an app or manually by a merchant.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This value is updated asynchronously and may not match real-time usage counts.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (usually an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount this redeem code is associated with (e.g., `discount_code_basic`, `discount_code_bxgy`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "created_at": 1754507520.7984712, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order": {"database": "postgres", "schema": "public", "name": "order", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_data", "quoting": {"database": null, "schema": null, "identifier": true, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_ip": {"name": "client_ip", "description": "The IP address of the customer who placed the order. Useful for fraud detection and geographic analysis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_accepts_marketing": {"name": "customer_accepts_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_at": {"name": "cancelled_at", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The shop currency when the order was placed. For example, \"USD\" or \"CAD\".", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_financial_status": {"name": "display_financial_status", "description": "An order's financial status for display in the Shopify admin. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFinancialStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_fulfillment_status": {"name": "display_fulfillment_status", "description": "The order's fulfillment status that displays in the Shopify admin to merchants. For example, an order might be unfulfilled or scheduled. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFulfillmentStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The unique identifier for the order that appears on the order page in the Shopify admin and the Order status page. For example, \"#1001\", \"EN1001\", or \"1001-A\". This value isn't unique across multiple stores.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The optional note associated with the order. Contains additional information or instructions added by merchants or customers during the order process. Commonly used for special delivery instructions, gift messages, or internal processing notes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The name of the source associated with the order, such as \"web\", \"mobile_app\", or \"pos\". Use this field to identify the platform where the order was placed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_amount": {"name": "subtotal_price_set_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_amount": {"name": "subtotal_price_set_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_currency_code": {"name": "subtotal_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_currency_code": {"name": "subtotal_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_shop_amount": {"name": "total_discounts_set_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_pres_amount": {"name": "total_discounts_set_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_shop_currency_code": {"name": "total_discounts_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_pres_currency_code": {"name": "total_discounts_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_amount": {"name": "total_price_set_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_amount": {"name": "total_price_set_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_currency_code": {"name": "total_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_currency_code": {"name": "total_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights before returns, in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "The staff member who created or is responsible for the order. Useful for tracking which team member handled phone orders, manual orders, or order modifications. Returns null for orders created directly by customers through the online store.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "confirmed": {"name": "confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status_page_url": {"name": "status_page_url", "description": "The URL where customers can check their order's current status, including tracking information and delivery updates. Provides order tracking links in emails, apps, or customer communications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received_set_shop_amount": {"name": "total_tip_received_set_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_pres_amount": {"name": "total_tip_received_set_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_shop_currency_code": {"name": "total_tip_received_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_pres_currency_code": {"name": "total_tip_received_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency_code": {"name": "presentment_currency_code", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_shop_amount": {"name": "total_shipping_price_set_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_pres_amount": {"name": "total_shipping_price_set_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_shop_currency_code": {"name": "total_shipping_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_pres_currency_code": {"name": "total_shipping_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_data\"", "created_at": 1754507520.7994647, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer": {"database": "postgres", "schema": "public", "name": "customer", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "state": {"name": "state", "description": "The state of the customer's account with a shop. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/customer#field-Customer.fields.state).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_exempt": {"name": "tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "verified_email": {"name": "verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_state": {"name": "email_marketing_consent_state", "description": "The current email marketing state for the customer. New version of `accepts_marketing` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_opt_in_level": {"name": "email_marketing_consent_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. New version of `marketing_opt_in_level` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_updated_at": {"name": "email_marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. New version of `accepts_marketing_updated_at` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_data\"", "created_at": 1754507520.800144, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_line": {"database": "postgres", "schema": "public", "name": "order_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item for an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "unfulfilled_quantity": {"name": "unfulfilled_quantity", "description": "The number of units not yet fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_pres_amount": {"name": "original_total_set_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_pres_currency_code": {"name": "original_total_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_shop_amount": {"name": "original_total_set_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_shop_currency_code": {"name": "original_total_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_amount": {"name": "total_discount_set_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_amount": {"name": "total_discount_set_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_currency_code": {"name": "total_discount_set_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_currency_code": {"name": "total_discount_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_data\"", "created_at": 1754507520.800894, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_line_refund": {"database": "postgres", "schema": "public", "name": "order_line_refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_line_refund", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_line_refund"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_line_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item refund in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location where the items will be restocked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_pres_amount": {"name": "subtotal_set_pres_amount", "description": "The refunded subtotal amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_pres_currency_code": {"name": "subtotal_set_pres_currency_code", "description": "The three letter currency code for the subtotal the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_shop_amount": {"name": "subtotal_set_shop_amount", "description": "The refunded subtotal amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_shop_currency_code": {"name": "subtotal_set_shop_currency_code", "description": "The three letter currency code for the subtotal in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The total tax amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three letter currency code of the tax the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The total tax amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three letter currency code of the tax in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "created_at": 1754507520.8016078, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product": {"database": "postgres", "schema": "public", "name": "product", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product in Shopify.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_data\"", "created_at": 1754507520.8023608, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_variant": {"database": "postgres", "schema": "public", "name": "product_variant", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_variant", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_variant"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_variant_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "available_for_sale": {"name": "available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_components": {"name": "requires_components", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "created_at": 1754507520.8030488, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.transaction": {"database": "postgres", "schema": "public", "name": "transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.transaction", "fqn": ["shopify_source", "graphql", "shopify_graphql", "transaction"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a transaction in Shopify.", "columns": {"id": {"name": "id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_amount": {"name": "amount_set_pres_amount", "description": "The amount of the transaction in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_currency_code": {"name": "amount_set_pres_currency_code", "description": "The three letter currency code of the customer's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_amount": {"name": "amount_set_shop_amount", "description": "The amount of the transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_currency_code": {"name": "amount_set_shop_currency_code", "description": "The three letter currency code of the shop's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used to process the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "Unique identifier of the staff member who was logged into the Shopify POS device when the transaction was processed", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_transaction_data\"", "created_at": 1754507520.8037844, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.refund": {"database": "postgres", "schema": "public", "name": "refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.refund", "fqn": ["shopify_source", "graphql", "shopify_graphql", "refund"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a refund within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the refund was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "return_id": {"name": "return_id", "description": "Reference to the return which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "Reference to the staff member who created the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_pres_amount": {"name": "total_refunded_set_pres_amount", "description": "The total amount across all transactions for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_pres_currency_code": {"name": "total_refunded_set_pres_currency_code", "description": "The three letter currency code for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_shop_amount": {"name": "total_refunded_set_shop_amount", "description": "The total amount across all transactions for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_shop_currency_code": {"name": "total_refunded_set_shop_currency_code", "description": "The three letter currency code for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_refund_data\"", "created_at": 1754507520.8044841, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_adjustment": {"database": "postgres", "schema": "public", "name": "order_adjustment", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_adjustment", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_adjustment"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_adjustment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_amount": {"name": "amount_set_pres_amount", "description": "The amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_currency_code": {"name": "amount_set_pres_currency_code", "description": "The three letter currency code for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_amount": {"name": "amount_set_shop_amount", "description": "The amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_currency_code": {"name": "amount_set_shop_currency_code", "description": "The three letter shop currency code of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_pres_amount": {"name": "tax_amount_set_pres_amount", "description": "The tax amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_pres_currency_code": {"name": "tax_amount_set_pres_currency_code", "description": "The three letter currency code for the tax of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_shop_amount": {"name": "tax_amount_set_shop_amount", "description": "The tax amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_shop_currency_code": {"name": "tax_amount_set_shop_currency_code", "description": "The three letter shop currency code of the tax for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "created_at": 1754507520.805138, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.abandoned_checkout": {"database": "postgres", "schema": "public", "name": "abandoned_checkout", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout", "fqn": ["shopify_source", "graphql", "shopify_graphql", "abandoned_checkout"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_abandoned_checkout_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_amount": {"name": "subtotal_price_set_shop_amount", "description": "The price of the checkout before shipping and taxes in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_amount": {"name": "subtotal_price_set_pres_amount", "description": "The price of the checkout before shipping and taxes in *presentment* currencyy. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_currency_code": {"name": "subtotal_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_currency_code": {"name": "subtotal_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_amount": {"name": "total_discount_set_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_amount": {"name": "total_discount_set_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_currency_code": {"name": "total_discount_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_currency_code": {"name": "total_discount_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_shop_amount": {"name": "total_duties_set_shop_amount", "description": "The total duties of the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_pres_amount": {"name": "total_duties_set_pres_amount", "description": "The total duties of the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_shop_currency_code": {"name": "total_duties_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_pres_currency_code": {"name": "total_duties_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_shop_amount": {"name": "total_line_items_price_set_shop_amount", "description": "The sum of the prices of all line items in the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_pres_amount": {"name": "total_line_items_price_set_pres_amount", "description": "The sum of the prices of all line items in the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_shop_currency_code": {"name": "total_line_items_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_pres_currency_code": {"name": "total_line_items_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_amount": {"name": "total_price_set_shop_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_amount": {"name": "total_price_set_pres_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_currency_code": {"name": "total_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_currency_code": {"name": "total_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The sum of all the taxes applied to the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The sum of all the taxes applied to the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "completed_at": {"name": "completed_at", "description": "The date and time when the buyer completed the checkout. Null if the checkout has not been completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "created_at": 1754507520.8059971, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.collection_product": {"database": "postgres", "schema": "public", "name": "collection_product", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection_product", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection_product"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "created_at": 1754507520.8066187, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.collection": {"database": "postgres", "schema": "public", "name": "collection", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "applied_disjunctively": {"name": "applied_disjunctively", "description": "Boolean representing whether products must match any or all of the `rules` to be included in the collection. True = products must match at least one rule, false = products must match all rules.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values inclide - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_data\"", "created_at": 1754507520.8072577, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_tag": {"database": "postgres", "schema": "public", "name": "customer_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "created_at": 1754507520.807861, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment": {"database": "postgres", "schema": "public", "name": "fulfillment", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_status": {"name": "display_status", "description": "Display status for this fulfillment. Valid values include `attempted_delivery`, `canceled`, `confirmed`, `delayed`, `delivered`, `failure`, `fulfilled`, `in_transit`, `label_printed`, `label_purchased`, `label_voided`, `marked_as_fulfilled`, `not_delivered`, `out_for_delivery`, `picked_up`, `ready_for_pickup`, `submitted`. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service_id": {"name": "service_id", "description": "The id of the fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: (Legacy status, to be deprecated) Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: (Legacy status, to be deprecated) The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "Sum of all line item quantities for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "created_at": 1754507520.8085122, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_item": {"database": "postgres", "schema": "public", "name": "inventory_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_item", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_item"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked": {"name": "tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_locked": {"name": "tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "created_at": 1754507520.8091893, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_level": {"database": "postgres", "schema": "public", "name": "inventory_level", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_level", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_level"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_level_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "created_at": 1754507520.809833, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_quantity": {"database": "postgres", "schema": "public", "name": "inventory_quantity", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_quantity", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_quantity"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_quantity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The total quantity of the inventory item available at all locations.", "columns": {"id": {"name": "id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "created_at": 1754507520.810456, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.location": {"database": "postgres", "schema": "public", "name": "location", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.location", "fqn": ["shopify_source", "graphql", "shopify_graphql", "location"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_location_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_fulfillment_service": {"name": "is_fulfillment_service", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_location_data\"", "created_at": 1754507520.8111217, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.metafield": {"database": "postgres", "schema": "public", "name": "metafield", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.metafield", "fqn": ["shopify_source", "graphql", "shopify_graphql", "metafield"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_metafield_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_id": {"name": "owner_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Use this instead of `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_metafield_data\"", "created_at": 1754507520.811767, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_note_attribute": {"database": "postgres", "schema": "public", "name": "order_note_attribute", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_note_attribute", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_note_attribute"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_note_attribute_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "created_at": 1754507520.812388, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_shipping_line": {"database": "postgres", "schema": "public", "name": "order_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_shipping_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_shipping_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_pres_amount": {"name": "current_discounted_price_set_pres_amount", "description": "Current shipping price in customer currency after applying refunds and discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_pres_currency_code": {"name": "current_discounted_price_set_pres_currency_code", "description": "Three digit customer currency code for the current discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_shop_amount": {"name": "current_discounted_price_set_shop_amount", "description": "Current shipping price in shop currency after applying refunds and discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_shop_currency_code": {"name": "current_discounted_price_set_shop_currency_code", "description": "Three digit shop currency code for the current discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_pres_amount": {"name": "discounted_price_set_pres_amount", "description": "Shipping price in customer currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_pres_currency_code": {"name": "discounted_price_set_pres_currency_code", "description": "Three digit customer currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_shop_amount": {"name": "discounted_price_set_shop_amount", "description": "Shipping price in shop currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_shop_currency_code": {"name": "discounted_price_set_shop_currency_code", "description": "Three digit shop currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_removed": {"name": "is_removed", "description": "Whether the shipping line has been removed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_pres_amount": {"name": "original_price_set_pres_amount", "description": "The pre-tax shipping price without any discounts applied in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_pres_currency_code": {"name": "original_price_set_pres_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_shop_amount": {"name": "original_price_set_shop_amount", "description": "The pre-tax shipping price without any discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_shop_currency_code": {"name": "original_price_set_shop_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_rate_handle": {"name": "shipping_rate_handle", "description": "A unique identifier for the shipping rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "created_at": 1754507520.813097, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_shipping_tax_line": {"database": "postgres", "schema": "public", "name": "order_shipping_tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_shipping_tax_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_shipping_tax_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_shipping_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this recod is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_amount": {"name": "price_set_pres_amount", "description": "The amount of tax in customer currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_currency_code": {"name": "price_set_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_amount": {"name": "price_set_shop_amount", "description": "The amount of tax in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_currency_code": {"name": "price_set_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The source of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "created_at": 1754507520.8137434, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_tag": {"database": "postgres", "schema": "public", "name": "order_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "created_at": 1754507520.8143554, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.media": {"database": "postgres", "schema": "public", "name": "media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing media metadata, including status and timestamps.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "alt": {"name": "alt", "description": "A word or phrase to share the nature or contents of a media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "file_status": {"name": "file_status", "description": "The status of the file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_content_type": {"name": "media_content_type", "description": "The media content type (values include 'external_video', 'image', 'model_3d', 'video')", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_alt_text": {"name": "preview_image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_height": {"name": "preview_image_height", "description": "The original height of the image in pixels (returns null if image not hosted in Shopify).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_id": {"name": "preview_image_id", "description": "A unique id for the image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_url": {"name": "preview_image_url", "description": "The location of the image as a URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_width": {"name": "preview_image_width", "description": "The original width of the image in pixels (returns null if image not hosted in Shopify).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_status": {"name": "preview_status", "description": "Current status of the preview image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_data\"", "created_at": 1754507520.8149836, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.media_image": {"database": "postgres", "schema": "public", "name": "media_image", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.media_image", "fqn": ["shopify_source", "graphql", "shopify_graphql", "media_image"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_media_image_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_image_data\"", "created_at": 1754507520.8156147, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_media": {"database": "postgres", "schema": "public", "name": "product_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_media_data\"", "created_at": 1754507520.8162193, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_variant_media": {"database": "postgres", "schema": "public", "name": "product_variant_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_variant_media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_variant_media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_variant_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping product variants to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "created_at": 1754507520.8168128, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_tag": {"database": "postgres", "schema": "public", "name": "product_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "created_at": 1754507520.817463, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.shop": {"database": "postgres", "schema": "public", "name": "shop", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.shop", "fqn": ["shopify_source", "graphql", "shopify_graphql", "shop"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_shop_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The shop's street address (or PO Box number).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_api_supported": {"name": "checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code_v_2": {"name": "billing_address_country_code_v_2", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The three letter code for the currency that the shop sells in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_domain_host": {"name": "primary_domain_host", "description": "The host name of the primary domain of the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "contact_email": {"name": "contact_email", "description": "The public-facing contact email address for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "features_storefront": {"name": "features_storefront", "description": "Whether a shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_format": {"name": "currency_formats_money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_in_emails_format": {"name": "currency_formats_money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_with_currency_format": {"name": "currency_formats_money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_with_currency_in_emails_format": {"name": "currency_formats_money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "password_enabled": {"name": "password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_domain_localization_default_locale": {"name": "primary_domain_localization_default_locale", "description": "The localization of the domain of the shop's online store, if the domain doesn't redirect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "setup_required": {"name": "setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner_name": {"name": "shop_owner_name", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_shipping": {"name": "tax_shipping", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_abbreviation": {"name": "timezone_abbreviation", "description": "The shop's time zone abbreviation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset": {"name": "timezone_offset", "description": "The shop's time zone offset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset_minutes": {"name": "timezone_offset_minutes", "description": "The shop's time zone offset expressed as a number of minutes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_shop_data\"", "created_at": 1754507520.8182206, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.tender_transaction": {"database": "postgres", "schema": "public", "name": "tender_transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.tender_transaction", "fqn": ["shopify_source", "graphql", "shopify_graphql", "tender_transaction"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_tender_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the tender transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "created_at": 1754507520.8188417, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "abandoned_checkout_discount_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_abandoned_checkout_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index (from 1) representing the application of the discount to the checkout. Use the latest (highest index)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "created_at": 1754507520.819465, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_discount_code": {"database": "postgres", "schema": "public", "name": "order_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_discount_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_discount_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "created_at": 1754507520.8200586, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_event": {"database": "postgres", "schema": "public", "name": "fulfillment_event", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_event", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_event"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_event_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delayed: The shipment was delayed. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "created_at": 1754507520.8207524, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.tax_line": {"database": "postgres", "schema": "public", "name": "tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.tax_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "tax_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_amount": {"name": "price_set_pres_amount", "description": "The amount of tax in customer currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_currency_code": {"name": "price_set_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_amount": {"name": "price_set_shop_amount", "description": "The amount of tax in shop currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_currency_code": {"name": "price_set_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "created_at": 1754507520.8213866, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_allocation": {"database": "postgres", "schema": "public", "name": "discount_allocation", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_allocation", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_allocation"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_allocation_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing allocation amounts applied to order lines from discount applications. Discount allocations indicate how much of the discount was applied and how it was split across line items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocated_amount_set_pres_amount": {"name": "allocated_amount_set_pres_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_pres_currency_code": {"name": "allocated_amount_set_pres_currency_code", "description": "The currency code associated with the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_shop_amount": {"name": "allocated_amount_set_shop_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_shop_currency_code": {"name": "allocated_amount_set_shop_currency_code", "description": "The currency code associated with the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of this allocation in the list of discount allocations applied to an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "created_at": 1754507520.8220036, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_application": {"database": "postgres", "schema": "public", "name": "discount_application", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_application", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_application"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_application_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount applications, which define how discounts were applied to an order or shipping line. This includes metadata like allocation method, target type, and value type.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The allocation method used to apply the discount. Valid values include `each` (the discount is applied to each entitled item) and `across` (the discount is applied across all entitled items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Specifies whether the discount applies to all items (`all`) or only entitled ones (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "Indicates whether the discount applies to `line_item` or `shipping_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "created_at": 1754507520.8226438, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_app": {"database": "postgres", "schema": "public", "name": "discount_code_app", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_app", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_app"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_app_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount codes created and managed through apps using Shopify Functions. These app-based discounts support advanced, dynamic behavior and custom targeting.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of times a discount applies on recurring purchases (subscriptions). 0 will apply infinitely. 1 will only apply to the first checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_count": {"name": "codes_count_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_precision": {"name": "codes_count_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "created_at": 1754507520.8233187, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_basic": {"database": "postgres", "schema": "public", "name": "discount_code_basic", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_basic", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_basic"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_basic_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing basic discount codes and their metadata. This includes usage limits, timeframes, eligible customers, combination rules, and tracked usage.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "Number of billing cycles the discount can be applied for (used for subscriptions).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is an exact number or an estimate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "created_at": 1754507520.8240175, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_bxgy": {"database": "postgres", "schema": "public", "name": "discount_code_bxgy", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_bxgy", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_bxgy"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_bxgy_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing Buy X Get Y discount codes, including conditions for what customers must buy, what they receive, and metadata such as usage, status, and combination eligibility.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "created_at": 1754507520.8246877, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_free_shipping": {"database": "postgres", "schema": "public", "name": "discount_code_free_shipping", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_free_shipping", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_free_shipping"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_free_shipping_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing free shipping discount codes and metadata, including subscription and one-time purchase applicability, eligible countries, usage limits, and combination rules.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles for which the discount can be applied, which is useful for subscription-based discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "created_at": 1754507520.82536, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_redeem_code": {"database": "postgres", "schema": "public", "name": "discount_redeem_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_redeem_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_redeem_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_redeem_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each code is tied to a parent discount and may be created by an app or manually by a merchant.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This value is updated asynchronously and may not match real-time usage counts.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (usually an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount this redeem code is associated with (e.g., `discount_code_basic`, `discount_code_bxgy`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "created_at": 1754507520.8259735, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_tracking_info": {"database": "postgres", "schema": "public", "name": "fulfillment_tracking_info", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_tracking_info", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_tracking_info"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_tracking_info_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents tracking information associated with a fulfillment. Used by Shopify to generate clickable tracking numbers and delivery updates.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_id": {"name": "fulfillment_id", "description": "The unique identifier of the fulfillment this tracking info belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The name of the tracking company. For supported carriers, Shopify automatically builds tracking URLs and may update the shipment status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "Tracking number for the fulfillment. If a known tracking company is specified, or the number matches a known format, Shopify may auto-generate a tracking URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "url": {"name": "url", "description": "Direct URL to track the fulfillment. This is displayed in the Shopify admin and customer notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the tracking information associated with a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "created_at": 1754507520.8270166, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_visit": {"database": "postgres", "schema": "public", "name": "customer_visit", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_visit", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_visit"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_visit_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metadata about a customer's session visiting a Shopify store, including session, landing page, referrer, marketing campaign, and source attribution information. This data helps merchants analyze the effectiveness of marketing campaigns and customer engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "A globally-unique identifier for the customer visit session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order associated with the customer visit, if any.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of marketing tactic associated with the session. Possible values include: abandoned_cart, ad, affiliate, link, loyalty, message, newsletter, notification, post, retargeting, seo, storefront_app, transactional.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page": {"name": "landing_page", "description": "The URL of the first page the customer landed on for the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page_html": {"name": "landing_page_html", "description": "The landing page URL rendered as HTML with a hyperlink.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "occurred_at": {"name": "occurred_at", "description": "The timestamp when the customer's session occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_code": {"name": "referral_code", "description": "A marketing referral code captured from the landing URL. Supports query params like `ref`, `source`, or `r`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_info_html": {"name": "referral_info_html", "description": "Referral info rendered as HTML with URLs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referrer_url": {"name": "referrer_url", "description": "The referring webpage where the customer clicked a link to arrive at the store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The origin of the customer's visit, such as a platform (e.g., Facebook, Google), a QR code, direct, or other attribution channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_description": {"name": "source_description", "description": "A more descriptive label for the visit source; used primarily for the first or last session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_type": {"name": "source_type", "description": "The marketing tactic type, such as ad, seo, newsletter, etc.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_campaign": {"name": "utm_parameters_campaign", "description": "The name of the marketing campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_content": {"name": "utm_parameters_content", "description": "Identifies specific content within a campaign, used to differentiate similar links.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_medium": {"name": "utm_parameters_medium", "description": "The medium of the campaign (e.g., cpc, banner, email).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_source": {"name": "utm_parameters_source", "description": "The traffic source for the campaign (e.g., google, newsletter).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_term": {"name": "utm_parameters_term", "description": "Search terms associated with paid campaigns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "created_at": 1754507520.8276877, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_order_line_item": {"database": "postgres", "schema": "public", "name": "fulfillment_order_line_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_order_line_item", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_order_line_item"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_order_line_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Links a fulfillment order to specific items that require fulfillment. Contains detailed product information, quantity tracking, variant metadata, and shipping requirements. This is a core entity for determining which products and how many units are involved in a given fulfillment process.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_order_id": {"name": "fulfillment_order_id", "description": "The identifier of the fulfillment order that this line item is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for this fulfillment order line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "Alt text describing the image associated with the line item's variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "The height in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "The unique identifier for the variant image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The url of the variant image used in this fulfillment line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "The width in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The identifier of the inventory item being fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_item_id": {"name": "order_line_item_id", "description": "The identifier of the original order line item linked to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_title": {"name": "product_title", "description": "The title of the product at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The identifier of the product variant associated with this fulfillment item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remaining_quantity": {"name": "remaining_quantity", "description": "The number of units remaining to be fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Indicates whether physical shipping is required for this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The SKU of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "The total number of units allocated to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The vendor of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "created_at": 1754507520.828985, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_address": {"database": "postgres", "schema": "public", "name": "customer_address", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_address", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_address"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a customer's mailing address and includes additional geographic metadata.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer to whom this address belongs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the customer address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The first line of the address (e.g., street address or PO Box).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The second line of the address (e.g., apartment, suite, or unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The name of the city, district, village, or town for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The company or organization associated with the customer at this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The full country name for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter ISO country code for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_default": {"name": "is_default", "description": "Indicates if this address is the default shipping address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The full name of the customer, derived from first and last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer\u2019s phone number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The name of the region, state, or province for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The standardized zone or province code for the region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code of the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "validation_result_summary": {"name": "validation_result_summary", "description": "A summary of address validation results (e.g., match confidence or status).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The timezone associated with the address, if available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "coordinates_validated": {"name": "coordinates_validated", "description": "Indicates whether the latitude and longitude coordinates were validated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "created_at": 1754507520.8297405, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.3985634, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.3989828, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.399227, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.3994575, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.3996773, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\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 when 'm' then 'MATERIALIZED 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 where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- 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', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\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{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4016054, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4023044, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4033031, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.403562, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4078279, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4089024, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4095275, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4101338, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4110203, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4118414, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4121923, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4128406, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4135842, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4151547, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4155307, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.416145, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.416659, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.417489, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n {% if relation.type == 'materialized_view' -%}\n {% set relation_type = \"materialized view\" %}\n {%- else -%}\n {%- set relation_type = relation.type -%}\n {%- endif -%}\n comment on {{ relation_type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4182243, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4193368, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4197192, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4199517, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4203186, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4206047, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n update {{ target }}\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }}::text = {{ target }}.{{ columns.dbt_scd_id }}::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n {% if config.get(\"dbt_valid_to_current\") %}\n and ({{ target }}.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }} or {{ target }}.{{ columns.dbt_valid_to }} is null);\n {% else %}\n and {{ target }}.{{ columns.dbt_valid_to }} is null;\n {% endif %}\n\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4229069, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4237752, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_microbatch_sql": {"name": "postgres__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_microbatch_sql", "macro_sql": "{% macro postgres__get_incremental_microbatch_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"dbt-postgres 'microbatch' requires a `unique_key` config\") }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_merge_sql", "macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.424413, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4251869, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.425482, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4264627, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4302297, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4306722, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4315932, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4318743, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4322278, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.433407, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4336927, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}{{ ';' if not loop.last else \"\" }}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4345045, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4350617, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4354177, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4364393, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }}\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\t{{ ';' if not loop.last else \"\" }}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4375772, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config.model) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4381528, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4384377, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4387102, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.439037, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4400296, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4406056, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4412067, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4417844, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4434307, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4438167, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4441006, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4444003, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.444681, "supported_languages": null}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4464383, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.448344, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4488199, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation.render() %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4498081, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4501991, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.450468, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4507482, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4509814, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4513195, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4515522, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4524856, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4528437, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4551914, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation.render())) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4602022, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n {% do create_indexes(intermediate_relation) %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4642823, "supported_languages": ["sql"]}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4683082, "supported_languages": ["sql"]}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.471263, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.472002, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.472503, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation.render() ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation.render() ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4749897, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4754586, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.476707, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4779172, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4783967, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.478759, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4793465, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4797125, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4802928, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.480655, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4811819, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.481663, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.481961, "supported_languages": null}, "macro.dbt.get_incremental_microbatch_sql": {"name": "get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_microbatch_sql", "macro_sql": "{% macro get_incremental_microbatch_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_microbatch_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_microbatch_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4823358, "supported_languages": null}, "macro.dbt.default__get_incremental_microbatch_sql": {"name": "default__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_microbatch_sql", "macro_sql": "{% macro default__get_incremental_microbatch_sql(arg_dict) %}\n\n {{ exceptions.raise_not_implemented('microbatch materialization strategy not implemented for adapter ' + adapter.type()) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.482655, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.483213, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4847429, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.485803, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4870648, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4875321, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4889278, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4909365, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set source_unique_key = (\"DBT_INTERNAL_SOURCE.\" ~ unique_key) | trim %}\n\t {% set target_unique_key = (\"DBT_INTERNAL_DEST.\" ~ unique_key) | trim %}\n\t {% set unique_key_match = equals(source_unique_key, target_unique_key) | trim %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4944453, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4949636, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is string %}\n {% set unique_key = [unique_key] %}\n {% endif %}\n\n {%- set unique_key_str = unique_key|join(', ') -%}\n\n delete from {{ target }} as DBT_INTERNAL_DEST\n where ({{ unique_key_str }}) in (\n select distinct {{ unique_key_str }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4963915, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4969008, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.4981546, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% set relation_for_indexes = target_relation %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set relation_for_indexes = intermediate_relation %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% set relation_for_indexes = temp_relation %}\n {% set contract_config = config.get('contract') %}\n {% if not contract_config or not contract_config.enforced %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {% endif %}\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_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(relation_for_indexes) %}\n {% endif %}\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 {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.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": 1754507511.5063794, "supported_languages": ["sql"]}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5075428, "supported_languages": null}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5097544, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5120928, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5144024, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5160134, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5165, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5167356, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation.render() ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% if target_relation.database == defer_relation.database and\n target_relation.schema == defer_relation.schema and\n target_relation.identifier == defer_relation.identifier %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation.render()) }}\n {% else %}\n {% call statement('main') %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endcall %}\n {% endif %}\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.521624, "supported_languages": ["sql"]}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5222278, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation.render() }} clone {{ defer_relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.522565, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5264835, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5268185, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5272758, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set primary_key = config.get('unique_key') %}\n {% set updated_at = config.get('updated_at') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\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 }}.{{ columns.dbt_valid_from }} < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5291579, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5294886, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5298173, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5325387, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set check_cols_config = config.get('check_cols') %}\n {% set primary_key = config.get('unique_key') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set updated_at = config.get('updated_at') or 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_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.535438, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5362604, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n merge into {{ target.render() }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }} = DBT_INTERNAL_DEST.{{ columns.dbt_scd_id }}\n\n when matched\n {% if config.get(\"dbt_valid_to_current\") %}\n\t{% set source_unique_key = (\"DBT_INTERNAL_DEST.\" ~ columns.dbt_valid_to) | trim %}\n\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\tand ({{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null)\n\n {% else %}\n and DBT_INTERNAL_DEST.{{ columns.dbt_valid_to }} is null\n {% endif %}\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5378928, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5417037, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation.render() }} add column {{ adapter.quote(column.name) }} {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5423622, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5426955, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.542882, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5431886, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5434268, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.543825, "supported_languages": null}, "macro.dbt.get_snapshot_table_column_names": {"name": "get_snapshot_table_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_snapshot_table_column_names", "macro_sql": "{% macro get_snapshot_table_column_names() %}\n {{ return({'dbt_valid_to': 'dbt_valid_to', 'dbt_valid_from': 'dbt_valid_from', 'dbt_scd_id': 'dbt_scd_id', 'dbt_updated_at': 'dbt_updated_at', 'dbt_is_deleted': 'dbt_is_deleted'}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5443254, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n {% if strategy.hard_deletes == 'new_record' %}\n {% set new_scd_id = snapshot_hash_arguments([columns.dbt_scd_id, snapshot_get_time()]) %}\n {% endif %}\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }}\n from {{ target_relation }}\n where\n {% if config.get('dbt_valid_to_current') %}\n\t\t{% set source_unique_key = columns.dbt_valid_to | trim %}\n\t\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\n\t\t{# The exact equals semantics between NULL values depends on the current behavior flag set. Also, update records if the source field is null #}\n ( {{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null )\n {% else %}\n {{ columns.dbt_valid_to }} is null\n {% endif %}\n\n ),\n\n insertions_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }},\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }}\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_to }}\n\n from snapshot_query\n ),\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n\n deletes_source_data as (\n\n select *, {{ unique_key_fields(strategy.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 {%- if strategy.hard_deletes == 'new_record' -%}\n ,'False' as {{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from insertions_source_data as source_data\n left outer join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"snapshotted_data\") }}\n or ({{ unique_key_is_not_null(strategy.unique_key, \"snapshotted_data\") }} and (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from updates_source_data as source_data\n join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n )\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n ,\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_to }},\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n and not (\n --avoid updating the record's valid_to if the latest entry is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n {%- endif %}\n )\n {%- endif %}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n {% set snapshotted_cols = get_list_of_column_names(get_columns_in_relation(target_relation)) %}\n {% set source_sql_cols = get_column_schema_from_query(source_sql) %}\n ,\n deletion_records as (\n\n select\n 'insert' as dbt_change_type,\n {#\n If a column has been added to the source it won't yet exist in the\n snapshotted table so we insert a null value as a placeholder for the column.\n #}\n {%- for col in source_sql_cols -%}\n {%- if col.name in snapshotted_cols -%}\n snapshotted_data.{{ adapter.quote(col.column) }},\n {%- else -%}\n NULL as {{ adapter.quote(col.column) }},\n {%- endif -%}\n {% endfor -%}\n {%- if strategy.unique_key | is_list -%}\n {%- for key in strategy.unique_key -%}\n snapshotted_data.{{ key }} as dbt_unique_key_{{ loop.index }},\n {% endfor -%}\n {%- else -%}\n snapshotted_data.dbt_unique_key as dbt_unique_key,\n {% endif -%}\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n snapshotted_data.{{ columns.dbt_valid_to }} as {{ columns.dbt_valid_to }},\n {{ new_scd_id }} as {{ columns.dbt_scd_id }},\n 'True' as {{ columns.dbt_is_deleted }}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n and not (\n --avoid inserting a new record if the latest one is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletes\n {%- endif %}\n {%- if strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletion_records\n {%- endif %}\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments", "macro.dbt.snapshot_get_time", "macro.dbt.unique_key_fields", "macro.dbt.equals", "macro.dbt.get_dbt_valid_to_current", "macro.dbt.unique_key_join_on", "macro.dbt.unique_key_is_null", "macro.dbt.unique_key_is_not_null", "macro.dbt.get_list_of_column_names", "macro.dbt.get_columns_in_relation", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5528848, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5533276, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n\n select *,\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , 'False' as {{ columns.dbt_is_deleted }}\n {% endif -%}\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.get_dbt_valid_to_current"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.554329, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.555166, "supported_languages": null}, "macro.dbt.get_updated_at_column_data_type": {"name": "get_updated_at_column_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_updated_at_column_data_type", "macro_sql": "{% macro get_updated_at_column_data_type(snapshot_sql) %}\n {% set snapshot_sql_column_schema = get_column_schema_from_query(snapshot_sql) %}\n {% set dbt_updated_at_data_type = null %}\n {% set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {% set ns.dbt_updated_at_data_type = null -%}\n {% for column in snapshot_sql_column_schema %}\n {% if ((column.column == 'dbt_updated_at') or (column.column == 'DBT_UPDATED_AT')) %}\n {% set ns.dbt_updated_at_data_type = column.dtype %}\n {% endif %}\n {% endfor %}\n {{ return(ns.dbt_updated_at_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5562985, "supported_languages": null}, "macro.dbt.check_time_data_types": {"name": "check_time_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.check_time_data_types", "macro_sql": "{% macro check_time_data_types(sql) %}\n {% set dbt_updated_at_data_type = get_updated_at_column_data_type(sql) %}\n {% set snapshot_get_time_data_type = get_snapshot_get_time_data_type() %}\n {% if snapshot_get_time_data_type is not none and dbt_updated_at_data_type is not none and snapshot_get_time_data_type != dbt_updated_at_data_type %}\n {% if exceptions.warn_snapshot_timestamp_data_types %}\n {{ exceptions.warn_snapshot_timestamp_data_types(snapshot_get_time_data_type, dbt_updated_at_data_type) }}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_updated_at_column_data_type", "macro.dbt.get_snapshot_get_time_data_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.557126, "supported_languages": null}, "macro.dbt.get_dbt_valid_to_current": {"name": "get_dbt_valid_to_current", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_dbt_valid_to_current", "macro_sql": "{% macro get_dbt_valid_to_current(strategy, columns) %}\n {% set dbt_valid_to_current = config.get('dbt_valid_to_current') or \"null\" %}\n coalesce(nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}), {{dbt_valid_to_current}})\n as {{ columns.dbt_valid_to }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5576675, "supported_languages": null}, "macro.dbt.unique_key_fields": {"name": "unique_key_fields", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_fields", "macro_sql": "{% macro unique_key_fields(unique_key) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n {{ key }} as dbt_unique_key_{{ loop.index }}\n {%- if not loop.last %} , {%- endif %}\n {% endfor %}\n {% else %}\n {{ unique_key }} as dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.558343, "supported_languages": null}, "macro.dbt.unique_key_join_on": {"name": "unique_key_join_on", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_join_on", "macro_sql": "{% macro unique_key_join_on(unique_key, identifier, from_identifier) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n\t {% set source_unique_key = (identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {% set target_unique_key = (from_identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {{ equals(source_unique_key, target_unique_key) }}\n {%- if not loop.last %} and {%- endif %}\n {% endfor %}\n {% else %}\n {{ identifier }}.dbt_unique_key = {{ from_identifier }}.dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5594463, "supported_languages": null}, "macro.dbt.unique_key_is_null": {"name": "unique_key_is_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_null", "macro_sql": "{% macro unique_key_is_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is null\n {% else %}\n {{ identifier }}.dbt_unique_key is null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.559858, "supported_languages": null}, "macro.dbt.unique_key_is_not_null": {"name": "unique_key_is_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_not_null", "macro_sql": "{% macro unique_key_is_not_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is not null\n {% else %}\n {{ identifier }}.dbt_unique_key is not null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5602796, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n\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 {# The model['config'] parameter below is no longer used, but passing anyway for compatibility #}\n {# It was a dictionary of config, instead of the config object from the context #}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", model['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 build_or_select_sql = build_sql %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\n\n {{ adapter.assert_valid_snapshot_target_given_strategy(target_relation, columns, strategy) }}\n\n {% set build_or_select_sql = snapshot_staging_table(strategy, sql, target_relation) %}\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 remove_columns = ['dbt_change_type', 'DBT_CHANGE_TYPE', 'dbt_unique_key', 'DBT_UNIQUE_KEY'] %}\n {% if unique_key | is_list %}\n {% for key in strategy.unique_key %}\n {{ remove_columns.append('dbt_unique_key_' + loop.index|string) }}\n {{ remove_columns.append('DBT_UNIQUE_KEY_' + loop.index|string) }}\n {% endfor %}\n {% endif %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'in', remove_columns)\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', 'in', remove_columns)\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\n {{ check_time_data_types(build_or_select_sql) }}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_staging_table", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.check_time_data_types", "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": 1754507511.5679934, "supported_languages": ["sql"]}, "macro.dbt.materialization_unit_default": {"name": "materialization_unit_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/unit.sql", "original_file_path": "macros/materializations/tests/unit.sql", "unique_id": "macro.dbt.materialization_unit_default", "macro_sql": "{%- materialization unit, default -%}\n\n {% set relations = [] %}\n\n {% set expected_rows = config.get('expected_rows') %}\n {% set expected_sql = config.get('expected_sql') %}\n {% set tested_expected_column_names = expected_rows[0].keys() if (expected_rows | length ) > 0 else get_columns_in_query(sql) %} %}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {% do run_query(get_create_table_as_sql(True, temp_relation, get_empty_subquery_sql(sql))) %}\n {%- set columns_in_relation = adapter.get_columns_in_relation(temp_relation) -%}\n {%- set column_name_to_data_types = {} -%}\n {%- for column in columns_in_relation -%}\n {%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n {%- endfor -%}\n\n {% if not expected_sql %}\n {% set expected_sql = get_expected_sql(expected_rows, column_name_to_data_types) %}\n {% endif %}\n {% set unit_test_sql = get_unit_test_sql(sql, expected_sql, tested_expected_column_names) %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ unit_test_sql }}\n\n {%- endcall %}\n\n {% do adapter.drop_relation(temp_relation) %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt.make_temp_relation", "macro.dbt.run_query", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_empty_subquery_sql", "macro.dbt.get_expected_sql", "macro.dbt.get_unit_test_sql", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5709422, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n {% set limit = config.get('limit') %}\n\n {% set sql_with_limit %}\n {{ get_limit_subquery_sql(sql, limit) }}\n {% endset %}\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\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql_with_limit) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {# Since the test failures have already been saved to the database, reuse that result rather than querying again #}\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_with_limit %}\n\n {% endif %}\n\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 {# The limit has already been included above, and we do not want to duplicate it again. We also want to be safe for macro overrides treating `limit` as a required parameter. #}\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit=none)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5753016, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5763376, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5769281, "supported_languages": null}, "macro.dbt.get_unit_test_sql": {"name": "get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_unit_test_sql", "macro_sql": "{% macro get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n {{ adapter.dispatch('get_unit_test_sql', 'dbt')(main_sql, expected_fixture_sql, expected_column_names) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_unit_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5773451, "supported_languages": null}, "macro.dbt.default__get_unit_test_sql": {"name": "default__get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_unit_test_sql", "macro_sql": "{% macro default__get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n-- Build actual result given inputs\nwith dbt_internal_unit_test_actual as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%},{% endif %}{%- endfor -%}, {{ dbt.string_literal(\"actual\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ main_sql }}\n ) _dbt_internal_unit_test_actual\n),\n-- Build expected result\ndbt_internal_unit_test_expected as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%}, {% endif %}{%- endfor -%}, {{ dbt.string_literal(\"expected\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ expected_fixture_sql }}\n ) _dbt_internal_unit_test_expected\n)\n-- Union actual and expected results\nselect * from dbt_internal_unit_test_actual\nunion all\nselect * from dbt_internal_unit_test_expected\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5785284, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.579155, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5798957, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5803719, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.581352, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5819001, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5824845, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5833278, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5836236, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5839105, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5841413, "supported_languages": null}, "macro.dbt.get_snapshot_get_time_data_type": {"name": "get_snapshot_get_time_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.get_snapshot_get_time_data_type", "macro_sql": "{% macro get_snapshot_get_time_data_type() %}\n {% set snapshot_time = adapter.dispatch('snapshot_get_time', 'dbt')() %}\n {% set time_data_type_sql = 'select ' ~ snapshot_time ~ ' as dbt_snapshot_time' %}\n {% set snapshot_time_column_schema = get_column_schema_from_query(time_data_type_sql) %}\n {% set time_data_type = snapshot_time_column_schema[0].dtype %}\n {{ return(time_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt_postgres.postgres__snapshot_get_time", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5850446, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.585391, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5855496, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5858674, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.586208, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5867982, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5871725, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.58749, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5878594, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5893657, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.589861, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5902634, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.590754, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5911217, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5914392, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5917842, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5922778, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.592682, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5932865, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5937712, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5940804, "supported_languages": null}, "macro.dbt.get_catalog_for_single_relation": {"name": "get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_for_single_relation", "macro_sql": "{% macro get_catalog_for_single_relation(relation) %}\n {{ return(adapter.dispatch('get_catalog_for_single_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_catalog_for_single_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5944505, "supported_languages": null}, "macro.dbt.default__get_catalog_for_single_relation": {"name": "default__get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_for_single_relation", "macro_sql": "{% macro default__get_catalog_for_single_relation(relation) %}\n {{ exceptions.raise_not_implemented(\n 'get_catalog_for_single_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5947578, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5950787, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5953932, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5957892, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.596136, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5969267, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5973132, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5977063, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5980277, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5985656, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.5994794, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6000173, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.600478, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6025712, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6028864, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6034992, "supported_languages": null}, "macro.dbt.get_list_of_column_names": {"name": "get_list_of_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_list_of_column_names", "macro_sql": "\n\n{%- macro get_list_of_column_names(columns) -%}\n {% set col_names = [] %}\n {% for col in columns %}\n {% do col_names.append(col.name) %}\n {% endfor %}\n {{ return(col_names) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6042154, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6046307, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.605029, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.605393, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n {{ cast('null', col['data_type']) }} as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6075966, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.608271, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6086257, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.609308, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6097422, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation.render() }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation.render() }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation.render() }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation.render() }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6109958, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6115022, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation.render() }}\n\n {% for column in add_columns %}\n add column {{ column.quoted }} {{ 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.quoted }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.613026, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header is not none -%}\n {{ sql_header }}\n {%- endif %}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.613774, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "\n{%- macro get_limit_subquery_sql(sql, limit) -%}\n {{ adapter.dispatch('get_limit_sql', 'dbt')(sql, limit) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_limit_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6141484, "supported_languages": null}, "macro.dbt.default__get_limit_sql": {"name": "default__get_limit_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_sql", "macro_sql": "{% macro default__get_limit_sql(sql, limit) %}\n {{ sql }}\n {% if limit is not none %}\n limit {{ limit }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6145284, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6157918, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6161308, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {#-- This ensures microbatch batches get unique temp relations to avoid clobbering --#}\n {% if suffix == '__dbt_tmp' and model.batch %}\n {% set suffix = suffix ~ '_' ~ model.batch.id %}\n {% endif %}\n\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6168718, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.617574, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6180453, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6186686, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6190336, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation.render() }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6194355, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.619911, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6209576, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6214123, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6216912, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6225991, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.622869, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6231925, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6239514, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6243305, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6246073, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6249187, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6251967, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6260269, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6268308, "supported_languages": null}, "macro.dbt.collect_freshness_custom_sql": {"name": "collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness_custom_sql", "macro_sql": "{% macro collect_freshness_custom_sql(source, loaded_at_query) %}\n {{ return(adapter.dispatch('collect_freshness_custom_sql', 'dbt')(source, loaded_at_query))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness_custom_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6273894, "supported_languages": null}, "macro.dbt.default__collect_freshness_custom_sql": {"name": "default__collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness_custom_sql", "macro_sql": "{% macro default__collect_freshness_custom_sql(source, loaded_at_query) %}\n {% call statement('collect_freshness_custom_sql', fetch_result=True, auto_begin=False) -%}\n with source_query as (\n {{ loaded_at_query }}\n )\n select\n (select * from source_query) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n {% endcall %}\n {{ return(load_result('collect_freshness_custom_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6279967, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6300683, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6303241, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6306596, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6308863, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.631578, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6319416, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6322014, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.632634, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation.render() }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6330302, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6334805, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation.render() }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.63388, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6343338, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6356194, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6359787, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6364734, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.636913, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation.render() ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6392376, "supported_languages": null}, "macro.dbt.get_fixture_sql": {"name": "get_fixture_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_fixture_sql", "macro_sql": "{% macro get_fixture_sql(rows, column_name_to_data_types) %}\n-- Fixture for {{ model.name }}\n{% set default_row = {} %}\n\n{%- if not column_name_to_data_types -%}\n{#-- Use defer_relation IFF it is available in the manifest and 'this' is missing from the database --#}\n{%- set this_or_defer_relation = defer_relation if (defer_relation and not load_relation(this)) else this -%}\n{%- set columns_in_relation = adapter.get_columns_in_relation(this_or_defer_relation) -%}\n\n{%- set column_name_to_data_types = {} -%}\n{%- for column in columns_in_relation -%}\n{#-- This needs to be a case-insensitive comparison --#}\n{%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n{%- endfor -%}\n{%- endif -%}\n\n{%- if not column_name_to_data_types -%}\n {{ exceptions.raise_compiler_error(\"Not able to get columns for unit test '\" ~ model.name ~ \"' from relation \" ~ this ~ \" because the relation doesn't exist\") }}\n{%- endif -%}\n\n{%- for column_name, column_type in column_name_to_data_types.items() -%}\n {%- do default_row.update({column_name: (safe_cast(\"null\", column_type) | trim )}) -%}\n{%- endfor -%}\n\n{{ validate_fixture_rows(rows, row_number) }}\n\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\n{%- set default_row_copy = default_row.copy() -%}\n{%- do default_row_copy.update(formatted_row) -%}\nselect\n{%- for column_name, column_value in default_row_copy.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n\n{%- if (rows | length) == 0 -%}\n select\n {%- for column_name, column_value in default_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%},{%- endif %}\n {%- endfor %}\n limit 0\n{%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.safe_cast", "macro.dbt.validate_fixture_rows", "macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.643746, "supported_languages": null}, "macro.dbt.get_expected_sql": {"name": "get_expected_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_expected_sql", "macro_sql": "{% macro get_expected_sql(rows, column_name_to_data_types) %}\n\n{%- if (rows | length) == 0 -%}\n select * from dbt_internal_unit_test_actual\n limit 0\n{%- else -%}\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\nselect\n{%- for column_name, column_value in formatted_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6448169, "supported_languages": null}, "macro.dbt.format_row": {"name": "format_row", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.format_row", "macro_sql": "\n\n{%- macro format_row(row, column_name_to_data_types) -%}\n {#-- generate case-insensitive formatted row --#}\n {% set formatted_row = {} %}\n {%- for column_name, column_value in row.items() -%}\n {% set column_name = column_name|lower %}\n\n {%- if column_name not in column_name_to_data_types %}\n {#-- if user-provided row contains column name that relation does not contain, raise an error --#}\n {% set fixture_name = \"expected output\" if model.resource_type == 'unit_test' else (\"'\" ~ model.name ~ \"'\") %}\n {{ exceptions.raise_compiler_error(\n \"Invalid column name: '\" ~ column_name ~ \"' in unit test fixture for \" ~ fixture_name ~ \".\"\n \"\\nAccepted columns for \" ~ fixture_name ~ \" are: \" ~ (column_name_to_data_types.keys()|list)\n ) }}\n {%- endif -%}\n\n {%- set column_type = column_name_to_data_types[column_name] %}\n\n {#-- sanitize column_value: wrap yaml strings in quotes, apply cast --#}\n {%- set column_value_clean = column_value -%}\n {%- if column_value is string -%}\n {%- set column_value_clean = dbt.string_literal(dbt.escape_single_quotes(column_value)) -%}\n {%- elif column_value is none -%}\n {%- set column_value_clean = 'null' -%}\n {%- endif -%}\n\n {%- set row_update = {column_name: safe_cast(column_value_clean, column_type) } -%}\n {%- do formatted_row.update(row_update) -%}\n {%- endfor -%}\n {{ return(formatted_row) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.string_literal", "macro.dbt.escape_single_quotes", "macro.dbt.safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.64693, "supported_languages": null}, "macro.dbt.validate_fixture_rows": {"name": "validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.validate_fixture_rows", "macro_sql": "{%- macro validate_fixture_rows(rows, row_number) -%}\n {{ return(adapter.dispatch('validate_fixture_rows', 'dbt')(rows, row_number)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__validate_fixture_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6473558, "supported_languages": null}, "macro.dbt.default__validate_fixture_rows": {"name": "default__validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.default__validate_fixture_rows", "macro_sql": "{%- macro default__validate_fixture_rows(rows, row_number) -%}\n {# This is an abstract method for adapter overrides as needed #}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6475487, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6488705, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.649188, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n\n {#\n We want to get the string of the returned relation by calling .render() in order to skip sample/empty\n mode rendering logic. However, people override the default ref macro, and often return a string instead\n of a relation (like the ref macro does by default). Thus, to make sure we dont blow things up, we have\n to ensure the resolved relation has a .render() method.\n #}\n {%- if resolved.render is defined and resolved.render is callable -%}\n {%- set resolved = resolved.render() -%}\n {%- endif -%}\n\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6510077, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6517916, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6528876, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6537626, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6539142, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6553152, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.657709, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6591735, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6596286, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6621017, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6632156, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6637805, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.664467, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6649654, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6658862, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6664476, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.666997, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6677296, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6684763, "supported_languages": null}, "macro.dbt.equals": {"name": "equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.equals", "macro_sql": "{% macro equals(expr1, expr2) %}\n {{ return(adapter.dispatch('equals', 'dbt') (expr1, expr2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6690745, "supported_languages": null}, "macro.dbt.default__equals": {"name": "default__equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.default__equals", "macro_sql": "{% macro default__equals(expr1, expr2) -%}\n{%- if adapter.behavior.enable_truthy_nulls_equals_macro.no_warn %}\n case when (({{ expr1 }} = {{ expr2 }}) or ({{ expr1 }} is null and {{ expr2 }} is null))\n then 0\n else 1\n end = 0\n{%- else -%}\n ({{ expr1 }} = {{ expr2 }})\n{%- endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6696637, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6702125, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.670488, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6709127, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6710775, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.671558, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6717687, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6726036, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6730795, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6737847, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6741238, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6745632, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6750329, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6752617, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6756935, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6758475, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6767502, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6778836, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6783438, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.679025, "supported_languages": null}, "macro.dbt.cast": {"name": "cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.cast", "macro_sql": "{% macro cast(field, type) %}\n {{ return(adapter.dispatch('cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6795704, "supported_languages": null}, "macro.dbt.default__cast": {"name": "default__cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.default__cast", "macro_sql": "{% macro default__cast(field, type) %}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6798282, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6806395, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6814563, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6818223, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6829576, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6835046, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6837647, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6842496, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6844625, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6849365, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6852665, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.686521, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6868207, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6871526, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.687453, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6877737, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6880736, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6884065, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6887462, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6890569, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6893675, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6896822, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.690084, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6904182, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.690702, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.691208, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.69146, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6919713, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6922553, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.692764, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6930408, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6935215, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6937306, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.694555, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.695352, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6958926, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.696183, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6967633, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6970856, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6976943, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6980164, "supported_languages": null}, "macro.dbt.date": {"name": "date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.date", "macro_sql": "{% macro date(year, month, day) %}\n {{ return(adapter.dispatch('date', 'dbt') (year, month, day)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.698621, "supported_languages": null}, "macro.dbt.default__date": {"name": "default__date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.default__date", "macro_sql": "{% macro default__date(year, month, day) -%}\n {%- set dt = modules.datetime.date(year, month, day) -%}\n {%- set iso_8601_formatted_date = dt.strftime('%Y-%m-%d') -%}\n to_date('{{ iso_8601_formatted_date }}', 'YYYY-MM-DD')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.6996195, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7001667, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7004368, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7009645, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7012577, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7018273, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.70216, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7027335, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7032504, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7035377, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7039866, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7043126, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7051282, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation.render() }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7058651, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7062342, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7066233, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7069998, "supported_languages": null}, "macro.dbt.drop_schema_named": {"name": "drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.drop_schema_named", "macro_sql": "{% macro drop_schema_named(schema_name) %}\n {{ return(adapter.dispatch('drop_schema_named', 'dbt') (schema_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_schema_named"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7075164, "supported_languages": null}, "macro.dbt.default__drop_schema_named": {"name": "default__drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.default__drop_schema_named", "macro_sql": "{% macro default__drop_schema_named(schema_name) %}\n {% set schema_relation = api.Relation.create(schema=schema_name) %}\n {{ adapter.drop_schema(schema_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7516193, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7524989, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7534108, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.754027, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7545743, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7554638, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7563295, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.756739, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation.render() }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7573571, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7579463, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.758376, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7589536, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7593794, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7600126, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7605305, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7615602, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation.type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7640235, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{- adapter.dispatch('drop_table', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7645316, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.764786, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7659454, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.766331, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7671864, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7685423, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7694626, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7698293, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.770202, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7707138, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7710063, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7715633, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.771862, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{- adapter.dispatch('drop_materialized_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7723444, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.772592, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7731075, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.773411, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7738998, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7743335, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7753384, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7757044, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7762706, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.77656, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7771344, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7774036, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7778966, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7782018, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{- adapter.dispatch('drop_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7786555, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7788956, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7795844, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7799015, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7802672, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation.render() }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7811046, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7816455, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7819307, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.782884, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7831912, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7854507, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7858357, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation.render() ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7863116, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.787688, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.78793, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7889602, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.789305, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.78958, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7921271, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7928727, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7935412, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.794381, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7948573, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7954648, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7960145, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7968392, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7983978, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.79893, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.7994368, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8000262, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8003166, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8005865, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8008509, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8024533, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8031785, "supported_languages": null}, "macro.dbt_utils.redshift__get_tables_by_pattern_sql": {"name": "redshift__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.redshift__get_tables_by_pattern_sql", "macro_sql": "{% macro redshift__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% set sql %}\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from \"{{ database }}\".\"information_schema\".\"tables\"\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n union all\n select distinct\n schemaname as {{ adapter.quote('table_schema') }},\n tablename as {{ adapter.quote('table_name') }},\n 'external' as {{ adapter.quote('table_type') }}\n from svv_external_tables\n where redshift_database_name = '{{ database }}'\n and schemaname ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n {% endset %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.804488, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8058596, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.806834, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8074806, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8085325, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8092647, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8098102, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8103476, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8106153, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8115275, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.812809, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.81331, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8140063, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.814832, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8156412, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.816006, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.817012, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8176486, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8187122, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, quote_identifiers)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.820177, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n {%- set current_col_name = adapter.quote(col.column) if quote_identifiers else col.column -%}\n select\n {%- for exclude_col in exclude %}\n {{ adapter.quote(exclude_col) if quote_identifiers else exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ adapter.quote(field_name) if quote_identifiers else field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(current_col_name) }}\n {% else %}\n {{ current_col_name }}\n {% endif %}\n as {{ cast_to }}) as {{ adapter.quote(value_name) if quote_identifiers else value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.823881, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.824817, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8264472, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.827322, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8278508, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.828928, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8304994, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8315737, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8319912, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }} as tt\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8323414, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.832722, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.833055, "supported_languages": null}, "macro.dbt_utils.databricks__deduplicate": {"name": "databricks__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.databricks__deduplicate", "macro_sql": "\n{%- macro databricks__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.833398, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8337326, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8343801, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.834834, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8355105, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8367918, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8374023, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8380597, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8395667, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8412185, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8431644, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8498151, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8506846, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.85159, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8519716, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8527346, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8541415, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.854704, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8553903, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.856066, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8573127, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8582118, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8598285, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8612058, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8639903, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8653498, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8682125, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8688116, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8694391, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8700037, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8708892, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8715389, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.872769, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8732722, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.873608, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8741386, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8745127, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8750033, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.875363, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{% if not string %}\n{{ return('') }}\n{% endif %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8767638, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.878238, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8790758, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8799455, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8809423, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.881986, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.883748, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8848312, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8869088, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8876367, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8883762, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8892846, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n {% if group_by_columns|length() == 0 %}\n where {{ column_name }} is not null\n limit 1\n {% endif %}\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8909621, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.892014, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8939614, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns, exclude_columns, precision)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.8961294, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n\n{%- if compare_columns and exclude_columns -%}\n {{ exceptions.raise_compiler_error(\"Both a compare and an ignore list were provided to the `equality` macro. Only one is allowed\") }}\n{%- endif -%}\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\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{# Ensure there are no extra columns in the compare_model vs model #}\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- do dbt_utils._is_ephemeral(compare_model, 'test_equality') -%}\n\n {%- set model_columns = adapter.get_columns_in_relation(model) -%}\n {%- set compare_model_columns = adapter.get_columns_in_relation(compare_model) -%}\n\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- set include_model_columns = [] %}\n {%- for column in model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n {%- for column in compare_model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_model_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns_set = set(include_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(include_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- else -%}\n {%- set compare_columns_set = set(model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(compare_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- endif -%}\n\n {% if compare_columns_set != compare_model_columns_set %}\n {{ exceptions.raise_compiler_error(compare_model ~\" has less columns than \" ~ model ~ \", please ensure they have the same columns or use the `compare_columns` or `exclude_columns` arguments to subset them.\") }}\n {% endif %}\n\n\n{% endif %}\n\n{%- if not precision -%}\n {%- if not compare_columns -%}\n {# \n You cannot get the columns in an ephemeral model (due to not existing in the information schema),\n so if the user does not provide an explicit list of columns we must error in the case it is ephemeral\n #}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model)-%}\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- for column in compare_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns = include_columns | map(attribute='quoted') %}\n {%- else -%} {# Compare columns provided #}\n {%- set compare_columns = compare_columns | map(attribute='quoted') %}\n {%- endif -%}\n {%- endif -%}\n\n {% set compare_cols_csv = compare_columns | join(', ') %}\n\n{% else %} {# Precision required #}\n {#-\n If rounding is required, we need to get the types, so it cannot be ephemeral even if they provide column names\n -#}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set columns = adapter.get_columns_in_relation(model) -%}\n\n {% set columns_list = [] %}\n {%- for col in columns -%}\n {%- if (\n (col.name|lower in compare_columns|map('lower') or not compare_columns) and\n (col.name|lower not in exclude_columns|map('lower') or not exclude_columns)\n ) -%}\n {# Databricks double type is not picked up by any number type checks in dbt #}\n {%- if col.is_float() or col.is_numeric() or col.data_type == 'double' -%}\n {# Cast is required due to postgres not having round for a double precision number #}\n {%- do columns_list.append('round(cast(' ~ col.quoted ~ ' as ' ~ dbt.type_numeric() ~ '),' ~ precision ~ ') as ' ~ col.quoted) -%}\n {%- else -%} {# Non-numeric type #}\n {%- do columns_list.append(col.quoted) -%}\n {%- endif -%}\n {% endif %}\n {%- endfor -%}\n\n {% set compare_cols_csv = columns_list | join(', ') %}\n\n{% endif %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_numeric", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9037569, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9053202, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9082618, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.909128, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as {{ dbt.type_numeric() }}) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9107397, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9116428, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.912316, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9131021, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9143565, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.915133, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9158738, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9165819, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.917176, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.918166, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9203608, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9211016, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.921787, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9225626, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.923465, "supported_languages": null}, "macro.shopify.shopify_lookback": {"name": "shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.shopify_lookback", "macro_sql": "{% macro shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n{{ adapter.dispatch('shopify_lookback', 'shopify') (from_date, datepart, interval, safety_date='2010-01-01') }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_lookback"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9242392, "supported_languages": null}, "macro.shopify.default__shopify_lookback": {"name": "default__shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.default__shopify_lookback", "macro_sql": "{% macro default__shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n {% set sql_statement %}\n select coalesce({{ from_date }}, {{ \"'\" ~ safety_date ~ \"'\" }})\n from {{ this }}\n {%- endset -%}\n\n {%- set result = dbt_utils.get_single_value(sql_statement) %}\n\n {{ dbt.dateadd(datepart=datepart, interval=-interval, from_date_or_timestamp=\"cast('\" ~ result ~ \"' as date)\") }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_single_value", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9250786, "supported_languages": null}, "macro.shopify.shopify_is_databricks_sql_warehouse": {"name": "shopify_is_databricks_sql_warehouse", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_is_databricks_sql_warehouse.sql", "original_file_path": "macros/shopify_is_databricks_sql_warehouse.sql", "unique_id": "macro.shopify.shopify_is_databricks_sql_warehouse", "macro_sql": "{% macro shopify_is_databricks_sql_warehouse() %}\n {% if target.type in ('databricks') %}\n {% set re = modules.re %}\n {% set path_match = target.http_path %}\n {% set regex_pattern = \"sql/.+/warehouses/\" %}\n {% set match_result = re.search(regex_pattern, path_match) %}\n {% if match_result %}\n {{ return(True) }}\n {% else %}\n {{ return(False) }}\n {% endif %}\n {% else %}\n {{ return(False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.926444, "supported_languages": null}, "macro.shopify.shopify_partition_by_cols": {"name": "shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.shopify_partition_by_cols", "macro_sql": "{% macro shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n\n{{ adapter.dispatch('shopify_partition_by_cols', 'shopify') (base_col, source_relation) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_partition_by_cols"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9270556, "supported_languages": null}, "macro.shopify.default__shopify_partition_by_cols": {"name": "default__shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.default__shopify_partition_by_cols", "macro_sql": "{% macro default__shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n {%- if var('shopify_union_schemas', false) or var('shopify_union_databases', false) -%}\n {{ base_col }}, {{ source_relation }}\n {%- else %}\n {{ base_col }}\n {%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9276505, "supported_languages": null}, "macro.shopify.get_metafields": {"name": "get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.get_metafields", "macro_sql": "{% macro get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n {{ return(adapter.dispatch('get_metafields', 'shopify')(source_object, reference_values, id_column, lookup_object, key_field, key_value, reference_field)) }} \n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__get_metafields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.928983, "supported_languages": null}, "macro.shopify.default__get_metafields": {"name": "default__get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.default__get_metafields", "macro_sql": "{% macro default__get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n\n{# Manually quote and join reference values #}\n{% set quoted_values = [] %}\n{% for value in reference_values %}\n {% do quoted_values.append(\"'\" ~ value | lower | trim ~ \"'\") %}\n{% endfor %}\n{% set reference_values_clause = quoted_values | join(\", \") %}\n\n{# Get the pivot fields dynamically based on the reference values #}\n{% set pivot_fields = dbt_utils.get_column_values(\n table=ref(lookup_object),\n column=key_field,\n where=\"lower(\" ~ reference_field ~ \") in (\" ~ reference_values_clause ~ \")\"\n) %}\n\n{% set source_columns = adapter.get_columns_in_relation(ref(source_object)) %}\n{% set source_column_count = source_columns | length %}\n\nwith source_table as (\n select *\n from {{ ref(source_object) }}\n)\n\n{% if pivot_fields is not none %},\nlookup_object as (\n select \n *,\n {{ dbt_utils.pivot(\n column=key_field, \n values=pivot_fields, \n agg='', \n then_value=key_value, \n else_value=\"null\",\n quote_identifiers=false\n ) \n }}\n from {{ ref(lookup_object) }}\n where is_most_recent_record\n),\n\nfinal as (\n select\n {% for column in source_columns %}\n source_table.{{ column.name }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% for fields in pivot_fields %}\n , max(lookup_object.{{ dbt_utils.slugify(fields) }}) as metafield_{{ dbt_utils.slugify(fields) }}\n {% endfor %}\n from source_table\n left join lookup_object \n on lookup_object.{{ reference_field }}_id = source_table.{{ id_column }}\n and lower(lookup_object.{{ reference_field }}) in ({{ reference_values_clause }})\n {{ dbt_utils.group_by(source_column_count) }}\n)\n\nselect *\nfrom final\n{% else %}\n\nselect *\nfrom source_table\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_column_values", "macro.dbt_utils.pivot", "macro.dbt_utils.slugify", "macro.dbt_utils.group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9320781, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9335573, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9357076, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9443793, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9472783, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.948105, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9488823, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9502668, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9506032, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9509273, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9512653, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9546373, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9558752, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.956619, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9571586, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9573815, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9575913, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9578, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9586143, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9589558, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9593089, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9596395, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9599319, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9602792, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.960772, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.960988, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9612215, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9626236, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.963593, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9638789, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9646068, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.965187, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9654577, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9657176, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9659753, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9662535, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9669945, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9690487, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9701772, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.97117, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.971522, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9730887, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9742403, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9747338, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9752343, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9757051, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9761899, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9767292, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9774094, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9778848, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9786282, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9797342, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9806402, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9829915, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9837794, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9840968, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.984429, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9847739, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.985083, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.985407, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9859085, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9866784, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.987008, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.987346, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9876661, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9879825, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9883425, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.990379, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9908688, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9910812, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9913118, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9966938, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9974954, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9982176, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9988158, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.99904, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.999289, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9995036, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507511.9997134, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.000529, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0024416, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0035946, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0041733, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.004469, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0048535, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.005489, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.005755, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.006017, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0062973, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0065677, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0073018, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0078382, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0083084, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0093904, "supported_languages": null}, "macro.spark_utils.get_tables": {"name": "get_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_tables", "macro_sql": "{% macro get_tables(table_regex_pattern='.*') %}\n\n {% set tables = [] %}\n {% for database in spark__list_schemas('not_used') %}\n {% for table in spark__list_relations_without_caching(database[0]) %}\n {% set db_tablename = database[0] ~ \".\" ~ table[1] %}\n {% set is_match = modules.re.match(table_regex_pattern, db_tablename) %}\n {% if is_match %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('type', 'TYPE', 'Type'))|first %}\n {% if table_type[1]|lower != 'view' %}\n {{ tables.append(db_tablename) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n {{ return(tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0127637, "supported_languages": null}, "macro.spark_utils.get_delta_tables": {"name": "get_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_delta_tables", "macro_sql": "{% macro get_delta_tables(table_regex_pattern='.*') %}\n\n {% set delta_tables = [] %}\n {% for db_tablename in get_tables(table_regex_pattern) %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('provider', 'PROVIDER', 'Provider'))|first %}\n {% if table_type[1]|lower == 'delta' %}\n {{ delta_tables.append(db_tablename) }}\n {% endif %}\n {% endfor %}\n {{ return(delta_tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0140898, "supported_languages": null}, "macro.spark_utils.get_statistic_columns": {"name": "get_statistic_columns", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_statistic_columns", "macro_sql": "{% macro get_statistic_columns(table) %}\n\n {% call statement('input_columns', fetch_result=True) %}\n SHOW COLUMNS IN {{ table }}\n {% endcall %}\n {% set input_columns = load_result('input_columns').table %}\n\n {% set output_columns = [] %}\n {% for column in input_columns %}\n {% call statement('column_information', fetch_result=True) %}\n DESCRIBE TABLE {{ table }} `{{ column[0] }}`\n {% endcall %}\n {% if not load_result('column_information').table[1][1].startswith('struct') and not load_result('column_information').table[1][1].startswith('array') %}\n {{ output_columns.append('`' ~ column[0] ~ '`') }}\n {% endif %}\n {% endfor %}\n {{ return(output_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0157757, "supported_languages": null}, "macro.spark_utils.spark_optimize_delta_tables": {"name": "spark_optimize_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_optimize_delta_tables", "macro_sql": "{% macro spark_optimize_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Optimizing \" ~ table) }}\n {% do run_query(\"optimize \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.017178, "supported_languages": null}, "macro.spark_utils.spark_vacuum_delta_tables": {"name": "spark_vacuum_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "macro_sql": "{% macro spark_vacuum_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Vacuuming \" ~ table) }}\n {% do run_query(\"vacuum \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.018556, "supported_languages": null}, "macro.spark_utils.spark_analyze_tables": {"name": "spark_analyze_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_analyze_tables", "macro_sql": "{% macro spark_analyze_tables(table_regex_pattern='.*') %}\n\n {% for table in get_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set columns = get_statistic_columns(table) | join(',') %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Analyzing \" ~ table) }}\n {% if columns != '' %}\n {% do run_query(\"analyze table \" ~ table ~ \" compute statistics for columns \" ~ columns) %}\n {% endif %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.spark_utils.get_statistic_columns", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.020262, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_pattern": {"name": "spark__get_relations_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "macro_sql": "{% macro spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n show table extended in {{ schema_pattern }} like '{{ table_pattern }}'\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=None,\n schema=row[0],\n identifier=row[1],\n type=('view' if 'Type: VIEW' in row[3] else 'table')\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0224934, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_prefix": {"name": "spark__get_relations_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "macro_sql": "{% macro spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {% set table_pattern = table_pattern ~ '*' %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0231445, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_pattern": {"name": "spark__get_tables_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "macro_sql": "{% macro spark__get_tables_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0236697, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_prefix": {"name": "spark__get_tables_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "macro_sql": "{% macro spark__get_tables_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0241978, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp": {"name": "spark__current_timestamp", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0244482, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp_in_utc": {"name": "spark__current_timestamp_in_utc", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0246022, "supported_languages": null}, "macro.spark_utils.spark__split_part": {"name": "spark__split_part", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "unique_id": "macro.spark_utils.spark__split_part", "macro_sql": "{% macro spark__split_part(string_text, delimiter_text, part_number) %}\n\n {% set delimiter_expr %}\n \n -- escape if starts with a special character\n case when regexp_extract({{ delimiter_text }}, '([^A-Za-z0-9])(.*)', 1) != '_'\n then concat('\\\\', {{ delimiter_text }})\n else {{ delimiter_text }} end\n \n {% endset %}\n\n {% set split_part_expr %}\n \n split(\n {{ string_text }},\n {{ delimiter_expr }}\n )[({{ part_number - 1 }})]\n \n {% endset %}\n \n {{ return(split_part_expr) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0255287, "supported_languages": null}, "macro.spark_utils.spark__type_numeric": {"name": "spark__type_numeric", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "unique_id": "macro.spark_utils.spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0257568, "supported_languages": null}, "macro.spark_utils.spark__concat": {"name": "spark__concat", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "unique_id": "macro.spark_utils.spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0260875, "supported_languages": null}, "macro.spark_utils.spark__datediff": {"name": "spark__datediff", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "unique_id": "macro.spark_utils.spark__datediff", "macro_sql": "{% macro spark__datediff(first_date, second_date, datepart) %}\n\n {%- if datepart in ['day', 'week', 'month', 'quarter', 'year'] -%}\n \n {# make sure the dates are real, otherwise raise an error asap #}\n {% set first_date = spark_utils.assert_not_null('date', first_date) %}\n {% set second_date = spark_utils.assert_not_null('date', second_date) %}\n \n {%- endif -%}\n \n {%- if datepart == 'day' -%}\n \n datediff({{second_date}}, {{first_date}})\n \n {%- elif datepart == 'week' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(datediff({{second_date}}, {{first_date}})/7)\n else ceil(datediff({{second_date}}, {{first_date}})/7)\n end\n \n -- did we cross a week boundary (Sunday)?\n + case\n when {{first_date}} < {{second_date}} and dayofweek({{second_date}}) < dayofweek({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofweek({{second_date}}) > dayofweek({{first_date}}) then -1\n else 0 end\n\n {%- elif datepart == 'month' -%}\n\n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}})))\n else ceil(months_between(date({{second_date}}), date({{first_date}})))\n end\n \n -- did we cross a month boundary?\n + case\n when {{first_date}} < {{second_date}} and dayofmonth({{second_date}}) < dayofmonth({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofmonth({{second_date}}) > dayofmonth({{first_date}}) then -1\n else 0 end\n \n {%- elif datepart == 'quarter' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}}))/3)\n else ceil(months_between(date({{second_date}}), date({{first_date}}))/3)\n end\n \n -- did we cross a quarter boundary?\n + case\n when {{first_date}} < {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n < (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then 1\n when {{first_date}} > {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n > (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then -1\n else 0 end\n\n {%- elif datepart == 'year' -%}\n \n year({{second_date}}) - year({{first_date}})\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set divisor -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n case when {{first_date}} < {{second_date}}\n then ceil((\n {# make sure the timestamps are real, otherwise raise an error asap #}\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n else floor((\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n end\n \n {% if datepart == 'millisecond' %}\n + cast(date_format({{second_date}}, 'SSS') as int)\n - cast(date_format({{first_date}}, 'SSS') as int)\n {% endif %}\n \n {% if datepart == 'microsecond' %} \n {% set capture_str = '[0-9]{4}-[0-9]{2}-[0-9]{2}.[0-9]{2}:[0-9]{2}:[0-9]{2}.([0-9]{6})' %}\n -- Spark doesn't really support microseconds, so this is a massive hack!\n -- It will only work if the timestamp-string is of the format\n -- 'yyyy-MM-dd-HH mm.ss.SSSSSS'\n + cast(regexp_extract({{second_date}}, '{{capture_str}}', 1) as int)\n - cast(regexp_extract({{first_date}}, '{{capture_str}}', 1) as int) \n {% endif %}\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro datediff not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0329418, "supported_languages": null}, "macro.spark_utils.spark__dateadd": {"name": "spark__dateadd", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "unique_id": "macro.spark_utils.spark__dateadd", "macro_sql": "{% macro spark__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {%- set clock_component -%}\n {# make sure the dates + timestamps are real, otherwise raise an error asap #}\n to_unix_timestamp({{ spark_utils.assert_not_null('to_timestamp', from_date_or_timestamp) }})\n - to_unix_timestamp({{ spark_utils.assert_not_null('date', from_date_or_timestamp) }})\n {%- endset -%}\n\n {%- if datepart in ['day', 'week'] -%}\n \n {%- set multiplier = 7 if datepart == 'week' else 1 -%}\n\n to_timestamp(\n to_unix_timestamp(\n date_add(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ['month', 'quarter', 'year'] -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'month' -%} 1\n {%- elif datepart == 'quarter' -%} 3\n {%- elif datepart == 'year' -%} 12\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n to_unix_timestamp(\n add_months(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n {{ spark_utils.assert_not_null('to_unix_timestamp', from_date_or_timestamp) }}\n + cast({{interval}} * {{multiplier}} as int)\n )\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro dateadd not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0366125, "supported_languages": null}, "macro.spark_utils.assert_not_null": {"name": "assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0372179, "supported_languages": null}, "macro.spark_utils.default__assert_not_null": {"name": "default__assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.default__assert_not_null", "macro_sql": "{% macro default__assert_not_null(function, arg) %}\n\n coalesce({{function}}({{arg}}), nvl2({{function}}({{arg}}), assert_true({{function}}({{arg}}) is not null), null))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.037615, "supported_languages": null}, "macro.spark_utils.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "unique_id": "macro.spark_utils.spark__convert_timezone", "macro_sql": "{% macro spark__convert_timezone(in_tz, out_tz, in_timestamp) %}\n from_utc_timestamp(to_utc_timestamp({{in_timestamp}}, {{in_tz}}), {{out_tz}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0380228, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_shipping_line_columns": {"name": "get_abandoned_checkout_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "original_file_path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro_sql": "{% macro get_abandoned_checkout_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range_max\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_range_min\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.041359, "supported_languages": null}, "macro.shopify_source.get_tender_transaction_columns": {"name": "get_tender_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tender_transaction_columns.sql", "original_file_path": "macros/get_tender_transaction_columns.sql", "unique_id": "macro.shopify_source.get_tender_transaction_columns", "macro_sql": "{% macro get_tender_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"remote_reference\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0437202, "supported_languages": null}, "macro.shopify_source.get_graphql_tender_transaction_columns": {"name": "get_graphql_tender_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tender_transaction_columns.sql", "original_file_path": "macros/get_tender_transaction_columns.sql", "unique_id": "macro.shopify_source.get_graphql_tender_transaction_columns", "macro_sql": "{% macro get_graphql_tender_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"remote_reference\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.045546, "supported_languages": null}, "macro.shopify_source.get_fulfillment_event_columns": {"name": "get_fulfillment_event_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_event_columns.sql", "original_file_path": "macros/get_fulfillment_event_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_event_columns", "macro_sql": "{% macro get_fulfillment_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"estimated_delivery_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"happened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shop_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0496173, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_event_columns": {"name": "get_graphql_fulfillment_event_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_event_columns.sql", "original_file_path": "macros/get_fulfillment_event_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_event_columns", "macro_sql": "{% macro get_graphql_fulfillment_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"estimated_delivery_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"happened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0524511, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_rule_columns": {"name": "get_graphql_collection_rule_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_rule_columns.sql", "original_file_path": "macros/get_collection_rule_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_rule_columns", "macro_sql": "{% macro get_graphql_collection_rule_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"condition\", \"datatype\": dbt.type_string()},\n {\"name\": \"relation\", \"datatype\": dbt.type_string()},\n {\"name\": \"columns\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.053904, "supported_languages": null}, "macro.shopify_source.get_product_media_columns": {"name": "get_product_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_media_columns.sql", "original_file_path": "macros/get_product_media_columns.sql", "unique_id": "macro.shopify_source.get_product_media_columns", "macro_sql": "{% macro get_product_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.054775, "supported_languages": null}, "macro.shopify_source.get_graphql_product_media_columns": {"name": "get_graphql_product_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_media_columns.sql", "original_file_path": "macros/get_product_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_media_columns", "macro_sql": "{% macro get_graphql_product_media_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0555713, "supported_languages": null}, "macro.shopify_source.get_order_columns": {"name": "get_order_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "unique_id": "macro.shopify_source.get_order_columns", "macro_sql": "{% macro get_order_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tip_received\", \"datatype\": dbt.type_float()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cancel_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancelled_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"financial_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"browser_ip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_shipping_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"app_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"client_details_user_agent\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_status_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"confirmed\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0715947, "supported_languages": null}, "macro.shopify_source.get_graphql_order_columns": {"name": "get_graphql_order_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_columns", "macro_sql": "{% macro get_graphql_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"app_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancel_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancelled_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"client_ip\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"confirmed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_financial_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"presentment_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status_page_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_discounts_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discounts_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_shipping_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_shipping_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_shipping_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_shipping_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tip_received_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tip_received_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tip_received_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tip_received_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0846503, "supported_languages": null}, "macro.shopify_source.get_discount_code_free_shipping_columns": {"name": "get_discount_code_free_shipping_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_free_shipping_columns.sql", "original_file_path": "macros/get_discount_code_free_shipping_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_free_shipping_columns", "macro_sql": "{% macro get_discount_code_free_shipping_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.088901, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_free_shipping_columns": {"name": "get_graphql_discount_code_free_shipping_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_free_shipping_columns.sql", "original_file_path": "macros/get_discount_code_free_shipping_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_free_shipping_columns", "macro_sql": "{% macro get_graphql_discount_code_free_shipping_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0922267, "supported_languages": null}, "macro.shopify_source.json_to_string": {"name": "json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.json_to_string", "macro_sql": "{%- macro json_to_string(column, column_list) -%}\n {{ return(adapter.dispatch('json_to_string', 'shopify_source')(column, column_list)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__json_to_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0929453, "supported_languages": null}, "macro.shopify_source.default__json_to_string": {"name": "default__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.default__json_to_string", "macro_sql": "{%- macro default__json_to_string(column, column_list) -%}\n {{ column }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0931964, "supported_languages": null}, "macro.shopify_source.bigquery__json_to_string": {"name": "bigquery__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.bigquery__json_to_string", "macro_sql": "{%- macro bigquery__json_to_string(column, column_list) -%}\n {%- set columns = column_list -%}\n {%- set ns = namespace(column_type='string') -%}\n\n {%- for col in columns -%}\n {%- if col.name|lower == column|lower -%}\n {%- set ns.column_type = col.dtype|lower -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- if ns.column_type == 'json' -%}\n to_json_string({{ column }})\n {%- else -%}\n {{ column }}\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.0941546, "supported_languages": null}, "macro.shopify_source.get_product_columns": {"name": "get_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_columns.sql", "original_file_path": "macros/get_product_columns.sql", "unique_id": "macro.shopify_source.get_product_columns", "macro_sql": "{% macro get_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.09701, "supported_languages": null}, "macro.shopify_source.get_graphql_product_columns": {"name": "get_graphql_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_columns.sql", "original_file_path": "macros/get_product_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_columns", "macro_sql": "{% macro get_graphql_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.099161, "supported_languages": null}, "macro.shopify_source.get_collection_columns": {"name": "get_collection_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_columns.sql", "original_file_path": "macros/get_collection_columns.sql", "unique_id": "macro.shopify_source.get_collection_columns", "macro_sql": "{% macro get_collection_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"disjunctive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"rules\", \"datatype\": dbt.type_string()},\n {\"name\": \"sort_order\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.101626, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_columns": {"name": "get_graphql_collection_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_columns.sql", "original_file_path": "macros/get_collection_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_columns", "macro_sql": "{% macro get_graphql_collection_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"applied_disjunctively\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"sort_order\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.103108, "supported_languages": null}, "macro.shopify_source.get_customer_tag_columns": {"name": "get_customer_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_tag_columns.sql", "original_file_path": "macros/get_customer_tag_columns.sql", "unique_id": "macro.shopify_source.get_customer_tag_columns", "macro_sql": "{% macro get_customer_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1043344, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_tag_columns": {"name": "get_graphql_customer_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_tag_columns.sql", "original_file_path": "macros/get_customer_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_tag_columns", "macro_sql": "{% macro get_graphql_customer_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.105247, "supported_languages": null}, "macro.shopify_source.get_shop_columns": {"name": "get_shop_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_shop_columns.sql", "original_file_path": "macros/get_shop_columns.sql", "unique_id": "macro.shopify_source.get_shop_columns", "macro_sql": "{% macro get_shop_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_api_supported\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"cookie_consent_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"county_taxes\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_card_reader_giveaway\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"eligible_for_payments\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"enabled_presentment_currencies\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_login_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_gift_cards\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_storefront\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"iana_timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"money_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"myshopify_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"password_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"pre_launch_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"primary_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_extra_payments_agreement\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"setup_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"shop_owner\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1152349, "supported_languages": null}, "macro.shopify_source.get_graphql_shop_columns": {"name": "get_graphql_shop_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_shop_columns.sql", "original_file_path": "macros/get_shop_columns.sql", "unique_id": "macro.shopify_source.get_graphql_shop_columns", "macro_sql": "{% macro get_graphql_shop_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code_v_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_api_supported\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"contact_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_with_currency_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_with_currency_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"enabled_presentment_currencies\", \"datatype\": dbt.type_string()},\n {\"name\": \"features_storefront\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"iana_timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"myshopify_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"password_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"plan_display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_domain_host\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_domain_localization_default_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"setup_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"shop_owner_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"timezone_abbreviation\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_offset\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_offset_minutes\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1217258, "supported_languages": null}, "macro.shopify_source.get_order_url_tag_columns": {"name": "get_order_url_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_url_tag_columns.sql", "original_file_path": "macros/get_order_url_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_url_tag_columns", "macro_sql": "{% macro get_order_url_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1228824, "supported_languages": null}, "macro.shopify_source.get_order_shipping_line_columns": {"name": "get_order_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_line_columns.sql", "original_file_path": "macros/get_order_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_line_columns", "macro_sql": "{% macro get_order_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1261063, "supported_languages": null}, "macro.shopify_source.get_graphql_order_shipping_line_columns": {"name": "get_graphql_order_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_line_columns.sql", "original_file_path": "macros/get_order_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_shipping_line_columns", "macro_sql": "{% macro get_graphql_order_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"original_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"original_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1290185, "supported_languages": null}, "macro.shopify_source.get_customer_columns": {"name": "get_customer_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "unique_id": "macro.shopify_source.get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_address_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"orders_count\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_spent\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"verified_email\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email_marketing_consent_consent_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_marketing_consent_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepts_marketing_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"marketing_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customer_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1365464, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_columns": {"name": "get_graphql_customer_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_columns", "macro_sql": "{% macro get_graphql_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"orders_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_spent\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"verified_email\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customer_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.139845, "supported_languages": null}, "macro.shopify_source.shopify_union_data": {"name": "shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.shopify_union_data", "macro_sql": "{%- macro shopify_union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases', shopify_model_api='rest') -%}\n\n{{ adapter.dispatch('shopify_union_data', 'shopify_source') (\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 shopify_model_api\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__shopify_union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.142313, "supported_languages": null}, "macro.shopify_source.default__shopify_union_data": {"name": "default__shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.default__shopify_union_data", "macro_sql": "{%- macro default__shopify_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 shopify_model_api\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + ('_gql_' if shopify_model_api == 'graphql' else '_') + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema ~ ('_graphql' if shopify_model_api == 'graphql' else ''), table_identifier).database,\n schema=source(default_schema ~ ('_graphql' if shopify_model_api == 'graphql' else ''), table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1517446, "supported_languages": null}, "macro.shopify_source.get_transaction_columns": {"name": "get_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_transaction_columns.sql", "original_file_path": "macros/get_transaction_columns.sql", "unique_id": "macro.shopify_source.get_transaction_columns", "macro_sql": "{% macro get_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"payment_avs_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_bin\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_cvv_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"receipt\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_exchange_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_adjustment\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_original_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_final_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"error_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"authorization_expires_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{% if target.type in ('redshift','postgres') %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"quote\": True, \"alias\": \"authorization_code\"}) }}\n{% else %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"alias\": \"authorization_code\"}) }}\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1593719, "supported_languages": null}, "macro.shopify_source.get_graphql_transaction_columns": {"name": "get_graphql_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_transaction_columns.sql", "original_file_path": "macros/get_transaction_columns.sql", "unique_id": "macro.shopify_source.get_graphql_transaction_columns", "macro_sql": "{% macro get_graphql_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"authorization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"authorization_expires_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"error_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_avs_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_bin\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_cvv_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"receipt_json\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_exchange_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_adjustment\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_original_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_final_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_currency\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1647148, "supported_languages": null}, "macro.shopify_source.get_location_columns": {"name": "get_location_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_location_columns.sql", "original_file_path": "macros/get_location_columns.sql", "unique_id": "macro.shopify_source.get_location_columns", "macro_sql": "{% macro get_location_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"legacy\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"localized_country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"localized_province_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1689394, "supported_languages": null}, "macro.shopify_source.get_graphql_location_columns": {"name": "get_graphql_location_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_location_columns.sql", "original_file_path": "macros/get_location_columns.sql", "unique_id": "macro.shopify_source.get_graphql_location_columns", "macro_sql": "{% macro get_graphql_location_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"is_fulfillment_service\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1719458, "supported_languages": null}, "macro.shopify_source.get_discount_code_app_columns": {"name": "get_discount_code_app_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_app_columns.sql", "original_file_path": "macros/get_discount_code_app_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_app_columns", "macro_sql": "{% macro get_discount_code_app_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.17623, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_app_columns": {"name": "get_graphql_discount_code_app_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_app_columns.sql", "original_file_path": "macros/get_discount_code_app_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_app_columns", "macro_sql": "{% macro get_graphql_discount_code_app_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1796064, "supported_languages": null}, "macro.shopify_source.get_order_adjustment_columns": {"name": "get_order_adjustment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_adjustment_columns.sql", "original_file_path": "macros/get_order_adjustment_columns.sql", "unique_id": "macro.shopify_source.get_order_adjustment_columns", "macro_sql": "{% macro get_order_adjustment_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1820214, "supported_languages": null}, "macro.shopify_source.get_graphql_order_adjustment_columns": {"name": "get_graphql_order_adjustment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_adjustment_columns.sql", "original_file_path": "macros/get_order_adjustment_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_adjustment_columns", "macro_sql": "{% macro get_graphql_order_adjustment_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.184144, "supported_languages": null}, "macro.shopify_source.get_discount_allocation_columns": {"name": "get_discount_allocation_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_allocation_columns.sql", "original_file_path": "macros/get_discount_allocation_columns.sql", "unique_id": "macro.shopify_source.get_discount_allocation_columns", "macro_sql": "{% macro get_discount_allocation_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_application_index\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1862993, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_allocation_columns": {"name": "get_graphql_discount_allocation_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_allocation_columns.sql", "original_file_path": "macros/get_discount_allocation_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_allocation_columns", "macro_sql": "{% macro get_graphql_discount_allocation_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocated_amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"allocated_amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"allocated_amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"allocated_amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_application_index\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1878073, "supported_languages": null}, "macro.shopify_source.get_discount_redeem_code_columns": {"name": "get_discount_redeem_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_redeem_code_columns.sql", "original_file_path": "macros/get_discount_redeem_code_columns.sql", "unique_id": "macro.shopify_source.get_discount_redeem_code_columns", "macro_sql": "{% macro get_discount_redeem_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"created_by_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"discount_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1899676, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_redeem_code_columns": {"name": "get_graphql_discount_redeem_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_redeem_code_columns.sql", "original_file_path": "macros/get_discount_redeem_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_redeem_code_columns", "macro_sql": "{% macro get_graphql_discount_redeem_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"created_by_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"discount_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.191627, "supported_languages": null}, "macro.shopify_source.get_order_tag_columns": {"name": "get_order_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_tag_columns.sql", "original_file_path": "macros/get_order_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_tag_columns", "macro_sql": "{% macro get_order_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.192847, "supported_languages": null}, "macro.shopify_source.get_graphql_order_tag_columns": {"name": "get_graphql_order_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_tag_columns.sql", "original_file_path": "macros/get_order_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_tag_columns", "macro_sql": "{% macro get_graphql_order_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1937735, "supported_languages": null}, "macro.shopify_source.get_order_shipping_tax_line_columns": {"name": "get_order_shipping_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_tax_line_columns.sql", "original_file_path": "macros/get_order_shipping_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_tax_line_columns", "macro_sql": "{% macro get_order_shipping_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_shipping_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1955981, "supported_languages": null}, "macro.shopify_source.get_graphql_order_shipping_tax_line_columns": {"name": "get_graphql_order_shipping_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_tax_line_columns.sql", "original_file_path": "macros/get_order_shipping_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_shipping_tax_line_columns", "macro_sql": "{% macro get_graphql_order_shipping_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_shipping_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1974764, "supported_languages": null}, "macro.shopify_source.get_refund_columns": {"name": "get_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_refund_columns.sql", "original_file_path": "macros/get_refund_columns.sql", "unique_id": "macro.shopify_source.get_refund_columns", "macro_sql": "{% macro get_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"restock\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_duties_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.1996782, "supported_languages": null}, "macro.shopify_source.get_graphql_refund_columns": {"name": "get_graphql_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_refund_columns.sql", "original_file_path": "macros/get_refund_columns.sql", "unique_id": "macro.shopify_source.get_graphql_refund_columns", "macro_sql": "{% macro get_graphql_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"return_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_refunded_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_refunded_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_refunded_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_refunded_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.201774, "supported_languages": null}, "macro.shopify_source.get_inventory_item_columns": {"name": "get_inventory_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_item_columns.sql", "original_file_path": "macros/get_inventory_item_columns.sql", "unique_id": "macro.shopify_source.get_inventory_item_columns", "macro_sql": "{% macro get_inventory_item_columns() %}\n\n{# Columns below line 26 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"province_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duplicate_sku_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"harmonized_system_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_history_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_weight_value\", \"datatype\": dbt.type_float()},\n {\"name\": \"measurement_weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked_editable_locked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()}\n ,\n {\"name\": \"cost\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2063668, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_item_columns": {"name": "get_graphql_inventory_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_item_columns.sql", "original_file_path": "macros/get_inventory_item_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_item_columns", "macro_sql": "{% macro get_graphql_inventory_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duplicate_sku_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"harmonized_system_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_history_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"measurement_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"measurement_weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"measurement_weight_value\", \"datatype\": dbt.type_float()},\n {\"name\": \"province_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_locked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2098804, "supported_languages": null}, "macro.shopify_source.get_tax_line_columns": {"name": "get_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tax_line_columns.sql", "original_file_path": "macros/get_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_tax_line_columns", "macro_sql": "{% macro get_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.211733, "supported_languages": null}, "macro.shopify_source.get_graphql_tax_line_columns": {"name": "get_graphql_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tax_line_columns.sql", "original_file_path": "macros/get_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_tax_line_columns", "macro_sql": "{% macro get_graphql_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2134082, "supported_languages": null}, "macro.shopify_source.get_discount_code_basic_columns": {"name": "get_discount_code_basic_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_basic_columns.sql", "original_file_path": "macros/get_discount_code_basic_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_basic_columns", "macro_sql": "{% macro get_discount_code_basic_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2177134, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_basic_columns": {"name": "get_graphql_discount_code_basic_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_basic_columns.sql", "original_file_path": "macros/get_discount_code_basic_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_basic_columns", "macro_sql": "{% macro get_graphql_discount_code_basic_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2211018, "supported_languages": null}, "macro.shopify_source.get_product_variant_media_columns": {"name": "get_product_variant_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_media_columns.sql", "original_file_path": "macros/get_product_variant_media_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_media_columns", "macro_sql": "{% macro get_product_variant_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2219923, "supported_languages": null}, "macro.shopify_source.get_graphql_product_variant_media_columns": {"name": "get_graphql_product_variant_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_media_columns.sql", "original_file_path": "macros/get_product_variant_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_variant_media_columns", "macro_sql": "{% macro get_graphql_product_variant_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.222635, "supported_languages": null}, "macro.shopify_source.get_order_discount_code_columns": {"name": "get_order_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_discount_code_columns.sql", "original_file_path": "macros/get_order_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_order_discount_code_columns", "macro_sql": "{% macro get_order_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2242174, "supported_languages": null}, "macro.shopify_source.get_graphql_order_discount_code_columns": {"name": "get_graphql_order_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_discount_code_columns.sql", "original_file_path": "macros/get_order_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_discount_code_columns", "macro_sql": "{% macro get_graphql_order_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2251592, "supported_languages": null}, "macro.shopify_source.get_media_image_columns": {"name": "get_media_image_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_image_columns.sql", "original_file_path": "macros/get_media_image_columns.sql", "unique_id": "macro.shopify_source.get_media_image_columns", "macro_sql": "{% macro get_media_image_columns() %}\n\n{% set columns = [\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.226762, "supported_languages": null}, "macro.shopify_source.get_graphql_media_image_columns": {"name": "get_graphql_media_image_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_image_columns.sql", "original_file_path": "macros/get_media_image_columns.sql", "unique_id": "macro.shopify_source.get_graphql_media_image_columns", "macro_sql": "{% macro get_graphql_media_image_columns() %}\n\n{% set columns = [\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.227995, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_order_line_item_columns": {"name": "get_graphql_fulfillment_order_line_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_order_line_item_columns.sql", "original_file_path": "macros/get_fulfillment_order_line_item_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_order_line_item_columns", "macro_sql": "{% macro get_graphql_fulfillment_order_line_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"remaining_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2317774, "supported_languages": null}, "macro.shopify_source.get_fulfillment_columns": {"name": "get_fulfillment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_columns.sql", "original_file_path": "macros/get_fulfillment_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_columns", "macro_sql": "{% macro get_fulfillment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_numbers\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2348077, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_columns": {"name": "get_graphql_fulfillment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_columns.sql", "original_file_path": "macros/get_fulfillment_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_columns", "macro_sql": "{% macro get_graphql_fulfillment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"display_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2368784, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_columns": {"name": "get_abandoned_checkout_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_columns.sql", "original_file_path": "macros/get_abandoned_checkout_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_columns", "macro_sql": "{% macro get_abandoned_checkout_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"abandoned_checkout_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2493427, "supported_languages": null}, "macro.shopify_source.get_graphql_abandoned_checkout_columns": {"name": "get_graphql_abandoned_checkout_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_columns.sql", "original_file_path": "macros/get_abandoned_checkout_columns.sql", "unique_id": "macro.shopify_source.get_graphql_abandoned_checkout_columns", "macro_sql": "{% macro get_graphql_abandoned_checkout_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"abandoned_checkout_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"completed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_discount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_duties_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_duties_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2594295, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_visit_columns": {"name": "get_graphql_customer_visit_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_visit_columns.sql", "original_file_path": "macros/get_customer_visit_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_visit_columns", "macro_sql": "{% macro get_graphql_customer_visit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page_html\", \"datatype\": dbt.type_string()},\n {\"name\": \"occurred_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"referral_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"referral_info_html\", \"datatype\": dbt.type_string()},\n {\"name\": \"referrer_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_campaign\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_content\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_medium\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_term\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2629285, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_tracking_info_columns": {"name": "get_graphql_fulfillment_tracking_info_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_tracking_info_columns.sql", "original_file_path": "macros/get_fulfillment_tracking_info_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_tracking_info_columns", "macro_sql": "{% macro get_graphql_fulfillment_tracking_info_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"number\", \"datatype\": dbt.type_string()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2643921, "supported_languages": null}, "macro.shopify_source.get_collection_product_columns": {"name": "get_collection_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_product_columns.sql", "original_file_path": "macros/get_collection_product_columns.sql", "unique_id": "macro.shopify_source.get_collection_product_columns", "macro_sql": "{% macro get_collection_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.265425, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_product_columns": {"name": "get_graphql_collection_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_product_columns.sql", "original_file_path": "macros/get_collection_product_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_product_columns", "macro_sql": "{% macro get_graphql_collection_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.266216, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_address_columns": {"name": "get_graphql_customer_address_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_address_columns.sql", "original_file_path": "macros/get_customer_address_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_address_columns", "macro_sql": "{% macro get_graphql_customer_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_default\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"validation_result_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"coordinates_validated\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.270375, "supported_languages": null}, "macro.shopify_source.get_order_line_columns": {"name": "get_order_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_columns.sql", "original_file_path": "macros/get_order_line_columns.sql", "unique_id": "macro.shopify_source.get_order_line_columns", "macro_sql": "{% macro get_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillable_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"gift_card\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"grams\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"index\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"pre_tax_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"pre_tax_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"properties\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2760894, "supported_languages": null}, "macro.shopify_source.get_graphql_order_line_columns": {"name": "get_graphql_order_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_columns.sql", "original_file_path": "macros/get_order_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_line_columns", "macro_sql": "{% macro get_graphql_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_gift_card\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"original_total_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_total_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"original_total_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_total_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"unfulfilled_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.280022, "supported_languages": null}, "macro.shopify_source.get_order_line_refund_columns": {"name": "get_order_line_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_refund_columns.sql", "original_file_path": "macros/get_order_line_refund_columns.sql", "unique_id": "macro.shopify_source.get_order_line_refund_columns", "macro_sql": "{% macro get_order_line_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"restock_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_refund_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.282883, "supported_languages": null}, "macro.shopify_source.get_graphql_order_line_refund_columns": {"name": "get_graphql_order_line_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_refund_columns.sql", "original_file_path": "macros/get_order_line_refund_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_line_refund_columns", "macro_sql": "{% macro get_graphql_order_line_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"restock_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_refund_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2855983, "supported_languages": null}, "macro.shopify_source.get_product_variant_columns": {"name": "get_product_variant_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_columns.sql", "original_file_path": "macros/get_product_variant_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_columns", "macro_sql": "{% macro get_product_variant_columns() %}\n\n{# Columns below line 28 to be deprecated. #}\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"position\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"compare_at_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"barcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"old_inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"available_for_sale\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"requires_components\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sellable_online_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"fulfillment_service\", \"datatype\": dbt.type_string()},\n {\"name\": \"grams\", \"datatype\": dbt.type_float()},\n {\"name\": \"inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_3\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_variant_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_boolean", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2918992, "supported_languages": null}, "macro.shopify_source.get_graphql_product_variant_columns": {"name": "get_graphql_product_variant_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_columns.sql", "original_file_path": "macros/get_product_variant_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_variant_columns", "macro_sql": "{% macro get_graphql_product_variant_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_sale\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"barcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"compare_at_price\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"position\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_components\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sellable_online_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_variant_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2956247, "supported_languages": null}, "macro.shopify_source.get_product_tag_columns": {"name": "get_product_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_tag_columns.sql", "original_file_path": "macros/get_product_tag_columns.sql", "unique_id": "macro.shopify_source.get_product_tag_columns", "macro_sql": "{% macro get_product_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.296886, "supported_languages": null}, "macro.shopify_source.get_graphql_product_tag_columns": {"name": "get_graphql_product_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_tag_columns.sql", "original_file_path": "macros/get_product_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_tag_columns", "macro_sql": "{% macro get_graphql_product_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2978969, "supported_languages": null}, "macro.shopify_source.get_media_columns": {"name": "get_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_columns.sql", "original_file_path": "macros/get_media_columns.sql", "unique_id": "macro.shopify_source.get_media_columns", "macro_sql": "{% macro get_media_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}, \n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()}, \n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()} \n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.2991726, "supported_languages": null}, "macro.shopify_source.get_graphql_media_columns": {"name": "get_graphql_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_columns.sql", "original_file_path": "macros/get_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_media_columns", "macro_sql": "{% macro get_graphql_media_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3002505, "supported_languages": null}, "macro.shopify_source.get_discount_application_columns": {"name": "get_discount_application_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_application_columns.sql", "original_file_path": "macros/get_discount_application_columns.sql", "unique_id": "macro.shopify_source.get_discount_application_columns", "macro_sql": "{% macro get_discount_application_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocation_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"target_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value\", \"datatype\": dbt.type_float()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3029506, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_application_columns": {"name": "get_graphql_discount_application_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_application_columns.sql", "original_file_path": "macros/get_discount_application_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_application_columns", "macro_sql": "{% macro get_graphql_discount_application_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocation_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"target_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"value_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_percentage\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3048189, "supported_languages": null}, "macro.shopify_source.get_inventory_quantity_columns": {"name": "get_inventory_quantity_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_quantity_columns.sql", "original_file_path": "macros/get_inventory_quantity_columns.sql", "unique_id": "macro.shopify_source.get_inventory_quantity_columns", "macro_sql": "{% macro get_inventory_quantity_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_level_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3066416, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_quantity_columns": {"name": "get_graphql_inventory_quantity_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_quantity_columns.sql", "original_file_path": "macros/get_inventory_quantity_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_quantity_columns", "macro_sql": "{% macro get_graphql_inventory_quantity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_level_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.308027, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_discount_code_columns": {"name": "get_abandoned_checkout_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_discount_code_columns.sql", "original_file_path": "macros/get_abandoned_checkout_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro_sql": "{% macro get_abandoned_checkout_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3100986, "supported_languages": null}, "macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns": {"name": "get_graphql_abandoned_checkout_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_discount_code_columns.sql", "original_file_path": "macros/get_abandoned_checkout_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns", "macro_sql": "{% macro get_graphql_abandoned_checkout_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.311032, "supported_languages": null}, "macro.shopify_source.get_discount_code_bxgy_columns": {"name": "get_discount_code_bxgy_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_bxgy_columns.sql", "original_file_path": "macros/get_discount_code_bxgy_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_bxgy_columns", "macro_sql": "{% macro get_discount_code_bxgy_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.31551, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_bxgy_columns": {"name": "get_graphql_discount_code_bxgy_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_bxgy_columns.sql", "original_file_path": "macros/get_discount_code_bxgy_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_bxgy_columns", "macro_sql": "{% macro get_graphql_discount_code_bxgy_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3186865, "supported_languages": null}, "macro.shopify_source.get_inventory_level_columns": {"name": "get_inventory_level_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_level_columns.sql", "original_file_path": "macros/get_inventory_level_columns.sql", "unique_id": "macro.shopify_source.get_inventory_level_columns", "macro_sql": "{% macro get_inventory_level_columns() %}\n\n{# Columns below line 13 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"can_deactivate\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deactivation_alert\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n ,\n {\"name\": \"available\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3208873, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_level_columns": {"name": "get_graphql_inventory_level_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_level_columns.sql", "original_file_path": "macros/get_inventory_level_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_level_columns", "macro_sql": "{% macro get_graphql_inventory_level_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"can_deactivate\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deactivation_alert\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3224127, "supported_languages": null}, "macro.shopify_source.get_order_note_attribute_columns": {"name": "get_order_note_attribute_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_note_attribute_columns.sql", "original_file_path": "macros/get_order_note_attribute_columns.sql", "unique_id": "macro.shopify_source.get_order_note_attribute_columns", "macro_sql": "{% macro get_order_note_attribute_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3236613, "supported_languages": null}, "macro.shopify_source.get_graphql_order_note_attribute_columns": {"name": "get_graphql_order_note_attribute_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_note_attribute_columns.sql", "original_file_path": "macros/get_order_note_attribute_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_note_attribute_columns", "macro_sql": "{% macro get_graphql_order_note_attribute_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3245788, "supported_languages": null}, "macro.shopify_source.get_metafield_columns": {"name": "get_metafield_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_metafield_columns.sql", "original_file_path": "macros/get_metafield_columns.sql", "unique_id": "macro.shopify_source.get_metafield_columns", "macro_sql": "{% macro get_metafield_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"namespace\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"owner_resource\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.327347, "supported_languages": null}, "macro.shopify_source.get_graphql_metafield_columns": {"name": "get_graphql_metafield_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_metafield_columns.sql", "original_file_path": "macros/get_metafield_columns.sql", "unique_id": "macro.shopify_source.get_graphql_metafield_columns", "macro_sql": "{% macro get_graphql_metafield_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"namespace\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"owner_resource\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3292978, "supported_languages": null}, "macro.shopify_source.fivetran_convert_timezone": {"name": "fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.fivetran_convert_timezone", "macro_sql": "{%- macro fivetran_convert_timezone(column, target_tz=None, source_tz=None) -%}\n{%- set source_tz = \"UTC\" if not source_tz else source_tz -%}\n{%- set target_tz = \"UTC\" if not target_tz else target_tz -%}\n{{ return(adapter.dispatch('fivetran_convert_timezone', 'shopify_source') (column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3305216, "supported_languages": null}, "macro.shopify_source.default__fivetran_convert_timezone": {"name": "default__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.default__fivetran_convert_timezone", "macro_sql": "{% macro default__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ dbt.type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3309183, "supported_languages": null}, "macro.shopify_source.bigquery__fivetran_convert_timezone": {"name": "bigquery__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.bigquery__fivetran_convert_timezone", "macro_sql": "{%- macro bigquery__fivetran_convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3312478, "supported_languages": null}, "macro.shopify_source.postgres__fivetran_convert_timezone": {"name": "postgres__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.postgres__fivetran_convert_timezone", "macro_sql": "{% macro postgres__fivetran_convert_timezone(column, target_tz, source_tz) -%}\ncast(\n cast({{ column }} as {{ dbt.type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt.type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.331701, "supported_languages": null}, "macro.shopify_source.redshift__fivetran_convert_timezone": {"name": "redshift__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.redshift__fivetran_convert_timezone", "macro_sql": "{%- macro redshift__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.default__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3320756, "supported_languages": null}, "macro.shopify_source.duckdb__fivetran_convert_timezone": {"name": "duckdb__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.duckdb__fivetran_convert_timezone", "macro_sql": "{% macro duckdb__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.postgres__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3324544, "supported_languages": null}, "macro.shopify_source.spark__fivetran_convert_timezone": {"name": "spark__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.spark__fivetran_convert_timezone", "macro_sql": "{%- macro spark__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nfrom_utc_timestamp(\n to_utc_timestamp({{ column }}, '{{ source_tz }}'),\n '{{ target_tz }}'\n )\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754507512.3327749, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.shopify_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_synced", "block_contents": "The time when a record was last updated by Fivetran."}, "doc.shopify_source._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_deleted", "block_contents": "Boolean representing whether the record was soft-deleted in Shopify."}, "doc.shopify_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source.source_relation", "block_contents": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {"test.shopify_integration_tests.consistency_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_discounts.sql", "original_file_path": "tests/consistency/consistency_discounts.sql", "unique_id": "test.shopify_integration_tests.consistency_discounts", "fqn": ["shopify_integration_tests", "consistency", "consistency_discounts"], "alias": "consistency_discounts", "checksum": {"name": "sha256", "checksum": "c4c0089722a912fc6859d3f23b928425253c88ad16955dc1ec30dd47328d24b8"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.292209, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__discounts\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__discounts\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_transactions": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_transactions", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_transactions.sql", "original_file_path": "tests/consistency/consistency_transactions.sql", "unique_id": "test.shopify_integration_tests.consistency_transactions", "fqn": ["shopify_integration_tests", "consistency", "consistency_transactions"], "alias": "consistency_transactions", "checksum": {"name": "sha256", "checksum": "4a35a742a91f9610e5f2f43d798aa32b4a7a03316db67fa95804ae894a6bddbd"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3243384, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__transactions\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__transactions\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced_count": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced_count", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced_count.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced_count.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced_count", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced_count"], "alias": "consistency_line_item_enhanced_count", "checksum": {"name": "sha256", "checksum": "5966fa4f5d6392d55c6776983375aba21f63ec6d2bce09807769e2f807973074"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3300045, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure the rows counts are the same between versions\nwith prod as (\n select count(*) as prod_rows\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select count(*) as dev_rows\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n)\n\n-- test will return values and fail if the row counts don't match\nselect *\nfrom prod\njoin dev\n on prod.prod_rows != dev.dev_rows", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced"], "alias": "consistency_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "bafda328d8951e5c1315715ae2af2b6db591c008cfb2e3e87102e102a927127d"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3367386, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_email_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_email_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_email_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_email_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_email_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_email_cohorts"], "alias": "consistency_customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "9c68a37c8316395c4e9454f955bf9a88a8ec0f0a1b8e8b92f0324c30118b0a38"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3426375, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_email_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_email_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_emails": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_emails", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_emails.sql", "original_file_path": "tests/consistency/consistency_customer_emails.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_emails", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_emails"], "alias": "consistency_customer_emails", "checksum": {"name": "sha256", "checksum": "f65921899974fb386942217898b874b933b185b03ba96b7b4393a21c57749faf"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.348172, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customer_emails\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customer_emails\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_inventory_levels": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_inventory_levels", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_inventory_levels.sql", "original_file_path": "tests/consistency/consistency_inventory_levels.sql", "unique_id": "test.shopify_integration_tests.consistency_inventory_levels", "fqn": ["shopify_integration_tests", "consistency", "consistency_inventory_levels"], "alias": "consistency_inventory_levels", "checksum": {"name": "sha256", "checksum": "5c4bf90e9896cd512f8251e7b55deaf76564f860f24c9332b2379854562145fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3537698, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__inventory_levels\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_order_lines": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_order_lines", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_order_lines.sql", "original_file_path": "tests/consistency/consistency_order_lines.sql", "unique_id": "test.shopify_integration_tests.consistency_order_lines", "fqn": ["shopify_integration_tests", "consistency", "consistency_order_lines"], "alias": "consistency_order_lines", "checksum": {"name": "sha256", "checksum": "0a6491b31602ef2fecc145804b8b8f386801aba35815ea3dc70e4bc0aaf5c3d9"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3593588, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__order_lines\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__order_lines\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customers.sql", "original_file_path": "tests/consistency/consistency_customers.sql", "unique_id": "test.shopify_integration_tests.consistency_customers", "fqn": ["shopify_integration_tests", "consistency", "consistency_customers"], "alias": "consistency_customers", "checksum": {"name": "sha256", "checksum": "b585f5c5f4001fd7febda99275ce6e83ccc77d28d5113615025a883a10b3fe75"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.365875, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customers\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customers\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_daily_shop": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_daily_shop", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_daily_shop.sql", "original_file_path": "tests/consistency/consistency_daily_shop.sql", "unique_id": "test.shopify_integration_tests.consistency_daily_shop", "fqn": ["shopify_integration_tests", "consistency", "consistency_daily_shop"], "alias": "consistency_daily_shop", "checksum": {"name": "sha256", "checksum": "c6b82febd4b38d78edcc9e3b3f8dba293d1754d7223d5c16828b5f48f01742f5"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3713417, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_prod.shopify__daily_shop\n group by 1,2,3\n),\n\ndev as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_dev.shopify__daily_shop\n group by 1,2,3\n),\n\nfinal as (\n select \n prod.date_day as prod_date_day,\n dev.date_day as dev_date_day,\n prod.shop_id as prod_shop_id,\n dev.shop_id as dev_shop_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.count_orders as prod_count_orders,\n dev.count_orders as dev_count_orders,\n prod.count_customers as prod_count_customers,\n dev.count_customers as dev_count_customers,\n prod.order_adjusted_total as prod_order_adjusted_total,\n dev.order_adjusted_total as dev_order_adjusted_total,\n prod.count_abandoned_checkouts as prod_count_abandoned_checkouts,\n dev.count_abandoned_checkouts as dev_count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , prod.count_fulfillment_attempted_delivery as prod_count_fulfillment_attempted_delivery\n , dev.count_fulfillment_attempted_delivery as dev_count_fulfillment_attempted_delivery\n , prod.count_fulfillment_confirmed as prod_count_fulfillment_confirmed\n , dev.count_fulfillment_confirmed as dev_count_fulfillment_confirmed\n {% endif %}\n\n from prod\n full outer join dev \n on dev.date_day = prod.date_day\n and dev.shop_id = prod.shop_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_date_day != dev_date_day or\n prod_shop_id != dev_shop_id or\n prod_source_relation != dev_source_relation or\n abs(prod_count_orders - dev_count_orders) > .001 or\n abs(prod_count_customers - dev_count_customers) > .001 or\n abs(prod_order_adjusted_total - dev_order_adjusted_total) > .001 or\n abs(prod_count_abandoned_checkouts - dev_count_abandoned_checkouts) > .001\n \n {% if var('shopify_using_fulfillment_event', false) %}\n or abs(prod_count_fulfillment_attempted_delivery - dev_count_fulfillment_attempted_delivery) > .001\n or abs(prod_count_fulfillment_confirmed - dev_count_fulfillment_confirmed) > .001\n {% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_cohorts"], "alias": "consistency_customer_cohorts", "checksum": {"name": "sha256", "checksum": "389c12079464cf20fe1f6888a7e40c8bb469148349a20931a8ba997e2f0023fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3785403, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_orders.sql", "original_file_path": "tests/consistency/consistency_orders.sql", "unique_id": "test.shopify_integration_tests.consistency_orders", "fqn": ["shopify_integration_tests", "consistency", "consistency_orders"], "alias": "consistency_orders", "checksum": {"name": "sha256", "checksum": "0ab8c3335aa456106375ec248d3f309d35588f35d3654b13270a44eadb27faf6"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3842263, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__orders\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__orders\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_line_item_enhanced.sql", "original_file_path": "tests/integrity/vertical_integrity_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_line_item_enhanced", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_line_item_enhanced"], "alias": "vertical_integrity_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "efc2b1e0ac6bc26d2581903d83d1d56be172c14cfff1d8d6d7fa6b6eb160c7f7"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3905194, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure there is no fanout between the staging order_line_table and the line_item_enhanced model.\nwith stg_order_line as (\n select\n 1 as join_key,\n count(*) as order_line_count,\n count(distinct order_id) as order_count\n from {{ ref('stg_shopify__order_line') }}\n),\n\nline_item_enhanced as (\n select\n 1 as join_key,\n count(*) as line_item_enhanced_count\n from {{ ref('shopify__line_item_enhanced') }}\n),\n\n-- test will return values and fail if the row counts don't match\n\nfinal as (\n select \n stg_order_line.join_key,\n stg_order_line.order_line_count + stg_order_line.order_count as total_line_and_order_count,\n line_item_enhanced.line_item_enhanced_count\n from stg_order_line\n join line_item_enhanced\n on stg_order_line.join_key = line_item_enhanced.join_key\n) \n\nselect *\nfrom final\nwhere total_line_and_order_count != line_item_enhanced_count", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "shopify__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_daily_shop_fulfillment", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_daily_shop_fulfillment.sql", "original_file_path": "tests/integrity/vertical_integrity_daily_shop_fulfillment.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_daily_shop_fulfillment"], "alias": "vertical_integrity_daily_shop_fulfillment", "checksum": {"name": "sha256", "checksum": "ba5dfc5af503b2012b977cd000daf131bf61c08241aad583df03926212225016"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.3966827, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n-- test will only run if shopify_using_fulfillment_event is set to True\n\nwith source as (\n\n select *\n from {{ ref('stg_shopify__fulfillment_event') }}\n),\n\nsource_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day,\n shop_id,\n count(distinct case when status = 'delayed' then fulfillment_id end) as count_fulfillment_delayed,\n count(distinct case when status = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit,\n count(distinct case when status = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed,\n count(distinct case when status = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n\n from source\n where happened_at > '2020-01-01' and happened_at < '2024-06-10'\n group by 1,2,3\n),\n\nmodel as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\nmodel_metrics as (\n\n select \n source_relation,\n date_day,\n shop_id,\n sum(count_fulfillment_delayed) as count_fulfillment_delayed,\n sum(count_fulfillment_in_transit) as count_fulfillment_in_transit,\n sum(count_fulfillment_confirmed) as count_fulfillment_confirmed,\n sum(count_fulfillment_delivered) as count_fulfillment_delivered\n\n from model\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2,3\n),\n\nfinal as (\n\n select\n model_metrics.source_relation,\n model_metrics.shop_id as model_shop_id,\n source_metrics.shop_id as source_shop_id,\n model_metrics.date_day as model_date_day,\n source_metrics.date_day as source_date_day,\n coalesce(model_metrics.count_fulfillment_delayed, 0) as model_count_fulfillment_delayed,\n coalesce(source_metrics.count_fulfillment_delayed, 0) as source_count_fulfillment_delayed,\n coalesce(model_metrics.count_fulfillment_in_transit, 0) as model_count_fulfillment_in_transit,\n coalesce(source_metrics.count_fulfillment_in_transit, 0) as source_count_fulfillment_in_transit,\n coalesce(model_metrics.count_fulfillment_confirmed, 0) as model_count_fulfillment_confirmed,\n coalesce(source_metrics.count_fulfillment_confirmed, 0) as source_count_fulfillment_confirmed,\n coalesce(model_metrics.count_fulfillment_delivered, 0) as model_count_fulfillment_delivered,\n coalesce(source_metrics.count_fulfillment_delivered, 0) as source_count_fulfillment_delivered\n\n from model_metrics\n full outer join source_metrics\n on model_metrics.source_relation = source_metrics.source_relation\n and model_metrics.shop_id = source_metrics.shop_id\n and model_metrics.date_day = source_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \nmodel_count_fulfillment_delayed != source_count_fulfillment_delayed or\nmodel_count_fulfillment_in_transit != source_count_fulfillment_in_transit or\nmodel_count_fulfillment_confirmed != source_count_fulfillment_confirmed or\nmodel_count_fulfillment_delivered != source_count_fulfillment_delivered", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.integrity_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_customers.sql", "original_file_path": "tests/integrity/integrity_customers.sql", "unique_id": "test.shopify_integration_tests.integrity_customers", "fqn": ["shopify_integration_tests", "integrity", "integrity_customers"], "alias": "integrity_customers", "checksum": {"name": "sha256", "checksum": "690ac16cf903e5fd89a08680246fd495bf3fbdc94a622f0b9b1ce6f6988d8a74"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.405501, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n customer_id,\n count(*) as source_customer_tag_count\n from {{ target.schema }}_shopify_dev.stg_shopify__customer_tag\n group by 1\n),\n\ntransform as (\n select\n customer_id,\n array_length(split(customer_tags, ',')) as transform_customer_tag_count -- Only BigQuery compatible for the time being\n from {{ target.schema }}_shopify_dev.shopify__customers\n where customer_tags is not null\n group by customer_id, customer_tags\n), \n\ncompare as (\n select\n source.customer_id,\n source.source_customer_tag_count,\n transform.transform_customer_tag_count\n from source\n full outer join transform\n on source.customer_id = transform.customer_id\n where source.source_customer_tag_count != transform.transform_customer_tag_count\n )\n\nselect *\nfrom compare", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.integrity_inventory_level": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_inventory_level", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_inventory_level.sql", "original_file_path": "tests/integrity/integrity_inventory_level.sql", "unique_id": "test.shopify_integration_tests.integrity_inventory_level", "fqn": ["shopify_integration_tests", "integrity", "integrity_inventory_level"], "alias": "integrity_inventory_level", "checksum": {"name": "sha256", "checksum": "2f633fb0d91b0bebe0152b97a141df7481c08e0df5557ee4962f8d0ebe7bd7ee"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.411027, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n count(*) as source_count\n from {{ target.schema }}_shopify_dev.stg_shopify__inventory_level as il\n join {{ target.schema }}_shopify_dev.stg_shopify__inventory_item as ii\n on il.inventory_item_id = ii.inventory_item_id \n and il.source_relation = ii.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__location as lo\n on il.location_id = lo.location_id \n and il.source_relation = lo.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__product_variant as pv\n on il.inventory_item_id = pv.inventory_item_id\n and il.source_relation = pv.source_relation\n),\n\ntransform as (\n select\n count(*) as transform_count\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\ncompare as (\n select *\n from source\n cross join transform\n)\n\nselect *\nfrom compare\nwhere source_count != transform_count", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_discounts.sql", "original_file_path": "tests/integrity/vertical_integrity_discounts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_discounts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_discounts"], "alias": "vertical_integrity_discounts", "checksum": {"name": "sha256", "checksum": "591dfe08097b58fd9433339a17d0388c891a6d3eef65c042f13c227737e9ff65"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.4178746, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith discount_redeem_code as (\n\n select \n code,\n discount_code_id,\n source_relation\n from {{ ref('stg_shopify__discount_redeem_code') }} \n group by 1, 2, 3\n),\n\ndiscount_codes_unioned as (\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_basic') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_bxgy') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_free_shipping') }} \n group by 1, 2\n\n {% if var('shopify_using_discount_code_app', False) %}\n\n union all\n \n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_app') }} \n group by 1, 2\n {% endif %}\n),\n\ndiscount_codes_source as (\n \n select \n discount_redeem_code.code, \n discount_redeem_code.source_relation,\n count(*) as code_count_source\n from discount_redeem_code\n left join discount_codes_unioned\n on discount_redeem_code.discount_code_id = discount_codes_unioned.discount_code_id\n and discount_redeem_code.source_relation = discount_codes_unioned.source_relation\n group by 1, 2\n),\n\n\ndiscount_codes_end as (\n\n select \n code, \n source_relation,\n count(*) as code_count_end\n from {{ ref('shopify__discounts') }}\n group by 1, 2\n),\n\n\nfinal as (\n\n select \n discount_codes_source.code,\n discount_codes_source.source_relation,\n coalesce(discount_codes_source.code_count_source, 0) as code_count_source,\n coalesce(discount_codes_end.code_count_end, 0) as code_count_end\n from discount_codes_source\n full outer join discount_codes_end\n on discount_codes_source.code = discount_codes_end.code\n and discount_codes_source.source_relation = discount_codes_end.source_relation\n)\n\nselect *\nfrom final\nwhere code_count_source != code_count_end", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}, {"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "horizontal_integrity_daily_shop_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/horizontal_integrity_daily_shop_orders.sql", "original_file_path": "tests/integrity/horizontal_integrity_daily_shop_orders.sql", "unique_id": "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders", "fqn": ["shopify_integration_tests", "integrity", "horizontal_integrity_daily_shop_orders"], "alias": "horizontal_integrity_daily_shop_orders", "checksum": {"name": "sha256", "checksum": "addd76b5760975069f87aac715bd3ade9a52af4049104f635902fd87b8b41b1a"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.4250348, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norder_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from orders\n where created_timestamp > '2020-01-01' and created_timestamp < '2024-06-10'\n group by 1,2\n),\n\ndaily_shop as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\ndaily_shop_metrics as (\n\n select \n source_relation,\n date_day,\n sum(count_orders) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from daily_shop\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2\n),\n\nfinal as (\n\n select\n daily_shop_metrics.source_relation,\n coalesce(daily_shop_metrics.count_orders, 0) as daily_shop_count_orders,\n coalesce(order_metrics.count_orders, 0) as order_count_orders,\n coalesce(daily_shop_metrics.order_adjusted_total, 0) as daily_shop_order_adjusted_total,\n coalesce(order_metrics.order_adjusted_total, 0) as order_order_adjusted_total\n\n from daily_shop_metrics\n full outer join order_metrics\n on daily_shop_metrics.source_relation = order_metrics.source_relation\n and daily_shop_metrics.date_day = order_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \n abs(daily_shop_count_orders - order_count_orders) > 0 or\n abs(daily_shop_order_adjusted_total - order_order_adjusted_total) > .1", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_customer_cohorts.sql", "original_file_path": "tests/integrity/vertical_integrity_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_customer_cohorts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_customer_cohorts"], "alias": "vertical_integrity_customer_cohorts", "checksum": {"name": "sha256", "checksum": "19553b1bce28d0577a330dc5544f21b9326b91d673b50fdfdc0ca5980b17f7ff"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754507513.431521, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n), \n\ncustomers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), \n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), \n\ncustomer_cohort_source as (\n\n select \n customers.source_relation,\n count(*) as source_rows \n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n group by 1\n),\n\ncustomer_cohort_end as (\n\n select \n source_relation,\n count(*) as end_rows\n from {{ ref('shopify__customer_cohorts') }}\n group by 1\n),\n\nfinal as (\n select\n customer_cohort_source.source_relation,\n source_rows,\n end_rows\n from customer_cohort_source\n join customer_cohort_end\n on customer_cohort_source.source_relation = customer_cohort_end.source_relation\n where customer_cohort_source.source_rows != customer_cohort_end.end_rows\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "model.shopify_source.stg_shopify_gql__collection_rule": [{"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_rule", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection_rule.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection_rule.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_rule", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection_rule"], "alias": "stg_shopify_gql__collection_rule", "checksum": {"name": "sha256", "checksum": "01b76dc43dec6771d2c2ec7d82f1b18c80fa72974103274014b2147c07abaf8f"}, "config": {"enabled": false, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Defines the rules used to automatically include products in a smart collection. Each rule specifies a product attribute, a comparison relation, and a condition value to match against. These rules are evaluated dynamically to determine collection membership without manual curation.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "{{ doc('_fivetran_synced') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID of the smart collection to which this rule applies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of the rule within the collection's rule set. Rules are evaluated in order and may be grouped depending on collection logic.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "condition": {"name": "condition", "description": "The value to compare against the attribute. For example, \u201cHats\u201d if the rule is targeting products with a title containing \u201cHats\u201d. The interpretation depends on the associated `relation` and `columns` values.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "relation": {"name": "relation", "description": "The operator used to evaluate the rule. Common values include: - `equals` - `contains` - `not_equals` - `starts_with` - `ends_with` - `is_set` - `is_not_set` - `greater_than` - `less_than` - `not_contains`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "columns": {"name": "columns", "description": "The attribute being evaluated by the rule. Example values include: - `title` - `vendor` - `tag` - `variant_price` - `product_category_id` - `variant_compare_at_price` - `variant_metafield_definition` - `product_metafield_definition` - `variant_weight` - `type` - `is_price_reduced`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "{{ doc('source_relation') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": false}, "created_at": 1754507520.4038215, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_rule\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_collection_rule', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_rule_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_shopify_gql__collection_rule_tmp')),\n staging_columns=get_graphql_collection_rule_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n index,\n columns,\n condition,\n relation,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['collection_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_rule_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_rule_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}], "model.shopify_source.stg_shopify_gql__collection_rule_tmp": [{"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_rule_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_rule_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_rule_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_rule_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_rule_tmp"], "alias": "stg_shopify_gql__collection_rule_tmp", "checksum": {"name": "sha256", "checksum": "aea52cb2c08d241449697e4e67354b058c5b993645b80afe28dff54b1189108d"}, "config": {"enabled": false, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": false}, "created_at": 1754507518.6836185, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_rule_tmp\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_collection_rule', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_rule', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_rule_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection_rule"], ["shopify_graphql", "collection_rule"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}], "source.shopify_source.shopify_graphql.collection_rule": [{"database": "postgres", "schema": "public", "name": "collection_rule", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection_rule", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection_rule"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_rule_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Defines the rules used to automatically include products in a smart collection. Each rule specifies a product attribute, a comparison relation, and a condition value to match against. These rules are evaluated dynamically to determine collection membership without manual curation.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "{{ doc('_fivetran_synced') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID of the smart collection to which this rule applies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of the rule within the collection's rule set. Rules are evaluated in order and may be grouped depending on collection logic.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "condition": {"name": "condition", "description": "The value to compare against the attribute. For example, \u201cHats\u201d if the rule is targeting products with a title containing \u201cHats\u201d. The interpretation depends on the associated `relation` and `columns` values.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "relation": {"name": "relation", "description": "The operator used to evaluate the rule. Common values include: - `equals` - `contains` - `not_equals` - `starts_with` - `ends_with` - `is_set` - `is_not_set` - `greater_than` - `less_than` - `not_contains`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "columns": {"name": "columns", "description": "The attribute being evaluated by the rule. Example values include: - `title` - `vendor` - `tag` - `variant_price` - `product_category_id` - `variant_compare_at_price` - `variant_metafield_definition` - `product_metafield_definition` - `variant_weight` - `type` - `is_price_reduced`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": false, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": false, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_rule_data\"", "created_at": 1754507520.8283174, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}]}, "parent_map": {"seed.shopify_integration_tests.shopify_gql_product_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_metafield_data": [], "seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_product_data": [], "seed.shopify_integration_tests.shopify_gql_customer_address_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_customer_data": [], "seed.shopify_integration_tests.shopify_gql_customer_visit_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_media_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_gql_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_data": [], "seed.shopify_integration_tests.shopify_gql_order_data": [], "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_refund_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_gql_collection_rule_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_item_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_gql_location_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_gql_shop_data": [], "seed.shopify_integration_tests.shopify_gql_customer_tag_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_collection_data": [], "seed.shopify_integration_tests.shopify_gql_discount_application_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_level_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_media_image_data": [], "model.shopify.shopify__calendar": [], "model.shopify.shopify__customer_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"], "model.shopify.shopify__customer_email_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"], "model.shopify.shopify__inventory_levels": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media"], "model.shopify.shopify__discounts": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.int_shopify__discounts__order_aggregates"], "model.shopify.shopify__customers": ["model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.shopify__orders": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag"], "model.shopify.shopify__transactions": ["model.shopify_source.stg_shopify__tender_transaction", "model.shopify_source.stg_shopify__transaction"], "model.shopify.shopify__order_lines": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.shopify__products": ["model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.int_shopify__products_with_aggregates"], "model.shopify.shopify__daily_shop": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment", "model.shopify.int_shopify__daily_orders", "model.shopify.shopify__calendar", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__customer_emails": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_media", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_app", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.shopify__orders__order_refunds": ["model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__refund"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order"], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__orders", "model.shopify_source.stg_shopify__order_discount_code"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__order"], "model.shopify.shopify__product_variant_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.shopify__order_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"], "model.shopify.shopify__product_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"], "model.shopify.shopify__customer_metafields": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__metafield"], "model.shopify.shopify__shop_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__collection_metafields": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__metafield"], "model.shopify.shopify__line_item_enhanced": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction"], "model.shopify.shopify_gql__customer_email_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customer_emails", "model.shopify.shopify_gql__orders"], "model.shopify.shopify_gql__customers": ["model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify.shopify_gql__order_lines": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.int_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify.shopify_gql__transactions": ["model.shopify.int_shopify_gql__order", "model.shopify_source.stg_shopify_gql__tender_transaction", "model.shopify_source.stg_shopify_gql__transaction"], "model.shopify.shopify_gql__customer_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customers", "model.shopify.shopify_gql__orders"], "model.shopify.shopify_gql__discounts": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.int_shopify_gql__discounts_order_aggregates"], "model.shopify.shopify_gql__inventory_levels": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__inventory_level", "model.shopify_source.stg_shopify_gql__inventory_quantity", "model.shopify_source.stg_shopify_gql__location", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify.shopify_gql__customer_emails": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.int_shopify_gql__emails_order_aggregates"], "model.shopify.shopify_gql__daily_shop": ["model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__daily_fulfillment", "model.shopify.int_shopify_gql__daily_orders", "model.shopify.shopify__calendar", "model.shopify_source.stg_shopify_gql__shop"], "model.shopify.shopify_gql__products": ["model.shopify.int_shopify_gql__product_order_line_aggregates", "model.shopify.int_shopify_gql__products_with_aggregates"], "model.shopify.shopify_gql__orders": ["model.shopify.int_shopify_gql__order", "model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__order_discount_code", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__order_tag"], "model.shopify.int_shopify_gql__discount_code_enriched": ["model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__discount_code_app", "model.shopify_source.stg_shopify_gql__discount_code_basic", "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "model.shopify_source.stg_shopify_gql__discount_redeem_code"], "model.shopify.int_shopify_gql__products_with_aggregates": ["model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__collection_product", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__product_media", "model.shopify_source.stg_shopify_gql__product_tag", "model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify.int_shopify_gql__customers_order_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__daily_orders": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__emails_order_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__order_shipping_aggregates": ["model.shopify_source.stg_shopify_gql__order_shipping_line", "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "model.shopify.int_shopify_gql__order_fulfillment_aggregates": ["model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "model.shopify.int_shopify_gql__product_order_line_aggregates": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__orders_order_line_aggregates": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify.int_shopify_gql__discounts_order_aggregates": ["model.shopify.int_shopify_gql__order_discount_code", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__daily_fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "model.shopify.int_shopify_gql__customer_email_rollup": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify.int_shopify_gql__orders_order_refunds": ["model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__refund"], "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify_gql__discount_application"], "model.shopify.int_shopify_gql__daily_abandoned_checkouts": ["model.shopify.int_shopify_gql__abandoned_checkout"], "model.shopify.int_shopify_gql__inventory_level_aggregates": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment", "model.shopify_source.stg_shopify_gql__refund"], "model.shopify.int_shopify_gql__order_discount_code": ["model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__order_discount_code"], "model.shopify.int_shopify_gql__order": ["model.shopify_source.stg_shopify_gql__customer_visit", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__product_variant": ["model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify.int_shopify_gql__collection": ["model.shopify_source.stg_shopify_gql__collection"], "model.shopify.int_shopify_gql__abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer"], "model.shopify.int_shopify_gql__customer": ["model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_address"], "model.shopify.int_shopify_gql__order_line": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify.shopify_gql__product_metafields": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__product"], "model.shopify.shopify_gql__collection_metafields": ["model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__customer_metafields": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__shop_metafields": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__shop"], "model.shopify.shopify_gql__order_metafields": ["model.shopify.int_shopify_gql__order", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__product_variant_metafields": ["model.shopify.int_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__line_item_enhanced": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__transaction"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "model.shopify_source.stg_shopify__discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "model.shopify_source.stg_shopify__order": ["model.shopify_source.stg_shopify__order_tmp"], "model.shopify_source.stg_shopify__transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "model.shopify_source.stg_shopify__metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "model.shopify_source.stg_shopify__shop": ["model.shopify_source.stg_shopify__shop_tmp"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"], "model.shopify_source.stg_shopify__customer": ["model.shopify_source.stg_shopify__customer_tmp"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "model.shopify_source.stg_shopify__collection": ["model.shopify_source.stg_shopify__collection_tmp"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "model.shopify_source.stg_shopify__media": ["model.shopify_source.stg_shopify__media_tmp"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "model.shopify_source.stg_shopify__media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "model.shopify_source.stg_shopify__order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "model.shopify_source.stg_shopify__order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "model.shopify_source.stg_shopify__refund": ["model.shopify_source.stg_shopify__refund_tmp"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "model.shopify_source.stg_shopify__product": ["model.shopify_source.stg_shopify__product_tmp"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "model.shopify_source.stg_shopify__location": ["model.shopify_source.stg_shopify__location_tmp"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "model.shopify_source.stg_shopify__product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "model.shopify_source.stg_shopify__metafield_tmp": ["source.shopify_source.shopify.metafield"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["source.shopify_source.shopify.discount_code_bxgy"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["source.shopify_source.shopify.fulfillment"], "model.shopify_source.stg_shopify__product_variant_tmp": ["source.shopify_source.shopify.product_variant"], "model.shopify_source.stg_shopify__collection_tmp": ["source.shopify_source.shopify.collection"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["source.shopify_source.shopify.order_discount_code"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["source.shopify_source.shopify.order_url_tag"], "model.shopify_source.stg_shopify__product_tmp": ["source.shopify_source.shopify.product"], "model.shopify_source.stg_shopify__order_tag_tmp": ["source.shopify_source.shopify.order_tag"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["source.shopify_source.shopify.inventory_quantity"], "model.shopify_source.stg_shopify__tax_line_tmp": ["source.shopify_source.shopify.tax_line"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["source.shopify_source.shopify.customer_tag"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["source.shopify_source.shopify.discount_allocation"], "model.shopify_source.stg_shopify__media_image_tmp": ["source.shopify_source.shopify.media_image"], "model.shopify_source.stg_shopify__media_tmp": ["source.shopify_source.shopify.media"], "model.shopify_source.stg_shopify__refund_tmp": ["source.shopify_source.shopify.refund"], "model.shopify_source.stg_shopify__location_tmp": ["source.shopify_source.shopify.location"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["source.shopify_source.shopify.inventory_level"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["source.shopify_source.shopify.order_shipping_line"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["source.shopify_source.shopify.abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["source.shopify_source.shopify.fulfillment_event"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["source.shopify_source.shopify.order_line_refund"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["source.shopify_source.shopify.discount_code_app"], "model.shopify_source.stg_shopify__shop_tmp": ["source.shopify_source.shopify.shop"], "model.shopify_source.stg_shopify__transaction_tmp": ["source.shopify_source.shopify.transaction"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["source.shopify_source.shopify.product_variant_media"], "model.shopify_source.stg_shopify__order_line_tmp": ["source.shopify_source.shopify.order_line"], "model.shopify_source.stg_shopify__product_media_tmp": ["source.shopify_source.shopify.product_media"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["source.shopify_source.shopify.discount_code_basic"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["source.shopify_source.shopify.order_shipping_tax_line"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["source.shopify_source.shopify.order_note_attribute"], "model.shopify_source.stg_shopify__discount_application_tmp": ["source.shopify_source.shopify.discount_application"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["source.shopify_source.shopify.tender_transaction"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["source.shopify_source.shopify.discount_code_free_shipping"], "model.shopify_source.stg_shopify__product_tag_tmp": ["source.shopify_source.shopify.product_tag"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["source.shopify_source.shopify.inventory_item"], "model.shopify_source.stg_shopify__order_tmp": ["source.shopify_source.shopify.order"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["source.shopify_source.shopify.discount_redeem_code"], "model.shopify_source.stg_shopify__customer_tmp": ["source.shopify_source.shopify.customer"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["source.shopify_source.shopify.order_adjustment"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__collection_product_tmp": ["source.shopify_source.shopify.collection_product"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["source.shopify_source.shopify.abandoned_checkout"], "model.shopify_source.stg_shopify_gql__media": ["model.shopify_source.stg_shopify_gql__media_tmp"], "model.shopify_source.stg_shopify_gql__customer_visit": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_app": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"], "model.shopify_source.stg_shopify_gql__customer_tag": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"], "model.shopify_source.stg_shopify_gql__order": ["model.shopify_source.stg_shopify_gql__order_tmp"], "model.shopify_source.stg_shopify_gql__order_line": ["model.shopify_source.stg_shopify_gql__order_line_tmp"], "model.shopify_source.stg_shopify_gql__inventory_item": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"], "model.shopify_source.stg_shopify_gql__order_shipping_line": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"], "model.shopify_source.stg_shopify_gql__product": ["model.shopify_source.stg_shopify_gql__product_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"], "model.shopify_source.stg_shopify_gql__discount_allocation": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"], "model.shopify_source.stg_shopify_gql__tax_line": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"], "model.shopify_source.stg_shopify_gql__order_line_refund": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"], "model.shopify_source.stg_shopify_gql__inventory_level": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"], "model.shopify_source.stg_shopify_gql__shop": ["model.shopify_source.stg_shopify_gql__shop_tmp"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "model.shopify_source.stg_shopify_gql__location": ["model.shopify_source.stg_shopify_gql__location_tmp"], "model.shopify_source.stg_shopify_gql__transaction": ["model.shopify_source.stg_shopify_gql__transaction_tmp"], "model.shopify_source.stg_shopify_gql__product_media": ["model.shopify_source.stg_shopify_gql__product_media_tmp"], "model.shopify_source.stg_shopify_gql__product_variant": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"], "model.shopify_source.stg_shopify_gql__media_image": ["model.shopify_source.stg_shopify_gql__media_image_tmp"], "model.shopify_source.stg_shopify_gql__abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"], "model.shopify_source.stg_shopify_gql__collection": ["model.shopify_source.stg_shopify_gql__collection_tmp"], "model.shopify_source.stg_shopify_gql__refund": ["model.shopify_source.stg_shopify_gql__refund_tmp"], "model.shopify_source.stg_shopify_gql__discount_application": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"], "model.shopify_source.stg_shopify_gql__order_discount_code": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_basic": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"], "model.shopify_source.stg_shopify_gql__order_note_attribute": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"], "model.shopify_source.stg_shopify_gql__tender_transaction": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"], "model.shopify_source.stg_shopify_gql__customer": ["model.shopify_source.stg_shopify_gql__customer_tmp"], "model.shopify_source.stg_shopify_gql__product_tag": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"], "model.shopify_source.stg_shopify_gql__order_tag": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"], "model.shopify_source.stg_shopify_gql__metafield": ["model.shopify_source.stg_shopify_gql__metafield_tmp"], "model.shopify_source.stg_shopify_gql__product_variant_media": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"], "model.shopify_source.stg_shopify_gql__collection_product": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"], "model.shopify_source.stg_shopify_gql__inventory_quantity": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_event": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"], "model.shopify_source.stg_shopify_gql__customer_address": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"], "model.shopify_source.stg_shopify_gql__order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"], "model.shopify_source.stg_shopify_gql__discount_redeem_code": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"], "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": ["source.shopify_source.shopify_graphql.discount_redeem_code"], "model.shopify_source.stg_shopify_gql__refund_tmp": ["source.shopify_source.shopify_graphql.refund"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": ["source.shopify_source.shopify_graphql.discount_code_bxgy"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": ["source.shopify_source.shopify_graphql.fulfillment_tracking_info"], "model.shopify_source.stg_shopify_gql__customer_tmp": ["source.shopify_source.shopify_graphql.customer"], "model.shopify_source.stg_shopify_gql__product_tmp": ["source.shopify_source.shopify_graphql.product"], "model.shopify_source.stg_shopify_gql__customer_visit_tmp": ["source.shopify_source.shopify_graphql.customer_visit"], "model.shopify_source.stg_shopify_gql__shop_tmp": ["source.shopify_source.shopify_graphql.shop"], "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": ["source.shopify_source.shopify_graphql.inventory_quantity"], "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": ["source.shopify_source.shopify_graphql.order_shipping_line"], "model.shopify_source.stg_shopify_gql__collection_tmp": ["source.shopify_source.shopify_graphql.collection"], "model.shopify_source.stg_shopify_gql__inventory_item_tmp": ["source.shopify_source.shopify_graphql.inventory_item"], "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": ["source.shopify_source.shopify_graphql.discount_code_basic"], "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": ["source.shopify_source.shopify_graphql.order_adjustment"], "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": ["source.shopify_source.shopify_graphql.order_note_attribute"], "model.shopify_source.stg_shopify_gql__discount_application_tmp": ["source.shopify_source.shopify_graphql.discount_application"], "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": ["source.shopify_source.shopify_graphql.discount_code_app"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": ["source.shopify_source.shopify_graphql.order_shipping_tax_line"], "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": ["source.shopify_source.shopify_graphql.order_line_refund"], "model.shopify_source.stg_shopify_gql__metafield_tmp": ["source.shopify_source.shopify_graphql.metafield"], "model.shopify_source.stg_shopify_gql__order_line_tmp": ["source.shopify_source.shopify_graphql.order_line"], "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": ["source.shopify_source.shopify_graphql.product_variant_media"], "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": ["source.shopify_source.shopify_graphql.order_discount_code"], "model.shopify_source.stg_shopify_gql__product_variant_tmp": ["source.shopify_source.shopify_graphql.product_variant"], "model.shopify_source.stg_shopify_gql__order_tmp": ["source.shopify_source.shopify_graphql.order"], "model.shopify_source.stg_shopify_gql__location_tmp": ["source.shopify_source.shopify_graphql.location"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": ["source.shopify_source.shopify_graphql.discount_code_free_shipping"], "model.shopify_source.stg_shopify_gql__tax_line_tmp": ["source.shopify_source.shopify_graphql.tax_line"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": ["source.shopify_source.shopify_graphql.fulfillment_order_line_item"], "model.shopify_source.stg_shopify_gql__collection_product_tmp": ["source.shopify_source.shopify_graphql.collection_product"], "model.shopify_source.stg_shopify_gql__fulfillment_tmp": ["source.shopify_source.shopify_graphql.fulfillment"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": ["source.shopify_source.shopify_graphql.abandoned_checkout"], "model.shopify_source.stg_shopify_gql__order_tag_tmp": ["source.shopify_source.shopify_graphql.order_tag"], "model.shopify_source.stg_shopify_gql__product_media_tmp": ["source.shopify_source.shopify_graphql.product_media"], "model.shopify_source.stg_shopify_gql__media_image_tmp": ["source.shopify_source.shopify_graphql.media_image"], "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": ["source.shopify_source.shopify_graphql.tender_transaction"], "model.shopify_source.stg_shopify_gql__media_tmp": ["source.shopify_source.shopify_graphql.media"], "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": ["source.shopify_source.shopify_graphql.discount_allocation"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": ["source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify_gql__inventory_level_tmp": ["source.shopify_source.shopify_graphql.inventory_level"], "model.shopify_source.stg_shopify_gql__customer_tag_tmp": ["source.shopify_source.shopify_graphql.customer_tag"], "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": ["source.shopify_source.shopify_graphql.fulfillment_event"], "model.shopify_source.stg_shopify_gql__transaction_tmp": ["source.shopify_source.shopify_graphql.transaction"], "model.shopify_source.stg_shopify_gql__product_tag_tmp": ["source.shopify_source.shopify_graphql.product_tag"], "model.shopify_source.stg_shopify_gql__customer_address_tmp": ["source.shopify_source.shopify_graphql.customer_address"], "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": ["model.shopify.shopify_gql__customer_cohorts"], "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": ["model.shopify.shopify_gql__customer_cohorts"], "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": ["model.shopify.shopify_gql__customer_email_cohorts"], "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": ["model.shopify.shopify_gql__customer_email_cohorts"], "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": ["model.shopify.shopify_gql__orders"], "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": ["model.shopify.shopify_gql__orders"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171": ["model.shopify.shopify_gql__customers"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003": ["model.shopify.shopify_gql__customer_emails"], "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": ["model.shopify.shopify_gql__products"], "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": ["model.shopify.shopify_gql__products"], "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": ["model.shopify.shopify_gql__order_lines"], "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": ["model.shopify.shopify_gql__order_lines"], "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": ["model.shopify.shopify_gql__transactions"], "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": ["model.shopify.shopify_gql__transactions"], "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": ["model.shopify.shopify_gql__discounts"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": ["model.shopify.shopify_gql__daily_shop"], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": ["model.shopify.shopify__customer_cohorts"], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": ["model.shopify.shopify__customer_cohorts"], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": ["model.shopify.shopify__orders"], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": ["model.shopify.shopify__orders"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": ["model.shopify.shopify__customers"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": ["model.shopify.shopify__customer_emails"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": ["model.shopify.shopify__products"], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": ["model.shopify.shopify__order_lines"], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": ["model.shopify.shopify__order_lines"], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": ["model.shopify.shopify__inventory_levels"], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": ["model.shopify.shopify__inventory_levels"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": ["model.shopify.shopify__inventory_levels"], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": ["model.shopify.shopify__discounts"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": ["model.shopify.shopify__daily_shop"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": ["model.shopify.shopify__customers__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": ["model.shopify.shopify__orders__order_line_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": ["model.shopify.int_shopify__emails__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": ["model.shopify.int_shopify__customer_email_rollup"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": ["model.shopify.int_shopify__inventory_level__aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": ["model.shopify.int_shopify__discounts__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": ["model.shopify.int_shopify__discounts__abandoned_checkouts"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": ["model.shopify.int_shopify__order__shipping_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": ["model.shopify.int_shopify__product__order_line_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": ["model.shopify.int_shopify__products_with_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": ["model.shopify.shopify__line_item_enhanced"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1": ["model.shopify.shopify_gql__line_item_enhanced"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": ["model.shopify_source.stg_shopify__customer"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": ["model.shopify_source.stg_shopify__order_line_refund"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": ["model.shopify_source.stg_shopify__order_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": ["model.shopify_source.stg_shopify__order"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": ["model.shopify_source.stg_shopify__product"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": ["model.shopify_source.stg_shopify__product_variant"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": ["model.shopify_source.stg_shopify__transaction"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": ["model.shopify_source.stg_shopify__refund"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": ["model.shopify_source.stg_shopify__order_adjustment"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": ["model.shopify_source.stg_shopify__abandoned_checkout"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": ["model.shopify_source.stg_shopify__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": ["model.shopify_source.stg_shopify__collection"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": ["model.shopify_source.stg_shopify__collection"], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": ["model.shopify_source.stg_shopify__inventory_item"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": ["model.shopify_source.stg_shopify__inventory_item"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": ["model.shopify_source.stg_shopify__inventory_level"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": ["model.shopify_source.stg_shopify__inventory_quantity"], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": ["model.shopify_source.stg_shopify__location"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": ["model.shopify_source.stg_shopify__location"], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": ["model.shopify_source.stg_shopify__media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": ["model.shopify_source.stg_shopify__media"], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": ["model.shopify_source.stg_shopify__media_image"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": ["model.shopify_source.stg_shopify__media_image"], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": ["model.shopify_source.stg_shopify__metafield"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": ["model.shopify_source.stg_shopify__metafield"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": ["model.shopify_source.stg_shopify__order_shipping_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": ["model.shopify_source.stg_shopify__order_shipping_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": ["model.shopify_source.stg_shopify__shop"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": ["model.shopify_source.stg_shopify__shop"], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": ["model.shopify_source.stg_shopify__tender_transaction"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": ["model.shopify_source.stg_shopify__tender_transaction"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": ["model.shopify_source.stg_shopify__fulfillment_event"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": ["model.shopify_source.stg_shopify__fulfillment_event"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": ["model.shopify_source.stg_shopify__tax_line"], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": ["model.shopify_source.stg_shopify__discount_code_app"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": ["model.shopify_source.stg_shopify__discount_code_app"], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": ["model.shopify_source.stg_shopify__discount_code_basic"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": ["model.shopify_source.stg_shopify__discount_code_basic"], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": ["model.shopify_source.stg_shopify__discount_redeem_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": ["model.shopify_source.stg_shopify__discount_redeem_code"], "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": ["model.shopify_source.stg_shopify_gql__customer"], "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": ["model.shopify_source.stg_shopify_gql__customer"], "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": ["model.shopify_source.stg_shopify_gql__order"], "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": ["model.shopify_source.stg_shopify_gql__order"], "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": ["model.shopify_source.stg_shopify_gql__order_line"], "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": ["model.shopify_source.stg_shopify_gql__order_line"], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": ["model.shopify_source.stg_shopify_gql__product"], "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": ["model.shopify_source.stg_shopify_gql__product"], "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": ["model.shopify_source.stg_shopify_gql__product_variant"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": ["model.shopify_source.stg_shopify_gql__product_variant"], "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": ["model.shopify_source.stg_shopify_gql__refund"], "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": ["model.shopify_source.stg_shopify_gql__refund"], "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": ["model.shopify_source.stg_shopify_gql__tax_line"], "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": ["model.shopify_source.stg_shopify_gql__tax_line"], "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": ["model.shopify_source.stg_shopify_gql__transaction"], "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": ["model.shopify_source.stg_shopify_gql__transaction"], "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": ["model.shopify_source.stg_shopify_gql__customer_visit"], "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": ["model.shopify_source.stg_shopify_gql__customer_visit"], "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": [], "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": [], "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": ["model.shopify_source.stg_shopify_gql__customer_address"], "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": ["model.shopify_source.stg_shopify_gql__customer_address"], "source.shopify_source.shopify.order": [], "source.shopify_source.shopify.customer": [], "source.shopify_source.shopify.order_line": [], "source.shopify_source.shopify.order_line_refund": [], "source.shopify_source.shopify.product": [], "source.shopify_source.shopify.product_variant": [], "source.shopify_source.shopify.transaction": [], "source.shopify_source.shopify.refund": [], "source.shopify_source.shopify.order_adjustment": [], "source.shopify_source.shopify.abandoned_checkout": [], "source.shopify_source.shopify.collection_product": [], "source.shopify_source.shopify.collection": [], "source.shopify_source.shopify.customer_tag": [], "source.shopify_source.shopify.fulfillment": [], "source.shopify_source.shopify.inventory_item": [], "source.shopify_source.shopify.inventory_level": [], "source.shopify_source.shopify.inventory_quantity": [], "source.shopify_source.shopify.location": [], "source.shopify_source.shopify.metafield": [], "source.shopify_source.shopify.order_note_attribute": [], "source.shopify_source.shopify.order_shipping_line": [], "source.shopify_source.shopify.order_shipping_tax_line": [], "source.shopify_source.shopify.order_tag": [], "source.shopify_source.shopify.order_url_tag": [], "source.shopify_source.shopify.media": [], "source.shopify_source.shopify.media_image": [], "source.shopify_source.shopify.product_media": [], "source.shopify_source.shopify.product_variant_media": [], "source.shopify_source.shopify.product_tag": [], "source.shopify_source.shopify.shop": [], "source.shopify_source.shopify.tender_transaction": [], "source.shopify_source.shopify.abandoned_checkout_discount_code": [], "source.shopify_source.shopify.order_discount_code": [], "source.shopify_source.shopify.abandoned_checkout_shipping_line": [], "source.shopify_source.shopify.fulfillment_event": [], "source.shopify_source.shopify.tax_line": [], "source.shopify_source.shopify.discount_allocation": [], "source.shopify_source.shopify.discount_application": [], "source.shopify_source.shopify.discount_code_app": [], "source.shopify_source.shopify.discount_code_basic": [], "source.shopify_source.shopify.discount_code_bxgy": [], "source.shopify_source.shopify.discount_code_free_shipping": [], "source.shopify_source.shopify.discount_redeem_code": [], "source.shopify_source.shopify_graphql.order": [], "source.shopify_source.shopify_graphql.customer": [], "source.shopify_source.shopify_graphql.order_line": [], "source.shopify_source.shopify_graphql.order_line_refund": [], "source.shopify_source.shopify_graphql.product": [], "source.shopify_source.shopify_graphql.product_variant": [], "source.shopify_source.shopify_graphql.transaction": [], "source.shopify_source.shopify_graphql.refund": [], "source.shopify_source.shopify_graphql.order_adjustment": [], "source.shopify_source.shopify_graphql.abandoned_checkout": [], "source.shopify_source.shopify_graphql.collection_product": [], "source.shopify_source.shopify_graphql.collection": [], "source.shopify_source.shopify_graphql.customer_tag": [], "source.shopify_source.shopify_graphql.fulfillment": [], "source.shopify_source.shopify_graphql.inventory_item": [], "source.shopify_source.shopify_graphql.inventory_level": [], "source.shopify_source.shopify_graphql.inventory_quantity": [], "source.shopify_source.shopify_graphql.location": [], "source.shopify_source.shopify_graphql.metafield": [], "source.shopify_source.shopify_graphql.order_note_attribute": [], "source.shopify_source.shopify_graphql.order_shipping_line": [], "source.shopify_source.shopify_graphql.order_shipping_tax_line": [], "source.shopify_source.shopify_graphql.order_tag": [], "source.shopify_source.shopify_graphql.media": [], "source.shopify_source.shopify_graphql.media_image": [], "source.shopify_source.shopify_graphql.product_media": [], "source.shopify_source.shopify_graphql.product_variant_media": [], "source.shopify_source.shopify_graphql.product_tag": [], "source.shopify_source.shopify_graphql.shop": [], "source.shopify_source.shopify_graphql.tender_transaction": [], "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": [], "source.shopify_source.shopify_graphql.order_discount_code": [], "source.shopify_source.shopify_graphql.fulfillment_event": [], "source.shopify_source.shopify_graphql.tax_line": [], "source.shopify_source.shopify_graphql.discount_allocation": [], "source.shopify_source.shopify_graphql.discount_application": [], "source.shopify_source.shopify_graphql.discount_code_app": [], "source.shopify_source.shopify_graphql.discount_code_basic": [], "source.shopify_source.shopify_graphql.discount_code_bxgy": [], "source.shopify_source.shopify_graphql.discount_code_free_shipping": [], "source.shopify_source.shopify_graphql.discount_redeem_code": [], "source.shopify_source.shopify_graphql.fulfillment_tracking_info": [], "source.shopify_source.shopify_graphql.customer_visit": [], "source.shopify_source.shopify_graphql.fulfillment_order_line_item": [], "source.shopify_source.shopify_graphql.customer_address": []}, "child_map": {"seed.shopify_integration_tests.shopify_gql_product_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_metafield_data": [], "seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_product_data": [], "seed.shopify_integration_tests.shopify_gql_customer_address_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_customer_data": [], "seed.shopify_integration_tests.shopify_gql_customer_visit_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_media_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_gql_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_data": [], "seed.shopify_integration_tests.shopify_gql_order_data": [], "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_refund_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_gql_collection_rule_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_item_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_gql_location_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_gql_shop_data": [], "seed.shopify_integration_tests.shopify_gql_customer_tag_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_collection_data": [], "seed.shopify_integration_tests.shopify_gql_discount_application_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_level_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_media_image_data": [], "model.shopify.shopify__calendar": ["model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "model.shopify.shopify__daily_shop", "model.shopify.shopify_gql__customer_cohorts", "model.shopify.shopify_gql__customer_email_cohorts", "model.shopify.shopify_gql__daily_shop"], "model.shopify.shopify__customer_cohorts": ["test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a"], "model.shopify.shopify__customer_email_cohorts": ["test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182"], "model.shopify.shopify__inventory_levels": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606", "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0"], "model.shopify.shopify__discounts": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f", "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f"], "model.shopify.shopify__customers": ["model.shopify.shopify__customer_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469"], "model.shopify.shopify__orders": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51"], "model.shopify.shopify__transactions": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981"], "model.shopify.shopify__order_lines": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__product__order_line_aggregates", "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e"], "model.shopify.shopify__products": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a"], "model.shopify.shopify__daily_shop": ["test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f"], "model.shopify.shopify__customer_emails": ["model.shopify.shopify__customer_email_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__inventory_levels", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__products", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify.shopify__products", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify.shopify__discounts"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__orders", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify.shopify__customer_emails", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda"], "model.shopify.shopify__orders__order_refunds": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify.shopify__discounts", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__customer_emails", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a"], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__discounts", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__customers", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9"], "model.shopify.shopify__product_variant_metafields": [], "model.shopify.shopify__order_metafields": [], "model.shopify.shopify__product_metafields": [], "model.shopify.shopify__customer_metafields": [], "model.shopify.shopify__shop_metafields": [], "model.shopify.shopify__collection_metafields": [], "model.shopify.shopify__line_item_enhanced": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae"], "model.shopify.shopify_gql__customer_email_cohorts": ["test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f", "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27"], "model.shopify.shopify_gql__customers": ["model.shopify.shopify_gql__customer_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171"], "model.shopify.shopify_gql__order_lines": ["model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__product_order_line_aggregates", "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db", "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4"], "model.shopify.shopify_gql__transactions": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d", "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c"], "model.shopify.shopify_gql__customer_cohorts": ["test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2", "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c"], "model.shopify.shopify_gql__discounts": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92", "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264", "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994", "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5"], "model.shopify.shopify_gql__inventory_levels": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b", "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957", "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e"], "model.shopify.shopify_gql__customer_emails": ["model.shopify.shopify_gql__customer_email_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003"], "model.shopify.shopify_gql__daily_shop": ["test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8"], "model.shopify.shopify_gql__products": ["test.shopify.not_null_shopify_gql__products_unique_key.4982d88497", "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326"], "model.shopify.shopify_gql__orders": ["model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.int_shopify_gql__product_order_line_aggregates", "model.shopify.shopify_gql__customer_cohorts", "model.shopify.shopify_gql__customer_email_cohorts", "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041", "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077"], "model.shopify.int_shopify_gql__discount_code_enriched": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__products_with_aggregates": ["model.shopify.shopify_gql__products"], "model.shopify.int_shopify_gql__customers_order_aggregates": ["model.shopify.shopify_gql__customers"], "model.shopify.int_shopify_gql__daily_orders": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__emails_order_aggregates": ["model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__order_shipping_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__line_item_enhanced"], "model.shopify.int_shopify_gql__order_fulfillment_aggregates": ["model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__product_order_line_aggregates": ["model.shopify.shopify_gql__products"], "model.shopify.int_shopify_gql__orders_order_line_aggregates": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__discounts_order_aggregates": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__daily_fulfillment": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__customer_email_rollup": ["model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__orders_order_refunds": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__daily_abandoned_checkouts": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__inventory_level_aggregates": ["model.shopify.shopify_gql__inventory_levels"], "model.shopify.int_shopify_gql__order_adjustment": ["model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__order_discount_code": ["model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__order": ["model.shopify.shopify_gql__order_metafields", "model.shopify.shopify_gql__orders", "model.shopify.shopify_gql__transactions"], "model.shopify.int_shopify_gql__product_variant": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__product_variant_metafields"], "model.shopify.int_shopify_gql__collection": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__collection_metafields"], "model.shopify.int_shopify_gql__abandoned_checkout": ["model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__customer": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.shopify_gql__customer_metafields", "model.shopify.shopify_gql__customers"], "model.shopify.int_shopify_gql__order_line": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.shopify_gql__order_lines"], "model.shopify.shopify_gql__product_metafields": [], "model.shopify.shopify_gql__collection_metafields": [], "model.shopify.shopify_gql__customer_metafields": [], "model.shopify.shopify_gql__shop_metafields": [], "model.shopify.shopify_gql__order_metafields": [], "model.shopify.shopify_gql__product_variant_metafields": [], "model.shopify.shopify_gql__line_item_enhanced": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933", "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613"], "model.shopify_source.stg_shopify__discount_allocation": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300", "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330"], "model.shopify_source.stg_shopify__order": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_metafields", "model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1"], "model.shopify_source.stg_shopify__transaction": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__transactions", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5", "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__orders", "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a", "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e"], "model.shopify_source.stg_shopify__metafield": ["model.shopify.shopify__collection_metafields", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__order_metafields", "model.shopify.shopify__product_metafields", "model.shopify.shopify__product_variant_metafields", "model.shopify.shopify__shop_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca", "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7", "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify.shopify__transactions", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b", "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295"], "model.shopify_source.stg_shopify__shop": ["model.shopify.shopify__daily_shop", "model.shopify.shopify__shop_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415", "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c", "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb"], "model.shopify_source.stg_shopify__customer": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__customers", "model.shopify.shopify__line_item_enhanced", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84", "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe"], "model.shopify_source.stg_shopify__collection": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__collection_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878", "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0"], "model.shopify_source.stg_shopify__media": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f", "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c", "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc", "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "model.shopify.shopify__product_variant_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26", "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d"], "model.shopify_source.stg_shopify__media_image": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5", "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b"], "model.shopify_source.stg_shopify__order_line": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032", "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify.int_shopify__daily_fulfillment", "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a"], "model.shopify_source.stg_shopify__order_note_attribute": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0", "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_refunds", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29"], "model.shopify_source.stg_shopify__refund": ["model.shopify.shopify__orders__order_refunds", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.shopify__customers", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f", "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd"], "model.shopify_source.stg_shopify__product": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__product_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07", "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6"], "model.shopify_source.stg_shopify__location": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9", "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf", "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1"], "model.shopify_source.stg_shopify__product_media": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea", "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19", "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.shopify__customer_emails", "model.shopify.shopify__customers", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c", "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify.int_shopify__discounts__abandoned_checkouts", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify.int_shopify__discounts__abandoned_checkouts", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e", "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1"], "model.shopify_source.stg_shopify__metafield_tmp": ["model.shopify_source.stg_shopify__metafield"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["model.shopify_source.stg_shopify__fulfillment"], "model.shopify_source.stg_shopify__product_variant_tmp": ["model.shopify_source.stg_shopify__product_variant"], "model.shopify_source.stg_shopify__collection_tmp": ["model.shopify_source.stg_shopify__collection"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["model.shopify_source.stg_shopify__order_discount_code"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["model.shopify_source.stg_shopify__order_url_tag"], "model.shopify_source.stg_shopify__product_tmp": ["model.shopify_source.stg_shopify__product"], "model.shopify_source.stg_shopify__order_tag_tmp": ["model.shopify_source.stg_shopify__order_tag"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["model.shopify_source.stg_shopify__inventory_quantity"], "model.shopify_source.stg_shopify__tax_line_tmp": ["model.shopify_source.stg_shopify__tax_line"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["model.shopify_source.stg_shopify__customer_tag"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["model.shopify_source.stg_shopify__discount_allocation"], "model.shopify_source.stg_shopify__media_image_tmp": ["model.shopify_source.stg_shopify__media_image"], "model.shopify_source.stg_shopify__media_tmp": ["model.shopify_source.stg_shopify__media"], "model.shopify_source.stg_shopify__refund_tmp": ["model.shopify_source.stg_shopify__refund"], "model.shopify_source.stg_shopify__location_tmp": ["model.shopify_source.stg_shopify__location"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["model.shopify_source.stg_shopify__inventory_level"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_line"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["model.shopify_source.stg_shopify__order_line_refund"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["model.shopify_source.stg_shopify__discount_code_app"], "model.shopify_source.stg_shopify__shop_tmp": ["model.shopify_source.stg_shopify__shop"], "model.shopify_source.stg_shopify__transaction_tmp": ["model.shopify_source.stg_shopify__transaction"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["model.shopify_source.stg_shopify__product_variant_media"], "model.shopify_source.stg_shopify__order_line_tmp": ["model.shopify_source.stg_shopify__order_line"], "model.shopify_source.stg_shopify__product_media_tmp": ["model.shopify_source.stg_shopify__product_media"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["model.shopify_source.stg_shopify__discount_code_basic"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["model.shopify_source.stg_shopify__order_note_attribute"], "model.shopify_source.stg_shopify__discount_application_tmp": ["model.shopify_source.stg_shopify__discount_application"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["model.shopify_source.stg_shopify__tender_transaction"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "model.shopify_source.stg_shopify__product_tag_tmp": ["model.shopify_source.stg_shopify__product_tag"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["model.shopify_source.stg_shopify__inventory_item"], "model.shopify_source.stg_shopify__order_tmp": ["model.shopify_source.stg_shopify__order"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify_source.stg_shopify__customer_tmp": ["model.shopify_source.stg_shopify__customer"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["model.shopify_source.stg_shopify__order_adjustment"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__collection_product_tmp": ["model.shopify_source.stg_shopify__collection_product"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify_source.stg_shopify_gql__media": ["test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a", "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac", "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989"], "model.shopify_source.stg_shopify_gql__customer_visit": ["model.shopify.int_shopify_gql__order", "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89", "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2"], "model.shopify_source.stg_shopify_gql__discount_code_app": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2", "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c", "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981"], "model.shopify_source.stg_shopify_gql__customer_tag": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.shopify_gql__customers", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8", "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740"], "model.shopify_source.stg_shopify_gql__order": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.int_shopify_gql__order", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b", "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36"], "model.shopify_source.stg_shopify_gql__order_line": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43", "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85"], "model.shopify_source.stg_shopify_gql__inventory_item": ["model.shopify.int_shopify_gql__product_variant", "model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8", "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91", "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8", "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": ["model.shopify.int_shopify_gql__order_line", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c", "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12"], "model.shopify_source.stg_shopify_gql__order_shipping_line": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd", "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478"], "model.shopify_source.stg_shopify_gql__product": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__inventory_levels", "model.shopify.shopify_gql__line_item_enhanced", "model.shopify.shopify_gql__product_metafields", "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb", "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a"], "model.shopify_source.stg_shopify_gql__fulfillment": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a", "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578"], "model.shopify_source.stg_shopify_gql__discount_allocation": ["test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a", "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e", "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04", "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685"], "model.shopify_source.stg_shopify_gql__tax_line": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173", "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33"], "model.shopify_source.stg_shopify_gql__order_line_refund": ["model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e", "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20"], "model.shopify_source.stg_shopify_gql__inventory_level": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd", "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd", "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570"], "model.shopify_source.stg_shopify_gql__shop": ["model.shopify.shopify_gql__daily_shop", "model.shopify.shopify_gql__shop_metafields", "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531", "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075", "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": ["model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398", "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76"], "model.shopify_source.stg_shopify_gql__location": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be", "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03", "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e"], "model.shopify_source.stg_shopify_gql__transaction": ["model.shopify.shopify_gql__line_item_enhanced", "model.shopify.shopify_gql__transactions", "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb", "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd"], "model.shopify_source.stg_shopify_gql__product_media": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb", "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49", "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800", "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b"], "model.shopify_source.stg_shopify_gql__product_variant": ["model.shopify.int_shopify_gql__product_variant", "model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3", "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735"], "model.shopify_source.stg_shopify_gql__media_image": ["test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141", "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4", "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6"], "model.shopify_source.stg_shopify_gql__abandoned_checkout": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.shopify_gql__customers", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f", "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0"], "model.shopify_source.stg_shopify_gql__collection": ["model.shopify.int_shopify_gql__collection", "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6", "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87", "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e"], "model.shopify_source.stg_shopify_gql__refund": ["model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__orders_order_refunds", "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a", "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c"], "model.shopify_source.stg_shopify_gql__discount_application": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.int_shopify_gql__order_discount_code", "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4", "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0", "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af", "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": ["model.shopify.int_shopify_gql__order_fulfillment_aggregates", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8", "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e"], "model.shopify_source.stg_shopify_gql__order_discount_code": ["model.shopify.int_shopify_gql__order_discount_code", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8", "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7"], "model.shopify_source.stg_shopify_gql__discount_code_basic": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc", "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec", "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb"], "model.shopify_source.stg_shopify_gql__order_note_attribute": ["test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e", "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc", "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6", "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c"], "model.shopify_source.stg_shopify_gql__tender_transaction": ["model.shopify.shopify_gql__transactions", "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7", "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93", "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475"], "model.shopify_source.stg_shopify_gql__customer": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7", "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271"], "model.shopify_source.stg_shopify_gql__product_tag": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd", "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c", "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984", "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0"], "model.shopify_source.stg_shopify_gql__order_tag": ["model.shopify.shopify_gql__orders", "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661", "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290", "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479", "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461"], "model.shopify_source.stg_shopify_gql__metafield": ["model.shopify.shopify_gql__collection_metafields", "model.shopify.shopify_gql__customer_metafields", "model.shopify.shopify_gql__order_metafields", "model.shopify.shopify_gql__product_metafields", "model.shopify.shopify_gql__product_variant_metafields", "model.shopify.shopify_gql__shop_metafields", "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5", "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff", "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679"], "model.shopify_source.stg_shopify_gql__product_variant_media": ["model.shopify.shopify_gql__inventory_levels", "model.shopify.shopify_gql__order_lines", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae", "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894"], "model.shopify_source.stg_shopify_gql__collection_product": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16", "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3", "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67", "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066"], "model.shopify_source.stg_shopify_gql__inventory_quantity": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1", "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa"], "model.shopify_source.stg_shopify_gql__fulfillment_event": ["model.shopify.int_shopify_gql__daily_fulfillment", "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c", "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4", "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b", "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232"], "model.shopify_source.stg_shopify_gql__customer_address": ["model.shopify.int_shopify_gql__customer", "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c", "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04", "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565", "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089"], "model.shopify_source.stg_shopify_gql__order_adjustment": ["model.shopify.int_shopify_gql__order_adjustment", "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c", "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861"], "model.shopify_source.stg_shopify_gql__discount_redeem_code": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3", "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742", "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f"], "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "model.shopify_source.stg_shopify_gql__refund_tmp": ["model.shopify_source.stg_shopify_gql__refund"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "model.shopify_source.stg_shopify_gql__customer_tmp": ["model.shopify_source.stg_shopify_gql__customer"], "model.shopify_source.stg_shopify_gql__product_tmp": ["model.shopify_source.stg_shopify_gql__product"], "model.shopify_source.stg_shopify_gql__customer_visit_tmp": ["model.shopify_source.stg_shopify_gql__customer_visit"], "model.shopify_source.stg_shopify_gql__shop_tmp": ["model.shopify_source.stg_shopify_gql__shop"], "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "model.shopify_source.stg_shopify_gql__collection_tmp": ["model.shopify_source.stg_shopify_gql__collection"], "model.shopify_source.stg_shopify_gql__inventory_item_tmp": ["model.shopify_source.stg_shopify_gql__inventory_item"], "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "model.shopify_source.stg_shopify_gql__discount_application_tmp": ["model.shopify_source.stg_shopify_gql__discount_application"], "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "model.shopify_source.stg_shopify_gql__metafield_tmp": ["model.shopify_source.stg_shopify_gql__metafield"], "model.shopify_source.stg_shopify_gql__order_line_tmp": ["model.shopify_source.stg_shopify_gql__order_line"], "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "model.shopify_source.stg_shopify_gql__product_variant_tmp": ["model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify_source.stg_shopify_gql__order_tmp": ["model.shopify_source.stg_shopify_gql__order"], "model.shopify_source.stg_shopify_gql__location_tmp": ["model.shopify_source.stg_shopify_gql__location"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "model.shopify_source.stg_shopify_gql__tax_line_tmp": ["model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "model.shopify_source.stg_shopify_gql__collection_product_tmp": ["model.shopify_source.stg_shopify_gql__collection_product"], "model.shopify_source.stg_shopify_gql__fulfillment_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "model.shopify_source.stg_shopify_gql__order_tag_tmp": ["model.shopify_source.stg_shopify_gql__order_tag"], "model.shopify_source.stg_shopify_gql__product_media_tmp": ["model.shopify_source.stg_shopify_gql__product_media"], "model.shopify_source.stg_shopify_gql__media_image_tmp": ["model.shopify_source.stg_shopify_gql__media_image"], "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "model.shopify_source.stg_shopify_gql__media_tmp": ["model.shopify_source.stg_shopify_gql__media"], "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify_gql__inventory_level_tmp": ["model.shopify_source.stg_shopify_gql__inventory_level"], "model.shopify_source.stg_shopify_gql__customer_tag_tmp": ["model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "model.shopify_source.stg_shopify_gql__transaction_tmp": ["model.shopify_source.stg_shopify_gql__transaction"], "model.shopify_source.stg_shopify_gql__product_tag_tmp": ["model.shopify_source.stg_shopify_gql__product_tag"], "model.shopify_source.stg_shopify_gql__customer_address_tmp": ["model.shopify_source.stg_shopify_gql__customer_address"], "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": [], "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": [], "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": [], "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": [], "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": [], "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003": [], "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": [], "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": [], "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": [], "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": [], "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": [], "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": [], "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": [], "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b": [], "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": [], "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": [], "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92": [], "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": [], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": [], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": [], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": [], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": [], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": [], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": [], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": [], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": [], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": [], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": [], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": [], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": [], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": [], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": [], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": [], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": [], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": [], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": [], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": [], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": [], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": [], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": [], "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": [], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": [], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": [], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": [], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": [], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": [], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": [], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": [], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": [], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": [], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": [], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": [], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": [], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": [], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": [], "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": [], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": [], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": [], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": [], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": [], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": [], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": [], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": [], "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": [], "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": [], "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": [], "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": [], "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": [], "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": [], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": [], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": [], "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": [], "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": [], "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": [], "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": [], "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": [], "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": [], "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": [], "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": [], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": [], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": [], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": [], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": [], "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": [], "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd": [], "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": [], "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": [], "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": [], "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": [], "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": [], "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": [], "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": [], "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": [], "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": [], "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": [], "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": [], "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": [], "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": [], "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": [], "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": [], "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": [], "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": [], "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": [], "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": [], "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": [], "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": [], "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": [], "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": [], "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": [], "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": [], "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": [], "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": [], "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": [], "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": [], "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": [], "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": [], "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": [], "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": [], "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": [], "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": [], "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": [], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": [], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": [], "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": [], "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": [], "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": [], "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": [], "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": [], "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": [], "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": [], "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": [], "source.shopify_source.shopify.order": ["model.shopify_source.stg_shopify__order_tmp"], "source.shopify_source.shopify.customer": ["model.shopify_source.stg_shopify__customer_tmp"], "source.shopify_source.shopify.order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "source.shopify_source.shopify.order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "source.shopify_source.shopify.product": ["model.shopify_source.stg_shopify__product_tmp"], "source.shopify_source.shopify.product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "source.shopify_source.shopify.transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "source.shopify_source.shopify.refund": ["model.shopify_source.stg_shopify__refund_tmp"], "source.shopify_source.shopify.order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "source.shopify_source.shopify.abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "source.shopify_source.shopify.collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "source.shopify_source.shopify.collection": ["model.shopify_source.stg_shopify__collection_tmp"], "source.shopify_source.shopify.customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "source.shopify_source.shopify.fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "source.shopify_source.shopify.inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "source.shopify_source.shopify.inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "source.shopify_source.shopify.inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "source.shopify_source.shopify.location": ["model.shopify_source.stg_shopify__location_tmp"], "source.shopify_source.shopify.metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "source.shopify_source.shopify.order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "source.shopify_source.shopify.order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "source.shopify_source.shopify.order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "source.shopify_source.shopify.order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "source.shopify_source.shopify.order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "source.shopify_source.shopify.media": ["model.shopify_source.stg_shopify__media_tmp"], "source.shopify_source.shopify.media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "source.shopify_source.shopify.product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "source.shopify_source.shopify.product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "source.shopify_source.shopify.product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "source.shopify_source.shopify.shop": ["model.shopify_source.stg_shopify__shop_tmp"], "source.shopify_source.shopify.tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "source.shopify_source.shopify.abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "source.shopify_source.shopify.order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "source.shopify_source.shopify.abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "source.shopify_source.shopify.fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "source.shopify_source.shopify.tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "source.shopify_source.shopify.discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "source.shopify_source.shopify.discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "source.shopify_source.shopify.discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "source.shopify_source.shopify.discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "source.shopify_source.shopify.discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "source.shopify_source.shopify.discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "source.shopify_source.shopify.discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"], "source.shopify_source.shopify_graphql.order": ["model.shopify_source.stg_shopify_gql__order_tmp"], "source.shopify_source.shopify_graphql.customer": ["model.shopify_source.stg_shopify_gql__customer_tmp"], "source.shopify_source.shopify_graphql.order_line": ["model.shopify_source.stg_shopify_gql__order_line_tmp"], "source.shopify_source.shopify_graphql.order_line_refund": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"], "source.shopify_source.shopify_graphql.product": ["model.shopify_source.stg_shopify_gql__product_tmp"], "source.shopify_source.shopify_graphql.product_variant": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"], "source.shopify_source.shopify_graphql.transaction": ["model.shopify_source.stg_shopify_gql__transaction_tmp"], "source.shopify_source.shopify_graphql.refund": ["model.shopify_source.stg_shopify_gql__refund_tmp"], "source.shopify_source.shopify_graphql.order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"], "source.shopify_source.shopify_graphql.abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"], "source.shopify_source.shopify_graphql.collection_product": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"], "source.shopify_source.shopify_graphql.collection": ["model.shopify_source.stg_shopify_gql__collection_tmp"], "source.shopify_source.shopify_graphql.customer_tag": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"], "source.shopify_source.shopify_graphql.fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"], "source.shopify_source.shopify_graphql.inventory_item": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"], "source.shopify_source.shopify_graphql.inventory_level": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"], "source.shopify_source.shopify_graphql.inventory_quantity": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"], "source.shopify_source.shopify_graphql.location": ["model.shopify_source.stg_shopify_gql__location_tmp"], "source.shopify_source.shopify_graphql.metafield": ["model.shopify_source.stg_shopify_gql__metafield_tmp"], "source.shopify_source.shopify_graphql.order_note_attribute": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"], "source.shopify_source.shopify_graphql.order_shipping_line": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"], "source.shopify_source.shopify_graphql.order_shipping_tax_line": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"], "source.shopify_source.shopify_graphql.order_tag": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"], "source.shopify_source.shopify_graphql.media": ["model.shopify_source.stg_shopify_gql__media_tmp"], "source.shopify_source.shopify_graphql.media_image": ["model.shopify_source.stg_shopify_gql__media_image_tmp"], "source.shopify_source.shopify_graphql.product_media": ["model.shopify_source.stg_shopify_gql__product_media_tmp"], "source.shopify_source.shopify_graphql.product_variant_media": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"], "source.shopify_source.shopify_graphql.product_tag": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"], "source.shopify_source.shopify_graphql.shop": ["model.shopify_source.stg_shopify_gql__shop_tmp"], "source.shopify_source.shopify_graphql.tender_transaction": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"], "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "source.shopify_source.shopify_graphql.order_discount_code": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"], "source.shopify_source.shopify_graphql.fulfillment_event": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"], "source.shopify_source.shopify_graphql.tax_line": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"], "source.shopify_source.shopify_graphql.discount_allocation": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"], "source.shopify_source.shopify_graphql.discount_application": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"], "source.shopify_source.shopify_graphql.discount_code_app": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"], "source.shopify_source.shopify_graphql.discount_code_basic": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"], "source.shopify_source.shopify_graphql.discount_code_bxgy": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"], "source.shopify_source.shopify_graphql.discount_code_free_shipping": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"], "source.shopify_source.shopify_graphql.discount_redeem_code": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"], "source.shopify_source.shopify_graphql.fulfillment_tracking_info": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"], "source.shopify_source.shopify_graphql.customer_visit": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"], "source.shopify_source.shopify_graphql.fulfillment_order_line_item": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"], "source.shopify_source.shopify_graphql.customer_address": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}, "unit_tests": {}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v12.json", "dbt_version": "1.10.6", "generated_at": "2025-08-07T19:36:45.298036Z", "invocation_id": "0464ca02-c0b9-4ac6-ab83-2d1523af5822", "invocation_started_at": "2025-08-07T19:36:13.489522+00:00", "env": {}, "project_name": "shopify_integration_tests", "project_id": "c39719ba3d679fd569bed21921e72e32", "user_id": null, "send_anonymous_usage_stats": false, "adapter_type": "postgres", "quoting": {"database": true, "schema": true, "identifier": true, "column": null}}, "nodes": {"seed.shopify_integration_tests.shopify_gql_product_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_tag_data.csv", "original_file_path": "seeds/shopify_gql_product_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_tag_data"], "alias": "shopify_gql_product_tag_data", "checksum": {"name": "sha256", "checksum": "8c043c435f2de4a4004471419a272adaf066c1e9e36fa2e9de62a6562d4d2e26"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595376.9467578, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_event_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_event_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_event_data"], "alias": "shopify_gql_fulfillment_event_data", "checksum": {"name": "sha256", "checksum": "c8df472434961ad12566344da5a47483bd18c4b9cb7b5eafd44f96f284aaebea"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595376.9542346, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_metafield_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_metafield_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_metafield_data.csv", "original_file_path": "seeds/shopify_gql_metafield_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_metafield_data", "fqn": ["shopify_integration_tests", "shopify_gql_metafield_data"], "alias": "shopify_gql_metafield_data", "checksum": {"name": "sha256", "checksum": "b698e66e6a1d23c772fe5d1c36943dd9e5be8609f08b7f0990b1c20417e3f4d1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595376.9573913, "relation_name": "\"postgres\".\"public\".\"shopify_gql_metafield_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_basic_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_basic_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_basic_data.csv", "original_file_path": "seeds/shopify_discount_code_basic_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_basic_data"], "alias": "shopify_discount_code_basic_data", "checksum": {"name": "sha256", "checksum": "dc25a6ca420db34e1ce13e0749f1e65e949cef3a260c736e1eb6e53b7db15ace"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1754595376.960803, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_order_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_discount_code_data.csv", "original_file_path": "seeds/shopify_order_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_order_discount_code_data"], "alias": "shopify_order_discount_code_data", "checksum": {"name": "sha256", "checksum": "f4e391a3f00ebb1f7444487e4577dc95e28c39745e40f6c0fcb1bd90562833f6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"order_id": "bigint", "amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float"}}, "created_at": 1754595376.9643784, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_data": {"database": "postgres", "schema": "public", "name": "shopify_order_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_data.csv", "original_file_path": "seeds/shopify_order_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_data", "fqn": ["shopify_integration_tests", "shopify_order_data"], "alias": "shopify_order_data", "checksum": {"name": "sha256", "checksum": "274aec2c5b1f7cd936359683f33c830d2ef7067e6e445469df0c3b460ad9d56c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "bigint", "customer_id": "bigint", "location_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754595376.9676898, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_basic_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_basic_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_basic_data"], "alias": "shopify_gql_discount_code_basic_data", "checksum": {"name": "sha256", "checksum": "d42fbb32c0fcf3c168a45013a7a5c9b9e9c8871e7b2079d5973741f88543c079"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"total_sales_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"total_sales_amount": "float"}}, "created_at": 1754595376.9709182, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_line_data.csv", "original_file_path": "seeds/shopify_gql_order_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_line_data"], "alias": "shopify_gql_order_line_data", "checksum": {"name": "sha256", "checksum": "c4ef70509cf12a7e963b4427bd4ecaf67fa4597191c62bd6da8844e0c448a3ef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595376.9740229, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_tag_data.csv", "original_file_path": "seeds/shopify_order_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_tag_data"], "alias": "shopify_order_tag_data", "checksum": {"name": "sha256", "checksum": "c448adfe655f83dcaf6370ad2ef36f0ad6991c1b6d001e3aab317fd17359b129"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595376.9771574, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_tracking_info_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_tracking_info_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_tracking_info_data"], "alias": "shopify_gql_fulfillment_tracking_info_data", "checksum": {"name": "sha256", "checksum": "0ce5041eae13306e77b2f03c364a8e5767be39e68e711fbb1b76709e51191b12"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595376.9802463, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_redeem_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_redeem_code_data.csv", "original_file_path": "seeds/shopify_discount_redeem_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_redeem_code_data", "fqn": ["shopify_integration_tests", "shopify_discount_redeem_code_data"], "alias": "shopify_discount_redeem_code_data", "checksum": {"name": "sha256", "checksum": "801a010544f98b358371e38d9af1023f4e91747d6f4e488c5a65358794bc3ab5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "discount_id": "bigint", "created_by_id": "bigint", "async_usage_count": "integer", "code": "varchar", "discount_type": "varchar", "created_by_description": "varchar", "created_by_title": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "created_by_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "async_usage_count": "integer", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754595376.983488, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_application_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_application_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_application_data.csv", "original_file_path": "seeds/shopify_discount_application_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data", "fqn": ["shopify_integration_tests", "shopify_discount_application_data"], "alias": "shopify_discount_application_data", "checksum": {"name": "sha256", "checksum": "9d678050ac7442f36d8aa9a5b0b013aeea7ab64a785a564a31aa41fa6a6ee70a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"allocation_method": "varchar", "code": "varchar", "description": "varchar", "index": "integer", "order_id": "bigint", "target_selection": "varchar", "target_type": "varchar", "title": "varchar", "type": "varchar", "value": "float", "value_type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"allocation_method": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "index": "integer", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "target_selection": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "target_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "value": "float", "value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754595376.986864, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_data.csv", "original_file_path": "seeds/shopify_gql_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_data"], "alias": "shopify_gql_product_data", "checksum": {"name": "sha256", "checksum": "5c3d5008de7c87b129567ced494177bc809a49587033e462e8e099dfe3c02662"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595376.990127, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_address_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_address_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_address_data.csv", "original_file_path": "seeds/shopify_gql_customer_address_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_address_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_address_data"], "alias": "shopify_gql_customer_address_data", "checksum": {"name": "sha256", "checksum": "55643b705646db36fbaeb65e2786f9981acc20dbcd95996c0ee31afacef123b6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754595376.993266, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_free_shipping_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_free_shipping_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_free_shipping_data"], "alias": "shopify_gql_discount_code_free_shipping_data", "checksum": {"name": "sha256", "checksum": "0d9313224e67ae163a3b90d05629775d330a68deef8c6826316ffa88d75254a2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595376.9963589, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_refund_data.csv", "original_file_path": "seeds/shopify_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_refund_data", "fqn": ["shopify_integration_tests", "shopify_refund_data"], "alias": "shopify_refund_data", "checksum": {"name": "sha256", "checksum": "8d8bc98681d9b0d57a43af3fc99ff13cc42401d97e49bba41c1fafb28f858d23"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754595376.9994538, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_product_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_product_data.csv", "original_file_path": "seeds/shopify_collection_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data", "fqn": ["shopify_integration_tests", "shopify_collection_product_data"], "alias": "shopify_collection_product_data", "checksum": {"name": "sha256", "checksum": "f0829ff9b0c3116846c83d4cb2dfae170594e230d3586b8abae97a31d4a51c55"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.0025365, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_abandoned_checkout_discount_code_data.csv", "original_file_path": "seeds/shopify_gql_abandoned_checkout_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_abandoned_checkout_discount_code_data"], "alias": "shopify_gql_abandoned_checkout_discount_code_data", "checksum": {"name": "sha256", "checksum": "90c5089352dfe1ea90e277813ae7824053992fa838896d4d55130c1ca0e51b82"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.0056493, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_shipping_tax_line_data.csv", "original_file_path": "seeds/shopify_gql_order_shipping_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_shipping_tax_line_data"], "alias": "shopify_gql_order_shipping_tax_line_data", "checksum": {"name": "sha256", "checksum": "4c0d33725e1979f861188e46f54626db2fa5d1dc12a23b6dec4d67b2617e8493"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.0086966, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_data.csv", "original_file_path": "seeds/shopify_customer_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_data", "fqn": ["shopify_integration_tests", "shopify_customer_data"], "alias": "shopify_customer_data", "checksum": {"name": "sha256", "checksum": "72ba9c7141e483ec3a8715cb27d57c8e36f8ca293b0a507676391c8804c717f2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint", "default_address_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "default_address_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754595377.0118504, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_media_data.csv", "original_file_path": "seeds/shopify_product_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_media_data", "fqn": ["shopify_integration_tests", "shopify_product_media_data"], "alias": "shopify_product_media_data", "checksum": {"name": "sha256", "checksum": "b38d774b588961b4cd6e5b8cdb9c0319dd694bcdd474a54a68e062b3cf488d44"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754595377.0150456, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_tax_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_tax_line_data"], "alias": "shopify_order_shipping_tax_line_data", "checksum": {"name": "sha256", "checksum": "279d995731cd3b85aa948f6721ada5f455324347f7ac3211a98bf2f3bb72f899"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float"}}, "created_at": 1754595377.0182893, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_image_data": {"database": "postgres", "schema": "public", "name": "shopify_media_image_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_image_data.csv", "original_file_path": "seeds/shopify_media_image_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_image_data", "fqn": ["shopify_integration_tests", "shopify_media_image_data"], "alias": "shopify_media_image_data", "checksum": {"name": "sha256", "checksum": "98621ab1fd6334df5ffa045d9642644d5e465d8684cd635dd5bf8c157f964966"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"media_id": "bigint", "image_id": "bigint", "image_alt_text": "varchar", "image_height": "integer", "image_url": "varchar", "image_width": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_alt_text": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_height": "integer", "image_url": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_width": "integer"}}, "created_at": 1754595377.0216691, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_allocation_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_allocation_data.csv", "original_file_path": "seeds/shopify_gql_discount_allocation_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_allocation_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_allocation_data"], "alias": "shopify_gql_discount_allocation_data", "checksum": {"name": "sha256", "checksum": "66070d7edfd03f95cce45261aff8868c52ac272d23457e8b00d31f89bee13bb2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.0247743, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_data": {"database": "postgres", "schema": "public", "name": "shopify_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_data.csv", "original_file_path": "seeds/shopify_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_data", "fqn": ["shopify_integration_tests", "shopify_product_data"], "alias": "shopify_product_data", "checksum": {"name": "sha256", "checksum": "e3e37227f60cd1960dc29421bf94785a59c058e4b6a4cd01262376f34947e320"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754595377.0278976, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_refund_data.csv", "original_file_path": "seeds/shopify_order_line_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data", "fqn": ["shopify_integration_tests", "shopify_order_line_refund_data"], "alias": "shopify_order_line_refund_data", "checksum": {"name": "sha256", "checksum": "5d28c17ac30b49f32cb92c5ade7643c3322d0a18e38094140cf06ace9fc85e72"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "id": "bigint", "location_id": "bigint", "refund_id": "bigint", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754595377.0311317, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_item_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_item_data.csv", "original_file_path": "seeds/shopify_inventory_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data", "fqn": ["shopify_integration_tests", "shopify_inventory_item_data"], "alias": "shopify_inventory_item_data", "checksum": {"name": "sha256", "checksum": "11076fbaaf5cb0b1a1cdfdcb8520fc3c6049ef627ff305251d40f1e562dfcd52"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "measurement_id": "bigint", "legacy_resource_id": "bigint", "updated_at": "timestamp", "created_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "measurement_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "updated_at": "timestamp", "created_at": "timestamp"}}, "created_at": 1754595377.0344677, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_data.csv", "original_file_path": "seeds/shopify_gql_customer_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_data"], "alias": "shopify_gql_customer_data", "checksum": {"name": "sha256", "checksum": "ccd33f05c9942cd47dc7bf8abef925334aa740a60181b9ce13657323fe63267d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754595377.0376518, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_visit_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_visit_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_visit_data.csv", "original_file_path": "seeds/shopify_gql_customer_visit_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_visit_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_visit_data"], "alias": "shopify_gql_customer_visit_data", "checksum": {"name": "sha256", "checksum": "33bcb50366b3a771c4a408cf198e0ba0ed4308af90d0d9066fcf5b8a0cb74ce6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.0407145, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_abandoned_checkout_data.csv", "original_file_path": "seeds/shopify_gql_abandoned_checkout_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data", "fqn": ["shopify_integration_tests", "shopify_gql_abandoned_checkout_data"], "alias": "shopify_gql_abandoned_checkout_data", "checksum": {"name": "sha256", "checksum": "f3999e4554d821e95b65fc49d14ab501151f3026c8936871197cabfbac47e25a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar", "shipping_address_phone": "varchar", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_discount_set_shop_amount": "float", "total_discount_set_pres_amount": "float", "total_duties_set_shop_amount": "float", "total_duties_set_pres_amount": "float", "total_line_items_price_set_shop_amount": "float", "total_line_items_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_tax_set_pres_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_discount_set_shop_amount": "float", "total_discount_set_pres_amount": "float", "total_duties_set_shop_amount": "float", "total_duties_set_pres_amount": "float", "total_line_items_price_set_shop_amount": "float", "total_line_items_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_tax_set_pres_amount": "float"}}, "created_at": 1754595377.043965, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_quantity_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_quantity_data.csv", "original_file_path": "seeds/shopify_inventory_quantity_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data", "fqn": ["shopify_integration_tests", "shopify_inventory_quantity_data"], "alias": "shopify_inventory_quantity_data", "checksum": {"name": "sha256", "checksum": "8fa9f26df5501b6f7a065d74a2da5bf70329b7197e8c11139cda950874243d1c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "inventory_level_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_level_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754595377.047392, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_variant_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_variant_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_variant_data.csv", "original_file_path": "seeds/shopify_gql_product_variant_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_variant_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_variant_data"], "alias": "shopify_gql_product_variant_data", "checksum": {"name": "sha256", "checksum": "fba49f77a3f4d25f1d1ab0cb5fbf89e4309fffa50c45a5c2b51eccd816888748"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"compare_at_price": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"compare_at_price": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754595377.0506504, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_bxgy_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_bxgy_data.csv", "original_file_path": "seeds/shopify_discount_code_bxgy_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_bxgy_data"], "alias": "shopify_discount_code_bxgy_data", "checksum": {"name": "sha256", "checksum": "676970b98658b2da21aec24691e589c9d1bd42703e266864d7af1d310f57fc53"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "varchar", "summary": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "summary": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}}, "created_at": 1754595377.0542793, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_data.csv", "original_file_path": "seeds/shopify_order_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_data", "fqn": ["shopify_integration_tests", "shopify_order_line_data"], "alias": "shopify_order_line_data", "checksum": {"name": "sha256", "checksum": "a4e65b3c0ee73ff8755aec89198632427baa2dbcc39d2e97659a8a976a92b8cd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "order_id": "bigint", "id": "bigint", "product_id": "bigint", "variant_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754595377.057743, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_media_data.csv", "original_file_path": "seeds/shopify_gql_product_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_media_data"], "alias": "shopify_gql_product_media_data", "checksum": {"name": "sha256", "checksum": "9b99a3ca51b4ecd63cc1d2a8a83a5a96dbf52e878990055a8e3a03b89666272d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.0608268, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_quantity_data.csv", "original_file_path": "seeds/shopify_gql_inventory_quantity_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_quantity_data"], "alias": "shopify_gql_inventory_quantity_data", "checksum": {"name": "sha256", "checksum": "aa5cdc0d5565496916a0f61055b029546d99b6aab2a2433c11f936abeeafcb1b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.063916, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_shipping_line_data.csv", "original_file_path": "seeds/shopify_gql_order_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_shipping_line_data"], "alias": "shopify_gql_order_shipping_line_data", "checksum": {"name": "sha256", "checksum": "5e77fbe4d6a87d50fcee326d856b97033aa850a6bc3edab4b70064c89498c01b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754595377.0669851, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_free_shipping_data.csv", "original_file_path": "seeds/shopify_discount_code_free_shipping_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_free_shipping_data"], "alias": "shopify_discount_code_free_shipping_data", "checksum": {"name": "sha256", "checksum": "55e37730e02503078ff03a624def743c4413c5feda1bdcdd38cc7d0dbe47e2bd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1754595377.0703988, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_tax_line_data.csv", "original_file_path": "seeds/shopify_gql_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_tax_line_data"], "alias": "shopify_gql_tax_line_data", "checksum": {"name": "sha256", "checksum": "08f6ab93144ae307e2e9f808278e5e6f13b1c76a609df067a7b3e18c52623bc2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.0736344, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_variant_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_variant_media_data.csv", "original_file_path": "seeds/shopify_gql_product_variant_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_variant_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_variant_media_data"], "alias": "shopify_gql_product_variant_media_data", "checksum": {"name": "sha256", "checksum": "42fdae13aac1a3868e29e1586fa30cb8c01f5265ecb6040353c147ede2a30f9e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.0767658, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_tag_data.csv", "original_file_path": "seeds/shopify_gql_order_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_tag_data"], "alias": "shopify_gql_order_tag_data", "checksum": {"name": "sha256", "checksum": "6fb78d3ccb69ab26e0ab8d781865dece254bfa951b1e1e57efe800e4c3c9aa9d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.0798175, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_order_line_item_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_order_line_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_order_line_item_data"], "alias": "shopify_gql_fulfillment_order_line_item_data", "checksum": {"name": "sha256", "checksum": "038512c381c821457b427a8a6d19049e6eb9302f5acfaaebdf56896f31aa0c01"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.0828664, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_product_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_product_data.csv", "original_file_path": "seeds/shopify_gql_collection_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_product_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_product_data"], "alias": "shopify_gql_collection_product_data", "checksum": {"name": "sha256", "checksum": "97528489feaf3fe056bfad2e1d5704c7a27d9fd0e90253b3fd64eceecfe31a7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.0861232, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_data"], "alias": "shopify_gql_fulfillment_data", "checksum": {"name": "sha256", "checksum": "707d77c094f00fb4c21d1968550d66a131bbfbec48addd7d7137936b00aca500"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.0891433, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_data.csv", "original_file_path": "seeds/shopify_gql_order_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_data"], "alias": "shopify_gql_order_data", "checksum": {"name": "sha256", "checksum": "5f2c9bc0a1d81234edf8945c72a99425ebe0450aad71cf418ca24b12c0ab3fd3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar", "shipping_address_phone": "varchar", "total_shipping_price_set_pres_amount": "float", "total_shipping_price_set_shop_amount": "float", "total_tax_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_discounts_set_pres_amount": "float", "total_discounts_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_tip_received_set_pres_amount": "float", "total_tip_received_set_shop_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_shipping_price_set_pres_amount": "float", "total_shipping_price_set_shop_amount": "float", "total_tax_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_discounts_set_pres_amount": "float", "total_discounts_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_tip_received_set_pres_amount": "float", "total_tip_received_set_shop_amount": "float"}}, "created_at": 1754595377.0925233, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_tender_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_tender_transaction_data.csv", "original_file_path": "seeds/shopify_gql_tender_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_tender_transaction_data", "fqn": ["shopify_integration_tests", "shopify_gql_tender_transaction_data"], "alias": "shopify_gql_tender_transaction_data", "checksum": {"name": "sha256", "checksum": "6e660fced8b377b4a7c7a3ea5c4cb1e8dff259e0b3596bfff56868873a7348dc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.0957103, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_refund_data.csv", "original_file_path": "seeds/shopify_gql_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_refund_data", "fqn": ["shopify_integration_tests", "shopify_gql_refund_data"], "alias": "shopify_gql_refund_data", "checksum": {"name": "sha256", "checksum": "f8767945248aa31df8667d9a302c98da70ecfa3200f09ae9a8a08e56f648b1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.0987017, "relation_name": "\"postgres\".\"public\".\"shopify_gql_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"database": "postgres", "schema": "public", "name": "shopify_order_adjustment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_adjustment_data.csv", "original_file_path": "seeds/shopify_order_adjustment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data", "fqn": ["shopify_integration_tests", "shopify_order_adjustment_data"], "alias": "shopify_order_adjustment_data", "checksum": {"name": "sha256", "checksum": "48ce96540f19450088c661fd48bd8f6d58bb4ca13a1f048880e9984be367172e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754595377.1017785, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_product_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_tag_data.csv", "original_file_path": "seeds/shopify_product_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data", "fqn": ["shopify_integration_tests", "shopify_product_tag_data"], "alias": "shopify_product_tag_data", "checksum": {"name": "sha256", "checksum": "10203c8ee30c2d400a7f5126732f6c17985017df02cd4eceff90ef483e1c0729"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1057022, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_shop_data": {"database": "postgres", "schema": "public", "name": "shopify_shop_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_shop_data.csv", "original_file_path": "seeds/shopify_shop_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_shop_data", "fqn": ["shopify_integration_tests", "shopify_shop_data"], "alias": "shopify_shop_data", "checksum": {"name": "sha256", "checksum": "1029ea325d95c96dbdf0c52a9fd8ef272516b15f99f834a507bff27eda689bba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}}, "created_at": 1754595377.1088767, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_line_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_line_refund_data.csv", "original_file_path": "seeds/shopify_gql_order_line_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_refund_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_line_refund_data"], "alias": "shopify_gql_order_line_refund_data", "checksum": {"name": "sha256", "checksum": "f42ec092931b7b6629fad2c44ca9d9cfa5b655980dd1140d69d8b687178b8d32"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"quantity": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"quantity": "float"}}, "created_at": 1754595377.1120784, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_adjustment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_adjustment_data.csv", "original_file_path": "seeds/shopify_gql_order_adjustment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_adjustment_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_adjustment_data"], "alias": "shopify_gql_order_adjustment_data", "checksum": {"name": "sha256", "checksum": "5477a81fe785b813c63156e1f04d73748f431cd6f247ad0f5ac75785a9cc1325"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1151927, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_rule_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_rule_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_rule_data.csv", "original_file_path": "seeds/shopify_gql_collection_rule_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_rule_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_rule_data"], "alias": "shopify_gql_collection_rule_data", "checksum": {"name": "sha256", "checksum": "fc43b048e1c1c4e2dc67460f2d7ad884ccc7a3f02ba7d749a766459199c1a6aa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.11816, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_rule_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_data.csv", "original_file_path": "seeds/shopify_fulfillment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_data"], "alias": "shopify_fulfillment_data", "checksum": {"name": "sha256", "checksum": "36993dd7ab6cd0951d3229c9d72237f4115292350e2659bdb717866f8fe8ebd8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1212778, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_data.csv", "original_file_path": "seeds/shopify_collection_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_data", "fqn": ["shopify_integration_tests", "shopify_collection_data"], "alias": "shopify_collection_data", "checksum": {"name": "sha256", "checksum": "27cb0f0a37833f86bc7d0eb153acacdca987a69caf07dccdea4a072895f0a518"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754595377.124375, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"database": "postgres", "schema": "public", "name": "shopify_order_note_attribute_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_note_attribute_data.csv", "original_file_path": "seeds/shopify_order_note_attribute_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data", "fqn": ["shopify_integration_tests", "shopify_order_note_attribute_data"], "alias": "shopify_order_note_attribute_data", "checksum": {"name": "sha256", "checksum": "9076f469c15ad5e18c4365039836b6739c2d7fc79ed987564ab8c1849994309c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1274366, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_discount_code_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_discount_code_data"], "alias": "shopify_abandoned_checkout_discount_code_data", "checksum": {"name": "sha256", "checksum": "f60365d56b94e348893476184122a98c6a4b939de1c7de1f7f3684e2ba344e48"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"checkout_id": "bigint", "discount_id": "bigint", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "varchar", "type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"checkout_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754595377.1305878, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_event_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_event_data.csv", "original_file_path": "seeds/shopify_fulfillment_event_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_event_data"], "alias": "shopify_fulfillment_event_data", "checksum": {"name": "sha256", "checksum": "ae538cd22df11081f1f4d2b6970c945d432f92af0e96fac2e10e1e09d886abef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1337879, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_media_data.csv", "original_file_path": "seeds/shopify_gql_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_media_data"], "alias": "shopify_gql_media_data", "checksum": {"name": "sha256", "checksum": "ffa3f564a810c9230c529066f5be55051045d32e14bfee4c04479ec3e5140a3c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1367953, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_bxgy_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_bxgy_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_bxgy_data"], "alias": "shopify_gql_discount_code_bxgy_data", "checksum": {"name": "sha256", "checksum": "93dd6da3ac1575fe61eed846dd3e2db2d75f16237571cfd4a4647f33ec612a28"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1397789, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_line_data"], "alias": "shopify_order_shipping_line_data", "checksum": {"name": "sha256", "checksum": "7a83a6e1121c088d6cd6ab3a944c683bfe4ac72ac440fcf97d55c3ca709b88a8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"discounted_price": "float", "price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"discounted_price": "float", "price": "float"}}, "created_at": 1754595377.142853, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_item_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_item_data.csv", "original_file_path": "seeds/shopify_gql_inventory_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_item_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_item_data"], "alias": "shopify_gql_inventory_item_data", "checksum": {"name": "sha256", "checksum": "cb50caac3e13ddc3c4011ecbd1929f2c6876a6010e0e055ce0d32891a2caa6f0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1459868, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_data"], "alias": "shopify_abandoned_checkout_data", "checksum": {"name": "sha256", "checksum": "1fc66dc1ee0e84111cc6c3de1b49c3e172d477eadda206ec80095dbae720a7b4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"total_line_items_price": "float", "billing_address_phone": "varchar", "shipping_address_phone": "varchar", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"total_line_items_price": "float", "billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754595377.149247, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_location_data": {"database": "postgres", "schema": "public", "name": "shopify_location_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_location_data.csv", "original_file_path": "seeds/shopify_location_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_location_data", "fqn": ["shopify_integration_tests", "shopify_location_data"], "alias": "shopify_location_data", "checksum": {"name": "sha256", "checksum": "781bb070fbf96fd7e01d4229ccbac91f77bcd52726ffea2de9fa36abe6804b38"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1523612, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_location_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_location_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_location_data.csv", "original_file_path": "seeds/shopify_gql_location_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_location_data", "fqn": ["shopify_integration_tests", "shopify_gql_location_data"], "alias": "shopify_gql_location_data", "checksum": {"name": "sha256", "checksum": "0e3fcbfcccb24bff1a397108c5284f013e54846463ce693db515c9e843d65c82"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754595377.1554265, "relation_name": "\"postgres\".\"public\".\"shopify_gql_location_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_data.csv", "original_file_path": "seeds/shopify_product_variant_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_data"], "alias": "shopify_product_variant_data", "checksum": {"name": "sha256", "checksum": "2c7c29665cf22fea389ed017edcd174d97384f19f5fa65e1e70073b6e29de1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "product_id": "bigint", "inventory_item_id": "bigint", "legacy_resource_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754595377.1585994, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_shop_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_shop_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_shop_data.csv", "original_file_path": "seeds/shopify_gql_shop_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_shop_data", "fqn": ["shopify_integration_tests", "shopify_gql_shop_data"], "alias": "shopify_gql_shop_data", "checksum": {"name": "sha256", "checksum": "e691117d38fb0c6a9ad757f7adc677a8a3454f881d6c9f7d3fd625611addb1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754595377.1618366, "relation_name": "\"postgres\".\"public\".\"shopify_gql_shop_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_tag_data.csv", "original_file_path": "seeds/shopify_gql_customer_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_tag_data"], "alias": "shopify_gql_customer_tag_data", "checksum": {"name": "sha256", "checksum": "b9990af8b8157368df2e7cd54ad712620ce79cfb8bcddbce8ceac25314d1f98f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1648939, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_tag_data.csv", "original_file_path": "seeds/shopify_customer_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data", "fqn": ["shopify_integration_tests", "shopify_customer_tag_data"], "alias": "shopify_customer_tag_data", "checksum": {"name": "sha256", "checksum": "27dad4d9a29bfd94903c156e01cdee4c0b33cfb2c5d88af98b89c19287596e5c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754595377.1679447, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_note_attribute_data.csv", "original_file_path": "seeds/shopify_gql_order_note_attribute_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_note_attribute_data"], "alias": "shopify_gql_order_note_attribute_data", "checksum": {"name": "sha256", "checksum": "fdc162afb1aaf6ccc432a5df8eb1d42ebe945151101a43edf6176d98c3cd4ec6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1709926, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_metafield_data": {"database": "postgres", "schema": "public", "name": "shopify_metafield_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_metafield_data.csv", "original_file_path": "seeds/shopify_metafield_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_metafield_data", "fqn": ["shopify_integration_tests", "shopify_metafield_data"], "alias": "shopify_metafield_data", "checksum": {"name": "sha256", "checksum": "f9586af820e5f4c1d04e71e5a8fc699080ecb101b85735abe9724a8ea9bf0d97"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"value_type": "varchar", "type": "varchar", "id": "bigint", "owner_id": "bigint", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "owner_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754595377.1743295, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_level_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_level_data.csv", "original_file_path": "seeds/shopify_inventory_level_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data", "fqn": ["shopify_integration_tests", "shopify_inventory_level_data"], "alias": "shopify_inventory_level_data", "checksum": {"name": "sha256", "checksum": "d8bde61ad5a46b099f9e615464abf20677a00869ba308860ce0c80e59ebf40bb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "location_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754595377.1776326, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_transaction_data.csv", "original_file_path": "seeds/shopify_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_transaction_data", "fqn": ["shopify_integration_tests", "shopify_transaction_data"], "alias": "shopify_transaction_data", "checksum": {"name": "sha256", "checksum": "def7b7fc64e42148b900dcd1f7327b470e5d3b0ed8e73f263e46a715ecb09199"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754595377.1807997, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_data": {"database": "postgres", "schema": "public", "name": "shopify_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_data.csv", "original_file_path": "seeds/shopify_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_data", "fqn": ["shopify_integration_tests", "shopify_media_data"], "alias": "shopify_media_data", "checksum": {"name": "sha256", "checksum": "7c6234841dd8ff01ec7cd72fb11d8f933c4b12efbf8470324f0671f6afb6e266"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "status": "varchar", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1754595377.1839545, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_redeem_code_data.csv", "original_file_path": "seeds/shopify_gql_discount_redeem_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_redeem_code_data"], "alias": "shopify_gql_discount_redeem_code_data", "checksum": {"name": "sha256", "checksum": "0b1fd8ebdc11adc10b729eb22fe80d4e8f69d29dbc42114ea54d5977fdb6d638"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1870255, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_data.csv", "original_file_path": "seeds/shopify_gql_collection_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_data"], "alias": "shopify_gql_collection_data", "checksum": {"name": "sha256", "checksum": "29e0276fbf7a043b812e101d81438672484cca31a69ba9c4ce2df96dc215a3b2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1900957, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_application_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_application_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_application_data.csv", "original_file_path": "seeds/shopify_gql_discount_application_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_application_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_application_data"], "alias": "shopify_gql_discount_application_data", "checksum": {"name": "sha256", "checksum": "02bf15863aaf29b404a84ab214ff73121e4ee411f2e6fecf3f757e179b6c9c2e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1931047, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_url_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_url_tag_data.csv", "original_file_path": "seeds/shopify_order_url_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_url_tag_data"], "alias": "shopify_order_url_tag_data", "checksum": {"name": "sha256", "checksum": "18d23ae4cb9bb569772db2a5622ab7f84281f3391b6c9295973a8fed3d887567"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1960948, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_app_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_app_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_app_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_app_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_app_data"], "alias": "shopify_gql_discount_code_app_data", "checksum": {"name": "sha256", "checksum": "b6ea6c09ffbae0eedd94577b2ec3a6074bff0d33b6338d895111b7f9521ce049"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.1990788, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_allocation_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_allocation_data.csv", "original_file_path": "seeds/shopify_discount_allocation_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_allocation_data", "fqn": ["shopify_integration_tests", "shopify_discount_allocation_data"], "alias": "shopify_discount_allocation_data", "checksum": {"name": "sha256", "checksum": "22cd7acd65491fcbbd2d2de60dc69b993fa1ac45d90b41dee7976905d6418fcf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "varchar", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "varchar", "discount_application_index": "integer", "index": "integer", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_application_index": "integer", "index": "integer", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754595377.2022383, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_discount_code_data.csv", "original_file_path": "seeds/shopify_gql_order_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_discount_code_data"], "alias": "shopify_gql_order_discount_code_data", "checksum": {"name": "sha256", "checksum": "aafb732b582b0f19c9f004febfb986cf33a2d090c53d87dc5d9875584d1c9643"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.2054331, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_transaction_data.csv", "original_file_path": "seeds/shopify_gql_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_transaction_data", "fqn": ["shopify_integration_tests", "shopify_gql_transaction_data"], "alias": "shopify_gql_transaction_data", "checksum": {"name": "sha256", "checksum": "6daf1a707db559a969488734847d9996d22fc0c1eb96d91c6ae621e6fa0c9a53"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.208413, "relation_name": "\"postgres\".\"public\".\"shopify_gql_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_product": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_product", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_product.csv", "original_file_path": "seeds/shopify_gql_collection_product.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_product", "fqn": ["shopify_integration_tests", "shopify_gql_collection_product"], "alias": "shopify_gql_collection_product", "checksum": {"name": "sha256", "checksum": "97528489feaf3fe056bfad2e1d5704c7a27d9fd0e90253b3fd64eceecfe31a7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.211393, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_tender_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tender_transaction_data.csv", "original_file_path": "seeds/shopify_tender_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tender_transaction_data", "fqn": ["shopify_integration_tests", "shopify_tender_transaction_data"], "alias": "shopify_tender_transaction_data", "checksum": {"name": "sha256", "checksum": "7d1b7ebc547f9068b258e49431a3955f9143b99afa151664aa26a2ad9c5b479c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.2143617, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tax_line_data.csv", "original_file_path": "seeds/shopify_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_tax_line_data"], "alias": "shopify_tax_line_data", "checksum": {"name": "sha256", "checksum": "af3615f675a22513590ef6a8abcce714b286f06c7532e650a56787c6afbd36de"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float", "rate": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float", "rate": "float"}}, "created_at": 1754595377.2175133, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_level_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_level_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_level_data.csv", "original_file_path": "seeds/shopify_gql_inventory_level_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_level_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_level_data"], "alias": "shopify_gql_inventory_level_data", "checksum": {"name": "sha256", "checksum": "aceaf50aec7f3b9a2fe70cc7a95c7c5a9206d11c10469987fdb88503051a0a3f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.2207158, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_shipping_line_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_shipping_line_data"], "alias": "shopify_abandoned_checkout_shipping_line_data", "checksum": {"name": "sha256", "checksum": "9b1e873b952f85626352f2ca85b67b7a14e54e7edd01467951653fc2716023d5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"markup": "varchar", "price": "float", "original_shop_markup": "varchar", "original_shop_price": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "price": "float", "original_shop_markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "original_shop_price": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1754595377.2238228, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_app_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_app_data.csv", "original_file_path": "seeds/shopify_discount_code_app_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_app_data"], "alias": "shopify_discount_code_app_data", "checksum": {"name": "sha256", "checksum": "079a9204224ded648d6e15b794bf77034e41f319b72801fcfee0f5b1c9e37d77"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1754595377.2273147, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_media_data.csv", "original_file_path": "seeds/shopify_product_variant_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_media_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_media_data"], "alias": "shopify_product_variant_media_data", "checksum": {"name": "sha256", "checksum": "ffa08a9130b2aa66803955797f46a610fc32abcdb404635c6c1dc3a8b289e48b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_variant_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1754595377.230711, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_media_image_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_media_image_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_media_image_data.csv", "original_file_path": "seeds/shopify_gql_media_image_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_media_image_data", "fqn": ["shopify_integration_tests", "shopify_gql_media_image_data"], "alias": "shopify_gql_media_image_data", "checksum": {"name": "sha256", "checksum": "6581609f609de50cc0b430e64d53a728502cdaea962a90bffd1e5f72079cfc47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1754595377.233845, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_image_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "model.shopify.shopify__calendar": {"database": "postgres", "schema": "public_shopify", "name": "shopify__calendar", "resource_type": "model", "package_name": "shopify", "path": "utils/shopify__calendar.sql", "original_file_path": "models/utils/shopify__calendar.sql", "unique_id": "model.shopify.shopify__calendar", "fqn": ["shopify", "utils", "shopify__calendar"], "alias": "shopify__calendar", "checksum": {"name": "sha256", "checksum": "5295fe06c949deb345450af0ad6b0335b6edc25b2e883a4f2452ae276a3e85f4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1754595377.5199409, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__calendar\"", "raw_code": "{% set start_date = var('shopify__calendar_start_date', '2019-01-01') %}\n\n{{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date=\"cast('\" ~ start_date ~ \"' as date)\",\n end_date=\"current_date\"\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.date_spine"], "nodes": []}, "compiled_path": "target/compiled/shopify/models/utils/shopify__calendar.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 2410\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2019-01-01' as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= current_date\n\n)\n\nselect * from filtered\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_cohorts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_cohorts.sql", "original_file_path": "models/rest/shopify__customer_cohorts.sql", "unique_id": "model.shopify.shopify__customer_cohorts", "fqn": ["shopify", "rest", "shopify__customer_cohorts"], "alias": "shopify__customer_cohorts", "checksum": {"name": "sha256", "checksum": "8b92c597e275f6464fbf1375ffb22714ad640588e7f163bb322202ef25f70304"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "created_at": 1754595382.6013107, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == 'rest',\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'customer_id'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customers\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast(date_trunc('month', first_order_timestamp) as date) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n customer_id\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify__customer_email_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_email_cohorts.sql", "original_file_path": "models/rest/shopify__customer_email_cohorts.sql", "unique_id": "model.shopify.shopify__customer_email_cohorts", "fqn": ["shopify", "rest", "shopify__customer_email_cohorts"], "alias": "shopify__customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "3c60f6ffa19bb9a0e60b9b3a02e5c5a3a5baa560bcfa85b39e38194b2bae552a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's (on the EMAIL grain) performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "created_at": 1754595382.6025531, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == 'rest',\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'email'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customer_emails') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customer_emails", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_email_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customer_emails\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n email\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.email as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify__inventory_levels": {"database": "postgres", "schema": "public_shopify", "name": "shopify__inventory_levels", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__inventory_levels.sql", "original_file_path": "models/rest/shopify__inventory_levels.sql", "unique_id": "model.shopify.shopify__inventory_levels", "fqn": ["shopify", "rest", "shopify__inventory_levels"], "alias": "shopify__inventory_levels", "checksum": {"name": "sha256", "checksum": "002b6af06d7fddeab16ac942f625a60d1d40315396b4f4a5c1013ac3febbbb93"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of inventory items (which have a 1:1 relationship with product variants) and locations. \nInventory Level = Inventory item @ a Location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_item_deleted": {"name": "is_inventory_item_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "(DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_created_at": {"name": "inventory_item_created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_updated_at": {"name": "inventory_item_updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_location_deleted": {"name": "is_location_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_location_active": {"name": "is_location_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_created_at": {"name": "location_created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy_location": {"name": "is_legacy_location", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_name": {"name": "location_name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_updated_at": {"name": "location_updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_media_id": {"name": "variant_media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_variant_taxable": {"name": "is_variant_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_orders": {"name": "count_distinct_orders", "description": "The number of distinct orders placed from this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customers": {"name": "count_distinct_customers", "description": "The number of distinct customers (based on customer_id) that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customer_emails": {"name": "count_distinct_customer_emails", "description": "The number of distinct customer emails that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timetamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "The timestamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_refunds": {"name": "subtotal_sold_refunds", "description": "The monetary amount (in shop currency) of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_refunds": {"name": "quantity_sold_refunds", "description": "The quantity of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_subtotal_sold": {"name": "net_subtotal_sold", "description": "Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_quantity_sold": {"name": "net_quantity_sold", "description": "Net quantity sold from this inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_pending": {"name": "count_fulfillment_pending", "description": "Count of currently pending distinct fulfillments for this inventory level. \"Pending\" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_open": {"name": "count_fulfillment_open", "description": "Count of currently open distinct fulfillments for this inventory level. \"Open\" = The fulfillment has been acknowledged by the service and is in processing.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_success": {"name": "count_fulfillment_success", "description": "Count of successful distinct fulfillments for this inventory level. \"Success\" = The fulfillment was successful.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_cancelled": {"name": "count_fulfillment_cancelled", "description": "Count of cancelled distinct fulfillments for this inventory level. \"Cancelled\" = The fulfillment was cancelled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_error": {"name": "count_fulfillment_error", "description": "Count of distinct fulfillments for this inventory level that encountered an error. \"Error\" = There was an error with the fulfillment request.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of distinct fulfillments for this inventory level that failed. \"Failure\" = The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "available_quantity": {"name": "available_quantity", "description": "The available quantity that a merchant can sell, determined by coalescing the `quantity` where inventory_state_name = 'available' from `stg_shopify__inventory_quantity`and `available_quantity` from the deprecated `stg_shopify__inventory_level`. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "incoming_quantity": {"name": "incoming_quantity", "description": "The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "on_hand_quantity": {"name": "on_hand_quantity", "description": "The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "committed_quantity": {"name": "committed_quantity", "description": "The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reserved_quantity": {"name": "reserved_quantity", "description": "The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "damaged_quantity": {"name": "damaged_quantity", "description": "The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "safety_stock_quantity": {"name": "safety_stock_quantity", "description": "The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quality_control_quantity": {"name": "quality_control_quantity", "description": "The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.6366825, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__inventory_levels\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith inventory_level as (\n\n select *\n from {{ var('shopify_inventory_level') }}\n), \n\ninventory_item as (\n\n select *\n from {{ var('shopify_inventory_item') }}\n),\n\ninventory_quantity as (\n\n select *\n from {{ var('shopify_inventory_quantity') }}\n),\n\nlocation as (\n\n select *\n from {{ var('shopify_location') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n),\n\nproduct as (\n\n select *\n from {{ var('shopify_product') }}\n),\n\ninventory_level_aggregated as (\n\n select *\n from {{ ref('int_shopify__inventory_level__aggregates') }}\n),\n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%}\n {% for inventory_state in inventory_states -%}\n , sum(case when lower(inventory_state_name) = {{ \"'\" ~ inventory_state|lower ~ \"'\" }}\n {% if inventory_state|lower == 'available ' -%}\n then coalesce(inventory_quantity.quantity, inventory_level.available_quantity)\n {% else -%}\n then inventory_quantity.quantity\n {% endif -%}\n end) as {{ inventory_state }}_quantity\n {% endfor -%}\n\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id as variant_media_id,\n {% endif %}\n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }}\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n {% endif %}\n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n\n {% for inventory_state in inventory_states -%}\n , inventory_quantity_aggregated.{{ inventory_state }}_quantity\n {% endfor -%}\n\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level", "package": null, "version": null}, {"name": "stg_shopify__inventory_item", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity", "package": null, "version": null}, {"name": "stg_shopify__location", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "int_shopify__inventory_level__aggregates", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__inventory_levels.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), inventory_level as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"\n), \n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\n),\n\ninventory_quantity as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"\n),\n\nlocation as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__location\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n),\n\nproduct as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n),\n\ninventory_level_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__inventory_level__aggregates\n),\n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n , sum(case when lower(inventory_state_name) = 'incoming'\n then inventory_quantity.quantity\n end) as incoming_quantity\n , sum(case when lower(inventory_state_name) = 'on_hand'\n then inventory_quantity.quantity\n end) as on_hand_quantity\n , sum(case when lower(inventory_state_name) = 'available'\n then inventory_quantity.quantity\n end) as available_quantity\n , sum(case when lower(inventory_state_name) = 'committed'\n then inventory_quantity.quantity\n end) as committed_quantity\n , sum(case when lower(inventory_state_name) = 'reserved'\n then inventory_quantity.quantity\n end) as reserved_quantity\n , sum(case when lower(inventory_state_name) = 'damaged'\n then inventory_quantity.quantity\n end) as damaged_quantity\n , sum(case when lower(inventory_state_name) = 'safety_stock'\n then inventory_quantity.quantity\n end) as safety_stock_quantity\n , sum(case when lower(inventory_state_name) = 'quality_control'\n then inventory_quantity.quantity\n end) as quality_control_quantity\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n \n product_variant_media.media_id as variant_media_id,\n \n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n \n\n\n\n\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n \n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n \n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n \n , coalesce(inventory_level_aggregated.count_fulfillment_pending, 0) as count_fulfillment_pending\n \n , coalesce(inventory_level_aggregated.count_fulfillment_open, 0) as count_fulfillment_open\n \n , coalesce(inventory_level_aggregated.count_fulfillment_success, 0) as count_fulfillment_success\n \n , coalesce(inventory_level_aggregated.count_fulfillment_cancelled, 0) as count_fulfillment_cancelled\n \n , coalesce(inventory_level_aggregated.count_fulfillment_error, 0) as count_fulfillment_error\n \n , coalesce(inventory_level_aggregated.count_fulfillment_failure, 0) as count_fulfillment_failure\n \n\n , inventory_quantity_aggregated.incoming_quantity\n , inventory_quantity_aggregated.on_hand_quantity\n , inventory_quantity_aggregated.available_quantity\n , inventory_quantity_aggregated.committed_quantity\n , inventory_quantity_aggregated.reserved_quantity\n , inventory_quantity_aggregated.damaged_quantity\n , inventory_quantity_aggregated.safety_stock_quantity\n , inventory_quantity_aggregated.quality_control_quantity\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify__inventory_level__aggregates", "sql": " __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "location_id"], "time_spine": null}, "model.shopify.shopify__discounts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__discounts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__discounts.sql", "original_file_path": "models/rest/shopify__discounts.sql", "unique_id": "model.shopify.shopify__discounts", "fqn": ["shopify", "rest", "shopify__discounts"], "alias": "shopify__discounts", "checksum": {"name": "sha256", "checksum": "62fa5f60084ea0263c89743d8e99e3642dc01df675b0f810158be89eba5984aa"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts.\n", "columns": {"discounts_unique_key": {"name": "discounts_unique_key", "description": "Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "The case-insensitive discount code that customers use at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether the discount can be used only once per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "Number of times the discount has been used (asynchronously updated).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "Number of unique redeem codes associated with the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether `codes_count` is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "Timestamp when the discount ends or expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "Timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "Current status of the discount (e.g. 'active', 'expired', 'scheduled').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount\u2019s display name in the Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to 'all' or 'entitled' items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "application_type": {"name": "application_type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Numeric value of the discount (e.g., percentage or fixed amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "How the discount value is interpreted (e.g., 'percentage', 'fixed_amount').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_discount_amount": {"name": "total_order_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off of orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_discount_amount": {"name": "total_abandoned_checkout_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_line_items_price": {"name": "total_order_line_items_price", "description": "Total monetary amount (in shop currency) of line items for orders that have used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_shipping_cost": {"name": "total_order_shipping_cost", "description": "Total shipping costs for orders that used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_shipping_price": {"name": "total_abandoned_checkout_shipping_price", "description": "Total projected shipping costs for abandoned checkouts that applied this discount first.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_refund_amount": {"name": "total_order_refund_amount", "description": "Total refunded amount (in shop currency) for orders that used this discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer emails who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_discount_amount": {"name": "avg_order_discount_amount", "description": "Average amount (in shop currency) of discount taken off orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "count_orders": {"name": "count_orders", "description": "Count of orders in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customers": {"name": "count_abandoned_checkout_customers", "description": "Distinct count of customers who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customer_emails": {"name": "count_abandoned_checkout_customer_emails", "description": "Distinct count of customer emails who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.641324, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__discounts\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith discounts_enriched as (\n\n select *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as discounts_unique_key\n from {{ ref('int_shopify__discount_code_enriched')}}\n),\n\norders_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__order_aggregates')}}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\nabandoned_checkouts_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__abandoned_checkouts')}}\n),\n{% endif %}\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n {% endif %} \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n {% endif %}\n)\n\nselect * \nfrom aggregates_joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discount_code_enriched", "package": null, "version": null}, {"name": "int_shopify__discounts__order_aggregates", "package": null, "version": null}, {"name": "int_shopify__discounts__abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__discounts__abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__discounts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n), __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), discounts_enriched as (\n\n select *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_code_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as discounts_unique_key\n from __dbt__cte__int_shopify__discount_code_enriched\n),\n\norders_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__order_aggregates\n),\n\n\nabandoned_checkouts_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__abandoned_checkouts\n),\n\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n \n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n \n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n \n)\n\nselect * \nfrom aggregates_joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discount_code_enriched", "sql": " __dbt__cte__int_shopify__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n)"}, {"id": "model.shopify.int_shopify__discounts__order_aggregates", "sql": " __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}, {"id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "sql": " __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discounts_unique_key"], "time_spine": null}, "model.shopify.shopify__customers": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customers.sql", "original_file_path": "models/rest/shopify__customers.sql", "unique_id": "model.shopify.shopify__customers", "fqn": ["shopify", "rest", "shopify__customers"], "alias": "shopify__customers", "checksum": {"name": "sha256", "checksum": "0ecd7f0b22e3a25224a922e9f02cfa4d5deadd8d3b62d124e6caff3602c729c0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money in shop currency that the customer has spent on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.6164162, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customers\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customers as (\n\n select \n {{ dbt_utils.star(from=ref('stg_shopify__customer'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ var('shopify_customer') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__customers__order_aggregates' )}}\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where customer_id is not null\n group by 1,2\n{% endif %}\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags\n\n from {{ var('shopify_customer_tag' )}}\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n {% endif %}\n\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "shopify__customers__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customers.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n), customers as (\n\n select \n \"customer_id\",\n \"email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"phone\",\n \"account_state\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"marketing_consent_updated_at\",\n \"created_timestamp\",\n \"updated_timestamp\",\n \"_fivetran_synced\",\n \"source_relation\"\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), orders as (\n\n select *\n from __dbt__cte__shopify__customers__order_aggregates\n\n\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where customer_id is not null\n group by 1,2\n\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as customer_tags\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n \n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__customers__order_aggregates", "sql": " __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__orders.sql", "original_file_path": "models/rest/shopify__orders.sql", "unique_id": "model.shopify.shopify__orders", "fqn": ["shopify", "rest", "shopify__orders"], "alias": "shopify__orders", "checksum": {"name": "sha256", "checksum": "391f81515fc070ec8ddcf72d17f302ea6b76c9341329302d11ed57e3ff96b0e0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"orders_unique_key": {"name": "orders_unique_key", "description": "Unique key representing an order. Hashed on 'order_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count": {"name": "line_item_count", "description": "Number of line items included in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_order_seq_number": {"name": "customer_order_seq_number", "description": "The sequential number of the order as it relates to the customer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "new_vs_repeat": {"name": "new_vs_repeat", "description": "Whether the order was a new or repeat order for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to the adjustment on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "The checkout token applied to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price set to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_total_shipping_tax": {"name": "order_total_shipping_tax", "description": "Total shipping tax attributed to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_tags": {"name": "order_tags", "description": "List of tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_url_tags": {"name": "order_url_tags", "description": "List of url tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number_of_fulfillments": {"name": "number_of_fulfillments", "description": "Total fulfillments for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_services": {"name": "fulfillment_services", "description": "List of fulfillment services for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_companies": {"name": "tracking_companies", "description": "List of tracking companies for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "List of tracking numbers for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied on the order", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.6141496, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_id']) }} as orders_unique_key\n from {{ var('shopify_order') }}\n \n), order_lines as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), order_adjustments as (\n\n select *\n from {{ var('shopify_order_adjustment') }}\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from {{ var('shopify_order_discount_code') }}\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_tags\n \n from {{ var('shopify_order_tag') }}\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_url_tags\n \n from {{ var('shopify_order_url_tag') }}\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n {{ fivetran_utils.string_agg(\"distinct cast(service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_company as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_number as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_numbers\n\n from {{ var('shopify_fulfillment') }}\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast({{ fivetran_utils.json_parse(\"total_shipping_price_set\",[\"shop_money\",\"amount\"]) }} as {{ dbt.type_float() }}) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify__order_tag", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.json_parse", "macro.dbt.type_float", "macro.shopify.shopify_partition_by_cols"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag", "model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__orders.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), orders as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as orders_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n \n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), order_adjustments as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_url_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n \n string_agg(distinct cast(service as TEXT), ', ')\n\n as fulfillment_services,\n \n string_agg(distinct cast(tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(tracking_number as TEXT), ', ')\n\n as tracking_numbers\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast(\n\n total_shipping_price_set::json #>> '{shop_money,amount}'\n\n as float) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by \n\n\n customer_id\n\n\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["orders_unique_key"], "time_spine": null}, "model.shopify.shopify__transactions": {"database": "postgres", "schema": "public_shopify", "name": "shopify__transactions", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__transactions.sql", "original_file_path": "models/rest/shopify__transactions.sql", "unique_id": "model.shopify.shopify__transactions", "fqn": ["shopify", "rest", "shopify__transactions"], "alias": "shopify__transactions", "checksum": {"name": "sha256", "checksum": "4c15f502fa243723bce0834561afdefee97a2ca1dee9e4bebadad7e2e2f42c1a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transactions_unique_id": {"name": "transactions_unique_id", "description": "Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of the date the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "exchange_rate": {"name": "exchange_rate", "description": "The exchange rate between the home currency and the currency of sale at the time of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_calculated_amount": {"name": "currency_exchange_calculated_amount", "description": "The total amount of the transaction with the currency exchange rate applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Method of payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_created_timestamp": {"name": "parent_created_timestamp", "description": "Created on timestamp of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_kind": {"name": "parent_kind", "description": "Kind of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_amount": {"name": "parent_amount", "description": "Amount of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_status": {"name": "parent_status", "description": "Status of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "Timestamp when the authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.6320956, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__transactions\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith transactions as (\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'transaction_id'])}} as transactions_unique_id\n from {{ var('shopify_transaction') }} \n\n), tender_transactions as (\n\n select *\n from {{ var('shopify_tender_transaction') }}\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.json_parse", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__transactions.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as transactions_unique_id\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\" \n\n), tender_transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) as exchange_rate,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["transactions_unique_id"], "time_spine": null}, "model.shopify.shopify__order_lines": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_lines", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__order_lines.sql", "original_file_path": "models/rest/shopify__order_lines.sql", "unique_id": "model.shopify.shopify__order_lines", "fqn": ["shopify", "rest", "shopify__order_lines"], "alias": "shopify__order_lines", "checksum": {"name": "sha256", "checksum": "4bea1545ae004b8d366bcf551eead0be215407510cf95a048869e1346d111116"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item of an order in Shopify.", "columns": {"order_lines_unique_key": {"name": "order_lines_unique_key", "description": "Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_quantity": {"name": "refunded_quantity", "description": "Quantity of the item that has been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net_refunds": {"name": "quantity_net_refunds", "description": "Quantity ordered, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_compare_at_price": {"name": "variant_compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_position": {"name": "variant_position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sku": {"name": "variant_sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_taxable": {"name": "variant_is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_subtotal": {"name": "refunded_subtotal", "description": "Subtotal amount of the refund applied to the order line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_net_refunds": {"name": "subtotal_net_refunds", "description": "Subtotal of the order line with refunds subtracted in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_types": {"name": "restock_types", "description": "List of how this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_tax": {"name": "order_line_tax", "description": "Total taxes for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The total pre tax price of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.628776, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_lines\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_line_id']) }} as order_lines_unique_key\n from {{ var('shopify_order_line') }}\n\n), product_variants as (\n\n select *\n from {{ var('shopify_product_variant') }}\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), \n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n {{ fivetran_utils.string_agg(\"distinct cast(refunds.restock_type as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from {{ var('shopify_tax_line')}}\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id,\n {% endif %}\n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__order_lines.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as order_lines_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), \n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n \n string_agg(distinct cast(refunds.restock_type as TEXT), ', ')\n\n as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n \n product_variant_media.media_id,\n \n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n \n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_lines_unique_key"], "time_spine": null}, "model.shopify.shopify__products": {"database": "postgres", "schema": "public_shopify", "name": "shopify__products", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__products.sql", "original_file_path": "models/rest/shopify__products.sql", "unique_id": "model.shopify.shopify__products", "fqn": ["shopify", "rest", "shopify__products"], "alias": "shopify__products", "checksum": {"name": "sha256", "checksum": "cfa6ebbb138e82d7287894a9ab6ea7d2ae5511199880dd0650bea0aeaf4f09a8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity_sold": {"name": "total_quantity_sold", "description": "Quantity of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (in shop currency) of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_net_refunds": {"name": "quantity_sold_net_refunds", "description": "Quantity of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_net_refunds": {"name": "subtotal_sold_net_refunds", "description": "Total amount (in shop currency) of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the product was first ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the product was most recently ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order_line": {"name": "avg_quantity_per_order_line", "description": "Average quantity per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_discount": {"name": "product_total_discount", "description": "Total discounts associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_discount_per_order_line": {"name": "product_avg_discount_per_order_line", "description": "Average discount per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_tax": {"name": "product_total_tax", "description": "Total taxes associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_tax_per_order_line": {"name": "product_avg_tax_per_order_line", "description": "Average taxes per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants": {"name": "count_variants", "description": "Count of product variants.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_product_media": {"name": "has_product_media", "description": "If the product has media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collections": {"name": "collections", "description": "Comma-separated list of collections associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tags": {"name": "tags", "description": "Comma-separated list of tags associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.6208916, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__products\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith products as (\n\n select *\n from {{ ref('int_shopify__products_with_aggregates') }}\n\n), product_order_lines as (\n\n select *\n from {{ ref('int_shopify__product__order_line_aggregates')}}\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__products_with_aggregates", "package": null, "version": null}, {"name": "int_shopify__product__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.int_shopify__product__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__products.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), products as (\n\n select *\n from __dbt__cte__int_shopify__products_with_aggregates\n\n), product_order_lines as (\n\n select *\n from __dbt__cte__int_shopify__product__order_line_aggregates\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__products_with_aggregates", "sql": " __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify__product__order_line_aggregates", "sql": " __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__daily_shop": {"database": "postgres", "schema": "public_shopify", "name": "shopify__daily_shop", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__daily_shop.sql", "original_file_path": "models/rest/shopify__daily_shop.sql", "unique_id": "model.shopify.shopify__daily_shop", "fqn": ["shopify", "rest", "shopify__daily_shop"], "alias": "shopify__daily_shop", "checksum": {"name": "sha256", "checksum": "26b5fbd6bc74a61de3e6051ace6b3c123b9a789b1871f098d3803e2a0a348335"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a day in your Shop, enriched with a suite of metrics.\n", "columns": {"date_day": {"name": "date_day", "description": "Day for which the shop activity is being measured.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders": {"name": "count_orders", "description": "Count of the distinct orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_line_items": {"name": "count_line_items", "description": "Count of the line items included in orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer email addresses who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "Average adjusted total per order placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount (in shop currency) applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to adjustments (in shop currency) on the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of the discount allocated to this day's orders in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied by customers on orders for this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_locations_ordered_from": {"name": "count_locations_ordered_from", "description": "Distinct locations with orders placed against them on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_discounts": {"name": "count_orders_with_discounts", "description": "Count of orders in which a discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_refunds": {"name": "count_orders_with_refunds", "description": "Count of orders in which there was a refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "Timestamp of the first order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "Timestamp of the last order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_refunded": {"name": "quantity_refunded", "description": "The quantity of goods ORDERED on this day that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net": {"name": "quantity_net", "description": "Net quantity sold from this shop on this day. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants_sold": {"name": "count_variants_sold", "description": "Distinct product variants sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_products_sold": {"name": "count_products_sold", "description": "Distinct products sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_gift_cards_sold": {"name": "quantity_gift_cards_sold", "description": "Quantity of gift cards sold on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_requiring_shipping": {"name": "quantity_requiring_shipping", "description": "Quantity of goods sold on this day that require shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers_abandoned_checkout": {"name": "count_customers_abandoned_checkout", "description": "Count of distinct customers who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails_abandoned_checkout": {"name": "count_customer_emails_abandoned_checkout", "description": "Count of distinct customer emails who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_attempted_delivery": {"name": "count_fulfillment_attempted_delivery", "description": "Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delivered": {"name": "count_fulfillment_delivered", "description": "Count of successful distinct fulfillments successfully delivered on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_in_transit": {"name": "count_fulfillment_in_transit", "description": "Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_out_for_delivery": {"name": "count_fulfillment_out_for_delivery", "description": "Count of distinct fulfillments being delivered to their final destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_ready_for_pickup": {"name": "count_fulfillment_ready_for_pickup", "description": "Count of distinct fulfillments ready for pickup at a shipping depot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_picked_up": {"name": "count_fulfillment_picked_up", "description": "Count of distinct fulfillments successfully picked up on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_printed": {"name": "count_fulfillment_label_printed", "description": "Count of distinct fulfillments for which a purchased shipping label has been printed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_purchased": {"name": "count_fulfillment_label_purchased", "description": "Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_confirmed": {"name": "count_fulfillment_confirmed", "description": "Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delayed": {"name": "count_fulfillment_delayed", "description": "Count of delayed distinct fulfillments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_line_item_count": {"name": "avg_line_item_count", "description": "Average line item count for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount": {"name": "avg_discount", "description": "Average total discount placed on orders on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_discount_amount": {"name": "avg_shipping_discount_amount", "description": "Average discount amount (in shop currency) allocated toward shipping on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_percentage_calc_discount_amount": {"name": "avg_percentage_calc_discount_amount", "description": "Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_fixed_amount_discount_amount": {"name": "avg_fixed_amount_discount_amount", "description": "Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_sold": {"name": "avg_quantity_sold", "description": "Average quantity sold per order on this day. Includes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_net": {"name": "avg_quantity_net", "description": "Average net quantity sold per order on this day. Excludes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.7180078, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__daily_shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith shop as (\n\n select *\n from {{ var('shopify_shop') }}\n),\n\ncalendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from {{ ref('int_shopify__daily_orders') }}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\ndaily_abandoned_checkouts as (\n\n select *\n from {{ ref('int_shopify__daily_abandoned_checkouts') }}\n),\n{% endif %}\n\n{% if var('shopify_using_fulfillment_event', false) %}\ndaily_fulfillment as (\n\n select *\n from {{ ref('int_shopify__daily_fulfillment') }}\n),\n{% endif %}\n\nshop_calendar as (\n\n select\n cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n {% endif %}\n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n {% endif %}\n \n)\n\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "shopify__calendar", "package": null, "version": null}, {"name": "int_shopify__daily_orders", "package": null, "version": null}, {"name": "int_shopify__daily_abandoned_checkouts", "package": null, "version": null}, {"name": "int_shopify__daily_fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__shop", "model.shopify.shopify__calendar", "model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__daily_shop.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n), __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n), __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n), shop as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n),\n\ncalendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('day', date_day) as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from __dbt__cte__int_shopify__daily_orders\n),\n\n\ndaily_abandoned_checkouts as (\n\n select *\n from __dbt__cte__int_shopify__daily_abandoned_checkouts\n),\n\n\n\ndaily_fulfillment as (\n\n select *\n from __dbt__cte__int_shopify__daily_fulfillment\n),\n\n\nshop_calendar as (\n\n select\n cast(date_trunc('day', calendar.date_day) as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n \n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n \n\n \n \n , coalesce(count_fulfillment_attempted_delivery, 0) as count_fulfillment_attempted_delivery\n \n , coalesce(count_fulfillment_delayed, 0) as count_fulfillment_delayed\n \n , coalesce(count_fulfillment_delivered, 0) as count_fulfillment_delivered\n \n , coalesce(count_fulfillment_failure, 0) as count_fulfillment_failure\n \n , coalesce(count_fulfillment_in_transit, 0) as count_fulfillment_in_transit\n \n , coalesce(count_fulfillment_out_for_delivery, 0) as count_fulfillment_out_for_delivery\n \n , coalesce(count_fulfillment_ready_for_pickup, 0) as count_fulfillment_ready_for_pickup\n \n , coalesce(count_fulfillment_picked_up, 0) as count_fulfillment_picked_up\n \n , coalesce(count_fulfillment_label_printed, 0) as count_fulfillment_label_printed\n \n , coalesce(count_fulfillment_label_purchased, 0) as count_fulfillment_label_purchased\n \n , coalesce(count_fulfillment_confirmed, 0) as count_fulfillment_confirmed\n \n \n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n \n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n \n\n \n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n \n \n)\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__daily_orders", "sql": " __dbt__cte__int_shopify__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify__daily_abandoned_checkouts", "sql": " __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n)"}, {"id": "model.shopify.int_shopify__daily_fulfillment", "sql": " __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_emails": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_emails", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_emails.sql", "original_file_path": "models/rest/shopify__customer_emails.sql", "unique_id": "model.shopify.shopify__customer_emails", "fqn": ["shopify", "rest", "shopify__customer_emails"], "alias": "shopify__customer_emails", "checksum": {"name": "sha256", "checksum": "950e6e68218fd53bf2bd11f089af340c092a4251e1fd9d8c9230bf9c298af01f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer email in Shopify.", "columns": {"last_fivetran_synced": {"name": "last_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_ids": {"name": "customer_ids", "description": "Comma-separated list of customer IDs associated with the email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone_numbers": {"name": "phone_numbers", "description": "Comma-separated list of phone numbers associated with this email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_updated_at": {"name": "last_updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money that the customer has spent on orders across their order history (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_account_created_at": {"name": "first_account_created_at", "description": "Timestamp of when the first account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_account_created_at": {"name": "last_account_created_at", "description": "Timestamp of when the last account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.6187685, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_emails\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customer_emails as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify__customer_email_rollup'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ ref('int_shopify__customer_email_rollup') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify__emails__order_aggregates' )}}\n where email is not null\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where email is not null\n group by 1,2\n{% endif %}\n\n), joined as (\n\n select \n customer_emails.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__emails__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star"], "nodes": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_emails.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), customer_emails as (\n\n select \n \"email\",\n \"source_relation\",\n \"customer_ids\",\n \"phone_numbers\",\n \"customer_tags\",\n \"first_account_created_at\",\n \"last_account_created_at\",\n \"last_updated_at\",\n \"marketing_consent_updated_at\",\n \"last_fivetran_synced\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"account_state\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\"\n from \"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify__emails__order_aggregates\n where email is not null\n\n\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where email is not null\n group by 1,2\n\n\n), joined as (\n\n select \n customer_emails.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n \n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__emails__order_aggregates", "sql": " __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__inventory_level__aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__inventory_level__aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__inventory_level__aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__inventory_level__aggregates.sql", "unique_id": "model.shopify.int_shopify__inventory_level__aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__inventory_level__aggregates"], "alias": "int_shopify__inventory_level__aggregates", "checksum": {"name": "sha256", "checksum": "71c148adee52b31e8a96b36110d93dba3f37be66f265625ca908744297ac0a92"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595382.787639, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select *\n from {{ var('shopify_order_line') }}\n),\n\nfulfillment as (\n\n select *\n from {{ var('shopify_fulfillment') }}\n),\n\norders as (\n\n select *\n from {{ var('shopify_order') }}\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n {{ dbt_utils.group_by(n=3) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_refunds"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__inventory_level__aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["location_id", "source_relation", "variant_id"], "time_spine": null}, "model.shopify.int_shopify__product__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__product__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__product__order_line_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__product__order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify__product__order_line_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__product__order_line_aggregates"], "alias": "int_shopify__product__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "7318e3e5faba66745a27e59d40674690031727a7c2719c8660c8c73a685e3896"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595382.7897804, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select *\n from {{ ref('shopify__order_lines') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders')}}\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__product__order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__products_with_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__products_with_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__products_with_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__products_with_aggregates.sql", "unique_id": "model.shopify.int_shopify__products_with_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__products_with_aggregates"], "alias": "int_shopify__products_with_aggregates", "checksum": {"name": "sha256", "checksum": "f76affed4b8f7e1cbce3598d02d4114978ee18b9e5b4583720285c3c7c19750d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595382.7903125, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith products as (\n\n select *\n from {{ var('shopify_product') }}\n), \n\ncollection_product as (\n\n select *\n from {{ var('shopify_collection_product') }}\n),\n\ncollection as (\n\n select *\n from {{ var('shopify_collection') }}\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from {{ var('shopify_product_tag') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n), \n\nproduct_media as (\n\n select *\n from {{ var('shopify_product_media') }}\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter=\"', '\") }} as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='value', delimiter=\"', '\") }} as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__collection_product", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__product_tag", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__products_with_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__discount_code_enriched": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discount_code_enriched", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discount_code_enriched.sql", "original_file_path": "models/rest/intermediate/int_shopify__discount_code_enriched.sql", "unique_id": "model.shopify.int_shopify__discount_code_enriched", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discount_code_enriched"], "alias": "int_shopify__discount_code_enriched", "checksum": {"name": "sha256", "checksum": "bcf513cc78532e595d895f3b33240d906515eaf4979369990586897a7bb64e84"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595377.8178492, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith discount_redeem_codes as (\n \n select *\n from {{ var('shopify_discount_redeem_code') }}\n),\n\ndiscount_applications as (\n\n select *\n from {{ var('shopify_discount_application') }}\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_basic') }}\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_bxgy') }}\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_free_shipping') }}\n\n {% if var('shopify_using_discount_code_app', False) %}\n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_app') }}\n {% endif %}\n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_application", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code", "model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discount_code_enriched.sql", "compiled": true, "compiled_code": "\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__daily_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__daily_abandoned_checkouts", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_abandoned_checkouts"], "alias": "int_shopify__daily_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "3ed79baa28d3b9160647ad92b70096d29c4bffe408b4d69e2fcd790e124f9074"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595377.8302085, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__order__shipping_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__order__shipping_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__order__shipping_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__order__shipping_aggregates.sql", "unique_id": "model.shopify.int_shopify__order__shipping_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__order__shipping_aggregates"], "alias": "int_shopify__order__shipping_aggregates", "checksum": {"name": "sha256", "checksum": "0b62dd0d5d3643dd2d497124c55db965c77cbf556e68645f15965bf80f3d3a82"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595382.789262, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from {{ var('shopify_order_shipping_line') }}\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from {{ var('shopify_order_shipping_tax_line') }}\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__order__shipping_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__orders__order_line_aggregates.sql", "original_file_path": "models/rest/intermediate/shopify__orders__order_line_aggregates.sql", "unique_id": "model.shopify.shopify__orders__order_line_aggregates", "fqn": ["shopify", "rest", "intermediate", "shopify__orders__order_line_aggregates"], "alias": "shopify__orders__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "dc06ee54fe54de8c7cd7a17fc15bb4ab1331d5d1f7ea6b71aabce4a6d9cc3a3f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.7855268, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"", "raw_code": "{{ config(materialized='table', enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_line as (\n\n select *\n from {{ var('shopify_order_line') }}\n\n), tax as (\n\n select\n *\n from {{ var('shopify_tax_line') }}\n\n), shipping as (\n\n select\n *\n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__orders__order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), order_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), tax as (\n\n select\n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), shipping as (\n\n select\n *\n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__daily_orders": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_orders", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_orders.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_orders.sql", "unique_id": "model.shopify.int_shopify__daily_orders", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_orders"], "alias": "int_shopify__daily_orders", "checksum": {"name": "sha256", "checksum": "f866152e2f91cf3593173286eeb1d4337212bc81a34a1b8550189f69081f69a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595377.8573325, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from {{ ref('shopify__order_lines') }}\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.shopify__orders", "model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_orders.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__customer_email_rollup": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__customer_email_rollup.sql", "original_file_path": "models/rest/intermediate/int_shopify__customer_email_rollup.sql", "unique_id": "model.shopify.int_shopify__customer_email_rollup", "fqn": ["shopify", "rest", "intermediate", "int_shopify__customer_email_rollup"], "alias": "int_shopify__customer_email_rollup", "checksum": {"name": "sha256", "checksum": "37f30d45093b6c1ed887121ee7e4b1ff6dafc2f9353024e4255b86946a64b431"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.7870975, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by created_timestamp desc) \n as customer_index\n\n from {{ var('shopify_customer') }}\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from {{ var('shopify_customer_tag' )}}\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n {{ fivetran_utils.string_agg(\"distinct cast(customers.customer_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_ids,\n {{ fivetran_utils.string_agg(\"distinct cast(customers.phone as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as phone_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(customer_tags.value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n {{ fivetran_utils.max_bool(\"case when customers.customer_index = 1 then customers.is_tax_exempt else null end\") }} as is_tax_exempt, -- since this changes every year\n {{ fivetran_utils.max_bool(\"customers.is_verified_email\") }} as is_verified_email\n\n -- for all other fields, just take the latest value\n {% set cols = adapter.get_columns_in_relation(ref('stg_shopify__customer')) %}\n {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', \n 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp',\n 'is_tax_exempt', 'is_verified_email'] %}\n {% for col in cols %}\n {% if col.column|lower not in except_cols %}\n , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }}\n {% endif %}\n {% endfor %}\n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_partition_by_cols", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.max_bool"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__customer_email_rollup.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by \n\n\n email\n\n\n order by created_timestamp desc) \n as customer_index\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n \n string_agg(distinct cast(customers.customer_id as TEXT), ', ')\n\n as customer_ids,\n \n string_agg(distinct cast(customers.phone as TEXT), ', ')\n\n as phone_numbers,\n \n string_agg(distinct cast(customer_tags.value as TEXT), ', ')\n\n as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n \n\n bool_or( case when customers.customer_index = 1 then customers.is_tax_exempt else null end )\n\n as is_tax_exempt, -- since this changes every year\n \n\n bool_or( customers.is_verified_email )\n\n as is_verified_email\n\n -- for all other fields, just take the latest value\n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.first_name else null end) as first_name\n \n \n \n , max(case when customers.customer_index = 1 then customers.last_name else null end) as last_name\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.default_address_id else null end) as default_address_id\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.account_state else null end) as account_state\n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.note else null end) as note\n \n \n \n , max(case when customers.customer_index = 1 then customers.currency else null end) as currency\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_consent_state else null end) as marketing_consent_state\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_opt_in_level else null end) as marketing_opt_in_level\n \n \n \n \n \n \n \n \n \n \n \n \n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.shopify__orders__order_refunds": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_refunds", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__orders__order_refunds.sql", "original_file_path": "models/rest/intermediate/shopify__orders__order_refunds.sql", "unique_id": "model.shopify.shopify__orders__order_refunds", "fqn": ["shopify", "rest", "intermediate", "shopify__orders__order_refunds"], "alias": "shopify__orders__order_refunds", "checksum": {"name": "sha256", "checksum": "b2779287393dd936f29751f0839d05d36aa9ac1ec21f071744d6d1c3047adc11"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595382.7860217, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith refunds as (\n\n select *\n from {{ var('shopify_refund') }}\n\n), order_line_refunds as (\n\n select *\n from {{ var('shopify_order_line_refund') }}\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__refund", "model.shopify_source.stg_shopify__order_line_refund"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__orders__order_refunds.sql", "compiled": true, "compiled_code": "\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "original_file_path": "models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discounts__abandoned_checkouts"], "alias": "int_shopify__discounts__abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "4db18a80ca151075ad7431fe218c35b61b96196951cf2da104512d277ca94f83"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595382.788732, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from {{ var('shopify_abandoned_checkout_discount_code') }}\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from {{ var('shopify_abandoned_checkout_shipping_line') }}\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["code", "source_relation", "type"], "time_spine": null}, "model.shopify.int_shopify__emails__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__emails__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__emails__order_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__emails__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__emails__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__emails__order_aggregates"], "alias": "int_shopify__emails__order_aggregates", "checksum": {"name": "sha256", "checksum": "1b106193505d9a5cbf6f64b6fbc51c6eb010151e48da445481c726fc0a5a1f46"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595382.78657, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_order') }}\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from {{ var('shopify_customer') }}\n where email is not null\n {{ dbt_utils.group_by(n=3) }}\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__emails__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.int_shopify__daily_fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_fulfillment", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_fulfillment.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_fulfillment.sql", "unique_id": "model.shopify.int_shopify__daily_fulfillment", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_fulfillment"], "alias": "int_shopify__daily_fulfillment", "checksum": {"name": "sha256", "checksum": "5d07c22ba6468bebf18c3be8c5d123914dc91b33eb036c4bc75feb1bd4f7529c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595377.9140756, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith fulfillment_event as (\n\n select *\n from {{ var('shopify_fulfillment_event') }}\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day\n\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discounts__order_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__discounts__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__discounts__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discounts__order_aggregates"], "alias": "int_shopify__discounts__order_aggregates", "checksum": {"name": "sha256", "checksum": "bf596881f17db03334a269b53a5856d2cddfe92d6bd8dffc26b5b779e874a480"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595382.788212, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_discount_code as (\n\n select *\n from {{ var('shopify_order_discount_code') }}\n),\n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_discount_code", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discounts__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["code", "source_relation", "type"], "time_spine": null}, "model.shopify.shopify__customers__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__customers__order_aggregates.sql", "original_file_path": "models/rest/intermediate/shopify__customers__order_aggregates.sql", "unique_id": "model.shopify.shopify__customers__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "shopify__customers__order_aggregates"], "alias": "shopify__customers__order_aggregates", "checksum": {"name": "sha256", "checksum": "e1af84adc51e48a677e22660a99ca8e7d48ee8fabc49c0b4505c8fc1c7233264"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595382.7849512, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_order') }}\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n {{ dbt_utils.group_by(n=2) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__customers__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify__product_variant_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__product_variant_metafields.sql", "original_file_path": "models/rest/metafields/shopify__product_variant_metafields.sql", "unique_id": "model.shopify.shopify__product_variant_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__product_variant_metafields"], "alias": "shopify__product_variant_metafields", "checksum": {"name": "sha256", "checksum": "aa2cdc58708d40d191a197a74aaa246cf15f5a6f3d984f70f378309283819367"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product_variant model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.847023, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_variant_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product_variant\",\n reference_values = ['variant', 'productvariant'],\n id_column = \"variant_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__product_variant_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_wherearethey'\n then value\n else null\n end\n )\n \n \n as avengers_wherearethey\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_wheninspace'\n then value\n else null\n end\n )\n \n \n as star_wars_wheninspace\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.variant_id,\n \n source_table.product_id,\n \n source_table.inventory_item_id,\n \n source_table.title,\n \n source_table.price,\n \n source_table.sku,\n \n source_table.position,\n \n source_table.inventory_policy,\n \n source_table.compare_at_price,\n \n source_table.fulfillment_service,\n \n source_table.inventory_management,\n \n source_table.is_taxable,\n \n source_table.barcode,\n \n source_table.grams,\n \n source_table.inventory_quantity,\n \n source_table.is_available_for_sale,\n \n source_table.display_name,\n \n source_table.legacy_resource_id,\n \n source_table.has_components_required,\n \n source_table.sellable_online_quantity,\n \n source_table.weight,\n \n source_table.weight_unit,\n \n source_table.option_1,\n \n source_table.option_2,\n \n source_table.option_3,\n \n source_table.tax_code,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_wherearethey) as metafield_avengers_wherearethey\n \n , max(lookup_object.star_wars_wheninspace) as metafield_star_wars_wheninspace\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.variant_id\n and lower(lookup_object.owner_resource) in ('variant', 'productvariant')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__order_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__order_metafields.sql", "original_file_path": "models/rest/metafields/shopify__order_metafields.sql", "unique_id": "model.shopify.shopify__order_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__order_metafields"], "alias": "shopify__order_metafields", "checksum": {"name": "sha256", "checksum": "bb661fd29f14623b4e28a900a1a3b19cd679f288fdcc6b2db556b48c38756164"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__order model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.8460274, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__order\", \n reference_values = ['order'],\n id_column = \"order_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__order_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_howmany'\n then value\n else null\n end\n )\n \n \n as avengers_howmany\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isinspace'\n then value\n else null\n end\n )\n \n \n as star_wars_isinspace\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_numbersequels'\n then value\n else null\n end\n )\n \n \n as star_wars_numbersequels\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.order_id,\n \n source_table.user_id,\n \n source_table.total_discounts,\n \n source_table.total_discounts_set,\n \n source_table.total_line_items_price,\n \n source_table.total_line_items_price_set,\n \n source_table.total_price,\n \n source_table.total_price_set,\n \n source_table.total_tax_set,\n \n source_table.total_tax,\n \n source_table.source_name,\n \n source_table.subtotal_price,\n \n source_table.has_taxes_included,\n \n source_table.total_weight,\n \n source_table.total_tip_received,\n \n source_table.landing_site_base_url,\n \n source_table.location_id,\n \n source_table.name,\n \n source_table.note,\n \n source_table.number,\n \n source_table.order_number,\n \n source_table.cancel_reason,\n \n source_table.cart_token,\n \n source_table.checkout_token,\n \n source_table.created_timestamp,\n \n source_table.cancelled_timestamp,\n \n source_table.closed_timestamp,\n \n source_table.processed_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.currency,\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.financial_status,\n \n source_table.fulfillment_status,\n \n source_table.referring_site,\n \n source_table.billing_address_address_1,\n \n source_table.billing_address_address_2,\n \n source_table.billing_address_city,\n \n source_table.billing_address_company,\n \n source_table.billing_address_country,\n \n source_table.billing_address_country_code,\n \n source_table.billing_address_first_name,\n \n source_table.billing_address_last_name,\n \n source_table.billing_address_latitude,\n \n source_table.billing_address_longitude,\n \n source_table.billing_address_name,\n \n source_table.billing_address_phone,\n \n source_table.billing_address_province,\n \n source_table.billing_address_province_code,\n \n source_table.billing_address_zip,\n \n source_table.browser_ip,\n \n source_table.total_shipping_price_set,\n \n source_table.shipping_address_address_1,\n \n source_table.shipping_address_address_2,\n \n source_table.shipping_address_city,\n \n source_table.shipping_address_company,\n \n source_table.shipping_address_country,\n \n source_table.shipping_address_country_code,\n \n source_table.shipping_address_first_name,\n \n source_table.shipping_address_last_name,\n \n source_table.shipping_address_latitude,\n \n source_table.shipping_address_longitude,\n \n source_table.shipping_address_name,\n \n source_table.shipping_address_phone,\n \n source_table.shipping_address_province,\n \n source_table.shipping_address_province_code,\n \n source_table.shipping_address_zip,\n \n source_table.token,\n \n source_table.app_id,\n \n source_table.checkout_id,\n \n source_table.client_details_user_agent,\n \n source_table.customer_locale,\n \n source_table.order_status_url,\n \n source_table.presentment_currency,\n \n source_table.is_test_order,\n \n source_table.is_deleted,\n \n source_table.has_buyer_accepted_marketing,\n \n source_table.is_confirmed,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_howmany) as metafield_avengers_howmany\n \n , max(lookup_object.star_wars_isinspace) as metafield_star_wars_isinspace\n \n , max(lookup_object.star_wars_numbersequels) as metafield_star_wars_numbersequels\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.order_id\n and lower(lookup_object.owner_resource) in ('order')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__product_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__product_metafields.sql", "original_file_path": "models/rest/metafields/shopify__product_metafields.sql", "unique_id": "model.shopify.shopify__product_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__product_metafields"], "alias": "shopify__product_metafields", "checksum": {"name": "sha256", "checksum": "4ecabbfee204dd6d41c39d99eafd9e4627db1710831547eaf6b5ecc38ddb012a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.8465402, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product\", \n reference_values = ['product'],\n id_column = \"product_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__product_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__customer_metafields.sql", "original_file_path": "models/rest/metafields/shopify__customer_metafields.sql", "unique_id": "model.shopify.shopify__customer_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__customer_metafields"], "alias": "shopify__customer_metafields", "checksum": {"name": "sha256", "checksum": "1d183df4efbd1c05e74961913c1e9eda390a0aa59312a8e7914d2e26ac02f0f8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__customer model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.8455358, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__customer\", \n reference_values = ['customer'],\n id_column = \"customer_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__customer_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'star_wars_firstname'\n then value\n else null\n end\n )\n \n \n as star_wars_firstname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_fullname'\n then value\n else null\n end\n )\n \n \n as star_wars_fullname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isjedi'\n then value\n else null\n end\n )\n \n \n as star_wars_isjedi\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_lastname'\n then value\n else null\n end\n )\n \n \n as star_wars_lastname\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.first_name,\n \n source_table.last_name,\n \n source_table.orders_count,\n \n source_table.default_address_id,\n \n source_table.phone,\n \n source_table.account_state,\n \n source_table.is_tax_exempt,\n \n source_table.total_spent,\n \n source_table.is_verified_email,\n \n source_table.note,\n \n source_table.currency,\n \n source_table.marketing_consent_state,\n \n source_table.marketing_opt_in_level,\n \n source_table.marketing_consent_updated_at,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.star_wars_firstname) as metafield_star_wars_firstname\n \n , max(lookup_object.star_wars_fullname) as metafield_star_wars_fullname\n \n , max(lookup_object.star_wars_isjedi) as metafield_star_wars_isjedi\n \n , max(lookup_object.star_wars_lastname) as metafield_star_wars_lastname\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.customer_id\n and lower(lookup_object.owner_resource) in ('customer')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__shop_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__shop_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__shop_metafields.sql", "original_file_path": "models/rest/metafields/shopify__shop_metafields.sql", "unique_id": "model.shopify.shopify__shop_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__shop_metafields"], "alias": "shopify__shop_metafields", "checksum": {"name": "sha256", "checksum": "a6c83b00e994807860ae5fbe8c7766fe0ace4300cfd53c5ba206ea6bf1831f3c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__shop model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.8475294, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__shop_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__shop\", \n reference_values = ['shop'],\n id_column = \"shop_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__shop_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__collection_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__collection_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__collection_metafields.sql", "original_file_path": "models/rest/metafields/shopify__collection_metafields.sql", "unique_id": "model.shopify.shopify__collection_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__collection_metafields"], "alias": "shopify__collection_metafields", "checksum": {"name": "sha256", "checksum": "9a0e96e6e6a37a4a6acea599ac4a0e4fec53dbb44e8a29d52c87ed7ac596bbde"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__collection model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.8450072, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__collection_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__collection\", \n reference_values = ['collection'],\n id_column = \"collection_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__collection_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__line_item_enhanced": {"database": "postgres", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "resource_type": "model", "package_name": "shopify", "path": "rest/standardized_models/shopify__line_item_enhanced.sql", "original_file_path": "models/rest/standardized_models/shopify__line_item_enhanced.sql", "unique_id": "model.shopify.shopify__line_item_enhanced", "fqn": ["shopify", "rest", "standardized_models", "shopify__line_item_enhanced"], "alias": "shopify__line_item_enhanced", "checksum": {"name": "sha256", "checksum": "b7aba2e3c1eb834a55bcb5174c0e3ad5db1e8699f88d14469d04cbdcbefe0e5c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It\u2019s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details.", "columns": {"header_id": {"name": "header_id", "description": "Id of corresponding order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_id": {"name": "line_item_id", "description": "Order line item id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_index": {"name": "line_item_index", "description": "Unique index of each line item id for each order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "record_type": {"name": "record_type", "description": "header or line_item", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the order was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "header_status": {"name": "header_status", "description": "Status of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_type": {"name": "billing_type", "description": "NA for Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "Currency used in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "Product ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_name": {"name": "product_name", "description": "Product name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "Product type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_type": {"name": "transaction_type", "description": "Transaction type (Charge, Refund, etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of units of this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_amount": {"name": "unit_amount", "description": "Amount per unit, or the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_amount": {"name": "discount_amount", "description": "The discount amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "The tax amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_amount": {"name": "total_amount", "description": "Order total", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_id": {"name": "payment_id", "description": "Transaction ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Transaction gateway for Shopify ('gift card', 'shopify payments', etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method_id": {"name": "payment_method_id", "description": "Shopify does not have a particular payment_method_id, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_at": {"name": "payment_at", "description": "Transaction processed timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fee_amount": {"name": "fee_amount", "description": "The total shipping fee associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_amount": {"name": "refund_amount", "description": "Refund amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_id": {"name": "subscription_id", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_plan": {"name": "subscription_plan", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_started_at": {"name": "subscription_period_started_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_ended_at": {"name": "subscription_period_ended_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_status": {"name": "subscription_status", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "Customer associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_created_at": {"name": "customer_created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_level": {"name": "customer_level", "description": "Whether 'account' or 'customer'. For Shopify, the level is 'customer'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_name": {"name": "customer_name", "description": "Customer name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_company": {"name": "customer_company", "description": "Associated customer's company noted on the shipping address if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "Customer email", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_city": {"name": "customer_city", "description": "Customer's shipping address city", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_country": {"name": "customer_country", "description": "Customer's shipping address country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/standardized_models/shopify__standardized_models.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.859279, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__line_item_enhanced\"", "raw_code": "{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith line_items as (\n\n select * \n from {{ var('shopify_order_line')}}\n\n), orders as ( \n\n select * \n from {{ var('shopify_order')}}\n\n), product as (\n\n select *\n from {{ var('shopify_product')}}\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n {{ fivetran_utils.string_agg(\"cast (transaction_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} AS transaction_id,\n {{ fivetran_utils.string_agg(\"cast (processed_timestamp as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as processed_timestamp,\n {{ fivetran_utils.string_agg('gateway', \"', '\") }} as gateway\n\n from {{ var('shopify_transaction')}}\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from {{ var('shopify_transaction')}}\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from {{ var('shopify_order_line_refund')}}\n group by 1,2\n\n), customer as (\n\n select *\n from {{ var('shopify_customer')}}\n\n), shipping as (\n\n select * \n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as {{ dbt.type_string() }}) as subscription_id,\n cast(null as {{ dbt.type_string() }}) as subscription_plan,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at,\n cast(null as {{ dbt.type_string() }}) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n {{ dbt.concat([\"c.first_name\", \"''\", \"c.last_name\"]) }} as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id,\n cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as {{ dbt.type_numeric() }}) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as {{ dbt.type_numeric() }}) as quantity,\n cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,\n cast(null as {{ dbt.type_numeric() }}) as discount_amount,\n cast(null as {{ dbt.type_numeric() }}) as tax_amount,\n cast(total_amount as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as {{ dbt.type_numeric() }}) as fee_amount,\n cast(null as {{ dbt.type_numeric() }}) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as {{ dbt.type_numeric() }}) as line_item_id,\n cast(0 as {{ dbt.type_numeric() }}) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as {{ dbt.type_numeric() }}) as product_id,\n cast(null as {{ dbt.type_string() }}) as product_name,\n transaction_type,\n billing_type,\n cast(null as {{ dbt.type_string() }}) as product_type,\n cast(null as {{ dbt.type_numeric() }}) as quantity,\n cast(null as {{ dbt.type_numeric() }}) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.dbt.type_timestamp", "macro.dbt.concat", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__customer", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/standardized_models/shopify__line_item_enhanced.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), line_items as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), orders as ( \n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n \n string_agg(cast (transaction_id as TEXT), ', ')\n\n AS transaction_id,\n \n string_agg(cast (processed_timestamp as TEXT), ', ')\n\n as processed_timestamp,\n \n string_agg(gateway, ', ')\n\n as gateway\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n group by 1,2\n\n), customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), shipping as (\n\n select * \n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as TEXT) as subscription_id,\n cast(null as TEXT) as subscription_plan,\n cast(null as timestamp) as subscription_period_started_at,\n cast(null as timestamp) as subscription_period_ended_at,\n cast(null as TEXT) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n c.first_name || '' || c.last_name as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as numeric(28,6)) as line_item_id,\n cast(line_item_index as numeric(28,6)) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as numeric(28,6)) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as numeric(28,6)) as quantity,\n cast(unit_amount as numeric(28,6)) as unit_amount,\n cast(null as numeric(28,6)) as discount_amount,\n cast(null as numeric(28,6)) as tax_amount,\n cast(total_amount as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as numeric(28,6)) as fee_amount,\n cast(null as numeric(28,6)) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as numeric(28,6)) as line_item_id,\n cast(0 as numeric(28,6)) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as numeric(28,6)) as product_id,\n cast(null as TEXT) as product_name,\n transaction_type,\n billing_type,\n cast(null as TEXT) as product_type,\n cast(null as numeric(28,6)) as quantity,\n cast(null as numeric(28,6)) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["header_id", "line_item_id", "source_relation"], "time_spine": null}, "model.shopify.shopify_gql__customer_email_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_email_cohorts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_email_cohorts.sql", "original_file_path": "models/graphql/shopify_gql__customer_email_cohorts.sql", "unique_id": "model.shopify.shopify_gql__customer_email_cohorts", "fqn": ["shopify", "graphql", "shopify_gql__customer_email_cohorts"], "alias": "shopify_gql__customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "44ea3b7181f25acbd8740e7b4084080f926680aeac54311144a29cf6dd814708"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's (on the EMAIL grain) performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "created_at": 1754595382.2937572, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'),\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'email'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify_gql__customer_emails') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify_gql__customer_emails", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customer_emails", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_email_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n email\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.email as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify_gql__customers": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customers", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customers.sql", "original_file_path": "models/graphql/shopify_gql__customers.sql", "unique_id": "model.shopify.shopify_gql__customers", "fqn": ["shopify", "graphql", "shopify_gql__customers"], "alias": "shopify_gql__customers", "checksum": {"name": "sha256", "checksum": "9c21a0b94a0b4b535719777ad86c81e3780eabb5274d18ef3bffa0b82fa98633"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money in shop currency that the customer has spent on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.344143, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customers\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customers as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify_gql__customer'), except=[\"orders_count\", \"total_spent\", \"unique_key\"]) }}\n from {{ ref('int_shopify_gql__customer') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__customers_order_aggregates' )}}\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_gql_abandoned_checkout' )}}\n where customer_id is not null\n group by 1,2\n{% endif %}\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags\n\n from {{ var('shopify_gql_customer_tag' )}}\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n {% endif %}\n\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customers_order_aggregates", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customers.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__customers_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated\n), customers as (\n\n select \n \"customer_id\",\n \"email\",\n \"first_name\",\n \"last_name\",\n \"phone\",\n \"account_state\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"marketing_consent_updated_at\",\n \"created_timestamp\",\n \"updated_timestamp\",\n \"_fivetran_synced\",\n \"source_relation\",\n \"default_address_id\"\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__customers_order_aggregates\n\n\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n where customer_id is not null\n group by 1,2\n\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as customer_tags\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n \n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__customers_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__customers_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify.shopify_gql__order_lines": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__order_lines", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__order_lines.sql", "original_file_path": "models/graphql/shopify_gql__order_lines.sql", "unique_id": "model.shopify.shopify_gql__order_lines", "fqn": ["shopify", "graphql", "shopify_gql__order_lines"], "alias": "shopify_gql__order_lines", "checksum": {"name": "sha256", "checksum": "05e8538403e3ee72811dc4d13bee21fd937ef51018cc15f1b72b25fb9f047d03"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item of an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_quantity": {"name": "refunded_quantity", "description": "Quantity of the item that has been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net_refunds": {"name": "quantity_net_refunds", "description": "Quantity ordered, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_compare_at_price": {"name": "variant_compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_position": {"name": "variant_position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sku": {"name": "variant_sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_taxable": {"name": "variant_is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "The weight value of the variant's inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "The unit of measurement for the variant's inventory item's weight.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_subtotal": {"name": "refunded_subtotal", "description": "Subtotal amount of the refund applied to the order line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_net_refunds": {"name": "subtotal_net_refunds", "description": "Subtotal of the order line with refunds subtracted in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_types": {"name": "restock_types", "description": "List of how this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_tax": {"name": "order_line_tax", "description": "Total taxes for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The total pre tax price of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.375251, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__order_line') }}\n\n), product_variants as (\n\n select *\n from {{ ref('int_shopify_gql__product_variant') }}\n\n), refunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), \n\n{% if var('shopify_gql_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_gql_product_variant_media') }}\n),\n{% endif %}\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n {{ fivetran_utils.string_agg(\"distinct cast(refunds.restock_type as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as restock_types\n from refunds\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n refunds_aggregated.restock_types,\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n product_variant_media.media_id,\n {% endif %}\n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_line", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__product_variant", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__order_lines.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n\n), product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"\n\n), refunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), \n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\n),\n\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n \n string_agg(distinct cast(refunds.restock_type as TEXT), ', ')\n\n as restock_types\n from refunds\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n refunds_aggregated.restock_types,\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n \n product_variant_media.media_id,\n \n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n\n \n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_line", "sql": " __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__transactions": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__transactions", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__transactions.sql", "original_file_path": "models/graphql/shopify_gql__transactions.sql", "unique_id": "model.shopify.shopify_gql__transactions", "fqn": ["shopify", "graphql", "shopify_gql__transactions"], "alias": "shopify_gql__transactions", "checksum": {"name": "sha256", "checksum": "a515293deae8b33e3c0c262d12f78da246ceff07bf83ee3f6d3458d27c8d7234"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of money included in the transaction in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of money included in the transaction in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of the date the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "exchange_rate": {"name": "exchange_rate", "description": "The exchange rate between the home currency and the currency of sale at the time of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_calculated_amount": {"name": "currency_exchange_calculated_amount", "description": "The total amount of the transaction with the currency exchange rate applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Method of payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_created_timestamp": {"name": "parent_created_timestamp", "description": "Created on timestamp of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_kind": {"name": "parent_kind", "description": "Kind of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_amount": {"name": "parent_amount", "description": "Amount of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_status": {"name": "parent_status", "description": "Status of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "Timestamp when the authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.387773, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__transactions\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith transactions as (\n select *\n from {{ var('shopify_gql_transaction') }} \n\n), tender_transactions as (\n\n select *\n from {{ var('shopify_gql_tender_transaction') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__order') }}\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount_shop as parent_amount,\n parent_transactions.status as parent_status,\n orders.location_id,\n orders.source_name \n\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n left join orders\n on transactions.order_id = orders.order_id\n and transactions.source_relation = orders.source_relation\n\n), exchange_rate as (\n\n select\n *,\n {# QUESTION/ISSUE: Cannot confirm if receipt looks the same in GraphQL #}\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount_shop as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.json_parse", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction", "model.shopify_source.stg_shopify_gql__tender_transaction", "model.shopify.int_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__transactions.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\" \n\n), tender_transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount_shop as parent_amount,\n parent_transactions.status as parent_status,\n orders.location_id,\n orders.source_name \n\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n left join orders\n on transactions.order_id = orders.order_id\n and transactions.source_relation = orders.source_relation\n\n), exchange_rate as (\n\n select\n *,\n \n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) as exchange_rate,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) * amount_shop as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__customer_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_cohorts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_cohorts.sql", "original_file_path": "models/graphql/shopify_gql__customer_cohorts.sql", "unique_id": "model.shopify.shopify_gql__customer_cohorts", "fqn": ["shopify", "graphql", "shopify_gql__customer_cohorts"], "alias": "shopify_gql__customer_cohorts", "checksum": {"name": "sha256", "checksum": "ee60abfcf8dbc62b9076eba78f3ae9049684e928f2bb727d820ae9bff594820c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "created_at": 1754595382.291047, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'),\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'customer_id'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify_gql__customers') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify_gql__customers", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customers", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__customers\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n customer_id\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify_gql__discounts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__discounts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__discounts.sql", "original_file_path": "models/graphql/shopify_gql__discounts.sql", "unique_id": "model.shopify.shopify_gql__discounts", "fqn": ["shopify", "graphql", "shopify_gql__discounts"], "alias": "shopify_gql__discounts", "checksum": {"name": "sha256", "checksum": "7a569223e2c4c3386f19482d1460516239b38fe1ff56f7c435ad56adcbe8a5e3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The case-insensitive discount code that customers use at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether the discount can be used only once per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "Number of times the discount has been used (asynchronously updated).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "Number of unique redeem codes associated with the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether `codes_count` is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "Timestamp when the discount ends or expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "Timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "Current status of the discount (e.g. 'active', 'expired', 'scheduled').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount\u2019s display name in the Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to 'all' or 'entitled' items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "How the discount value is interpreted (e.g., 'percentage', 'fixed_amount').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_discount_amount": {"name": "total_order_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off of orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_discount_amount": {"name": "total_abandoned_checkout_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_line_items_price": {"name": "total_order_line_items_price", "description": "Total monetary amount (in shop currency) of line items for orders that have used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_shipping_cost": {"name": "total_order_shipping_cost", "description": "Total shipping costs for orders that used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_refund_amount": {"name": "total_order_refund_amount", "description": "Total refunded amount (in shop currency) for orders that used this discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer emails who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_discount_amount": {"name": "avg_order_discount_amount", "description": "Average amount (in shop currency) of discount taken off orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "count_orders": {"name": "count_orders", "description": "Count of orders in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customers": {"name": "count_abandoned_checkout_customers", "description": "Distinct count of customers who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customer_emails": {"name": "count_abandoned_checkout_customer_emails", "description": "Distinct count of customer emails who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.4252992, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__discounts\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith discounts_enriched as (\n\n select *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as unique_key\n from {{ ref('int_shopify_gql__discount_code_enriched')}}\n),\n\norders_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__discounts_order_aggregates')}}\n),\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\nabandoned_checkouts_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__discounts_abandoned_checkouts')}}\n),\n{% endif %}\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n {% endif %} \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n {% endif %}\n)\n\nselect * \nfrom aggregates_joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__discount_code_enriched", "package": null, "version": null}, {"name": "int_shopify_gql__discounts_order_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__discounts_abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__discounts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n), __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__discounts_order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), discounts_enriched as (\n\n select *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_code_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n from __dbt__cte__int_shopify_gql__discount_code_enriched\n),\n\norders_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__discounts_order_aggregates\n),\n\n\nabandoned_checkouts_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts\n),\n\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n \n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n \n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n \n)\n\nselect * \nfrom aggregates_joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__discount_code_enriched", "sql": " __dbt__cte__int_shopify_gql__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n)"}, {"id": "model.shopify.int_shopify_gql__order_discount_code", "sql": " __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__discounts_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__discounts_order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}, {"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}, {"id": "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "sql": " __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__inventory_levels": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__inventory_levels", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__inventory_levels.sql", "original_file_path": "models/graphql/shopify_gql__inventory_levels.sql", "unique_id": "model.shopify.shopify_gql__inventory_levels", "fqn": ["shopify", "graphql", "shopify_gql__inventory_levels"], "alias": "shopify_gql__inventory_levels", "checksum": {"name": "sha256", "checksum": "4445bf0d90a7fc6692d5de872684081dc6e76bd29a80094451a7b855651b8cba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of inventory items (which have a 1:1 relationship with product variants) and locations. \nInventory Level = Inventory item @ a Location.\n", "columns": {"inventory_level_id": {"name": "inventory_level_id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The name of the country where the inventory level is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_item_deleted": {"name": "is_inventory_item_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "(DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_created_at": {"name": "inventory_item_created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_updated_at": {"name": "inventory_item_updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_location_deleted": {"name": "is_location_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_location_active": {"name": "is_location_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_created_at": {"name": "location_created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy_location": {"name": "is_legacy_location", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_name": {"name": "location_name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_updated_at": {"name": "location_updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_media_id": {"name": "variant_media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_variant_taxable": {"name": "is_variant_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_orders": {"name": "count_distinct_orders", "description": "The number of distinct orders placed from this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customers": {"name": "count_distinct_customers", "description": "The number of distinct customers (based on customer_id) that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customer_emails": {"name": "count_distinct_customer_emails", "description": "The number of distinct customer emails that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timetamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "The timestamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_refunds": {"name": "subtotal_sold_refunds", "description": "The monetary amount (in shop currency) of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_refunds": {"name": "quantity_sold_refunds", "description": "The quantity of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_subtotal_sold": {"name": "net_subtotal_sold", "description": "Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_quantity_sold": {"name": "net_quantity_sold", "description": "Net quantity sold from this inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_pending": {"name": "count_fulfillment_pending", "description": "Count of currently pending distinct fulfillments for this inventory level. \"Pending\" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_open": {"name": "count_fulfillment_open", "description": "Count of currently open distinct fulfillments for this inventory level. \"Open\" = The fulfillment has been acknowledged by the service and is in processing.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_success": {"name": "count_fulfillment_success", "description": "Count of successful distinct fulfillments for this inventory level. \"Success\" = The fulfillment was successful.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_cancelled": {"name": "count_fulfillment_cancelled", "description": "Count of cancelled distinct fulfillments for this inventory level. \"Cancelled\" = The fulfillment was cancelled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_error": {"name": "count_fulfillment_error", "description": "Count of distinct fulfillments for this inventory level that encountered an error. \"Error\" = There was an error with the fulfillment request.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of distinct fulfillments for this inventory level that failed. \"Failure\" = The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "available_quantity": {"name": "available_quantity", "description": "The available quantity that a merchant can sell, determined by coalescing the `quantity` where inventory_state_name = 'available' from `stg_shopify_gql__inventory_quantity`and `available_quantity` from the deprecated `stg_shopify_gql__inventory_level`. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "incoming_quantity": {"name": "incoming_quantity", "description": "The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "on_hand_quantity": {"name": "on_hand_quantity", "description": "The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "committed_quantity": {"name": "committed_quantity", "description": "The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reserved_quantity": {"name": "reserved_quantity", "description": "The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "damaged_quantity": {"name": "damaged_quantity", "description": "The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "safety_stock_quantity": {"name": "safety_stock_quantity", "description": "The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quality_control_quantity": {"name": "quality_control_quantity", "description": "The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.411806, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith inventory_level as (\n\n select *\n from {{ var('shopify_gql_inventory_level') }}\n), \n\ninventory_item as (\n\n select *\n from {{ var('shopify_gql_inventory_item') }}\n),\n\ninventory_quantity as (\n\n select *\n from {{ var('shopify_gql_inventory_quantity') }}\n),\n\nlocation as (\n\n select *\n from {{ var('shopify_gql_location') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n),\n\nproduct as (\n\n select *\n from {{ var('shopify_gql_product') }}\n),\n\ninventory_level_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__inventory_level_aggregates') }}\n),\n\n{% if var('shopify_gql_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_gql_product_variant_media') }}\n),\n{% endif %}\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%}\n {% for inventory_state in inventory_states -%}\n , sum(case when lower(inventory_state_name) = {{ \"'\" ~ inventory_state|lower ~ \"'\" }}\n then inventory_quantity.quantity end) as {{ inventory_state }}_quantity\n {% endfor -%}\n\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.country_name,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n product_variant_media.media_id as variant_media_id,\n {% endif %}\n\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }}\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n {% endif %}\n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n\n {% for inventory_state in inventory_states -%}\n , inventory_quantity_aggregated.{{ inventory_state }}_quantity\n {% endfor -%}\n\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}, {"name": "stg_shopify_gql__location", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "int_shopify_gql__inventory_level_aggregates", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level", "model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__inventory_quantity", "model.shopify_source.stg_shopify_gql__location", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product", "model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__inventory_levels.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify_gql__inventory_level_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), inventory_level as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\n), \n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\n),\n\ninventory_quantity as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\n),\n\nlocation as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n),\n\nproduct as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n),\n\ninventory_level_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__inventory_level_aggregates\n),\n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\n),\n\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n , sum(case when lower(inventory_state_name) = 'incoming'\n then inventory_quantity.quantity end) as incoming_quantity\n , sum(case when lower(inventory_state_name) = 'on_hand'\n then inventory_quantity.quantity end) as on_hand_quantity\n , sum(case when lower(inventory_state_name) = 'available'\n then inventory_quantity.quantity end) as available_quantity\n , sum(case when lower(inventory_state_name) = 'committed'\n then inventory_quantity.quantity end) as committed_quantity\n , sum(case when lower(inventory_state_name) = 'reserved'\n then inventory_quantity.quantity end) as reserved_quantity\n , sum(case when lower(inventory_state_name) = 'damaged'\n then inventory_quantity.quantity end) as damaged_quantity\n , sum(case when lower(inventory_state_name) = 'safety_stock'\n then inventory_quantity.quantity end) as safety_stock_quantity\n , sum(case when lower(inventory_state_name) = 'quality_control'\n then inventory_quantity.quantity end) as quality_control_quantity\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.country_name,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n\n \n product_variant_media.media_id as variant_media_id,\n \n\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n \n\n\n\n\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n \n join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n \n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n \n , coalesce(inventory_level_aggregated.count_fulfillment_pending, 0) as count_fulfillment_pending\n \n , coalesce(inventory_level_aggregated.count_fulfillment_open, 0) as count_fulfillment_open\n \n , coalesce(inventory_level_aggregated.count_fulfillment_success, 0) as count_fulfillment_success\n \n , coalesce(inventory_level_aggregated.count_fulfillment_cancelled, 0) as count_fulfillment_cancelled\n \n , coalesce(inventory_level_aggregated.count_fulfillment_error, 0) as count_fulfillment_error\n \n , coalesce(inventory_level_aggregated.count_fulfillment_failure, 0) as count_fulfillment_failure\n \n\n , inventory_quantity_aggregated.incoming_quantity\n , inventory_quantity_aggregated.on_hand_quantity\n , inventory_quantity_aggregated.available_quantity\n , inventory_quantity_aggregated.committed_quantity\n , inventory_quantity_aggregated.reserved_quantity\n , inventory_quantity_aggregated.damaged_quantity\n , inventory_quantity_aggregated.safety_stock_quantity\n , inventory_quantity_aggregated.quality_control_quantity\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_line", "sql": " __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify_gql__inventory_level_aggregates", "sql": " __dbt__cte__int_shopify_gql__inventory_level_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "location_id"], "time_spine": null}, "model.shopify.shopify_gql__customer_emails": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_emails", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_emails.sql", "original_file_path": "models/graphql/shopify_gql__customer_emails.sql", "unique_id": "model.shopify.shopify_gql__customer_emails", "fqn": ["shopify", "graphql", "shopify_gql__customer_emails"], "alias": "shopify_gql__customer_emails", "checksum": {"name": "sha256", "checksum": "af89662d410ca87ac66c148c1f5f7e4194cec7c47a6939591c5bc3b2bc113825"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer email in Shopify.", "columns": {"last_fivetran_synced": {"name": "last_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_ids": {"name": "customer_ids", "description": "Comma-separated list of customer IDs associated with the email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone_numbers": {"name": "phone_numbers", "description": "Comma-separated list of phone numbers associated with this email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_updated_at": {"name": "last_updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money that the customer has spent on orders across their order history (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_account_created_at": {"name": "first_account_created_at", "description": "Timestamp of when the first account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_account_created_at": {"name": "last_account_created_at", "description": "Timestamp of when the last account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.3487294, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customer_emails as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify_gql__customer_email_rollup'), except=[\"orders_count\", \"total_spent\", \"unique_key\"]) }}\n from {{ ref('int_shopify_gql__customer_email_rollup') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__emails_order_aggregates' )}}\n where email is not null\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ ref('int_shopify_gql__abandoned_checkout' )}}\n where email is not null\n group by 1,2\n{% endif %}\n\n), joined as (\n\n select \n customer_emails.*,\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify_gql__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify_gql__emails_order_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star"], "nodes": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.int_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_emails.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__emails_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), customer_emails as (\n\n select \n \"email\",\n \"source_relation\",\n \"customer_ids\",\n \"phone_numbers\",\n \"customer_tags\",\n \"first_account_created_at\",\n \"last_account_created_at\",\n \"last_updated_at\",\n \"marketing_consent_updated_at\",\n \"last_fivetran_synced\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"first_name\",\n \"last_name\",\n \"account_state\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"default_address_id\"\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer_email_rollup\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__emails_order_aggregates\n where email is not null\n\n\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n where email is not null\n group by 1,2\n\n\n), joined as (\n\n select \n customer_emails.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n \n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__emails_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__emails_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}, {"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["email", "source_relation"], "time_spine": null}, "model.shopify.shopify_gql__daily_shop": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__daily_shop", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__daily_shop.sql", "original_file_path": "models/graphql/shopify_gql__daily_shop.sql", "unique_id": "model.shopify.shopify_gql__daily_shop", "fqn": ["shopify", "graphql", "shopify_gql__daily_shop"], "alias": "shopify_gql__daily_shop", "checksum": {"name": "sha256", "checksum": "cab8dd258f8ec32221ccbf94b62a452a5070fc9714d799c939ee0fa6c48f9a5e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a day in your Shop, enriched with a suite of metrics.\n", "columns": {"date_day": {"name": "date_day", "description": "Day for which the shop activity is being measured.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders": {"name": "count_orders", "description": "Count of the distinct orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_line_items": {"name": "count_line_items", "description": "Count of the line items included in orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer email addresses who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "Average adjusted total per order placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount (in shop currency) applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to adjustments (in shop currency) on the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of the discount allocated to this day's orders in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied by customers on orders for this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_locations_ordered_from": {"name": "count_locations_ordered_from", "description": "Distinct locations with orders placed against them on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_discounts": {"name": "count_orders_with_discounts", "description": "Count of orders in which a discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_refunds": {"name": "count_orders_with_refunds", "description": "Count of orders in which there was a refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "Timestamp of the first order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "Timestamp of the last order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_refunded": {"name": "quantity_refunded", "description": "The quantity of goods ORDERED on this day that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net": {"name": "quantity_net", "description": "Net quantity sold from this shop on this day. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants_sold": {"name": "count_variants_sold", "description": "Distinct product variants sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_products_sold": {"name": "count_products_sold", "description": "Distinct products sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_gift_cards_sold": {"name": "quantity_gift_cards_sold", "description": "Quantity of gift cards sold on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_requiring_shipping": {"name": "quantity_requiring_shipping", "description": "Quantity of goods sold on this day that require shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers_abandoned_checkout": {"name": "count_customers_abandoned_checkout", "description": "Count of distinct customers who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails_abandoned_checkout": {"name": "count_customer_emails_abandoned_checkout", "description": "Count of distinct customer emails who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_attempted_delivery": {"name": "count_fulfillment_attempted_delivery", "description": "Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delivered": {"name": "count_fulfillment_delivered", "description": "Count of successful distinct fulfillments successfully delivered on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_in_transit": {"name": "count_fulfillment_in_transit", "description": "Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_out_for_delivery": {"name": "count_fulfillment_out_for_delivery", "description": "Count of distinct fulfillments being delivered to their final destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_ready_for_pickup": {"name": "count_fulfillment_ready_for_pickup", "description": "Count of distinct fulfillments ready for pickup at a shipping depot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_printed": {"name": "count_fulfillment_label_printed", "description": "Count of distinct fulfillments for which a purchased shipping label has been printed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_purchased": {"name": "count_fulfillment_label_purchased", "description": "Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_confirmed": {"name": "count_fulfillment_confirmed", "description": "Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delayed": {"name": "count_fulfillment_delayed", "description": "Count of delayed distinct fulfillments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_line_item_count": {"name": "avg_line_item_count", "description": "Average line item count for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount": {"name": "avg_discount", "description": "Average total discount placed on orders on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_discount_amount": {"name": "avg_shipping_discount_amount", "description": "Average discount amount (in shop currency) allocated toward shipping on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_percentage_calc_discount_amount": {"name": "avg_percentage_calc_discount_amount", "description": "Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_fixed_amount_discount_amount": {"name": "avg_fixed_amount_discount_amount", "description": "Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_sold": {"name": "avg_quantity_sold", "description": "Average quantity sold per order on this day. Includes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_net": {"name": "avg_quantity_net", "description": "Average net quantity sold per order on this day. Excludes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.4392912, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__daily_shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith shop as (\n\n select *\n from {{ var('shopify_gql_shop') }}\n),\n\ncalendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from {{ ref('int_shopify_gql__daily_orders') }}\n),\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\ndaily_abandoned_checkouts as (\n\n select *\n from {{ ref('int_shopify_gql__daily_abandoned_checkouts') }}\n),\n{% endif %}\n\n{% if var('shopify_gql_using_fulfillment_event', false) %}\ndaily_fulfillment as (\n\n select *\n from {{ ref('int_shopify_gql__daily_fulfillment') }}\n),\n{% endif %}\n\nshop_calendar as (\n\n select\n cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n {% endif %}\n\n {% if var('shopify_gql_using_fulfillment_event', false) %}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%}\n , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n {% endif %}\n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n {% endif %}\n\n {% if var('shopify_gql_using_fulfillment_event', false) %}\n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n {% endif %}\n \n)\n\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "shopify__calendar", "package": null, "version": null}, {"name": "int_shopify_gql__daily_orders", "package": null, "version": null}, {"name": "int_shopify_gql__daily_abandoned_checkouts", "package": null, "version": null}, {"name": "int_shopify_gql__daily_fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify_gql__shop", "model.shopify.shopify__calendar", "model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__daily_fulfillment"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__daily_shop.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n), __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), __dbt__cte__int_shopify_gql__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n), __dbt__cte__int_shopify_gql__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n), shop as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\n),\n\ncalendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('day', date_day) as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_orders\n),\n\n\ndaily_abandoned_checkouts as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_abandoned_checkouts\n),\n\n\n\ndaily_fulfillment as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_fulfillment\n),\n\n\nshop_calendar as (\n\n select\n cast(date_trunc('day', calendar.date_day) as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n \n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n \n\n \n \n , coalesce(count_fulfillment_attempted_delivery, 0) as count_fulfillment_attempted_delivery\n \n , coalesce(count_fulfillment_delayed, 0) as count_fulfillment_delayed\n \n , coalesce(count_fulfillment_delivered, 0) as count_fulfillment_delivered\n \n , coalesce(count_fulfillment_failure, 0) as count_fulfillment_failure\n \n , coalesce(count_fulfillment_in_transit, 0) as count_fulfillment_in_transit\n \n , coalesce(count_fulfillment_out_for_delivery, 0) as count_fulfillment_out_for_delivery\n \n , coalesce(count_fulfillment_ready_for_pickup, 0) as count_fulfillment_ready_for_pickup\n \n , coalesce(count_fulfillment_label_printed, 0) as count_fulfillment_label_printed\n \n , coalesce(count_fulfillment_label_purchased, 0) as count_fulfillment_label_purchased\n \n , coalesce(count_fulfillment_confirmed, 0) as count_fulfillment_confirmed\n \n \n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n \n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n \n\n \n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n \n \n)\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__daily_orders", "sql": " __dbt__cte__int_shopify_gql__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}, {"id": "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "sql": " __dbt__cte__int_shopify_gql__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n)"}, {"id": "model.shopify.int_shopify_gql__daily_fulfillment", "sql": " __dbt__cte__int_shopify_gql__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__products": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__products", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__products.sql", "original_file_path": "models/graphql/shopify_gql__products.sql", "unique_id": "model.shopify.shopify_gql__products", "fqn": ["shopify", "graphql", "shopify_gql__products"], "alias": "shopify_gql__products", "checksum": {"name": "sha256", "checksum": "2f676f8591456d8c9e51c9c86d2a748f05045aea58b9b9f9d470c5a5f09e0320"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a product. Hashed on 'product_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity_sold": {"name": "total_quantity_sold", "description": "Quantity of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (in shop currency) of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_net_refunds": {"name": "quantity_sold_net_refunds", "description": "Quantity of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_net_refunds": {"name": "subtotal_sold_net_refunds", "description": "Total amount (in shop currency) of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the product was first ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the product was most recently ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order_line": {"name": "avg_quantity_per_order_line", "description": "Average quantity per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_discount": {"name": "product_total_discount", "description": "Total discounts associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_discount_per_order_line": {"name": "product_avg_discount_per_order_line", "description": "Average discount per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_tax": {"name": "product_total_tax", "description": "Total taxes associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_tax_per_order_line": {"name": "product_avg_tax_per_order_line", "description": "Average taxes per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants": {"name": "count_variants", "description": "Count of product variants.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_product_media": {"name": "has_product_media", "description": "If the product has media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collections": {"name": "collections", "description": "Comma-separated list of collections associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tags": {"name": "tags", "description": "Comma-separated list of tags associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.3568501, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__products\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith products as (\n\n select *\n from {{ ref('int_shopify_gql__products_with_aggregates') }}\n\n), product_order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__product_order_line_aggregates')}}\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__products_with_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__product_order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.int_shopify_gql__product_order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__products.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__product_order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), products as (\n\n select *\n from __dbt__cte__int_shopify_gql__products_with_aggregates\n\n), product_order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__product_order_line_aggregates\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__products_with_aggregates", "sql": " __dbt__cte__int_shopify_gql__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__product_order_line_aggregates", "sql": " __dbt__cte__int_shopify_gql__product_order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__orders": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__orders", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__orders.sql", "original_file_path": "models/graphql/shopify_gql__orders.sql", "unique_id": "model.shopify.shopify_gql__orders", "fqn": ["shopify", "graphql", "shopify_gql__orders"], "alias": "shopify_gql__orders", "checksum": {"name": "sha256", "checksum": "2ecbe0d27380045217fefb1d40c135d7557dd131145cb6c48ae86521585cd5e5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing an order. Hashed on 'order_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_amount": {"name": "total_discounts_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_amount": {"name": "total_discounts_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_currency_code": {"name": "total_discounts_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_currency_code": {"name": "total_discounts_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_amount": {"name": "total_line_items_price_shop_amount", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_amount": {"name": "total_line_items_price_pres_amount", "description": "The sum of all line item prices in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_currency_codes": {"name": "total_line_items_price_shop_currency_codes", "description": "The three-letter codes (ISO 4217 format) for the shop currency used to display the total line item price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_currency_codes": {"name": "total_line_items_price_pres_currency_codes", "description": "The three-letter codes (ISO 4217 format) for the presentment currency used to display the total line item price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count": {"name": "line_item_count", "description": "Number of line items included in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_order_seq_number": {"name": "customer_order_seq_number", "description": "The sequential number of the order as it relates to the customer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "new_vs_repeat": {"name": "new_vs_repeat", "description": "Whether the order was a new or repeat order for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_amount": {"name": "shipping_cost_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_amount": {"name": "shipping_cost_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_currency_code": {"name": "shipping_cost_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_currency_code": {"name": "shipping_cost_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to the adjustment on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_total_shipping_tax": {"name": "order_total_shipping_tax", "description": "Total shipping tax attributed to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_tags": {"name": "order_tags", "description": "List of tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number_of_fulfillments": {"name": "number_of_fulfillments", "description": "Total fulfillments for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_services": {"name": "fulfillment_services", "description": "List of fulfillment services for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_companies": {"name": "tracking_companies", "description": "List of tracking companies for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "List of tracking numbers for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_amount": {"name": "total_tip_received_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_amount": {"name": "total_tip_received_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_currency_code": {"name": "total_tip_received_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_currency_code": {"name": "total_tip_received_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied on the order", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.3328204, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__orders\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ ref('int_shopify_gql__order') }}\n\n), order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), fulfillments as (\n\n select *\n from {{ ref('int_shopify_gql__order_fulfillment_aggregates') }}\n \n), order_adjustments as (\n\n select *\n from {{ ref('int_shopify_gql__order_adjustment') }}\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount_shop) as order_adjustment_amount,\n sum(tax_amount_shop) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from {{ ref('int_shopify_gql__order_discount_code') }}\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then value_amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then value_amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then value_amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_tags\n \n from {{ var('shopify_gql_order_tag') }}\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n (orders.total_price_shop_amount\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n order_lines.total_line_items_price_pres_amount,\n order_lines.total_line_items_price_shop_amount,\n order_lines.total_line_items_price_pres_currency_codes,\n order_lines.total_line_items_price_shop_currency_codes,\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__order_fulfillment_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__order_adjustment", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}, {"name": "int_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.shopify.shopify_partition_by_cols"], "nodes": ["model.shopify.int_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.int_shopify_gql__order_discount_code", "model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__orders.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_fulfillment_aggregates as (\n\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final\n), __dbt__cte__int_shopify_gql__order_adjustment as (\n\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), fulfillments as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_fulfillment_aggregates\n \n), order_adjustments as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_adjustment\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount_shop) as order_adjustment_amount,\n sum(tax_amount_shop) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then value_amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then value_amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then value_amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n (orders.total_price_shop_amount\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n order_lines.total_line_items_price_pres_amount,\n order_lines.total_line_items_price_shop_amount,\n order_lines.total_line_items_price_pres_currency_codes,\n order_lines.total_line_items_price_shop_currency_codes,\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by \n\n\n customer_id\n\n\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_fulfillment_aggregates as (\n\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify_gql__order_adjustment", "sql": " __dbt__cte__int_shopify_gql__order_adjustment as (\n\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify_gql__order_discount_code", "sql": " __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.int_shopify_gql__discount_code_enriched": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discount_code_enriched", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "unique_id": "model.shopify.int_shopify_gql__discount_code_enriched", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discount_code_enriched"], "alias": "int_shopify_gql__discount_code_enriched", "checksum": {"name": "sha256", "checksum": "d268ffc342662037c84c650aab638ba29d2e2136da8c908bc04508c9a7ddc129"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.2795205, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith discount_redeem_codes as (\n \n select *\n from {{ var('shopify_gql_discount_redeem_code') }}\n),\n\ndiscount_applications as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_basic') }}\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_bxgy') }}\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_free_shipping') }}\n\n {% if var('shopify_gql_using_discount_code_app', False) %}\n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_app') }}\n {% endif %}\n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code", "model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__discount_code_basic", "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "compiled": true, "compiled_code": "\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__products_with_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__products_with_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__products_with_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__products_with_aggregates"], "alias": "int_shopify_gql__products_with_aggregates", "checksum": {"name": "sha256", "checksum": "e193bda9d00349acc767910a46f163e2c0cbf21e745ac7e7268ab3a8429e3cac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.2920392, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith products as (\n\n select *\n from {{ var('shopify_gql_product') }}\n), \n\ncollection_product as (\n\n select *\n from {{ var('shopify_gql_collection_product') }}\n),\n\ncollection as (\n\n select *\n from {{ ref('int_shopify_gql__collection') }}\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from {{ var('shopify_gql_product_tag') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n), \n\nproduct_media as (\n\n select *\n from {{ var('shopify_gql_product_media') }}\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter=\"', '\") }} as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='value', delimiter=\"', '\") }} as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_product", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tag", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__collection_product", "model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__product_tag", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customers_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customers_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__customers_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__customers_order_aggregates"], "alias": "int_shopify_gql__customers_order_aggregates", "checksum": {"name": "sha256", "checksum": "d0a702cbdb5b6a1fb0b18326465045024d5cf44d97d55a324cb07c68f6927844"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.3048804, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify_gql__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_orders": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_orders", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_orders.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_orders.sql", "unique_id": "model.shopify.int_shopify_gql__daily_orders", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_orders"], "alias": "int_shopify_gql__daily_orders", "checksum": {"name": "sha256", "checksum": "65a52e078d07bc36095bbfe50d4c57f831d112c3229bd68887265843aaf50be4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.3136115, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from {{ ref('shopify_gql__order_lines') }}\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}, {"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.shopify_gql__orders", "model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_orders.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__emails_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__emails_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__emails_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__emails_order_aggregates"], "alias": "int_shopify_gql__emails_order_aggregates", "checksum": {"name": "sha256", "checksum": "46a6101b635fbaac9e4c4f48883e0c13893e9a0ea161d2e182bb07a5a8c5bf81"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.3241975, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n\n), order_aggregates as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify_gql__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from {{ var('shopify_gql_customer') }}\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "shopify_gql__transactions", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_shipping_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_shipping_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__order_shipping_aggregates"], "alias": "int_shopify_gql__order_shipping_aggregates", "checksum": {"name": "sha256", "checksum": "26bcfed5649b9547dd26cec0717b663322f2a11fe33a1018bba98b4a41ec0dce"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.333524, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from {{ var('shopify_gql_order_shipping_line') }}\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from {{ var('shopify_gql_order_shipping_tax_line') }}\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line", "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_fulfillment_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_fulfillment_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__order_fulfillment_aggregates"], "alias": "int_shopify_gql__order_fulfillment_aggregates", "checksum": {"name": "sha256", "checksum": "eab4b050977a64c32a911238f62cd031e55c7fdf4d70257621648e0100ef3bb6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.3419206, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith fulfillment as (\n\n select *\n from {{ var('shopify_gql_fulfillment') }}\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n{% if var('shopify_gql_using_fulfillment_tracking_info', False) %}\nfulfillment_tracking_info as (\n\n select *\n from {{ var('shopify_gql_fulfillment_tracking_info') }}\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_number as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_url as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_urls,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_company as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment.service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n{% else %}\nfinal as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n count_fulfillments.number_of_fulfillments,\n max(cast(null as {{ dbt.type_string() }})) as tracking_numbers,\n max(cast(null as {{ dbt.type_string() }})) as tracking_urls,\n max(cast(null as {{ dbt.type_string() }})) as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment.service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services\n \n from fulfillment\n left join count_fulfillments\n on fulfillment.order_id = count_fulfillments.order_id\n and fulfillment.source_relation = count_fulfillments.source_relation\n group by 1,2,3\n)\n{% endif %}\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__product_order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__product_order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__product_order_line_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__product_order_line_aggregates"], "alias": "int_shopify_gql__product_order_line_aggregates", "checksum": {"name": "sha256", "checksum": "920e1fc150f4213e06a67d88602663cef81d03069da2be99d221bea87c439370"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.3575153, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('shopify_gql__order_lines') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders')}}\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__orders_order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__orders_order_line_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__orders_order_line_aggregates"], "alias": "int_shopify_gql__orders_order_line_aggregates", "checksum": {"name": "sha256", "checksum": "d4920955a26e1fe0a86640c97e6cf61a18199255c10350c485aad97d1706beab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595378.3660557, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"", "raw_code": "{{ config(\n materialized='table', \n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')\n) }}\n\nwith order_line as (\n\n select *\n from {{ var('shopify_gql_order_line') }}\n\n), tax as (\n\n select\n *\n from {{ var('shopify_gql_tax_line') }}\n\n), shipping as (\n\n select\n *\n from {{ ref('int_shopify_gql__order_shipping_aggregates')}}\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(coalesce(order_line.quantity, 0)) as order_total_quantity,\n sum(coalesce(tax_aggregates.price, 0)) as order_total_tax,\n sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount,\n sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount,\n sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount,\n {{ fivetran_utils.string_agg(\"distinct cast(order_line.price_pres_currency_code as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as total_line_items_price_pres_currency_codes,\n {{ fivetran_utils.string_agg(\"distinct cast(order_line.price_shop_currency_code as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as total_line_items_price_shop_currency_codes\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n order_line_aggregates.total_line_items_price_pres_amount,\n order_line_aggregates.total_line_items_price_shop_amount,\n order_line_aggregates.total_line_items_price_pres_currency_codes,\n order_line_aggregates.total_line_items_price_shop_currency_codes,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line", "package": null, "version": null}, {"name": "int_shopify_gql__order_shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line", "model.shopify.int_shopify_gql__order_shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), order_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n\n), tax as (\n\n select\n *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n\n), shipping as (\n\n select\n *\n from __dbt__cte__int_shopify_gql__order_shipping_aggregates\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(coalesce(order_line.quantity, 0)) as order_total_quantity,\n sum(coalesce(tax_aggregates.price, 0)) as order_total_tax,\n sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount,\n sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount,\n sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount,\n \n string_agg(distinct cast(order_line.price_pres_currency_code as TEXT), ', ')\n\n as total_line_items_price_pres_currency_codes,\n \n string_agg(distinct cast(order_line.price_shop_currency_code as TEXT), ', ')\n\n as total_line_items_price_shop_currency_codes\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n order_line_aggregates.total_line_items_price_pres_amount,\n order_line_aggregates.total_line_items_price_shop_amount,\n order_line_aggregates.total_line_items_price_pres_currency_codes,\n order_line_aggregates.total_line_items_price_shop_currency_codes,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discounts_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discounts_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__discounts_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discounts_order_aggregates"], "alias": "int_shopify_gql__discounts_order_aggregates", "checksum": {"name": "sha256", "checksum": "28bcab684975ed061e765767dcc92ed6ca7a8c8f7235aee1d6c1ac349bae7799"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.378142, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_discount_code as (\n\n select *\n from {{ ref('int_shopify_gql__order_discount_code') }}\n),\n\norders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__order_discount_code", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n), order_discount_code as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_discount_code", "sql": " __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_fulfillment", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "unique_id": "model.shopify.int_shopify_gql__daily_fulfillment", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_fulfillment"], "alias": "int_shopify_gql__daily_fulfillment", "checksum": {"name": "sha256", "checksum": "6093ddf8463f9914ea1a6f6798a01d89e77af1f43f0ef6f475ceb741b0824740"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.385548, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', false) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith fulfillment_event as (\n\n select *\n from {{ var('shopify_gql_fulfillment_event') }}\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day\n\n {# Possible status values: https://shopify.dev/docs/api/admin-graphql/latest/objects/fulfillmentevent#field-FulfillmentEvent.fields.status #}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%}\n , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customer_email_rollup": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customer_email_rollup", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "unique_id": "model.shopify.int_shopify_gql__customer_email_rollup", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__customer_email_rollup"], "alias": "int_shopify_gql__customer_email_rollup", "checksum": {"name": "sha256", "checksum": "64c2801aa55efb47b328ad86e87224082a02e6ca3e915d5820e53f09078cd22a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595378.3952398, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__customer_email_rollup\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by created_timestamp desc) \n as customer_index\n\n from {{ ref('int_shopify_gql__customer') }}\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from {{ var('shopify_gql_customer_tag' )}}\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n {{ fivetran_utils.string_agg(\"distinct cast(customers.customer_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_ids,\n {{ fivetran_utils.string_agg(\"distinct cast(customers.phone as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as phone_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(customer_tags.value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n {{ fivetran_utils.max_bool(\"case when customers.customer_index = 1 then customers.is_tax_exempt else null end\") }} as is_tax_exempt, -- since this changes every year\n {{ fivetran_utils.max_bool(\"customers.is_verified_email\") }} as is_verified_email\n\n -- for all other fields, just take the latest value\n {% set cols = adapter.get_columns_in_relation(ref('int_shopify_gql__customer')) %}\n {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', \n 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp',\n 'is_tax_exempt', 'is_verified_email'] %}\n {% for col in cols %}\n {% if col.column|lower not in except_cols %}\n , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }}\n {% endif %}\n {% endfor %}\n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_partition_by_cols", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.max_bool"], "nodes": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by \n\n\n email\n\n\n order by created_timestamp desc) \n as customer_index\n\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n \n string_agg(distinct cast(customers.customer_id as TEXT), ', ')\n\n as customer_ids,\n \n string_agg(distinct cast(customers.phone as TEXT), ', ')\n\n as phone_numbers,\n \n string_agg(distinct cast(customer_tags.value as TEXT), ', ')\n\n as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n \n\n bool_or( case when customers.customer_index = 1 then customers.is_tax_exempt else null end )\n\n as is_tax_exempt, -- since this changes every year\n \n\n bool_or( customers.is_verified_email )\n\n as is_verified_email\n\n -- for all other fields, just take the latest value\n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.first_name else null end) as first_name\n \n \n \n , max(case when customers.customer_index = 1 then customers.last_name else null end) as last_name\n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.account_state else null end) as account_state\n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.note else null end) as note\n \n \n \n , max(case when customers.customer_index = 1 then customers.currency else null end) as currency\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_consent_state else null end) as marketing_consent_state\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_opt_in_level else null end) as marketing_opt_in_level\n \n \n \n \n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.unique_key else null end) as unique_key\n \n \n \n , max(case when customers.customer_index = 1 then customers.default_address_id else null end) as default_address_id\n \n \n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__orders_order_refunds": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_refunds", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "unique_id": "model.shopify.int_shopify_gql__orders_order_refunds", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__orders_order_refunds"], "alias": "int_shopify_gql__orders_order_refunds", "checksum": {"name": "sha256", "checksum": "5c76fbeaab2dd2bff9d13131a4e4fb19a7716c825c70436c6c42ff0f8f1f6234"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.412732, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith refunds as (\n\n select *\n from {{ var('shopify_gql_refund') }}\n\n), order_line_refunds as (\n\n select *\n from {{ var('shopify_gql_order_line_refund') }}\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__refund", "model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "compiled": true, "compiled_code": "\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discounts_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discounts_abandoned_checkouts"], "alias": "int_shopify_gql__discounts_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "ab9f8f0b086697ca51e0f7ffc6005ff2797126920b53eb844a2e5e9ed34f5da7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.4214125, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ ref('int_shopify_gql__abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from {{ var('shopify_gql_abandoned_checkout_discount_code') }}\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_abandoned_checkouts"], "alias": "int_shopify_gql__daily_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "0afd0194490f924273b15c246f6827d0a5fe61b0a084cbaf0673a36995d63d7b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.4308782, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ ref('int_shopify_gql__abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.int_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__inventory_level_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__inventory_level_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__inventory_level_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__inventory_level_aggregates"], "alias": "int_shopify_gql__inventory_level_aggregates", "checksum": {"name": "sha256", "checksum": "e25fd92bb71fc3846d1c2e59cf59c2bbdb36b4d99ba571160394a38b4854625a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.4392989, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__order_line') }}\n),\n\nfulfillment as (\n\n select *\n from {{ var('shopify_gql_fulfillment') }}\n),\n\norders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n {# open and pending are set to be deprecated in the future by Shopify #}\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n {{ dbt_utils.group_by(n=3) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}, {"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify.int_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_refunds"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_line", "sql": " __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_adjustment", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "unique_id": "model.shopify.int_shopify_gql__order_adjustment", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_adjustment"], "alias": "int_shopify_gql__order_adjustment", "checksum": {"name": "sha256", "checksum": "566b80b0396e349d2332bee356ba5a1d82377b770a0ff4905c5e8d0ab17ddcb8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.4514937, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_adjustment as (\n\n select *\n from {{ var('shopify_gql_order_adjustment') }}\n),\n\nrefund as (\n\n select *\n from {{ var('shopify_gql_refund') }}\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}, {"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment", "model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "compiled": true, "compiled_code": "\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_discount_code", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "unique_id": "model.shopify.int_shopify_gql__order_discount_code", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_discount_code"], "alias": "int_shopify_gql__order_discount_code", "checksum": {"name": "sha256", "checksum": "2c39fac4f334420b741ddf5b87e22b5ace34b1e5183fde13fefd3564e4a85353"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.4602172, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_discount_code as (\n\n select *\n from {{ var('shopify_gql_order_discount_code') }}\n),\n\ndiscount_application as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code", "model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order.sql", "unique_id": "model.shopify.int_shopify_gql__order", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order"], "alias": "int_shopify_gql__order", "checksum": {"name": "sha256", "checksum": "d39c46fbe7a2d41c1b096e78f78ba70cf0d6930f622f93b2424f3c03517cf0ef"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595378.469128, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select * \n from {{ var('shopify_gql_order') }}\n)\n\n{% if var('shopify_gql_using_customer_visit', True) %}\n, customer_visit as (\n \n select * \n from {{ var('shopify_gql_customer_visit') }}\n),\n\njoined as (\n\n select \n orders.*,\n customer_visit.referring_site,\n customer_visit.landing_page as landing_site_base_url\n from orders\n left join customer_visit\n on orders.order_id = customer_visit.order_id\n and orders.source_relation = customer_visit.source_relation\n)\n\nselect *\nfrom joined\n\n{% else %}\n\nselect \n orders.*,\n cast(null as {{ dbt.type_string() }}) as referring_site,\n cast(null as {{ dbt.type_string() }}) as landing_site_base_url\nfrom orders\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n)\n\n\n, customer_visit as (\n \n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\n),\n\njoined as (\n\n select \n orders.*,\n customer_visit.referring_site,\n customer_visit.landing_page as landing_site_base_url\n from orders\n left join customer_visit\n on orders.order_id = customer_visit.order_id\n and orders.source_relation = customer_visit.source_relation\n)\n\nselect *\nfrom joined\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__product_variant", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__product_variant.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__product_variant.sql", "unique_id": "model.shopify.int_shopify_gql__product_variant", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__product_variant"], "alias": "int_shopify_gql__product_variant", "checksum": {"name": "sha256", "checksum": "9fd96455970237120c405b947004cecc05bd570910786e801daa7df3cf823a5b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595378.4789488, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith product_variants as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n),\n\ninventory_item as (\n\n select *\n from {{ var('shopify_gql_inventory_item') }}\n),\n\njoined as (\n\n select\n product_variants.*,\n inventory_item.measurement_weight_value as weight,\n inventory_item.measurement_weight_unit as weight_unit\n\n from product_variants\n left join inventory_item\n on product_variants.inventory_item_id = inventory_item.inventory_item_id\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n),\n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\n),\n\njoined as (\n\n select\n product_variants.*,\n inventory_item.measurement_weight_value as weight,\n inventory_item.measurement_weight_unit as weight_unit\n\n from product_variants\n left join inventory_item\n on product_variants.inventory_item_id = inventory_item.inventory_item_id\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__collection": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__collection", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__collection.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__collection.sql", "unique_id": "model.shopify.int_shopify_gql__collection", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__collection"], "alias": "int_shopify_gql__collection", "checksum": {"name": "sha256", "checksum": "79c88599b5c946df080af1c74d71b27aed4f7771a481e1c5f675687ea792341a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595378.4894316, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith collection as (\n\n select *\n from {{ var('shopify_gql_collection') }}\n)\n\n{% if var('shopify_gql_using_collection_rule', False) %}\n, collection_rule as (\n\n select *\n from {{ var('shopify_gql_collection_rule') }}\n),\n\nprep_collection_rule as (\n\n select \n collection_id,\n source_relation,\n '{\"column\":\"' || columns || '\",\"relation\":\"' || relation || '\",\"condition\":\"' || condition || '\"}' as rule\n from collection_rule\n),\n\nagg_collection_rule as (\n \n select \n collection_id,\n source_relation,\n '[' || {{ fivetran_utils.string_agg(\"rule\", \"','\") }} || ']' as rules\n from prep_collection_rule\n group by 1,2\n),\n\njoined as (\n\n select \n collection.*,\n agg_collection_rule.rules\n from collection\n left join agg_collection_rule\n on collection.collection_id = agg_collection_rule.collection_id\n and collection.source_relation = agg_collection_rule.source_relation\n)\n\nselect *\nfrom joined\n\n{% else %}\nselect \n collection.*,\n cast(null as {{ dbt.type_string() }}) as rules\nfrom collection\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__collection.sql", "compiled": true, "compiled_code": "\n\nwith collection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\n)\n\n\nselect \n collection.*,\n cast(null as TEXT) as rules\nfrom collection\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__abandoned_checkout", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "unique_id": "model.shopify.int_shopify_gql__abandoned_checkout", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__abandoned_checkout"], "alias": "int_shopify_gql__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "1fbb259948ecde6f3a26ef67f85419e23adb92a76099e8951574038b36f320eb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.498853, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_gql_abandoned_checkout') }}\n),\n\ncustomer as (\n\n select *\n from {{ var('shopify_gql_customer') }}\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customer": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customer", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__customer.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__customer.sql", "unique_id": "model.shopify.int_shopify_gql__customer", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__customer"], "alias": "int_shopify_gql__customer", "checksum": {"name": "sha256", "checksum": "42669a857b1fdc53d88ee34544dfc078e52ceb729cfe1fe4fc47b48691288e07"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595378.5078695, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customer as (\n\n select *\n from {{ var('shopify_gql_customer') }}\n),\n\ncustomer_address as (\n\n select *\n from {{ var('shopify_gql_customer_address') }}\n),\n\ncustomer_default_address as (\n\n select *\n from customer_address\n where coalesce(is_default, false)\n),\n\njoined as (\n\n select \n customer.*,\n customer_default_address.customer_address_id as default_address_id\n {# QUESTION: maybe add other fields that are helpful (would be new)? #}\n \n from customer \n left join customer_default_address\n on customer_default_address.customer_id = customer.customer_id\n and customer_default_address.source_relation = customer.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__customer.sql", "compiled": true, "compiled_code": "\n\nwith customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\ncustomer_address as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\n),\n\ncustomer_default_address as (\n\n select *\n from customer_address\n where coalesce(is_default, false)\n),\n\njoined as (\n\n select \n customer.*,\n customer_default_address.customer_address_id as default_address_id\n \n \n from customer \n left join customer_default_address\n on customer_default_address.customer_id = customer.customer_id\n and customer_default_address.source_relation = customer.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_line": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_line", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_line.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_line.sql", "unique_id": "model.shopify.int_shopify_gql__order_line", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_line"], "alias": "int_shopify_gql__order_line", "checksum": {"name": "sha256", "checksum": "d31c98c59428343bb271372b984f57abf5a5c0ef5b2acc38050034d694a12bc2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1754595378.5167286, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_line as (\n \n select *\n from {{ var('shopify_gql_order_line') }}\n),\n\ntax_line as (\n\n select *\n from {{ var('shopify_gql_tax_line') }}\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n{% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\nfulfillment_order_line_item as (\n\n select *\n from {{ var('shopify_gql_fulfillment_order_line_item') }}\n),\n{% endif %}\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n {% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n {% else %}\n cast(null as {{ dbt.type_int() }}) as fulfillable_quantity,\n cast(null as {{ dbt.type_string() }}) as weight_unit,\n cast(null as {{ dbt.type_float() }}) as weight_value\n {% endif %}\n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n {% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line", "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_line.sql", "compiled": true, "compiled_code": "\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__product_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__product_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__product_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__product_metafields.sql", "unique_id": "model.shopify.shopify_gql__product_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__product_metafields"], "alias": "shopify_gql__product_metafields", "checksum": {"name": "sha256", "checksum": "e662128efd355a0a62e3fdd489bcec4cbec57e7f5630e356a1ce31cdbf150fa5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__product model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.8671367, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__product_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify_gql__product\", \n reference_values = ['product'],\n id_column = \"product_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__product_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bc_brenbre'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bc_brenbre\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.product_id,\n \n source_table.handle,\n \n source_table.product_type,\n \n source_table.title,\n \n source_table.vendor,\n \n source_table.status,\n \n source_table.is_deleted,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.published_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bc_brenbre) as metafield_bea81c1795a612d8fc3a232b156467bc_brenbre\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42) as metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.product_id\n and lower(lookup_object.owner_resource) in ('product')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__collection_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__collection_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__collection_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__collection_metafields.sql", "unique_id": "model.shopify.shopify_gql__collection_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__collection_metafields"], "alias": "shopify_gql__collection_metafields", "checksum": {"name": "sha256", "checksum": "32b746ed89b86970bc65491e90337339d95f490f4b53efbad3c2d67b17c29056"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__collection model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.865635, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__collection_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__collection\", \n reference_values = ['collection'],\n id_column = \"collection_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__collection_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bd_gwhebwrb'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bd_gwhebwrb\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c3_wgewvevw'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c3_wgewvevw\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.collection_id,\n \n source_table.is_deleted,\n \n source_table.rule_logic,\n \n source_table.handle,\n \n source_table.sort_order,\n \n source_table.title,\n \n source_table.updated_at,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.rules\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bd_gwhebwrb) as metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c3_wgewvevw) as metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.collection_id\n and lower(lookup_object.owner_resource) in ('collection')\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__customer_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__customer_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__customer_metafields.sql", "unique_id": "model.shopify.shopify_gql__customer_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__customer_metafields"], "alias": "shopify_gql__customer_metafields", "checksum": {"name": "sha256", "checksum": "6baad0e1b580a1d84fbd7b945503df32990beafd0d64caa90296378d893291fb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__customer model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.8661408, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__customer\", \n reference_values = ['customer'],\n id_column = \"customer_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__customer_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467be_bwrtbnwrj'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467be_bwrtbnwrj\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c4_brewbrewbre'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c4_brewbrewbre\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.first_name,\n \n source_table.last_name,\n \n source_table.orders_count,\n \n source_table.phone,\n \n source_table.account_state,\n \n source_table.is_tax_exempt,\n \n source_table.total_spent,\n \n source_table.is_verified_email,\n \n source_table.note,\n \n source_table.currency,\n \n source_table.marketing_consent_state,\n \n source_table.marketing_opt_in_level,\n \n source_table.marketing_consent_updated_at,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.default_address_id\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467be_bwrtbnwrj) as metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c4_brewbrewbre) as metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.customer_id\n and lower(lookup_object.owner_resource) in ('customer')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__shop_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__shop_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__shop_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__shop_metafields.sql", "unique_id": "model.shopify.shopify_gql__shop_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__shop_metafields"], "alias": "shopify_gql__shop_metafields", "checksum": {"name": "sha256", "checksum": "e4981591a733469551b3e4de1f177957b0575b0f2a7a2fd1a9c87926c9be0fad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__shop model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.8681128, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__shop_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify_gql__shop\", \n reference_values = ['shop'],\n id_column = \"shop_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__shop_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c0_gwrgew'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c0_gwrgew\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.shop_id,\n \n source_table.name,\n \n source_table.is_deleted,\n \n source_table.address_1,\n \n source_table.address_2,\n \n source_table.city,\n \n source_table.province,\n \n source_table.province_code,\n \n source_table.country,\n \n source_table.country_code,\n \n source_table.country_name,\n \n source_table.zip,\n \n source_table.latitude,\n \n source_table.longitude,\n \n source_table.currency,\n \n source_table.enabled_presentment_currencies,\n \n source_table.customer_email,\n \n source_table.email,\n \n source_table.domain,\n \n source_table.phone,\n \n source_table.timezone_abbreviation,\n \n source_table.timezone_offset,\n \n source_table.timezone_offset_minutes,\n \n source_table.iana_timezone,\n \n source_table.primary_locale,\n \n source_table.weight_unit,\n \n source_table.myshopify_domain,\n \n source_table.shop_owner,\n \n source_table.has_shipping_taxes,\n \n source_table.has_taxes_included_in_price,\n \n source_table.has_storefront,\n \n source_table.has_checkout_api_supported,\n \n source_table.money_format,\n \n source_table.money_in_emails_format,\n \n source_table.money_with_currency_format,\n \n source_table.money_with_currency_in_emails_format,\n \n source_table.plan_display_name,\n \n source_table.is_password_enabled,\n \n source_table.is_setup_required,\n \n source_table.created_at,\n \n source_table.updated_at,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c0_gwrgew) as metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.shop_id\n and lower(lookup_object.owner_resource) in ('shop')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__order_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__order_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__order_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__order_metafields.sql", "unique_id": "model.shopify.shopify_gql__order_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__order_metafields"], "alias": "shopify_gql__order_metafields", "checksum": {"name": "sha256", "checksum": "9fac4f22b24cd29d081991b5d98aa549f4e86f07b07d203a5ff11c21b304b7a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__order model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.866659, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__order_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__order\", \n reference_values = ['order'],\n id_column = \"order_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}\n\n{# Does not contain total_line_items_price columns as these are calculated in shopify_gql_orders__order_line_aggregates in GraphQL #}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__order_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bf_htynetnbw'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bf_htynetnbw\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.order_id,\n \n source_table.user_id,\n \n source_table.total_discounts_pres_amount,\n \n source_table.total_discounts_pres_currency_code,\n \n source_table.total_discounts_shop_amount,\n \n source_table.total_discounts_shop_currency_code,\n \n source_table.total_price_pres_amount,\n \n source_table.total_price_pres_currency_code,\n \n source_table.total_price_shop_amount,\n \n source_table.total_price_shop_currency_code,\n \n source_table.total_tax_pres_amount,\n \n source_table.total_tax_pres_currency_code,\n \n source_table.total_tax_shop_amount,\n \n source_table.total_tax_shop_currency_code,\n \n source_table.source_name,\n \n source_table.subtotal_price_pres_amount,\n \n source_table.subtotal_price_pres_currency_code,\n \n source_table.subtotal_price_shop_amount,\n \n source_table.subtotal_price_shop_currency_code,\n \n source_table.has_taxes_included,\n \n source_table.total_weight,\n \n source_table.total_tip_received_pres_amount,\n \n source_table.total_tip_received_pres_currency_code,\n \n source_table.total_tip_received_shop_amount,\n \n source_table.total_tip_received_shop_currency_code,\n \n source_table.location_id,\n \n source_table.name,\n \n source_table.note,\n \n source_table.number,\n \n source_table.cancel_reason,\n \n source_table.created_timestamp,\n \n source_table.cancelled_timestamp,\n \n source_table.closed_timestamp,\n \n source_table.processed_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.currency,\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.financial_status,\n \n source_table.fulfillment_status,\n \n source_table.billing_address_address_1,\n \n source_table.billing_address_address_2,\n \n source_table.billing_address_city,\n \n source_table.billing_address_company,\n \n source_table.billing_address_country,\n \n source_table.billing_address_country_code,\n \n source_table.billing_address_first_name,\n \n source_table.billing_address_last_name,\n \n source_table.billing_address_latitude,\n \n source_table.billing_address_longitude,\n \n source_table.billing_address_name,\n \n source_table.billing_address_phone,\n \n source_table.billing_address_province,\n \n source_table.billing_address_province_code,\n \n source_table.billing_address_zip,\n \n source_table.browser_ip,\n \n source_table.shipping_cost_pres_amount,\n \n source_table.shipping_cost_pres_currency_code,\n \n source_table.shipping_cost_shop_amount,\n \n source_table.shipping_cost_shop_currency_code,\n \n source_table.shipping_address_address_1,\n \n source_table.shipping_address_address_2,\n \n source_table.shipping_address_city,\n \n source_table.shipping_address_company,\n \n source_table.shipping_address_country,\n \n source_table.shipping_address_country_code,\n \n source_table.shipping_address_first_name,\n \n source_table.shipping_address_last_name,\n \n source_table.shipping_address_latitude,\n \n source_table.shipping_address_longitude,\n \n source_table.shipping_address_name,\n \n source_table.shipping_address_phone,\n \n source_table.shipping_address_province,\n \n source_table.shipping_address_province_code,\n \n source_table.shipping_address_zip,\n \n source_table.app_id,\n \n source_table.customer_locale,\n \n source_table.order_status_url,\n \n source_table.presentment_currency,\n \n source_table.is_test_order,\n \n source_table.is_deleted,\n \n source_table.has_buyer_accepted_marketing,\n \n source_table.is_confirmed,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.referring_site,\n \n source_table.landing_site_base_url\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bf_htynetnbw) as metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe) as metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.order_id\n and lower(lookup_object.owner_resource) in ('order')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88\n)\n\nselect *\nfrom final\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__product_variant_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__product_variant_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__product_variant_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__product_variant_metafields.sql", "unique_id": "model.shopify.shopify_gql__product_variant_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__product_variant_metafields"], "alias": "shopify_gql__product_variant_metafields", "checksum": {"name": "sha256", "checksum": "78d300b3aa3591fe3640572e9da4b3d8deb530699a6526cbcc9eb6b629ef698b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__product_variant model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.8676317, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__product_variant_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__product_variant\",\n reference_values = ['variant', 'productvariant'],\n id_column = \"variant_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__product_variant_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__line_item_enhanced": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__line_item_enhanced", "resource_type": "model", "package_name": "shopify", "path": "graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "original_file_path": "models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "unique_id": "model.shopify.shopify_gql__line_item_enhanced", "fqn": ["shopify", "graphql", "standardized_models", "shopify_gql__line_item_enhanced"], "alias": "shopify_gql__line_item_enhanced", "checksum": {"name": "sha256", "checksum": "397d1387f769ec2a75bd7c041e9c6fd40a46cd420f15904cd27c12ca712fcc84"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It\u2019s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details.", "columns": {"header_id": {"name": "header_id", "description": "Id of corresponding order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_id": {"name": "line_item_id", "description": "Order line item id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_index": {"name": "line_item_index", "description": "Unique index of each line item id for each order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "record_type": {"name": "record_type", "description": "header or line_item", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the order was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "header_status": {"name": "header_status", "description": "Status of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_type": {"name": "billing_type", "description": "NA for Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "Currency used in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "Product ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_name": {"name": "product_name", "description": "Product name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "Product type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_type": {"name": "transaction_type", "description": "Transaction type (Charge, Refund, etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of units of this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_amount": {"name": "unit_amount", "description": "Amount per unit, or the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_amount": {"name": "discount_amount", "description": "The discount amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "The tax amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_amount": {"name": "total_amount", "description": "Order total", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_id": {"name": "payment_id", "description": "Transaction ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Transaction gateway for Shopify ('gift card', 'shopify payments', etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method_id": {"name": "payment_method_id", "description": "Shopify does not have a particular payment_method_id, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_at": {"name": "payment_at", "description": "Transaction processed timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fee_amount": {"name": "fee_amount", "description": "The total shipping fee associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_amount": {"name": "refund_amount", "description": "Refund amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_id": {"name": "subscription_id", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_plan": {"name": "subscription_plan", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_started_at": {"name": "subscription_period_started_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_ended_at": {"name": "subscription_period_ended_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_status": {"name": "subscription_status", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "Customer associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_created_at": {"name": "customer_created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_level": {"name": "customer_level", "description": "Whether 'account' or 'customer'. For Shopify, the level is 'customer'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_name": {"name": "customer_name", "description": "Customer name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_company": {"name": "customer_company", "description": "Associated customer's company noted on the shipping address if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "Customer email", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_city": {"name": "customer_city", "description": "Customer's shipping address city", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_country": {"name": "customer_country", "description": "Customer's shipping address country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/standardized_models/shopify__standardized_models.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.8705103, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__line_item_enhanced\"", "raw_code": "{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith line_items as (\n\n select * \n from {{ var('shopify_gql_order_line')}}\n\n), orders as ( \n\n select * \n from {{ var('shopify_gql_order')}}\n\n), product as (\n\n select *\n from {{ var('shopify_gql_product')}}\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n {{ fivetran_utils.string_agg(\"cast (transaction_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} AS transaction_id,\n {{ fivetran_utils.string_agg(\"cast (processed_timestamp as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as processed_timestamp,\n {{ fivetran_utils.string_agg('gateway', \"', '\") }} as gateway\n\n from {{ var('shopify_gql_transaction')}}\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount_shop) as total_order_refund_amount\n from {{ var('shopify_gql_transaction')}}\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal_shop_amount + total_tax_shop_amount) as total_refund_amount\n from {{ var('shopify_gql_order_line_refund')}}\n group by 1,2\n\n), customer as (\n\n select *\n from {{ var('shopify_gql_customer')}}\n\n), shipping as (\n\n select * \n from {{ ref('int_shopify_gql__order_shipping_aggregates')}}\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price_shop_amount as unit_amount,\n o.total_discounts_shop_amount as discount_amount,\n o.total_tax_shop_amount as tax_amount,\n (li.quantity * li.price_shop_amount) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as {{ dbt.type_string() }}) as subscription_id,\n cast(null as {{ dbt.type_string() }}) as subscription_plan,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at,\n cast(null as {{ dbt.type_string() }}) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n {{ dbt.concat([\"c.first_name\", \"''\", \"c.last_name\"]) }} as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id,\n cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as {{ dbt.type_numeric() }}) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as {{ dbt.type_numeric() }}) as quantity,\n cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,\n cast(null as {{ dbt.type_numeric() }}) as discount_amount,\n cast(null as {{ dbt.type_numeric() }}) as tax_amount,\n cast(total_amount as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as {{ dbt.type_numeric() }}) as fee_amount,\n cast(null as {{ dbt.type_numeric() }}) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as {{ dbt.type_numeric() }}) as line_item_id,\n cast(0 as {{ dbt.type_numeric() }}) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as {{ dbt.type_numeric() }}) as product_id,\n cast(null as {{ dbt.type_string() }}) as product_name,\n transaction_type,\n billing_type,\n cast(null as {{ dbt.type_string() }}) as product_type,\n cast(null as {{ dbt.type_numeric() }}) as quantity,\n cast(null as {{ dbt.type_numeric() }}) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__order_shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.dbt.type_timestamp", "macro.dbt.concat", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__transaction", "model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__customer", "model.shopify.int_shopify_gql__order_shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), line_items as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n\n), orders as ( \n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n \n string_agg(cast (transaction_id as TEXT), ', ')\n\n AS transaction_id,\n \n string_agg(cast (processed_timestamp as TEXT), ', ')\n\n as processed_timestamp,\n \n string_agg(gateway, ', ')\n\n as gateway\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount_shop) as total_order_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal_shop_amount + total_tax_shop_amount) as total_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n group by 1,2\n\n), customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n\n), shipping as (\n\n select * \n from __dbt__cte__int_shopify_gql__order_shipping_aggregates\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price_shop_amount as unit_amount,\n o.total_discounts_shop_amount as discount_amount,\n o.total_tax_shop_amount as tax_amount,\n (li.quantity * li.price_shop_amount) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as TEXT) as subscription_id,\n cast(null as TEXT) as subscription_plan,\n cast(null as timestamp) as subscription_period_started_at,\n cast(null as timestamp) as subscription_period_ended_at,\n cast(null as TEXT) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n c.first_name || '' || c.last_name as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as numeric(28,6)) as line_item_id,\n cast(line_item_index as numeric(28,6)) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as numeric(28,6)) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as numeric(28,6)) as quantity,\n cast(unit_amount as numeric(28,6)) as unit_amount,\n cast(null as numeric(28,6)) as discount_amount,\n cast(null as numeric(28,6)) as tax_amount,\n cast(total_amount as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as numeric(28,6)) as fee_amount,\n cast(null as numeric(28,6)) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as numeric(28,6)) as line_item_id,\n cast(0 as numeric(28,6)) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as numeric(28,6)) as product_id,\n cast(null as TEXT) as product_name,\n transaction_type,\n billing_type,\n cast(null as TEXT) as product_type,\n cast(null as numeric(28,6)) as quantity,\n cast(null as numeric(28,6)) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["header_id", "line_item_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_shipping_line.sql", "original_file_path": "models/rest/stg_shopify__order_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_shipping_line"], "alias": "stg_shopify__order_shipping_line", "checksum": {"name": "sha256", "checksum": "2a53345accb04b023d123b631a1fe94ad8a69fd7e81658e7f9b0c26389f4fa02"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_third_party_required": {"name": "is_third_party_required", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9480238, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_line_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_shopify__order_shipping_line_tmp')),\n staging_columns=get_order_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n discounted_price_set\n \n as \n \n discounted_price_set\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_shipping_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_allocation.sql", "original_file_path": "models/rest/stg_shopify__discount_allocation.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation", "fqn": ["shopify_source", "rest", "stg_shopify__discount_allocation"], "alias": "stg_shopify__discount_allocation", "checksum": {"name": "sha256", "checksum": "834136ae3fedb83876370eb77b57f96fe24028aee02681d1dc2ac6d0d7d3553e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing allocation amounts from discount applications across specific order lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The presentment money currency code for the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The shop money currency code for the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to. Used to join with the discount application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount allocation within the list of allocations on an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9810576, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_allocation_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_shopify__discount_allocation_tmp')),\n staging_columns=get_discount_allocation_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_allocation_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_allocation.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set_presentment_money_amount\n \n as \n \n amount_set_presentment_money_amount\n \n, \n \n \n amount_set_presentment_money_currency_code\n \n as \n \n amount_set_presentment_money_currency_code\n \n, \n \n \n amount_set_shop_money_amount\n \n as \n \n amount_set_shop_money_amount\n \n, \n \n \n amount_set_shop_money_currency_code\n \n as \n \n amount_set_shop_money_currency_code\n \n, \n \n \n discount_application_index\n \n as \n \n discount_application_index\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_application_index", "order_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order.sql", "original_file_path": "models/rest/stg_shopify__order.sql", "unique_id": "model.shopify_source.stg_shopify__order", "fqn": ["shopify_source", "rest", "stg_shopify__order"], "alias": "stg_shopify__order", "checksum": {"name": "sha256", "checksum": "6610716cd337bcefb217f0cf6588b855c6ecf4045a690e229a1c57b19b48241e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9013124, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__order_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_order_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n {{ shopify_source.json_to_string(\"total_discounts_set\", source_columns_in_relation) }} as total_discounts_set,\n total_line_items_price,\n {{ shopify_source.json_to_string(\"total_line_items_price_set\", source_columns_in_relation) }} as total_line_items_price_set,\n total_price,\n {{ shopify_source.json_to_string(\"total_price_set\", source_columns_in_relation) }} as total_price_set,\n {{ shopify_source.json_to_string(\"total_tax_set\", source_columns_in_relation) }} as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(cancelled_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as cancelled_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n {{ shopify_source.json_to_string(\"total_shipping_price_set\", source_columns_in_relation) }} as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n cast(null as TEXT) as \n \n total_discounts_set\n \n , \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n cast(null as TEXT) as \n \n total_line_items_price_set\n \n , \n \n \n total_price\n \n as \n \n total_price\n \n, \n cast(null as TEXT) as \n \n total_price_set\n \n , \n cast(null as TEXT) as \n \n total_tax_set\n \n , \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n cast(null as float) as \n \n total_tip_received\n \n , \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n order_number\n \n as \n \n order_number\n \n, \n \n \n cancel_reason\n \n as \n \n cancel_reason\n \n, \n \n \n cancelled_at\n \n as \n \n cancelled_at\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n checkout_token\n \n as \n \n checkout_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n financial_status\n \n as \n \n financial_status\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n browser_ip\n \n as \n \n browser_ip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n cast(null as TEXT) as \n \n total_shipping_price_set\n \n , \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as integer) as \n \n app_id\n \n , \n cast(null as integer) as \n \n checkout_id\n \n , \n cast(null as TEXT) as \n \n client_details_user_agent\n \n , \n cast(null as TEXT) as \n \n customer_locale\n \n , \n cast(null as TEXT) as \n \n order_status_url\n \n , \n cast(null as TEXT) as \n \n presentment_currency\n \n , \n cast(null as boolean) as \n \n confirmed\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n total_discounts_set as total_discounts_set,\n total_line_items_price,\n total_line_items_price_set as total_line_items_price_set,\n total_price,\n total_price_set as total_price_set,\n total_tax_set as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(cancelled_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as cancelled_timestamp,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n total_shipping_price_set as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__transaction.sql", "original_file_path": "models/rest/stg_shopify__transaction.sql", "unique_id": "model.shopify_source.stg_shopify__transaction", "fqn": ["shopify_source", "rest", "stg_shopify__transaction"], "alias": "stg_shopify__transaction", "checksum": {"name": "sha256", "checksum": "d1c4d552029ac5491af20f77ec0fd7a2a98236f3c25c2dc1e6a613a4dbbb10ad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9115121, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__transaction_tmp')) %}\n\nwith base as (\n\n select * from {{ ref('stg_shopify__transaction_tmp') }}\n\n),\n\nfields as (\n\n select\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n {{ shopify_source.json_to_string(\"receipt\", source_columns_in_relation) }} as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(authorization_expires_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as authorization_expires_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('transaction_pass_through_columns') }}\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__transaction.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * from \"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"\n\n),\n\nfields as (\n\n select\n\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\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 processed_at\n \n as \n \n processed_at\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n payment_avs_result_code\n \n as \n \n payment_avs_result_code\n \n, \n \n \n payment_credit_card_bin\n \n as \n \n payment_credit_card_bin\n \n, \n \n \n payment_cvv_result_code\n \n as \n \n payment_cvv_result_code\n \n, \n \n \n payment_credit_card_number\n \n as \n \n payment_credit_card_number\n \n, \n \n \n payment_credit_card_company\n \n as \n \n payment_credit_card_company\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n receipt\n \n as \n \n receipt\n \n, \n \n \n currency_exchange_id\n \n as \n \n currency_exchange_id\n \n, \n \n \n currency_exchange_adjustment\n \n as \n \n currency_exchange_adjustment\n \n, \n \n \n currency_exchange_original_amount\n \n as \n \n currency_exchange_original_amount\n \n, \n \n \n currency_exchange_final_amount\n \n as \n \n currency_exchange_final_amount\n \n, \n \n \n currency_exchange_currency\n \n as \n \n currency_exchange_currency\n \n, \n \n \n error_code\n \n as \n \n error_code\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as timestamp) as \n \n authorization_expires_at\n \n , \n \n \n \n \n \"authorization\"\n \n \n \n as authorization_code \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n receipt as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(authorization_expires_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as authorization_expires_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["source_relation", "transaction_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_basic.sql", "original_file_path": "models/rest/stg_shopify__discount_code_basic.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_basic"], "alias": "stg_shopify__discount_code_basic", "checksum": {"name": "sha256", "checksum": "36e6431d35cf4791624e49bc76a0f3124e087452e777031fcfb250818ba0b9b5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata about basic discount codes created by merchants.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9857495, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_basic_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_shopify__discount_code_basic_tmp')),\n staging_columns=get_discount_code_basic_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_basic_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_basic.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as TEXT) as \n \n title\n \n , \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__fulfillment.sql", "original_file_path": "models/rest/stg_shopify__fulfillment.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment", "fqn": ["shopify_source", "rest", "stg_shopify__fulfillment"], "alias": "stg_shopify__fulfillment", "checksum": {"name": "sha256", "checksum": "ca3697aa2d2acc4e0714a2689336a063495e3bc64cc9515944e36f7ee55f1810"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9293454, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_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_shopify__fulfillment_tmp')),\n staging_columns=get_fulfillment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n shipment_status\n \n as \n \n shipment_status\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n tracking_company\n \n as \n \n tracking_company\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n tracking_numbers\n \n as \n \n tracking_numbers\n \n, \n \n \n tracking_urls\n \n as \n \n tracking_urls\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["fulfillment_id"], "time_spine": null}, "model.shopify_source.stg_shopify__metafield": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__metafield.sql", "original_file_path": "models/rest/stg_shopify__metafield.sql", "unique_id": "model.shopify_source.stg_shopify__metafield", "fqn": ["shopify_source", "rest", "stg_shopify__metafield"], "alias": "stg_shopify__metafield", "checksum": {"name": "sha256", "checksum": "e7e2a824bf892f5c1d89602d012a6ccdce8e45362840db93f341c741eb754596"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_id": {"name": "metafield_id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource_id": {"name": "owner_resource_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Coalescing of type and value_type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_reference": {"name": "metafield_reference", "description": "Combination of the namespace and key columns. This field is key for metafield mapping in downstream models.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating the most up to date record identified by the most recent updated_at field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1754595382.9435067, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield\"", "raw_code": "{{ config(enabled=(var('shopify_using_metafield', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__metafield_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_shopify__metafield_tmp')),\n staging_columns=get_metafield_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n lower({{ dbt.concat([\"namespace\",\"'_'\",\"key\"]) }}) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield_tmp", "package": null, "version": null}, {"name": "stg_shopify__metafield_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_metafield_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt.concat"], "nodes": ["model.shopify_source.stg_shopify__metafield_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__metafield.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n 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 id\n \n as \n \n id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n namespace\n \n as \n \n namespace\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n owner_resource\n \n as \n \n owner_resource\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n lower(namespace || '_' || key) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["metafield_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_bxgy.sql", "original_file_path": "models/rest/stg_shopify__discount_code_bxgy.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_bxgy"], "alias": "stg_shopify__discount_code_bxgy", "checksum": {"name": "sha256", "checksum": "b47ced0eb2ea79958678c2ed4453bb46573b8b484f255c2e709af7ebe51453b8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for Buy X Get Y-style discount codes in Shopify, where discounts are applied based on product quantity thresholds.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9872463, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_bxgy_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_shopify__discount_code_bxgy_tmp')),\n staging_columns=get_discount_code_bxgy_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_bxgy_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_bxgy.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n cast(null as integer) as \n \n recurring_cycle_limit\n \n , \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__tender_transaction.sql", "original_file_path": "models/rest/stg_shopify__tender_transaction.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction", "fqn": ["shopify_source", "rest", "stg_shopify__tender_transaction"], "alias": "stg_shopify__tender_transaction", "checksum": {"name": "sha256", "checksum": "d4d8a6ff82d57efdf1f1814199d70d44444154dc08519b85aad3258b7fadeaa6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9679585, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__tender_transaction_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_shopify__tender_transaction_tmp')),\n staging_columns=get_tender_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tender_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__tender_transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n payment_method\n \n as \n \n payment_method\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n remote_reference\n \n as \n \n remote_reference\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["transaction_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_shipping_tax_line.sql", "original_file_path": "models/rest/stg_shopify__order_shipping_tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_shipping_tax_line"], "alias": "stg_shopify__order_shipping_tax_line", "checksum": {"name": "sha256", "checksum": "26fc98d9b37f25a22d931bc0786714888c2e7809a61b9e2cdd84c6c02c1deee4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this record is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9494867, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_tax_line_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_shopify__order_shipping_tax_line_tmp')),\n staging_columns=get_order_shipping_tax_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_shipping_tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_shipping_line_id\n \n as \n \n order_shipping_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_shipping_line_id"], "time_spine": null}, "model.shopify_source.stg_shopify__shop": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__shop.sql", "original_file_path": "models/rest/stg_shopify__shop.sql", "unique_id": "model.shopify_source.stg_shopify__shop", "fqn": ["shopify_source", "rest", "stg_shopify__shop"], "alias": "stg_shopify__shop", "checksum": {"name": "sha256", "checksum": "5530f9eaba5fde4a59b8556a0f242759bc63e380c45442ae1d5bc2a95225c3af"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_checkout_api_supported": {"name": "has_checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_county_taxes": {"name": "has_county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_card_reader_giveaway": {"name": "is_eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_payments": {"name": "is_eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_google_apps_login_enabled": {"name": "is_google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_password_enabled": {"name": "is_password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_pre_launch_enabled": {"name": "is_pre_launch_enabled", "description": "Boolean representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_extra_payments_agreement_required": {"name": "is_extra_payments_agreement_required", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_setup_required": {"name": "is_setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_shipping_taxes": {"name": "has_shipping_taxes", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included_in_price": {"name": "has_taxes_included_in_price", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9664805, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__shop_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__shop_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_shop_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n {{ shopify_source.json_to_string(\"enabled_presentment_currencies\", source_columns_in_relation) }} as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop_tmp", "package": null, "version": null}, {"name": "stg_shopify__shop_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_shop_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__shop_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__shop.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\n \n, \n \n \n checkout_api_supported\n \n as \n \n checkout_api_supported\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n cookie_consent_level\n \n as \n \n cookie_consent_level\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n county_taxes\n \n as \n \n county_taxes\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_email\n \n as \n \n customer_email\n \n, \n \n \n domain\n \n as \n \n domain\n \n, \n \n \n eligible_for_card_reader_giveaway\n \n as \n \n eligible_for_card_reader_giveaway\n \n, \n \n \n eligible_for_payments\n \n as \n \n eligible_for_payments\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n enabled_presentment_currencies\n \n as \n \n enabled_presentment_currencies\n \n, \n \n \n google_apps_domain\n \n as \n \n google_apps_domain\n \n, \n \n \n google_apps_login_enabled\n \n as \n \n google_apps_login_enabled\n \n, \n \n \n has_discounts\n \n as \n \n has_discounts\n \n, \n \n \n has_gift_cards\n \n as \n \n has_gift_cards\n \n, \n \n \n has_storefront\n \n as \n \n has_storefront\n \n, \n \n \n iana_timezone\n \n as \n \n iana_timezone\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 longitude\n \n as \n \n longitude\n \n, \n \n \n money_format\n \n as \n \n money_format\n \n, \n \n \n money_in_emails_format\n \n as \n \n money_in_emails_format\n \n, \n \n \n money_with_currency_format\n \n as \n \n money_with_currency_format\n \n, \n \n \n money_with_currency_in_emails_format\n \n as \n \n money_with_currency_in_emails_format\n \n, \n \n \n myshopify_domain\n \n as \n \n myshopify_domain\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n password_enabled\n \n as \n \n password_enabled\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n plan_display_name\n \n as \n \n plan_display_name\n \n, \n \n \n plan_name\n \n as \n \n plan_name\n \n, \n \n \n pre_launch_enabled\n \n as \n \n pre_launch_enabled\n \n, \n \n \n primary_locale\n \n as \n \n primary_locale\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n requires_extra_payments_agreement\n \n as \n \n requires_extra_payments_agreement\n \n, \n \n \n setup_required\n \n as \n \n setup_required\n \n, \n \n \n shop_owner\n \n as \n \n shop_owner\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n tax_shipping\n \n as \n \n tax_shipping\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n enabled_presentment_currencies as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["shop_id"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_level.sql", "original_file_path": "models/rest/stg_shopify__inventory_level.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_level"], "alias": "stg_shopify__inventory_level", "checksum": {"name": "sha256", "checksum": "79a7a96d7bd30b27bd745353030e4bd5a8f5bfa29cdc816e938a7b323d0a1d01"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available_quantity": {"name": "available_quantity", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9319773, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_level_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_shopify__inventory_level_tmp')),\n staging_columns=get_inventory_level_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_level_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_level_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_level.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n can_deactivate\n \n as \n \n can_deactivate\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deactivation_alert\n \n as \n \n deactivation_alert\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as integer) as \n \n available\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "inventory_level_id", "location_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_redeem_code.sql", "original_file_path": "models/rest/stg_shopify__discount_redeem_code.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code", "fqn": ["shopify_source", "rest", "stg_shopify__discount_redeem_code"], "alias": "stg_shopify__discount_redeem_code", "checksum": {"name": "sha256", "checksum": "999024fc5a37f651b415e8f306756d8c0a6c78043c125950dd1cb95377237b6d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each redeem code is tied to a parent discount and may be created by an app or manually.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This is updated asynchronously and may differ from real-time usage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (typically an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount the redeem code is associated with (e.g., `discount_code_basic`, `discount_code_app`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.991102, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_redeem_code_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_shopify__discount_redeem_code_tmp')),\n staging_columns=get_discount_redeem_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_redeem_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_redeem_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_by_description\n \n as \n \n created_by_description\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_by_title\n \n as \n \n created_by_title\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n discount_type\n \n as \n \n discount_type\n \n, \n \n \n id\n \n as \n \n id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__customer": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__customer.sql", "original_file_path": "models/rest/stg_shopify__customer.sql", "unique_id": "model.shopify_source.stg_shopify__customer", "fqn": ["shopify_source", "rest", "stg_shopify__customer"], "alias": "stg_shopify__customer", "checksum": {"name": "sha256", "checksum": "2493d71ed3533a8938368c51239486949c4a399cd4005d846f8008eb82b945e6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.892936, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__customer_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n {{ shopify_source.fivetran_convert_timezone(column='cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as marketing_consent_updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n {{ fivetran_utils.fill_pass_through_columns('customer_pass_through_columns') }}\n\n from fields\n \n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__customer_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__customer.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accepts_marketing\n \n as \n \n accepts_marketing\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n default_address_id\n \n as \n \n default_address_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n orders_count\n \n as \n \n orders_count\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n tax_exempt\n \n as \n \n tax_exempt\n \n, \n \n \n total_spent\n \n as \n \n total_spent\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n verified_email\n \n as \n \n verified_email\n \n, \n cast(null as timestamp) as \n \n email_marketing_consent_consent_updated_at\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_opt_in_level\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_state\n \n , \n cast(null as TEXT) as \n \n note\n \n , \n cast(null as timestamp) as \n \n accepts_marketing_updated_at\n \n , \n cast(null as TEXT) as \n \n marketing_opt_in_level\n \n , \n cast(null as TEXT) as \n \n currency\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n cast(\n cast(cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as marketing_consent_updated_at,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n \n\n\n\n\n\n from fields\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_item.sql", "original_file_path": "models/rest/stg_shopify__inventory_item.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_item"], "alias": "stg_shopify__inventory_item", "checksum": {"name": "sha256", "checksum": "853a6e06a16707a06826f7d445f609b75da97e7990fdb4386fb2bf47b5cd088b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item. Coalesced with the deprecated `cost` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.930895, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_item_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_shopify__inventory_item_tmp')),\n staging_columns=get_inventory_item_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country_code_of_origin\n \n as \n \n country_code_of_origin\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n province_code_of_origin\n \n as \n \n province_code_of_origin\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tracked\n \n as \n \n tracked\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n duplicate_sku_count\n \n as \n \n duplicate_sku_count\n \n, \n \n \n harmonized_system_code\n \n as \n \n harmonized_system_code\n \n, \n \n \n inventory_history_url\n \n as \n \n inventory_history_url\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n measurement_id\n \n as \n \n measurement_id\n \n, \n \n \n measurement_weight_value\n \n as \n \n measurement_weight_value\n \n, \n \n \n measurement_weight_unit\n \n as \n \n measurement_weight_unit\n \n, \n \n \n tracked_editable_locked\n \n as \n \n tracked_editable_locked\n \n, \n \n \n tracked_editable_reason\n \n as \n \n tracked_editable_reason\n \n, \n \n \n unit_cost_amount\n \n as \n \n unit_cost_amount\n \n, \n \n \n unit_cost_currency_code\n \n as \n \n unit_cost_currency_code\n \n, \n cast(null as float) as \n \n cost\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id"], "time_spine": null}, "model.shopify_source.stg_shopify__collection": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__collection.sql", "original_file_path": "models/rest/stg_shopify__collection.sql", "unique_id": "model.shopify_source.stg_shopify__collection", "fqn": ["shopify_source", "rest", "stg_shopify__collection"], "alias": "stg_shopify__collection", "checksum": {"name": "sha256", "checksum": "b14f356bbf20e962744b82a4ba45e57c6b82e6a988d3cfe60ce1cdf23b849904"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "rule_logic": {"name": "rule_logic", "description": "Whether the `rules` are disjunctive (logical `OR`) or conjunctive (logical `AND`)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparative relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values incline - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9248307, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__collection_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__collection_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_collection_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n {{ shopify_source.json_to_string(\"rules\", source_columns_in_relation) }} as rules,\n sort_order,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__collection.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n disjunctive\n \n as \n \n disjunctive\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\n \n, \n \n \n rules\n \n as \n \n rules\n \n, \n \n \n sort_order\n \n as \n \n sort_order\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\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n rules as rules,\n sort_order,\n title,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["collection_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_adjustment.sql", "original_file_path": "models/rest/stg_shopify__order_adjustment.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment", "fqn": ["shopify_source", "rest", "stg_shopify__order_adjustment"], "alias": "stg_shopify__order_adjustment", "checksum": {"name": "sha256", "checksum": "c4ddb2ba573ce5e01cef92e306dabe987669b60eaee828727876182dec8d4537"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"order_adjustment_id": {"name": "order_adjustment_id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in the shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9159257, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_adjustment_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_adjustment_tmp')),\n staging_columns=get_order_adjustment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_adjustment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_adjustment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_adjustment.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set\n \n as \n \n amount_set\n \n, \n \n \n tax_amount\n \n as \n \n tax_amount\n \n, \n \n \n tax_amount_set\n \n as \n \n tax_amount_set\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_adjustment_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__media.sql", "original_file_path": "models/rest/stg_shopify__media.sql", "unique_id": "model.shopify_source.stg_shopify__media", "fqn": ["shopify_source", "rest", "stg_shopify__media"], "alias": "stg_shopify__media", "checksum": {"name": "sha256", "checksum": "fbddf6477f3a1498b88f3a0699a65e4395a7631bb615234a6338242df8580429"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing media metadata, including status and timestamps.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9373455, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_tmp')),\n staging_columns=get_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_application.sql", "original_file_path": "models/rest/stg_shopify__discount_application.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application", "fqn": ["shopify_source", "rest", "stg_shopify__discount_application"], "alias": "stg_shopify__discount_application", "checksum": {"name": "sha256", "checksum": "eb9d6cd583dcf8522153a756ebd4b6179a68ebce8da489c17bee9b294d173ba8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing discount applications, which define how discounts were applied at the order level.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code associated with the application, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to all line items (`all`) or only those that are specifically entitled (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name or title of the discount as defined in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The value of the discount. If `value_type` is `percentage`, this represents a percentage. If `fixed_amount`, this is a fixed currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount value is a `percentage` or `fixed_amount`. If `target_type` is `shipping_line`, only `percentage` is accepted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9823148, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_application_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_shopify__discount_application_tmp')),\n staging_columns=get_discount_application_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_application_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_application_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_application.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocation_method\n \n as \n \n allocation_method\n \n, \n \n \n code\n \n as \n \n code\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 order_id\n \n as \n \n order_id\n \n, \n \n \n target_selection\n \n as \n \n target_selection\n \n, \n \n \n target_type\n \n as \n \n target_type\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value\n \n as \n \n value\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_quantity.sql", "original_file_path": "models/rest/stg_shopify__inventory_quantity.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_quantity"], "alias": "stg_shopify__inventory_quantity", "checksum": {"name": "sha256", "checksum": "ceec14a24511cf768af52d91c6ee0c193dc4871c832b3a4136ed4ed7497f98dc"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The total quantity of the inventory item available at all locations.", "columns": {"inventory_quantity_id": {"name": "inventory_quantity_id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_state_name": {"name": "inventory_state_name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9335752, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_quantity_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_shopify__inventory_quantity_tmp')),\n staging_columns=get_inventory_quantity_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_quantity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_quantity.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_level_id\n \n as \n \n inventory_level_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["inventory_item_id", "inventory_level_id", "inventory_quantity_id", "inventory_state_name", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_tag.sql", "original_file_path": "models/rest/stg_shopify__product_tag.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag", "fqn": ["shopify_source", "rest", "stg_shopify__product_tag"], "alias": "stg_shopify__product_tag", "checksum": {"name": "sha256", "checksum": "30ae521143e47b36580f3e0c4bc03bf3a2b2d39e2f219078194419fd2ef0ba08"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9542458, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_tag_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_shopify__product_tag_tmp')),\n staging_columns=get_product_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__product_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_variant.sql", "original_file_path": "models/rest/stg_shopify__product_variant.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant", "fqn": ["shopify_source", "rest", "stg_shopify__product_variant"], "alias": "stg_shopify__product_variant", "checksum": {"name": "sha256", "checksum": "8a25c78869bc4281ee618d06cc2a9154294d3a4d475d473f133a59ea72532f1a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_available_for_sale": {"name": "is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_components_required": {"name": "has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9091594, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_tmp')),\n staging_columns=get_product_variant_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_variant_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_variant_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\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 updated_at\n \n as \n \n updated_at\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n position\n \n as \n \n position\n \n, \n \n \n inventory_policy\n \n as \n \n inventory_policy\n \n, \n \n \n compare_at_price\n \n as \n \n compare_at_price\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n barcode\n \n as \n \n barcode\n \n, \n cast(null as numeric(28,6)) as \n \n old_inventory_quantity\n \n , \n \n \n inventory_quantity\n \n as \n \n inventory_quantity\n \n, \n \n \n tax_code\n \n as \n \n tax_code\n \n, \n \n \n available_for_sale\n \n as \n \n available_for_sale\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n requires_components\n \n as \n \n requires_components\n \n, \n \n \n sellable_online_quantity\n \n as \n \n sellable_online_quantity\n \n, \n cast(null as TEXT) as \n \n fulfillment_service\n \n , \n cast(null as float) as \n \n grams\n \n , \n cast(null as TEXT) as \n \n inventory_management\n \n , \n cast(null as float) as \n \n weight\n \n , \n cast(null as TEXT) as \n \n weight_unit\n \n , \n cast(null as TEXT) as \n \n option_1\n \n , \n cast(null as TEXT) as \n \n option_2\n \n , \n cast(null as TEXT) as \n \n option_3\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["source_relation", "variant_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_discount_code.sql", "original_file_path": "models/rest/stg_shopify__order_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code", "fqn": ["shopify_source", "rest", "stg_shopify__order_discount_code"], "alias": "stg_shopify__order_discount_code", "checksum": {"name": "sha256", "checksum": "e8738ee571f2712e359118c5799400f39259f8aef959df3c6df84aa83d819b71"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.970388, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_discount_code_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_shopify__order_discount_code_tmp')),\n staging_columns=get_order_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__media_image": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__media_image.sql", "original_file_path": "models/rest/stg_shopify__media_image.sql", "unique_id": "model.shopify_source.stg_shopify__media_image", "fqn": ["shopify_source", "rest", "stg_shopify__media_image"], "alias": "stg_shopify__media_image", "checksum": {"name": "sha256", "checksum": "3a6ae116ff7a7f495476ef47c6bd942d29fe17f4e5a683e88323c3e05877e556"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "Specifies the location of the product image, hashed for privacy. Coalesced with the deprecated `src` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9398577, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__media_image_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_image_tmp')),\n staging_columns=get_media_image_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_image_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_image_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__media_image_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__media_image.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_line.sql", "original_file_path": "models/rest/stg_shopify__order_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_line"], "alias": "stg_shopify__order_line", "checksum": {"name": "sha256", "checksum": "36ea0a90f4476fd400178aa8b6a37b2d30c8bc5325f7ff8dc0670ecd740f5def"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.8971915, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_line_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_tmp')),\n staging_columns=get_order_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_pass_through_columns') }}\n\n from fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fulfillable_quantity\n \n as \n \n fulfillable_quantity\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n gift_card\n \n as \n \n gift_card\n \n, \n \n \n grams\n \n as \n \n grams\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n pre_tax_price\n \n as \n \n pre_tax_price\n \n, \n cast(null as TEXT) as \n \n pre_tax_price_set\n \n , \n \n \n price\n \n as \n \n price\n \n, \n cast(null as TEXT) as \n \n price_set\n \n , \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n cast(null as TEXT) as \n \n tax_code\n \n , \n \n \n title\n \n as \n \n title\n \n, \n \n \n total_discount\n \n as \n \n total_discount\n \n, \n cast(null as TEXT) as \n \n total_discount_set\n \n , \n \n \n variant_id\n \n as \n \n variant_id\n \n, \n cast(null as TEXT) as \n \n variant_title\n \n , \n cast(null as TEXT) as \n \n variant_inventory_management\n \n , \n \n \n vendor\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n properties\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_line_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_free_shipping.sql", "original_file_path": "models/rest/stg_shopify__discount_code_free_shipping.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_free_shipping"], "alias": "stg_shopify__discount_code_free_shipping", "checksum": {"name": "sha256", "checksum": "6cfeea54c8a7056fa680b926c2ae6ceeb594bf4e1a9857799b875bae0d73fc53"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for free shipping discount codes in Shopify, where shipping costs are discounted based on qualifying conditions.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.988771, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_free_shipping_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_shopify__discount_code_free_shipping_tmp')),\n staging_columns=get_discount_code_free_shipping_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_free_shipping_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_free_shipping.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__fulfillment_event.sql", "original_file_path": "models/rest/stg_shopify__fulfillment_event.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event", "fqn": ["shopify_source", "rest", "stg_shopify__fulfillment_event"], "alias": "stg_shopify__fulfillment_event", "checksum": {"name": "sha256", "checksum": "2aa34203a0c3980df4a385721479ddf040698998be9432e7334d403a7e525e56"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_event_id": {"name": "fulfillment_event_id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9773514, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"", "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_event_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_shopify__fulfillment_event_tmp')),\n staging_columns=get_fulfillment_event_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n {{ shopify_source.fivetran_convert_timezone(column='cast(estimated_delivery_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as estimated_delivery_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(happened_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__fulfillment_event.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\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 created_at\n \n as \n \n created_at\n \n, \n \n \n estimated_delivery_at\n \n as \n \n estimated_delivery_at\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n happened_at\n \n as \n \n happened_at\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 longitude\n \n as \n \n longitude\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n shop_id\n \n as \n \n shop_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n cast(\n cast(cast(estimated_delivery_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as estimated_delivery_at,\n cast(\n cast(cast(happened_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["fulfillment_event_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_note_attribute.sql", "original_file_path": "models/rest/stg_shopify__order_note_attribute.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute", "fqn": ["shopify_source", "rest", "stg_shopify__order_note_attribute"], "alias": "stg_shopify__order_note_attribute", "checksum": {"name": "sha256", "checksum": "e2c49df60461bef5bfebae6311cc92fa0bef64467a5d22e5dcf31d0d18b31250"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9444246, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_note_attribute_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_shopify__order_note_attribute_tmp')),\n staging_columns=get_order_note_attribute_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_note_attribute_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_note_attribute.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["name", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_line_refund.sql", "original_file_path": "models/rest/stg_shopify__order_line_refund.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund", "fqn": ["shopify_source", "rest", "stg_shopify__order_line_refund"], "alias": "stg_shopify__order_line_refund", "checksum": {"name": "sha256", "checksum": "aa4df0e851d252ad4d9a27a7c0f36bcc0577026ab1e9b016b645a6250dd9d0c6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_line_refund_id": {"name": "order_line_refund_id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.8954215, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_line_refund_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_refund_tmp')),\n staging_columns=get_order_line_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_refund_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_line_refund.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n subtotal\n \n as \n \n subtotal\n \n, \n \n \n subtotal_set\n \n as \n \n subtotal_set\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_tax_set\n \n as \n \n total_tax_set\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n restock_type\n \n as \n \n restock_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_line_refund_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__refund.sql", "original_file_path": "models/rest/stg_shopify__refund.sql", "unique_id": "model.shopify_source.stg_shopify__refund", "fqn": ["shopify_source", "rest", "stg_shopify__refund"], "alias": "stg_shopify__refund", "checksum": {"name": "sha256", "checksum": "bda33a385dc2880adba5bbe2cf033de9509cc5389c76ef11e2c4923f757ef0b8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a refund within Shopify.", "columns": {"refund_id": {"name": "refund_id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9135296, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__refund_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__refund_tmp')),\n staging_columns=get_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__refund.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n restock\n \n as \n \n restock\n \n, \n \n \n total_duties_set\n \n as \n \n total_duties_set\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["refund_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__customer_tag.sql", "original_file_path": "models/rest/stg_shopify__customer_tag.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag", "fqn": ["shopify_source", "rest", "stg_shopify__customer_tag"], "alias": "stg_shopify__customer_tag", "checksum": {"name": "sha256", "checksum": "7ddbfed95b8851221f0fcec884872362a389f01cf7a6e0fdfcf21fae5de68c35"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.92581, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__customer_tag_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_shopify__customer_tag_tmp')),\n staging_columns=get_customer_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__customer_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__customer_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_id", "index"], "time_spine": null}, "model.shopify_source.stg_shopify__product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product.sql", "original_file_path": "models/rest/stg_shopify__product.sql", "unique_id": "model.shopify_source.stg_shopify__product", "fqn": ["shopify_source", "rest", "stg_shopify__product"], "alias": "stg_shopify__product", "checksum": {"name": "sha256", "checksum": "6a92711673f429c4465f05d51488c01ce9e270cbd8df0434bcbeac8809f3d370"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9024918, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_tmp')),\n staging_columns=get_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_pass_through_columns') }}\n\nfrom fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"\n\n),\n\nfields as (\n\n select\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 handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\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\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n status\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\nfrom fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["product_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_tag.sql", "original_file_path": "models/rest/stg_shopify__order_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag", "fqn": ["shopify_source", "rest", "stg_shopify__order_tag"], "alias": "stg_shopify__order_tag", "checksum": {"name": "sha256", "checksum": "e4d40846975eafeecc76f411ee433af97b1ffe1a24fd2d27a11b6a0b17f8096f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9503853, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_tag_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_shopify__order_tag_tmp')),\n staging_columns=get_order_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__location": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__location.sql", "original_file_path": "models/rest/stg_shopify__location.sql", "unique_id": "model.shopify_source.stg_shopify__location", "fqn": ["shopify_source", "rest", "stg_shopify__location"], "alias": "stg_shopify__location", "checksum": {"name": "sha256", "checksum": "9c5af83aa1e6cb6cae684e11bc8c6a6aea6e040e08b32e7e0ce556e6a657df69"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy": {"name": "is_legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.936477, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__location_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_shopify__location_tmp')),\n staging_columns=get_location_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location_tmp", "package": null, "version": null}, {"name": "stg_shopify__location_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_location_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__location_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__location.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\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_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n legacy\n \n as \n \n legacy\n \n, \n \n \n localized_country_name\n \n as \n \n localized_country_name\n \n, \n \n \n localized_province_name\n \n as \n \n localized_province_name\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["location_id"], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_url_tag.sql", "original_file_path": "models/rest/stg_shopify__order_url_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag", "fqn": ["shopify_source", "rest", "stg_shopify__order_url_tag"], "alias": "stg_shopify__order_url_tag", "checksum": {"name": "sha256", "checksum": "c20d1f6f0095e9d95f7694143ef693d91dc3438b40d254a451662414c1aa9699"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9512813, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_url_tag_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_shopify__order_url_tag_tmp')),\n staging_columns=get_order_url_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_url_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_url_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["key", "order_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_media.sql", "original_file_path": "models/rest/stg_shopify__product_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_media", "fqn": ["shopify_source", "rest", "stg_shopify__product_media"], "alias": "stg_shopify__product_media", "checksum": {"name": "sha256", "checksum": "e866179624b96dced4df610afe1303d19b741bd9fba169f6c706a897330f9556"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9520743, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_media_tmp')),\n staging_columns=get_product_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_variant_media.sql", "original_file_path": "models/rest/stg_shopify__product_variant_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media", "fqn": ["shopify_source", "rest", "stg_shopify__product_variant_media"], "alias": "stg_shopify__product_variant_media", "checksum": {"name": "sha256", "checksum": "2a19d359137d9e352d5ab42327cf191199d918cef118124f2aee0272c513bb70"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9532251, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"", "raw_code": "{{ config(enabled=(var('shopify_using_product_variant_media', False) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_media_tmp')),\n staging_columns=get_product_variant_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_variant_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["media_id", "product_variant_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout"], "alias": "stg_shopify__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "f8f4974bab648fcae4b0a95ec02701aad1981cc01d748404977a3bfac64de65a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_currency": {"name": "shop_currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9210875, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_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_shopify__abandoned_checkout_tmp')),\n staging_columns=get_abandoned_checkout_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n abandoned_checkout_url\n \n as \n \n abandoned_checkout_url\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n cast(null as TEXT) as \n \n billing_address_address_2\n \n , \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_locale\n \n as \n \n customer_locale\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n presentment_currency\n \n as \n \n presentment_currency\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n cast(null as TEXT) as \n \n shipping_address_address_2\n \n , \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n \n \n total_duties\n \n as \n \n total_duties\n \n, \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n \n \n total_price\n \n as \n \n total_price\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n user_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id"], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_app.sql", "original_file_path": "models/rest/stg_shopify__discount_code_app.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_app"], "alias": "stg_shopify__discount_code_app", "checksum": {"name": "sha256", "checksum": "3ff36db72d417bd6de0b40cba77865f1fcb5f0e5f3b6dc9fff266db6324a3b13"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for discount codes created through third-party apps in Shopify.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9842327, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"", "raw_code": "{{ config(enabled=(var('shopify_using_discount_code_app', False) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_app_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_shopify__discount_code_app_tmp')),\n staging_columns=get_discount_code_app_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_app_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_app.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count_count\n \n as \n \n codes_count_count\n \n, \n \n \n codes_count_precision\n \n as \n \n codes_count_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discount_code_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout_discount_code.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout_discount_code"], "alias": "stg_shopify__abandoned_checkout_discount_code", "checksum": {"name": "sha256", "checksum": "4f79565f0c0b60aaa4b9e6d55bb3d8e69dbc5e52a2bc952224ec9fc2777d5a08"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the discount codes from abandoned checkouts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9693713, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_discount_code_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_shopify__abandoned_checkout_discount_code_tmp')),\n staging_columns=get_abandoned_checkout_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n type\n \n as \n \n type\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 TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id"], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout_shipping_line.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout_shipping_line"], "alias": "stg_shopify__abandoned_checkout_shipping_line", "checksum": {"name": "sha256", "checksum": "fbf2d9940115326795a88f5c018c2e369638ef804e59a09602f65814824ba483"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_code": {"name": "shipping_code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "abandoned_checkout_shipping_line_id": {"name": "abandoned_checkout_shipping_line_id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9746983, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_shipping_line_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_shopify__abandoned_checkout_shipping_line_tmp')),\n staging_columns=get_abandoned_checkout_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n delivery_expectation_range\n \n as \n \n delivery_expectation_range\n \n, \n \n \n delivery_expectation_range_max\n \n as \n \n delivery_expectation_range_max\n \n, \n \n \n delivery_expectation_range_min\n \n as \n \n delivery_expectation_range_min\n \n, \n \n \n delivery_expectation_type\n \n as \n \n delivery_expectation_type\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["checkout_id", "index", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__tax_line.sql", "original_file_path": "models/rest/stg_shopify__tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line", "fqn": ["shopify_source", "rest", "stg_shopify__tax_line"], "alias": "stg_shopify__tax_line", "checksum": {"name": "sha256", "checksum": "d69e6962393ead5e08c53a74bb2310b91352db44f50335ebb42e923f996baba5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.978258, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__tax_line_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_shopify__tax_line_tmp')),\n staging_columns=get_tax_line_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["index", "order_line_id", "source_relation"], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__collection_product.sql", "original_file_path": "models/rest/stg_shopify__collection_product.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product", "fqn": ["shopify_source", "rest", "stg_shopify__collection_product"], "alias": "stg_shopify__collection_product", "checksum": {"name": "sha256", "checksum": "0abb81383bce80941338fce6c30579fd7e729cce5a443d0921752640c0450779"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.9223313, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__collection_product_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_shopify__collection_product_tmp')),\n staging_columns=get_collection_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__collection_product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n collection_id\n \n as \n \n collection_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["collection_id", "product_id"], "time_spine": null}, "model.shopify_source.stg_shopify__metafield_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__metafield_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__metafield_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__metafield_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__metafield_tmp"], "alias": "stg_shopify__metafield_tmp", "checksum": {"name": "sha256", "checksum": "5414a4c10292fcacadde27a458e5df75130c4f8c14e5b38887bc42eefb8a0b53"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595379.9227448, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_metafield', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='metafield', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='metafield_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "metafield"], ["shopify", "metafield"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__metafield_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_metafield_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_bxgy_tmp"], "alias": "stg_shopify__discount_code_bxgy_tmp", "checksum": {"name": "sha256", "checksum": "bc9ed40d3831d9595a9522c0dd7c6afddc3ff313c1959896e1bc498d17f12551"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595379.9627051, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_bxgy', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_bxgy_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_bxgy"], ["shopify", "discount_code_bxgy"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__fulfillment_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__fulfillment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__fulfillment_tmp"], "alias": "stg_shopify__fulfillment_tmp", "checksum": {"name": "sha256", "checksum": "93a633acef33eac51374633d67a9e6bf52c1c1b813b549c211bb9fd23cf16938"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595379.9714177, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment"], ["shopify", "fulfillment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__fulfillment_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_variant_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_variant_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_variant_tmp"], "alias": "stg_shopify__product_variant_tmp", "checksum": {"name": "sha256", "checksum": "1479b98d0d8fc9c6fd0ded96f6b0aa50e05e71a67bf61d54de8abac635aa1920"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595379.980763, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant"], ["shopify", "product_variant"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_variant_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__collection_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__collection_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__collection_tmp"], "alias": "stg_shopify__collection_tmp", "checksum": {"name": "sha256", "checksum": "83677a641e5bf258065b60673dc391162a342de5ac494faafa9af5c370f048d7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595379.9893665, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection"], ["shopify", "collection"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__collection_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_discount_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_discount_code_tmp"], "alias": "stg_shopify__order_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "37a4d39417499542b5aeca8c362b51a3e3d95e6908f2a7a9af57b44e170c1046"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595379.9978297, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_discount_code"], ["shopify", "order_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_url_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_url_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_url_tag_tmp"], "alias": "stg_shopify__order_url_tag_tmp", "checksum": {"name": "sha256", "checksum": "9acc8c7614789de25d394b07b8638e54639ea5d0fcb75765963d0bca0f63f353"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.0062761, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_url_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_url_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_url_tag"], ["shopify", "order_url_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_url_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_url_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_tmp"], "alias": "stg_shopify__product_tmp", "checksum": {"name": "sha256", "checksum": "dd2e5338bf797082fe088c198911e406eb041e87cd28e1352a7a2835b0122ffe"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.0159607, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product"], ["shopify", "product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_tag_tmp"], "alias": "stg_shopify__order_tag_tmp", "checksum": {"name": "sha256", "checksum": "a42066ecdf32f3882d6fa6a1c3df6b75d69ce0a4553375d3320a61f1a1de08f6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.0243192, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_tag"], ["shopify", "order_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_quantity_tmp"], "alias": "stg_shopify__inventory_quantity_tmp", "checksum": {"name": "sha256", "checksum": "888a1894a42f30df0c772f9551fb3298534856d39b261bcab4c94f3e62fa4a8d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.032693, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_quantity', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_quantity_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_quantity"], ["shopify", "inventory_quantity"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__tax_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__tax_line_tmp"], "alias": "stg_shopify__tax_line_tmp", "checksum": {"name": "sha256", "checksum": "f904365c42217c601725c775a158e9dd20e3e0cd976b5df19c993275cdb49d6f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.0411372, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tax_line"], ["shopify", "tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__customer_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__customer_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__customer_tag_tmp"], "alias": "stg_shopify__customer_tag_tmp", "checksum": {"name": "sha256", "checksum": "cacc0b85d32b6695c089824f90b3d43e47ca479d9fd5b5751bf4d517d60f28be"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.0507045, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer_tag"], ["shopify", "customer_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__customer_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_allocation_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_allocation_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_allocation_tmp"], "alias": "stg_shopify__discount_allocation_tmp", "checksum": {"name": "sha256", "checksum": "eef0c91992b9834308249935e8ba406fd0c5782a684da3d90859ef1ae3db7040"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.0590615, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_allocation', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_allocation_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_allocation"], ["shopify", "discount_allocation"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_allocation_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_allocation_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_image_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__media_image_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__media_image_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_image_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__media_image_tmp"], "alias": "stg_shopify__media_image_tmp", "checksum": {"name": "sha256", "checksum": "c4780240faf9cb4ab2a407a9419b94336727ec3b77d6bfb1ac753fc8c4179208"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.0675075, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media_image', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_image_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media_image"], ["shopify", "media_image"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__media_image_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_image_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__media_tmp"], "alias": "stg_shopify__media_tmp", "checksum": {"name": "sha256", "checksum": "0c94b30527a13af3563413d119affaec39c52720d8aca5223af84b9ad8c55eac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.0758965, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media"], ["shopify", "media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__refund_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__refund_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__refund_tmp"], "alias": "stg_shopify__refund_tmp", "checksum": {"name": "sha256", "checksum": "0d3eceddf310b90dc85313e6286c98c2894031ab4569f3db315388dcaef32f8f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.085575, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you create a refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "refund"], ["shopify", "refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__refund_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you create a refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__location_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__location_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__location_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__location_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__location_tmp"], "alias": "stg_shopify__location_tmp", "checksum": {"name": "sha256", "checksum": "b633d3eb65fefb379a9cd5f44ff617a1fc99c132ed5d0bb81e18c9bce0665013"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.0940595, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='location', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='location_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "location"], ["shopify", "location"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__location_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_level_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_level_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_level_tmp"], "alias": "stg_shopify__inventory_level_tmp", "checksum": {"name": "sha256", "checksum": "7d78bc258a56f48d8968e1910dd797fe7d73a5d83d4bc165080ea5769a4f0727"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.1026945, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_level', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_level_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_level"], ["shopify", "inventory_level"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_level_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_level_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_shipping_line_tmp"], "alias": "stg_shopify__order_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "14e60b7aefb49552134a34cdb90c47cd4ce6da6381d0586553738d7d4b823d6d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.1113298, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_line"], ["shopify", "order_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_discount_code_tmp"], "alias": "stg_shopify__abandoned_checkout_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "a6071b36e80e24d2b0cd31158419e657ac970ce35f8c6c9d3df08606bae64cdc"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.1215112, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_discount_code"], ["shopify", "abandoned_checkout_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__fulfillment_event_tmp"], "alias": "stg_shopify__fulfillment_event_tmp", "checksum": {"name": "sha256", "checksum": "f81a5b8e0dd6dbe917bcfeddf57d4d6ac608409132baad5cc131406c3143cb24"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.1303122, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_event', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_event_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment_event"], ["shopify", "fulfillment_event"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_line_refund_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_line_refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_line_refund_tmp"], "alias": "stg_shopify__order_line_refund_tmp", "checksum": {"name": "sha256", "checksum": "19f0e79eaed071741c7e53e9b5e90e693184225cc4ca171806f698404df07126"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.1390216, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order line refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line_refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line_refund"], ["shopify", "order_line_refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_line_refund_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order line refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_app_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_app_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_app_tmp"], "alias": "stg_shopify__discount_code_app_tmp", "checksum": {"name": "sha256", "checksum": "c633d1450d2ee190d81cb6f4267d15ed580e17bbcc5bbb0958f2f49a2bafc008"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.1474237, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_discount_code_app', False) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_app', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_app_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_app"], ["shopify", "discount_code_app"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_app_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_app_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__shop_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__shop_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__shop_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__shop_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__shop_tmp"], "alias": "stg_shopify__shop_tmp", "checksum": {"name": "sha256", "checksum": "e9f782471f9533f7b339be8a70a57196eb8135b5cfe449d2957810794f289803"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.1561131, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='shop', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='shop_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "shop"], ["shopify", "shop"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__shop_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_shop_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__transaction_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__transaction_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__transaction_tmp"], "alias": "stg_shopify__transaction_tmp", "checksum": {"name": "sha256", "checksum": "fe66d5a0482b65f07d4d7173cd2aef146efabcf38e17fed7aa2e7d1d1f8b1f33"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.1659918, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "transaction"], ["shopify", "transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_variant_media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_variant_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_variant_media_tmp"], "alias": "stg_shopify__product_variant_media_tmp", "checksum": {"name": "sha256", "checksum": "cd139c183a1ca8cb8118db376fa3f7d1b31636685eb01ec485a82e75a7a28d65"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.174422, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_product_variant_media', False) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant_media"], ["shopify", "product_variant_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_variant_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_line_tmp"], "alias": "stg_shopify__order_line_tmp", "checksum": {"name": "sha256", "checksum": "d8a2b2b7331a577fe56b007114d5e8d9c9422dec4bdc3a7a92ed4b975e811eab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.1832216, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line"], ["shopify", "order_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_media_tmp"], "alias": "stg_shopify__product_media_tmp", "checksum": {"name": "sha256", "checksum": "a05118e90fbe264d9ec4586834a925938d4ffdc01126953864c80e75d1e1572f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.1915646, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_media"], ["shopify", "product_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_basic_tmp"], "alias": "stg_shopify__discount_code_basic_tmp", "checksum": {"name": "sha256", "checksum": "6b6304e0f284579e79af69626b602eb9c4bd9de54c74e74b4956174d796d24fb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.201297, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_basic', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_basic_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_basic"], ["shopify", "discount_code_basic"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_shipping_tax_line_tmp"], "alias": "stg_shopify__order_shipping_tax_line_tmp", "checksum": {"name": "sha256", "checksum": "5d38344e972f1093709af51973879e64d530563a4b82ec9d06d313db387c5318"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.2097442, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_tax_line"], ["shopify", "order_shipping_tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_note_attribute_tmp"], "alias": "stg_shopify__order_note_attribute_tmp", "checksum": {"name": "sha256", "checksum": "2cc3882bae2ba3aa7c2110da7e9e80172971e9ca75b03700615c4ec0e85124af"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.2181203, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_note_attribute', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_note_attribute_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_note_attribute"], ["shopify", "order_note_attribute"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_application_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_application_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_application_tmp"], "alias": "stg_shopify__discount_application_tmp", "checksum": {"name": "sha256", "checksum": "303e6de79bb4d473c2d041c88a66aa1ee0a79961b5b044472cb5a5b2169cb622"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.226518, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_application', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_application_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_application"], ["shopify", "discount_application"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_application_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_application_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__tender_transaction_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__tender_transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__tender_transaction_tmp"], "alias": "stg_shopify__tender_transaction_tmp", "checksum": {"name": "sha256", "checksum": "2ff3b509f93c78e9e47e8dce5e43f5c97a8ad66b5cb9b2ff68f9b4ddb37b502d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.2360747, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tender_transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tender_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tender_transaction"], ["shopify", "tender_transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__tender_transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tender_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_free_shipping_tmp"], "alias": "stg_shopify__discount_code_free_shipping_tmp", "checksum": {"name": "sha256", "checksum": "daf2f7cefba4ef7cf8917d509e7a199b591e31ba3931e27a0b0d81e4e551184d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.2444973, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_free_shipping', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_free_shipping_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_free_shipping"], ["shopify", "discount_code_free_shipping"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_tag_tmp"], "alias": "stg_shopify__product_tag_tmp", "checksum": {"name": "sha256", "checksum": "6103799f99a890d76dc2ec51299412d9708fd31f94528fb71198148f4462a9b4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.252915, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_tag"], ["shopify", "product_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_item_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_item_tmp"], "alias": "stg_shopify__inventory_item_tmp", "checksum": {"name": "sha256", "checksum": "80078c5de257923b797af6925dace90a4bc9540ba0b787c0d94cd99f90fb2df9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.2613606, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_item"], ["shopify", "inventory_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_tmp"], "alias": "stg_shopify__order_tmp", "checksum": {"name": "sha256", "checksum": "67e08e77af56b0e21cbe52d7cae143433d14a805c38eae3aeaaa6325e4849af5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.2709048, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order',\n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order"], ["shopify", "order"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_redeem_code_tmp"], "alias": "stg_shopify__discount_redeem_code_tmp", "checksum": {"name": "sha256", "checksum": "ee9513dba26602b035fed4f3b201585cf07e919856c51d1f846b7ffee8f71cca"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.2793496, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_redeem_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_redeem_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_redeem_code"], ["shopify", "discount_redeem_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__customer_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__customer_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__customer_tmp"], "alias": "stg_shopify__customer_tmp", "checksum": {"name": "sha256", "checksum": "8186176eeffaabc3738d1e3aa65b2a56d1a708202122324f0169520faf245327"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.2876086, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer"], ["shopify", "customer"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__customer_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_adjustment_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_adjustment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_adjustment_tmp"], "alias": "stg_shopify__order_adjustment_tmp", "checksum": {"name": "sha256", "checksum": "660c959bd994c8ebeb444328094cae630dae00be0ffdfecedb5e46d62635507d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.2959445, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_adjustment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_adjustment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_adjustment"], ["shopify", "order_adjustment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_adjustment_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_adjustment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_shipping_line_tmp"], "alias": "stg_shopify__abandoned_checkout_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "5197f889810c43cba25bb329b29fc36f1a2694481886a84d85db44061121e4ba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.305443, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_shipping_line"], ["shopify", "abandoned_checkout_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__collection_product_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__collection_product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__collection_product_tmp"], "alias": "stg_shopify__collection_product_tmp", "checksum": {"name": "sha256", "checksum": "f210c463c05bd68110fb94b96ecc72832aa2b6c6bcbbd0faa14fd9e081f098ff"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.3141458, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection_product"], ["shopify", "collection_product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__collection_product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_tmp"], "alias": "stg_shopify__abandoned_checkout_tmp", "checksum": {"name": "sha256", "checksum": "725135b3d811e4e230601561e990f0c8f03ff22a855abd5b57e8152ae0093e43"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595380.3225226, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout"], ["shopify", "abandoned_checkout"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__media.sql", "original_file_path": "models/graphql/stg_shopify_gql__media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__media"], "alias": "stg_shopify_gql__media", "checksum": {"name": "sha256", "checksum": "653de7e7a0d32617a2b87aee243be40cd14af47689ece20af8771b3c27136913"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing media metadata, including status and timestamps.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `media_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7127435, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__media_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_shopify_gql__media_tmp')),\n staging_columns=get_graphql_media_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_visit": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_visit.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_visit.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_visit"], "alias": "stg_shopify_gql__customer_visit", "checksum": {"name": "sha256", "checksum": "dc6dbc7c87fbaf8737671d7d2f502113fa6266ae3ed31720df6bf23974c04c56"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metadata about a customer's session visiting a Shopify store, including session, landing page, referrer, marketing campaign, and source attribution information. This data helps merchants analyze the effectiveness of marketing campaigns and customer engagement.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_visit_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_visit_id": {"name": "customer_visit_id", "description": "A globally-unique identifier for the customer visit session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "The ID of the order associated with the customer visit, if any.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of marketing tactic associated with the session. Possible values include: abandoned_cart, ad, affiliate, link, loyalty, message, newsletter, notification, post, retargeting, seo, storefront_app, transactional.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page": {"name": "landing_page", "description": "The URL of the first page the customer landed on for the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page_html": {"name": "landing_page_html", "description": "The landing page URL rendered as HTML with a hyperlink.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "occurred_at": {"name": "occurred_at", "description": "The timestamp when the customer's session occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_code": {"name": "referral_code", "description": "A marketing referral code captured from the landing URL. Supports query params like `ref`, `source`, or `r`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_info_html": {"name": "referral_info_html", "description": "Referral info rendered as HTML with URLs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The referring webpage where the customer clicked a link to arrive at the store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The origin of the customer's visit, such as a platform (e.g., Facebook, Google), a QR code, direct, or other attribution channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_description": {"name": "source_description", "description": "A more descriptive label for the visit source; used primarily for the first or last session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_type": {"name": "source_type", "description": "The marketing tactic type, such as ad, seo, newsletter, etc.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_campaign": {"name": "utm_parameters_campaign", "description": "The name of the marketing campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_content": {"name": "utm_parameters_content", "description": "Identifies specific content within a campaign, used to differentiate similar links.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_medium": {"name": "utm_parameters_medium", "description": "The medium of the campaign (e.g., cpc, banner, email).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_source": {"name": "utm_parameters_source", "description": "The traffic source for the campaign (e.g., google, newsletter).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_term": {"name": "utm_parameters_term", "description": "Search terms associated with paid campaigns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.8359272, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_customer_visit', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_visit_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_shopify_gql__customer_visit_tmp')),\n staging_columns=get_graphql_customer_visit_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_visit_id,\n order_id,\n type,\n landing_page,\n landing_page_html,\n referral_code,\n referral_info_html,\n referrer_url as referring_site,\n source,\n source_description,\n source_type,\n utm_parameters_campaign,\n utm_parameters_content,\n utm_parameters_medium,\n utm_parameters_source,\n utm_parameters_term,\n {{ shopify_source.fivetran_convert_timezone(column='cast(occurred_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as occurred_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_visit_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_visit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_visit.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n landing_page\n \n as \n \n landing_page\n \n, \n \n \n landing_page_html\n \n as \n \n landing_page_html\n \n, \n \n \n occurred_at\n \n as \n \n occurred_at\n \n, \n \n \n referral_code\n \n as \n \n referral_code\n \n, \n \n \n referral_info_html\n \n as \n \n referral_info_html\n \n, \n \n \n referrer_url\n \n as \n \n referrer_url\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_description\n \n as \n \n source_description\n \n, \n \n \n source_type\n \n as \n \n source_type\n \n, \n \n \n utm_parameters_campaign\n \n as \n \n utm_parameters_campaign\n \n, \n \n \n utm_parameters_content\n \n as \n \n utm_parameters_content\n \n, \n \n \n utm_parameters_medium\n \n as \n \n utm_parameters_medium\n \n, \n \n \n utm_parameters_source\n \n as \n \n utm_parameters_source\n \n, \n \n \n utm_parameters_term\n \n as \n \n utm_parameters_term\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_visit_id,\n order_id,\n type,\n landing_page,\n landing_page_html,\n referral_code,\n referral_info_html,\n referrer_url as referring_site,\n source,\n source_description,\n source_type,\n utm_parameters_campaign,\n utm_parameters_content,\n utm_parameters_medium,\n utm_parameters_source,\n utm_parameters_term,\n cast(\n cast(cast(occurred_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as occurred_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_app": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_app.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_app.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_app"], "alias": "stg_shopify_gql__discount_code_app", "checksum": {"name": "sha256", "checksum": "0ba65d555b341ea472c2d2b467241a6df089e4b223676e974feffdd7f747df7a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for discount codes created through third-party apps in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.6945217, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_discount_code_app', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_app_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_shopify_gql__discount_code_app_tmp')),\n staging_columns=get_graphql_discount_code_app_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_app_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_app_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_app.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count_count\n \n as \n \n codes_count_count\n \n, \n \n \n codes_count_precision\n \n as \n \n codes_count_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_tag"], "alias": "stg_shopify_gql__customer_tag", "checksum": {"name": "sha256", "checksum": "d1dc3244691c097ebdca6b9f76fcb51c4f898b7d4653bb1a2e3c1c092c9b3d70"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.6891134, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_tag_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_shopify_gql__customer_tag_tmp')),\n staging_columns=get_graphql_customer_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['customer_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order.sql", "original_file_path": "models/graphql/stg_shopify_gql__order.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order"], "alias": "stg_shopify_gql__order", "checksum": {"name": "sha256", "checksum": "9c104f3d7986e5c83382a7cec256a7666306e5f61fdbd590a8c0cac6b185c13e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "A globally-unique ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the customer who placed the order. Useful for fraud detection and geographic analysis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The shop currency when the order was placed. For example, \"USD\" or \"CAD\".", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "An order's financial status for display in the Shopify admin. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFinancialStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's fulfillment status that displays in the Shopify admin to merchants. For example, an order might be unfulfilled or scheduled. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFulfillmentStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The unique identifier for the order that appears on the order page in the Shopify admin and the Order status page. For example, \"#1001\", \"EN1001\", or \"1001-A\". This value isn't unique across multiple stores.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The optional note associated with the order. Contains additional information or instructions added by merchants or customers during the order process. Commonly used for special delivery instructions, gift messages, or internal processing notes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The name of the source associated with the order, such as \"web\", \"mobile_app\", or \"pos\". Use this field to identify the platform where the order was placed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_amount": {"name": "total_discounts_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_amount": {"name": "total_discounts_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_currency_code": {"name": "total_discounts_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_currency_code": {"name": "total_discounts_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights before returns, in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The staff member who created or is responsible for the order. Useful for tracking which team member handled phone orders, manual orders, or order modifications. Returns null for orders created directly by customers through the online store.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL where customers can check their order's current status, including tracking information and delivery updates. Provides order tracking links in emails, apps, or customer communications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received_shop_amount": {"name": "total_tip_received_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_amount": {"name": "total_tip_received_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_currency_code": {"name": "total_tip_received_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_currency_code": {"name": "total_tip_received_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_amount": {"name": "shipping_cost_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_amount": {"name": "shipping_cost_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_currency_code": {"name": "shipping_cost_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_currency_code": {"name": "shipping_cost_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.6771448, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_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_shopify_gql__order_tmp')),\n staging_columns=get_graphql_order_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_id,\n staff_member_id as user_id,\n total_discounts_set_pres_amount as total_discounts_pres_amount,\n total_discounts_set_pres_currency_code as total_discounts_pres_currency_code,\n total_discounts_set_shop_amount as total_discounts_shop_amount,\n total_discounts_set_shop_currency_code as total_discounts_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n source_name,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received_set_pres_amount as total_tip_received_pres_amount,\n total_tip_received_set_pres_currency_code as total_tip_received_pres_currency_code,\n total_tip_received_set_shop_amount as total_tip_received_shop_amount,\n total_tip_received_set_shop_currency_code as total_tip_received_shop_currency_code,\n location_id,\n name,\n note,\n number, -- Will be included in 2025-07 release of GraphQL API\n cancel_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(cancelled_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as cancelled_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n currency_code as currency,\n customer_id,\n lower(email) as email,\n lower(display_financial_status) as financial_status,\n lower(display_fulfillment_status) as fulfillment_status,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n client_ip as browser_ip,\n total_shipping_price_set_pres_amount as shipping_cost_pres_amount,\n total_shipping_price_set_pres_currency_code as shipping_cost_pres_currency_code,\n total_shipping_price_set_shop_amount as shipping_cost_shop_amount,\n total_shipping_price_set_shop_currency_code as shipping_cost_shop_currency_code,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n app_id,\n customer_locale,\n status_page_url as order_status_url,\n presentment_currency_code as presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n customer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('order_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n app_id\n \n as \n \n app_id\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n cancel_reason\n \n as \n \n cancel_reason\n \n, \n \n \n cancelled_at\n \n as \n \n cancelled_at\n \n, \n \n \n client_ip\n \n as \n \n client_ip\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n confirmed\n \n as \n \n confirmed\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n customer_accepts_marketing\n \n as \n \n customer_accepts_marketing\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_locale\n \n as \n \n customer_locale\n \n, \n \n \n display_financial_status\n \n as \n \n display_financial_status\n \n, \n \n \n display_fulfillment_status\n \n as \n \n display_fulfillment_status\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n presentment_currency_code\n \n as \n \n presentment_currency_code\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n status_page_url\n \n as \n \n status_page_url\n \n, \n \n \n subtotal_price_set_pres_amount\n \n as \n \n subtotal_price_set_pres_amount\n \n, \n \n \n subtotal_price_set_pres_currency_code\n \n as \n \n subtotal_price_set_pres_currency_code\n \n, \n \n \n subtotal_price_set_shop_amount\n \n as \n \n subtotal_price_set_shop_amount\n \n, \n \n \n subtotal_price_set_shop_currency_code\n \n as \n \n subtotal_price_set_shop_currency_code\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n total_discounts_set_pres_amount\n \n as \n \n total_discounts_set_pres_amount\n \n, \n \n \n total_discounts_set_pres_currency_code\n \n as \n \n total_discounts_set_pres_currency_code\n \n, \n \n \n total_discounts_set_shop_amount\n \n as \n \n total_discounts_set_shop_amount\n \n, \n \n \n total_discounts_set_shop_currency_code\n \n as \n \n total_discounts_set_shop_currency_code\n \n, \n \n \n total_price_set_pres_amount\n \n as \n \n total_price_set_pres_amount\n \n, \n \n \n total_price_set_pres_currency_code\n \n as \n \n total_price_set_pres_currency_code\n \n, \n \n \n total_price_set_shop_amount\n \n as \n \n total_price_set_shop_amount\n \n, \n \n \n total_price_set_shop_currency_code\n \n as \n \n total_price_set_shop_currency_code\n \n, \n \n \n total_shipping_price_set_pres_amount\n \n as \n \n total_shipping_price_set_pres_amount\n \n, \n \n \n total_shipping_price_set_pres_currency_code\n \n as \n \n total_shipping_price_set_pres_currency_code\n \n, \n \n \n total_shipping_price_set_shop_amount\n \n as \n \n total_shipping_price_set_shop_amount\n \n, \n \n \n total_shipping_price_set_shop_currency_code\n \n as \n \n total_shipping_price_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\n \n, \n \n \n total_tip_received_set_pres_amount\n \n as \n \n total_tip_received_set_pres_amount\n \n, \n \n \n total_tip_received_set_pres_currency_code\n \n as \n \n total_tip_received_set_pres_currency_code\n \n, \n \n \n total_tip_received_set_shop_amount\n \n as \n \n total_tip_received_set_shop_amount\n \n, \n \n \n total_tip_received_set_shop_currency_code\n \n as \n \n total_tip_received_set_shop_currency_code\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_id,\n staff_member_id as user_id,\n total_discounts_set_pres_amount as total_discounts_pres_amount,\n total_discounts_set_pres_currency_code as total_discounts_pres_currency_code,\n total_discounts_set_shop_amount as total_discounts_shop_amount,\n total_discounts_set_shop_currency_code as total_discounts_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n source_name,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received_set_pres_amount as total_tip_received_pres_amount,\n total_tip_received_set_pres_currency_code as total_tip_received_pres_currency_code,\n total_tip_received_set_shop_amount as total_tip_received_shop_amount,\n total_tip_received_set_shop_currency_code as total_tip_received_shop_currency_code,\n location_id,\n name,\n note,\n number, -- Will be included in 2025-07 release of GraphQL API\n cancel_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(cancelled_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as cancelled_timestamp,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n currency_code as currency,\n customer_id,\n lower(email) as email,\n lower(display_financial_status) as financial_status,\n lower(display_fulfillment_status) as fulfillment_status,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n client_ip as browser_ip,\n total_shipping_price_set_pres_amount as shipping_cost_pres_amount,\n total_shipping_price_set_pres_currency_code as shipping_cost_pres_currency_code,\n total_shipping_price_set_shop_amount as shipping_cost_shop_amount,\n total_shipping_price_set_shop_currency_code as shipping_cost_shop_currency_code,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n app_id,\n customer_locale,\n status_page_url as order_status_url,\n presentment_currency_code as presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n customer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_line"], "alias": "stg_shopify_gql__order_line", "checksum": {"name": "sha256", "checksum": "109c38abe09fecda46bfe1c3abaab41598133e0972636f50bb20d067987f3185"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.678947, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_line_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_shopify_gql__order_line_tmp')),\n staging_columns=get_graphql_order_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_line_id,\n row_number() over(partition by order_id, source_relation order by id asc) as index,\n name,\n order_id,\n case \n when unfulfilled_quantity = 0 then 'fulfilled'\n when unfulfilled_quantity > 0 and unfulfilled_quantity < quantity then 'partial'\n when unfulfilled_quantity = quantity then 'unfulfilled'\n else null \n end as fulfillment_status,\n is_gift_card,\n original_total_set_pres_amount as price_pres_amount,\n original_total_set_pres_currency_code as price_pres_currency_code,\n original_total_set_shop_amount as price_shop_amount,\n original_total_set_shop_currency_code as price_shop_currency_code,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n title,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n variant_id,\n variant_title,\n vendor,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n {{ fivetran_utils.fill_pass_through_columns('order_line_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_gift_card\n \n as \n \n is_gift_card\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n original_total_set_pres_amount\n \n as \n \n original_total_set_pres_amount\n \n, \n \n \n original_total_set_pres_currency_code\n \n as \n \n original_total_set_pres_currency_code\n \n, \n \n \n original_total_set_shop_amount\n \n as \n \n original_total_set_shop_amount\n \n, \n \n \n original_total_set_shop_currency_code\n \n as \n \n original_total_set_shop_currency_code\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\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 total_discount_set_pres_amount\n \n as \n \n total_discount_set_pres_amount\n \n, \n \n \n total_discount_set_pres_currency_code\n \n as \n \n total_discount_set_pres_currency_code\n \n, \n \n \n total_discount_set_shop_amount\n \n as \n \n total_discount_set_shop_amount\n \n, \n \n \n total_discount_set_shop_currency_code\n \n as \n \n total_discount_set_shop_currency_code\n \n, \n \n \n unfulfilled_quantity\n \n as \n \n unfulfilled_quantity\n \n, \n \n \n variant_id\n \n as \n \n variant_id\n \n, \n \n \n variant_title\n \n as \n \n variant_title\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_line_id,\n row_number() over(partition by order_id, source_relation order by id asc) as index,\n name,\n order_id,\n case \n when unfulfilled_quantity = 0 then 'fulfilled'\n when unfulfilled_quantity > 0 and unfulfilled_quantity < quantity then 'partial'\n when unfulfilled_quantity = quantity then 'unfulfilled'\n else null \n end as fulfillment_status,\n is_gift_card,\n original_total_set_pres_amount as price_pres_amount,\n original_total_set_pres_currency_code as price_pres_currency_code,\n original_total_set_shop_amount as price_shop_amount,\n original_total_set_shop_currency_code as price_shop_currency_code,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n title,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n variant_id,\n variant_title,\n vendor,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_item.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_item.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_item"], "alias": "stg_shopify_gql__inventory_item", "checksum": {"name": "sha256", "checksum": "32245e3be959135fac78958f66d2bd942b104f90bf7c1cf0176b5fe76d3da089"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_item_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7080023, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_item_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_shopify_gql__inventory_item_tmp')),\n staging_columns=get_graphql_inventory_item_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted,\n unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country_code_of_origin\n \n as \n \n country_code_of_origin\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n duplicate_sku_count\n \n as \n \n duplicate_sku_count\n \n, \n \n \n harmonized_system_code\n \n as \n \n harmonized_system_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_history_url\n \n as \n \n inventory_history_url\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n measurement_id\n \n as \n \n measurement_id\n \n, \n \n \n measurement_weight_unit\n \n as \n \n measurement_weight_unit\n \n, \n \n \n measurement_weight_value\n \n as \n \n measurement_weight_value\n \n, \n \n \n province_code_of_origin\n \n as \n \n province_code_of_origin\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tracked\n \n as \n \n tracked\n \n, \n \n \n tracked_editable_locked\n \n as \n \n tracked_editable_locked\n \n, \n \n \n tracked_editable_reason\n \n as \n \n tracked_editable_reason\n \n, \n \n \n unit_cost_amount\n \n as \n \n unit_cost_amount\n \n, \n \n \n unit_cost_currency_code\n \n as \n \n unit_cost_currency_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted,\n unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_shipping_tax_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_shipping_tax_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_shipping_tax_line"], "alias": "stg_shopify_gql__order_shipping_tax_line", "checksum": {"name": "sha256", "checksum": "1ce49a7e29271683d2a26b5640c826be0a3c626e752ce9600fa531b9cfdbbf26"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents taxes associated with order shipping lines.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_shipping_line_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this record is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The amount of tax in customer currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The amount of tax in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7276864, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_shipping_tax_line_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_shopify_gql__order_shipping_tax_line_tmp')),\n staging_columns=get_graphql_order_shipping_tax_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_shipping_line_id', 'index', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_shipping_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_shipping_tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_shipping_line_id\n \n as \n \n order_shipping_line_id\n \n, \n \n \n price_set_pres_amount\n \n as \n \n price_set_pres_amount\n \n, \n \n \n price_set_pres_currency_code\n \n as \n \n price_set_pres_currency_code\n \n, \n \n \n price_set_shop_amount\n \n as \n \n price_set_shop_amount\n \n, \n \n \n price_set_shop_currency_code\n \n as \n \n price_set_shop_currency_code\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_shipping_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_order_line_item"], "alias": "stg_shopify_gql__fulfillment_order_line_item", "checksum": {"name": "sha256", "checksum": "cce1876da347fe32a6a944ed7db67af1c5897acfa7c3f164c6f02707ecd93e37"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Links a fulfillment order to specific items that require fulfillment. Contains detailed product information, quantity tracking, variant metadata, and shipping requirements. This is a core entity for determining which products and how many units are involved in a given fulfillment process.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_order_line_item_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_order_line_item_id": {"name": "fulfillment_order_line_item_id", "description": "A globally unique identifier for this fulfillment order line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_order_id": {"name": "fulfillment_order_id", "description": "The identifier of the fulfillment order that this line item is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "Alt text describing the image associated with the line item's variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "The height in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "The unique identifier for the variant image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The url of the variant image used in this fulfillment line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "The width in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The identifier of the inventory item being fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_item_id": {"name": "order_line_item_id", "description": "The identifier of the original order line item linked to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_title": {"name": "product_title", "description": "The title of the product at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The identifier of the product variant associated with this fulfillment item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remaining_quantity": {"name": "remaining_quantity", "description": "The number of units remaining to be fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Indicates whether physical shipping is required for this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The SKU of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "The total number of units allocated to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The vendor of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.705004, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_order_line_item', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_order_line_item_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_shopify_gql__fulfillment_order_line_item_tmp')),\n staging_columns=get_graphql_fulfillment_order_line_item_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_order_line_item_id,\n fulfillment_order_id,\n image_alt_text,\n image_height,\n image_id,\n image_url,\n image_width,\n inventory_item_id,\n order_line_item_id,\n product_title,\n product_variant_id,\n remaining_quantity,\n requires_shipping,\n sku,\n total_quantity,\n variant_title,\n vendor,\n weight_unit,\n weight_value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_order_line_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fulfillment_order_id\n \n as \n \n fulfillment_order_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n order_line_item_id\n \n as \n \n order_line_item_id\n \n, \n \n \n product_title\n \n as \n \n product_title\n \n, \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n remaining_quantity\n \n as \n \n remaining_quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n total_quantity\n \n as \n \n total_quantity\n \n, \n \n \n variant_title\n \n as \n \n variant_title\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n, \n \n \n weight_value\n \n as \n \n weight_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_order_line_item_id,\n fulfillment_order_id,\n image_alt_text,\n image_height,\n image_id,\n image_url,\n image_width,\n inventory_item_id,\n order_line_item_id,\n product_title,\n product_variant_id,\n remaining_quantity,\n requires_shipping,\n sku,\n total_quantity,\n variant_title,\n vendor,\n weight_unit,\n weight_value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_shipping_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_shipping_line"], "alias": "stg_shopify_gql__order_shipping_line", "checksum": {"name": "sha256", "checksum": "5da193b8bb92f55d18b8e41ab292c215df78b4d69d5380fa52172a808a1fd08d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents the shipping details that the customer chose for their order.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_shipping_line_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_pres_amount": {"name": "discounted_price_pres_amount", "description": "Shipping price in customer currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_pres_currency_code": {"name": "discounted_price_pres_currency_code", "description": "Three digit customer currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_shop_amount": {"name": "discounted_price_shop_amount", "description": "Shipping price in shop currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_shop_currency_code": {"name": "discounted_price_shop_currency_code", "description": "Three digit shop currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The pre-tax shipping price without any discounts applied in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The pre-tax shipping price without any discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7261167, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_shipping_line_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_shopify_gql__order_shipping_line_tmp')),\n staging_columns=get_graphql_order_shipping_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price_set_pres_amount as discounted_price_pres_amount,\n discounted_price_set_pres_currency_code as discounted_price_pres_currency_code,\n discounted_price_set_shop_amount as discounted_price_shop_amount,\n discounted_price_set_shop_currency_code as discounted_price_shop_currency_code,\n phone,\n original_price_set_pres_amount as price_pres_amount,\n original_price_set_pres_currency_code as price_pres_currency_code,\n original_price_set_shop_amount as price_shop_amount,\n original_price_set_shop_currency_code as price_shop_currency_code,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n discounted_price_set_pres_amount\n \n as \n \n discounted_price_set_pres_amount\n \n, \n \n \n discounted_price_set_pres_currency_code\n \n as \n \n discounted_price_set_pres_currency_code\n \n, \n \n \n discounted_price_set_shop_amount\n \n as \n \n discounted_price_set_shop_amount\n \n, \n \n \n discounted_price_set_shop_currency_code\n \n as \n \n discounted_price_set_shop_currency_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n original_price_set_pres_amount\n \n as \n \n original_price_set_pres_amount\n \n, \n \n \n original_price_set_pres_currency_code\n \n as \n \n original_price_set_pres_currency_code\n \n, \n \n \n original_price_set_shop_amount\n \n as \n \n original_price_set_shop_amount\n \n, \n \n \n original_price_set_shop_currency_code\n \n as \n \n original_price_set_shop_currency_code\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price_set_pres_amount as discounted_price_pres_amount,\n discounted_price_set_pres_currency_code as discounted_price_pres_currency_code,\n discounted_price_set_shop_amount as discounted_price_shop_amount,\n discounted_price_set_shop_currency_code as discounted_price_shop_currency_code,\n phone,\n original_price_set_pres_amount as price_pres_amount,\n original_price_set_pres_currency_code as price_pres_currency_code,\n original_price_set_shop_amount as price_shop_amount,\n original_price_set_shop_currency_code as price_shop_currency_code,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product.sql", "original_file_path": "models/graphql/stg_shopify_gql__product.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product"], "alias": "stg_shopify_gql__product", "checksum": {"name": "sha256", "checksum": "bd16eaf9c2f2b9d327db6071a73dc1fa5aaa07b070d4f3fd72bd82f8621145a9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7298398, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_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_shopify_gql__product_tmp')),\n staging_columns=get_graphql_product_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as product_id,\n handle,\n product_type,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('product_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n status\n \n as \n \n status\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\n \n as \n \n vendor\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as product_id,\n handle,\n product_type,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment"], "alias": "stg_shopify_gql__fulfillment", "checksum": {"name": "sha256", "checksum": "545e435664dc989b50d51ec7cd18d7ad7e582c75fb916d7be3176e7c1ce5af7b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7016528, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_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_shopify_gql__fulfillment_tmp')),\n staging_columns=get_graphql_fulfillment_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service_id as service,\n lower(display_status) as shipment_status,\n lower(status) as status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n display_status\n \n as \n \n display_status\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n service_id\n \n as \n \n service_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n total_quantity\n \n as \n \n total_quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service_id as service,\n lower(display_status) as shipment_status,\n lower(status) as status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_allocation": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_allocation.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_allocation.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_allocation"], "alias": "stg_shopify_gql__discount_allocation", "checksum": {"name": "sha256", "checksum": "739863a768f40dd60d330e331eae06d15864832e04c0ca6b863424ec4f7ac4c6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing allocation amounts from discount applications across specific order lines.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id`, `discount_application_index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocated_pres_amount": {"name": "allocated_pres_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_pres_currency_code": {"name": "allocated_pres_currency_code", "description": "The presentment money currency code for the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_shop_amount": {"name": "allocated_shop_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_shop_currency_code": {"name": "allocated_shop_currency_code", "description": "The shop money currency code for the store\u2019s currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to. Used to join with the discount application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount allocation within the list of allocations on an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.6916277, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_allocation_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_shopify_gql__discount_allocation_tmp')),\n staging_columns=get_graphql_discount_allocation_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n allocated_amount_set_pres_amount as allocated_pres_amount,\n allocated_amount_set_pres_currency_code as allocated_pres_currency_code,\n allocated_amount_set_shop_amount as allocated_shop_amount,\n allocated_amount_set_shop_currency_code as allocated_shop_currency_code,\n discount_application_index,\n index,\n order_line_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_line_id', 'discount_application_index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_allocation_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_allocation_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_allocation.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocated_amount_set_pres_amount\n \n as \n \n allocated_amount_set_pres_amount\n \n, \n \n \n allocated_amount_set_pres_currency_code\n \n as \n \n allocated_amount_set_pres_currency_code\n \n, \n \n \n allocated_amount_set_shop_amount\n \n as \n \n allocated_amount_set_shop_amount\n \n, \n \n \n allocated_amount_set_shop_currency_code\n \n as \n \n allocated_amount_set_shop_currency_code\n \n, \n \n \n discount_application_index\n \n as \n \n discount_application_index\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n allocated_amount_set_pres_amount as allocated_pres_amount,\n allocated_amount_set_pres_currency_code as allocated_pres_currency_code,\n allocated_amount_set_shop_amount as allocated_shop_amount,\n allocated_amount_set_shop_currency_code as allocated_shop_currency_code,\n discount_application_index,\n index,\n order_line_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_application_index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__tax_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__tax_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tax_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__tax_line"], "alias": "stg_shopify_gql__tax_line", "checksum": {"name": "sha256", "checksum": "7c3265693bb444db83715b94d4923ebc32f8d385562f5dd4b570230542e309d6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a single tax applied to the associated line item.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The amount of tax in customer currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The amount of tax in shop currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.8309474, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__tax_line_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_shopify_gql__tax_line_tmp')),\n staging_columns=get_graphql_tax_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_line_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n price_set_pres_amount\n \n as \n \n price_set_pres_amount\n \n, \n \n \n price_set_pres_currency_code\n \n as \n \n price_set_pres_currency_code\n \n, \n \n \n price_set_shop_amount\n \n as \n \n price_set_shop_amount\n \n, \n \n \n price_set_shop_currency_code\n \n as \n \n price_set_shop_currency_code\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_line_refund.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_line_refund.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_line_refund"], "alias": "stg_shopify_gql__order_line_refund", "checksum": {"name": "sha256", "checksum": "0402af2a04adb3d40bbdc43cd8f592cecec885892b79aedebe455210880640fe"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item refund in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_refund_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_line_refund_id": {"name": "order_line_refund_id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location where the items will be restocked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_pres_amount": {"name": "subtotal_pres_amount", "description": "The refunded subtotal amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_pres_currency_code": {"name": "subtotal_pres_currency_code", "description": "The three letter currency code for the subtotal the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_shop_amount": {"name": "subtotal_shop_amount", "description": "The refunded subtotal amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_shop_currency_code": {"name": "subtotal_shop_currency_code", "description": "The three letter currency code for the subtotal in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three letter currency code of the tax the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three letter currency code of the tax in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7223113, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_line_refund_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_shopify_gql__order_line_refund_tmp')),\n staging_columns=get_graphql_order_line_refund_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal_set_pres_amount as subtotal_pres_amount,\n subtotal_set_pres_currency_code as subtotal_pres_currency_code,\n subtotal_set_shop_amount as subtotal_shop_amount,\n subtotal_set_shop_currency_code as subtotal_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n quantity,\n refund_id,\n lower(restock_type) as restock_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_refund_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_line_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_line_refund.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n restock_type\n \n as \n \n restock_type\n \n, \n \n \n subtotal_set_pres_amount\n \n as \n \n subtotal_set_pres_amount\n \n, \n \n \n subtotal_set_pres_currency_code\n \n as \n \n subtotal_set_pres_currency_code\n \n, \n \n \n subtotal_set_shop_amount\n \n as \n \n subtotal_set_shop_amount\n \n, \n \n \n subtotal_set_shop_currency_code\n \n as \n \n subtotal_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal_set_pres_amount as subtotal_pres_amount,\n subtotal_set_pres_currency_code as subtotal_pres_currency_code,\n subtotal_set_shop_amount as subtotal_shop_amount,\n subtotal_set_shop_currency_code as subtotal_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n quantity,\n refund_id,\n lower(restock_type) as restock_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_level": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_level.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_level.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_level"], "alias": "stg_shopify_gql__inventory_level", "checksum": {"name": "sha256", "checksum": "666a85a3945cef763805af14862e54687fbadf91916472cc6858e442ff60cf23"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory level represents the quantities of an inventory item for a location. Each inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_level_id`, `inventory_item_id`, `location_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7091103, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_level_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_shopify_gql__inventory_level_tmp')),\n staging_columns=get_graphql_inventory_level_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_level_id,\n inventory_item_id,\n location_id,\n can_deactivate,\n deactivation_alert,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'inventory_item_id', 'location_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_level_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_level_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_level.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n can_deactivate\n \n as \n \n can_deactivate\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deactivation_alert\n \n as \n \n deactivation_alert\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_level_id,\n inventory_item_id,\n location_id,\n can_deactivate,\n deactivation_alert,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_item_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(location_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__shop": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__shop", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__shop.sql", "original_file_path": "models/graphql/stg_shopify_gql__shop.sql", "unique_id": "model.shopify_source.stg_shopify_gql__shop", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__shop"], "alias": "stg_shopify_gql__shop", "checksum": {"name": "sha256", "checksum": "b0950c23a4aef6080249618f83c620290043117629346a3efd333ad95e6e0d90"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `shop_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_checkout_api_supported": {"name": "has_checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_password_enabled": {"name": "is_password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_setup_required": {"name": "is_setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_shipping_taxes": {"name": "has_shipping_taxes", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included_in_price": {"name": "has_taxes_included_in_price", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_abbreviation": {"name": "timezone_abbreviation", "description": "The shop's time zone abbreviation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset": {"name": "timezone_offset", "description": "The shop's time zone offset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset_minutes": {"name": "timezone_offset_minutes", "description": "The shop's time zone offset expressed as a number of minutes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.8297741, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__shop_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_shopify_gql__shop_tmp')),\n staging_columns=get_graphql_shop_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n billing_address_address_1 as address_1,\n billing_address_address_2 as address_2,\n billing_address_city as city,\n billing_address_province as province,\n billing_address_province_code as province_code,\n billing_address_country_code_v_2 as country, -- in REST API country = code\n billing_address_country_code_v_2 as country_code,\n billing_address_country as country_name,\n billing_address_zip as zip,\n billing_address_latitude as latitude,\n billing_address_longitude as longitude,\n currency_code as currency,\n {{ shopify_source.json_to_string(\"enabled_presentment_currencies\", source_columns_in_relation) }} as enabled_presentment_currencies,\n contact_email as customer_email,\n email,\n primary_domain_host as domain,\n billing_address_phone as phone,\n timezone_abbreviation,\n {# timezone_offset is formatted like -0400 instead of -04:00 #}\n timezone_offset, \n timezone_offset_minutes, \n iana_timezone, \n primary_domain_localization_default_locale as primary_locale,\n weight_unit,\n myshopify_domain,\n shop_owner_name as shop_owner,\n tax_shipping as has_shipping_taxes,\n coalesce(taxes_included, false) as has_taxes_included_in_price,\n features_storefront as has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n currency_formats_money_format as money_format,\n currency_formats_money_in_emails_format as money_in_emails_format,\n currency_formats_money_with_currency_format as money_with_currency_format,\n currency_formats_money_with_currency_in_emails_format as money_with_currency_in_emails_format,\n plan_display_name,\n password_enabled as is_password_enabled,\n setup_required as is_setup_required,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__shop_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_shop_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__shop_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__shop.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code_v_2\n \n as \n \n billing_address_country_code_v_2\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n checkout_api_supported\n \n as \n \n checkout_api_supported\n \n, \n \n \n contact_email\n \n as \n \n contact_email\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n currency_formats_money_format\n \n as \n \n currency_formats_money_format\n \n, \n \n \n currency_formats_money_in_emails_format\n \n as \n \n currency_formats_money_in_emails_format\n \n, \n \n \n currency_formats_money_with_currency_format\n \n as \n \n currency_formats_money_with_currency_format\n \n, \n \n \n currency_formats_money_with_currency_in_emails_format\n \n as \n \n currency_formats_money_with_currency_in_emails_format\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n enabled_presentment_currencies\n \n as \n \n enabled_presentment_currencies\n \n, \n \n \n features_storefront\n \n as \n \n features_storefront\n \n, \n \n \n iana_timezone\n \n as \n \n iana_timezone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n myshopify_domain\n \n as \n \n myshopify_domain\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n password_enabled\n \n as \n \n password_enabled\n \n, \n \n \n plan_display_name\n \n as \n \n plan_display_name\n \n, \n \n \n primary_domain_host\n \n as \n \n primary_domain_host\n \n, \n \n \n primary_domain_localization_default_locale\n \n as \n \n primary_domain_localization_default_locale\n \n, \n \n \n setup_required\n \n as \n \n setup_required\n \n, \n \n \n shop_owner_name\n \n as \n \n shop_owner_name\n \n, \n \n \n tax_shipping\n \n as \n \n tax_shipping\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n timezone_abbreviation\n \n as \n \n timezone_abbreviation\n \n, \n \n \n timezone_offset\n \n as \n \n timezone_offset\n \n, \n \n \n timezone_offset_minutes\n \n as \n \n timezone_offset_minutes\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n billing_address_address_1 as address_1,\n billing_address_address_2 as address_2,\n billing_address_city as city,\n billing_address_province as province,\n billing_address_province_code as province_code,\n billing_address_country_code_v_2 as country, -- in REST API country = code\n billing_address_country_code_v_2 as country_code,\n billing_address_country as country_name,\n billing_address_zip as zip,\n billing_address_latitude as latitude,\n billing_address_longitude as longitude,\n currency_code as currency,\n enabled_presentment_currencies as enabled_presentment_currencies,\n contact_email as customer_email,\n email,\n primary_domain_host as domain,\n billing_address_phone as phone,\n timezone_abbreviation,\n \n timezone_offset, \n timezone_offset_minutes, \n iana_timezone, \n primary_domain_localization_default_locale as primary_locale,\n weight_unit,\n myshopify_domain,\n shop_owner_name as shop_owner,\n tax_shipping as has_shipping_taxes,\n coalesce(taxes_included, false) as has_taxes_included_in_price,\n features_storefront as has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n currency_formats_money_format as money_format,\n currency_formats_money_in_emails_format as money_in_emails_format,\n currency_formats_money_with_currency_format as money_with_currency_format,\n currency_formats_money_with_currency_in_emails_format as money_with_currency_in_emails_format,\n plan_display_name,\n password_enabled as is_password_enabled,\n setup_required as is_setup_required,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__abandoned_checkout_discount_code"], "alias": "stg_shopify_gql__abandoned_checkout_discount_code", "checksum": {"name": "sha256", "checksum": "0c42da3c30c3c151bce61bb481405da53967b9b43818d4d74ce29d238f4a9b57"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Abandoned checkouts that applied a discount code.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `checkout_id`, `code`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the discount codes from abandoned checkouts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.6855595, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__abandoned_checkout_discount_code_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_shopify_gql__abandoned_checkout_discount_code_tmp')),\n staging_columns=get_graphql_abandoned_checkout_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index,\n {{ dbt_utils.generate_surrogate_key(['checkout_id', 'code', 'source_relation']) }} as unique_key\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index,\n md5(cast(coalesce(cast(checkout_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(code as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__location": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__location", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__location.sql", "original_file_path": "models/graphql/stg_shopify_gql__location.sql", "unique_id": "model.shopify_source.stg_shopify_gql__location", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__location"], "alias": "stg_shopify_gql__location", "checksum": {"name": "sha256", "checksum": "8b73ec5a42911c795216811ac8867c5c3d611587e19aa46f698ed21e0802e7df"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `location_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in, this matches the REST API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy": {"name": "is_legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.711739, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__location_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_shopify_gql__location_tmp')),\n staging_columns=get_graphql_location_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n is_active,\n address_1,\n address_2,\n city,\n country_code as country, -- match REST API format\n country_code,\n country as country_name,\n is_fulfillment_service as is_legacy,\n phone,\n province,\n province_code,\n zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__location_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_location_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__location_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__location.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__location_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\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_code\n \n as \n \n country_code\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_active\n \n as \n \n is_active\n \n, \n \n \n is_fulfillment_service\n \n as \n \n is_fulfillment_service\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n is_active,\n address_1,\n address_2,\n city,\n country_code as country, -- match REST API format\n country_code,\n country as country_name,\n is_fulfillment_service as is_legacy,\n phone,\n province,\n province_code,\n zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__transaction", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__transaction.sql", "original_file_path": "models/graphql/stg_shopify_gql__transaction.sql", "unique_id": "model.shopify_source.stg_shopify_gql__transaction", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__transaction"], "alias": "stg_shopify_gql__transaction", "checksum": {"name": "sha256", "checksum": "7424657329c3c4945c6c79b2326dd4991efaf952abff49c191f08dd9ccb5587b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `transaction_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of the transaction in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three letter currency code of the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of the transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three letter currency code of the shop's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.8340786, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__transaction_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_shopify_gql__transaction_tmp')),\n staging_columns=get_graphql_transaction_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_shop_amount as amount_shop,\n device_id, -- Will be included in 2025-07 release of GraphQL API\n gateway,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_currency_code as amount_shop_currency_code,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n lower(kind) as kind, -- lower in REST api\n {{ shopify_source.json_to_string(\"receipt_json\", source_columns_in_relation) }} as receipt,\n currency_exchange_id, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_adjustment, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_original_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_final_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_currency, -- Will be included in 2025-07 release of GraphQL API\n error_code,\n lower(status) as status, -- lower in REST api\n staff_member_id as user_id,\n authorization_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(authorization_expires_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as authorization_expires_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('transaction_pass_through_columns') }}\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount_set_pres_amount\n \n as \n \n amount_set_pres_amount\n \n, \n \n \n amount_set_pres_currency_code\n \n as \n \n amount_set_pres_currency_code\n \n, \n \n \n amount_set_shop_amount\n \n as \n \n amount_set_shop_amount\n \n, \n \n \n amount_set_shop_currency_code\n \n as \n \n amount_set_shop_currency_code\n \n, \n \n \n authorization_code\n \n as \n \n authorization_code\n \n, \n \n \n authorization_expires_at\n \n as \n \n authorization_expires_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n error_code\n \n as \n \n error_code\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n payment_avs_result_code\n \n as \n \n payment_avs_result_code\n \n, \n \n \n payment_credit_card_bin\n \n as \n \n payment_credit_card_bin\n \n, \n \n \n payment_credit_card_company\n \n as \n \n payment_credit_card_company\n \n, \n \n \n payment_credit_card_number\n \n as \n \n payment_credit_card_number\n \n, \n \n \n payment_cvv_result_code\n \n as \n \n payment_cvv_result_code\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n cast(null as TEXT) as \n \n receipt_json\n \n , \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n currency_exchange_id\n \n as \n \n currency_exchange_id\n \n, \n \n \n currency_exchange_adjustment\n \n as \n \n currency_exchange_adjustment\n \n, \n \n \n currency_exchange_original_amount\n \n as \n \n currency_exchange_original_amount\n \n, \n \n \n currency_exchange_final_amount\n \n as \n \n currency_exchange_final_amount\n \n, \n \n \n currency_exchange_currency\n \n as \n \n currency_exchange_currency\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_shop_amount as amount_shop,\n device_id, -- Will be included in 2025-07 release of GraphQL API\n gateway,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_currency_code as amount_shop_currency_code,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n lower(kind) as kind, -- lower in REST api\n receipt_json as receipt,\n currency_exchange_id, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_adjustment, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_original_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_final_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_currency, -- Will be included in 2025-07 release of GraphQL API\n error_code,\n lower(status) as status, -- lower in REST api\n staff_member_id as user_id,\n authorization_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(authorization_expires_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as authorization_expires_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_media.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_media"], "alias": "stg_shopify_gql__product_media", "checksum": {"name": "sha256", "checksum": "cdb03869e9ddfe19b2ce602f5a435a4dd2c24e9ef9e9f38fa6417a3ffaf4e1d9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id`, `media_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7160957, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_media_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_shopify_gql__product_media_tmp')),\n staging_columns=get_graphql_product_media_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n product_id,\n media_id,\n source_relation, \n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n {{ dbt_utils.generate_surrogate_key(['product_id', 'media_id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n media_id,\n source_relation, \n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n md5(cast(coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_variant.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_variant.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_variant"], "alias": "stg_shopify_gql__product_variant", "checksum": {"name": "sha256", "checksum": "c7030869bd75cbabff68beaf7e71249275594b03fc2b06429962e8c596ba07de"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product variant in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `variant_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_available_for_sale": {"name": "is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_components_required": {"name": "has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.8221471, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_variant_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_shopify_gql__product_variant_tmp')),\n staging_columns=get_graphql_product_variant_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n taxable as is_taxable,\n barcode,\n inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n tax_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('product_variant_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_variant_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n available_for_sale\n \n as \n \n available_for_sale\n \n, \n \n \n barcode\n \n as \n \n barcode\n \n, \n \n \n compare_at_price\n \n as \n \n compare_at_price\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_policy\n \n as \n \n inventory_policy\n \n, \n \n \n inventory_quantity\n \n as \n \n inventory_quantity\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n position\n \n as \n \n position\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n requires_components\n \n as \n \n requires_components\n \n, \n \n \n sellable_online_quantity\n \n as \n \n sellable_online_quantity\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tax_code\n \n as \n \n tax_code\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 \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n taxable as is_taxable,\n barcode,\n inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n tax_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_image": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_image", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__media_image.sql", "original_file_path": "models/graphql/stg_shopify_gql__media_image.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_image", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__media_image"], "alias": "stg_shopify_gql__media_image", "checksum": {"name": "sha256", "checksum": "69407476920c94773e783d596ed84aaedfefb3524efba4a654239771ec7bad8f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing image-specific properties for media assets.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `media_id`, `image_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.713767, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__media_image_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__media_image_tmp')),\n staging_columns=get_graphql_media_image_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['media_id', 'image_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__media_image_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_media_image_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__media_image.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation,\n md5(cast(coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(image_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__abandoned_checkout.sql", "original_file_path": "models/graphql/stg_shopify_gql__abandoned_checkout.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__abandoned_checkout"], "alias": "stg_shopify_gql__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "07a4852ed7c97ff18d1a526ca4d4f355ab85f81fc1e7cc652030f6a39732159a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `checkout_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_shop_amount": {"name": "total_duties_shop_amount", "description": "The total duties of the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_pres_amount": {"name": "total_duties_pres_amount", "description": "The total duties of the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_shop_currency_code": {"name": "total_duties_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_pres_currency_code": {"name": "total_duties_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_amount": {"name": "total_line_items_price_shop_amount", "description": "The sum of the prices of all line items in the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_amount": {"name": "total_line_items_price_pres_amount", "description": "The sum of the prices of all line items in the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_currency_code": {"name": "total_line_items_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_currency_code": {"name": "total_line_items_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The sum of all the taxes applied to the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The sum of all the taxes applied to the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "completed_at": {"name": "completed_at", "description": "The date and time when the buyer completed the checkout. Null if the checkout has not been completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The price of the checkout before shipping and taxes in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The price of the checkout before shipping and taxes in *presentment* currencyy. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.684555, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__abandoned_checkout_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_shopify_gql__abandoned_checkout_tmp')),\n staging_columns=get_graphql_abandoned_checkout_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n customer_id,\n id as checkout_id,\n name,\n note,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n taxes_included as has_taxes_included,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_duties_set_shop_amount as total_duties_shop_amount,\n total_duties_set_shop_currency_code as total_duties_shop_currency_code,\n total_duties_set_pres_amount as total_duties_pres_amount,\n total_duties_set_pres_currency_code as total_duties_pres_currency_code,\n total_line_items_price_set_shop_amount as total_line_items_price_shop_amount,\n total_line_items_price_set_shop_currency_code as total_line_items_price_shop_currency_code,\n total_line_items_price_set_pres_amount as total_line_items_price_pres_amount,\n total_line_items_price_set_pres_currency_code as total_line_items_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(completed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as completed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_abandoned_checkout_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n abandoned_checkout_url\n \n as \n \n abandoned_checkout_url\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n completed_at\n \n as \n \n completed_at\n \n, \n \n \n customer_id\n \n as \n \n customer_id\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 note\n \n as \n \n note\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n subtotal_price_set_pres_amount\n \n as \n \n subtotal_price_set_pres_amount\n \n, \n \n \n subtotal_price_set_pres_currency_code\n \n as \n \n subtotal_price_set_pres_currency_code\n \n, \n \n \n subtotal_price_set_shop_amount\n \n as \n \n subtotal_price_set_shop_amount\n \n, \n \n \n subtotal_price_set_shop_currency_code\n \n as \n \n subtotal_price_set_shop_currency_code\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n total_discount_set_pres_amount\n \n as \n \n total_discount_set_pres_amount\n \n, \n \n \n total_discount_set_pres_currency_code\n \n as \n \n total_discount_set_pres_currency_code\n \n, \n \n \n total_discount_set_shop_amount\n \n as \n \n total_discount_set_shop_amount\n \n, \n \n \n total_discount_set_shop_currency_code\n \n as \n \n total_discount_set_shop_currency_code\n \n, \n \n \n total_duties_set_pres_amount\n \n as \n \n total_duties_set_pres_amount\n \n, \n \n \n total_duties_set_pres_currency_code\n \n as \n \n total_duties_set_pres_currency_code\n \n, \n \n \n total_duties_set_shop_amount\n \n as \n \n total_duties_set_shop_amount\n \n, \n \n \n total_duties_set_shop_currency_code\n \n as \n \n total_duties_set_shop_currency_code\n \n, \n \n \n total_line_items_price_set_pres_amount\n \n as \n \n total_line_items_price_set_pres_amount\n \n, \n \n \n total_line_items_price_set_pres_currency_code\n \n as \n \n total_line_items_price_set_pres_currency_code\n \n, \n \n \n total_line_items_price_set_shop_amount\n \n as \n \n total_line_items_price_set_shop_amount\n \n, \n \n \n total_line_items_price_set_shop_currency_code\n \n as \n \n total_line_items_price_set_shop_currency_code\n \n, \n \n \n total_price_set_pres_amount\n \n as \n \n total_price_set_pres_amount\n \n, \n \n \n total_price_set_pres_currency_code\n \n as \n \n total_price_set_pres_currency_code\n \n, \n \n \n total_price_set_shop_amount\n \n as \n \n total_price_set_shop_amount\n \n, \n \n \n total_price_set_shop_currency_code\n \n as \n \n total_price_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n customer_id,\n id as checkout_id,\n name,\n note,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n taxes_included as has_taxes_included,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_duties_set_shop_amount as total_duties_shop_amount,\n total_duties_set_shop_currency_code as total_duties_shop_currency_code,\n total_duties_set_pres_amount as total_duties_pres_amount,\n total_duties_set_pres_currency_code as total_duties_pres_currency_code,\n total_line_items_price_set_shop_amount as total_line_items_price_shop_amount,\n total_line_items_price_set_shop_currency_code as total_line_items_price_shop_currency_code,\n total_line_items_price_set_pres_amount as total_line_items_price_pres_amount,\n total_line_items_price_set_pres_currency_code as total_line_items_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n cast(\n cast(cast(completed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as completed_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection"], "alias": "stg_shopify_gql__collection", "checksum": {"name": "sha256", "checksum": "f3cc283d3c7ac17d0c9b19de8ef5940574461038364cc5f2e02db114340908bb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\"). \n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "rule_logic": {"name": "rule_logic", "description": "Whether the `rules` are disjunctive (logical `OR`) or conjunctive (logical `AND`)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values incline - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.6866753, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_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_shopify_gql__collection_tmp')),\n staging_columns=get_graphql_collection_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when applied_disjunctively is null then null\n when applied_disjunctively then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n sort_order,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__collection.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n applied_disjunctively\n \n as \n \n applied_disjunctively\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n sort_order\n \n as \n \n sort_order\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 \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when applied_disjunctively is null then null\n when applied_disjunctively then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n sort_order,\n title,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__refund", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__refund.sql", "original_file_path": "models/graphql/stg_shopify_gql__refund.sql", "unique_id": "model.shopify_source.stg_shopify_gql__refund", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__refund"], "alias": "stg_shopify_gql__refund", "checksum": {"name": "sha256", "checksum": "dcdb84868e1656f35342c6bc14ef62d6604ad84a1dffd60a6b759b4e9446bb12"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a refund within Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `refund_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "return_id": {"name": "return_id", "description": "Reference to the return which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_pres_amount": {"name": "total_refunded_pres_amount", "description": "The total amount across all transactions for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_pres_currency_code": {"name": "total_refunded_pres_currency_code", "description": "The three letter currency code for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_shop_amount": {"name": "total_refunded_shop_amount", "description": "The total amount across all transactions for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_shop_currency_code": {"name": "total_refunded_shop_currency_code", "description": "The three letter currency code for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.8272452, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__refund_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_shopify_gql__refund_tmp')),\n staging_columns=get_graphql_refund_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as refund_id,\n note,\n order_id,\n staff_member_id as user_id,\n return_id,\n total_refunded_set_pres_amount as total_refunded_pres_amount,\n total_refunded_set_pres_currency_code as total_refunded_pres_currency_code,\n total_refunded_set_shop_amount as total_refunded_shop_amount,\n total_refunded_set_shop_currency_code as total_refunded_shop_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__refund.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n return_id\n \n as \n \n return_id\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n total_refunded_set_pres_amount\n \n as \n \n total_refunded_set_pres_amount\n \n, \n \n \n total_refunded_set_pres_currency_code\n \n as \n \n total_refunded_set_pres_currency_code\n \n, \n \n \n total_refunded_set_shop_amount\n \n as \n \n total_refunded_set_shop_amount\n \n, \n \n \n total_refunded_set_shop_currency_code\n \n as \n \n total_refunded_set_shop_currency_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as refund_id,\n note,\n order_id,\n staff_member_id as user_id,\n return_id,\n total_refunded_set_pres_amount as total_refunded_pres_amount,\n total_refunded_set_pres_currency_code as total_refunded_pres_currency_code,\n total_refunded_set_shop_amount as total_refunded_shop_amount,\n total_refunded_set_shop_currency_code as total_refunded_shop_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_application": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_application.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_application.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_application", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_application"], "alias": "stg_shopify_gql__discount_application", "checksum": {"name": "sha256", "checksum": "4bf285a6880d9d733f1165b4e3f0f50282d80b3e33bb5de1eba42941ef54a367"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing discount applications, which define how discounts were applied at the order level.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to all line items (`all`) or only those that are specifically entitled (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount value is a `percentage` or `fixed_amount`. If `target_type` is `shipping_line`, only `percentage` is accepted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.6929734, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_application_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_shopify_gql__discount_application_tmp')),\n staging_columns=get_graphql_discount_application_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n lower(allocation_method) as allocation_method,\n upper(code) as code,\n index,\n order_id,\n lower(target_selection) as target_selection,\n lower(target_type) as target_type,\n value_amount,\n value_percentage,\n value_currency_code,\n case \n when value_percentage is not null then 'percentage'\n when lower(target_type) = 'shipping_line' then 'shipping'\n when value_amount is not null then 'fixed_amount'\n else null end as value_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['index', 'order_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_application_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_application.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocation_method\n \n as \n \n allocation_method\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n target_selection\n \n as \n \n target_selection\n \n, \n \n \n target_type\n \n as \n \n target_type\n \n, \n \n \n value_amount\n \n as \n \n value_amount\n \n, \n \n \n value_currency_code\n \n as \n \n value_currency_code\n \n, \n \n \n value_percentage\n \n as \n \n value_percentage\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n lower(allocation_method) as allocation_method,\n upper(code) as code,\n index,\n order_id,\n lower(target_selection) as target_selection,\n lower(target_type) as target_type,\n value_amount,\n value_percentage,\n value_currency_code,\n case \n when value_percentage is not null then 'percentage'\n when lower(target_type) = 'shipping_line' then 'shipping'\n when value_amount is not null then 'fixed_amount'\n else null end as value_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_tracking_info"], "alias": "stg_shopify_gql__fulfillment_tracking_info", "checksum": {"name": "sha256", "checksum": "b81b5a9a260e0144655ecdf19307a4fd7bc3e27d08f38b679573649357273654"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents tracking information associated with a fulfillment. Used by Shopify to generate clickable tracking numbers and delivery updates.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_id": {"name": "fulfillment_id", "description": "The unique identifier of the fulfillment this tracking info belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company. For supported carriers, Shopify automatically builds tracking URLs and may update the shipment status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Tracking number for the fulfillment. If a known tracking company is specified, or the number matches a known format, Shopify may auto-generate a tracking URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_url": {"name": "tracking_url", "description": "Direct URL to track the fulfillment. This is displayed in the Shopify admin and customer notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the tracking information associated with a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7063465, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_tracking_info', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_tracking_info_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_shopify_gql__fulfillment_tracking_info_tmp')),\n staging_columns=get_graphql_fulfillment_tracking_info_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n fulfillment_id,\n index,\n company as tracking_company,\n number as tracking_number,\n url as tracking_url,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['fulfillment_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_tracking_info_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n url\n \n as \n \n url\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n fulfillment_id,\n index,\n company as tracking_company,\n number as tracking_number,\n url as tracking_url,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(fulfillment_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_discount_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_discount_code"], "alias": "stg_shopify_gql__order_discount_code", "checksum": {"name": "sha256", "checksum": "46169dbd62882ab67770a3a78a62349267dba7b5a5a0ce940de18b35209b060c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Discount codes placed on orders.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7196872, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_discount_code_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_shopify_gql__order_discount_code_tmp')),\n staging_columns=get_graphql_order_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_basic": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_basic.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_basic.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_basic"], "alias": "stg_shopify_gql__discount_code_basic", "checksum": {"name": "sha256", "checksum": "6d6b5c65be3377b64f2b0a2c42b7df1f71649dd2aaa52ba1464ebec3e2f7ef5e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata about basic discount codes created by merchants.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.6961148, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_basic_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_shopify_gql__discount_code_basic_tmp')),\n staging_columns=get_graphql_discount_code_basic_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_basic_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_basic_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_basic.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_note_attribute": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_note_attribute.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_note_attribute.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_note_attribute"], "alias": "stg_shopify_gql__order_note_attribute", "checksum": {"name": "sha256", "checksum": "7873d5d4778fda0c06ad067718d305252d77e07908f715611688af7d7fb948d8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing custom attributes placed on orders.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `name`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7232955, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_note_attribute_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_shopify_gql__order_note_attribute_tmp')),\n staging_columns=get_graphql_order_note_attribute_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'name', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_note_attribute_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_note_attribute_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_note_attribute.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tender_transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__tender_transaction.sql", "original_file_path": "models/graphql/stg_shopify_gql__tender_transaction.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__tender_transaction"], "alias": "stg_shopify_gql__tender_transaction", "checksum": {"name": "sha256", "checksum": "10ec55a65a5226c5e72a4837722d9753808b9fab6f01ea59b97f8b9733ff6e95"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `transaction_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.8321066, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__tender_transaction_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_shopify_gql__tender_transaction_tmp')),\n staging_columns=get_graphql_tender_transaction_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency_code as currency,\n payment_method,\n remote_reference,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__tender_transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_tender_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__tender_transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n payment_method\n \n as \n \n payment_method\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n remote_reference\n \n as \n \n remote_reference\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency_code as currency,\n payment_method,\n remote_reference,\n user_id,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer"], "alias": "stg_shopify_gql__customer", "checksum": {"name": "sha256", "checksum": "ee040da4cd184398d97000afa6857728219292a2b055904acf172c7d3505cd03"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.6727285, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_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_shopify_gql__customer_tmp')),\n staging_columns=get_graphql_customer_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n lower(email_marketing_consent_state) as marketing_consent_state,\n lower(email_marketing_consent_opt_in_level) as marketing_opt_in_level,\n {{ shopify_source.fivetran_convert_timezone(column='cast(email_marketing_consent_updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as marketing_consent_updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n {{ fivetran_utils.fill_pass_through_columns('customer_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n email_marketing_consent_opt_in_level\n \n as \n \n email_marketing_consent_opt_in_level\n \n, \n \n \n email_marketing_consent_state\n \n as \n \n email_marketing_consent_state\n \n, \n \n \n email_marketing_consent_updated_at\n \n as \n \n email_marketing_consent_updated_at\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n orders_count\n \n as \n \n orders_count\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n tax_exempt\n \n as \n \n tax_exempt\n \n, \n \n \n total_spent\n \n as \n \n total_spent\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n verified_email\n \n as \n \n verified_email\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n lower(email_marketing_consent_state) as marketing_consent_state,\n lower(email_marketing_consent_opt_in_level) as marketing_opt_in_level,\n cast(\n cast(cast(email_marketing_consent_updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as marketing_consent_updated_at,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_tag"], "alias": "stg_shopify_gql__product_tag", "checksum": {"name": "sha256", "checksum": "7f63c730d6dca3cbed580fdb8e75a6f808816c7d132c861e57e18b7600c7cd43"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the product.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.8245678, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_tag_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_shopify_gql__product_tag_tmp')),\n staging_columns=get_graphql_product_tag_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['product_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_tag"], "alias": "stg_shopify_gql__order_tag", "checksum": {"name": "sha256", "checksum": "1b21c4d52ba47cab2b79f8ed6d47375b9c817395c7632a7ab2816bff9f78e77b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the order.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.728669, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_tag_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_shopify_gql__order_tag_tmp')),\n staging_columns=get_graphql_order_tag_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__metafield": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__metafield", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__metafield.sql", "original_file_path": "models/graphql/stg_shopify_gql__metafield.sql", "unique_id": "model.shopify_source.stg_shopify_gql__metafield", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__metafield"], "alias": "stg_shopify_gql__metafield", "checksum": {"name": "sha256", "checksum": "4396fe0f88e8e01449008a5e44f202694eca0ffff8fd9a6bf7fb8fc3ce6df932"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context. \n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `metafield_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_id": {"name": "metafield_id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource_id": {"name": "owner_resource_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_reference": {"name": "metafield_reference", "description": "Combination of the namespace and key columns. This field is key for metafield mapping in downstream models.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating the most up to date record identified by the most recent updated_at field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7151058, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_metafield', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__metafield_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_shopify_gql__metafield_tmp')),\n staging_columns=get_graphql_metafield_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(type) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n lower({{ dbt.concat([\"namespace\",\"'_'\",\"key\"]) }}) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_metafield_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt.concat", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__metafield.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n 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 id\n \n as \n \n id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n namespace\n \n as \n \n namespace\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n owner_resource\n \n as \n \n owner_resource\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(type) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n lower(namespace || '_' || key) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_variant_media.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_variant_media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_variant_media"], "alias": "stg_shopify_gql__product_variant_media", "checksum": {"name": "sha256", "checksum": "0127c3b8b208869da17e7b9e75af811a5ece076af61f156cba239e76cba5337e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_variant_id`, `media_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.8234499, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_product_variant_media', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_variant_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__product_variant_media_tmp')),\n staging_columns=get_graphql_product_variant_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['product_variant_id', 'media_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_variant_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_variant_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation,\n md5(cast(coalesce(cast(product_variant_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection_product.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection_product.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_product", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection_product"], "alias": "stg_shopify_gql__collection_product", "checksum": {"name": "sha256", "checksum": "f1dafc3138b77c46252e3d61f0ce084cdd24ccdd94e56f0212db3aca550e9aa6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id`, `product_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.6876483, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_product_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_shopify_gql__collection_product_tmp')),\n staging_columns=get_graphql_collection_product_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['collection_id', 'product_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__collection_product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n collection_id\n \n as \n \n collection_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(collection_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_quantity": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_quantity.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_quantity.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_quantity"], "alias": "stg_shopify_gql__inventory_quantity", "checksum": {"name": "sha256", "checksum": "bf44e42da315e47a9d9b7fa5b9e4cad92ba2f087de9c02766a15811a1c5dfb55"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The total quantity of the inventory item available at all locations.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_quantity_id`, `inventory_level_id`, `inventory_item_id`, `inventory_state_name`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity_id": {"name": "inventory_quantity_id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_state_name": {"name": "inventory_state_name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7101886, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_quantity_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_shopify_gql__inventory_quantity_tmp')),\n staging_columns=get_graphql_inventory_quantity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'inventory_item_id', 'inventory_level_id', 'name', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_quantity_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_quantity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_quantity.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_level_id\n \n as \n \n inventory_level_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_item_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_level_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_event": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_event.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_event.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_event"], "alias": "stg_shopify_gql__fulfillment_event", "checksum": {"name": "sha256", "checksum": "e8a4a0010c4cfa96bfd6c5a789ddf6df815ada5e397d8ee06d7480eb9a6150ba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_event_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_event_id": {"name": "fulfillment_event_id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7030385, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_event_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_shopify_gql__fulfillment_event_tmp')),\n staging_columns=get_graphql_fulfillment_event_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n lower(status) as status,\n message,\n {{ shopify_source.fivetran_convert_timezone(column='cast(estimated_delivery_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as estimated_delivery_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(happened_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_event_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_event.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\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 created_at\n \n as \n \n created_at\n \n, \n \n \n estimated_delivery_at\n \n as \n \n estimated_delivery_at\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n happened_at\n \n as \n \n happened_at\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 longitude\n \n as \n \n longitude\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n lower(status) as status,\n message,\n cast(\n cast(cast(estimated_delivery_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as estimated_delivery_at,\n cast(\n cast(cast(happened_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_free_shipping.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_free_shipping.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_free_shipping"], "alias": "stg_shopify_gql__discount_code_free_shipping", "checksum": {"name": "sha256", "checksum": "cdae529b92ea53946c636f7f8bcb98c4f7ff4b853caa5dad542cbf5d34b0adfd"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for free shipping discount codes in Shopify, where shipping costs are discounted based on qualifying conditions.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.6992502, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_free_shipping_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_shopify_gql__discount_code_free_shipping_tmp')),\n staging_columns=get_graphql_discount_code_free_shipping_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_free_shipping_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_free_shipping_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_free_shipping.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_address": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_address.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_address.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_address", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_address"], "alias": "stg_shopify_gql__customer_address", "checksum": {"name": "sha256", "checksum": "cca4e8b6590274294b6e15baebf9cd8153a1a9ab4925ab353bc35319ef93dda9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a customer's mailing address and includes additional geographic metadata.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_address_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_address_id": {"name": "customer_address_id", "description": "A globally unique identifier for the customer address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer to whom this address belongs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The first line of the address (e.g., street address or PO Box).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The second line of the address (e.g., apartment, suite, or unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The name of the city, district, village, or town for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The company or organization associated with the customer at this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The full country name for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter ISO country code for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_default": {"name": "is_default", "description": "Indicates if this address is the default shipping address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The full name of the customer, derived from first and last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer\u2019s phone number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The name of the region, state, or province for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The standardized zone or province code for the region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code of the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "validation_result_summary": {"name": "validation_result_summary", "description": "A summary of address validation results (e.g., match confidence or status).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The timezone associated with the address, if available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_coordinates_validated": {"name": "has_coordinates_validated", "description": "Indicates whether the latitude and longitude coordinates were validated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.839311, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_address_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__customer_address_tmp')),\n staging_columns=get_graphql_customer_address_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_address_id,\n customer_id,\n address_1,\n address_2,\n city,\n company,\n country,\n country_code,\n first_name,\n is_default,\n last_name,\n latitude,\n longitude,\n name,\n phone,\n province,\n province_code,\n zip,\n validation_result_summary,\n timezone,\n coordinates_validated as has_coordinates_validated,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_address_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_address.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n is_default\n \n as \n \n is_default\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n latitude\n \n as \n \n latitude\n \n, \n \n \n longitude\n \n as \n \n longitude\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n zip\n \n as \n \n zip\n \n, \n \n \n validation_result_summary\n \n as \n \n validation_result_summary\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n coordinates_validated\n \n as \n \n coordinates_validated\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_address_id,\n customer_id,\n address_1,\n address_2,\n city,\n company,\n country,\n country_code,\n first_name,\n is_default,\n last_name,\n latitude,\n longitude,\n name,\n phone,\n province,\n province_code,\n zip,\n validation_result_summary,\n timezone,\n coordinates_validated as has_coordinates_validated,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_bxgy.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_bxgy.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_bxgy"], "alias": "stg_shopify_gql__discount_code_bxgy", "checksum": {"name": "sha256", "checksum": "8a278226cd258f939cddc99dc0bfaaf6eeb8173af7ecef73c6cee066cffb65d6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for Buy X Get Y-style discount codes in Shopify, where discounts are applied based on product quantity thresholds.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.6976545, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_bxgy_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_shopify_gql__discount_code_bxgy_tmp')),\n staging_columns=get_graphql_discount_code_bxgy_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n total_sales_amount,\n total_sales_currency_code, \n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_bxgy_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_bxgy_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_bxgy.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n total_sales_amount,\n total_sales_currency_code, \n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_adjustment.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_adjustment.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_adjustment"], "alias": "stg_shopify_gql__order_adjustment", "checksum": {"name": "sha256", "checksum": "9ddd660936d0935e7496a6a0384b2fbb096e604fec6082d155ae5d6594d61a81"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_adjustment_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_id": {"name": "order_adjustment_id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three letter currency code for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three letter shop currency code of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_pres": {"name": "tax_amount_pres", "description": "The tax amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_pres_currency_code": {"name": "tax_amount_pres_currency_code", "description": "The three letter currency code for the tax of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_shop": {"name": "tax_amount_shop", "description": "The tax amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_shop_currency_code": {"name": "tax_amount_shop_currency_code", "description": "The three letter shop currency code of the tax for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.718624, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_adjustment_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__order_adjustment_tmp')),\n staging_columns=get_graphql_order_adjustment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_amount as amount_shop,\n amount_set_shop_currency_code as amount_shop_currency_code,\n tax_amount_set_pres_amount as tax_amount_pres,\n tax_amount_set_pres_currency_code as tax_amount_pres_currency_code,\n tax_amount_set_shop_amount as tax_amount_shop,\n tax_amount_set_shop_currency_code as tax_amount_shop_currency_code,\n reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_adjustment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_adjustment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_adjustment.sql", "compiled": true, "compiled_code": "\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n amount_set_pres_amount\n \n as \n \n amount_set_pres_amount\n \n, \n \n \n amount_set_pres_currency_code\n \n as \n \n amount_set_pres_currency_code\n \n, \n \n \n amount_set_shop_amount\n \n as \n \n amount_set_shop_amount\n \n, \n \n \n amount_set_shop_currency_code\n \n as \n \n amount_set_shop_currency_code\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n tax_amount_set_pres_amount\n \n as \n \n tax_amount_set_pres_amount\n \n, \n \n \n tax_amount_set_pres_currency_code\n \n as \n \n tax_amount_set_pres_currency_code\n \n, \n \n \n tax_amount_set_shop_amount\n \n as \n \n tax_amount_set_shop_amount\n \n, \n \n \n tax_amount_set_shop_currency_code\n \n as \n \n tax_amount_set_shop_currency_code\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_amount as amount_shop,\n amount_set_shop_currency_code as amount_shop_currency_code,\n tax_amount_set_pres_amount as tax_amount_pres,\n tax_amount_set_pres_currency_code as tax_amount_pres_currency_code,\n tax_amount_set_shop_amount as tax_amount_shop,\n tax_amount_set_shop_currency_code as tax_amount_shop_currency_code,\n reason,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_redeem_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_redeem_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_redeem_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_redeem_code"], "alias": "stg_shopify_gql__discount_redeem_code", "checksum": {"name": "sha256", "checksum": "d67dd71e571048d9820f777d5b66057c66c157c43e2937fd7cd59bbf13b5a300"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each redeem code is tied to a parent discount and may be created by an app or manually.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This is updated asynchronously and may differ from real-time usage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (typically an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount the redeem code is associated with (e.g., `discount_code_basic`, `discount_code_app`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595383.7003632, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_redeem_code_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_shopify_gql__discount_redeem_code_tmp')),\n staging_columns=get_graphql_discount_redeem_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_redeem_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_redeem_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_redeem_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_by_description\n \n as \n \n created_by_description\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_by_title\n \n as \n \n created_by_title\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n discount_type\n \n as \n \n discount_type\n \n, \n \n \n id\n \n as \n \n id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_redeem_code_tmp"], "alias": "stg_shopify_gql__discount_redeem_code_tmp", "checksum": {"name": "sha256", "checksum": "cfc36e942b2ec63cfed9b2ce3fffc11ae5f379cdd12ffb28389ed0380c25e6d0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.7016659, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_redeem_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_redeem_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_redeem_code"], ["shopify_graphql", "discount_redeem_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__refund_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__refund_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__refund_tmp"], "alias": "stg_shopify_gql__refund_tmp", "checksum": {"name": "sha256", "checksum": "a11a22eb9bcb9a62e27a0e2ce13c47296be38a753bd3a1fa9df5e8c90c1af4ab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.7105076, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "refund"], ["shopify_graphql", "refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__refund_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_bxgy_tmp"], "alias": "stg_shopify_gql__discount_code_bxgy_tmp", "checksum": {"name": "sha256", "checksum": "74f77e4738c5c72ca63e005803146b7cdce868cd42f4187da43c47e040a9a713"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.7192492, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_bxgy', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_bxgy_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_bxgy"], ["shopify_graphql", "discount_code_bxgy"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_tracking_info_tmp"], "alias": "stg_shopify_gql__fulfillment_tracking_info_tmp", "checksum": {"name": "sha256", "checksum": "916e15ae9d3b58b4bfaed65f98893baa84653e193472d33ec051a14323d7b859"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.729102, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_tracking_info', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_tracking_info', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_tracking_info_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_tracking_info"], ["shopify_graphql", "fulfillment_tracking_info"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_tmp"], "alias": "stg_shopify_gql__customer_tmp", "checksum": {"name": "sha256", "checksum": "cbad42ba9c8311e55176c04ed3a661a3cf4a5ac59514099a69a595235769a2a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.7382197, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer"], ["shopify_graphql", "customer"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_tmp"], "alias": "stg_shopify_gql__product_tmp", "checksum": {"name": "sha256", "checksum": "d6bdb88269a24c1e7e047ad5cbcd7cb41689fdfe4028c6b73feb2cf06f5d8c4e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.7468498, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product"], ["shopify_graphql", "product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_visit_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_visit_tmp"], "alias": "stg_shopify_gql__customer_visit_tmp", "checksum": {"name": "sha256", "checksum": "a6f824dc3840066caffed56e0389dd7ef63cfb7814e79f0dbedf937bc738e392"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.7554796, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_customer_visit', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_visit', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_visit_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_visit"], ["shopify_graphql", "customer_visit"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__shop_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__shop_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__shop_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__shop_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__shop_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__shop_tmp"], "alias": "stg_shopify_gql__shop_tmp", "checksum": {"name": "sha256", "checksum": "484564c85bbddaca318f1165dc0418a31023ea29c6ff8bc0531246eeb8d59a1c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.7656884, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__shop_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='shop', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_shop_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "shop"], ["shopify_graphql", "shop"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__shop_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_shop_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_quantity_tmp"], "alias": "stg_shopify_gql__inventory_quantity_tmp", "checksum": {"name": "sha256", "checksum": "07d53773e990ce9f6350463bc39d7d11d10a77623f572ba7e12f9d4ec1fc637c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.7743216, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_quantity', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_quantity_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_quantity"], ["shopify_graphql", "inventory_quantity"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_shipping_line_tmp"], "alias": "stg_shopify_gql__order_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "48a6b1d4908a3a78e6f338213ae2230d0666ea0fd398dc7df1ce269582c553a8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.7828872, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_shipping_line"], ["shopify_graphql", "order_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_tmp"], "alias": "stg_shopify_gql__collection_tmp", "checksum": {"name": "sha256", "checksum": "13622f8f6269a36bc80ce5b592234d5f1b7c88cbf80e19bf6d50aa4c8886d4ab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.7915356, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection"], ["shopify_graphql", "collection"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__collection_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_collection_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_item_tmp"], "alias": "stg_shopify_gql__inventory_item_tmp", "checksum": {"name": "sha256", "checksum": "562f5900bff17e2074910b889c93f479d175ca8d45a1c3a94c7f1145632af195"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.8013008, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_item"], ["shopify_graphql", "inventory_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_basic_tmp"], "alias": "stg_shopify_gql__discount_code_basic_tmp", "checksum": {"name": "sha256", "checksum": "3d2c8273708359c8f712f46e5d5178c0d6807fa06cddfac2cef2890f360b6bc2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.8100157, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_basic', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_basic_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_basic"], ["shopify_graphql", "discount_code_basic"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_adjustment_tmp"], "alias": "stg_shopify_gql__order_adjustment_tmp", "checksum": {"name": "sha256", "checksum": "41de7ec16964a262f4fa0545875703abc0c7d188982b1b9697770663e0e5557c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.8186395, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_adjustment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_adjustment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_adjustment"], ["shopify_graphql", "order_adjustment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "compiled": true, "compiled_code": "\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_note_attribute_tmp"], "alias": "stg_shopify_gql__order_note_attribute_tmp", "checksum": {"name": "sha256", "checksum": "1dc3d9e025bc87c95c74672a8a46a3e9751b91727f7e8de84c5d5c4b0ec7bca9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.8273642, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_note_attribute', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_note_attribute_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_note_attribute"], ["shopify_graphql", "order_note_attribute"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_application_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_application_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_application_tmp"], "alias": "stg_shopify_gql__discount_application_tmp", "checksum": {"name": "sha256", "checksum": "51b3cf65b837e23b8567427012151bc4daed3ddaa38887bf0f6ed09aa65f98d9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.8370433, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_application', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_application_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_application"], ["shopify_graphql", "discount_application"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_app_tmp"], "alias": "stg_shopify_gql__discount_code_app_tmp", "checksum": {"name": "sha256", "checksum": "42d515dfaa9edf7645c90b5d4e3fba1b10ce11c8e33e5f9004dc3286c70abbb5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.8458421, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_discount_code_app', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_app', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_app_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_app"], ["shopify_graphql", "discount_code_app"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_shipping_tax_line_tmp"], "alias": "stg_shopify_gql__order_shipping_tax_line_tmp", "checksum": {"name": "sha256", "checksum": "2f563d319f6ab1e785c0c0dd8c46c7eb60b34036eab89dff6306ce7e0318dc2a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.8549228, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_shipping_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_shipping_tax_line"], ["shopify_graphql", "order_shipping_tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_line_refund_tmp"], "alias": "stg_shopify_gql__order_line_refund_tmp", "checksum": {"name": "sha256", "checksum": "de5d8368b1e2f8a01f8457ecfb538f18f39940fbfd88a8bd4317449bdb3500d5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.8638134, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line_refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_line_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_line_refund"], ["shopify_graphql", "order_line_refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__metafield_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__metafield_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__metafield_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__metafield_tmp"], "alias": "stg_shopify_gql__metafield_tmp", "checksum": {"name": "sha256", "checksum": "745867433e8c372b8247770c5511da696b44146d8a9cecbb805e2fbccc407b1b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.9523413, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_metafield', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='metafield', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_metafield_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "metafield"], ["shopify_graphql", "metafield"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_metafield_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_line_tmp"], "alias": "stg_shopify_gql__order_line_tmp", "checksum": {"name": "sha256", "checksum": "8d070802154be87b0f6abc6a84d1cc04a7479c71e72d51f9c29e9b84ff0a4470"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.961838, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_line"], ["shopify_graphql", "order_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_variant_media_tmp"], "alias": "stg_shopify_gql__product_variant_media_tmp", "checksum": {"name": "sha256", "checksum": "a6a402d3eb1fc91386b58803aeea45dbfa70f93ad6fcc44aebe193e37428c941"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.9705405, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_product_variant_media', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_variant_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_variant_media"], ["shopify_graphql", "product_variant_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_discount_code_tmp"], "alias": "stg_shopify_gql__order_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "e5f05cb907273a7d7faf0cb35b3f239d92e59bea6b53b3d9f874621d4702bacd"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.9797978, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_discount_code"], ["shopify_graphql", "order_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_variant_tmp"], "alias": "stg_shopify_gql__product_variant_tmp", "checksum": {"name": "sha256", "checksum": "49b89b7bc716e35589007a5ab8431b1371c4a468f4be3bffbba33558f287c85b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.9897406, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_variant_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_variant"], ["shopify_graphql", "product_variant"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_tmp"], "alias": "stg_shopify_gql__order_tmp", "checksum": {"name": "sha256", "checksum": "00d88df1afa1afc1c67823cb65c6c737c7efe99876be4543728c56578daa29fa"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595381.9983623, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order"], ["shopify_graphql", "order"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__location_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__location_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__location_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__location_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__location_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__location_tmp"], "alias": "stg_shopify_gql__location_tmp", "checksum": {"name": "sha256", "checksum": "6e50fc60b6453e907f266a407a8ffd9c7e0509261b61e3a62d79bd98ff8f9d16"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.0070457, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__location_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='location', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_location_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "location"], ["shopify_graphql", "location"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__location_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_free_shipping_tmp"], "alias": "stg_shopify_gql__discount_code_free_shipping_tmp", "checksum": {"name": "sha256", "checksum": "de9a7bc807b211bfad12ecd0bbffc6f5566d4f52164b3bc66f5bb79a363ac4a1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.0157413, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_free_shipping', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_free_shipping_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_free_shipping"], ["shopify_graphql", "discount_code_free_shipping"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tax_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__tax_line_tmp"], "alias": "stg_shopify_gql__tax_line_tmp", "checksum": {"name": "sha256", "checksum": "b797f714cca33152d58d9f9371337be2af75ba71868a9c645a5b661e30953bdb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.0256946, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "tax_line"], ["shopify_graphql", "tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_order_line_item_tmp"], "alias": "stg_shopify_gql__fulfillment_order_line_item_tmp", "checksum": {"name": "sha256", "checksum": "7da21a799b42d6572274d5c708e6c1820d534868af0169a999f3ba0baa558cf0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.0343475, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_order_line_item', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_order_line_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_order_line_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_order_line_item"], ["shopify_graphql", "fulfillment_order_line_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_product_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_product_tmp"], "alias": "stg_shopify_gql__collection_product_tmp", "checksum": {"name": "sha256", "checksum": "265042e513f9f41755e3d67cb838c5a4bc2a0f30f0005797170d61c7c68c506f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.0434089, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection_product"], ["shopify_graphql", "collection_product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_tmp"], "alias": "stg_shopify_gql__fulfillment_tmp", "checksum": {"name": "sha256", "checksum": "33c816c7194073933556f8e74f281eaea2e3f3c728d0cef25ac3270e69ac46b3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.05197, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment"], ["shopify_graphql", "fulfillment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__abandoned_checkout_tmp"], "alias": "stg_shopify_gql__abandoned_checkout_tmp", "checksum": {"name": "sha256", "checksum": "447fcf5964f191e3a35aac2df0126f572f80174deefc22e167e089b2c072d3ad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.0607114, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_tmp\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_abandoned_checkout_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "abandoned_checkout"], ["shopify_graphql", "abandoned_checkout"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_tag_tmp"], "alias": "stg_shopify_gql__order_tag_tmp", "checksum": {"name": "sha256", "checksum": "ef3af11883c240380fbddf262db8be9cd7d8008833e23746bc1c7268ba0a43e1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.071099, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_tag"], ["shopify_graphql", "order_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_media_tmp"], "alias": "stg_shopify_gql__product_media_tmp", "checksum": {"name": "sha256", "checksum": "9fec30aae73d36ed6755c3f429db455f56b87fdfb24affac6bb8110c833d7538"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.0797567, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_media"], ["shopify_graphql", "product_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_image_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_image_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_image_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__media_image_tmp"], "alias": "stg_shopify_gql__media_image_tmp", "checksum": {"name": "sha256", "checksum": "30d02cd315c4bc627fdb2de7d2c4910b8401ec97e7f9bd572c2f4efb219d3059"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.0883603, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media_image', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_media_image_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "media_image"], ["shopify_graphql", "media_image"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_media_image_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__tender_transaction_tmp"], "alias": "stg_shopify_gql__tender_transaction_tmp", "checksum": {"name": "sha256", "checksum": "999811b7c8c9bbb9ca1f553177635c3ff561ce3a498c54e7c2d16ef471dc94a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.1071324, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tender_transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_tender_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "tender_transaction"], ["shopify_graphql", "tender_transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__media_tmp"], "alias": "stg_shopify_gql__media_tmp", "checksum": {"name": "sha256", "checksum": "835c3851c7d05b5f89f126d660881e1bd1ba913531e40059ebc9a18e5814a12b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.1157289, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "media"], ["shopify_graphql", "media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_allocation_tmp"], "alias": "stg_shopify_gql__discount_allocation_tmp", "checksum": {"name": "sha256", "checksum": "3031935efab97198e8bfd1d1818023693aed0298c4b4334573c1d099ccb4c8d2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.1245615, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_allocation', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_allocation_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_allocation"], ["shopify_graphql", "discount_allocation"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "alias": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "fadf9a4496c441981f39419454d443a7be6f42ffdb6b1d9be43a628ec71d06c1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.1333907, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_abandoned_checkout_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "abandoned_checkout_discount_code"], ["shopify_graphql", "abandoned_checkout_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_level_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_level_tmp"], "alias": "stg_shopify_gql__inventory_level_tmp", "checksum": {"name": "sha256", "checksum": "e940f5fe7081ecb499500343359757242bb316d24954bd29464cccb19e675125"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.1436234, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_level', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_level_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_level"], ["shopify_graphql", "inventory_level"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_tag_tmp"], "alias": "stg_shopify_gql__customer_tag_tmp", "checksum": {"name": "sha256", "checksum": "6c9353c051ba91aace024c85f929cfe6f1fc74e9bf69e7c185ba5abc16b3bad0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.1522193, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_tag"], ["shopify_graphql", "customer_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_event_tmp"], "alias": "stg_shopify_gql__fulfillment_event_tmp", "checksum": {"name": "sha256", "checksum": "b3d654e7eb8d3c87eed9e599ce914c626a86ec7426dd9501721e89556e6e3667"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.1608324, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_event', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_event_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_event"], ["shopify_graphql", "fulfillment_event"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__transaction_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__transaction_tmp"], "alias": "stg_shopify_gql__transaction_tmp", "checksum": {"name": "sha256", "checksum": "2e07b515aabc2fcadb617d88f8bd4b308339b0f2425445340e95c18fe47ea54f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.169931, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "transaction"], ["shopify_graphql", "transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_tag_tmp"], "alias": "stg_shopify_gql__product_tag_tmp", "checksum": {"name": "sha256", "checksum": "a24216b9e175dc892ba05ae61cef5b660627718f05f76c3773cd851609c471a0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.179793, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_tag"], ["shopify_graphql", "product_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_address_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_address_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_address_tmp"], "alias": "stg_shopify_gql__customer_address_tmp", "checksum": {"name": "sha256", "checksum": "3df59d0c9b1202ab5431236c9ffd08af4840856ea7e880991c6247ca328c89f4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1754595382.1884172, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_address', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_address_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_address"], ["shopify_graphql", "customer_address"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c", "fqn": ["shopify", "unique_shopify_gql__customer_cohorts_customer_cohort_id"], "alias": "unique_shopify_gql__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.5134254, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_cohorts", "attached_node": "model.shopify.shopify_gql__customer_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2", "fqn": ["shopify", "not_null_shopify_gql__customer_cohorts_customer_cohort_id"], "alias": "not_null_shopify_gql__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.5161402, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_cohorts", "attached_node": "model.shopify.shopify_gql__customer_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27", "fqn": ["shopify", "unique_shopify_gql__customer_email_cohorts_customer_cohort_id"], "alias": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.5186608, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_email_cohorts", "attached_node": "model.shopify.shopify_gql__customer_email_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f", "fqn": ["shopify", "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id"], "alias": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.5210457, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_email_cohorts", "attached_node": "model.shopify.shopify_gql__customer_email_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__orders_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077", "fqn": ["shopify", "unique_shopify_gql__orders_unique_key"], "alias": "unique_shopify_gql__orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.52366, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__orders", "attached_node": "model.shopify.shopify_gql__orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__orders')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__orders_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041", "fqn": ["shopify", "not_null_shopify_gql__orders_unique_key"], "alias": "not_null_shopify_gql__orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.5260508, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__orders", "attached_node": "model.shopify.shopify_gql__orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__orders')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4"}, "created_at": 1754595382.5285637, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customers"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_16098fde2e1b5432ee7afbee96fe57a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__customers\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__customers", "attached_node": "model.shopify.shopify_gql__customers", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__customers')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation"], "alias": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc"}, "created_at": 1754595382.5544674, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_emails", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_emails"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_067cb0ccf0ce0d65be8ad0b3cbada9fc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__customer_emails", "attached_node": "model.shopify.shopify_gql__customer_emails", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__customer_emails')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__products_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__products_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326", "fqn": ["shopify", "unique_shopify_gql__products_unique_key"], "alias": "unique_shopify_gql__products_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.5599363, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__products"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__products_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__products\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__products", "attached_node": "model.shopify.shopify_gql__products", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__products')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__products_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__products_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497", "fqn": ["shopify", "not_null_shopify_gql__products_unique_key"], "alias": "not_null_shopify_gql__products_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.562375, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__products"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__products_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__products\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__products", "attached_node": "model.shopify.shopify_gql__products", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__products')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__order_lines_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4", "fqn": ["shopify", "unique_shopify_gql__order_lines_unique_key"], "alias": "unique_shopify_gql__order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.5649152, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__order_lines", "attached_node": "model.shopify.shopify_gql__order_lines", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__order_lines')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__order_lines_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db", "fqn": ["shopify", "not_null_shopify_gql__order_lines_unique_key"], "alias": "not_null_shopify_gql__order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.5674744, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__order_lines", "attached_node": "model.shopify.shopify_gql__order_lines", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__order_lines')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__transactions_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__transactions_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c", "fqn": ["shopify", "unique_shopify_gql__transactions_unique_key"], "alias": "unique_shopify_gql__transactions_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.569893, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__transactions_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__transactions", "attached_node": "model.shopify.shopify_gql__transactions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__transactions_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__transactions_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d", "fqn": ["shopify", "not_null_shopify_gql__transactions_unique_key"], "alias": "not_null_shopify_gql__transactions_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.572296, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__transactions_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__transactions", "attached_node": "model.shopify.shopify_gql__transactions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__inventory_levels_inventory_item_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__inventory_levels_inventory_item_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957", "fqn": ["shopify", "not_null_shopify_gql__inventory_levels_inventory_item_id"], "alias": "not_null_shopify_gql__inventory_levels_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.5747075, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__inventory_levels_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__inventory_levels_location_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__inventory_levels_location_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e", "fqn": ["shopify", "not_null_shopify_gql__inventory_levels_location_id"], "alias": "not_null_shopify_gql__inventory_levels_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.5772297, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__inventory_levels_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e"}, "created_at": 1754595382.57967, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_8cbca80a389915760061517035d15e5e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\n group by inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__discounts_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5", "fqn": ["shopify", "unique_shopify_gql__discounts_unique_key"], "alias": "unique_shopify_gql__discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.5849955, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__discounts_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994", "fqn": ["shopify", "not_null_shopify_gql__discounts_unique_key"], "alias": "not_null_shopify_gql__discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.5874004, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__discounts_discount_code_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__discounts_discount_code_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264", "fqn": ["shopify", "not_null_shopify_gql__discounts_discount_code_id"], "alias": "not_null_shopify_gql__discounts_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.5897977, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__discounts_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation"], "alias": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6"}, "created_at": 1754595382.5926347, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/dbt_utils_unique_combination_o_47db6051ba5e5818f0da32ca5c56dfa6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n code, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\n group by code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__daily_shop_shop_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__daily_shop_shop_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8", "fqn": ["shopify", "not_null_shopify_gql__daily_shop_shop_id"], "alias": "not_null_shopify_gql__daily_shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.5979712, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__daily_shop"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__daily_shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__daily_shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.shopify_gql__daily_shop", "attached_node": "model.shopify.shopify_gql__daily_shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('shopify_gql__daily_shop')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a", "fqn": ["shopify", "unique_shopify__customer_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.7191527, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "fqn": ["shopify", "not_null_shopify__customer_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.7217116, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182", "fqn": ["shopify", "unique_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.7241087, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "fqn": ["shopify", "not_null_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.726522, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51", "fqn": ["shopify", "unique_shopify__orders_orders_unique_key"], "alias": "unique_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.728914, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n orders_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is not null\ngroup by orders_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "fqn": ["shopify", "not_null_shopify__orders_orders_unique_key"], "alias": "not_null_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.7314234, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect orders_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696"}, "created_at": 1754595382.7338624, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customers"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_93b849a7493f07ea332b58b74fbb6696.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__customers\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customers", "attached_node": "model.shopify.shopify__customers", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customers')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation"], "alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f"}, "created_at": 1754595382.7394247, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_emails", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_emails"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_a037bdcec34d5e6ecbd4cfad6b54088f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__customer_emails\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customer_emails", "attached_node": "model.shopify.shopify__customer_emails", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customer_emails')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa"}, "created_at": 1754595382.7447202, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__products"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_64adf669e5f645d81dbdf6d5d3a930fa.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__products\"\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__products", "attached_node": "model.shopify.shopify__products", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__products')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e", "fqn": ["shopify", "unique_shopify__order_lines_order_lines_unique_key"], "alias": "unique_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.74986, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_lines_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is not null\ngroup by order_lines_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "unique", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "fqn": ["shopify", "not_null_shopify__order_lines_order_lines_unique_key"], "alias": "not_null_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.7524376, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_lines_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981", "fqn": ["shopify", "unique_shopify__transactions_transactions_unique_id"], "alias": "unique_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.754849, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n transactions_unique_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is not null\ngroup by transactions_unique_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "fqn": ["shopify", "not_null_shopify__transactions_transactions_unique_id"], "alias": "not_null_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.7572386, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transactions_unique_id\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_inventory_item_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_inventory_item_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "fqn": ["shopify", "not_null_shopify__inventory_levels_inventory_item_id"], "alias": "not_null_shopify__inventory_levels_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.759607, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_location_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_location_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0", "fqn": ["shopify", "not_null_shopify__inventory_levels_location_id"], "alias": "not_null_shopify__inventory_levels_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.7620962, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b"}, "created_at": 1754595382.7645426, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_dfc251380c6ee155deabda0cc246b36b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\n group by inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f", "fqn": ["shopify", "unique_shopify__discounts_discounts_unique_key"], "alias": "unique_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.7698572, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n discounts_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is not null\ngroup by discounts_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "fqn": ["shopify", "not_null_shopify__discounts_discounts_unique_key"], "alias": "not_null_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.7723076, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discounts_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discount_code_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discount_code_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "fqn": ["shopify", "not_null_shopify__discounts_discount_code_id"], "alias": "not_null_shopify__discounts_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.7747188, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f", "fqn": ["shopify", "dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation"], "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e"}, "created_at": 1754595382.777136, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/dbt_utils_unique_combination_o_3619981b09484efc5c9e587980d5d04e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n code, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__discounts\"\n group by code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__daily_shop_shop_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__daily_shop_shop_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f", "fqn": ["shopify", "not_null_shopify__daily_shop_shop_id"], "alias": "not_null_shopify__daily_shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595382.7825186, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__daily_shop"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__daily_shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"shopify__daily_shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.shopify__daily_shop", "attached_node": "model.shopify.shopify__daily_shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('shopify__daily_shop')) }}"}, "namespace": null}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3"}, "created_at": 1754595382.7913609, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customers__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customers__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_4d1af0d9338b2b5b246e23c580e294e3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n customer_id, source_relation\n from __dbt__cte__shopify__customers__order_aggregates\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": [{"id": "model.shopify.shopify__customers__order_aggregates", "sql": " __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__customers__order_aggregates", "attached_node": "model.shopify.shopify__customers__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__customers__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04"}, "created_at": 1754595382.7967644, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3ae1e43ee344b59ccef000bf524f1f04.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__orders__order_line_aggregates", "attached_node": "model.shopify.shopify__orders__order_line_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__orders__order_line_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation"], "alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1"}, "created_at": 1754595382.80211, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__emails__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__emails__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3413ddd831f02d9d3d2775f9dfc10df1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n email, source_relation\n from __dbt__cte__int_shopify__emails__order_aggregates\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__emails__order_aggregates", "sql": " __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__emails__order_aggregates", "attached_node": "model.shopify.int_shopify__emails__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__emails__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation"], "alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce"}, "created_at": 1754595382.8079312, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__customer_email_rollup", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__customer_email_rollup"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_b2d9beab50cba4ec68a90514dcea01ce.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n email, source_relation\n from \"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"\n group by email, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__customer_email_rollup", "attached_node": "model.shopify.int_shopify__customer_email_rollup", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["email", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__customer_email_rollup')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e"}, "created_at": 1754595382.8133202, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__inventory_level__aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__inventory_level__aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_d6a2a160f207229d97b648f0069fee1e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), validation_errors as (\n\n select\n variant_id, location_id, source_relation\n from __dbt__cte__int_shopify__inventory_level__aggregates\n group by variant_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify__inventory_level__aggregates", "sql": " __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__inventory_level__aggregates", "attached_node": "model.shopify.int_shopify__inventory_level__aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["variant_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__inventory_level__aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation"], "alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13"}, "created_at": 1754595382.8185155, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discounts__order_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__discounts__order_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_16fa63126d6426682f1ed1d07e35ca13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), validation_errors as (\n\n select\n code, type, source_relation\n from __dbt__cte__int_shopify__discounts__order_aggregates\n group by code, type, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discounts__order_aggregates", "sql": " __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__discounts__order_aggregates", "attached_node": "model.shopify.int_shopify__discounts__order_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "type", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__discounts__order_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation"], "alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936"}, "created_at": 1754595382.8242538, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discounts__abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__discounts__abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_400e4c10f4dc60b813509ec48670e936.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), validation_errors as (\n\n select\n code, type, source_relation\n from __dbt__cte__int_shopify__discounts__abandoned_checkouts\n group by code, type, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "sql": " __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__discounts__abandoned_checkouts", "attached_node": "model.shopify.int_shopify__discounts__abandoned_checkouts", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["code", "type", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__discounts__abandoned_checkouts')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac"}, "created_at": 1754595382.8295877, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_eb3690dd1b28b990285c194e64469aac.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), validation_errors as (\n\n select\n order_id, source_relation\n from __dbt__cte__int_shopify__order__shipping_aggregates\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__order__shipping_aggregates", "attached_node": "model.shopify.int_shopify__order__shipping_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__order__shipping_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28"}, "created_at": 1754595382.8348856, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__product__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__product__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_3567d8646c8635cb0bb0c90d50675c28.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), validation_errors as (\n\n select\n product_id, source_relation\n from __dbt__cte__int_shopify__product__order_line_aggregates\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__product__order_line_aggregates", "sql": " __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__product__order_line_aggregates", "attached_node": "model.shopify.int_shopify__product__order_line_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__product__order_line_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04.sql", "original_file_path": "models/rest/intermediate/intermediate.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c", "fqn": ["shopify", "rest", "intermediate", "dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04"}, "created_at": 1754595382.8400476, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__products_with_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.int_shopify__products_with_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/intermediate.yml/dbt_utils_unique_combination_o_347b53509430f5e2ea1bbc3d54e6dd04.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), validation_errors as (\n\n select\n product_id, source_relation\n from __dbt__cte__int_shopify__products_with_aggregates\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__products_with_aggregates", "sql": " __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.int_shopify__products_with_aggregates", "attached_node": "model.shopify.int_shopify__products_with_aggregates", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('int_shopify__products_with_aggregates')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95.sql", "original_file_path": "models/rest/standardized_models/shopify__standardized_models.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae", "fqn": ["shopify", "rest", "standardized_models", "dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95"}, "created_at": 1754595382.860341, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__line_item_enhanced"]}, "compiled_path": "target/compiled/shopify/models/rest/standardized_models/shopify__standardized_models.yml/dbt_utils_unique_combination_o_c291aebdbc911f5b35b8db0c065cbb95.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n header_id, line_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify__line_item_enhanced\"\n group by header_id, line_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify__line_item_enhanced", "attached_node": "model.shopify.shopify__line_item_enhanced", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["header_id", "line_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify__line_item_enhanced')) }}"}, "namespace": "dbt_utils"}}, "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation", "resource_type": "test", "package_name": "shopify", "path": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742.sql", "original_file_path": "models/graphql/standardized_models/shopify__standardized_models.yml", "unique_id": "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1", "fqn": ["shopify", "graphql", "standardized_models", "dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742"}, "created_at": 1754595382.8716471, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__line_item_enhanced"]}, "compiled_path": "target/compiled/shopify/models/graphql/standardized_models/shopify__standardized_models.yml/dbt_utils_unique_combination_o_38322a77e33d117b4b31962169c15742.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n header_id, line_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"shopify_gql__line_item_enhanced\"\n group by header_id, line_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.shopify_gql__line_item_enhanced", "attached_node": "model.shopify.shopify_gql__line_item_enhanced", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["header_id", "line_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('shopify_gql__line_item_enhanced')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be"}, "created_at": 1754595382.9923913, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_d00da641d0cc06ebef083c43ddfae4be.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__customer", "attached_node": "model.shopify_source.stg_shopify__customer", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__customer')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation"], "alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3"}, "created_at": 1754595382.9980896, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_33b2f20dc9ea13a94a10a635383becf3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_refund_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n group by order_line_refund_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_line_refund", "attached_node": "model.shopify_source.stg_shopify__order_line_refund", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_line_refund')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec"}, "created_at": 1754595383.0035048, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_d47b5ce640a9316320c17565339223ec.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n group by order_line_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_line", "attached_node": "model.shopify_source.stg_shopify__order_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e"}, "created_at": 1754595383.0088844, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_3f5201314db17428b709b11583cd0f7e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n group by order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order", "attached_node": "model.shopify_source.stg_shopify__order", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d"}, "created_at": 1754595383.014262, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_eb9efccfbdaff32f938da98287403a1d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n group by product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product", "attached_node": "model.shopify_source.stg_shopify__product", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation"], "alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e"}, "created_at": 1754595383.0196538, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_84d19b85e52ebcaca03bcefe4191b60e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n variant_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n group by variant_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_variant", "attached_node": "model.shopify_source.stg_shopify__product_variant", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["variant_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_variant')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation"], "alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92"}, "created_at": 1754595383.0248754, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_47aceb0b987e9f3279b4301c10167f92.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n group by transaction_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__transaction", "attached_node": "model.shopify_source.stg_shopify__transaction", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__transaction')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation"], "alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659"}, "created_at": 1754595383.0302155, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_b6b83918833e84e9f886aa4151e4e659.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__refund", "attached_node": "model.shopify_source.stg_shopify__refund", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__refund')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207"}, "created_at": 1754595383.0360453, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_8c4679057a756bef5907cd3799634207.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_adjustment_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"\n group by order_adjustment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_adjustment", "attached_node": "model.shopify_source.stg_shopify__order_adjustment", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_adjustment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_adjustment')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__abandoned_checkout_checkout_id"], "alias": "not_null_stg_shopify__abandoned_checkout_checkout_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.0413578, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation"], "alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f"}, "created_at": 1754595383.0438519, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_510de7fe9fed2e764ff993311b24512f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n group by checkout_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_collection_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_product_collection_id"], "alias": "not_null_stg_shopify__collection_product_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.04911, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_product_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_product_product_id"], "alias": "not_null_stg_shopify__collection_product_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.0515614, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_product_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation"], "alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e"}, "created_at": 1754595383.0540237, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_81b2e792631c9528308baec995c4457e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n collection_id, product_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n group by collection_id, product_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["collection_id", "product_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_collection_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_collection_id"], "alias": "not_null_stg_shopify__collection_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.059577, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection", "attached_node": "model.shopify_source.stg_shopify__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation"], "alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad"}, "created_at": 1754595383.0620887, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_14fee6f32c2b11b1aeb15a320b269cad.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n collection_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n group by collection_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__collection", "attached_node": "model.shopify_source.stg_shopify__collection", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["collection_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__collection')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__customer_tag_index"], "alias": "not_null_stg_shopify__customer_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.067603, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__customer_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_customer_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_customer_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__customer_tag_customer_id"], "alias": "not_null_stg_shopify__customer_tag_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.0700111, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__customer_tag_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6"}, "created_at": 1754595383.072465, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_74413a4ba1ed7489c529e1eb66cfc7d6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n group by customer_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__fulfillment_fulfillment_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__fulfillment_fulfillment_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__fulfillment_fulfillment_id"], "alias": "not_null_stg_shopify__fulfillment_fulfillment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.077791, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__fulfillment_fulfillment_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fulfillment_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\nwhere fulfillment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fulfillment_id", "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fulfillment_id", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70", "fqn": ["shopify_source", "rest", "accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure"], "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd"}, "created_at": 1754595383.0802615, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/accepted_values_stg_shopify__f_3835f4e405a07a7e446c888723f749dd.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'pending','open','success','cancelled','error','failure'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["pending", "open", "success", "cancelled", "error", "failure"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation"], "alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01"}, "created_at": 1754595383.092057, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_a4515a9e34ff568617e6377b2b76ee01.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n fulfillment_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by fulfillment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["fulfillment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__inventory_item_inventory_item_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__inventory_item_inventory_item_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__inventory_item_inventory_item_id"], "alias": "not_null_stg_shopify__inventory_item_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.0972457, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__inventory_item_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.stg_shopify__inventory_item", "attached_node": "model.shopify_source.stg_shopify__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('stg_shopify__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation"], "alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f"}, "created_at": 1754595383.0998747, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1b834d07642aae61e7bdfd8f8caa7d1f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_item_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\n group by inventory_item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_item", "attached_node": "model.shopify_source.stg_shopify__inventory_item", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_item_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_item')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014"}, "created_at": 1754595383.1051054, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1a7bbc29d5bcd2755502a034ffac3014.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_level_id, inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"\n group by inventory_level_id, inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_level", "attached_node": "model.shopify_source.stg_shopify__inventory_level", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_level_id", "inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_level')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation"], "alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6"}, "created_at": 1754595383.1104867, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_a46008020d1b1a586d984ce3291581d6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_quantity_id, inventory_item_id, inventory_level_id, inventory_state_name, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"\n group by inventory_quantity_id, inventory_item_id, inventory_level_id, inventory_state_name, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify__inventory_quantity", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_quantity_id", "inventory_item_id", "inventory_level_id", "inventory_state_name", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__inventory_quantity')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__location_location_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__location_location_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__location_location_id"], "alias": "not_null_stg_shopify__location_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.1158538, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__location_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__location\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_shopify__location", "attached_node": "model.shopify_source.stg_shopify__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_shopify__location')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646"}, "created_at": 1754595383.1183357, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_92f84e20530e94b3733829189b68c646.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__location\"\n group by location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__location", "attached_node": "model.shopify_source.stg_shopify__location", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__location')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__media_media_id"], "alias": "not_null_stg_shopify__media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.1240199, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media", "attached_node": "model.shopify_source.stg_shopify__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e"}, "created_at": 1754595383.1265173, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_f1e0ca2bb05ae3c30035cc7bcc854b2e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__media\"\n group by media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__media", "attached_node": "model.shopify_source.stg_shopify__media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_image_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_image_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__media_image_media_id"], "alias": "not_null_stg_shopify__media_image_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.1324322, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__media_image_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media_image\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media_image", "attached_node": "model.shopify_source.stg_shopify__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media_image')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation"], "alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75"}, "created_at": 1754595383.1348403, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_0339769e57117da84036906f3dc9bf75.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n media_id, image_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__media_image\"\n group by media_id, image_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__media_image", "attached_node": "model.shopify_source.stg_shopify__media_image", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["media_id", "image_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__media_image')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__metafield_metafield_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__metafield_metafield_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__metafield_metafield_id"], "alias": "not_null_stg_shopify__metafield_metafield_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.1400983, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__metafield_metafield_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metafield_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\nwhere metafield_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metafield_id", "file_key_name": "models.stg_shopify__metafield", "attached_node": "model.shopify_source.stg_shopify__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "metafield_id", "model": "{{ get_where_subquery(ref('stg_shopify__metafield')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation"], "alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea"}, "created_at": 1754595383.1425726, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_74ae57137307ee916678ddd420fa6cea.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n metafield_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n group by metafield_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__metafield", "attached_node": "model.shopify_source.stg_shopify__metafield", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["metafield_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__metafield')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_name", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_name.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_note_attribute_name"], "alias": "not_null_stg_shopify__order_note_attribute_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.1478677, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect name\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_note_attribute_order_id"], "alias": "not_null_stg_shopify__order_note_attribute_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.1502578, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation"], "alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d"}, "created_at": 1754595383.152647, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1a5482ed4d7508998a8a2744236cbc8d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, name, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\n group by order_id, name, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "name", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1"}, "created_at": 1754595383.1579645, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation"], "alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36"}, "created_at": 1754595383.1604116, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_96b74beca4d46eeb1a7384d2398e0b36.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_shipping_line_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by order_shipping_line_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_shipping_line_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_shipping_tax_line_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_tax_line_index"], "alias": "not_null_stg_shopify__order_shipping_tax_line_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.1657176, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_shipping_tax_line_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858"}, "created_at": 1754595383.168142, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f"}, "created_at": 1754595383.170565, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_18c4e2d8267e37548fa60a289a5bf46f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_shipping_line_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by order_shipping_line_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_shipping_line_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_tag_index"], "alias": "not_null_stg_shopify__order_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.1759872, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_tag_order_id"], "alias": "not_null_stg_shopify__order_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.1784968, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a"}, "created_at": 1754595383.1810875, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_5f838ea6459b134d86a68deaaf116f0a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\n group by 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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_key.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_url_tag_key"], "alias": "not_null_stg_shopify__order_url_tag_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.1864688, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_url_tag_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "key", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "key", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_url_tag_order_id"], "alias": "not_null_stg_shopify__order_url_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.1890557, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_url_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation"], "alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f"}, "created_at": 1754595383.1915133, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_769c59c667cf83d77cd784311068258f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, key, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\n group by order_id, key, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "key", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_media_product_id"], "alias": "not_null_stg_shopify__product_media_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.196889, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_media_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_media_media_id"], "alias": "not_null_stg_shopify__product_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.1993022, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110"}, "created_at": 1754595383.2017224, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_351d2fe6cfc512f4a7b28d316e03e110.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n group by product_id, media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_product_variant_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_product_variant_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_variant_media_product_variant_id"], "alias": "not_null_stg_shopify__product_variant_media_product_variant_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.2070808, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_variant_media_product_variant_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_variant_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere product_variant_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_variant_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_variant_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_variant_media_media_id"], "alias": "not_null_stg_shopify__product_variant_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.2094946, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_variant_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation"], "alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c"}, "created_at": 1754595383.2119522, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_a913c4a97edca8d4fde35865302e9d4c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_variant_id, media_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n group by product_variant_id, media_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_variant_id", "media_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_tag_index"], "alias": "not_null_stg_shopify__product_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.2177298, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_tag_product_id"], "alias": "not_null_stg_shopify__product_tag_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.2202358, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_tag_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed"}, "created_at": 1754595383.2226772, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_98d97143f1533b4b0a8748d153cc10ed.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n product_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n group by product_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["product_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__shop_shop_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__shop_shop_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__shop_shop_id"], "alias": "not_null_stg_shopify__shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.228299, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.stg_shopify__shop", "attached_node": "model.shopify_source.stg_shopify__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('stg_shopify__shop')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation"], "alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e"}, "created_at": 1754595383.2307484, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_4a46d039ec9d10e9bd7b51862590e22e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n shop_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n group by shop_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__shop", "attached_node": "model.shopify_source.stg_shopify__shop", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["shop_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__shop')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__tender_transaction_transaction_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__tender_transaction_transaction_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__tender_transaction_transaction_id"], "alias": "not_null_stg_shopify__tender_transaction_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.2369244, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__tender_transaction_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_shopify__tender_transaction", "attached_node": "model.shopify_source.stg_shopify__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_shopify__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation"], "alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473"}, "created_at": 1754595383.2393782, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_d660b0e13029a1c24d5e54734a14b473.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\n group by transaction_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__tender_transaction", "attached_node": "model.shopify_source.stg_shopify__tender_transaction", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__tender_transaction')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id"], "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c"}, "created_at": 1754595383.244712, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation"], "alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1"}, "created_at": 1754595383.247124, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_eb754e8b225c2d759ca01324f4b23cf1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, code, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n group by checkout_id, code, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "code", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_discount_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_code", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_code.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_discount_code_code"], "alias": "not_null_stg_shopify__order_discount_code_code", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.2524526, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_discount_code_code.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect code\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "code", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "code", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_discount_code_order_id"], "alias": "not_null_stg_shopify__order_discount_code_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.2548718, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_discount_code_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0"}, "created_at": 1754595383.2573004, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_b13d53b3518da13e4887c0aba84ee5f0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n group by 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": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2"}, "created_at": 1754595383.2626307, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_863aca0c0b1501c521a5008248acfee2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n checkout_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n group by checkout_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__abandoned_checkout_shipping_line", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["checkout_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_shipping_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27", "fqn": ["shopify_source", "rest", "accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed"], "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc"}, "created_at": 1754595383.268025, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/accepted_values_stg_shopify__f_2b62fd39800ff9146300faaad82267fc.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'attempted_delivery','delayed','delivered','failure','in_transit','out_for_delivery','ready_for_pickup','picked_up','label_printed','label_purchased','confirmed'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify__fulfillment_event", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["attempted_delivery", "delayed", "delivered", "failure", "in_transit", "out_for_delivery", "ready_for_pickup", "picked_up", "label_printed", "label_purchased", "confirmed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation"], "alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd"}, "created_at": 1754595383.2772162, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_ef0e8a476c13ca4460eccfe485b12fbd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n fulfillment_event_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n group by fulfillment_event_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify__fulfillment_event", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["fulfillment_event_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment_event')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation"], "alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136"}, "created_at": 1754595383.282595, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_1132518eed0ecad0770b55067f192136.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n group by order_line_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__tax_line", "attached_node": "model.shopify_source.stg_shopify__tax_line", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__tax_line')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_allocation_discount_application_index"], "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca"}, "created_at": 1754595383.2879493, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_application_index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere discount_application_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_application_index", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_application_index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_order_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_allocation_order_line_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_allocation_order_line_id"], "alias": "not_null_stg_shopify__discount_allocation_order_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.2904148, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_allocation_order_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere order_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_line_id", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation"], "alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98"}, "created_at": 1754595383.2928545, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_41e612e0dabd95feff7c2d5f91a07c98.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n order_line_id, discount_application_index, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\n group by order_line_id, discount_application_index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["order_line_id", "discount_application_index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_application_index"], "alias": "not_null_stg_shopify__discount_application_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.298163, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_application_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_application_order_id"], "alias": "not_null_stg_shopify__discount_application_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.300566, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_application_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation"], "alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed"}, "created_at": 1754595383.3029757, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_cef0b10f7f434b5ae148094e1056eaed.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n index, order_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n group by index, order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["index", "order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_app_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_app_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_app_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_app_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.308303, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_app_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_app", "attached_node": "model.shopify_source.stg_shopify__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd"}, "created_at": 1754595383.3107285, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_2f2ec1c8f6fc764ca5d86559497287cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_app", "attached_node": "model.shopify_source.stg_shopify__discount_code_app", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_app')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_basic_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_basic_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_basic_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.3159926, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125"}, "created_at": 1754595383.318445, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_80b2653eab302cce10c1fa19804fb125.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify__discount_code_basic", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_basic')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_bxgy_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.3237398, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976"}, "created_at": 1754595383.326153, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_8ff48662520c100b32cddcb042e9a976.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify__discount_code_bxgy", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_bxgy')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_free_shipping_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_free_shipping_discount_code_id"], "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354"}, "created_at": 1754595383.332037, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce"}, "created_at": 1754595383.3344688, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_e21281131e1ebcf876f7f88fae93f9ce.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify__discount_code_free_shipping", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_free_shipping')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_redeem_code_discount_code_id"], "alias": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.3397448, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c", "fqn": ["shopify_source", "rest", "dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation"], "alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4"}, "created_at": 1754595383.3421812, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/dbt_utils_unique_combination_o_2f062a318132816042a7914a5b8172a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n discount_code_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n group by discount_code_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify__discount_redeem_code", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["discount_code_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify__discount_redeem_code')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_unique_key"], "alias": "unique_stg_shopify_gql__customer_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8405323, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer", "attached_node": "model.shopify_source.stg_shopify_gql__customer", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_unique_key"], "alias": "not_null_stg_shopify_gql__customer_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8431518, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer", "attached_node": "model.shopify_source.stg_shopify_gql__customer", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_unique_key"], "alias": "unique_stg_shopify_gql__order_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8456144, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order", "attached_node": "model.shopify_source.stg_shopify_gql__order", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_unique_key"], "alias": "not_null_stg_shopify_gql__order_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8481221, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order", "attached_node": "model.shopify_source.stg_shopify_gql__order", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_line_unique_key"], "alias": "unique_stg_shopify_gql__order_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8505878, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8529642, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__abandoned_checkout_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__abandoned_checkout_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__abandoned_checkout_unique_key"], "alias": "unique_stg_shopify_gql__abandoned_checkout_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8553433, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__abandoned_checkout_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__abandoned_checkout_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_unique_key"], "alias": "not_null_stg_shopify_gql__abandoned_checkout_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8577166, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__abandoned_checkout_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_checkout_id"], "alias": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8602324, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__abandoned_checkout_checkout_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key"], "alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815"}, "created_at": 1754595383.8626645, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key"], "alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256"}, "created_at": 1754595383.8650186, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id"], "alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e"}, "created_at": 1754595383.8673966, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_unique_key"], "alias": "unique_stg_shopify_gql__collection_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8698812, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__collection_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_unique_key"], "alias": "not_null_stg_shopify_gql__collection_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8722916, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_collection_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_collection_id"], "alias": "not_null_stg_shopify_gql__collection_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8746653, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_product_unique_key"], "alias": "unique_stg_shopify_gql__collection_product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8773959, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__collection_product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_unique_key"], "alias": "not_null_stg_shopify_gql__collection_product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8797877, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_collection_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_collection_id"], "alias": "not_null_stg_shopify_gql__collection_product_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8822885, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_product_id"], "alias": "not_null_stg_shopify_gql__collection_product_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8846786, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_tag_unique_key"], "alias": "unique_stg_shopify_gql__customer_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8870578, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_unique_key"], "alias": "not_null_stg_shopify_gql__customer_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8894532, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_index"], "alias": "not_null_stg_shopify_gql__customer_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.89194, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_customer_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_customer_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_customer_id"], "alias": "not_null_stg_shopify_gql__customer_tag_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.894342, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_allocation_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_allocation_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_allocation_unique_key"], "alias": "unique_stg_shopify_gql__discount_allocation_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.8967245, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_allocation_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_allocation_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_unique_key"], "alias": "not_null_stg_shopify_gql__discount_allocation_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.899164, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_allocation_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_discount_application_index"], "alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416"}, "created_at": 1754595383.9016056, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_application_index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere discount_application_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_application_index", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_application_index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_order_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_allocation_order_line_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_order_line_id"], "alias": "not_null_stg_shopify_gql__discount_allocation_order_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9047759, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_allocation_order_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere order_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_line_id", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_application_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_application_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_application_unique_key"], "alias": "unique_stg_shopify_gql__discount_application_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9075427, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_application_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_unique_key"], "alias": "not_null_stg_shopify_gql__discount_application_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9098904, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_index"], "alias": "not_null_stg_shopify_gql__discount_application_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.912292, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_order_id"], "alias": "not_null_stg_shopify_gql__discount_application_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.914833, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_app_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_app_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_app_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_app_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.917275, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_app_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_app_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_app_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_app_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_app_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9197693, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_app_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_app_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_app_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_app_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_app_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9221618, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_app_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_basic_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_basic_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_basic_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_basic_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9245973, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_basic_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_basic_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_basic_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_basic_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_basic_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9270954, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_basic_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_basic_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9295144, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_basic_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_bxgy_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_bxgy_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_bxgy_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9319074, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_bxgy_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.934305, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9368181, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_free_shipping_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9392595, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_free_shipping_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_free_shipping_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_free_shipping_unique_key"], "alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34"}, "created_at": 1754595383.94167, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id"], "alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09"}, "created_at": 1754595383.944087, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_redeem_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_redeem_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_redeem_code_unique_key"], "alias": "unique_stg_shopify_gql__discount_redeem_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9464896, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_redeem_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_redeem_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_redeem_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_redeem_code_unique_key"], "alias": "not_null_stg_shopify_gql__discount_redeem_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9489994, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_redeem_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9514105, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9538043, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9561646, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_fulfillment_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_fulfillment_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_fulfillment_id"], "alias": "not_null_stg_shopify_gql__fulfillment_fulfillment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9586775, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_fulfillment_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fulfillment_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere fulfillment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fulfillment_id", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fulfillment_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769", "fqn": ["shopify_source", "graphql", "accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure"], "alias": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2"}, "created_at": 1754595383.9611003, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/accepted_values_stg_shopify_gq_d4c622344d7eb67a46622034ca7430f2.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'pending','open','success','cancelled','error','failure'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["pending", "open", "success", "cancelled", "error", "failure"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_event_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_event_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_event_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_event_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.967306, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_event_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_event_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_event_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_event_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_event_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.969735, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_event_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed", "resource_type": "test", "package_name": "shopify_source", "path": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81", "fqn": ["shopify_source", "graphql", "accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed"], "alias": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"severity": "warn", "alias": "accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f"}, "created_at": 1754595383.9721625, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/accepted_values_stg_shopify_gq_fa3c90f9770942af2b12e7c4b3ca491f.sql", "compiled": true, "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\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'attempted_delivery','delayed','delivered','failure','in_transit','out_for_delivery','ready_for_pickup','picked_up','label_printed','label_purchased','confirmed'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "status", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["attempted_delivery", "delayed", "delivered", "failure", "in_transit", "out_for_delivery", "ready_for_pickup", "picked_up", "label_printed", "label_purchased", "confirmed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9777915, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_order_line_item", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_order_line_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key"], "alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22"}, "created_at": 1754595383.980194, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_order_line_item", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_order_line_item')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9825706, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_tracking_info", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_tracking_info')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.985075, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_tracking_info", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_tracking_info')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_item_unique_key"], "alias": "unique_stg_shopify_gql__inventory_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9874873, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_item_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9898498, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_item_inventory_item_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_item_inventory_item_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_item_inventory_item_id"], "alias": "not_null_stg_shopify_gql__inventory_item_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9922192, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_item_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_level_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_level_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_level_unique_key"], "alias": "unique_stg_shopify_gql__inventory_level_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9945798, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_level_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_level_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_level_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_level_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_level_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595383.9970844, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_level_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": null}}, "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation", "resource_type": "test", "package_name": "shopify_source", "path": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd", "fqn": ["shopify_source", "graphql", "dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation"], "alias": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756"}, "created_at": 1754595383.9995098, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/dbt_utils_unique_combination_o_633b26cba9e90d8a9122a06b18981756.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n inventory_level_id, inventory_item_id, location_id, source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\n group by inventory_level_id, inventory_item_id, location_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["inventory_level_id", "inventory_item_id", "location_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": "dbt_utils"}}, "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_quantity_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_quantity_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_quantity_unique_key"], "alias": "unique_stg_shopify_gql__inventory_quantity_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0048852, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_quantity_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_quantity", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_quantity')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_quantity_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_quantity_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_quantity_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_quantity_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0073097, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_quantity_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_quantity", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_quantity')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__location_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__location_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__location_unique_key"], "alias": "unique_stg_shopify_gql__location_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.009703, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__location_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__location_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__location_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__location_unique_key"], "alias": "not_null_stg_shopify_gql__location_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0120773, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__location_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__location_location_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__location_location_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__location_location_id"], "alias": "not_null_stg_shopify_gql__location_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.01457, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__location_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__media_unique_key"], "alias": "unique_stg_shopify_gql__media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0170302, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_unique_key"], "alias": "not_null_stg_shopify_gql__media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0194297, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_media_id"], "alias": "not_null_stg_shopify_gql__media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0218945, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__media_image_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__media_image_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__media_image_unique_key"], "alias": "unique_stg_shopify_gql__media_image_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0249062, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__media_image_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_image_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_image_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_image_unique_key"], "alias": "not_null_stg_shopify_gql__media_image_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.029621, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_image_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_image_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_image_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_image_media_id"], "alias": "not_null_stg_shopify_gql__media_image_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0336742, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_image_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__metafield_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__metafield_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__metafield_unique_key"], "alias": "unique_stg_shopify_gql__metafield_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0371928, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__metafield_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__metafield_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__metafield_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__metafield_unique_key"], "alias": "not_null_stg_shopify_gql__metafield_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.03965, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__metafield_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__metafield_metafield_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__metafield_metafield_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__metafield_metafield_id"], "alias": "not_null_stg_shopify_gql__metafield_metafield_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0422564, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__metafield_metafield_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metafield_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere metafield_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metafield_id", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "metafield_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_media_unique_key"], "alias": "unique_stg_shopify_gql__product_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.044679, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_unique_key"], "alias": "not_null_stg_shopify_gql__product_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.047053, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_product_id"], "alias": "not_null_stg_shopify_gql__product_media_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0494552, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_media_id"], "alias": "not_null_stg_shopify_gql__product_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0518095, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_adjustment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_adjustment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_adjustment_unique_key"], "alias": "unique_stg_shopify_gql__order_adjustment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.054332, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_adjustment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_adjustment", "attached_node": "model.shopify_source.stg_shopify_gql__order_adjustment", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_adjustment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_adjustment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_adjustment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_adjustment_unique_key"], "alias": "not_null_stg_shopify_gql__order_adjustment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0567002, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_adjustment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_adjustment", "attached_node": "model.shopify_source.stg_shopify_gql__order_adjustment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_adjustment')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_discount_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_discount_code_unique_key"], "alias": "unique_stg_shopify_gql__order_discount_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.059084, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_discount_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_unique_key"], "alias": "not_null_stg_shopify_gql__order_discount_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.061474, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_code", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_code.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_code"], "alias": "not_null_stg_shopify_gql__order_discount_code_code", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0639358, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_code.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect code\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "code", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "code", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_order_id"], "alias": "not_null_stg_shopify_gql__order_discount_code_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.066317, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_line_refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_line_refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_line_refund_unique_key"], "alias": "unique_stg_shopify_gql__order_line_refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0687091, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_line_refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line_refund", "attached_node": "model.shopify_source.stg_shopify_gql__order_line_refund", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line_refund')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_line_refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_line_refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_line_refund_unique_key"], "alias": "not_null_stg_shopify_gql__order_line_refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0710518, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_line_refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line_refund", "attached_node": "model.shopify_source.stg_shopify_gql__order_line_refund", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line_refund')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_note_attribute_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_note_attribute_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_note_attribute_unique_key"], "alias": "unique_stg_shopify_gql__order_note_attribute_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0734425, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_note_attribute_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_unique_key"], "alias": "not_null_stg_shopify_gql__order_note_attribute_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0759287, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_name", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_name.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_name"], "alias": "not_null_stg_shopify_gql__order_note_attribute_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0783389, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect name\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_order_id"], "alias": "not_null_stg_shopify_gql__order_note_attribute_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0807183, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_shipping_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_shipping_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_shipping_line_unique_key"], "alias": "unique_stg_shopify_gql__order_shipping_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0830543, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_shipping_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_shipping_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0855627, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id"], "alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2"}, "created_at": 1754595384.0882306, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_shipping_tax_line_unique_key"], "alias": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0906332, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0929968, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id"], "alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4"}, "created_at": 1754595384.0953748, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_tax_line_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_index"], "alias": "not_null_stg_shopify_gql__order_shipping_tax_line_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.0978713, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_tax_line_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_tag_unique_key"], "alias": "unique_stg_shopify_gql__order_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1002824, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_unique_key"], "alias": "not_null_stg_shopify_gql__order_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1026437, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_order_id"], "alias": "not_null_stg_shopify_gql__order_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1049874, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_index"], "alias": "not_null_stg_shopify_gql__order_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.107563, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_unique_key"], "alias": "unique_stg_shopify_gql__product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.109969, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product", "attached_node": "model.shopify_source.stg_shopify_gql__product", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_unique_key"], "alias": "not_null_stg_shopify_gql__product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1123981, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product", "attached_node": "model.shopify_source.stg_shopify_gql__product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_variant_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_variant_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_variant_unique_key"], "alias": "unique_stg_shopify_gql__product_variant_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1147676, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_variant_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_unique_key"], "alias": "not_null_stg_shopify_gql__product_variant_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.117135, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_variant_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_variant_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_variant_media_unique_key"], "alias": "unique_stg_shopify_gql__product_variant_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1196606, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_variant_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_unique_key"], "alias": "not_null_stg_shopify_gql__product_variant_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1220791, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_product_variant_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_product_variant_id"], "alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943"}, "created_at": 1754595384.1248405, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_variant_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere product_variant_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_variant_id", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_variant_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_media_id"], "alias": "not_null_stg_shopify_gql__product_variant_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1274393, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_tag_unique_key"], "alias": "unique_stg_shopify_gql__product_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1299486, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_unique_key"], "alias": "not_null_stg_shopify_gql__product_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1323428, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_index"], "alias": "not_null_stg_shopify_gql__product_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1346877, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_product_id"], "alias": "not_null_stg_shopify_gql__product_tag_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1370413, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__refund_unique_key"], "alias": "unique_stg_shopify_gql__refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1394222, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__refund", "attached_node": "model.shopify_source.stg_shopify_gql__refund", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__refund')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__refund_unique_key"], "alias": "not_null_stg_shopify_gql__refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1419005, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__refund", "attached_node": "model.shopify_source.stg_shopify_gql__refund", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__refund')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__shop_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__shop_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__shop_unique_key"], "alias": "unique_stg_shopify_gql__shop_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1443095, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__shop_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__shop_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__shop_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__shop_unique_key"], "alias": "not_null_stg_shopify_gql__shop_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1466591, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__shop_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__shop_shop_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__shop_shop_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__shop_shop_id"], "alias": "not_null_stg_shopify_gql__shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.149014, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__tax_line_unique_key"], "alias": "unique_stg_shopify_gql__tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.151524, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__tax_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tax_line_unique_key"], "alias": "not_null_stg_shopify_gql__tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1538856, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tax_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__tender_transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__tender_transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__tender_transaction_unique_key"], "alias": "unique_stg_shopify_gql__tender_transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1562777, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__tender_transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tender_transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tender_transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tender_transaction_unique_key"], "alias": "not_null_stg_shopify_gql__tender_transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1586585, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tender_transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tender_transaction_transaction_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tender_transaction_transaction_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tender_transaction_transaction_id"], "alias": "not_null_stg_shopify_gql__tender_transaction_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1610148, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tender_transaction_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__transaction_unique_key"], "alias": "unique_stg_shopify_gql__transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1637716, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__transaction", "attached_node": "model.shopify_source.stg_shopify_gql__transaction", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__transaction_unique_key"], "alias": "not_null_stg_shopify_gql__transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.166145, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__transaction", "attached_node": "model.shopify_source.stg_shopify_gql__transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__transaction')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_visit_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_visit_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_visit_unique_key"], "alias": "unique_stg_shopify_gql__customer_visit_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1685631, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_visit_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_visit", "attached_node": "model.shopify_source.stg_shopify_gql__customer_visit", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_visit')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_visit_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_visit_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_visit_unique_key"], "alias": "not_null_stg_shopify_gql__customer_visit_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1709125, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_visit_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_visit", "attached_node": "model.shopify_source.stg_shopify_gql__customer_visit", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_visit')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_rule_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_rule_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_rule_unique_key"], "alias": "unique_stg_shopify_gql__collection_rule_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1734233, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_rule", "attached_node": "model.shopify_source.stg_shopify_gql__collection_rule", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_rule')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_rule_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_rule_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_rule_unique_key"], "alias": "not_null_stg_shopify_gql__collection_rule_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1757946, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_rule", "attached_node": "model.shopify_source.stg_shopify_gql__collection_rule", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_rule')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_address_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_address_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_address_unique_key"], "alias": "unique_stg_shopify_gql__customer_address_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1781855, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_address_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_address", "attached_node": "model.shopify_source.stg_shopify_gql__customer_address", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_address')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_address_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_address_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_address_unique_key"], "alias": "not_null_stg_shopify_gql__customer_address_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1754595384.1805956, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_address_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_address", "attached_node": "model.shopify_source.stg_shopify_gql__customer_address", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_address')) }}"}, "namespace": null}}}, "sources": {"source.shopify_source.shopify.order": {"database": "postgres", "schema": "public", "name": "order", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order", "fqn": ["shopify_source", "rest", "shopify", "order"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_data", "quoting": {"database": null, "schema": null, "identifier": true, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_at": {"name": "cancelled_at", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "(DEPRECATED) The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "(DEPRECATED) A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "confirmed": {"name": "confirmed", "description": "Whether inventory has been reserved for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_identifier": {"name": "source_identifier", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "created_at": 1754595384.2121131, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer": {"database": "postgres", "schema": "public", "name": "customer", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer", "fqn": ["shopify_source", "rest", "shopify", "customer"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "accepts_marketing": {"name": "accepts_marketing", "description": "Whether the customer has consented to receive marketing material via email. Deprecated and will be coalesced with `email_marketing_consent_state`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "state": {"name": "state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_exempt": {"name": "tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "verified_email": {"name": "verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_state": {"name": "email_marketing_consent_state", "description": "The current email marketing state for the customer. New version of `accepts_marketing` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_opt_in_level": {"name": "email_marketing_consent_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. New version of `marketing_opt_in_level` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_consent_updated_at": {"name": "email_marketing_consent_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. New version of `accepts_marketing_updated_at` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "accepts_marketing_updated_at": {"name": "accepts_marketing_updated_at", "description": "Deprecated. The package will coalesce with `email_marketing_consent_consent_updated_at`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "Deprecated. The package will coalesce with `email_marketing_consent_opt_in_level`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "created_at": 1754595384.2144866, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line": {"database": "postgres", "schema": "public", "name": "order_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line", "fqn": ["shopify_source", "rest", "shopify", "order_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item for an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gift_card": {"name": "gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "created_at": 1754595384.2155955, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line_refund": {"database": "postgres", "schema": "public", "name": "order_line_refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line_refund", "fqn": ["shopify_source", "rest", "shopify", "order_line_refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item refund in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "created_at": 1754595384.216301, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product": {"database": "postgres", "schema": "public", "name": "product", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product", "fqn": ["shopify_source", "rest", "shopify", "product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product in Shopify.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "created_at": 1754595384.2169719, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant": {"database": "postgres", "schema": "public", "name": "product_variant", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant", "fqn": ["shopify_source", "rest", "shopify", "product_variant"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "old_inventory_quantity": {"name": "old_inventory_quantity", "description": "(DEPRECATED 2025-01-06) Use the InventoryLevel resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "(DEPRECATED 2025-01-06) Use the `requires_shipping` property on the InventoryItem resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "available_for_sale": {"name": "available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield": {"name": "metafield", "description": "A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_components": {"name": "requires_components", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "created_at": 1754595384.217734, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.transaction": {"database": "postgres", "schema": "public", "name": "transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.transaction", "fqn": ["shopify_source", "rest", "shopify", "transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a transaction in Shopify.", "columns": {"id": {"name": "id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization": {"name": "authorization", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "created_at": 1754595384.2185488, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.refund": {"database": "postgres", "schema": "public", "name": "refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.refund", "fqn": ["shopify_source", "rest", "shopify", "refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a refund within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "created_at": 1754595384.219216, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_adjustment": {"database": "postgres", "schema": "public", "name": "order_adjustment", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_adjustment", "fqn": ["shopify_source", "rest", "shopify", "order_adjustment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_adjustment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "created_at": 1754595384.2198648, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout": {"database": "postgres", "schema": "public", "name": "abandoned_checkout", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "created_at": 1754595384.2208576, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection_product": {"database": "postgres", "schema": "public", "name": "collection_product", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection_product", "fqn": ["shopify_source", "rest", "shopify", "collection_product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "created_at": 1754595384.2214968, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection": {"database": "postgres", "schema": "public", "name": "collection", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection", "fqn": ["shopify_source", "rest", "shopify", "collection"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "disjunctive": {"name": "disjunctive", "description": "Boolean representing whether the `rules` or disjuctive (logical `OR`) or not. True = disjuctive, false = conjunctive (logical `AND`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparitive relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values inclide - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "created_at": 1754595384.2221484, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer_tag": {"database": "postgres", "schema": "public", "name": "customer_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer_tag", "fqn": ["shopify_source", "rest", "shopify", "customer_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "created_at": 1754595384.2227743, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment": {"database": "postgres", "schema": "public", "name": "fulfillment", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment", "fqn": ["shopify_source", "rest", "shopify", "fulfillment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt_authorization": {"name": "receipt_authorization", "description": "The authorization code from the receipt.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was succesfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "created_at": 1754595384.223488, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_item": {"database": "postgres", "schema": "public", "name": "inventory_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_item", "fqn": ["shopify_source", "rest", "shopify", "inventory_item"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked": {"name": "tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_locked": {"name": "tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "created_at": 1754595384.2241595, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_level": {"database": "postgres", "schema": "public", "name": "inventory_level", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_level", "fqn": ["shopify_source", "rest", "shopify", "inventory_level"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_level_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available": {"name": "available", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "created_at": 1754595384.2248049, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_quantity": {"database": "postgres", "schema": "public", "name": "inventory_quantity", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_quantity", "fqn": ["shopify_source", "rest", "shopify", "inventory_quantity"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_quantity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The total quantity of the inventory item available at all locations.", "columns": {"id": {"name": "id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "created_at": 1754595384.2254567, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.location": {"database": "postgres", "schema": "public", "name": "location", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.location", "fqn": ["shopify_source", "rest", "shopify", "location"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_location_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "active": {"name": "active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy": {"name": "legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "created_at": 1754595384.226229, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.metafield": {"database": "postgres", "schema": "public", "name": "metafield", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.metafield", "fqn": ["shopify_source", "rest", "shopify", "metafield"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_metafield_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_id": {"name": "owner_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Use this instead of `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "created_at": 1754595384.2268934, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_note_attribute": {"database": "postgres", "schema": "public", "name": "order_note_attribute", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_note_attribute", "fqn": ["shopify_source", "rest", "shopify", "order_note_attribute"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_note_attribute_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "created_at": 1754595384.227528, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_line": {"database": "postgres", "schema": "public", "name": "order_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_line", "fqn": ["shopify_source", "rest", "shopify", "order_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "created_at": 1754595384.228182, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_tax_line": {"database": "postgres", "schema": "public", "name": "order_shipping_tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_tax_line", "fqn": ["shopify_source", "rest", "shopify", "order_shipping_tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this recod is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "created_at": 1754595384.2287965, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_tag": {"database": "postgres", "schema": "public", "name": "order_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_tag", "fqn": ["shopify_source", "rest", "shopify", "order_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "created_at": 1754595384.2294114, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_url_tag": {"database": "postgres", "schema": "public", "name": "order_url_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_url_tag", "fqn": ["shopify_source", "rest", "shopify", "order_url_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_url_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "created_at": 1754595384.2300048, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media": {"database": "postgres", "schema": "public", "name": "media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media", "fqn": ["shopify_source", "rest", "shopify", "media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing media metadata, including status and timestamps.", "columns": {"id": {"name": "id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "created_at": 1754595384.230684, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media_image": {"database": "postgres", "schema": "public", "name": "media_image", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media_image", "fqn": ["shopify_source", "rest", "shopify", "media_image"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_image_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "created_at": 1754595384.231358, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_media": {"database": "postgres", "schema": "public", "name": "product_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_media", "fqn": ["shopify_source", "rest", "shopify", "product_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "created_at": 1754595384.2319744, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant_media": {"database": "postgres", "schema": "public", "name": "product_variant_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant_media", "fqn": ["shopify_source", "rest", "shopify", "product_variant_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping product variants to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "created_at": 1754595384.2326229, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_tag": {"database": "postgres", "schema": "public", "name": "product_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_tag", "fqn": ["shopify_source", "rest", "shopify", "product_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "created_at": 1754595384.233242, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.shop": {"database": "postgres", "schema": "public", "name": "shop", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.shop", "fqn": ["shopify_source", "rest", "shopify", "shop"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_shop_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_api_supported": {"name": "checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "county_taxes": {"name": "county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_card_reader_giveaway": {"name": "eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_payments": {"name": "eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "force_ssl": {"name": "force_ssl", "description": "DEPRECATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_login_enabled": {"name": "google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "multi_location_enabled": {"name": "multi_location_enabled", "description": "DEPRECATED and hard-coded to `true`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "password_enabled": {"name": "password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_launch_enabled": {"name": "pre_launch_enabled", "description": "Boolen representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_location_id": {"name": "primary_location_id", "description": "DEPRECATED. Formerly used for the ID of the shipping origin location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_extra_payments_agreement": {"name": "requires_extra_payments_agreement", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "setup_required": {"name": "setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_shipping": {"name": "tax_shipping", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "created_at": 1754595384.234096, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tender_transaction": {"database": "postgres", "schema": "public", "name": "tender_transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tender_transaction", "fqn": ["shopify_source", "rest", "shopify", "tender_transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tender_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the tender transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "created_at": 1754595384.234756, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index (from 1) representing the application of the discount to the checkout. Use the latest (highest index)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "created_at": 1754595384.2354023, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_discount_code": {"database": "postgres", "schema": "public", "name": "order_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_discount_code", "fqn": ["shopify_source", "rest", "shopify", "order_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "created_at": 1754595384.2360022, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_shop_price": {"name": "original_shop_price", "description": "The pre-tax shipping price without any discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "created_at": 1754595384.2367134, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment_event": {"database": "postgres", "schema": "public", "name": "fulfillment_event", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment_event", "fqn": ["shopify_source", "rest", "shopify", "fulfillment_event"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_event_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "created_at": 1754595384.2385097, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tax_line": {"database": "postgres", "schema": "public", "name": "tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tax_line", "fqn": ["shopify_source", "rest", "shopify", "tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "created_at": 1754595384.2391396, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_allocation": {"database": "postgres", "schema": "public", "name": "discount_allocation", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_allocation", "fqn": ["shopify_source", "rest", "shopify", "discount_allocation"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_allocation_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing allocation amounts applied to order lines from discount applications. Discount allocations indicate how much of the discount was applied and how it was split across line items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The currency code associated with the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The currency code associated with the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of this allocation in the list of discount allocations applied to an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "created_at": 1754595384.239792, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_application": {"database": "postgres", "schema": "public", "name": "discount_application", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_application", "fqn": ["shopify_source", "rest", "shopify", "discount_application"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_application_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount applications, which define how discounts were applied to an order. This includes metadata like allocation method, target type, and value type.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The allocation method used to apply the discount. Valid values include `each` (the discount is applied to each entitled item) and `across` (the discount is applied across all entitled items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A short description of the discount, usually derived from the associated rule or promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Specifies whether the discount applies to all items (`all`) or only entitled ones (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "Indicates whether the discount applies to `line_item` or `shipping_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the discount as displayed in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Possible values include `manual`, `automatic`, or `script`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The numerical value of the discount. This may be a flat amount or a percentage, depending on `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount is a `percentage` or a `fixed_amount`. When the target type is `shipping_line`, only `percentage` is allowed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "created_at": 1754595384.240457, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_app": {"database": "postgres", "schema": "public", "name": "discount_code_app", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_app", "fqn": ["shopify_source", "rest", "shopify", "discount_code_app"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_app_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount codes created and managed through apps using Shopify Functions. These app-based discounts support advanced, dynamic behavior and custom targeting.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_count": {"name": "codes_count_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_precision": {"name": "codes_count_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "created_at": 1754595384.2411258, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_basic": {"database": "postgres", "schema": "public", "name": "discount_code_basic", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_basic", "fqn": ["shopify_source", "rest", "shopify", "discount_code_basic"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_basic_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing basic discount codes and their metadata. This includes usage limits, timeframes, eligible customers, combination rules, and tracked usage.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "Number of billing cycles the discount can be applied for (used for subscriptions).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is an exact number or an estimate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "created_at": 1754595384.2418587, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_bxgy": {"database": "postgres", "schema": "public", "name": "discount_code_bxgy", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_bxgy", "fqn": ["shopify_source", "rest", "shopify", "discount_code_bxgy"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_bxgy_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing Buy X Get Y discount codes, including conditions for what customers must buy, what they receive, and metadata such as usage, status, and combination eligibility.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "uses_per_order_limit": {"name": "uses_per_order_limit", "description": "The maximum number of times the discount can be applied to a single order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "created_at": 1754595384.2425416, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_free_shipping": {"database": "postgres", "schema": "public", "name": "discount_code_free_shipping", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_free_shipping", "fqn": ["shopify_source", "rest", "shopify", "discount_code_free_shipping"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_free_shipping_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing free shipping discount codes and metadata, including subscription and one-time purchase applicability, eligible countries, usage limits, and combination rules.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "created_at": 1754595384.2432203, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_redeem_code": {"database": "postgres", "schema": "public", "name": "discount_redeem_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_redeem_code", "fqn": ["shopify_source", "rest", "shopify", "discount_redeem_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_redeem_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each code is tied to a parent discount and may be created by an app or manually by a merchant.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This value is updated asynchronously and may not match real-time usage counts.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (usually an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount this redeem code is associated with (e.g., `discount_code_basic`, `discount_code_bxgy`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "created_at": 1754595384.243844, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order": {"database": "postgres", "schema": "public", "name": "order", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_data", "quoting": {"database": null, "schema": null, "identifier": true, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_ip": {"name": "client_ip", "description": "The IP address of the customer who placed the order. Useful for fraud detection and geographic analysis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_accepts_marketing": {"name": "customer_accepts_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_at": {"name": "cancelled_at", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The shop currency when the order was placed. For example, \"USD\" or \"CAD\".", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_financial_status": {"name": "display_financial_status", "description": "An order's financial status for display in the Shopify admin. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFinancialStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_fulfillment_status": {"name": "display_fulfillment_status", "description": "The order's fulfillment status that displays in the Shopify admin to merchants. For example, an order might be unfulfilled or scheduled. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFulfillmentStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The unique identifier for the order that appears on the order page in the Shopify admin and the Order status page. For example, \"#1001\", \"EN1001\", or \"1001-A\". This value isn't unique across multiple stores.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The optional note associated with the order. Contains additional information or instructions added by merchants or customers during the order process. Commonly used for special delivery instructions, gift messages, or internal processing notes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The name of the source associated with the order, such as \"web\", \"mobile_app\", or \"pos\". Use this field to identify the platform where the order was placed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_amount": {"name": "subtotal_price_set_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_amount": {"name": "subtotal_price_set_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_currency_code": {"name": "subtotal_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_currency_code": {"name": "subtotal_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_shop_amount": {"name": "total_discounts_set_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_pres_amount": {"name": "total_discounts_set_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_shop_currency_code": {"name": "total_discounts_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_pres_currency_code": {"name": "total_discounts_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_amount": {"name": "total_price_set_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_amount": {"name": "total_price_set_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_currency_code": {"name": "total_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_currency_code": {"name": "total_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights before returns, in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "The staff member who created or is responsible for the order. Useful for tracking which team member handled phone orders, manual orders, or order modifications. Returns null for orders created directly by customers through the online store.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "confirmed": {"name": "confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status_page_url": {"name": "status_page_url", "description": "The URL where customers can check their order's current status, including tracking information and delivery updates. Provides order tracking links in emails, apps, or customer communications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received_set_shop_amount": {"name": "total_tip_received_set_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_pres_amount": {"name": "total_tip_received_set_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_shop_currency_code": {"name": "total_tip_received_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_pres_currency_code": {"name": "total_tip_received_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency_code": {"name": "presentment_currency_code", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_shop_amount": {"name": "total_shipping_price_set_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_pres_amount": {"name": "total_shipping_price_set_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_shop_currency_code": {"name": "total_shipping_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_pres_currency_code": {"name": "total_shipping_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_data\"", "created_at": 1754595384.2448635, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer": {"database": "postgres", "schema": "public", "name": "customer", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "state": {"name": "state", "description": "The state of the customer's account with a shop. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/customer#field-Customer.fields.state).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_exempt": {"name": "tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "verified_email": {"name": "verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_state": {"name": "email_marketing_consent_state", "description": "The current email marketing state for the customer. New version of `accepts_marketing` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_opt_in_level": {"name": "email_marketing_consent_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. New version of `marketing_opt_in_level` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_updated_at": {"name": "email_marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. New version of `accepts_marketing_updated_at` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_data\"", "created_at": 1754595384.2455401, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_line": {"database": "postgres", "schema": "public", "name": "order_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item for an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "unfulfilled_quantity": {"name": "unfulfilled_quantity", "description": "The number of units not yet fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_pres_amount": {"name": "original_total_set_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_pres_currency_code": {"name": "original_total_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_shop_amount": {"name": "original_total_set_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_shop_currency_code": {"name": "original_total_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_amount": {"name": "total_discount_set_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_amount": {"name": "total_discount_set_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_currency_code": {"name": "total_discount_set_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_currency_code": {"name": "total_discount_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_data\"", "created_at": 1754595384.2462306, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_line_refund": {"database": "postgres", "schema": "public", "name": "order_line_refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_line_refund", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_line_refund"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_line_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item refund in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location where the items will be restocked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_pres_amount": {"name": "subtotal_set_pres_amount", "description": "The refunded subtotal amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_pres_currency_code": {"name": "subtotal_set_pres_currency_code", "description": "The three letter currency code for the subtotal the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_shop_amount": {"name": "subtotal_set_shop_amount", "description": "The refunded subtotal amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_shop_currency_code": {"name": "subtotal_set_shop_currency_code", "description": "The three letter currency code for the subtotal in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The total tax amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three letter currency code of the tax the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The total tax amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three letter currency code of the tax in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "created_at": 1754595384.2468863, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product": {"database": "postgres", "schema": "public", "name": "product", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product in Shopify.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_data\"", "created_at": 1754595384.2476563, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_variant": {"database": "postgres", "schema": "public", "name": "product_variant", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_variant", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_variant"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_variant_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "available_for_sale": {"name": "available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_components": {"name": "requires_components", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "created_at": 1754595384.2484596, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.transaction": {"database": "postgres", "schema": "public", "name": "transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.transaction", "fqn": ["shopify_source", "graphql", "shopify_graphql", "transaction"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a transaction in Shopify.", "columns": {"id": {"name": "id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_amount": {"name": "amount_set_pres_amount", "description": "The amount of the transaction in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_currency_code": {"name": "amount_set_pres_currency_code", "description": "The three letter currency code of the customer's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_amount": {"name": "amount_set_shop_amount", "description": "The amount of the transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_currency_code": {"name": "amount_set_shop_currency_code", "description": "The three letter currency code of the shop's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used to process the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "Unique identifier of the staff member who was logged into the Shopify POS device when the transaction was processed", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_transaction_data\"", "created_at": 1754595384.2491574, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.refund": {"database": "postgres", "schema": "public", "name": "refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.refund", "fqn": ["shopify_source", "graphql", "shopify_graphql", "refund"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a refund within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the refund was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "return_id": {"name": "return_id", "description": "Reference to the return which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "Reference to the staff member who created the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_pres_amount": {"name": "total_refunded_set_pres_amount", "description": "The total amount across all transactions for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_pres_currency_code": {"name": "total_refunded_set_pres_currency_code", "description": "The three letter currency code for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_shop_amount": {"name": "total_refunded_set_shop_amount", "description": "The total amount across all transactions for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_shop_currency_code": {"name": "total_refunded_set_shop_currency_code", "description": "The three letter currency code for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_refund_data\"", "created_at": 1754595384.2498412, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_adjustment": {"database": "postgres", "schema": "public", "name": "order_adjustment", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_adjustment", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_adjustment"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_adjustment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_amount": {"name": "amount_set_pres_amount", "description": "The amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_currency_code": {"name": "amount_set_pres_currency_code", "description": "The three letter currency code for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_amount": {"name": "amount_set_shop_amount", "description": "The amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_currency_code": {"name": "amount_set_shop_currency_code", "description": "The three letter shop currency code of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_pres_amount": {"name": "tax_amount_set_pres_amount", "description": "The tax amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_pres_currency_code": {"name": "tax_amount_set_pres_currency_code", "description": "The three letter currency code for the tax of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_shop_amount": {"name": "tax_amount_set_shop_amount", "description": "The tax amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_shop_currency_code": {"name": "tax_amount_set_shop_currency_code", "description": "The three letter shop currency code of the tax for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "created_at": 1754595384.250483, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.abandoned_checkout": {"database": "postgres", "schema": "public", "name": "abandoned_checkout", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout", "fqn": ["shopify_source", "graphql", "shopify_graphql", "abandoned_checkout"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_abandoned_checkout_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_amount": {"name": "subtotal_price_set_shop_amount", "description": "The price of the checkout before shipping and taxes in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_amount": {"name": "subtotal_price_set_pres_amount", "description": "The price of the checkout before shipping and taxes in *presentment* currencyy. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_currency_code": {"name": "subtotal_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_currency_code": {"name": "subtotal_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_amount": {"name": "total_discount_set_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_amount": {"name": "total_discount_set_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_currency_code": {"name": "total_discount_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_currency_code": {"name": "total_discount_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_shop_amount": {"name": "total_duties_set_shop_amount", "description": "The total duties of the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_pres_amount": {"name": "total_duties_set_pres_amount", "description": "The total duties of the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_shop_currency_code": {"name": "total_duties_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_pres_currency_code": {"name": "total_duties_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_shop_amount": {"name": "total_line_items_price_set_shop_amount", "description": "The sum of the prices of all line items in the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_pres_amount": {"name": "total_line_items_price_set_pres_amount", "description": "The sum of the prices of all line items in the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_shop_currency_code": {"name": "total_line_items_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_pres_currency_code": {"name": "total_line_items_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_amount": {"name": "total_price_set_shop_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_amount": {"name": "total_price_set_pres_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_currency_code": {"name": "total_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_currency_code": {"name": "total_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The sum of all the taxes applied to the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The sum of all the taxes applied to the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "completed_at": {"name": "completed_at", "description": "The date and time when the buyer completed the checkout. Null if the checkout has not been completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "created_at": 1754595384.251364, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.collection_product": {"database": "postgres", "schema": "public", "name": "collection_product", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection_product", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection_product"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "created_at": 1754595384.2519588, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.collection": {"database": "postgres", "schema": "public", "name": "collection", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "applied_disjunctively": {"name": "applied_disjunctively", "description": "Boolean representing whether products must match any or all of the `rules` to be included in the collection. True = products must match at least one rule, false = products must match all rules.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values inclide - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_data\"", "created_at": 1754595384.2525973, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_tag": {"database": "postgres", "schema": "public", "name": "customer_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "created_at": 1754595384.2532163, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment": {"database": "postgres", "schema": "public", "name": "fulfillment", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_status": {"name": "display_status", "description": "Display status for this fulfillment. Valid values include `attempted_delivery`, `canceled`, `confirmed`, `delayed`, `delivered`, `failure`, `fulfilled`, `in_transit`, `label_printed`, `label_purchased`, `label_voided`, `marked_as_fulfilled`, `not_delivered`, `out_for_delivery`, `picked_up`, `ready_for_pickup`, `submitted`. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service_id": {"name": "service_id", "description": "The id of the fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: (Legacy status, to be deprecated) Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: (Legacy status, to be deprecated) The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "Sum of all line item quantities for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "created_at": 1754595384.253849, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_item": {"database": "postgres", "schema": "public", "name": "inventory_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_item", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_item"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked": {"name": "tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_locked": {"name": "tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "created_at": 1754595384.2545261, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_level": {"database": "postgres", "schema": "public", "name": "inventory_level", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_level", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_level"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_level_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "created_at": 1754595384.255185, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_quantity": {"database": "postgres", "schema": "public", "name": "inventory_quantity", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_quantity", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_quantity"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_quantity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The total quantity of the inventory item available at all locations.", "columns": {"id": {"name": "id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "created_at": 1754595384.2558017, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.location": {"database": "postgres", "schema": "public", "name": "location", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.location", "fqn": ["shopify_source", "graphql", "shopify_graphql", "location"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_location_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_fulfillment_service": {"name": "is_fulfillment_service", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_location_data\"", "created_at": 1754595384.25649, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.metafield": {"database": "postgres", "schema": "public", "name": "metafield", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.metafield", "fqn": ["shopify_source", "graphql", "shopify_graphql", "metafield"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_metafield_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_id": {"name": "owner_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Use this instead of `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_metafield_data\"", "created_at": 1754595384.257142, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_note_attribute": {"database": "postgres", "schema": "public", "name": "order_note_attribute", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_note_attribute", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_note_attribute"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_note_attribute_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "created_at": 1754595384.257767, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_shipping_line": {"database": "postgres", "schema": "public", "name": "order_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_shipping_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_shipping_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_pres_amount": {"name": "current_discounted_price_set_pres_amount", "description": "Current shipping price in customer currency after applying refunds and discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_pres_currency_code": {"name": "current_discounted_price_set_pres_currency_code", "description": "Three digit customer currency code for the current discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_shop_amount": {"name": "current_discounted_price_set_shop_amount", "description": "Current shipping price in shop currency after applying refunds and discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_shop_currency_code": {"name": "current_discounted_price_set_shop_currency_code", "description": "Three digit shop currency code for the current discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_pres_amount": {"name": "discounted_price_set_pres_amount", "description": "Shipping price in customer currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_pres_currency_code": {"name": "discounted_price_set_pres_currency_code", "description": "Three digit customer currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_shop_amount": {"name": "discounted_price_set_shop_amount", "description": "Shipping price in shop currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_shop_currency_code": {"name": "discounted_price_set_shop_currency_code", "description": "Three digit shop currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_removed": {"name": "is_removed", "description": "Whether the shipping line has been removed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_pres_amount": {"name": "original_price_set_pres_amount", "description": "The pre-tax shipping price without any discounts applied in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_pres_currency_code": {"name": "original_price_set_pres_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_shop_amount": {"name": "original_price_set_shop_amount", "description": "The pre-tax shipping price without any discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_shop_currency_code": {"name": "original_price_set_shop_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_rate_handle": {"name": "shipping_rate_handle", "description": "A unique identifier for the shipping rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "created_at": 1754595384.2584877, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_shipping_tax_line": {"database": "postgres", "schema": "public", "name": "order_shipping_tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_shipping_tax_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_shipping_tax_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_shipping_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this recod is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_amount": {"name": "price_set_pres_amount", "description": "The amount of tax in customer currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_currency_code": {"name": "price_set_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_amount": {"name": "price_set_shop_amount", "description": "The amount of tax in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_currency_code": {"name": "price_set_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The source of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "created_at": 1754595384.2591207, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_tag": {"database": "postgres", "schema": "public", "name": "order_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "created_at": 1754595384.2597609, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.media": {"database": "postgres", "schema": "public", "name": "media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing media metadata, including status and timestamps.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "alt": {"name": "alt", "description": "A word or phrase to share the nature or contents of a media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "file_status": {"name": "file_status", "description": "The status of the file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_content_type": {"name": "media_content_type", "description": "The media content type (values include 'external_video', 'image', 'model_3d', 'video')", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_alt_text": {"name": "preview_image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_height": {"name": "preview_image_height", "description": "The original height of the image in pixels (returns null if image not hosted in Shopify).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_id": {"name": "preview_image_id", "description": "A unique id for the image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_url": {"name": "preview_image_url", "description": "The location of the image as a URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_width": {"name": "preview_image_width", "description": "The original width of the image in pixels (returns null if image not hosted in Shopify).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_status": {"name": "preview_status", "description": "Current status of the preview image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_data\"", "created_at": 1754595384.2604399, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.media_image": {"database": "postgres", "schema": "public", "name": "media_image", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.media_image", "fqn": ["shopify_source", "graphql", "shopify_graphql", "media_image"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_media_image_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_image_data\"", "created_at": 1754595384.2611046, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_media": {"database": "postgres", "schema": "public", "name": "product_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_media_data\"", "created_at": 1754595384.2617552, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_variant_media": {"database": "postgres", "schema": "public", "name": "product_variant_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_variant_media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_variant_media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_variant_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping product variants to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "created_at": 1754595384.2623792, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_tag": {"database": "postgres", "schema": "public", "name": "product_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "created_at": 1754595384.2630293, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.shop": {"database": "postgres", "schema": "public", "name": "shop", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.shop", "fqn": ["shopify_source", "graphql", "shopify_graphql", "shop"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_shop_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The shop's street address (or PO Box number).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_api_supported": {"name": "checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code_v_2": {"name": "billing_address_country_code_v_2", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The three letter code for the currency that the shop sells in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_domain_host": {"name": "primary_domain_host", "description": "The host name of the primary domain of the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "contact_email": {"name": "contact_email", "description": "The public-facing contact email address for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "features_storefront": {"name": "features_storefront", "description": "Whether a shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_format": {"name": "currency_formats_money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_in_emails_format": {"name": "currency_formats_money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_with_currency_format": {"name": "currency_formats_money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_with_currency_in_emails_format": {"name": "currency_formats_money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "password_enabled": {"name": "password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_domain_localization_default_locale": {"name": "primary_domain_localization_default_locale", "description": "The localization of the domain of the shop's online store, if the domain doesn't redirect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "setup_required": {"name": "setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner_name": {"name": "shop_owner_name", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_shipping": {"name": "tax_shipping", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_abbreviation": {"name": "timezone_abbreviation", "description": "The shop's time zone abbreviation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset": {"name": "timezone_offset", "description": "The shop's time zone offset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset_minutes": {"name": "timezone_offset_minutes", "description": "The shop's time zone offset expressed as a number of minutes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_shop_data\"", "created_at": 1754595384.2637906, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.tender_transaction": {"database": "postgres", "schema": "public", "name": "tender_transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.tender_transaction", "fqn": ["shopify_source", "graphql", "shopify_graphql", "tender_transaction"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_tender_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the tender transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "created_at": 1754595384.2644296, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "abandoned_checkout_discount_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_abandoned_checkout_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index (from 1) representing the application of the discount to the checkout. Use the latest (highest index)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "created_at": 1754595384.265031, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_discount_code": {"database": "postgres", "schema": "public", "name": "order_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_discount_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_discount_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "created_at": 1754595384.2656593, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_event": {"database": "postgres", "schema": "public", "name": "fulfillment_event", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_event", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_event"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_event_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delayed: The shipment was delayed. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "created_at": 1754595384.2663722, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.tax_line": {"database": "postgres", "schema": "public", "name": "tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.tax_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "tax_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_amount": {"name": "price_set_pres_amount", "description": "The amount of tax in customer currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_currency_code": {"name": "price_set_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_amount": {"name": "price_set_shop_amount", "description": "The amount of tax in shop currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_currency_code": {"name": "price_set_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "created_at": 1754595384.2670052, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_allocation": {"database": "postgres", "schema": "public", "name": "discount_allocation", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_allocation", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_allocation"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_allocation_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing allocation amounts applied to order lines from discount applications. Discount allocations indicate how much of the discount was applied and how it was split across line items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocated_amount_set_pres_amount": {"name": "allocated_amount_set_pres_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_pres_currency_code": {"name": "allocated_amount_set_pres_currency_code", "description": "The currency code associated with the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_shop_amount": {"name": "allocated_amount_set_shop_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_shop_currency_code": {"name": "allocated_amount_set_shop_currency_code", "description": "The currency code associated with the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of this allocation in the list of discount allocations applied to an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "created_at": 1754595384.2676435, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_application": {"database": "postgres", "schema": "public", "name": "discount_application", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_application", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_application"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_application_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount applications, which define how discounts were applied to an order or shipping line. This includes metadata like allocation method, target type, and value type.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The allocation method used to apply the discount. Valid values include `each` (the discount is applied to each entitled item) and `across` (the discount is applied across all entitled items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Specifies whether the discount applies to all items (`all`) or only entitled ones (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "Indicates whether the discount applies to `line_item` or `shipping_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "created_at": 1754595384.2682946, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_app": {"database": "postgres", "schema": "public", "name": "discount_code_app", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_app", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_app"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_app_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount codes created and managed through apps using Shopify Functions. These app-based discounts support advanced, dynamic behavior and custom targeting.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of times a discount applies on recurring purchases (subscriptions). 0 will apply infinitely. 1 will only apply to the first checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_count": {"name": "codes_count_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_precision": {"name": "codes_count_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "created_at": 1754595384.2689543, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_basic": {"database": "postgres", "schema": "public", "name": "discount_code_basic", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_basic", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_basic"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_basic_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing basic discount codes and their metadata. This includes usage limits, timeframes, eligible customers, combination rules, and tracked usage.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "Number of billing cycles the discount can be applied for (used for subscriptions).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is an exact number or an estimate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "created_at": 1754595384.2696688, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_bxgy": {"database": "postgres", "schema": "public", "name": "discount_code_bxgy", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_bxgy", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_bxgy"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_bxgy_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing Buy X Get Y discount codes, including conditions for what customers must buy, what they receive, and metadata such as usage, status, and combination eligibility.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "created_at": 1754595384.2703755, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_free_shipping": {"database": "postgres", "schema": "public", "name": "discount_code_free_shipping", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_free_shipping", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_free_shipping"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_free_shipping_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing free shipping discount codes and metadata, including subscription and one-time purchase applicability, eligible countries, usage limits, and combination rules.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles for which the discount can be applied, which is useful for subscription-based discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "created_at": 1754595384.2710543, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_redeem_code": {"database": "postgres", "schema": "public", "name": "discount_redeem_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_redeem_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_redeem_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_redeem_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each code is tied to a parent discount and may be created by an app or manually by a merchant.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This value is updated asynchronously and may not match real-time usage counts.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (usually an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount this redeem code is associated with (e.g., `discount_code_basic`, `discount_code_bxgy`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "created_at": 1754595384.2717001, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_tracking_info": {"database": "postgres", "schema": "public", "name": "fulfillment_tracking_info", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_tracking_info", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_tracking_info"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_tracking_info_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents tracking information associated with a fulfillment. Used by Shopify to generate clickable tracking numbers and delivery updates.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_id": {"name": "fulfillment_id", "description": "The unique identifier of the fulfillment this tracking info belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The name of the tracking company. For supported carriers, Shopify automatically builds tracking URLs and may update the shipment status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "Tracking number for the fulfillment. If a known tracking company is specified, or the number matches a known format, Shopify may auto-generate a tracking URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "url": {"name": "url", "description": "Direct URL to track the fulfillment. This is displayed in the Shopify admin and customer notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the tracking information associated with a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "created_at": 1754595384.2729926, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_visit": {"database": "postgres", "schema": "public", "name": "customer_visit", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_visit", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_visit"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_visit_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metadata about a customer's session visiting a Shopify store, including session, landing page, referrer, marketing campaign, and source attribution information. This data helps merchants analyze the effectiveness of marketing campaigns and customer engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "A globally-unique identifier for the customer visit session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order associated with the customer visit, if any.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of marketing tactic associated with the session. Possible values include: abandoned_cart, ad, affiliate, link, loyalty, message, newsletter, notification, post, retargeting, seo, storefront_app, transactional.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page": {"name": "landing_page", "description": "The URL of the first page the customer landed on for the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page_html": {"name": "landing_page_html", "description": "The landing page URL rendered as HTML with a hyperlink.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "occurred_at": {"name": "occurred_at", "description": "The timestamp when the customer's session occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_code": {"name": "referral_code", "description": "A marketing referral code captured from the landing URL. Supports query params like `ref`, `source`, or `r`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_info_html": {"name": "referral_info_html", "description": "Referral info rendered as HTML with URLs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referrer_url": {"name": "referrer_url", "description": "The referring webpage where the customer clicked a link to arrive at the store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The origin of the customer's visit, such as a platform (e.g., Facebook, Google), a QR code, direct, or other attribution channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_description": {"name": "source_description", "description": "A more descriptive label for the visit source; used primarily for the first or last session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_type": {"name": "source_type", "description": "The marketing tactic type, such as ad, seo, newsletter, etc.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_campaign": {"name": "utm_parameters_campaign", "description": "The name of the marketing campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_content": {"name": "utm_parameters_content", "description": "Identifies specific content within a campaign, used to differentiate similar links.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_medium": {"name": "utm_parameters_medium", "description": "The medium of the campaign (e.g., cpc, banner, email).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_source": {"name": "utm_parameters_source", "description": "The traffic source for the campaign (e.g., google, newsletter).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_term": {"name": "utm_parameters_term", "description": "Search terms associated with paid campaigns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "created_at": 1754595384.273658, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_order_line_item": {"database": "postgres", "schema": "public", "name": "fulfillment_order_line_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_order_line_item", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_order_line_item"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_order_line_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Links a fulfillment order to specific items that require fulfillment. Contains detailed product information, quantity tracking, variant metadata, and shipping requirements. This is a core entity for determining which products and how many units are involved in a given fulfillment process.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_order_id": {"name": "fulfillment_order_id", "description": "The identifier of the fulfillment order that this line item is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for this fulfillment order line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "Alt text describing the image associated with the line item's variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "The height in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "The unique identifier for the variant image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The url of the variant image used in this fulfillment line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "The width in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The identifier of the inventory item being fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_item_id": {"name": "order_line_item_id", "description": "The identifier of the original order line item linked to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_title": {"name": "product_title", "description": "The title of the product at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The identifier of the product variant associated with this fulfillment item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remaining_quantity": {"name": "remaining_quantity", "description": "The number of units remaining to be fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Indicates whether physical shipping is required for this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The SKU of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "The total number of units allocated to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The vendor of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "created_at": 1754595384.2749796, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_address": {"database": "postgres", "schema": "public", "name": "customer_address", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_address", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_address"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a customer's mailing address and includes additional geographic metadata.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer to whom this address belongs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the customer address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The first line of the address (e.g., street address or PO Box).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The second line of the address (e.g., apartment, suite, or unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The name of the city, district, village, or town for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The company or organization associated with the customer at this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The full country name for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter ISO country code for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_default": {"name": "is_default", "description": "Indicates if this address is the default shipping address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The full name of the customer, derived from first and last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer\u2019s phone number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The name of the region, state, or province for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The standardized zone or province code for the region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code of the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "validation_result_summary": {"name": "validation_result_summary", "description": "A summary of address validation results (e.g., match confidence or status).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The timezone associated with the address, if available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "coordinates_validated": {"name": "coordinates_validated", "description": "Indicates whether the latitude and longitude coordinates were validated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "created_at": 1754595384.2756975, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.722096, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7225502, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7228088, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7230349, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7232785, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\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 when 'm' then 'MATERIALIZED 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 where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- 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', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\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{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7252274, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7259321, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7269344, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.727206, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.731494, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7326157, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7332623, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7338831, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7348087, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7356565, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7360017, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7366848, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7374601, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.739046, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7394454, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7400599, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.740605, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7414682, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n {% if relation.type == 'materialized_view' -%}\n {% set relation_type = \"materialized view\" %}\n {%- else -%}\n {%- set relation_type = relation.type -%}\n {%- endif -%}\n comment on {{ relation_type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7422352, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.743401, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7438061, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.744042, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7444024, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.744692, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n update {{ target }}\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }}::text = {{ target }}.{{ columns.dbt_scd_id }}::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n {% if config.get(\"dbt_valid_to_current\") %}\n and ({{ target }}.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }} or {{ target }}.{{ columns.dbt_valid_to }} is null);\n {% else %}\n and {{ target }}.{{ columns.dbt_valid_to }} is null;\n {% endif %}\n\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7470975, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7479844, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_microbatch_sql": {"name": "postgres__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_microbatch_sql", "macro_sql": "{% macro postgres__get_incremental_microbatch_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"dbt-postgres 'microbatch' requires a `unique_key` config\") }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_merge_sql", "macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7486587, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.749451, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7497482, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7507577, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.754673, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.755117, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7560768, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7563915, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7567291, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.757931, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7582576, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}{{ ';' if not loop.last else \"\" }}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7590716, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7596881, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7600389, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7611284, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }}\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\t{{ ';' if not loop.last else \"\" }}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7623425, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config.model) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7629197, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7632263, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7635088, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7638462, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7648592, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.765442, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7660325, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7666414, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7683063, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7686925, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7689774, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.769278, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7695606, "supported_languages": null}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7713497, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7732637, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7737286, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation.render() %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7747126, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.775087, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.775374, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7756557, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7758906, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.776237, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7764747, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7774224, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7777877, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7801647, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation.render())) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7852209, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n {% do create_indexes(intermediate_relation) %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7893307, "supported_languages": ["sql"]}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7933934, "supported_languages": ["sql"]}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7963758, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7971308, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.7976432, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation.render() ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation.render() ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8002172, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8006682, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8019426, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.80316, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8036325, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8039978, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8045807, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8049521, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8055317, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.805893, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8064167, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8068998, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.807255, "supported_languages": null}, "macro.dbt.get_incremental_microbatch_sql": {"name": "get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_microbatch_sql", "macro_sql": "{% macro get_incremental_microbatch_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_microbatch_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_microbatch_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8076606, "supported_languages": null}, "macro.dbt.default__get_incremental_microbatch_sql": {"name": "default__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_microbatch_sql", "macro_sql": "{% macro default__get_incremental_microbatch_sql(arg_dict) %}\n\n {{ exceptions.raise_not_implemented('microbatch materialization strategy not implemented for adapter ' + adapter.type()) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.808023, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8086004, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8101537, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8112648, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8125594, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8130186, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8144517, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8164778, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set source_unique_key = (\"DBT_INTERNAL_SOURCE.\" ~ unique_key) | trim %}\n\t {% set target_unique_key = (\"DBT_INTERNAL_DEST.\" ~ unique_key) | trim %}\n\t {% set unique_key_match = equals(source_unique_key, target_unique_key) | trim %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.819959, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8204918, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is string %}\n {% set unique_key = [unique_key] %}\n {% endif %}\n\n {%- set unique_key_str = unique_key|join(', ') -%}\n\n delete from {{ target }} as DBT_INTERNAL_DEST\n where ({{ unique_key_str }}) in (\n select distinct {{ unique_key_str }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8219197, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.82245, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8236918, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% set relation_for_indexes = target_relation %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set relation_for_indexes = intermediate_relation %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% set relation_for_indexes = temp_relation %}\n {% set contract_config = config.get('contract') %}\n {% if not contract_config or not contract_config.enforced %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {% endif %}\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_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(relation_for_indexes) %}\n {% endif %}\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 {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.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": 1754595374.8321044, "supported_languages": ["sql"]}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8332987, "supported_languages": null}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8355172, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8378663, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.840203, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.841852, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.842367, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8426101, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation.render() ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% if target_relation.database == defer_relation.database and\n target_relation.schema == defer_relation.schema and\n target_relation.identifier == defer_relation.identifier %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation.render()) }}\n {% else %}\n {% call statement('main') %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endcall %}\n {% endif %}\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8475728, "supported_languages": ["sql"]}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8481917, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation.render() }} clone {{ defer_relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8485389, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.852452, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8527918, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8532538, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set primary_key = config.get('unique_key') %}\n {% set updated_at = config.get('updated_at') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\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 }}.{{ columns.dbt_valid_from }} < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8551288, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8554804, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8558173, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.858595, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set check_cols_config = config.get('check_cols') %}\n {% set primary_key = config.get('unique_key') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set updated_at = config.get('updated_at') or 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_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8615122, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8623486, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n merge into {{ target.render() }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }} = DBT_INTERNAL_DEST.{{ columns.dbt_scd_id }}\n\n when matched\n {% if config.get(\"dbt_valid_to_current\") %}\n\t{% set source_unique_key = (\"DBT_INTERNAL_DEST.\" ~ columns.dbt_valid_to) | trim %}\n\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\tand ({{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null)\n\n {% else %}\n and DBT_INTERNAL_DEST.{{ columns.dbt_valid_to }} is null\n {% endif %}\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8639557, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8677094, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation.render() }} add column {{ adapter.quote(column.name) }} {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8683763, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8687136, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8689005, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.869208, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8694534, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.869859, "supported_languages": null}, "macro.dbt.get_snapshot_table_column_names": {"name": "get_snapshot_table_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_snapshot_table_column_names", "macro_sql": "{% macro get_snapshot_table_column_names() %}\n {{ return({'dbt_valid_to': 'dbt_valid_to', 'dbt_valid_from': 'dbt_valid_from', 'dbt_scd_id': 'dbt_scd_id', 'dbt_updated_at': 'dbt_updated_at', 'dbt_is_deleted': 'dbt_is_deleted'}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8703635, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n {% if strategy.hard_deletes == 'new_record' %}\n {% set new_scd_id = snapshot_hash_arguments([columns.dbt_scd_id, snapshot_get_time()]) %}\n {% endif %}\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }}\n from {{ target_relation }}\n where\n {% if config.get('dbt_valid_to_current') %}\n\t\t{% set source_unique_key = columns.dbt_valid_to | trim %}\n\t\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\n\t\t{# The exact equals semantics between NULL values depends on the current behavior flag set. Also, update records if the source field is null #}\n ( {{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null )\n {% else %}\n {{ columns.dbt_valid_to }} is null\n {% endif %}\n\n ),\n\n insertions_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }},\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }}\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_to }}\n\n from snapshot_query\n ),\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n\n deletes_source_data as (\n\n select *, {{ unique_key_fields(strategy.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 {%- if strategy.hard_deletes == 'new_record' -%}\n ,'False' as {{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from insertions_source_data as source_data\n left outer join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"snapshotted_data\") }}\n or ({{ unique_key_is_not_null(strategy.unique_key, \"snapshotted_data\") }} and (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from updates_source_data as source_data\n join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n )\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n ,\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_to }},\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n and not (\n --avoid updating the record's valid_to if the latest entry is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n {%- endif %}\n )\n {%- endif %}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n {% set snapshotted_cols = get_list_of_column_names(get_columns_in_relation(target_relation)) %}\n {% set source_sql_cols = get_column_schema_from_query(source_sql) %}\n ,\n deletion_records as (\n\n select\n 'insert' as dbt_change_type,\n {#\n If a column has been added to the source it won't yet exist in the\n snapshotted table so we insert a null value as a placeholder for the column.\n #}\n {%- for col in source_sql_cols -%}\n {%- if col.name in snapshotted_cols -%}\n snapshotted_data.{{ adapter.quote(col.column) }},\n {%- else -%}\n NULL as {{ adapter.quote(col.column) }},\n {%- endif -%}\n {% endfor -%}\n {%- if strategy.unique_key | is_list -%}\n {%- for key in strategy.unique_key -%}\n snapshotted_data.{{ key }} as dbt_unique_key_{{ loop.index }},\n {% endfor -%}\n {%- else -%}\n snapshotted_data.dbt_unique_key as dbt_unique_key,\n {% endif -%}\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n snapshotted_data.{{ columns.dbt_valid_to }} as {{ columns.dbt_valid_to }},\n {{ new_scd_id }} as {{ columns.dbt_scd_id }},\n 'True' as {{ columns.dbt_is_deleted }}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n and not (\n --avoid inserting a new record if the latest one is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletes\n {%- endif %}\n {%- if strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletion_records\n {%- endif %}\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments", "macro.dbt.snapshot_get_time", "macro.dbt.unique_key_fields", "macro.dbt.equals", "macro.dbt.get_dbt_valid_to_current", "macro.dbt.unique_key_join_on", "macro.dbt.unique_key_is_null", "macro.dbt.unique_key_is_not_null", "macro.dbt.get_list_of_column_names", "macro.dbt.get_columns_in_relation", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8785088, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8789268, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n\n select *,\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , 'False' as {{ columns.dbt_is_deleted }}\n {% endif -%}\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.get_dbt_valid_to_current"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8799446, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8807883, "supported_languages": null}, "macro.dbt.get_updated_at_column_data_type": {"name": "get_updated_at_column_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_updated_at_column_data_type", "macro_sql": "{% macro get_updated_at_column_data_type(snapshot_sql) %}\n {% set snapshot_sql_column_schema = get_column_schema_from_query(snapshot_sql) %}\n {% set dbt_updated_at_data_type = null %}\n {% set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {% set ns.dbt_updated_at_data_type = null -%}\n {% for column in snapshot_sql_column_schema %}\n {% if ((column.column == 'dbt_updated_at') or (column.column == 'DBT_UPDATED_AT')) %}\n {% set ns.dbt_updated_at_data_type = column.dtype %}\n {% endif %}\n {% endfor %}\n {{ return(ns.dbt_updated_at_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8819532, "supported_languages": null}, "macro.dbt.check_time_data_types": {"name": "check_time_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.check_time_data_types", "macro_sql": "{% macro check_time_data_types(sql) %}\n {% set dbt_updated_at_data_type = get_updated_at_column_data_type(sql) %}\n {% set snapshot_get_time_data_type = get_snapshot_get_time_data_type() %}\n {% if snapshot_get_time_data_type is not none and dbt_updated_at_data_type is not none and snapshot_get_time_data_type != dbt_updated_at_data_type %}\n {% if exceptions.warn_snapshot_timestamp_data_types %}\n {{ exceptions.warn_snapshot_timestamp_data_types(snapshot_get_time_data_type, dbt_updated_at_data_type) }}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_updated_at_column_data_type", "macro.dbt.get_snapshot_get_time_data_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8828058, "supported_languages": null}, "macro.dbt.get_dbt_valid_to_current": {"name": "get_dbt_valid_to_current", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_dbt_valid_to_current", "macro_sql": "{% macro get_dbt_valid_to_current(strategy, columns) %}\n {% set dbt_valid_to_current = config.get('dbt_valid_to_current') or \"null\" %}\n coalesce(nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}), {{dbt_valid_to_current}})\n as {{ columns.dbt_valid_to }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.883374, "supported_languages": null}, "macro.dbt.unique_key_fields": {"name": "unique_key_fields", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_fields", "macro_sql": "{% macro unique_key_fields(unique_key) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n {{ key }} as dbt_unique_key_{{ loop.index }}\n {%- if not loop.last %} , {%- endif %}\n {% endfor %}\n {% else %}\n {{ unique_key }} as dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8840506, "supported_languages": null}, "macro.dbt.unique_key_join_on": {"name": "unique_key_join_on", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_join_on", "macro_sql": "{% macro unique_key_join_on(unique_key, identifier, from_identifier) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n\t {% set source_unique_key = (identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {% set target_unique_key = (from_identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {{ equals(source_unique_key, target_unique_key) }}\n {%- if not loop.last %} and {%- endif %}\n {% endfor %}\n {% else %}\n {{ identifier }}.dbt_unique_key = {{ from_identifier }}.dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8851862, "supported_languages": null}, "macro.dbt.unique_key_is_null": {"name": "unique_key_is_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_null", "macro_sql": "{% macro unique_key_is_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is null\n {% else %}\n {{ identifier }}.dbt_unique_key is null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8856125, "supported_languages": null}, "macro.dbt.unique_key_is_not_null": {"name": "unique_key_is_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_not_null", "macro_sql": "{% macro unique_key_is_not_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is not null\n {% else %}\n {{ identifier }}.dbt_unique_key is not null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.886029, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n\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 {# The model['config'] parameter below is no longer used, but passing anyway for compatibility #}\n {# It was a dictionary of config, instead of the config object from the context #}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", model['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 build_or_select_sql = build_sql %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\n\n {{ adapter.assert_valid_snapshot_target_given_strategy(target_relation, columns, strategy) }}\n\n {% set build_or_select_sql = snapshot_staging_table(strategy, sql, target_relation) %}\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 remove_columns = ['dbt_change_type', 'DBT_CHANGE_TYPE', 'dbt_unique_key', 'DBT_UNIQUE_KEY'] %}\n {% if unique_key | is_list %}\n {% for key in strategy.unique_key %}\n {{ remove_columns.append('dbt_unique_key_' + loop.index|string) }}\n {{ remove_columns.append('DBT_UNIQUE_KEY_' + loop.index|string) }}\n {% endfor %}\n {% endif %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'in', remove_columns)\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', 'in', remove_columns)\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\n {{ check_time_data_types(build_or_select_sql) }}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_staging_table", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.check_time_data_types", "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": 1754595374.8940046, "supported_languages": ["sql"]}, "macro.dbt.materialization_unit_default": {"name": "materialization_unit_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/unit.sql", "original_file_path": "macros/materializations/tests/unit.sql", "unique_id": "macro.dbt.materialization_unit_default", "macro_sql": "{%- materialization unit, default -%}\n\n {% set relations = [] %}\n\n {% set expected_rows = config.get('expected_rows') %}\n {% set expected_sql = config.get('expected_sql') %}\n {% set tested_expected_column_names = expected_rows[0].keys() if (expected_rows | length ) > 0 else get_columns_in_query(sql) %} %}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {% do run_query(get_create_table_as_sql(True, temp_relation, get_empty_subquery_sql(sql))) %}\n {%- set columns_in_relation = adapter.get_columns_in_relation(temp_relation) -%}\n {%- set column_name_to_data_types = {} -%}\n {%- for column in columns_in_relation -%}\n {%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n {%- endfor -%}\n\n {% if not expected_sql %}\n {% set expected_sql = get_expected_sql(expected_rows, column_name_to_data_types) %}\n {% endif %}\n {% set unit_test_sql = get_unit_test_sql(sql, expected_sql, tested_expected_column_names) %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ unit_test_sql }}\n\n {%- endcall %}\n\n {% do adapter.drop_relation(temp_relation) %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt.make_temp_relation", "macro.dbt.run_query", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_empty_subquery_sql", "macro.dbt.get_expected_sql", "macro.dbt.get_unit_test_sql", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.8970432, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n {% set limit = config.get('limit') %}\n\n {% set sql_with_limit %}\n {{ get_limit_subquery_sql(sql, limit) }}\n {% endset %}\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\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql_with_limit) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {# Since the test failures have already been saved to the database, reuse that result rather than querying again #}\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_with_limit %}\n\n {% endif %}\n\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 {# The limit has already been included above, and we do not want to duplicate it again. We also want to be safe for macro overrides treating `limit` as a required parameter. #}\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit=none)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9014983, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.902543, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.903137, "supported_languages": null}, "macro.dbt.get_unit_test_sql": {"name": "get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_unit_test_sql", "macro_sql": "{% macro get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n {{ adapter.dispatch('get_unit_test_sql', 'dbt')(main_sql, expected_fixture_sql, expected_column_names) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_unit_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9035583, "supported_languages": null}, "macro.dbt.default__get_unit_test_sql": {"name": "default__get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_unit_test_sql", "macro_sql": "{% macro default__get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n-- Build actual result given inputs\nwith dbt_internal_unit_test_actual as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%},{% endif %}{%- endfor -%}, {{ dbt.string_literal(\"actual\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ main_sql }}\n ) _dbt_internal_unit_test_actual\n),\n-- Build expected result\ndbt_internal_unit_test_expected as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%}, {% endif %}{%- endfor -%}, {{ dbt.string_literal(\"expected\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ expected_fixture_sql }}\n ) _dbt_internal_unit_test_expected\n)\n-- Union actual and expected results\nselect * from dbt_internal_unit_test_actual\nunion all\nselect * from dbt_internal_unit_test_expected\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9047415, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.905369, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9061177, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9065912, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9075909, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9081573, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9087481, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.909607, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9099107, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9102163, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9104373, "supported_languages": null}, "macro.dbt.get_snapshot_get_time_data_type": {"name": "get_snapshot_get_time_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.get_snapshot_get_time_data_type", "macro_sql": "{% macro get_snapshot_get_time_data_type() %}\n {% set snapshot_time = adapter.dispatch('snapshot_get_time', 'dbt')() %}\n {% set time_data_type_sql = 'select ' ~ snapshot_time ~ ' as dbt_snapshot_time' %}\n {% set snapshot_time_column_schema = get_column_schema_from_query(time_data_type_sql) %}\n {% set time_data_type = snapshot_time_column_schema[0].dtype %}\n {{ return(time_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt_postgres.postgres__snapshot_get_time", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9116845, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9120324, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9122107, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9125395, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9128659, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9134812, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.913847, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.914163, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9145656, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9160693, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9165976, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9169972, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9175224, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9178915, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9182286, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9185822, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.91906, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9194753, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9200583, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9205663, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.920888, "supported_languages": null}, "macro.dbt.get_catalog_for_single_relation": {"name": "get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_for_single_relation", "macro_sql": "{% macro get_catalog_for_single_relation(relation) %}\n {{ return(adapter.dispatch('get_catalog_for_single_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_catalog_for_single_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9212637, "supported_languages": null}, "macro.dbt.default__get_catalog_for_single_relation": {"name": "default__get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_for_single_relation", "macro_sql": "{% macro default__get_catalog_for_single_relation(relation) %}\n {{ exceptions.raise_not_implemented(\n 'get_catalog_for_single_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9215832, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9219193, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9222388, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.922644, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9230103, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9238336, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9241872, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9246016, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9249444, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9254837, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9264135, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9269514, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.927425, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.929519, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9298353, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.930453, "supported_languages": null}, "macro.dbt.get_list_of_column_names": {"name": "get_list_of_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_list_of_column_names", "macro_sql": "\n\n{%- macro get_list_of_column_names(columns) -%}\n {% set col_names = [] %}\n {% for col in columns %}\n {% do col_names.append(col.name) %}\n {% endfor %}\n {{ return(col_names) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9311519, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9315999, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9320037, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9323723, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n {{ cast('null', col['data_type']) }} as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9347463, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9354558, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9358234, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9365098, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9369488, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation.render() }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation.render() }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation.render() }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation.render() }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.938234, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9387288, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation.render() }}\n\n {% for column in add_columns %}\n add column {{ column.quoted }} {{ 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.quoted }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9402921, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header is not none -%}\n {{ sql_header }}\n {%- endif %}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9410279, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "\n{%- macro get_limit_subquery_sql(sql, limit) -%}\n {{ adapter.dispatch('get_limit_sql', 'dbt')(sql, limit) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_limit_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9414103, "supported_languages": null}, "macro.dbt.default__get_limit_sql": {"name": "default__get_limit_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_sql", "macro_sql": "{% macro default__get_limit_sql(sql, limit) %}\n {{ sql }}\n {% if limit is not none %}\n limit {{ limit }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9418035, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9430609, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9434054, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {#-- This ensures microbatch batches get unique temp relations to avoid clobbering --#}\n {% if suffix == '__dbt_tmp' and model.batch %}\n {% set suffix = suffix ~ '_' ~ model.batch.id %}\n {% endif %}\n\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9441388, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.944854, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.945347, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9459624, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.946335, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation.render() }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9466937, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9471629, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9482596, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9487221, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9490097, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9499266, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9502203, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9505467, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9513326, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9516988, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9519813, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9523146, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9525716, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9534233, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9542384, "supported_languages": null}, "macro.dbt.collect_freshness_custom_sql": {"name": "collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness_custom_sql", "macro_sql": "{% macro collect_freshness_custom_sql(source, loaded_at_query) %}\n {{ return(adapter.dispatch('collect_freshness_custom_sql', 'dbt')(source, loaded_at_query))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness_custom_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9547737, "supported_languages": null}, "macro.dbt.default__collect_freshness_custom_sql": {"name": "default__collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness_custom_sql", "macro_sql": "{% macro default__collect_freshness_custom_sql(source, loaded_at_query) %}\n {% call statement('collect_freshness_custom_sql', fetch_result=True, auto_begin=False) -%}\n with source_query as (\n {{ loaded_at_query }}\n )\n select\n (select * from source_query) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n {% endcall %}\n {{ return(load_result('collect_freshness_custom_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.955408, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.957425, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9576683, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9579935, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9582405, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.958917, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9592974, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.959545, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9599817, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation.render() }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9603996, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9609046, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation.render() }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9613364, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.961781, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9630713, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9634511, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9639308, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9643993, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation.render() ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9667377, "supported_languages": null}, "macro.dbt.get_fixture_sql": {"name": "get_fixture_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_fixture_sql", "macro_sql": "{% macro get_fixture_sql(rows, column_name_to_data_types) %}\n-- Fixture for {{ model.name }}\n{% set default_row = {} %}\n\n{%- if not column_name_to_data_types -%}\n{#-- Use defer_relation IFF it is available in the manifest and 'this' is missing from the database --#}\n{%- set this_or_defer_relation = defer_relation if (defer_relation and not load_relation(this)) else this -%}\n{%- set columns_in_relation = adapter.get_columns_in_relation(this_or_defer_relation) -%}\n\n{%- set column_name_to_data_types = {} -%}\n{%- for column in columns_in_relation -%}\n{#-- This needs to be a case-insensitive comparison --#}\n{%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n{%- endfor -%}\n{%- endif -%}\n\n{%- if not column_name_to_data_types -%}\n {{ exceptions.raise_compiler_error(\"Not able to get columns for unit test '\" ~ model.name ~ \"' from relation \" ~ this ~ \" because the relation doesn't exist\") }}\n{%- endif -%}\n\n{%- for column_name, column_type in column_name_to_data_types.items() -%}\n {%- do default_row.update({column_name: (safe_cast(\"null\", column_type) | trim )}) -%}\n{%- endfor -%}\n\n{{ validate_fixture_rows(rows, row_number) }}\n\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\n{%- set default_row_copy = default_row.copy() -%}\n{%- do default_row_copy.update(formatted_row) -%}\nselect\n{%- for column_name, column_value in default_row_copy.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n\n{%- if (rows | length) == 0 -%}\n select\n {%- for column_name, column_value in default_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%},{%- endif %}\n {%- endfor %}\n limit 0\n{%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.safe_cast", "macro.dbt.validate_fixture_rows", "macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.971357, "supported_languages": null}, "macro.dbt.get_expected_sql": {"name": "get_expected_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_expected_sql", "macro_sql": "{% macro get_expected_sql(rows, column_name_to_data_types) %}\n\n{%- if (rows | length) == 0 -%}\n select * from dbt_internal_unit_test_actual\n limit 0\n{%- else -%}\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\nselect\n{%- for column_name, column_value in formatted_row.items() %} {{ column_value }} as {{ column_name }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9724624, "supported_languages": null}, "macro.dbt.format_row": {"name": "format_row", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.format_row", "macro_sql": "\n\n{%- macro format_row(row, column_name_to_data_types) -%}\n {#-- generate case-insensitive formatted row --#}\n {% set formatted_row = {} %}\n {%- for column_name, column_value in row.items() -%}\n {% set column_name = column_name|lower %}\n\n {%- if column_name not in column_name_to_data_types %}\n {#-- if user-provided row contains column name that relation does not contain, raise an error --#}\n {% set fixture_name = \"expected output\" if model.resource_type == 'unit_test' else (\"'\" ~ model.name ~ \"'\") %}\n {{ exceptions.raise_compiler_error(\n \"Invalid column name: '\" ~ column_name ~ \"' in unit test fixture for \" ~ fixture_name ~ \".\"\n \"\\nAccepted columns for \" ~ fixture_name ~ \" are: \" ~ (column_name_to_data_types.keys()|list)\n ) }}\n {%- endif -%}\n\n {%- set column_type = column_name_to_data_types[column_name] %}\n\n {#-- sanitize column_value: wrap yaml strings in quotes, apply cast --#}\n {%- set column_value_clean = column_value -%}\n {%- if column_value is string -%}\n {%- set column_value_clean = dbt.string_literal(dbt.escape_single_quotes(column_value)) -%}\n {%- elif column_value is none -%}\n {%- set column_value_clean = 'null' -%}\n {%- endif -%}\n\n {%- set row_update = {column_name: safe_cast(column_value_clean, column_type) } -%}\n {%- do formatted_row.update(row_update) -%}\n {%- endfor -%}\n {{ return(formatted_row) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.string_literal", "macro.dbt.escape_single_quotes", "macro.dbt.safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9746335, "supported_languages": null}, "macro.dbt.validate_fixture_rows": {"name": "validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.validate_fixture_rows", "macro_sql": "{%- macro validate_fixture_rows(rows, row_number) -%}\n {{ return(adapter.dispatch('validate_fixture_rows', 'dbt')(rows, row_number)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__validate_fixture_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.975053, "supported_languages": null}, "macro.dbt.default__validate_fixture_rows": {"name": "default__validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.default__validate_fixture_rows", "macro_sql": "{%- macro default__validate_fixture_rows(rows, row_number) -%}\n {# This is an abstract method for adapter overrides as needed #}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9752831, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.976605, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9769135, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n\n {#\n We want to get the string of the returned relation by calling .render() in order to skip sample/empty\n mode rendering logic. However, people override the default ref macro, and often return a string instead\n of a relation (like the ref macro does by default). Thus, to make sure we dont blow things up, we have\n to ensure the resolved relation has a .render() method.\n #}\n {%- if resolved.render is defined and resolved.render is callable -%}\n {%- set resolved = resolved.render() -%}\n {%- endif -%}\n\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9787831, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9795911, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9807153, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9816177, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9817808, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.98319, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9855888, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9870324, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9874969, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.990016, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.991151, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9917521, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9924536, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.992959, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9937844, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.994324, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9948819, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9955935, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.996348, "supported_languages": null}, "macro.dbt.equals": {"name": "equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.equals", "macro_sql": "{% macro equals(expr1, expr2) %}\n {{ return(adapter.dispatch('equals', 'dbt') (expr1, expr2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.996953, "supported_languages": null}, "macro.dbt.default__equals": {"name": "default__equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.default__equals", "macro_sql": "{% macro default__equals(expr1, expr2) -%}\n{%- if adapter.behavior.enable_truthy_nulls_equals_macro.no_warn %}\n case when (({{ expr1 }} = {{ expr2 }}) or ({{ expr1 }} is null and {{ expr2 }} is null))\n then 0\n else 1\n end = 0\n{%- else -%}\n ({{ expr1 }} = {{ expr2 }})\n{%- endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9975603, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9981036, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9983993, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9988306, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9989924, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9995003, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595374.9997227, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0005686, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0010452, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.001764, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0020885, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0025387, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0030055, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0032349, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0036638, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0038245, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0047324, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.005894, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0063553, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0070438, "supported_languages": null}, "macro.dbt.cast": {"name": "cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.cast", "macro_sql": "{% macro cast(field, type) %}\n {{ return(adapter.dispatch('cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.007603, "supported_languages": null}, "macro.dbt.default__cast": {"name": "default__cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.default__cast", "macro_sql": "{% macro default__cast(field, type) %}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0078661, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.008689, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0095015, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0098848, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.01103, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0115871, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0118575, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.012355, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0125725, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0130484, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0133815, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0146315, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0149338, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0152829, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0155811, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0158956, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0162039, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0165315, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0168772, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0172107, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0175128, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0178275, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0182493, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0185666, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0188472, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0193408, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0196006, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0201137, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0203981, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0209064, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.021203, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0216765, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.021896, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0227458, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0235765, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0241277, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0244248, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0250196, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0253644, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0259428, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0262847, "supported_languages": null}, "macro.dbt.date": {"name": "date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.date", "macro_sql": "{% macro date(year, month, day) %}\n {{ return(adapter.dispatch('date', 'dbt') (year, month, day)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0268745, "supported_languages": null}, "macro.dbt.default__date": {"name": "default__date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.default__date", "macro_sql": "{% macro default__date(year, month, day) -%}\n {%- set dt = modules.datetime.date(year, month, day) -%}\n {%- set iso_8601_formatted_date = dt.strftime('%Y-%m-%d') -%}\n to_date('{{ iso_8601_formatted_date }}', 'YYYY-MM-DD')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.02756, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0280964, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0283883, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0289109, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0291994, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0297768, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0301058, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0307064, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.031223, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0315185, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0319848, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.032316, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.033137, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation.render() }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.033917, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0342925, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.034687, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0350657, "supported_languages": null}, "macro.dbt.drop_schema_named": {"name": "drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.drop_schema_named", "macro_sql": "{% macro drop_schema_named(schema_name) %}\n {{ return(adapter.dispatch('drop_schema_named', 'dbt') (schema_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_schema_named"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0355823, "supported_languages": null}, "macro.dbt.default__drop_schema_named": {"name": "default__drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.default__drop_schema_named", "macro_sql": "{% macro default__drop_schema_named(schema_name) %}\n {% set schema_relation = api.Relation.create(schema=schema_name) %}\n {{ adapter.drop_schema(schema_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0361164, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0368373, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0377157, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0383167, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0388262, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0397081, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.040566, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.040962, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation.render() }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0415647, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0421472, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0425649, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0431309, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.043548, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0441852, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0446813, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0456743, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation.type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0484557, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{- adapter.dispatch('drop_table', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0489771, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0492537, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.050403, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0507648, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0516093, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0529385, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0538437, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0542152, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0545642, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.055065, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0553715, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0558643, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0561562, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{- adapter.dispatch('drop_materialized_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0566533, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0569034, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0574276, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.057717, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.0582335, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1105056, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1118164, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.112253, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1128309, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1131399, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1137838, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1140652, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.114637, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1149354, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{- adapter.dispatch('drop_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1154673, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1157339, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1166208, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1170287, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1174498, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation.render() }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.118364, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1188948, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1193445, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1203272, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1206264, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1227732, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.123202, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation.render() ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.123686, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1250768, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1253414, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1264195, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.126764, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1270506, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1295488, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1304348, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1310914, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1319435, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1324441, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1330252, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.133602, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1344018, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.135854, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1364138, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1369116, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1375551, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1378422, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.138113, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.138399, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1398826, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1405993, "supported_languages": null}, "macro.dbt_utils.redshift__get_tables_by_pattern_sql": {"name": "redshift__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.redshift__get_tables_by_pattern_sql", "macro_sql": "{% macro redshift__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% set sql %}\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from \"{{ database }}\".\"information_schema\".\"tables\"\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n union all\n select distinct\n schemaname as {{ adapter.quote('table_schema') }},\n tablename as {{ adapter.quote('table_name') }},\n 'external' as {{ adapter.quote('table_type') }}\n from svv_external_tables\n where redshift_database_name = '{{ database }}'\n and schemaname ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n {% endset %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1420534, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1434515, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.144425, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1450577, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.146114, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.14686, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1474242, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1479514, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1482403, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1491358, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1503115, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1507638, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1514962, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1523485, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1531348, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1535223, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.154535, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1551611, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.156247, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, quote_identifiers)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1576831, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n {%- set current_col_name = adapter.quote(col.column) if quote_identifiers else col.column -%}\n select\n {%- for exclude_col in exclude %}\n {{ adapter.quote(exclude_col) if quote_identifiers else exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ adapter.quote(field_name) if quote_identifiers else field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(current_col_name) }}\n {% else %}\n {{ current_col_name }}\n {% endif %}\n as {{ cast_to }}) as {{ adapter.quote(value_name) if quote_identifiers else value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1614182, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1623647, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.163978, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1648414, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.165388, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1664937, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.168043, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.169119, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1695597, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }} as tt\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1698997, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1703043, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1706562, "supported_languages": null}, "macro.dbt_utils.databricks__deduplicate": {"name": "databricks__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.databricks__deduplicate", "macro_sql": "\n{%- macro databricks__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1709888, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1713462, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1719992, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.172476, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.173118, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1744354, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1750326, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1757061, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.177232, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.178859, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1809323, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1875713, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1884556, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1893468, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1897256, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1904926, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.191891, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1924627, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1931264, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.193815, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.195032, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.1959312, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.197581, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.198941, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2017817, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2031212, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.205974, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2065802, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2072048, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2077668, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.208632, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2092755, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2104928, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2109835, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2113392, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2118657, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2122533, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2127395, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2130609, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{% if not string %}\n{{ return('') }}\n{% endif %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2144792, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2159545, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2168255, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.217708, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.218697, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2197132, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.221496, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2225828, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2246647, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.225399, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2261841, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2270684, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n {% if group_by_columns|length() == 0 %}\n where {{ column_name }} is not null\n limit 1\n {% endif %}\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2288332, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.229899, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2318525, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns, exclude_columns, precision)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2339747, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n\n{%- if compare_columns and exclude_columns -%}\n {{ exceptions.raise_compiler_error(\"Both a compare and an ignore list were provided to the `equality` macro. Only one is allowed\") }}\n{%- endif -%}\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\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{# Ensure there are no extra columns in the compare_model vs model #}\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- do dbt_utils._is_ephemeral(compare_model, 'test_equality') -%}\n\n {%- set model_columns = adapter.get_columns_in_relation(model) -%}\n {%- set compare_model_columns = adapter.get_columns_in_relation(compare_model) -%}\n\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- set include_model_columns = [] %}\n {%- for column in model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n {%- for column in compare_model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_model_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns_set = set(include_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(include_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- else -%}\n {%- set compare_columns_set = set(model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(compare_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- endif -%}\n\n {% if compare_columns_set != compare_model_columns_set %}\n {{ exceptions.raise_compiler_error(compare_model ~\" has less columns than \" ~ model ~ \", please ensure they have the same columns or use the `compare_columns` or `exclude_columns` arguments to subset them.\") }}\n {% endif %}\n\n\n{% endif %}\n\n{%- if not precision -%}\n {%- if not compare_columns -%}\n {# \n You cannot get the columns in an ephemeral model (due to not existing in the information schema),\n so if the user does not provide an explicit list of columns we must error in the case it is ephemeral\n #}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model)-%}\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- for column in compare_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns = include_columns | map(attribute='quoted') %}\n {%- else -%} {# Compare columns provided #}\n {%- set compare_columns = compare_columns | map(attribute='quoted') %}\n {%- endif -%}\n {%- endif -%}\n\n {% set compare_cols_csv = compare_columns | join(', ') %}\n\n{% else %} {# Precision required #}\n {#-\n If rounding is required, we need to get the types, so it cannot be ephemeral even if they provide column names\n -#}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set columns = adapter.get_columns_in_relation(model) -%}\n\n {% set columns_list = [] %}\n {%- for col in columns -%}\n {%- if (\n (col.name|lower in compare_columns|map('lower') or not compare_columns) and\n (col.name|lower not in exclude_columns|map('lower') or not exclude_columns)\n ) -%}\n {# Databricks double type is not picked up by any number type checks in dbt #}\n {%- if col.is_float() or col.is_numeric() or col.data_type == 'double' -%}\n {# Cast is required due to postgres not having round for a double precision number #}\n {%- do columns_list.append('round(cast(' ~ col.quoted ~ ' as ' ~ dbt.type_numeric() ~ '),' ~ precision ~ ') as ' ~ col.quoted) -%}\n {%- else -%} {# Non-numeric type #}\n {%- do columns_list.append(col.quoted) -%}\n {%- endif -%}\n {% endif %}\n {%- endfor -%}\n\n {% set compare_cols_csv = columns_list | join(', ') %}\n\n{% endif %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_numeric", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.241531, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2430632, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2459574, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2468069, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as {{ dbt.type_numeric() }}) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.248454, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2493687, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.250014, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2508173, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2522373, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.253073, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2538526, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2545772, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2551968, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2561955, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2579494, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2587388, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.259421, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2601974, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2610993, "supported_languages": null}, "macro.shopify.shopify_lookback": {"name": "shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.shopify_lookback", "macro_sql": "{% macro shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n{{ adapter.dispatch('shopify_lookback', 'shopify') (from_date, datepart, interval, safety_date='2010-01-01') }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_lookback"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2618842, "supported_languages": null}, "macro.shopify.default__shopify_lookback": {"name": "default__shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.default__shopify_lookback", "macro_sql": "{% macro default__shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n {% set sql_statement %}\n select coalesce({{ from_date }}, {{ \"'\" ~ safety_date ~ \"'\" }})\n from {{ this }}\n {%- endset -%}\n\n {%- set result = dbt_utils.get_single_value(sql_statement) %}\n\n {{ dbt.dateadd(datepart=datepart, interval=-interval, from_date_or_timestamp=\"cast('\" ~ result ~ \"' as date)\") }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_single_value", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2627842, "supported_languages": null}, "macro.shopify.shopify_is_databricks_sql_warehouse": {"name": "shopify_is_databricks_sql_warehouse", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_is_databricks_sql_warehouse.sql", "original_file_path": "macros/shopify_is_databricks_sql_warehouse.sql", "unique_id": "macro.shopify.shopify_is_databricks_sql_warehouse", "macro_sql": "{% macro shopify_is_databricks_sql_warehouse() %}\n {% if target.type in ('databricks') %}\n {% set re = modules.re %}\n {% set path_match = target.http_path %}\n {% set regex_pattern = \"sql/.+/warehouses/\" %}\n {% set match_result = re.search(regex_pattern, path_match) %}\n {% if match_result %}\n {{ return(True) }}\n {% else %}\n {{ return(False) }}\n {% endif %}\n {% else %}\n {{ return(False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2641592, "supported_languages": null}, "macro.shopify.shopify_partition_by_cols": {"name": "shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.shopify_partition_by_cols", "macro_sql": "{% macro shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n\n{{ adapter.dispatch('shopify_partition_by_cols', 'shopify') (base_col, source_relation) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_partition_by_cols"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2648005, "supported_languages": null}, "macro.shopify.default__shopify_partition_by_cols": {"name": "default__shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.default__shopify_partition_by_cols", "macro_sql": "{% macro default__shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n {%- if var('shopify_union_schemas', false) or var('shopify_union_databases', false) -%}\n {{ base_col }}, {{ source_relation }}\n {%- else %}\n {{ base_col }}\n {%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2654047, "supported_languages": null}, "macro.shopify.get_metafields": {"name": "get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.get_metafields", "macro_sql": "{% macro get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n {{ return(adapter.dispatch('get_metafields', 'shopify')(source_object, reference_values, id_column, lookup_object, key_field, key_value, reference_field)) }} \n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__get_metafields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2667542, "supported_languages": null}, "macro.shopify.default__get_metafields": {"name": "default__get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.default__get_metafields", "macro_sql": "{% macro default__get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n\n{# Manually quote and join reference values #}\n{% set quoted_values = [] %}\n{% for value in reference_values %}\n {% do quoted_values.append(\"'\" ~ value | lower | trim ~ \"'\") %}\n{% endfor %}\n{% set reference_values_clause = quoted_values | join(\", \") %}\n\n{# Get the pivot fields dynamically based on the reference values #}\n{% set pivot_fields = dbt_utils.get_column_values(\n table=ref(lookup_object),\n column=key_field,\n where=\"lower(\" ~ reference_field ~ \") in (\" ~ reference_values_clause ~ \")\"\n) %}\n\n{% set source_columns = adapter.get_columns_in_relation(ref(source_object)) %}\n{% set source_column_count = source_columns | length %}\n\nwith source_table as (\n select *\n from {{ ref(source_object) }}\n)\n\n{% if pivot_fields is not none %},\nlookup_object as (\n select \n *,\n {{ dbt_utils.pivot(\n column=key_field, \n values=pivot_fields, \n agg='', \n then_value=key_value, \n else_value=\"null\",\n quote_identifiers=false\n ) \n }}\n from {{ ref(lookup_object) }}\n where is_most_recent_record\n),\n\nfinal as (\n select\n {% for column in source_columns %}\n source_table.{{ column.name }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% for fields in pivot_fields %}\n , max(lookup_object.{{ dbt_utils.slugify(fields) }}) as metafield_{{ dbt_utils.slugify(fields) }}\n {% endfor %}\n from source_table\n left join lookup_object \n on lookup_object.{{ reference_field }}_id = source_table.{{ id_column }}\n and lower(lookup_object.{{ reference_field }}) in ({{ reference_values_clause }})\n {{ dbt_utils.group_by(source_column_count) }}\n)\n\nselect *\nfrom final\n{% else %}\n\nselect *\nfrom source_table\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_column_values", "macro.dbt_utils.pivot", "macro.dbt_utils.slugify", "macro.dbt_utils.group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2698655, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.271347, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2734983, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2825952, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.285238, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.286024, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2867956, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2881835, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2885265, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2888582, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2891886, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2925525, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2937741, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2945116, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2950287, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2952628, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2954743, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2956831, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2964988, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2968392, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2971892, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.297545, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2978415, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.298185, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2986798, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2988954, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.2991078, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3004615, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3014233, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3017073, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3024092, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3029752, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.303262, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3035252, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.303784, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3040397, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3047926, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.306859, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.307976, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3089519, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3093197, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3108926, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3120298, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3125448, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3130882, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3137422, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3142388, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3147821, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3154814, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.315963, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3167155, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3178403, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3187711, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3211193, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3219128, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3222463, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3225617, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3229105, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3232372, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3235846, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3241029, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3248827, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3252466, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3255832, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3259072, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3262503, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3266022, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3286622, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.329153, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3293886, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3295987, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3354406, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3363545, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3371446, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3378768, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3381412, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3384428, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3386884, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3389268, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.339853, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3419766, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.343293, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3439312, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3442729, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3446958, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3454084, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3457084, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3460042, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.346328, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.346637, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3474708, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.34806, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3486025, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3497715, "supported_languages": null}, "macro.spark_utils.get_tables": {"name": "get_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_tables", "macro_sql": "{% macro get_tables(table_regex_pattern='.*') %}\n\n {% set tables = [] %}\n {% for database in spark__list_schemas('not_used') %}\n {% for table in spark__list_relations_without_caching(database[0]) %}\n {% set db_tablename = database[0] ~ \".\" ~ table[1] %}\n {% set is_match = modules.re.match(table_regex_pattern, db_tablename) %}\n {% if is_match %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('type', 'TYPE', 'Type'))|first %}\n {% if table_type[1]|lower != 'view' %}\n {{ tables.append(db_tablename) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n {{ return(tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3534617, "supported_languages": null}, "macro.spark_utils.get_delta_tables": {"name": "get_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_delta_tables", "macro_sql": "{% macro get_delta_tables(table_regex_pattern='.*') %}\n\n {% set delta_tables = [] %}\n {% for db_tablename in get_tables(table_regex_pattern) %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('provider', 'PROVIDER', 'Provider'))|first %}\n {% if table_type[1]|lower == 'delta' %}\n {{ delta_tables.append(db_tablename) }}\n {% endif %}\n {% endfor %}\n {{ return(delta_tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3549287, "supported_languages": null}, "macro.spark_utils.get_statistic_columns": {"name": "get_statistic_columns", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_statistic_columns", "macro_sql": "{% macro get_statistic_columns(table) %}\n\n {% call statement('input_columns', fetch_result=True) %}\n SHOW COLUMNS IN {{ table }}\n {% endcall %}\n {% set input_columns = load_result('input_columns').table %}\n\n {% set output_columns = [] %}\n {% for column in input_columns %}\n {% call statement('column_information', fetch_result=True) %}\n DESCRIBE TABLE {{ table }} `{{ column[0] }}`\n {% endcall %}\n {% if not load_result('column_information').table[1][1].startswith('struct') and not load_result('column_information').table[1][1].startswith('array') %}\n {{ output_columns.append('`' ~ column[0] ~ '`') }}\n {% endif %}\n {% endfor %}\n {{ return(output_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.356831, "supported_languages": null}, "macro.spark_utils.spark_optimize_delta_tables": {"name": "spark_optimize_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_optimize_delta_tables", "macro_sql": "{% macro spark_optimize_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Optimizing \" ~ table) }}\n {% do run_query(\"optimize \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3583872, "supported_languages": null}, "macro.spark_utils.spark_vacuum_delta_tables": {"name": "spark_vacuum_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "macro_sql": "{% macro spark_vacuum_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Vacuuming \" ~ table) }}\n {% do run_query(\"vacuum \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3599455, "supported_languages": null}, "macro.spark_utils.spark_analyze_tables": {"name": "spark_analyze_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_analyze_tables", "macro_sql": "{% macro spark_analyze_tables(table_regex_pattern='.*') %}\n\n {% for table in get_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set columns = get_statistic_columns(table) | join(',') %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Analyzing \" ~ table) }}\n {% if columns != '' %}\n {% do run_query(\"analyze table \" ~ table ~ \" compute statistics for columns \" ~ columns) %}\n {% endif %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.spark_utils.get_statistic_columns", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3618681, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_pattern": {"name": "spark__get_relations_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "macro_sql": "{% macro spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n show table extended in {{ schema_pattern }} like '{{ table_pattern }}'\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=None,\n schema=row[0],\n identifier=row[1],\n type=('view' if 'Type: VIEW' in row[3] else 'table')\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3643274, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_prefix": {"name": "spark__get_relations_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "macro_sql": "{% macro spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {% set table_pattern = table_pattern ~ '*' %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3650224, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_pattern": {"name": "spark__get_tables_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "macro_sql": "{% macro spark__get_tables_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3656235, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_prefix": {"name": "spark__get_tables_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "macro_sql": "{% macro spark__get_tables_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3662186, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp": {"name": "spark__current_timestamp", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.366507, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp_in_utc": {"name": "spark__current_timestamp_in_utc", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3666773, "supported_languages": null}, "macro.spark_utils.spark__split_part": {"name": "spark__split_part", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "unique_id": "macro.spark_utils.spark__split_part", "macro_sql": "{% macro spark__split_part(string_text, delimiter_text, part_number) %}\n\n {% set delimiter_expr %}\n \n -- escape if starts with a special character\n case when regexp_extract({{ delimiter_text }}, '([^A-Za-z0-9])(.*)', 1) != '_'\n then concat('\\\\', {{ delimiter_text }})\n else {{ delimiter_text }} end\n \n {% endset %}\n\n {% set split_part_expr %}\n \n split(\n {{ string_text }},\n {{ delimiter_expr }}\n )[({{ part_number - 1 }})]\n \n {% endset %}\n \n {{ return(split_part_expr) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3677506, "supported_languages": null}, "macro.spark_utils.spark__type_numeric": {"name": "spark__type_numeric", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "unique_id": "macro.spark_utils.spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.367997, "supported_languages": null}, "macro.spark_utils.spark__concat": {"name": "spark__concat", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "unique_id": "macro.spark_utils.spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.368414, "supported_languages": null}, "macro.spark_utils.spark__datediff": {"name": "spark__datediff", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "unique_id": "macro.spark_utils.spark__datediff", "macro_sql": "{% macro spark__datediff(first_date, second_date, datepart) %}\n\n {%- if datepart in ['day', 'week', 'month', 'quarter', 'year'] -%}\n \n {# make sure the dates are real, otherwise raise an error asap #}\n {% set first_date = spark_utils.assert_not_null('date', first_date) %}\n {% set second_date = spark_utils.assert_not_null('date', second_date) %}\n \n {%- endif -%}\n \n {%- if datepart == 'day' -%}\n \n datediff({{second_date}}, {{first_date}})\n \n {%- elif datepart == 'week' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(datediff({{second_date}}, {{first_date}})/7)\n else ceil(datediff({{second_date}}, {{first_date}})/7)\n end\n \n -- did we cross a week boundary (Sunday)?\n + case\n when {{first_date}} < {{second_date}} and dayofweek({{second_date}}) < dayofweek({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofweek({{second_date}}) > dayofweek({{first_date}}) then -1\n else 0 end\n\n {%- elif datepart == 'month' -%}\n\n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}})))\n else ceil(months_between(date({{second_date}}), date({{first_date}})))\n end\n \n -- did we cross a month boundary?\n + case\n when {{first_date}} < {{second_date}} and dayofmonth({{second_date}}) < dayofmonth({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofmonth({{second_date}}) > dayofmonth({{first_date}}) then -1\n else 0 end\n \n {%- elif datepart == 'quarter' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}}))/3)\n else ceil(months_between(date({{second_date}}), date({{first_date}}))/3)\n end\n \n -- did we cross a quarter boundary?\n + case\n when {{first_date}} < {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n < (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then 1\n when {{first_date}} > {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n > (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then -1\n else 0 end\n\n {%- elif datepart == 'year' -%}\n \n year({{second_date}}) - year({{first_date}})\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set divisor -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n case when {{first_date}} < {{second_date}}\n then ceil((\n {# make sure the timestamps are real, otherwise raise an error asap #}\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n else floor((\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n end\n \n {% if datepart == 'millisecond' %}\n + cast(date_format({{second_date}}, 'SSS') as int)\n - cast(date_format({{first_date}}, 'SSS') as int)\n {% endif %}\n \n {% if datepart == 'microsecond' %} \n {% set capture_str = '[0-9]{4}-[0-9]{2}-[0-9]{2}.[0-9]{2}:[0-9]{2}:[0-9]{2}.([0-9]{6})' %}\n -- Spark doesn't really support microseconds, so this is a massive hack!\n -- It will only work if the timestamp-string is of the format\n -- 'yyyy-MM-dd-HH mm.ss.SSSSSS'\n + cast(regexp_extract({{second_date}}, '{{capture_str}}', 1) as int)\n - cast(regexp_extract({{first_date}}, '{{capture_str}}', 1) as int) \n {% endif %}\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro datediff not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3758504, "supported_languages": null}, "macro.spark_utils.spark__dateadd": {"name": "spark__dateadd", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "unique_id": "macro.spark_utils.spark__dateadd", "macro_sql": "{% macro spark__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {%- set clock_component -%}\n {# make sure the dates + timestamps are real, otherwise raise an error asap #}\n to_unix_timestamp({{ spark_utils.assert_not_null('to_timestamp', from_date_or_timestamp) }})\n - to_unix_timestamp({{ spark_utils.assert_not_null('date', from_date_or_timestamp) }})\n {%- endset -%}\n\n {%- if datepart in ['day', 'week'] -%}\n \n {%- set multiplier = 7 if datepart == 'week' else 1 -%}\n\n to_timestamp(\n to_unix_timestamp(\n date_add(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ['month', 'quarter', 'year'] -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'month' -%} 1\n {%- elif datepart == 'quarter' -%} 3\n {%- elif datepart == 'year' -%} 12\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n to_unix_timestamp(\n add_months(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n {{ spark_utils.assert_not_null('to_unix_timestamp', from_date_or_timestamp) }}\n + cast({{interval}} * {{multiplier}} as int)\n )\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro dateadd not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3799024, "supported_languages": null}, "macro.spark_utils.assert_not_null": {"name": "assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3805873, "supported_languages": null}, "macro.spark_utils.default__assert_not_null": {"name": "default__assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.default__assert_not_null", "macro_sql": "{% macro default__assert_not_null(function, arg) %}\n\n coalesce({{function}}({{arg}}), nvl2({{function}}({{arg}}), assert_true({{function}}({{arg}}) is not null), null))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3810232, "supported_languages": null}, "macro.spark_utils.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "unique_id": "macro.spark_utils.spark__convert_timezone", "macro_sql": "{% macro spark__convert_timezone(in_tz, out_tz, in_timestamp) %}\n from_utc_timestamp(to_utc_timestamp({{in_timestamp}}, {{in_tz}}), {{out_tz}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3814883, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_shipping_line_columns": {"name": "get_abandoned_checkout_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "original_file_path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro_sql": "{% macro get_abandoned_checkout_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range_max\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_range_min\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.385042, "supported_languages": null}, "macro.shopify_source.get_tender_transaction_columns": {"name": "get_tender_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tender_transaction_columns.sql", "original_file_path": "macros/get_tender_transaction_columns.sql", "unique_id": "macro.shopify_source.get_tender_transaction_columns", "macro_sql": "{% macro get_tender_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"remote_reference\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3876038, "supported_languages": null}, "macro.shopify_source.get_graphql_tender_transaction_columns": {"name": "get_graphql_tender_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tender_transaction_columns.sql", "original_file_path": "macros/get_tender_transaction_columns.sql", "unique_id": "macro.shopify_source.get_graphql_tender_transaction_columns", "macro_sql": "{% macro get_graphql_tender_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"remote_reference\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.3895519, "supported_languages": null}, "macro.shopify_source.get_fulfillment_event_columns": {"name": "get_fulfillment_event_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_event_columns.sql", "original_file_path": "macros/get_fulfillment_event_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_event_columns", "macro_sql": "{% macro get_fulfillment_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"estimated_delivery_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"happened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shop_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.393934, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_event_columns": {"name": "get_graphql_fulfillment_event_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_event_columns.sql", "original_file_path": "macros/get_fulfillment_event_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_event_columns", "macro_sql": "{% macro get_graphql_fulfillment_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"estimated_delivery_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"happened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.398532, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_rule_columns": {"name": "get_graphql_collection_rule_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_rule_columns.sql", "original_file_path": "macros/get_collection_rule_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_rule_columns", "macro_sql": "{% macro get_graphql_collection_rule_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"condition\", \"datatype\": dbt.type_string()},\n {\"name\": \"relation\", \"datatype\": dbt.type_string()},\n {\"name\": \"columns\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4009123, "supported_languages": null}, "macro.shopify_source.get_product_media_columns": {"name": "get_product_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_media_columns.sql", "original_file_path": "macros/get_product_media_columns.sql", "unique_id": "macro.shopify_source.get_product_media_columns", "macro_sql": "{% macro get_product_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4023857, "supported_languages": null}, "macro.shopify_source.get_graphql_product_media_columns": {"name": "get_graphql_product_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_media_columns.sql", "original_file_path": "macros/get_product_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_media_columns", "macro_sql": "{% macro get_graphql_product_media_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.403689, "supported_languages": null}, "macro.shopify_source.get_order_columns": {"name": "get_order_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "unique_id": "macro.shopify_source.get_order_columns", "macro_sql": "{% macro get_order_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tip_received\", \"datatype\": dbt.type_float()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cancel_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancelled_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"financial_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"browser_ip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_shipping_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"app_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"client_details_user_agent\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_status_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"confirmed\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4216943, "supported_languages": null}, "macro.shopify_source.get_graphql_order_columns": {"name": "get_graphql_order_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_columns", "macro_sql": "{% macro get_graphql_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"app_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancel_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancelled_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"client_ip\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"confirmed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_financial_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"presentment_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status_page_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_discounts_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discounts_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_shipping_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_shipping_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_shipping_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_shipping_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tip_received_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tip_received_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tip_received_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tip_received_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4348934, "supported_languages": null}, "macro.shopify_source.get_discount_code_free_shipping_columns": {"name": "get_discount_code_free_shipping_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_free_shipping_columns.sql", "original_file_path": "macros/get_discount_code_free_shipping_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_free_shipping_columns", "macro_sql": "{% macro get_discount_code_free_shipping_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4391582, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_free_shipping_columns": {"name": "get_graphql_discount_code_free_shipping_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_free_shipping_columns.sql", "original_file_path": "macros/get_discount_code_free_shipping_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_free_shipping_columns", "macro_sql": "{% macro get_graphql_discount_code_free_shipping_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4424734, "supported_languages": null}, "macro.shopify_source.json_to_string": {"name": "json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.json_to_string", "macro_sql": "{%- macro json_to_string(column, column_list) -%}\n {{ return(adapter.dispatch('json_to_string', 'shopify_source')(column, column_list)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__json_to_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4432151, "supported_languages": null}, "macro.shopify_source.default__json_to_string": {"name": "default__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.default__json_to_string", "macro_sql": "{%- macro default__json_to_string(column, column_list) -%}\n {{ column }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4434514, "supported_languages": null}, "macro.shopify_source.bigquery__json_to_string": {"name": "bigquery__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.bigquery__json_to_string", "macro_sql": "{%- macro bigquery__json_to_string(column, column_list) -%}\n {%- set columns = column_list -%}\n {%- set ns = namespace(column_type='string') -%}\n\n {%- for col in columns -%}\n {%- if col.name|lower == column|lower -%}\n {%- set ns.column_type = col.dtype|lower -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- if ns.column_type == 'json' -%}\n to_json_string({{ column }})\n {%- else -%}\n {{ column }}\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.444403, "supported_languages": null}, "macro.shopify_source.get_product_columns": {"name": "get_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_columns.sql", "original_file_path": "macros/get_product_columns.sql", "unique_id": "macro.shopify_source.get_product_columns", "macro_sql": "{% macro get_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4472678, "supported_languages": null}, "macro.shopify_source.get_graphql_product_columns": {"name": "get_graphql_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_columns.sql", "original_file_path": "macros/get_product_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_columns", "macro_sql": "{% macro get_graphql_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.449304, "supported_languages": null}, "macro.shopify_source.get_collection_columns": {"name": "get_collection_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_columns.sql", "original_file_path": "macros/get_collection_columns.sql", "unique_id": "macro.shopify_source.get_collection_columns", "macro_sql": "{% macro get_collection_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"disjunctive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"rules\", \"datatype\": dbt.type_string()},\n {\"name\": \"sort_order\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4517372, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_columns": {"name": "get_graphql_collection_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_columns.sql", "original_file_path": "macros/get_collection_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_columns", "macro_sql": "{% macro get_graphql_collection_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"applied_disjunctively\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"sort_order\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4532387, "supported_languages": null}, "macro.shopify_source.get_customer_tag_columns": {"name": "get_customer_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_tag_columns.sql", "original_file_path": "macros/get_customer_tag_columns.sql", "unique_id": "macro.shopify_source.get_customer_tag_columns", "macro_sql": "{% macro get_customer_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4544668, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_tag_columns": {"name": "get_graphql_customer_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_tag_columns.sql", "original_file_path": "macros/get_customer_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_tag_columns", "macro_sql": "{% macro get_graphql_customer_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4553876, "supported_languages": null}, "macro.shopify_source.get_shop_columns": {"name": "get_shop_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_shop_columns.sql", "original_file_path": "macros/get_shop_columns.sql", "unique_id": "macro.shopify_source.get_shop_columns", "macro_sql": "{% macro get_shop_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_api_supported\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"cookie_consent_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"county_taxes\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_card_reader_giveaway\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"eligible_for_payments\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"enabled_presentment_currencies\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_login_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_gift_cards\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_storefront\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"iana_timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"money_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"myshopify_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"password_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"pre_launch_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"primary_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_extra_payments_agreement\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"setup_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"shop_owner\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.465282, "supported_languages": null}, "macro.shopify_source.get_graphql_shop_columns": {"name": "get_graphql_shop_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_shop_columns.sql", "original_file_path": "macros/get_shop_columns.sql", "unique_id": "macro.shopify_source.get_graphql_shop_columns", "macro_sql": "{% macro get_graphql_shop_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code_v_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_api_supported\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"contact_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_with_currency_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_with_currency_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"enabled_presentment_currencies\", \"datatype\": dbt.type_string()},\n {\"name\": \"features_storefront\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"iana_timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"myshopify_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"password_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"plan_display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_domain_host\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_domain_localization_default_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"setup_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"shop_owner_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"timezone_abbreviation\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_offset\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_offset_minutes\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4715207, "supported_languages": null}, "macro.shopify_source.get_order_url_tag_columns": {"name": "get_order_url_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_url_tag_columns.sql", "original_file_path": "macros/get_order_url_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_url_tag_columns", "macro_sql": "{% macro get_order_url_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.472659, "supported_languages": null}, "macro.shopify_source.get_order_shipping_line_columns": {"name": "get_order_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_line_columns.sql", "original_file_path": "macros/get_order_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_line_columns", "macro_sql": "{% macro get_order_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4757948, "supported_languages": null}, "macro.shopify_source.get_graphql_order_shipping_line_columns": {"name": "get_graphql_order_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_line_columns.sql", "original_file_path": "macros/get_order_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_shipping_line_columns", "macro_sql": "{% macro get_graphql_order_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"original_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"original_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.478648, "supported_languages": null}, "macro.shopify_source.get_customer_columns": {"name": "get_customer_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "unique_id": "macro.shopify_source.get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_address_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"orders_count\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_spent\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"verified_email\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email_marketing_consent_consent_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_marketing_consent_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepts_marketing_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"marketing_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customer_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4832408, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_columns": {"name": "get_graphql_customer_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_columns", "macro_sql": "{% macro get_graphql_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"orders_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_spent\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"verified_email\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customer_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4863725, "supported_languages": null}, "macro.shopify_source.shopify_union_data": {"name": "shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.shopify_union_data", "macro_sql": "{%- macro shopify_union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases', shopify_model_api='rest') -%}\n\n{{ adapter.dispatch('shopify_union_data', 'shopify_source') (\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 shopify_model_api\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__shopify_union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.4887664, "supported_languages": null}, "macro.shopify_source.default__shopify_union_data": {"name": "default__shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.default__shopify_union_data", "macro_sql": "{%- macro default__shopify_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 shopify_model_api\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + ('_gql_' if shopify_model_api == 'graphql' else '_') + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema ~ ('_graphql' if shopify_model_api == 'graphql' else ''), table_identifier).database,\n schema=source(default_schema ~ ('_graphql' if shopify_model_api == 'graphql' else ''), table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.497958, "supported_languages": null}, "macro.shopify_source.get_transaction_columns": {"name": "get_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_transaction_columns.sql", "original_file_path": "macros/get_transaction_columns.sql", "unique_id": "macro.shopify_source.get_transaction_columns", "macro_sql": "{% macro get_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"payment_avs_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_bin\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_cvv_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"receipt\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_exchange_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_adjustment\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_original_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_final_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"error_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"authorization_expires_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{% if target.type in ('redshift','postgres') %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"quote\": True, \"alias\": \"authorization_code\"}) }}\n{% else %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"alias\": \"authorization_code\"}) }}\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5054214, "supported_languages": null}, "macro.shopify_source.get_graphql_transaction_columns": {"name": "get_graphql_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_transaction_columns.sql", "original_file_path": "macros/get_transaction_columns.sql", "unique_id": "macro.shopify_source.get_graphql_transaction_columns", "macro_sql": "{% macro get_graphql_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"authorization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"authorization_expires_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"error_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_avs_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_bin\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_cvv_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"receipt_json\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_exchange_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_adjustment\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_original_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_final_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_currency\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5105834, "supported_languages": null}, "macro.shopify_source.get_location_columns": {"name": "get_location_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_location_columns.sql", "original_file_path": "macros/get_location_columns.sql", "unique_id": "macro.shopify_source.get_location_columns", "macro_sql": "{% macro get_location_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"legacy\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"localized_country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"localized_province_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5147555, "supported_languages": null}, "macro.shopify_source.get_graphql_location_columns": {"name": "get_graphql_location_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_location_columns.sql", "original_file_path": "macros/get_location_columns.sql", "unique_id": "macro.shopify_source.get_graphql_location_columns", "macro_sql": "{% macro get_graphql_location_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"is_fulfillment_service\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5176625, "supported_languages": null}, "macro.shopify_source.get_discount_code_app_columns": {"name": "get_discount_code_app_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_app_columns.sql", "original_file_path": "macros/get_discount_code_app_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_app_columns", "macro_sql": "{% macro get_discount_code_app_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5218701, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_app_columns": {"name": "get_graphql_discount_code_app_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_app_columns.sql", "original_file_path": "macros/get_discount_code_app_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_app_columns", "macro_sql": "{% macro get_graphql_discount_code_app_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5253136, "supported_languages": null}, "macro.shopify_source.get_order_adjustment_columns": {"name": "get_order_adjustment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_adjustment_columns.sql", "original_file_path": "macros/get_order_adjustment_columns.sql", "unique_id": "macro.shopify_source.get_order_adjustment_columns", "macro_sql": "{% macro get_order_adjustment_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5277166, "supported_languages": null}, "macro.shopify_source.get_graphql_order_adjustment_columns": {"name": "get_graphql_order_adjustment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_adjustment_columns.sql", "original_file_path": "macros/get_order_adjustment_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_adjustment_columns", "macro_sql": "{% macro get_graphql_order_adjustment_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.529794, "supported_languages": null}, "macro.shopify_source.get_discount_allocation_columns": {"name": "get_discount_allocation_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_allocation_columns.sql", "original_file_path": "macros/get_discount_allocation_columns.sql", "unique_id": "macro.shopify_source.get_discount_allocation_columns", "macro_sql": "{% macro get_discount_allocation_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_application_index\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5319355, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_allocation_columns": {"name": "get_graphql_discount_allocation_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_allocation_columns.sql", "original_file_path": "macros/get_discount_allocation_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_allocation_columns", "macro_sql": "{% macro get_graphql_discount_allocation_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocated_amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"allocated_amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"allocated_amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"allocated_amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_application_index\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.533452, "supported_languages": null}, "macro.shopify_source.get_discount_redeem_code_columns": {"name": "get_discount_redeem_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_redeem_code_columns.sql", "original_file_path": "macros/get_discount_redeem_code_columns.sql", "unique_id": "macro.shopify_source.get_discount_redeem_code_columns", "macro_sql": "{% macro get_discount_redeem_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"created_by_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"discount_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5356104, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_redeem_code_columns": {"name": "get_graphql_discount_redeem_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_redeem_code_columns.sql", "original_file_path": "macros/get_discount_redeem_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_redeem_code_columns", "macro_sql": "{% macro get_graphql_discount_redeem_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"created_by_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"discount_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5372784, "supported_languages": null}, "macro.shopify_source.get_order_tag_columns": {"name": "get_order_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_tag_columns.sql", "original_file_path": "macros/get_order_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_tag_columns", "macro_sql": "{% macro get_order_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.538508, "supported_languages": null}, "macro.shopify_source.get_graphql_order_tag_columns": {"name": "get_graphql_order_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_tag_columns.sql", "original_file_path": "macros/get_order_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_tag_columns", "macro_sql": "{% macro get_graphql_order_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5394332, "supported_languages": null}, "macro.shopify_source.get_order_shipping_tax_line_columns": {"name": "get_order_shipping_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_tax_line_columns.sql", "original_file_path": "macros/get_order_shipping_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_tax_line_columns", "macro_sql": "{% macro get_order_shipping_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_shipping_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5412762, "supported_languages": null}, "macro.shopify_source.get_graphql_order_shipping_tax_line_columns": {"name": "get_graphql_order_shipping_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_tax_line_columns.sql", "original_file_path": "macros/get_order_shipping_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_shipping_tax_line_columns", "macro_sql": "{% macro get_graphql_order_shipping_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_shipping_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5431356, "supported_languages": null}, "macro.shopify_source.get_refund_columns": {"name": "get_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_refund_columns.sql", "original_file_path": "macros/get_refund_columns.sql", "unique_id": "macro.shopify_source.get_refund_columns", "macro_sql": "{% macro get_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"restock\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_duties_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.545431, "supported_languages": null}, "macro.shopify_source.get_graphql_refund_columns": {"name": "get_graphql_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_refund_columns.sql", "original_file_path": "macros/get_refund_columns.sql", "unique_id": "macro.shopify_source.get_graphql_refund_columns", "macro_sql": "{% macro get_graphql_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"return_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_refunded_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_refunded_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_refunded_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_refunded_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5475385, "supported_languages": null}, "macro.shopify_source.get_inventory_item_columns": {"name": "get_inventory_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_item_columns.sql", "original_file_path": "macros/get_inventory_item_columns.sql", "unique_id": "macro.shopify_source.get_inventory_item_columns", "macro_sql": "{% macro get_inventory_item_columns() %}\n\n{# Columns below line 26 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"province_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duplicate_sku_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"harmonized_system_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_history_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_weight_value\", \"datatype\": dbt.type_float()},\n {\"name\": \"measurement_weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked_editable_locked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()}\n ,\n {\"name\": \"cost\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5521905, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_item_columns": {"name": "get_graphql_inventory_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_item_columns.sql", "original_file_path": "macros/get_inventory_item_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_item_columns", "macro_sql": "{% macro get_graphql_inventory_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duplicate_sku_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"harmonized_system_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_history_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"measurement_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"measurement_weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"measurement_weight_value\", \"datatype\": dbt.type_float()},\n {\"name\": \"province_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_locked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.555737, "supported_languages": null}, "macro.shopify_source.get_tax_line_columns": {"name": "get_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tax_line_columns.sql", "original_file_path": "macros/get_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_tax_line_columns", "macro_sql": "{% macro get_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5575852, "supported_languages": null}, "macro.shopify_source.get_graphql_tax_line_columns": {"name": "get_graphql_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tax_line_columns.sql", "original_file_path": "macros/get_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_tax_line_columns", "macro_sql": "{% macro get_graphql_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.559239, "supported_languages": null}, "macro.shopify_source.get_discount_code_basic_columns": {"name": "get_discount_code_basic_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_basic_columns.sql", "original_file_path": "macros/get_discount_code_basic_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_basic_columns", "macro_sql": "{% macro get_discount_code_basic_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5634089, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_basic_columns": {"name": "get_graphql_discount_code_basic_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_basic_columns.sql", "original_file_path": "macros/get_discount_code_basic_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_basic_columns", "macro_sql": "{% macro get_graphql_discount_code_basic_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5667052, "supported_languages": null}, "macro.shopify_source.get_product_variant_media_columns": {"name": "get_product_variant_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_media_columns.sql", "original_file_path": "macros/get_product_variant_media_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_media_columns", "macro_sql": "{% macro get_product_variant_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5675848, "supported_languages": null}, "macro.shopify_source.get_graphql_product_variant_media_columns": {"name": "get_graphql_product_variant_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_media_columns.sql", "original_file_path": "macros/get_product_variant_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_variant_media_columns", "macro_sql": "{% macro get_graphql_product_variant_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.568219, "supported_languages": null}, "macro.shopify_source.get_order_discount_code_columns": {"name": "get_order_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_discount_code_columns.sql", "original_file_path": "macros/get_order_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_order_discount_code_columns", "macro_sql": "{% macro get_order_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5697763, "supported_languages": null}, "macro.shopify_source.get_graphql_order_discount_code_columns": {"name": "get_graphql_order_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_discount_code_columns.sql", "original_file_path": "macros/get_order_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_discount_code_columns", "macro_sql": "{% macro get_graphql_order_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5706987, "supported_languages": null}, "macro.shopify_source.get_media_image_columns": {"name": "get_media_image_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_image_columns.sql", "original_file_path": "macros/get_media_image_columns.sql", "unique_id": "macro.shopify_source.get_media_image_columns", "macro_sql": "{% macro get_media_image_columns() %}\n\n{% set columns = [\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5722945, "supported_languages": null}, "macro.shopify_source.get_graphql_media_image_columns": {"name": "get_graphql_media_image_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_image_columns.sql", "original_file_path": "macros/get_media_image_columns.sql", "unique_id": "macro.shopify_source.get_graphql_media_image_columns", "macro_sql": "{% macro get_graphql_media_image_columns() %}\n\n{% set columns = [\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5735004, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_order_line_item_columns": {"name": "get_graphql_fulfillment_order_line_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_order_line_item_columns.sql", "original_file_path": "macros/get_fulfillment_order_line_item_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_order_line_item_columns", "macro_sql": "{% macro get_graphql_fulfillment_order_line_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"remaining_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5772448, "supported_languages": null}, "macro.shopify_source.get_fulfillment_columns": {"name": "get_fulfillment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_columns.sql", "original_file_path": "macros/get_fulfillment_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_columns", "macro_sql": "{% macro get_fulfillment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_numbers\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.580277, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_columns": {"name": "get_graphql_fulfillment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_columns.sql", "original_file_path": "macros/get_fulfillment_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_columns", "macro_sql": "{% macro get_graphql_fulfillment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"display_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5823755, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_columns": {"name": "get_abandoned_checkout_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_columns.sql", "original_file_path": "macros/get_abandoned_checkout_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_columns", "macro_sql": "{% macro get_abandoned_checkout_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"abandoned_checkout_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.5945168, "supported_languages": null}, "macro.shopify_source.get_graphql_abandoned_checkout_columns": {"name": "get_graphql_abandoned_checkout_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_columns.sql", "original_file_path": "macros/get_abandoned_checkout_columns.sql", "unique_id": "macro.shopify_source.get_graphql_abandoned_checkout_columns", "macro_sql": "{% macro get_graphql_abandoned_checkout_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"abandoned_checkout_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"completed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_discount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_duties_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_duties_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6043742, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_visit_columns": {"name": "get_graphql_customer_visit_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_visit_columns.sql", "original_file_path": "macros/get_customer_visit_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_visit_columns", "macro_sql": "{% macro get_graphql_customer_visit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page_html\", \"datatype\": dbt.type_string()},\n {\"name\": \"occurred_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"referral_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"referral_info_html\", \"datatype\": dbt.type_string()},\n {\"name\": \"referrer_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_campaign\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_content\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_medium\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_term\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6077847, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_tracking_info_columns": {"name": "get_graphql_fulfillment_tracking_info_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_tracking_info_columns.sql", "original_file_path": "macros/get_fulfillment_tracking_info_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_tracking_info_columns", "macro_sql": "{% macro get_graphql_fulfillment_tracking_info_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"number\", \"datatype\": dbt.type_string()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6092284, "supported_languages": null}, "macro.shopify_source.get_collection_product_columns": {"name": "get_collection_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_product_columns.sql", "original_file_path": "macros/get_collection_product_columns.sql", "unique_id": "macro.shopify_source.get_collection_product_columns", "macro_sql": "{% macro get_collection_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6102526, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_product_columns": {"name": "get_graphql_collection_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_product_columns.sql", "original_file_path": "macros/get_collection_product_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_product_columns", "macro_sql": "{% macro get_graphql_collection_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.611021, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_address_columns": {"name": "get_graphql_customer_address_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_address_columns.sql", "original_file_path": "macros/get_customer_address_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_address_columns", "macro_sql": "{% macro get_graphql_customer_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_default\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"validation_result_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"coordinates_validated\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6150715, "supported_languages": null}, "macro.shopify_source.get_order_line_columns": {"name": "get_order_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_columns.sql", "original_file_path": "macros/get_order_line_columns.sql", "unique_id": "macro.shopify_source.get_order_line_columns", "macro_sql": "{% macro get_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillable_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"gift_card\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"grams\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"index\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"pre_tax_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"pre_tax_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"properties\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6207144, "supported_languages": null}, "macro.shopify_source.get_graphql_order_line_columns": {"name": "get_graphql_order_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_columns.sql", "original_file_path": "macros/get_order_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_line_columns", "macro_sql": "{% macro get_graphql_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_gift_card\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"original_total_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_total_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"original_total_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_total_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"unfulfilled_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.624589, "supported_languages": null}, "macro.shopify_source.get_order_line_refund_columns": {"name": "get_order_line_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_refund_columns.sql", "original_file_path": "macros/get_order_line_refund_columns.sql", "unique_id": "macro.shopify_source.get_order_line_refund_columns", "macro_sql": "{% macro get_order_line_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"restock_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_refund_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6274447, "supported_languages": null}, "macro.shopify_source.get_graphql_order_line_refund_columns": {"name": "get_graphql_order_line_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_refund_columns.sql", "original_file_path": "macros/get_order_line_refund_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_line_refund_columns", "macro_sql": "{% macro get_graphql_order_line_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"restock_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_refund_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6301014, "supported_languages": null}, "macro.shopify_source.get_product_variant_columns": {"name": "get_product_variant_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_columns.sql", "original_file_path": "macros/get_product_variant_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_columns", "macro_sql": "{% macro get_product_variant_columns() %}\n\n{# Columns below line 28 to be deprecated. #}\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"position\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"compare_at_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"barcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"old_inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"available_for_sale\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"requires_components\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sellable_online_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"fulfillment_service\", \"datatype\": dbt.type_string()},\n {\"name\": \"grams\", \"datatype\": dbt.type_float()},\n {\"name\": \"inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_3\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_variant_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_boolean", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6361225, "supported_languages": null}, "macro.shopify_source.get_graphql_product_variant_columns": {"name": "get_graphql_product_variant_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_columns.sql", "original_file_path": "macros/get_product_variant_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_variant_columns", "macro_sql": "{% macro get_graphql_product_variant_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_sale\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"barcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"compare_at_price\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"position\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_components\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sellable_online_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_variant_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6397793, "supported_languages": null}, "macro.shopify_source.get_product_tag_columns": {"name": "get_product_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_tag_columns.sql", "original_file_path": "macros/get_product_tag_columns.sql", "unique_id": "macro.shopify_source.get_product_tag_columns", "macro_sql": "{% macro get_product_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6410131, "supported_languages": null}, "macro.shopify_source.get_graphql_product_tag_columns": {"name": "get_graphql_product_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_tag_columns.sql", "original_file_path": "macros/get_product_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_tag_columns", "macro_sql": "{% macro get_graphql_product_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6419494, "supported_languages": null}, "macro.shopify_source.get_media_columns": {"name": "get_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_columns.sql", "original_file_path": "macros/get_media_columns.sql", "unique_id": "macro.shopify_source.get_media_columns", "macro_sql": "{% macro get_media_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}, \n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()}, \n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()} \n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6432056, "supported_languages": null}, "macro.shopify_source.get_graphql_media_columns": {"name": "get_graphql_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_columns.sql", "original_file_path": "macros/get_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_media_columns", "macro_sql": "{% macro get_graphql_media_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6443002, "supported_languages": null}, "macro.shopify_source.get_discount_application_columns": {"name": "get_discount_application_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_application_columns.sql", "original_file_path": "macros/get_discount_application_columns.sql", "unique_id": "macro.shopify_source.get_discount_application_columns", "macro_sql": "{% macro get_discount_application_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocation_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"target_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value\", \"datatype\": dbt.type_float()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.646963, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_application_columns": {"name": "get_graphql_discount_application_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_application_columns.sql", "original_file_path": "macros/get_discount_application_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_application_columns", "macro_sql": "{% macro get_graphql_discount_application_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocation_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"target_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"value_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_percentage\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6487873, "supported_languages": null}, "macro.shopify_source.get_inventory_quantity_columns": {"name": "get_inventory_quantity_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_quantity_columns.sql", "original_file_path": "macros/get_inventory_quantity_columns.sql", "unique_id": "macro.shopify_source.get_inventory_quantity_columns", "macro_sql": "{% macro get_inventory_quantity_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_level_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.650591, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_quantity_columns": {"name": "get_graphql_inventory_quantity_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_quantity_columns.sql", "original_file_path": "macros/get_inventory_quantity_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_quantity_columns", "macro_sql": "{% macro get_graphql_inventory_quantity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_level_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.651954, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_discount_code_columns": {"name": "get_abandoned_checkout_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_discount_code_columns.sql", "original_file_path": "macros/get_abandoned_checkout_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro_sql": "{% macro get_abandoned_checkout_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.65402, "supported_languages": null}, "macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns": {"name": "get_graphql_abandoned_checkout_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_discount_code_columns.sql", "original_file_path": "macros/get_abandoned_checkout_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns", "macro_sql": "{% macro get_graphql_abandoned_checkout_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6549509, "supported_languages": null}, "macro.shopify_source.get_discount_code_bxgy_columns": {"name": "get_discount_code_bxgy_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_bxgy_columns.sql", "original_file_path": "macros/get_discount_code_bxgy_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_bxgy_columns", "macro_sql": "{% macro get_discount_code_bxgy_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6592588, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_bxgy_columns": {"name": "get_graphql_discount_code_bxgy_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_bxgy_columns.sql", "original_file_path": "macros/get_discount_code_bxgy_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_bxgy_columns", "macro_sql": "{% macro get_graphql_discount_code_bxgy_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.662417, "supported_languages": null}, "macro.shopify_source.get_inventory_level_columns": {"name": "get_inventory_level_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_level_columns.sql", "original_file_path": "macros/get_inventory_level_columns.sql", "unique_id": "macro.shopify_source.get_inventory_level_columns", "macro_sql": "{% macro get_inventory_level_columns() %}\n\n{# Columns below line 13 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"can_deactivate\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deactivation_alert\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n ,\n {\"name\": \"available\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6646442, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_level_columns": {"name": "get_graphql_inventory_level_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_level_columns.sql", "original_file_path": "macros/get_inventory_level_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_level_columns", "macro_sql": "{% macro get_graphql_inventory_level_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"can_deactivate\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deactivation_alert\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6661623, "supported_languages": null}, "macro.shopify_source.get_order_note_attribute_columns": {"name": "get_order_note_attribute_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_note_attribute_columns.sql", "original_file_path": "macros/get_order_note_attribute_columns.sql", "unique_id": "macro.shopify_source.get_order_note_attribute_columns", "macro_sql": "{% macro get_order_note_attribute_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.667413, "supported_languages": null}, "macro.shopify_source.get_graphql_order_note_attribute_columns": {"name": "get_graphql_order_note_attribute_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_note_attribute_columns.sql", "original_file_path": "macros/get_order_note_attribute_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_note_attribute_columns", "macro_sql": "{% macro get_graphql_order_note_attribute_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6683705, "supported_languages": null}, "macro.shopify_source.get_metafield_columns": {"name": "get_metafield_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_metafield_columns.sql", "original_file_path": "macros/get_metafield_columns.sql", "unique_id": "macro.shopify_source.get_metafield_columns", "macro_sql": "{% macro get_metafield_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"namespace\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"owner_resource\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.671094, "supported_languages": null}, "macro.shopify_source.get_graphql_metafield_columns": {"name": "get_graphql_metafield_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_metafield_columns.sql", "original_file_path": "macros/get_metafield_columns.sql", "unique_id": "macro.shopify_source.get_graphql_metafield_columns", "macro_sql": "{% macro get_graphql_metafield_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"namespace\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"owner_resource\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6730473, "supported_languages": null}, "macro.shopify_source.fivetran_convert_timezone": {"name": "fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.fivetran_convert_timezone", "macro_sql": "{%- macro fivetran_convert_timezone(column, target_tz=None, source_tz=None) -%}\n{%- set source_tz = \"UTC\" if not source_tz else source_tz -%}\n{%- set target_tz = \"UTC\" if not target_tz else target_tz -%}\n{{ return(adapter.dispatch('fivetran_convert_timezone', 'shopify_source') (column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6742857, "supported_languages": null}, "macro.shopify_source.default__fivetran_convert_timezone": {"name": "default__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.default__fivetran_convert_timezone", "macro_sql": "{% macro default__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ dbt.type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6746922, "supported_languages": null}, "macro.shopify_source.bigquery__fivetran_convert_timezone": {"name": "bigquery__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.bigquery__fivetran_convert_timezone", "macro_sql": "{%- macro bigquery__fivetran_convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.675, "supported_languages": null}, "macro.shopify_source.postgres__fivetran_convert_timezone": {"name": "postgres__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.postgres__fivetran_convert_timezone", "macro_sql": "{% macro postgres__fivetran_convert_timezone(column, target_tz, source_tz) -%}\ncast(\n cast({{ column }} as {{ dbt.type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt.type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6754737, "supported_languages": null}, "macro.shopify_source.redshift__fivetran_convert_timezone": {"name": "redshift__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.redshift__fivetran_convert_timezone", "macro_sql": "{%- macro redshift__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.default__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6758416, "supported_languages": null}, "macro.shopify_source.duckdb__fivetran_convert_timezone": {"name": "duckdb__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.duckdb__fivetran_convert_timezone", "macro_sql": "{% macro duckdb__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.postgres__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.676221, "supported_languages": null}, "macro.shopify_source.spark__fivetran_convert_timezone": {"name": "spark__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.spark__fivetran_convert_timezone", "macro_sql": "{%- macro spark__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nfrom_utc_timestamp(\n to_utc_timestamp({{ column }}, '{{ source_tz }}'),\n '{{ target_tz }}'\n )\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1754595375.6765459, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.shopify_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_synced", "block_contents": "The time when a record was last updated by Fivetran."}, "doc.shopify_source._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_deleted", "block_contents": "Boolean representing whether the record was soft-deleted in Shopify."}, "doc.shopify_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source.source_relation", "block_contents": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {"test.shopify_integration_tests.consistency_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_discounts.sql", "original_file_path": "tests/consistency/consistency_discounts.sql", "unique_id": "test.shopify_integration_tests.consistency_discounts", "fqn": ["shopify_integration_tests", "consistency", "consistency_discounts"], "alias": "consistency_discounts", "checksum": {"name": "sha256", "checksum": "c4c0089722a912fc6859d3f23b928425253c88ad16955dc1ec30dd47328d24b8"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.6425328, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__discounts\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__discounts\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_transactions": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_transactions", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_transactions.sql", "original_file_path": "tests/consistency/consistency_transactions.sql", "unique_id": "test.shopify_integration_tests.consistency_transactions", "fqn": ["shopify_integration_tests", "consistency", "consistency_transactions"], "alias": "consistency_transactions", "checksum": {"name": "sha256", "checksum": "4a35a742a91f9610e5f2f43d798aa32b4a7a03316db67fa95804ae894a6bddbd"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.6756222, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__transactions\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__transactions\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced_count": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced_count", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced_count.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced_count.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced_count", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced_count"], "alias": "consistency_line_item_enhanced_count", "checksum": {"name": "sha256", "checksum": "5966fa4f5d6392d55c6776983375aba21f63ec6d2bce09807769e2f807973074"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.6816297, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure the rows counts are the same between versions\nwith prod as (\n select count(*) as prod_rows\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select count(*) as dev_rows\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n)\n\n-- test will return values and fail if the row counts don't match\nselect *\nfrom prod\njoin dev\n on prod.prod_rows != dev.dev_rows", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced"], "alias": "consistency_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "bafda328d8951e5c1315715ae2af2b6db591c008cfb2e3e87102e102a927127d"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.687731, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_email_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_email_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_email_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_email_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_email_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_email_cohorts"], "alias": "consistency_customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "9c68a37c8316395c4e9454f955bf9a88a8ec0f0a1b8e8b92f0324c30118b0a38"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.694919, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_email_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_email_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_emails": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_emails", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_emails.sql", "original_file_path": "tests/consistency/consistency_customer_emails.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_emails", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_emails"], "alias": "consistency_customer_emails", "checksum": {"name": "sha256", "checksum": "f65921899974fb386942217898b874b933b185b03ba96b7b4393a21c57749faf"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.7006423, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customer_emails\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customer_emails\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_inventory_levels": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_inventory_levels", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_inventory_levels.sql", "original_file_path": "tests/consistency/consistency_inventory_levels.sql", "unique_id": "test.shopify_integration_tests.consistency_inventory_levels", "fqn": ["shopify_integration_tests", "consistency", "consistency_inventory_levels"], "alias": "consistency_inventory_levels", "checksum": {"name": "sha256", "checksum": "5c4bf90e9896cd512f8251e7b55deaf76564f860f24c9332b2379854562145fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.70629, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__inventory_levels\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_order_lines": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_order_lines", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_order_lines.sql", "original_file_path": "tests/consistency/consistency_order_lines.sql", "unique_id": "test.shopify_integration_tests.consistency_order_lines", "fqn": ["shopify_integration_tests", "consistency", "consistency_order_lines"], "alias": "consistency_order_lines", "checksum": {"name": "sha256", "checksum": "0a6491b31602ef2fecc145804b8b8f386801aba35815ea3dc70e4bc0aaf5c3d9"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.7119303, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__order_lines\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__order_lines\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customers.sql", "original_file_path": "tests/consistency/consistency_customers.sql", "unique_id": "test.shopify_integration_tests.consistency_customers", "fqn": ["shopify_integration_tests", "consistency", "consistency_customers"], "alias": "consistency_customers", "checksum": {"name": "sha256", "checksum": "b585f5c5f4001fd7febda99275ce6e83ccc77d28d5113615025a883a10b3fe75"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.7185054, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customers\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customers\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_daily_shop": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_daily_shop", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_daily_shop.sql", "original_file_path": "tests/consistency/consistency_daily_shop.sql", "unique_id": "test.shopify_integration_tests.consistency_daily_shop", "fqn": ["shopify_integration_tests", "consistency", "consistency_daily_shop"], "alias": "consistency_daily_shop", "checksum": {"name": "sha256", "checksum": "c6b82febd4b38d78edcc9e3b3f8dba293d1754d7223d5c16828b5f48f01742f5"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.7240276, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_prod.shopify__daily_shop\n group by 1,2,3\n),\n\ndev as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_dev.shopify__daily_shop\n group by 1,2,3\n),\n\nfinal as (\n select \n prod.date_day as prod_date_day,\n dev.date_day as dev_date_day,\n prod.shop_id as prod_shop_id,\n dev.shop_id as dev_shop_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.count_orders as prod_count_orders,\n dev.count_orders as dev_count_orders,\n prod.count_customers as prod_count_customers,\n dev.count_customers as dev_count_customers,\n prod.order_adjusted_total as prod_order_adjusted_total,\n dev.order_adjusted_total as dev_order_adjusted_total,\n prod.count_abandoned_checkouts as prod_count_abandoned_checkouts,\n dev.count_abandoned_checkouts as dev_count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , prod.count_fulfillment_attempted_delivery as prod_count_fulfillment_attempted_delivery\n , dev.count_fulfillment_attempted_delivery as dev_count_fulfillment_attempted_delivery\n , prod.count_fulfillment_confirmed as prod_count_fulfillment_confirmed\n , dev.count_fulfillment_confirmed as dev_count_fulfillment_confirmed\n {% endif %}\n\n from prod\n full outer join dev \n on dev.date_day = prod.date_day\n and dev.shop_id = prod.shop_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_date_day != dev_date_day or\n prod_shop_id != dev_shop_id or\n prod_source_relation != dev_source_relation or\n abs(prod_count_orders - dev_count_orders) > .001 or\n abs(prod_count_customers - dev_count_customers) > .001 or\n abs(prod_order_adjusted_total - dev_order_adjusted_total) > .001 or\n abs(prod_count_abandoned_checkouts - dev_count_abandoned_checkouts) > .001\n \n {% if var('shopify_using_fulfillment_event', false) %}\n or abs(prod_count_fulfillment_attempted_delivery - dev_count_fulfillment_attempted_delivery) > .001\n or abs(prod_count_fulfillment_confirmed - dev_count_fulfillment_confirmed) > .001\n {% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_cohorts"], "alias": "consistency_customer_cohorts", "checksum": {"name": "sha256", "checksum": "389c12079464cf20fe1f6888a7e40c8bb469148349a20931a8ba997e2f0023fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.7313204, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_orders.sql", "original_file_path": "tests/consistency/consistency_orders.sql", "unique_id": "test.shopify_integration_tests.consistency_orders", "fqn": ["shopify_integration_tests", "consistency", "consistency_orders"], "alias": "consistency_orders", "checksum": {"name": "sha256", "checksum": "0ab8c3335aa456106375ec248d3f309d35588f35d3654b13270a44eadb27faf6"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.737031, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__orders\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__orders\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_line_item_enhanced.sql", "original_file_path": "tests/integrity/vertical_integrity_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_line_item_enhanced", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_line_item_enhanced"], "alias": "vertical_integrity_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "efc2b1e0ac6bc26d2581903d83d1d56be172c14cfff1d8d6d7fa6b6eb160c7f7"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.7436833, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure there is no fanout between the staging order_line_table and the line_item_enhanced model.\nwith stg_order_line as (\n select\n 1 as join_key,\n count(*) as order_line_count,\n count(distinct order_id) as order_count\n from {{ ref('stg_shopify__order_line') }}\n),\n\nline_item_enhanced as (\n select\n 1 as join_key,\n count(*) as line_item_enhanced_count\n from {{ ref('shopify__line_item_enhanced') }}\n),\n\n-- test will return values and fail if the row counts don't match\n\nfinal as (\n select \n stg_order_line.join_key,\n stg_order_line.order_line_count + stg_order_line.order_count as total_line_and_order_count,\n line_item_enhanced.line_item_enhanced_count\n from stg_order_line\n join line_item_enhanced\n on stg_order_line.join_key = line_item_enhanced.join_key\n) \n\nselect *\nfrom final\nwhere total_line_and_order_count != line_item_enhanced_count", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "shopify__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_daily_shop_fulfillment", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_daily_shop_fulfillment.sql", "original_file_path": "tests/integrity/vertical_integrity_daily_shop_fulfillment.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_daily_shop_fulfillment"], "alias": "vertical_integrity_daily_shop_fulfillment", "checksum": {"name": "sha256", "checksum": "ba5dfc5af503b2012b977cd000daf131bf61c08241aad583df03926212225016"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.749733, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n-- test will only run if shopify_using_fulfillment_event is set to True\n\nwith source as (\n\n select *\n from {{ ref('stg_shopify__fulfillment_event') }}\n),\n\nsource_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day,\n shop_id,\n count(distinct case when status = 'delayed' then fulfillment_id end) as count_fulfillment_delayed,\n count(distinct case when status = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit,\n count(distinct case when status = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed,\n count(distinct case when status = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n\n from source\n where happened_at > '2020-01-01' and happened_at < '2024-06-10'\n group by 1,2,3\n),\n\nmodel as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\nmodel_metrics as (\n\n select \n source_relation,\n date_day,\n shop_id,\n sum(count_fulfillment_delayed) as count_fulfillment_delayed,\n sum(count_fulfillment_in_transit) as count_fulfillment_in_transit,\n sum(count_fulfillment_confirmed) as count_fulfillment_confirmed,\n sum(count_fulfillment_delivered) as count_fulfillment_delivered\n\n from model\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2,3\n),\n\nfinal as (\n\n select\n model_metrics.source_relation,\n model_metrics.shop_id as model_shop_id,\n source_metrics.shop_id as source_shop_id,\n model_metrics.date_day as model_date_day,\n source_metrics.date_day as source_date_day,\n coalesce(model_metrics.count_fulfillment_delayed, 0) as model_count_fulfillment_delayed,\n coalesce(source_metrics.count_fulfillment_delayed, 0) as source_count_fulfillment_delayed,\n coalesce(model_metrics.count_fulfillment_in_transit, 0) as model_count_fulfillment_in_transit,\n coalesce(source_metrics.count_fulfillment_in_transit, 0) as source_count_fulfillment_in_transit,\n coalesce(model_metrics.count_fulfillment_confirmed, 0) as model_count_fulfillment_confirmed,\n coalesce(source_metrics.count_fulfillment_confirmed, 0) as source_count_fulfillment_confirmed,\n coalesce(model_metrics.count_fulfillment_delivered, 0) as model_count_fulfillment_delivered,\n coalesce(source_metrics.count_fulfillment_delivered, 0) as source_count_fulfillment_delivered\n\n from model_metrics\n full outer join source_metrics\n on model_metrics.source_relation = source_metrics.source_relation\n and model_metrics.shop_id = source_metrics.shop_id\n and model_metrics.date_day = source_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \nmodel_count_fulfillment_delayed != source_count_fulfillment_delayed or\nmodel_count_fulfillment_in_transit != source_count_fulfillment_in_transit or\nmodel_count_fulfillment_confirmed != source_count_fulfillment_confirmed or\nmodel_count_fulfillment_delivered != source_count_fulfillment_delivered", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.integrity_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_customers.sql", "original_file_path": "tests/integrity/integrity_customers.sql", "unique_id": "test.shopify_integration_tests.integrity_customers", "fqn": ["shopify_integration_tests", "integrity", "integrity_customers"], "alias": "integrity_customers", "checksum": {"name": "sha256", "checksum": "690ac16cf903e5fd89a08680246fd495bf3fbdc94a622f0b9b1ce6f6988d8a74"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.7586076, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n customer_id,\n count(*) as source_customer_tag_count\n from {{ target.schema }}_shopify_dev.stg_shopify__customer_tag\n group by 1\n),\n\ntransform as (\n select\n customer_id,\n array_length(split(customer_tags, ',')) as transform_customer_tag_count -- Only BigQuery compatible for the time being\n from {{ target.schema }}_shopify_dev.shopify__customers\n where customer_tags is not null\n group by customer_id, customer_tags\n), \n\ncompare as (\n select\n source.customer_id,\n source.source_customer_tag_count,\n transform.transform_customer_tag_count\n from source\n full outer join transform\n on source.customer_id = transform.customer_id\n where source.source_customer_tag_count != transform.transform_customer_tag_count\n )\n\nselect *\nfrom compare", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.integrity_inventory_level": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_inventory_level", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_inventory_level.sql", "original_file_path": "tests/integrity/integrity_inventory_level.sql", "unique_id": "test.shopify_integration_tests.integrity_inventory_level", "fqn": ["shopify_integration_tests", "integrity", "integrity_inventory_level"], "alias": "integrity_inventory_level", "checksum": {"name": "sha256", "checksum": "2f633fb0d91b0bebe0152b97a141df7481c08e0df5557ee4962f8d0ebe7bd7ee"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.7642121, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n count(*) as source_count\n from {{ target.schema }}_shopify_dev.stg_shopify__inventory_level as il\n join {{ target.schema }}_shopify_dev.stg_shopify__inventory_item as ii\n on il.inventory_item_id = ii.inventory_item_id \n and il.source_relation = ii.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__location as lo\n on il.location_id = lo.location_id \n and il.source_relation = lo.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__product_variant as pv\n on il.inventory_item_id = pv.inventory_item_id\n and il.source_relation = pv.source_relation\n),\n\ntransform as (\n select\n count(*) as transform_count\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\ncompare as (\n select *\n from source\n cross join transform\n)\n\nselect *\nfrom compare\nwhere source_count != transform_count", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_discounts.sql", "original_file_path": "tests/integrity/vertical_integrity_discounts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_discounts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_discounts"], "alias": "vertical_integrity_discounts", "checksum": {"name": "sha256", "checksum": "591dfe08097b58fd9433339a17d0388c891a6d3eef65c042f13c227737e9ff65"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.770164, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith discount_redeem_code as (\n\n select \n code,\n discount_code_id,\n source_relation\n from {{ ref('stg_shopify__discount_redeem_code') }} \n group by 1, 2, 3\n),\n\ndiscount_codes_unioned as (\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_basic') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_bxgy') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_free_shipping') }} \n group by 1, 2\n\n {% if var('shopify_using_discount_code_app', False) %}\n\n union all\n \n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_app') }} \n group by 1, 2\n {% endif %}\n),\n\ndiscount_codes_source as (\n \n select \n discount_redeem_code.code, \n discount_redeem_code.source_relation,\n count(*) as code_count_source\n from discount_redeem_code\n left join discount_codes_unioned\n on discount_redeem_code.discount_code_id = discount_codes_unioned.discount_code_id\n and discount_redeem_code.source_relation = discount_codes_unioned.source_relation\n group by 1, 2\n),\n\n\ndiscount_codes_end as (\n\n select \n code, \n source_relation,\n count(*) as code_count_end\n from {{ ref('shopify__discounts') }}\n group by 1, 2\n),\n\n\nfinal as (\n\n select \n discount_codes_source.code,\n discount_codes_source.source_relation,\n coalesce(discount_codes_source.code_count_source, 0) as code_count_source,\n coalesce(discount_codes_end.code_count_end, 0) as code_count_end\n from discount_codes_source\n full outer join discount_codes_end\n on discount_codes_source.code = discount_codes_end.code\n and discount_codes_source.source_relation = discount_codes_end.source_relation\n)\n\nselect *\nfrom final\nwhere code_count_source != code_count_end", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}, {"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "horizontal_integrity_daily_shop_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/horizontal_integrity_daily_shop_orders.sql", "original_file_path": "tests/integrity/horizontal_integrity_daily_shop_orders.sql", "unique_id": "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders", "fqn": ["shopify_integration_tests", "integrity", "horizontal_integrity_daily_shop_orders"], "alias": "horizontal_integrity_daily_shop_orders", "checksum": {"name": "sha256", "checksum": "addd76b5760975069f87aac715bd3ade9a52af4049104f635902fd87b8b41b1a"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.7784398, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norder_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from orders\n where created_timestamp > '2020-01-01' and created_timestamp < '2024-06-10'\n group by 1,2\n),\n\ndaily_shop as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\ndaily_shop_metrics as (\n\n select \n source_relation,\n date_day,\n sum(count_orders) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from daily_shop\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2\n),\n\nfinal as (\n\n select\n daily_shop_metrics.source_relation,\n coalesce(daily_shop_metrics.count_orders, 0) as daily_shop_count_orders,\n coalesce(order_metrics.count_orders, 0) as order_count_orders,\n coalesce(daily_shop_metrics.order_adjusted_total, 0) as daily_shop_order_adjusted_total,\n coalesce(order_metrics.order_adjusted_total, 0) as order_order_adjusted_total\n\n from daily_shop_metrics\n full outer join order_metrics\n on daily_shop_metrics.source_relation = order_metrics.source_relation\n and daily_shop_metrics.date_day = order_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \n abs(daily_shop_count_orders - order_count_orders) > 0 or\n abs(daily_shop_order_adjusted_total - order_order_adjusted_total) > .1", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_customer_cohorts.sql", "original_file_path": "tests/integrity/vertical_integrity_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_customer_cohorts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_customer_cohorts"], "alias": "vertical_integrity_customer_cohorts", "checksum": {"name": "sha256", "checksum": "19553b1bce28d0577a330dc5544f21b9326b91d673b50fdfdc0ca5980b17f7ff"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1754595376.7849405, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n), \n\ncustomers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), \n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), \n\ncustomer_cohort_source as (\n\n select \n customers.source_relation,\n count(*) as source_rows \n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n group by 1\n),\n\ncustomer_cohort_end as (\n\n select \n source_relation,\n count(*) as end_rows\n from {{ ref('shopify__customer_cohorts') }}\n group by 1\n),\n\nfinal as (\n select\n customer_cohort_source.source_relation,\n source_rows,\n end_rows\n from customer_cohort_source\n join customer_cohort_end\n on customer_cohort_source.source_relation = customer_cohort_end.source_relation\n where customer_cohort_source.source_rows != customer_cohort_end.end_rows\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "model.shopify_source.stg_shopify_gql__collection_rule": [{"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_rule", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection_rule.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection_rule.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_rule", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection_rule"], "alias": "stg_shopify_gql__collection_rule", "checksum": {"name": "sha256", "checksum": "01b76dc43dec6771d2c2ec7d82f1b18c80fa72974103274014b2147c07abaf8f"}, "config": {"enabled": false, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Defines the rules used to automatically include products in a smart collection. Each rule specifies a product attribute, a comparison relation, and a condition value to match against. These rules are evaluated dynamically to determine collection membership without manual curation.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "{{ doc('_fivetran_synced') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID of the smart collection to which this rule applies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of the rule within the collection's rule set. Rules are evaluated in order and may be grouped depending on collection logic.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "condition": {"name": "condition", "description": "The value to compare against the attribute. For example, \u201cHats\u201d if the rule is targeting products with a title containing \u201cHats\u201d. The interpretation depends on the associated `relation` and `columns` values.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "relation": {"name": "relation", "description": "The operator used to evaluate the rule. Common values include: - `equals` - `contains` - `not_equals` - `starts_with` - `ends_with` - `is_set` - `is_not_set` - `greater_than` - `less_than` - `not_contains`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "columns": {"name": "columns", "description": "The attribute being evaluated by the rule. Example values include: - `title` - `vendor` - `tag` - `variant_price` - `product_category_id` - `variant_compare_at_price` - `variant_metafield_definition` - `product_metafield_definition` - `variant_weight` - `type` - `is_price_reduced`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "{{ doc('source_relation') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": false}, "created_at": 1754595383.8369377, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_rule\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_collection_rule', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_rule_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_shopify_gql__collection_rule_tmp')),\n staging_columns=get_graphql_collection_rule_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n index,\n columns,\n condition,\n relation,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['collection_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_rule_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_rule_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}], "model.shopify_source.stg_shopify_gql__collection_rule_tmp": [{"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_rule_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_rule_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_rule_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_rule_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_rule_tmp"], "alias": "stg_shopify_gql__collection_rule_tmp", "checksum": {"name": "sha256", "checksum": "aea52cb2c08d241449697e4e67354b058c5b993645b80afe28dff54b1189108d"}, "config": {"enabled": false, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": false}, "created_at": 1754595382.0969985, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_rule_tmp\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_collection_rule', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_rule', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_rule_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection_rule"], ["shopify_graphql", "collection_rule"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}], "source.shopify_source.shopify_graphql.collection_rule": [{"database": "postgres", "schema": "public", "name": "collection_rule", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection_rule", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection_rule"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_rule_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Defines the rules used to automatically include products in a smart collection. Each rule specifies a product attribute, a comparison relation, and a condition value to match against. These rules are evaluated dynamically to determine collection membership without manual curation.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "{{ doc('_fivetran_synced') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID of the smart collection to which this rule applies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of the rule within the collection's rule set. Rules are evaluated in order and may be grouped depending on collection logic.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "condition": {"name": "condition", "description": "The value to compare against the attribute. For example, \u201cHats\u201d if the rule is targeting products with a title containing \u201cHats\u201d. The interpretation depends on the associated `relation` and `columns` values.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "relation": {"name": "relation", "description": "The operator used to evaluate the rule. Common values include: - `equals` - `contains` - `not_equals` - `starts_with` - `ends_with` - `is_set` - `is_not_set` - `greater_than` - `less_than` - `not_contains`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "columns": {"name": "columns", "description": "The attribute being evaluated by the rule. Example values include: - `title` - `vendor` - `tag` - `variant_price` - `product_category_id` - `variant_compare_at_price` - `variant_metafield_definition` - `product_metafield_definition` - `variant_weight` - `type` - `is_price_reduced`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": false, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": false, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_rule_data\"", "created_at": 1754595384.2743082, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}]}, "parent_map": {"seed.shopify_integration_tests.shopify_gql_product_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_metafield_data": [], "seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_product_data": [], "seed.shopify_integration_tests.shopify_gql_customer_address_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_customer_data": [], "seed.shopify_integration_tests.shopify_gql_customer_visit_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_media_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_gql_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_data": [], "seed.shopify_integration_tests.shopify_gql_order_data": [], "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_refund_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_gql_collection_rule_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_item_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_gql_location_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_gql_shop_data": [], "seed.shopify_integration_tests.shopify_gql_customer_tag_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_collection_data": [], "seed.shopify_integration_tests.shopify_gql_discount_application_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_level_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_media_image_data": [], "model.shopify.shopify__calendar": [], "model.shopify.shopify__customer_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"], "model.shopify.shopify__customer_email_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"], "model.shopify.shopify__inventory_levels": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media"], "model.shopify.shopify__discounts": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.int_shopify__discounts__order_aggregates"], "model.shopify.shopify__customers": ["model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.shopify__orders": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag"], "model.shopify.shopify__transactions": ["model.shopify_source.stg_shopify__tender_transaction", "model.shopify_source.stg_shopify__transaction"], "model.shopify.shopify__order_lines": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.shopify__products": ["model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.int_shopify__products_with_aggregates"], "model.shopify.shopify__daily_shop": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment", "model.shopify.int_shopify__daily_orders", "model.shopify.shopify__calendar", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__customer_emails": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_media", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_app", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.shopify__orders__order_refunds": ["model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__refund"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order"], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__orders", "model.shopify_source.stg_shopify__order_discount_code"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__order"], "model.shopify.shopify__product_variant_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.shopify__order_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"], "model.shopify.shopify__product_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"], "model.shopify.shopify__customer_metafields": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__metafield"], "model.shopify.shopify__shop_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__collection_metafields": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__metafield"], "model.shopify.shopify__line_item_enhanced": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction"], "model.shopify.shopify_gql__customer_email_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customer_emails", "model.shopify.shopify_gql__orders"], "model.shopify.shopify_gql__customers": ["model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify.shopify_gql__order_lines": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.int_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify.shopify_gql__transactions": ["model.shopify.int_shopify_gql__order", "model.shopify_source.stg_shopify_gql__tender_transaction", "model.shopify_source.stg_shopify_gql__transaction"], "model.shopify.shopify_gql__customer_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customers", "model.shopify.shopify_gql__orders"], "model.shopify.shopify_gql__discounts": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.int_shopify_gql__discounts_order_aggregates"], "model.shopify.shopify_gql__inventory_levels": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__inventory_level", "model.shopify_source.stg_shopify_gql__inventory_quantity", "model.shopify_source.stg_shopify_gql__location", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify.shopify_gql__customer_emails": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.int_shopify_gql__emails_order_aggregates"], "model.shopify.shopify_gql__daily_shop": ["model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__daily_fulfillment", "model.shopify.int_shopify_gql__daily_orders", "model.shopify.shopify__calendar", "model.shopify_source.stg_shopify_gql__shop"], "model.shopify.shopify_gql__products": ["model.shopify.int_shopify_gql__product_order_line_aggregates", "model.shopify.int_shopify_gql__products_with_aggregates"], "model.shopify.shopify_gql__orders": ["model.shopify.int_shopify_gql__order", "model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__order_discount_code", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__order_tag"], "model.shopify.int_shopify_gql__discount_code_enriched": ["model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__discount_code_app", "model.shopify_source.stg_shopify_gql__discount_code_basic", "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "model.shopify_source.stg_shopify_gql__discount_redeem_code"], "model.shopify.int_shopify_gql__products_with_aggregates": ["model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__collection_product", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__product_media", "model.shopify_source.stg_shopify_gql__product_tag", "model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify.int_shopify_gql__customers_order_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__daily_orders": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__emails_order_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__order_shipping_aggregates": ["model.shopify_source.stg_shopify_gql__order_shipping_line", "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "model.shopify.int_shopify_gql__order_fulfillment_aggregates": ["model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "model.shopify.int_shopify_gql__product_order_line_aggregates": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__orders_order_line_aggregates": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify.int_shopify_gql__discounts_order_aggregates": ["model.shopify.int_shopify_gql__order_discount_code", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__daily_fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "model.shopify.int_shopify_gql__customer_email_rollup": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify.int_shopify_gql__orders_order_refunds": ["model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__refund"], "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify_gql__discount_application"], "model.shopify.int_shopify_gql__daily_abandoned_checkouts": ["model.shopify.int_shopify_gql__abandoned_checkout"], "model.shopify.int_shopify_gql__inventory_level_aggregates": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment", "model.shopify_source.stg_shopify_gql__refund"], "model.shopify.int_shopify_gql__order_discount_code": ["model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__order_discount_code"], "model.shopify.int_shopify_gql__order": ["model.shopify_source.stg_shopify_gql__customer_visit", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__product_variant": ["model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify.int_shopify_gql__collection": ["model.shopify_source.stg_shopify_gql__collection"], "model.shopify.int_shopify_gql__abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer"], "model.shopify.int_shopify_gql__customer": ["model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_address"], "model.shopify.int_shopify_gql__order_line": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify.shopify_gql__product_metafields": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__product"], "model.shopify.shopify_gql__collection_metafields": ["model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__customer_metafields": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__shop_metafields": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__shop"], "model.shopify.shopify_gql__order_metafields": ["model.shopify.int_shopify_gql__order", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__product_variant_metafields": ["model.shopify.int_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__line_item_enhanced": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__transaction"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "model.shopify_source.stg_shopify__discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "model.shopify_source.stg_shopify__order": ["model.shopify_source.stg_shopify__order_tmp"], "model.shopify_source.stg_shopify__transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "model.shopify_source.stg_shopify__metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "model.shopify_source.stg_shopify__shop": ["model.shopify_source.stg_shopify__shop_tmp"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"], "model.shopify_source.stg_shopify__customer": ["model.shopify_source.stg_shopify__customer_tmp"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "model.shopify_source.stg_shopify__collection": ["model.shopify_source.stg_shopify__collection_tmp"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "model.shopify_source.stg_shopify__media": ["model.shopify_source.stg_shopify__media_tmp"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "model.shopify_source.stg_shopify__media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "model.shopify_source.stg_shopify__order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "model.shopify_source.stg_shopify__order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "model.shopify_source.stg_shopify__refund": ["model.shopify_source.stg_shopify__refund_tmp"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "model.shopify_source.stg_shopify__product": ["model.shopify_source.stg_shopify__product_tmp"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "model.shopify_source.stg_shopify__location": ["model.shopify_source.stg_shopify__location_tmp"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "model.shopify_source.stg_shopify__product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "model.shopify_source.stg_shopify__metafield_tmp": ["source.shopify_source.shopify.metafield"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["source.shopify_source.shopify.discount_code_bxgy"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["source.shopify_source.shopify.fulfillment"], "model.shopify_source.stg_shopify__product_variant_tmp": ["source.shopify_source.shopify.product_variant"], "model.shopify_source.stg_shopify__collection_tmp": ["source.shopify_source.shopify.collection"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["source.shopify_source.shopify.order_discount_code"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["source.shopify_source.shopify.order_url_tag"], "model.shopify_source.stg_shopify__product_tmp": ["source.shopify_source.shopify.product"], "model.shopify_source.stg_shopify__order_tag_tmp": ["source.shopify_source.shopify.order_tag"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["source.shopify_source.shopify.inventory_quantity"], "model.shopify_source.stg_shopify__tax_line_tmp": ["source.shopify_source.shopify.tax_line"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["source.shopify_source.shopify.customer_tag"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["source.shopify_source.shopify.discount_allocation"], "model.shopify_source.stg_shopify__media_image_tmp": ["source.shopify_source.shopify.media_image"], "model.shopify_source.stg_shopify__media_tmp": ["source.shopify_source.shopify.media"], "model.shopify_source.stg_shopify__refund_tmp": ["source.shopify_source.shopify.refund"], "model.shopify_source.stg_shopify__location_tmp": ["source.shopify_source.shopify.location"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["source.shopify_source.shopify.inventory_level"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["source.shopify_source.shopify.order_shipping_line"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["source.shopify_source.shopify.abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["source.shopify_source.shopify.fulfillment_event"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["source.shopify_source.shopify.order_line_refund"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["source.shopify_source.shopify.discount_code_app"], "model.shopify_source.stg_shopify__shop_tmp": ["source.shopify_source.shopify.shop"], "model.shopify_source.stg_shopify__transaction_tmp": ["source.shopify_source.shopify.transaction"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["source.shopify_source.shopify.product_variant_media"], "model.shopify_source.stg_shopify__order_line_tmp": ["source.shopify_source.shopify.order_line"], "model.shopify_source.stg_shopify__product_media_tmp": ["source.shopify_source.shopify.product_media"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["source.shopify_source.shopify.discount_code_basic"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["source.shopify_source.shopify.order_shipping_tax_line"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["source.shopify_source.shopify.order_note_attribute"], "model.shopify_source.stg_shopify__discount_application_tmp": ["source.shopify_source.shopify.discount_application"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["source.shopify_source.shopify.tender_transaction"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["source.shopify_source.shopify.discount_code_free_shipping"], "model.shopify_source.stg_shopify__product_tag_tmp": ["source.shopify_source.shopify.product_tag"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["source.shopify_source.shopify.inventory_item"], "model.shopify_source.stg_shopify__order_tmp": ["source.shopify_source.shopify.order"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["source.shopify_source.shopify.discount_redeem_code"], "model.shopify_source.stg_shopify__customer_tmp": ["source.shopify_source.shopify.customer"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["source.shopify_source.shopify.order_adjustment"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__collection_product_tmp": ["source.shopify_source.shopify.collection_product"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["source.shopify_source.shopify.abandoned_checkout"], "model.shopify_source.stg_shopify_gql__media": ["model.shopify_source.stg_shopify_gql__media_tmp"], "model.shopify_source.stg_shopify_gql__customer_visit": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_app": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"], "model.shopify_source.stg_shopify_gql__customer_tag": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"], "model.shopify_source.stg_shopify_gql__order": ["model.shopify_source.stg_shopify_gql__order_tmp"], "model.shopify_source.stg_shopify_gql__order_line": ["model.shopify_source.stg_shopify_gql__order_line_tmp"], "model.shopify_source.stg_shopify_gql__inventory_item": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"], "model.shopify_source.stg_shopify_gql__order_shipping_line": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"], "model.shopify_source.stg_shopify_gql__product": ["model.shopify_source.stg_shopify_gql__product_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"], "model.shopify_source.stg_shopify_gql__discount_allocation": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"], "model.shopify_source.stg_shopify_gql__tax_line": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"], "model.shopify_source.stg_shopify_gql__order_line_refund": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"], "model.shopify_source.stg_shopify_gql__inventory_level": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"], "model.shopify_source.stg_shopify_gql__shop": ["model.shopify_source.stg_shopify_gql__shop_tmp"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "model.shopify_source.stg_shopify_gql__location": ["model.shopify_source.stg_shopify_gql__location_tmp"], "model.shopify_source.stg_shopify_gql__transaction": ["model.shopify_source.stg_shopify_gql__transaction_tmp"], "model.shopify_source.stg_shopify_gql__product_media": ["model.shopify_source.stg_shopify_gql__product_media_tmp"], "model.shopify_source.stg_shopify_gql__product_variant": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"], "model.shopify_source.stg_shopify_gql__media_image": ["model.shopify_source.stg_shopify_gql__media_image_tmp"], "model.shopify_source.stg_shopify_gql__abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"], "model.shopify_source.stg_shopify_gql__collection": ["model.shopify_source.stg_shopify_gql__collection_tmp"], "model.shopify_source.stg_shopify_gql__refund": ["model.shopify_source.stg_shopify_gql__refund_tmp"], "model.shopify_source.stg_shopify_gql__discount_application": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"], "model.shopify_source.stg_shopify_gql__order_discount_code": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_basic": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"], "model.shopify_source.stg_shopify_gql__order_note_attribute": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"], "model.shopify_source.stg_shopify_gql__tender_transaction": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"], "model.shopify_source.stg_shopify_gql__customer": ["model.shopify_source.stg_shopify_gql__customer_tmp"], "model.shopify_source.stg_shopify_gql__product_tag": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"], "model.shopify_source.stg_shopify_gql__order_tag": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"], "model.shopify_source.stg_shopify_gql__metafield": ["model.shopify_source.stg_shopify_gql__metafield_tmp"], "model.shopify_source.stg_shopify_gql__product_variant_media": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"], "model.shopify_source.stg_shopify_gql__collection_product": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"], "model.shopify_source.stg_shopify_gql__inventory_quantity": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_event": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"], "model.shopify_source.stg_shopify_gql__customer_address": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"], "model.shopify_source.stg_shopify_gql__order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"], "model.shopify_source.stg_shopify_gql__discount_redeem_code": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"], "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": ["source.shopify_source.shopify_graphql.discount_redeem_code"], "model.shopify_source.stg_shopify_gql__refund_tmp": ["source.shopify_source.shopify_graphql.refund"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": ["source.shopify_source.shopify_graphql.discount_code_bxgy"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": ["source.shopify_source.shopify_graphql.fulfillment_tracking_info"], "model.shopify_source.stg_shopify_gql__customer_tmp": ["source.shopify_source.shopify_graphql.customer"], "model.shopify_source.stg_shopify_gql__product_tmp": ["source.shopify_source.shopify_graphql.product"], "model.shopify_source.stg_shopify_gql__customer_visit_tmp": ["source.shopify_source.shopify_graphql.customer_visit"], "model.shopify_source.stg_shopify_gql__shop_tmp": ["source.shopify_source.shopify_graphql.shop"], "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": ["source.shopify_source.shopify_graphql.inventory_quantity"], "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": ["source.shopify_source.shopify_graphql.order_shipping_line"], "model.shopify_source.stg_shopify_gql__collection_tmp": ["source.shopify_source.shopify_graphql.collection"], "model.shopify_source.stg_shopify_gql__inventory_item_tmp": ["source.shopify_source.shopify_graphql.inventory_item"], "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": ["source.shopify_source.shopify_graphql.discount_code_basic"], "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": ["source.shopify_source.shopify_graphql.order_adjustment"], "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": ["source.shopify_source.shopify_graphql.order_note_attribute"], "model.shopify_source.stg_shopify_gql__discount_application_tmp": ["source.shopify_source.shopify_graphql.discount_application"], "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": ["source.shopify_source.shopify_graphql.discount_code_app"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": ["source.shopify_source.shopify_graphql.order_shipping_tax_line"], "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": ["source.shopify_source.shopify_graphql.order_line_refund"], "model.shopify_source.stg_shopify_gql__metafield_tmp": ["source.shopify_source.shopify_graphql.metafield"], "model.shopify_source.stg_shopify_gql__order_line_tmp": ["source.shopify_source.shopify_graphql.order_line"], "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": ["source.shopify_source.shopify_graphql.product_variant_media"], "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": ["source.shopify_source.shopify_graphql.order_discount_code"], "model.shopify_source.stg_shopify_gql__product_variant_tmp": ["source.shopify_source.shopify_graphql.product_variant"], "model.shopify_source.stg_shopify_gql__order_tmp": ["source.shopify_source.shopify_graphql.order"], "model.shopify_source.stg_shopify_gql__location_tmp": ["source.shopify_source.shopify_graphql.location"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": ["source.shopify_source.shopify_graphql.discount_code_free_shipping"], "model.shopify_source.stg_shopify_gql__tax_line_tmp": ["source.shopify_source.shopify_graphql.tax_line"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": ["source.shopify_source.shopify_graphql.fulfillment_order_line_item"], "model.shopify_source.stg_shopify_gql__collection_product_tmp": ["source.shopify_source.shopify_graphql.collection_product"], "model.shopify_source.stg_shopify_gql__fulfillment_tmp": ["source.shopify_source.shopify_graphql.fulfillment"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": ["source.shopify_source.shopify_graphql.abandoned_checkout"], "model.shopify_source.stg_shopify_gql__order_tag_tmp": ["source.shopify_source.shopify_graphql.order_tag"], "model.shopify_source.stg_shopify_gql__product_media_tmp": ["source.shopify_source.shopify_graphql.product_media"], "model.shopify_source.stg_shopify_gql__media_image_tmp": ["source.shopify_source.shopify_graphql.media_image"], "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": ["source.shopify_source.shopify_graphql.tender_transaction"], "model.shopify_source.stg_shopify_gql__media_tmp": ["source.shopify_source.shopify_graphql.media"], "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": ["source.shopify_source.shopify_graphql.discount_allocation"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": ["source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify_gql__inventory_level_tmp": ["source.shopify_source.shopify_graphql.inventory_level"], "model.shopify_source.stg_shopify_gql__customer_tag_tmp": ["source.shopify_source.shopify_graphql.customer_tag"], "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": ["source.shopify_source.shopify_graphql.fulfillment_event"], "model.shopify_source.stg_shopify_gql__transaction_tmp": ["source.shopify_source.shopify_graphql.transaction"], "model.shopify_source.stg_shopify_gql__product_tag_tmp": ["source.shopify_source.shopify_graphql.product_tag"], "model.shopify_source.stg_shopify_gql__customer_address_tmp": ["source.shopify_source.shopify_graphql.customer_address"], "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": ["model.shopify.shopify_gql__customer_cohorts"], "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": ["model.shopify.shopify_gql__customer_cohorts"], "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": ["model.shopify.shopify_gql__customer_email_cohorts"], "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": ["model.shopify.shopify_gql__customer_email_cohorts"], "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": ["model.shopify.shopify_gql__orders"], "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": ["model.shopify.shopify_gql__orders"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171": ["model.shopify.shopify_gql__customers"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003": ["model.shopify.shopify_gql__customer_emails"], "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": ["model.shopify.shopify_gql__products"], "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": ["model.shopify.shopify_gql__products"], "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": ["model.shopify.shopify_gql__order_lines"], "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": ["model.shopify.shopify_gql__order_lines"], "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": ["model.shopify.shopify_gql__transactions"], "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": ["model.shopify.shopify_gql__transactions"], "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": ["model.shopify.shopify_gql__discounts"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": ["model.shopify.shopify_gql__daily_shop"], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": ["model.shopify.shopify__customer_cohorts"], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": ["model.shopify.shopify__customer_cohorts"], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": ["model.shopify.shopify__orders"], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": ["model.shopify.shopify__orders"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": ["model.shopify.shopify__customers"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": ["model.shopify.shopify__customer_emails"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": ["model.shopify.shopify__products"], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": ["model.shopify.shopify__order_lines"], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": ["model.shopify.shopify__order_lines"], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": ["model.shopify.shopify__inventory_levels"], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": ["model.shopify.shopify__inventory_levels"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": ["model.shopify.shopify__inventory_levels"], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": ["model.shopify.shopify__discounts"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": ["model.shopify.shopify__daily_shop"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": ["model.shopify.shopify__customers__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": ["model.shopify.shopify__orders__order_line_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": ["model.shopify.int_shopify__emails__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": ["model.shopify.int_shopify__customer_email_rollup"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": ["model.shopify.int_shopify__inventory_level__aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": ["model.shopify.int_shopify__discounts__order_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": ["model.shopify.int_shopify__discounts__abandoned_checkouts"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": ["model.shopify.int_shopify__order__shipping_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": ["model.shopify.int_shopify__product__order_line_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": ["model.shopify.int_shopify__products_with_aggregates"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": ["model.shopify.shopify__line_item_enhanced"], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1": ["model.shopify.shopify_gql__line_item_enhanced"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": ["model.shopify_source.stg_shopify__customer"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": ["model.shopify_source.stg_shopify__order_line_refund"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": ["model.shopify_source.stg_shopify__order_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": ["model.shopify_source.stg_shopify__order"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": ["model.shopify_source.stg_shopify__product"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": ["model.shopify_source.stg_shopify__product_variant"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": ["model.shopify_source.stg_shopify__transaction"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": ["model.shopify_source.stg_shopify__refund"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": ["model.shopify_source.stg_shopify__order_adjustment"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": ["model.shopify_source.stg_shopify__abandoned_checkout"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": ["model.shopify_source.stg_shopify__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": ["model.shopify_source.stg_shopify__collection"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": ["model.shopify_source.stg_shopify__collection"], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": ["model.shopify_source.stg_shopify__inventory_item"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": ["model.shopify_source.stg_shopify__inventory_item"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": ["model.shopify_source.stg_shopify__inventory_level"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": ["model.shopify_source.stg_shopify__inventory_quantity"], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": ["model.shopify_source.stg_shopify__location"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": ["model.shopify_source.stg_shopify__location"], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": ["model.shopify_source.stg_shopify__media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": ["model.shopify_source.stg_shopify__media"], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": ["model.shopify_source.stg_shopify__media_image"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": ["model.shopify_source.stg_shopify__media_image"], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": ["model.shopify_source.stg_shopify__metafield"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": ["model.shopify_source.stg_shopify__metafield"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": ["model.shopify_source.stg_shopify__order_shipping_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": ["model.shopify_source.stg_shopify__order_shipping_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": ["model.shopify_source.stg_shopify__shop"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": ["model.shopify_source.stg_shopify__shop"], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": ["model.shopify_source.stg_shopify__tender_transaction"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": ["model.shopify_source.stg_shopify__tender_transaction"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": ["model.shopify_source.stg_shopify__fulfillment_event"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": ["model.shopify_source.stg_shopify__fulfillment_event"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": ["model.shopify_source.stg_shopify__tax_line"], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": ["model.shopify_source.stg_shopify__discount_code_app"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": ["model.shopify_source.stg_shopify__discount_code_app"], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": ["model.shopify_source.stg_shopify__discount_code_basic"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": ["model.shopify_source.stg_shopify__discount_code_basic"], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": ["model.shopify_source.stg_shopify__discount_redeem_code"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": ["model.shopify_source.stg_shopify__discount_redeem_code"], "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": ["model.shopify_source.stg_shopify_gql__customer"], "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": ["model.shopify_source.stg_shopify_gql__customer"], "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": ["model.shopify_source.stg_shopify_gql__order"], "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": ["model.shopify_source.stg_shopify_gql__order"], "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": ["model.shopify_source.stg_shopify_gql__order_line"], "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": ["model.shopify_source.stg_shopify_gql__order_line"], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": ["model.shopify_source.stg_shopify_gql__product"], "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": ["model.shopify_source.stg_shopify_gql__product"], "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": ["model.shopify_source.stg_shopify_gql__product_variant"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": ["model.shopify_source.stg_shopify_gql__product_variant"], "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": ["model.shopify_source.stg_shopify_gql__refund"], "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": ["model.shopify_source.stg_shopify_gql__refund"], "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": ["model.shopify_source.stg_shopify_gql__tax_line"], "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": ["model.shopify_source.stg_shopify_gql__tax_line"], "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": ["model.shopify_source.stg_shopify_gql__transaction"], "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": ["model.shopify_source.stg_shopify_gql__transaction"], "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": ["model.shopify_source.stg_shopify_gql__customer_visit"], "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": ["model.shopify_source.stg_shopify_gql__customer_visit"], "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": [], "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": [], "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": ["model.shopify_source.stg_shopify_gql__customer_address"], "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": ["model.shopify_source.stg_shopify_gql__customer_address"], "source.shopify_source.shopify.order": [], "source.shopify_source.shopify.customer": [], "source.shopify_source.shopify.order_line": [], "source.shopify_source.shopify.order_line_refund": [], "source.shopify_source.shopify.product": [], "source.shopify_source.shopify.product_variant": [], "source.shopify_source.shopify.transaction": [], "source.shopify_source.shopify.refund": [], "source.shopify_source.shopify.order_adjustment": [], "source.shopify_source.shopify.abandoned_checkout": [], "source.shopify_source.shopify.collection_product": [], "source.shopify_source.shopify.collection": [], "source.shopify_source.shopify.customer_tag": [], "source.shopify_source.shopify.fulfillment": [], "source.shopify_source.shopify.inventory_item": [], "source.shopify_source.shopify.inventory_level": [], "source.shopify_source.shopify.inventory_quantity": [], "source.shopify_source.shopify.location": [], "source.shopify_source.shopify.metafield": [], "source.shopify_source.shopify.order_note_attribute": [], "source.shopify_source.shopify.order_shipping_line": [], "source.shopify_source.shopify.order_shipping_tax_line": [], "source.shopify_source.shopify.order_tag": [], "source.shopify_source.shopify.order_url_tag": [], "source.shopify_source.shopify.media": [], "source.shopify_source.shopify.media_image": [], "source.shopify_source.shopify.product_media": [], "source.shopify_source.shopify.product_variant_media": [], "source.shopify_source.shopify.product_tag": [], "source.shopify_source.shopify.shop": [], "source.shopify_source.shopify.tender_transaction": [], "source.shopify_source.shopify.abandoned_checkout_discount_code": [], "source.shopify_source.shopify.order_discount_code": [], "source.shopify_source.shopify.abandoned_checkout_shipping_line": [], "source.shopify_source.shopify.fulfillment_event": [], "source.shopify_source.shopify.tax_line": [], "source.shopify_source.shopify.discount_allocation": [], "source.shopify_source.shopify.discount_application": [], "source.shopify_source.shopify.discount_code_app": [], "source.shopify_source.shopify.discount_code_basic": [], "source.shopify_source.shopify.discount_code_bxgy": [], "source.shopify_source.shopify.discount_code_free_shipping": [], "source.shopify_source.shopify.discount_redeem_code": [], "source.shopify_source.shopify_graphql.order": [], "source.shopify_source.shopify_graphql.customer": [], "source.shopify_source.shopify_graphql.order_line": [], "source.shopify_source.shopify_graphql.order_line_refund": [], "source.shopify_source.shopify_graphql.product": [], "source.shopify_source.shopify_graphql.product_variant": [], "source.shopify_source.shopify_graphql.transaction": [], "source.shopify_source.shopify_graphql.refund": [], "source.shopify_source.shopify_graphql.order_adjustment": [], "source.shopify_source.shopify_graphql.abandoned_checkout": [], "source.shopify_source.shopify_graphql.collection_product": [], "source.shopify_source.shopify_graphql.collection": [], "source.shopify_source.shopify_graphql.customer_tag": [], "source.shopify_source.shopify_graphql.fulfillment": [], "source.shopify_source.shopify_graphql.inventory_item": [], "source.shopify_source.shopify_graphql.inventory_level": [], "source.shopify_source.shopify_graphql.inventory_quantity": [], "source.shopify_source.shopify_graphql.location": [], "source.shopify_source.shopify_graphql.metafield": [], "source.shopify_source.shopify_graphql.order_note_attribute": [], "source.shopify_source.shopify_graphql.order_shipping_line": [], "source.shopify_source.shopify_graphql.order_shipping_tax_line": [], "source.shopify_source.shopify_graphql.order_tag": [], "source.shopify_source.shopify_graphql.media": [], "source.shopify_source.shopify_graphql.media_image": [], "source.shopify_source.shopify_graphql.product_media": [], "source.shopify_source.shopify_graphql.product_variant_media": [], "source.shopify_source.shopify_graphql.product_tag": [], "source.shopify_source.shopify_graphql.shop": [], "source.shopify_source.shopify_graphql.tender_transaction": [], "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": [], "source.shopify_source.shopify_graphql.order_discount_code": [], "source.shopify_source.shopify_graphql.fulfillment_event": [], "source.shopify_source.shopify_graphql.tax_line": [], "source.shopify_source.shopify_graphql.discount_allocation": [], "source.shopify_source.shopify_graphql.discount_application": [], "source.shopify_source.shopify_graphql.discount_code_app": [], "source.shopify_source.shopify_graphql.discount_code_basic": [], "source.shopify_source.shopify_graphql.discount_code_bxgy": [], "source.shopify_source.shopify_graphql.discount_code_free_shipping": [], "source.shopify_source.shopify_graphql.discount_redeem_code": [], "source.shopify_source.shopify_graphql.fulfillment_tracking_info": [], "source.shopify_source.shopify_graphql.customer_visit": [], "source.shopify_source.shopify_graphql.fulfillment_order_line_item": [], "source.shopify_source.shopify_graphql.customer_address": []}, "child_map": {"seed.shopify_integration_tests.shopify_gql_product_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_metafield_data": [], "seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_product_data": [], "seed.shopify_integration_tests.shopify_gql_customer_address_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_customer_data": [], "seed.shopify_integration_tests.shopify_gql_customer_visit_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_media_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_gql_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_data": [], "seed.shopify_integration_tests.shopify_gql_order_data": [], "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_refund_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_gql_collection_rule_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_item_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_gql_location_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_gql_shop_data": [], "seed.shopify_integration_tests.shopify_gql_customer_tag_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_collection_data": [], "seed.shopify_integration_tests.shopify_gql_discount_application_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_level_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_media_image_data": [], "model.shopify.shopify__calendar": ["model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "model.shopify.shopify__daily_shop", "model.shopify.shopify_gql__customer_cohorts", "model.shopify.shopify_gql__customer_email_cohorts", "model.shopify.shopify_gql__daily_shop"], "model.shopify.shopify__customer_cohorts": ["test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a"], "model.shopify.shopify__customer_email_cohorts": ["test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182"], "model.shopify.shopify__inventory_levels": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606", "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0"], "model.shopify.shopify__discounts": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f", "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f"], "model.shopify.shopify__customers": ["model.shopify.shopify__customer_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469"], "model.shopify.shopify__orders": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51"], "model.shopify.shopify__transactions": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981"], "model.shopify.shopify__order_lines": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__product__order_line_aggregates", "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e"], "model.shopify.shopify__products": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a"], "model.shopify.shopify__daily_shop": ["test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f"], "model.shopify.shopify__customer_emails": ["model.shopify.shopify__customer_email_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__inventory_levels", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__products", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify.shopify__products", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify.shopify__discounts"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__orders", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify.shopify__customer_emails", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda"], "model.shopify.shopify__orders__order_refunds": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify.shopify__discounts", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__customer_emails", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a"], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__discounts", "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__customers", "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9"], "model.shopify.shopify__product_variant_metafields": [], "model.shopify.shopify__order_metafields": [], "model.shopify.shopify__product_metafields": [], "model.shopify.shopify__customer_metafields": [], "model.shopify.shopify__shop_metafields": [], "model.shopify.shopify__collection_metafields": [], "model.shopify.shopify__line_item_enhanced": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae"], "model.shopify.shopify_gql__customer_email_cohorts": ["test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f", "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27"], "model.shopify.shopify_gql__customers": ["model.shopify.shopify_gql__customer_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171"], "model.shopify.shopify_gql__order_lines": ["model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__product_order_line_aggregates", "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db", "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4"], "model.shopify.shopify_gql__transactions": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d", "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c"], "model.shopify.shopify_gql__customer_cohorts": ["test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2", "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c"], "model.shopify.shopify_gql__discounts": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92", "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264", "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994", "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5"], "model.shopify.shopify_gql__inventory_levels": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b", "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957", "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e"], "model.shopify.shopify_gql__customer_emails": ["model.shopify.shopify_gql__customer_email_cohorts", "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003"], "model.shopify.shopify_gql__daily_shop": ["test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8"], "model.shopify.shopify_gql__products": ["test.shopify.not_null_shopify_gql__products_unique_key.4982d88497", "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326"], "model.shopify.shopify_gql__orders": ["model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.int_shopify_gql__product_order_line_aggregates", "model.shopify.shopify_gql__customer_cohorts", "model.shopify.shopify_gql__customer_email_cohorts", "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041", "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077"], "model.shopify.int_shopify_gql__discount_code_enriched": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__products_with_aggregates": ["model.shopify.shopify_gql__products"], "model.shopify.int_shopify_gql__customers_order_aggregates": ["model.shopify.shopify_gql__customers"], "model.shopify.int_shopify_gql__daily_orders": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__emails_order_aggregates": ["model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__order_shipping_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__line_item_enhanced"], "model.shopify.int_shopify_gql__order_fulfillment_aggregates": ["model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__product_order_line_aggregates": ["model.shopify.shopify_gql__products"], "model.shopify.int_shopify_gql__orders_order_line_aggregates": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__discounts_order_aggregates": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__daily_fulfillment": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__customer_email_rollup": ["model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__orders_order_refunds": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__daily_abandoned_checkouts": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__inventory_level_aggregates": ["model.shopify.shopify_gql__inventory_levels"], "model.shopify.int_shopify_gql__order_adjustment": ["model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__order_discount_code": ["model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__order": ["model.shopify.shopify_gql__order_metafields", "model.shopify.shopify_gql__orders", "model.shopify.shopify_gql__transactions"], "model.shopify.int_shopify_gql__product_variant": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__product_variant_metafields"], "model.shopify.int_shopify_gql__collection": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__collection_metafields"], "model.shopify.int_shopify_gql__abandoned_checkout": ["model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__customer": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.shopify_gql__customer_metafields", "model.shopify.shopify_gql__customers"], "model.shopify.int_shopify_gql__order_line": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.shopify_gql__order_lines"], "model.shopify.shopify_gql__product_metafields": [], "model.shopify.shopify_gql__collection_metafields": [], "model.shopify.shopify_gql__customer_metafields": [], "model.shopify.shopify_gql__shop_metafields": [], "model.shopify.shopify_gql__order_metafields": [], "model.shopify.shopify_gql__product_variant_metafields": [], "model.shopify.shopify_gql__line_item_enhanced": ["test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933", "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613"], "model.shopify_source.stg_shopify__discount_allocation": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300", "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330"], "model.shopify_source.stg_shopify__order": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_metafields", "model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1"], "model.shopify_source.stg_shopify__transaction": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__transactions", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5", "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__orders", "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a", "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e"], "model.shopify_source.stg_shopify__metafield": ["model.shopify.shopify__collection_metafields", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__order_metafields", "model.shopify.shopify__product_metafields", "model.shopify.shopify__product_variant_metafields", "model.shopify.shopify__shop_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca", "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7", "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify.shopify__transactions", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b", "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295"], "model.shopify_source.stg_shopify__shop": ["model.shopify.shopify__daily_shop", "model.shopify.shopify__shop_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415", "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c", "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb"], "model.shopify_source.stg_shopify__customer": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__customers", "model.shopify.shopify__line_item_enhanced", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84", "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe"], "model.shopify_source.stg_shopify__collection": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__collection_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878", "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0"], "model.shopify_source.stg_shopify__media": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f", "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c", "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc", "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "model.shopify.shopify__product_variant_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26", "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d"], "model.shopify_source.stg_shopify__media_image": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5", "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b"], "model.shopify_source.stg_shopify__order_line": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032", "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify.int_shopify__daily_fulfillment", "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a"], "model.shopify_source.stg_shopify__order_note_attribute": ["test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0", "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_refunds", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29"], "model.shopify_source.stg_shopify__refund": ["model.shopify.shopify__orders__order_refunds", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.shopify__customers", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f", "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd"], "model.shopify_source.stg_shopify__product": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__product_metafields", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07", "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6"], "model.shopify_source.stg_shopify__location": ["model.shopify.shopify__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9", "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify.shopify__orders", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf", "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1"], "model.shopify_source.stg_shopify__product_media": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea", "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19", "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.shopify__customer_emails", "model.shopify.shopify__customers", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c", "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify.int_shopify__discounts__abandoned_checkouts", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify.int_shopify__discounts__abandoned_checkouts", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e", "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1"], "model.shopify_source.stg_shopify__metafield_tmp": ["model.shopify_source.stg_shopify__metafield"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["model.shopify_source.stg_shopify__fulfillment"], "model.shopify_source.stg_shopify__product_variant_tmp": ["model.shopify_source.stg_shopify__product_variant"], "model.shopify_source.stg_shopify__collection_tmp": ["model.shopify_source.stg_shopify__collection"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["model.shopify_source.stg_shopify__order_discount_code"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["model.shopify_source.stg_shopify__order_url_tag"], "model.shopify_source.stg_shopify__product_tmp": ["model.shopify_source.stg_shopify__product"], "model.shopify_source.stg_shopify__order_tag_tmp": ["model.shopify_source.stg_shopify__order_tag"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["model.shopify_source.stg_shopify__inventory_quantity"], "model.shopify_source.stg_shopify__tax_line_tmp": ["model.shopify_source.stg_shopify__tax_line"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["model.shopify_source.stg_shopify__customer_tag"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["model.shopify_source.stg_shopify__discount_allocation"], "model.shopify_source.stg_shopify__media_image_tmp": ["model.shopify_source.stg_shopify__media_image"], "model.shopify_source.stg_shopify__media_tmp": ["model.shopify_source.stg_shopify__media"], "model.shopify_source.stg_shopify__refund_tmp": ["model.shopify_source.stg_shopify__refund"], "model.shopify_source.stg_shopify__location_tmp": ["model.shopify_source.stg_shopify__location"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["model.shopify_source.stg_shopify__inventory_level"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_line"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["model.shopify_source.stg_shopify__order_line_refund"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["model.shopify_source.stg_shopify__discount_code_app"], "model.shopify_source.stg_shopify__shop_tmp": ["model.shopify_source.stg_shopify__shop"], "model.shopify_source.stg_shopify__transaction_tmp": ["model.shopify_source.stg_shopify__transaction"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["model.shopify_source.stg_shopify__product_variant_media"], "model.shopify_source.stg_shopify__order_line_tmp": ["model.shopify_source.stg_shopify__order_line"], "model.shopify_source.stg_shopify__product_media_tmp": ["model.shopify_source.stg_shopify__product_media"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["model.shopify_source.stg_shopify__discount_code_basic"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["model.shopify_source.stg_shopify__order_note_attribute"], "model.shopify_source.stg_shopify__discount_application_tmp": ["model.shopify_source.stg_shopify__discount_application"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["model.shopify_source.stg_shopify__tender_transaction"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "model.shopify_source.stg_shopify__product_tag_tmp": ["model.shopify_source.stg_shopify__product_tag"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["model.shopify_source.stg_shopify__inventory_item"], "model.shopify_source.stg_shopify__order_tmp": ["model.shopify_source.stg_shopify__order"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify_source.stg_shopify__customer_tmp": ["model.shopify_source.stg_shopify__customer"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["model.shopify_source.stg_shopify__order_adjustment"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__collection_product_tmp": ["model.shopify_source.stg_shopify__collection_product"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify_source.stg_shopify_gql__media": ["test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a", "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac", "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989"], "model.shopify_source.stg_shopify_gql__customer_visit": ["model.shopify.int_shopify_gql__order", "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89", "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2"], "model.shopify_source.stg_shopify_gql__discount_code_app": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2", "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c", "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981"], "model.shopify_source.stg_shopify_gql__customer_tag": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.shopify_gql__customers", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8", "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740"], "model.shopify_source.stg_shopify_gql__order": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.int_shopify_gql__order", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b", "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36"], "model.shopify_source.stg_shopify_gql__order_line": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43", "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85"], "model.shopify_source.stg_shopify_gql__inventory_item": ["model.shopify.int_shopify_gql__product_variant", "model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8", "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91", "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8", "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": ["model.shopify.int_shopify_gql__order_line", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c", "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12"], "model.shopify_source.stg_shopify_gql__order_shipping_line": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd", "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478"], "model.shopify_source.stg_shopify_gql__product": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__inventory_levels", "model.shopify.shopify_gql__line_item_enhanced", "model.shopify.shopify_gql__product_metafields", "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb", "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a"], "model.shopify_source.stg_shopify_gql__fulfillment": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a", "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578"], "model.shopify_source.stg_shopify_gql__discount_allocation": ["test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a", "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e", "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04", "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685"], "model.shopify_source.stg_shopify_gql__tax_line": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173", "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33"], "model.shopify_source.stg_shopify_gql__order_line_refund": ["model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e", "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20"], "model.shopify_source.stg_shopify_gql__inventory_level": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd", "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd", "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570"], "model.shopify_source.stg_shopify_gql__shop": ["model.shopify.shopify_gql__daily_shop", "model.shopify.shopify_gql__shop_metafields", "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531", "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075", "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": ["model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398", "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76"], "model.shopify_source.stg_shopify_gql__location": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be", "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03", "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e"], "model.shopify_source.stg_shopify_gql__transaction": ["model.shopify.shopify_gql__line_item_enhanced", "model.shopify.shopify_gql__transactions", "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb", "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd"], "model.shopify_source.stg_shopify_gql__product_media": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb", "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49", "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800", "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b"], "model.shopify_source.stg_shopify_gql__product_variant": ["model.shopify.int_shopify_gql__product_variant", "model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3", "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735"], "model.shopify_source.stg_shopify_gql__media_image": ["test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141", "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4", "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6"], "model.shopify_source.stg_shopify_gql__abandoned_checkout": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.shopify_gql__customers", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f", "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0"], "model.shopify_source.stg_shopify_gql__collection": ["model.shopify.int_shopify_gql__collection", "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6", "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87", "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e"], "model.shopify_source.stg_shopify_gql__refund": ["model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__orders_order_refunds", "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a", "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c"], "model.shopify_source.stg_shopify_gql__discount_application": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.int_shopify_gql__order_discount_code", "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4", "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0", "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af", "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": ["model.shopify.int_shopify_gql__order_fulfillment_aggregates", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8", "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e"], "model.shopify_source.stg_shopify_gql__order_discount_code": ["model.shopify.int_shopify_gql__order_discount_code", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8", "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7"], "model.shopify_source.stg_shopify_gql__discount_code_basic": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc", "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec", "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb"], "model.shopify_source.stg_shopify_gql__order_note_attribute": ["test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e", "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc", "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6", "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c"], "model.shopify_source.stg_shopify_gql__tender_transaction": ["model.shopify.shopify_gql__transactions", "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7", "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93", "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475"], "model.shopify_source.stg_shopify_gql__customer": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7", "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271"], "model.shopify_source.stg_shopify_gql__product_tag": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd", "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c", "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984", "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0"], "model.shopify_source.stg_shopify_gql__order_tag": ["model.shopify.shopify_gql__orders", "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661", "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290", "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479", "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461"], "model.shopify_source.stg_shopify_gql__metafield": ["model.shopify.shopify_gql__collection_metafields", "model.shopify.shopify_gql__customer_metafields", "model.shopify.shopify_gql__order_metafields", "model.shopify.shopify_gql__product_metafields", "model.shopify.shopify_gql__product_variant_metafields", "model.shopify.shopify_gql__shop_metafields", "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5", "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff", "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679"], "model.shopify_source.stg_shopify_gql__product_variant_media": ["model.shopify.shopify_gql__inventory_levels", "model.shopify.shopify_gql__order_lines", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae", "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894"], "model.shopify_source.stg_shopify_gql__collection_product": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16", "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3", "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67", "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066"], "model.shopify_source.stg_shopify_gql__inventory_quantity": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1", "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa"], "model.shopify_source.stg_shopify_gql__fulfillment_event": ["model.shopify.int_shopify_gql__daily_fulfillment", "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c", "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4", "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b", "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232"], "model.shopify_source.stg_shopify_gql__customer_address": ["model.shopify.int_shopify_gql__customer", "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c", "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04", "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565", "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089"], "model.shopify_source.stg_shopify_gql__order_adjustment": ["model.shopify.int_shopify_gql__order_adjustment", "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c", "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861"], "model.shopify_source.stg_shopify_gql__discount_redeem_code": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3", "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742", "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f"], "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "model.shopify_source.stg_shopify_gql__refund_tmp": ["model.shopify_source.stg_shopify_gql__refund"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "model.shopify_source.stg_shopify_gql__customer_tmp": ["model.shopify_source.stg_shopify_gql__customer"], "model.shopify_source.stg_shopify_gql__product_tmp": ["model.shopify_source.stg_shopify_gql__product"], "model.shopify_source.stg_shopify_gql__customer_visit_tmp": ["model.shopify_source.stg_shopify_gql__customer_visit"], "model.shopify_source.stg_shopify_gql__shop_tmp": ["model.shopify_source.stg_shopify_gql__shop"], "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "model.shopify_source.stg_shopify_gql__collection_tmp": ["model.shopify_source.stg_shopify_gql__collection"], "model.shopify_source.stg_shopify_gql__inventory_item_tmp": ["model.shopify_source.stg_shopify_gql__inventory_item"], "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "model.shopify_source.stg_shopify_gql__discount_application_tmp": ["model.shopify_source.stg_shopify_gql__discount_application"], "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "model.shopify_source.stg_shopify_gql__metafield_tmp": ["model.shopify_source.stg_shopify_gql__metafield"], "model.shopify_source.stg_shopify_gql__order_line_tmp": ["model.shopify_source.stg_shopify_gql__order_line"], "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "model.shopify_source.stg_shopify_gql__product_variant_tmp": ["model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify_source.stg_shopify_gql__order_tmp": ["model.shopify_source.stg_shopify_gql__order"], "model.shopify_source.stg_shopify_gql__location_tmp": ["model.shopify_source.stg_shopify_gql__location"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "model.shopify_source.stg_shopify_gql__tax_line_tmp": ["model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "model.shopify_source.stg_shopify_gql__collection_product_tmp": ["model.shopify_source.stg_shopify_gql__collection_product"], "model.shopify_source.stg_shopify_gql__fulfillment_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "model.shopify_source.stg_shopify_gql__order_tag_tmp": ["model.shopify_source.stg_shopify_gql__order_tag"], "model.shopify_source.stg_shopify_gql__product_media_tmp": ["model.shopify_source.stg_shopify_gql__product_media"], "model.shopify_source.stg_shopify_gql__media_image_tmp": ["model.shopify_source.stg_shopify_gql__media_image"], "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "model.shopify_source.stg_shopify_gql__media_tmp": ["model.shopify_source.stg_shopify_gql__media"], "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify_gql__inventory_level_tmp": ["model.shopify_source.stg_shopify_gql__inventory_level"], "model.shopify_source.stg_shopify_gql__customer_tag_tmp": ["model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "model.shopify_source.stg_shopify_gql__transaction_tmp": ["model.shopify_source.stg_shopify_gql__transaction"], "model.shopify_source.stg_shopify_gql__product_tag_tmp": ["model.shopify_source.stg_shopify_gql__product_tag"], "model.shopify_source.stg_shopify_gql__customer_address_tmp": ["model.shopify_source.stg_shopify_gql__customer_address"], "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": [], "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": [], "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": [], "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": [], "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": [], "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customers_customer_id__source_relation.5b62d73171": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__customer_emails_email__source_relation.62dce23003": [], "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": [], "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": [], "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": [], "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": [], "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": [], "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": [], "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": [], "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__inventory_levels_inventory_item_id__location_id__source_relation.1c6612350b": [], "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": [], "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": [], "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__discounts_code__source_relation.0c33591b92": [], "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": [], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": [], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": [], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": [], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": [], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": [], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers_customer_id__source_relation.88d3656469": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customer_emails_email__source_relation.fcf0ae8886": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__products_product_id__source_relation.f00b2fb95a": [], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": [], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": [], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": [], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": [], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": [], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__inventory_levels_inventory_item_id__location_id__source_relation.1498734606": [], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": [], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": [], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__discounts_code__source_relation.6983c8ac7f": [], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__customers__order_aggregates_customer_id__source_relation.5a5e85c8a9": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__orders__order_line_aggregates_order_id__source_relation.09d921d473": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__emails__order_aggregates_email__source_relation.06e9d74e1a": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__customer_email_rollup_email__source_relation.cdcb98cbda": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__inventory_level__aggregates_variant_id__location_id__source_relation.13af752114": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__order_aggregates_code__type__source_relation.9094049eca": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__discounts__abandoned_checkouts_code__type__source_relation.36fced7795": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__order__shipping_aggregates_order_id__source_relation.0e1a050867": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__product__order_line_aggregates_product_id__source_relation.871d87e683": [], "test.shopify.dbt_utils_unique_combination_of_columns_int_shopify__products_with_aggregates_product_id__source_relation.8a5ff7736c": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify__line_item_enhanced_header_id__line_item_id__source_relation.27b8b0d3ae": [], "test.shopify.dbt_utils_unique_combination_of_columns_shopify_gql__line_item_enhanced_header_id__line_item_id__source_relation.a93bb1bcb1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_customer_id__source_relation.1b2185db25": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_refund_order_line_refund_id__source_relation.1877420c29": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_line_order_line_id__source_relation.c2797e7a9c": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_order_id__source_relation.81d10381c1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_product_id__source_relation.48b32ab6a2": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_variant_id__source_relation.7506695ec0": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__transaction_transaction_id__source_relation.d55a33652a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__refund_refund_id__source_relation.cd4dbc2b35": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_adjustment_order_adjustment_id__source_relation.00b7d10cb0": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_checkout_id__source_relation.46f03b4b58": [], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": [], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_product_collection_id__product_id__source_relation.2a7693423e": [], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__collection_collection_id__source_relation.1df832a878": [], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": [], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__customer_tag_customer_id__index__source_relation.a145b36d0f": [], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": [], "test.shopify_source.accepted_values_stg_shopify__fulfillment_status__pending__open__success__cancelled__error__failure.7c48600b70": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_fulfillment_id__source_relation.680798d67a": [], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_item_inventory_item_id__source_relation.efb946be84": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.48558ac36b": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__inventory_quantity_inventory_quantity_id__inventory_item_id__inventory_level_id__inventory_state_name__source_relation.aa5bafb770": [], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__location_location_id__source_relation.d3455164b9": [], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_media_id__source_relation.3a91161f6f": [], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__media_image_media_id__image_id__source_relation.5000589fe5": [], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__metafield_metafield_id__source_relation.f74f7735ca": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_note_attribute_order_id__name__source_relation.b214a3d1c0": [], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_line_order_shipping_line_id__source_relation.6d1c3ae933": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_shipping_tax_line_order_shipping_line_id__index__source_relation.f13c5fef8d": [], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": [], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_tag_order_id__index__source_relation.9a2443bd07": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_url_tag_order_id__key__source_relation.568d75c0cf": [], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": [], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_media_product_id__media_id__source_relation.0ce52c30ea": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_variant_media_product_variant_id__media_id__source_relation.319ca39a19": [], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": [], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__product_tag_product_id__index__source_relation.995253e0cc": [], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__shop_shop_id__source_relation.29a0875415": [], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tender_transaction_transaction_id__source_relation.96e8ff578b": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_discount_code_checkout_id__code__source_relation.7c343c0e84": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__order_discount_code_order_id__index__source_relation.7887dafb26": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__abandoned_checkout_shipping_line_checkout_id__index__source_relation.adf831caac": [], "test.shopify_source.accepted_values_stg_shopify__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.6be9843e27": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__fulfillment_event_fulfillment_event_id__source_relation.bbccfe999a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__tax_line_order_line_id__index__source_relation.f01b294800": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_allocation_order_line_id__discount_application_index__source_relation.9d92382300": [], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": [], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_application_index__order_id__source_relation.c25680f16c": [], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_app_discount_code_id__source_relation.5a98a3650c": [], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_basic_discount_code_id__source_relation.dc017a2bd5": [], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_bxgy_discount_code_id__source_relation.f6c1dab9b7": [], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_code_free_shipping_discount_code_id__source_relation.865e306032": [], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify__discount_redeem_code_discount_code_id__source_relation.c171ecde9c": [], "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": [], "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": [], "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": [], "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": [], "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": [], "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": [], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": [], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": [], "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": [], "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": [], "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": [], "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": [], "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": [], "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": [], "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": [], "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": [], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": [], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": [], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_status__pending__open__success__cancelled__error__failure.d922698769": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": [], "test.shopify_source.accepted_values_stg_shopify_gql__fulfillment_event_status__attempted_delivery__delayed__delivered__failure__in_transit__out_for_delivery__ready_for_pickup__picked_up__label_printed__label_purchased__confirmed.97fdbebd81": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": [], "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": [], "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": [], "test.shopify_source.dbt_utils_unique_combination_of_columns_stg_shopify_gql__inventory_level_inventory_level_id__inventory_item_id__location_id__source_relation.e612bf91cd": [], "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": [], "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": [], "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": [], "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": [], "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": [], "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": [], "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": [], "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": [], "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": [], "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": [], "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": [], "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": [], "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": [], "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": [], "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": [], "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": [], "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": [], "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": [], "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": [], "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": [], "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": [], "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": [], "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": [], "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": [], "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": [], "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": [], "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": [], "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": [], "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": [], "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": [], "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": [], "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": [], "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": [], "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": [], "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": [], "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": [], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": [], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": [], "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": [], "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": [], "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": [], "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": [], "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": [], "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": [], "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": [], "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": [], "source.shopify_source.shopify.order": ["model.shopify_source.stg_shopify__order_tmp"], "source.shopify_source.shopify.customer": ["model.shopify_source.stg_shopify__customer_tmp"], "source.shopify_source.shopify.order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "source.shopify_source.shopify.order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "source.shopify_source.shopify.product": ["model.shopify_source.stg_shopify__product_tmp"], "source.shopify_source.shopify.product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "source.shopify_source.shopify.transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "source.shopify_source.shopify.refund": ["model.shopify_source.stg_shopify__refund_tmp"], "source.shopify_source.shopify.order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "source.shopify_source.shopify.abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "source.shopify_source.shopify.collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "source.shopify_source.shopify.collection": ["model.shopify_source.stg_shopify__collection_tmp"], "source.shopify_source.shopify.customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "source.shopify_source.shopify.fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "source.shopify_source.shopify.inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "source.shopify_source.shopify.inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "source.shopify_source.shopify.inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "source.shopify_source.shopify.location": ["model.shopify_source.stg_shopify__location_tmp"], "source.shopify_source.shopify.metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "source.shopify_source.shopify.order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "source.shopify_source.shopify.order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "source.shopify_source.shopify.order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "source.shopify_source.shopify.order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "source.shopify_source.shopify.order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "source.shopify_source.shopify.media": ["model.shopify_source.stg_shopify__media_tmp"], "source.shopify_source.shopify.media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "source.shopify_source.shopify.product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "source.shopify_source.shopify.product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "source.shopify_source.shopify.product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "source.shopify_source.shopify.shop": ["model.shopify_source.stg_shopify__shop_tmp"], "source.shopify_source.shopify.tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "source.shopify_source.shopify.abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "source.shopify_source.shopify.order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "source.shopify_source.shopify.abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "source.shopify_source.shopify.fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "source.shopify_source.shopify.tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "source.shopify_source.shopify.discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "source.shopify_source.shopify.discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "source.shopify_source.shopify.discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "source.shopify_source.shopify.discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "source.shopify_source.shopify.discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "source.shopify_source.shopify.discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "source.shopify_source.shopify.discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"], "source.shopify_source.shopify_graphql.order": ["model.shopify_source.stg_shopify_gql__order_tmp"], "source.shopify_source.shopify_graphql.customer": ["model.shopify_source.stg_shopify_gql__customer_tmp"], "source.shopify_source.shopify_graphql.order_line": ["model.shopify_source.stg_shopify_gql__order_line_tmp"], "source.shopify_source.shopify_graphql.order_line_refund": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"], "source.shopify_source.shopify_graphql.product": ["model.shopify_source.stg_shopify_gql__product_tmp"], "source.shopify_source.shopify_graphql.product_variant": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"], "source.shopify_source.shopify_graphql.transaction": ["model.shopify_source.stg_shopify_gql__transaction_tmp"], "source.shopify_source.shopify_graphql.refund": ["model.shopify_source.stg_shopify_gql__refund_tmp"], "source.shopify_source.shopify_graphql.order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"], "source.shopify_source.shopify_graphql.abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"], "source.shopify_source.shopify_graphql.collection_product": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"], "source.shopify_source.shopify_graphql.collection": ["model.shopify_source.stg_shopify_gql__collection_tmp"], "source.shopify_source.shopify_graphql.customer_tag": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"], "source.shopify_source.shopify_graphql.fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"], "source.shopify_source.shopify_graphql.inventory_item": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"], "source.shopify_source.shopify_graphql.inventory_level": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"], "source.shopify_source.shopify_graphql.inventory_quantity": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"], "source.shopify_source.shopify_graphql.location": ["model.shopify_source.stg_shopify_gql__location_tmp"], "source.shopify_source.shopify_graphql.metafield": ["model.shopify_source.stg_shopify_gql__metafield_tmp"], "source.shopify_source.shopify_graphql.order_note_attribute": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"], "source.shopify_source.shopify_graphql.order_shipping_line": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"], "source.shopify_source.shopify_graphql.order_shipping_tax_line": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"], "source.shopify_source.shopify_graphql.order_tag": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"], "source.shopify_source.shopify_graphql.media": ["model.shopify_source.stg_shopify_gql__media_tmp"], "source.shopify_source.shopify_graphql.media_image": ["model.shopify_source.stg_shopify_gql__media_image_tmp"], "source.shopify_source.shopify_graphql.product_media": ["model.shopify_source.stg_shopify_gql__product_media_tmp"], "source.shopify_source.shopify_graphql.product_variant_media": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"], "source.shopify_source.shopify_graphql.product_tag": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"], "source.shopify_source.shopify_graphql.shop": ["model.shopify_source.stg_shopify_gql__shop_tmp"], "source.shopify_source.shopify_graphql.tender_transaction": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"], "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "source.shopify_source.shopify_graphql.order_discount_code": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"], "source.shopify_source.shopify_graphql.fulfillment_event": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"], "source.shopify_source.shopify_graphql.tax_line": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"], "source.shopify_source.shopify_graphql.discount_allocation": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"], "source.shopify_source.shopify_graphql.discount_application": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"], "source.shopify_source.shopify_graphql.discount_code_app": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"], "source.shopify_source.shopify_graphql.discount_code_basic": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"], "source.shopify_source.shopify_graphql.discount_code_bxgy": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"], "source.shopify_source.shopify_graphql.discount_code_free_shipping": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"], "source.shopify_source.shopify_graphql.discount_redeem_code": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"], "source.shopify_source.shopify_graphql.fulfillment_tracking_info": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"], "source.shopify_source.shopify_graphql.customer_visit": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"], "source.shopify_source.shopify_graphql.fulfillment_order_line_item": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"], "source.shopify_source.shopify_graphql.customer_address": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}, "unit_tests": {}} \ No newline at end of file From c3ac22406429965747fe6cd59e0d4028962718d9 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Mon, 11 Aug 2025 10:53:36 -0400 Subject: [PATCH 31/34] packages.yml --- packages.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages.yml b/packages.yml index 21f744cc..59f42a04 100644 --- a/packages.yml +++ b/packages.yml @@ -1,6 +1,3 @@ packages: - # - package: fivetran/shopify_source - # version: 0.20.0-a1 - # - local: ../ECommerce/Shopify/dbt_shopify_source - - git: https://github.com/fivetran/dbt_shopify_source.git - revision: update/graphql + - package: fivetran/shopify_source + version: 0.20.0-a1 \ No newline at end of file From 173015737f840e1724f185caff60c756d02d2bc7 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Wed, 3 Sep 2025 17:25:27 -0400 Subject: [PATCH 32/34] Readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6bfce49e..2f115e6f 100644 --- a/README.md +++ b/README.md @@ -174,13 +174,13 @@ dispatch: ### Step 3: Define REST API or GraphQL API Source Fivetran has released a version of the Shopify connector that leverages Shopify's newer [GraphQL](https://shopify.dev/docs/apps/build/graphql) API instead of the REST API, as Shopify deprecated the REST API in October 2024. The GraphQL and REST API-based schemas are slightly different, so this package is designed to run either or, not both. It will do so based on the value of the `shopify_api` variable. -By default for this `v0.21.0-a1` release, `shopify_api` is set to `graphql` and will run the `shopify_gql__*` models in the [graphql](https://github.com/fivetran/dbt_shopify/tree/main/models/graphql) folder. If you would like to run the package on a REST-based schema, adjust `shopify_api` accordingly or use [`v0.20.0`](https://github.com/fivetran/dbt_shopify/releases/tag/v0.20.0) of this package. This will run the `shopify__*` models in the [rest](https://github.com/fivetran/dbt_shopify/tree/main/models/rest) folder: +By default for this `v0.21.2-a1` release, `shopify_api` is set to `graphql` and will run the `shopify_gql__*` models in the [graphql](https://github.com/fivetran/dbt_shopify/tree/main/models/graphql) folder. If you would like to run the package on a REST-based schema, adjust `shopify_api` accordingly or use [`v0.21.1`](https://github.com/fivetran/dbt_shopify/releases/tag/v0.21.1) of this package. This will run the `shopify__*` models in the [rest](https://github.com/fivetran/dbt_shopify/tree/main/models/rest) folder: > This variable is dynamically configured for you in Fivetran Quickstart based on your Shopify connection details. ```yml vars: - shopify_api: rest # By default = graphql. Must be lowercase + shopify_api: rest # By default = grahql. Must be lowercase ``` Overall, the package aims for parity across the different API versions and aligns column names with their REST names, **if the fields are supported in GraphQL**. There will be a 1:1 relationship between REST API and GraphQL based end models, but please note that the following source tables are not present in GraphQL and will therefore not be included in any transformations: From 63b15b06e80640675cef2dbbc18e08f9ad58847e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 4 Sep 2025 17:10:37 +0000 Subject: [PATCH 33/34] Generate dbt docs via GitHub Actions --- docs/catalog.json | 2 +- docs/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/catalog.json b/docs/catalog.json index 3b07d185..b9a465dd 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.10.9", "generated_at": "2025-08-19T03:43:25.065601Z", "invocation_id": "8bb839a5-9565-4b5d-bb6f-d1ea30b2cf9b", "invocation_started_at": "2025-08-19T03:43:11.734595Z", "env": {}}, "nodes": {"seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_integration_tests.shopify_abandoned_checkout_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data"}, "seed.shopify_integration_tests.shopify_collection_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_data"}, "seed.shopify_integration_tests.shopify_collection_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data"}, "seed.shopify_integration_tests.shopify_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_data"}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data"}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_integration_tests.shopify_discount_allocation_data"}, "seed.shopify_integration_tests.shopify_discount_application_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data"}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data"}, "seed.shopify_integration_tests.shopify_discount_code_basic_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data"}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data"}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data"}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_integration_tests.shopify_discount_redeem_code_data"}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data"}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data"}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_integration_tests.shopify_gql_abandoned_checkout_data"}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data"}, "seed.shopify_integration_tests.shopify_gql_collection_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_integration_tests.shopify_gql_collection_data"}, "seed.shopify_integration_tests.shopify_gql_collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_collection_product"}, "seed.shopify_integration_tests.shopify_gql_collection_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_collection_product_data"}, "seed.shopify_integration_tests.shopify_gql_collection_rule_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_rule_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "condition": {"type": "text", "index": 4, "name": "condition", "comment": null}, "relation": {"type": "text", "index": 5, "name": "relation", "comment": null}, "columns": {"type": "text", "index": 6, "name": "columns", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_rule_data"}, "seed.shopify_integration_tests.shopify_gql_customer_address_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_address_data"}, "seed.shopify_integration_tests.shopify_gql_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_data"}, "seed.shopify_integration_tests.shopify_gql_customer_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_tag_data"}, "seed.shopify_integration_tests.shopify_gql_customer_visit_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_visit_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_visit_data"}, "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_integration_tests.shopify_gql_discount_allocation_data"}, "seed.shopify_integration_tests.shopify_gql_discount_application_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_integration_tests.shopify_gql_discount_application_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_app_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_basic_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_bxgy_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data"}, "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_integration_tests.shopify_gql_discount_redeem_code_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_integration_tests.shopify_gql_fulfillment_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_integration_tests.shopify_gql_inventory_item_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_level_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_integration_tests.shopify_gql_inventory_level_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_integration_tests.shopify_gql_inventory_quantity_data"}, "seed.shopify_integration_tests.shopify_gql_location_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_location_data"}, "seed.shopify_integration_tests.shopify_gql_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_integration_tests.shopify_gql_media_data"}, "seed.shopify_integration_tests.shopify_gql_media_image_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_media_image_data"}, "seed.shopify_integration_tests.shopify_gql_metafield_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_metafield_data"}, "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_adjustment_data"}, "seed.shopify_integration_tests.shopify_gql_order_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_integration_tests.shopify_gql_order_data"}, "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_integration_tests.shopify_gql_order_discount_code_data"}, "seed.shopify_integration_tests.shopify_gql_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_integration_tests.shopify_gql_order_line_refund_data"}, "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data"}, "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_tag_data"}, "seed.shopify_integration_tests.shopify_gql_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_product_data"}, "seed.shopify_integration_tests.shopify_gql_product_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_product_media_data"}, "seed.shopify_integration_tests.shopify_gql_product_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_product_tag_data"}, "seed.shopify_integration_tests.shopify_gql_product_variant_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_integration_tests.shopify_gql_product_variant_data"}, "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_integration_tests.shopify_gql_product_variant_media_data"}, "seed.shopify_integration_tests.shopify_gql_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_integration_tests.shopify_gql_refund_data"}, "seed.shopify_integration_tests.shopify_gql_shop_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_shop_data"}, "seed.shopify_integration_tests.shopify_gql_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_tax_line_data"}, "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_integration_tests.shopify_gql_tender_transaction_data"}, "seed.shopify_integration_tests.shopify_gql_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_transaction_data"}, "seed.shopify_integration_tests.shopify_inventory_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data"}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data"}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data"}, "seed.shopify_integration_tests.shopify_location_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_integration_tests.shopify_location_data"}, "seed.shopify_integration_tests.shopify_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_data"}, "seed.shopify_integration_tests.shopify_media_image_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_image_data"}, "seed.shopify_integration_tests.shopify_metafield_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_metafield_data"}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data"}, "seed.shopify_integration_tests.shopify_order_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_data"}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data"}, "seed.shopify_integration_tests.shopify_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_data"}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data"}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data"}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data"}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data"}, "seed.shopify_integration_tests.shopify_order_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data"}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data"}, "seed.shopify_integration_tests.shopify_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_data"}, "seed.shopify_integration_tests.shopify_product_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_media_data"}, "seed.shopify_integration_tests.shopify_product_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data"}, "seed.shopify_integration_tests.shopify_product_variant_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data"}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_variant_media_data"}, "seed.shopify_integration_tests.shopify_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_integration_tests.shopify_refund_data"}, "seed.shopify_integration_tests.shopify_shop_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_shop_data"}, "seed.shopify_integration_tests.shopify_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data"}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_integration_tests.shopify_tender_transaction_data"}, "seed.shopify_integration_tests.shopify_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_transaction_data"}, "model.shopify.int_shopify__customer_email_rollup": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify__customer_email_rollup"}, "model.shopify.int_shopify_gql__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}, "rules": {"type": "text", "index": 11, "name": "rules", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__collection"}, "model.shopify.int_shopify_gql__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_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.shopify.int_shopify_gql__customer"}, "model.shopify.int_shopify_gql__customer_email_rollup": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__customer_email_rollup", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "account_state": {"type": "text", "index": 15, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 16, "name": "note", "comment": null}, "currency": {"type": "text", "index": 17, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 18, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 19, "name": "marketing_opt_in_level", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_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.shopify.int_shopify_gql__customer_email_rollup"}, "model.shopify.int_shopify_gql__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_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.shopify.int_shopify_gql__order"}, "model.shopify.int_shopify_gql__orders_order_line_aggregates": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_line_aggregates", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "line_item_count": {"type": "bigint", "index": 3, "name": "line_item_count", "comment": null}, "order_total_quantity": {"type": "bigint", "index": 4, "name": "order_total_quantity", "comment": null}, "order_total_tax": {"type": "double precision", "index": 5, "name": "order_total_tax", "comment": null}, "order_total_discount": {"type": "double precision", "index": 6, "name": "order_total_discount", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 8, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_pres_currency_codes": {"type": "text", "index": 9, "name": "total_line_items_price_pres_currency_codes", "comment": null}, "total_line_items_price_shop_currency_codes": {"type": "text", "index": 10, "name": "total_line_items_price_shop_currency_codes", "comment": null}, "order_total_shipping": {"type": "double precision", "index": 11, "name": "order_total_shipping", "comment": null}, "order_total_shipping_with_discounts": {"type": "double precision", "index": 12, "name": "order_total_shipping_with_discounts", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 13, "name": "order_total_shipping_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__orders_order_line_aggregates"}, "model.shopify.int_shopify_gql__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}, "weight": {"type": "double precision", "index": 24, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__product_variant"}, "model.shopify.shopify__calendar": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__calendar", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__calendar"}, "model.shopify.shopify__collection_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__collection_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__collection_metafields"}, "model.shopify.shopify__customer_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "date", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_cohorts"}, "model.shopify.shopify__customer_email_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_email_cohorts"}, "model.shopify.shopify__customer_emails": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_emails", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 21, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_order_value": {"type": "double precision", "index": 24, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 25, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 26, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 27, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 28, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 29, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 30, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 31, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 32, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 33, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 34, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 35, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 36, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 37, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 38, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 39, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_emails"}, "model.shopify.shopify__customer_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "metafield_star_wars_firstname": {"type": "text", "index": 21, "name": "metafield_star_wars_firstname", "comment": null}, "metafield_star_wars_fullname": {"type": "text", "index": 22, "name": "metafield_star_wars_fullname", "comment": null}, "metafield_star_wars_isjedi": {"type": "text", "index": 23, "name": "metafield_star_wars_isjedi", "comment": null}, "metafield_star_wars_lastname": {"type": "text", "index": 24, "name": "metafield_star_wars_lastname", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_metafields"}, "model.shopify.shopify__customers": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customers", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 5, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 9, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 10, "name": "note", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 12, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 13, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 14, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 15, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 19, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_order_timestamp", "comment": null}, "customer_tags": {"type": "text", "index": 22, "name": "customer_tags", "comment": null}, "avg_order_value": {"type": "double precision", "index": 23, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 24, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 25, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 26, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 27, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 28, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 29, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 30, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 31, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 32, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 33, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 34, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 35, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 36, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 37, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 38, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customers"}, "model.shopify.shopify__daily_shop": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__daily_shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "shop_id": {"type": "integer", "index": 2, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "domain": {"type": "text", "index": 4, "name": "domain", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 7, "name": "enabled_presentment_currencies", "comment": null}, "iana_timezone": {"type": "text", "index": 8, "name": "iana_timezone", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "count_orders": {"type": "bigint", "index": 11, "name": "count_orders", "comment": null}, "count_line_items": {"type": "numeric", "index": 12, "name": "count_line_items", "comment": null}, "avg_line_item_count": {"type": "numeric", "index": 13, "name": "avg_line_item_count", "comment": null}, "count_customers": {"type": "bigint", "index": 14, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 15, "name": "count_customer_emails", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 16, "name": "order_adjusted_total", "comment": null}, "avg_order_value": {"type": "double precision", "index": 17, "name": "avg_order_value", "comment": null}, "shipping_cost": {"type": "double precision", "index": 18, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "numeric", "index": 19, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 20, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "numeric", "index": 21, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 22, "name": "refund_total_tax", "comment": null}, "total_discounts": {"type": "double precision", "index": 23, "name": "total_discounts", "comment": null}, "avg_discount": {"type": "double precision", "index": 24, "name": "avg_discount", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 25, "name": "shipping_discount_amount", "comment": null}, "avg_shipping_discount_amount": {"type": "double precision", "index": 26, "name": "avg_shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 27, "name": "percentage_calc_discount_amount", "comment": null}, "avg_percentage_calc_discount_amount": {"type": "double precision", "index": 28, "name": "avg_percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 29, "name": "fixed_amount_discount_amount", "comment": null}, "avg_fixed_amount_discount_amount": {"type": "double precision", "index": 30, "name": "avg_fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "numeric", "index": 31, "name": "count_discount_codes_applied", "comment": null}, "count_locations_ordered_from": {"type": "bigint", "index": 32, "name": "count_locations_ordered_from", "comment": null}, "count_orders_with_discounts": {"type": "bigint", "index": 33, "name": "count_orders_with_discounts", "comment": null}, "count_orders_with_refunds": {"type": "bigint", "index": 34, "name": "count_orders_with_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 36, "name": "last_order_timestamp", "comment": null}, "quantity_sold": {"type": "bigint", "index": 37, "name": "quantity_sold", "comment": null}, "quantity_refunded": {"type": "numeric", "index": 38, "name": "quantity_refunded", "comment": null}, "quantity_net": {"type": "numeric", "index": 39, "name": "quantity_net", "comment": null}, "avg_quantity_sold": {"type": "bigint", "index": 40, "name": "avg_quantity_sold", "comment": null}, "avg_quantity_net": {"type": "numeric", "index": 41, "name": "avg_quantity_net", "comment": null}, "count_variants_sold": {"type": "bigint", "index": 42, "name": "count_variants_sold", "comment": null}, "count_products_sold": {"type": "bigint", "index": 43, "name": "count_products_sold", "comment": null}, "quantity_gift_cards_sold": {"type": "numeric", "index": 44, "name": "quantity_gift_cards_sold", "comment": null}, "quantity_requiring_shipping": {"type": "numeric", "index": 45, "name": "quantity_requiring_shipping", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 46, "name": "count_abandoned_checkouts", "comment": null}, "count_customers_abandoned_checkout": {"type": "bigint", "index": 47, "name": "count_customers_abandoned_checkout", "comment": null}, "count_customer_emails_abandoned_checkout": {"type": "bigint", "index": 48, "name": "count_customer_emails_abandoned_checkout", "comment": null}, "count_fulfillment_attempted_delivery": {"type": "bigint", "index": 49, "name": "count_fulfillment_attempted_delivery", "comment": null}, "count_fulfillment_delayed": {"type": "bigint", "index": 50, "name": "count_fulfillment_delayed", "comment": null}, "count_fulfillment_delivered": {"type": "bigint", "index": 51, "name": "count_fulfillment_delivered", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 52, "name": "count_fulfillment_failure", "comment": null}, "count_fulfillment_in_transit": {"type": "bigint", "index": 53, "name": "count_fulfillment_in_transit", "comment": null}, "count_fulfillment_out_for_delivery": {"type": "bigint", "index": 54, "name": "count_fulfillment_out_for_delivery", "comment": null}, "count_fulfillment_ready_for_pickup": {"type": "bigint", "index": 55, "name": "count_fulfillment_ready_for_pickup", "comment": null}, "count_fulfillment_picked_up": {"type": "bigint", "index": 56, "name": "count_fulfillment_picked_up", "comment": null}, "count_fulfillment_label_printed": {"type": "bigint", "index": 57, "name": "count_fulfillment_label_printed", "comment": null}, "count_fulfillment_label_purchased": {"type": "bigint", "index": 58, "name": "count_fulfillment_label_purchased", "comment": null}, "count_fulfillment_confirmed": {"type": "bigint", "index": 59, "name": "count_fulfillment_confirmed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__daily_shop"}, "model.shopify.shopify__discounts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__discounts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"code": {"type": "character varying", "index": 1, "name": "code", "comment": null}, "discount_code_id": {"type": "bigint", "index": 2, "name": "discount_code_id", "comment": null}, "discount_type": {"type": "text", "index": 3, "name": "discount_type", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_count": {"type": "integer", "index": 5, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 14, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 15, "name": "status", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 17, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 18, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 20, "name": "usage_limit", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "allocation_method": {"type": "character varying", "index": 22, "name": "allocation_method", "comment": null}, "description": {"type": "character varying", "index": 23, "name": "description", "comment": null}, "target_selection": {"type": "character varying", "index": 24, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 25, "name": "target_type", "comment": null}, "application_type": {"type": "character varying", "index": 26, "name": "application_type", "comment": null}, "value": {"type": "double precision", "index": 27, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 28, "name": "value_type", "comment": null}, "discounts_unique_key": {"type": "text", "index": 29, "name": "discounts_unique_key", "comment": null}, "count_orders": {"type": "bigint", "index": 30, "name": "count_orders", "comment": null}, "avg_order_discount_amount": {"type": "double precision", "index": 31, "name": "avg_order_discount_amount", "comment": null}, "total_order_discount_amount": {"type": "double precision", "index": 32, "name": "total_order_discount_amount", "comment": null}, "total_order_line_items_price": {"type": "double precision", "index": 33, "name": "total_order_line_items_price", "comment": null}, "total_order_shipping_cost": {"type": "double precision", "index": 34, "name": "total_order_shipping_cost", "comment": null}, "total_order_refund_amount": {"type": "double precision", "index": 35, "name": "total_order_refund_amount", "comment": null}, "count_customers": {"type": "bigint", "index": 36, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 37, "name": "count_customer_emails", "comment": null}, "total_abandoned_checkout_discount_amount": {"type": "double precision", "index": 38, "name": "total_abandoned_checkout_discount_amount", "comment": null}, "total_abandoned_checkout_shipping_price": {"type": "double precision", "index": 39, "name": "total_abandoned_checkout_shipping_price", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 40, "name": "count_abandoned_checkouts", "comment": null}, "count_abandoned_checkout_customers": {"type": "bigint", "index": 41, "name": "count_abandoned_checkout_customers", "comment": null}, "count_abandoned_checkout_customer_emails": {"type": "bigint", "index": 42, "name": "count_abandoned_checkout_customer_emails", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__discounts"}, "model.shopify.shopify__inventory_levels": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__inventory_levels", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "sku": {"type": "text", "index": 10, "name": "sku", "comment": null}, "is_inventory_item_deleted": {"type": "boolean", "index": 11, "name": "is_inventory_item_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 14, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 15, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 16, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 17, "name": "is_inventory_quantity_tracked", "comment": null}, "inventory_item_created_at": {"type": "timestamp without time zone", "index": 18, "name": "inventory_item_created_at", "comment": null}, "inventory_item_updated_at": {"type": "timestamp without time zone", "index": 19, "name": "inventory_item_updated_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 20, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 21, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 22, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 23, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 24, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 25, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 26, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 27, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 28, "name": "tracked_editable_reason", "comment": null}, "location_name": {"type": "text", "index": 29, "name": "location_name", "comment": null}, "is_location_deleted": {"type": "boolean", "index": 30, "name": "is_location_deleted", "comment": null}, "is_location_active": {"type": "boolean", "index": 31, "name": "is_location_active", "comment": null}, "address_1": {"type": "text", "index": 32, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 33, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 34, "name": "city", "comment": null}, "country": {"type": "text", "index": 35, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 36, "name": "country_code", "comment": null}, "is_legacy_location": {"type": "boolean", "index": 37, "name": "is_legacy_location", "comment": null}, "province": {"type": "text", "index": 38, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 39, "name": "province_code", "comment": null}, "phone": {"type": "integer", "index": 40, "name": "phone", "comment": null}, "zip": {"type": "integer", "index": 41, "name": "zip", "comment": null}, "location_created_at": {"type": "timestamp without time zone", "index": 42, "name": "location_created_at", "comment": null}, "location_updated_at": {"type": "timestamp without time zone", "index": 43, "name": "location_updated_at", "comment": null}, "variant_id": {"type": "bigint", "index": 44, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 45, "name": "product_id", "comment": null}, "variant_title": {"type": "text", "index": 46, "name": "variant_title", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 47, "name": "variant_inventory_policy", "comment": null}, "variant_price": {"type": "double precision", "index": 48, "name": "variant_price", "comment": null}, "variant_media_id": {"type": "bigint", "index": 49, "name": "variant_media_id", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 50, "name": "variant_fulfillment_service", "comment": null}, "variant_inventory_management": {"type": "text", "index": 51, "name": "variant_inventory_management", "comment": null}, "is_variant_taxable": {"type": "boolean", "index": 52, "name": "is_variant_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 53, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 54, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 55, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 56, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 57, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 58, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 59, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 60, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 61, "name": "variant_tax_code", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 62, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 63, "name": "variant_updated_at", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 64, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 65, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 66, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 67, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 68, "name": "variant_sellable_online_quantity", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 69, "name": "subtotal_sold", "comment": null}, "quantity_sold": {"type": "bigint", "index": 70, "name": "quantity_sold", "comment": null}, "count_distinct_orders": {"type": "bigint", "index": 71, "name": "count_distinct_orders", "comment": null}, "count_distinct_customers": {"type": "bigint", "index": 72, "name": "count_distinct_customers", "comment": null}, "count_distinct_customer_emails": {"type": "bigint", "index": 73, "name": "count_distinct_customer_emails", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 74, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 75, "name": "last_order_timestamp", "comment": null}, "subtotal_sold_refunds": {"type": "numeric", "index": 76, "name": "subtotal_sold_refunds", "comment": null}, "quantity_sold_refunds": {"type": "numeric", "index": 77, "name": "quantity_sold_refunds", "comment": null}, "count_fulfillment_pending": {"type": "bigint", "index": 78, "name": "count_fulfillment_pending", "comment": null}, "count_fulfillment_open": {"type": "bigint", "index": 79, "name": "count_fulfillment_open", "comment": null}, "count_fulfillment_success": {"type": "bigint", "index": 80, "name": "count_fulfillment_success", "comment": null}, "count_fulfillment_cancelled": {"type": "bigint", "index": 81, "name": "count_fulfillment_cancelled", "comment": null}, "count_fulfillment_error": {"type": "bigint", "index": 82, "name": "count_fulfillment_error", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 83, "name": "count_fulfillment_failure", "comment": null}, "incoming_quantity": {"type": "bigint", "index": 84, "name": "incoming_quantity", "comment": null}, "on_hand_quantity": {"type": "bigint", "index": 85, "name": "on_hand_quantity", "comment": null}, "available_quantity": {"type": "bigint", "index": 86, "name": "available_quantity", "comment": null}, "committed_quantity": {"type": "bigint", "index": 87, "name": "committed_quantity", "comment": null}, "reserved_quantity": {"type": "bigint", "index": 88, "name": "reserved_quantity", "comment": null}, "damaged_quantity": {"type": "bigint", "index": 89, "name": "damaged_quantity", "comment": null}, "safety_stock_quantity": {"type": "bigint", "index": 90, "name": "safety_stock_quantity", "comment": null}, "quality_control_quantity": {"type": "bigint", "index": 91, "name": "quality_control_quantity", "comment": null}, "net_subtotal_sold": {"type": "numeric", "index": 92, "name": "net_subtotal_sold", "comment": null}, "net_quantity_sold": {"type": "numeric", "index": 93, "name": "net_quantity_sold", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__inventory_levels"}, "model.shopify.shopify__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"header_id": {"type": "bigint", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "numeric(28,6)", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "numeric(28,6)", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "numeric(28,6)", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "numeric(28,6)", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "numeric(28,6)", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "numeric(28,6)", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "text", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "double precision", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "text", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "bigint", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "source_relation": {"type": "text", "index": 37, "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.shopify.shopify__line_item_enhanced"}, "model.shopify.shopify__order_lines": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_lines", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "name": "source_relation", "comment": null}, "order_lines_unique_key": {"type": "text", "index": 29, "name": "order_lines_unique_key", "comment": null}, "restock_types": {"type": "text", "index": 30, "name": "restock_types", "comment": null}, "refunded_quantity": {"type": "bigint", "index": 31, "name": "refunded_quantity", "comment": null}, "refunded_subtotal": {"type": "bigint", "index": 32, "name": "refunded_subtotal", "comment": null}, "quantity_net_refunds": {"type": "bigint", "index": 33, "name": "quantity_net_refunds", "comment": null}, "subtotal_net_refunds": {"type": "bigint", "index": 34, "name": "subtotal_net_refunds", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 35, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 36, "name": "variant_updated_at", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 37, "name": "inventory_item_id", "comment": null}, "media_id": {"type": "bigint", "index": 38, "name": "media_id", "comment": null}, "variant_price": {"type": "double precision", "index": 39, "name": "variant_price", "comment": null}, "variant_sku": {"type": "text", "index": 40, "name": "variant_sku", "comment": null}, "variant_position": {"type": "integer", "index": 41, "name": "variant_position", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 42, "name": "variant_inventory_policy", "comment": null}, "variant_compare_at_price": {"type": "integer", "index": 43, "name": "variant_compare_at_price", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 44, "name": "variant_fulfillment_service", "comment": null}, "variant_is_taxable": {"type": "boolean", "index": 45, "name": "variant_is_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 46, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 47, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 48, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 49, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 50, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 51, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 52, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 53, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 54, "name": "variant_tax_code", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 55, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 56, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 57, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 58, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 59, "name": "variant_sellable_online_quantity", "comment": null}, "order_line_tax": {"type": "double precision", "index": 60, "name": "order_line_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_lines"}, "model.shopify.shopify__order_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 81, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_howmany": {"type": "text", "index": 82, "name": "metafield_avengers_howmany", "comment": null}, "metafield_star_wars_isinspace": {"type": "text", "index": 83, "name": "metafield_star_wars_isinspace", "comment": null}, "metafield_star_wars_numbersequels": {"type": "text", "index": 84, "name": "metafield_star_wars_numbersequels", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_metafields"}, "model.shopify.shopify__orders": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "orders_unique_key": {"type": "text", "index": 81, "name": "orders_unique_key", "comment": null}, "shipping_cost": {"type": "double precision", "index": 82, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "bigint", "index": 83, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 84, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "bigint", "index": 85, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 86, "name": "refund_total_tax", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 87, "name": "order_adjusted_total", "comment": null}, "line_item_count": {"type": "bigint", "index": 88, "name": "line_item_count", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 89, "name": "shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 90, "name": "percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 91, "name": "fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "bigint", "index": 92, "name": "count_discount_codes_applied", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 93, "name": "order_total_shipping_tax", "comment": null}, "order_tags": {"type": "text", "index": 94, "name": "order_tags", "comment": null}, "order_url_tags": {"type": "text", "index": 95, "name": "order_url_tags", "comment": null}, "number_of_fulfillments": {"type": "bigint", "index": 96, "name": "number_of_fulfillments", "comment": null}, "fulfillment_services": {"type": "text", "index": 97, "name": "fulfillment_services", "comment": null}, "tracking_companies": {"type": "text", "index": 98, "name": "tracking_companies", "comment": null}, "tracking_numbers": {"type": "text", "index": 99, "name": "tracking_numbers", "comment": null}, "customer_order_seq_number": {"type": "bigint", "index": 100, "name": "customer_order_seq_number", "comment": null}, "new_vs_repeat": {"type": "text", "index": 101, "name": "new_vs_repeat", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders"}, "model.shopify.shopify__orders__order_line_aggregates": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "line_item_count": {"type": "bigint", "index": 3, "name": "line_item_count", "comment": null}, "order_total_quantity": {"type": "bigint", "index": 4, "name": "order_total_quantity", "comment": null}, "order_total_tax": {"type": "double precision", "index": 5, "name": "order_total_tax", "comment": null}, "order_total_discount": {"type": "bigint", "index": 6, "name": "order_total_discount", "comment": null}, "order_total_shipping": {"type": "double precision", "index": 7, "name": "order_total_shipping", "comment": null}, "order_total_shipping_with_discounts": {"type": "double precision", "index": 8, "name": "order_total_shipping_with_discounts", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 9, "name": "order_total_shipping_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders__order_line_aggregates"}, "model.shopify.shopify__product_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__product_metafields"}, "model.shopify.shopify__product_variant_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 31, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_wherearethey": {"type": "text", "index": 32, "name": "metafield_avengers_wherearethey", "comment": null}, "metafield_star_wars_wheninspace": {"type": "text", "index": 33, "name": "metafield_star_wars_wheninspace", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__product_variant_metafields"}, "model.shopify.shopify__products": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__products", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "collections": {"type": "text", "index": 14, "name": "collections", "comment": null}, "tags": {"type": "text", "index": 15, "name": "tags", "comment": null}, "count_variants": {"type": "bigint", "index": 16, "name": "count_variants", "comment": null}, "has_product_media": {"type": "boolean", "index": 17, "name": "has_product_media", "comment": null}, "total_quantity_sold": {"type": "bigint", "index": 18, "name": "total_quantity_sold", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 19, "name": "subtotal_sold", "comment": null}, "quantity_sold_net_refunds": {"type": "numeric", "index": 20, "name": "quantity_sold_net_refunds", "comment": null}, "subtotal_sold_net_refunds": {"type": "numeric", "index": 21, "name": "subtotal_sold_net_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_quantity_per_order_line": {"type": "numeric", "index": 24, "name": "avg_quantity_per_order_line", "comment": null}, "product_total_discount": {"type": "bigint", "index": 25, "name": "product_total_discount", "comment": null}, "product_avg_discount_per_order_line": {"type": "numeric", "index": 26, "name": "product_avg_discount_per_order_line", "comment": null}, "product_total_tax": {"type": "double precision", "index": 27, "name": "product_total_tax", "comment": null}, "product_avg_tax_per_order_line": {"type": "double precision", "index": 28, "name": "product_avg_tax_per_order_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__products"}, "model.shopify.shopify__shop_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__shop_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify.shopify__shop_metafields"}, "model.shopify.shopify__transactions": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__transactions", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "name": "source_relation", "comment": null}, "transactions_unique_id": {"type": "text", "index": 33, "name": "transactions_unique_id", "comment": null}, "payment_method": {"type": "text", "index": 34, "name": "payment_method", "comment": null}, "parent_created_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "parent_created_timestamp", "comment": null}, "parent_kind": {"type": "text", "index": 36, "name": "parent_kind", "comment": null}, "parent_amount": {"type": "double precision", "index": 37, "name": "parent_amount", "comment": null}, "parent_status": {"type": "text", "index": 38, "name": "parent_status", "comment": null}, "exchange_rate": {"type": "numeric", "index": 39, "name": "exchange_rate", "comment": null}, "currency_exchange_calculated_amount": {"type": "double precision", "index": 40, "name": "currency_exchange_calculated_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__transactions"}, "model.shopify.shopify_gql__collection_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__collection_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}, "rules": {"type": "text", "index": 11, "name": "rules", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb": {"type": "text", "index": 12, "name": "metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw": {"type": "text", "index": 13, "name": "metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__collection_metafields"}, "model.shopify.shopify_gql__customer_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify_gql__customer_cohorts"}, "model.shopify.shopify_gql__customer_email_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_email_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify_gql__customer_email_cohorts"}, "model.shopify.shopify_gql__customer_emails": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_emails", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "account_state": {"type": "text", "index": 15, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 16, "name": "note", "comment": null}, "currency": {"type": "text", "index": 17, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 18, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 19, "name": "marketing_opt_in_level", "comment": null}, "default_address_id": {"type": "integer", "index": 20, "name": "default_address_id", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 21, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_order_value": {"type": "double precision", "index": 24, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 25, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 26, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 27, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 28, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 29, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 30, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 31, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "double precision", "index": 32, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "double precision", "index": 33, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 34, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 35, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 36, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 37, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 38, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 39, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customer_emails"}, "model.shopify.shopify_gql__customer_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_id", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj": {"type": "text", "index": 22, "name": "metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre": {"type": "text", "index": 23, "name": "metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customer_metafields"}, "model.shopify.shopify_gql__customers": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customers", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "phone": {"type": "character varying", "index": 5, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 6, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 7, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 8, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 9, "name": "note", "comment": null}, "currency": {"type": "text", "index": 10, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 11, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 12, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 13, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 14, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 15, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 16, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}, "default_address_id": {"type": "integer", "index": 18, "name": "default_address_id", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 19, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_order_timestamp", "comment": null}, "customer_tags": {"type": "text", "index": 22, "name": "customer_tags", "comment": null}, "avg_order_value": {"type": "double precision", "index": 23, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 24, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 25, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 26, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 27, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 28, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 29, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 30, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "double precision", "index": 31, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "double precision", "index": 32, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 33, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 34, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 35, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 36, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 37, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 38, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customers"}, "model.shopify.shopify_gql__daily_shop": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__daily_shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "shop_id": {"type": "integer", "index": 2, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "domain": {"type": "text", "index": 4, "name": "domain", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 7, "name": "enabled_presentment_currencies", "comment": null}, "iana_timezone": {"type": "text", "index": 8, "name": "iana_timezone", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "count_orders": {"type": "bigint", "index": 11, "name": "count_orders", "comment": null}, "count_line_items": {"type": "numeric", "index": 12, "name": "count_line_items", "comment": null}, "avg_line_item_count": {"type": "numeric", "index": 13, "name": "avg_line_item_count", "comment": null}, "count_customers": {"type": "bigint", "index": 14, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 15, "name": "count_customer_emails", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 16, "name": "order_adjusted_total", "comment": null}, "avg_order_value": {"type": "double precision", "index": 17, "name": "avg_order_value", "comment": null}, "shipping_cost": {"type": "double precision", "index": 18, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "double precision", "index": 19, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 20, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "double precision", "index": 21, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 22, "name": "refund_total_tax", "comment": null}, "total_discounts": {"type": "double precision", "index": 23, "name": "total_discounts", "comment": null}, "avg_discount": {"type": "double precision", "index": 24, "name": "avg_discount", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 25, "name": "shipping_discount_amount", "comment": null}, "avg_shipping_discount_amount": {"type": "double precision", "index": 26, "name": "avg_shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 27, "name": "percentage_calc_discount_amount", "comment": null}, "avg_percentage_calc_discount_amount": {"type": "double precision", "index": 28, "name": "avg_percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 29, "name": "fixed_amount_discount_amount", "comment": null}, "avg_fixed_amount_discount_amount": {"type": "double precision", "index": 30, "name": "avg_fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "numeric", "index": 31, "name": "count_discount_codes_applied", "comment": null}, "count_locations_ordered_from": {"type": "bigint", "index": 32, "name": "count_locations_ordered_from", "comment": null}, "count_orders_with_discounts": {"type": "bigint", "index": 33, "name": "count_orders_with_discounts", "comment": null}, "count_orders_with_refunds": {"type": "bigint", "index": 34, "name": "count_orders_with_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 36, "name": "last_order_timestamp", "comment": null}, "quantity_sold": {"type": "bigint", "index": 37, "name": "quantity_sold", "comment": null}, "quantity_refunded": {"type": "double precision", "index": 38, "name": "quantity_refunded", "comment": null}, "quantity_net": {"type": "double precision", "index": 39, "name": "quantity_net", "comment": null}, "avg_quantity_sold": {"type": "bigint", "index": 40, "name": "avg_quantity_sold", "comment": null}, "avg_quantity_net": {"type": "double precision", "index": 41, "name": "avg_quantity_net", "comment": null}, "count_variants_sold": {"type": "bigint", "index": 42, "name": "count_variants_sold", "comment": null}, "count_products_sold": {"type": "bigint", "index": 43, "name": "count_products_sold", "comment": null}, "quantity_gift_cards_sold": {"type": "double precision", "index": 44, "name": "quantity_gift_cards_sold", "comment": null}, "quantity_requiring_shipping": {"type": "double precision", "index": 45, "name": "quantity_requiring_shipping", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 46, "name": "count_abandoned_checkouts", "comment": null}, "count_customers_abandoned_checkout": {"type": "bigint", "index": 47, "name": "count_customers_abandoned_checkout", "comment": null}, "count_customer_emails_abandoned_checkout": {"type": "bigint", "index": 48, "name": "count_customer_emails_abandoned_checkout", "comment": null}, "count_fulfillment_attempted_delivery": {"type": "bigint", "index": 49, "name": "count_fulfillment_attempted_delivery", "comment": null}, "count_fulfillment_delayed": {"type": "bigint", "index": 50, "name": "count_fulfillment_delayed", "comment": null}, "count_fulfillment_delivered": {"type": "bigint", "index": 51, "name": "count_fulfillment_delivered", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 52, "name": "count_fulfillment_failure", "comment": null}, "count_fulfillment_in_transit": {"type": "bigint", "index": 53, "name": "count_fulfillment_in_transit", "comment": null}, "count_fulfillment_out_for_delivery": {"type": "bigint", "index": 54, "name": "count_fulfillment_out_for_delivery", "comment": null}, "count_fulfillment_ready_for_pickup": {"type": "bigint", "index": 55, "name": "count_fulfillment_ready_for_pickup", "comment": null}, "count_fulfillment_label_printed": {"type": "bigint", "index": 56, "name": "count_fulfillment_label_printed", "comment": null}, "count_fulfillment_label_purchased": {"type": "bigint", "index": 57, "name": "count_fulfillment_label_purchased", "comment": null}, "count_fulfillment_confirmed": {"type": "bigint", "index": 58, "name": "count_fulfillment_confirmed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__daily_shop"}, "model.shopify.shopify_gql__discounts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__discounts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"code": {"type": "text", "index": 1, "name": "code", "comment": null}, "discount_code_id": {"type": "integer", "index": 2, "name": "discount_code_id", "comment": null}, "discount_type": {"type": "text", "index": 3, "name": "discount_type", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_count": {"type": "integer", "index": 5, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 14, "name": "starts_at", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 17, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 18, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 20, "name": "usage_limit", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "allocation_method": {"type": "text", "index": 22, "name": "allocation_method", "comment": null}, "target_selection": {"type": "text", "index": 23, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 24, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 25, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 26, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 27, "name": "value_percentage", "comment": null}, "value_type": {"type": "text", "index": 28, "name": "value_type", "comment": null}, "unique_key": {"type": "text", "index": 29, "name": "unique_key", "comment": null}, "count_orders": {"type": "bigint", "index": 30, "name": "count_orders", "comment": null}, "avg_order_discount_amount": {"type": "double precision", "index": 31, "name": "avg_order_discount_amount", "comment": null}, "total_order_discount_amount": {"type": "double precision", "index": 32, "name": "total_order_discount_amount", "comment": null}, "total_order_line_items_price": {"type": "double precision", "index": 33, "name": "total_order_line_items_price", "comment": null}, "total_order_shipping_cost": {"type": "double precision", "index": 34, "name": "total_order_shipping_cost", "comment": null}, "total_order_refund_amount": {"type": "double precision", "index": 35, "name": "total_order_refund_amount", "comment": null}, "count_customers": {"type": "bigint", "index": 36, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 37, "name": "count_customer_emails", "comment": null}, "total_abandoned_checkout_discount_amount": {"type": "double precision", "index": 38, "name": "total_abandoned_checkout_discount_amount", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 39, "name": "count_abandoned_checkouts", "comment": null}, "count_abandoned_checkout_customers": {"type": "bigint", "index": 40, "name": "count_abandoned_checkout_customers", "comment": null}, "count_abandoned_checkout_customer_emails": {"type": "bigint", "index": 41, "name": "count_abandoned_checkout_customer_emails", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__discounts"}, "model.shopify.shopify_gql__inventory_levels": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__inventory_levels", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "integer", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "sku": {"type": "text", "index": 10, "name": "sku", "comment": null}, "is_inventory_item_deleted": {"type": "boolean", "index": 11, "name": "is_inventory_item_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "text", "index": 14, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "text", "index": 15, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 16, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 17, "name": "is_inventory_quantity_tracked", "comment": null}, "inventory_item_created_at": {"type": "timestamp without time zone", "index": 18, "name": "inventory_item_created_at", "comment": null}, "inventory_item_updated_at": {"type": "timestamp without time zone", "index": 19, "name": "inventory_item_updated_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 20, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 21, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 22, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 23, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 24, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 25, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 26, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "boolean", "index": 27, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 28, "name": "tracked_editable_reason", "comment": null}, "location_name": {"type": "text", "index": 29, "name": "location_name", "comment": null}, "is_location_deleted": {"type": "boolean", "index": 30, "name": "is_location_deleted", "comment": null}, "is_location_active": {"type": "boolean", "index": 31, "name": "is_location_active", "comment": null}, "address_1": {"type": "text", "index": 32, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 33, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 34, "name": "city", "comment": null}, "country": {"type": "text", "index": 35, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 36, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 37, "name": "country_name", "comment": null}, "is_legacy_location": {"type": "boolean", "index": 38, "name": "is_legacy_location", "comment": null}, "province": {"type": "text", "index": 39, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 40, "name": "province_code", "comment": null}, "phone": {"type": "character varying", "index": 41, "name": "phone", "comment": null}, "zip": {"type": "integer", "index": 42, "name": "zip", "comment": null}, "location_created_at": {"type": "timestamp without time zone", "index": 43, "name": "location_created_at", "comment": null}, "location_updated_at": {"type": "timestamp without time zone", "index": 44, "name": "location_updated_at", "comment": null}, "variant_id": {"type": "integer", "index": 45, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 46, "name": "product_id", "comment": null}, "variant_title": {"type": "text", "index": 47, "name": "variant_title", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 48, "name": "variant_inventory_policy", "comment": null}, "variant_price": {"type": "double precision", "index": 49, "name": "variant_price", "comment": null}, "variant_media_id": {"type": "integer", "index": 50, "name": "variant_media_id", "comment": null}, "is_variant_taxable": {"type": "boolean", "index": 51, "name": "is_variant_taxable", "comment": null}, "variant_barcode": {"type": "text", "index": 52, "name": "variant_barcode", "comment": null}, "variant_inventory_quantity": {"type": "integer", "index": 53, "name": "variant_inventory_quantity", "comment": null}, "variant_tax_code": {"type": "text", "index": 54, "name": "variant_tax_code", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 55, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 56, "name": "variant_updated_at", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 57, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 58, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "integer", "index": 59, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 60, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 61, "name": "variant_sellable_online_quantity", "comment": null}, "subtotal_sold": {"type": "double precision", "index": 62, "name": "subtotal_sold", "comment": null}, "quantity_sold": {"type": "bigint", "index": 63, "name": "quantity_sold", "comment": null}, "count_distinct_orders": {"type": "bigint", "index": 64, "name": "count_distinct_orders", "comment": null}, "count_distinct_customers": {"type": "bigint", "index": 65, "name": "count_distinct_customers", "comment": null}, "count_distinct_customer_emails": {"type": "bigint", "index": 66, "name": "count_distinct_customer_emails", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 67, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 68, "name": "last_order_timestamp", "comment": null}, "subtotal_sold_refunds": {"type": "double precision", "index": 69, "name": "subtotal_sold_refunds", "comment": null}, "quantity_sold_refunds": {"type": "double precision", "index": 70, "name": "quantity_sold_refunds", "comment": null}, "count_fulfillment_pending": {"type": "bigint", "index": 71, "name": "count_fulfillment_pending", "comment": null}, "count_fulfillment_open": {"type": "bigint", "index": 72, "name": "count_fulfillment_open", "comment": null}, "count_fulfillment_success": {"type": "bigint", "index": 73, "name": "count_fulfillment_success", "comment": null}, "count_fulfillment_cancelled": {"type": "bigint", "index": 74, "name": "count_fulfillment_cancelled", "comment": null}, "count_fulfillment_error": {"type": "bigint", "index": 75, "name": "count_fulfillment_error", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 76, "name": "count_fulfillment_failure", "comment": null}, "incoming_quantity": {"type": "bigint", "index": 77, "name": "incoming_quantity", "comment": null}, "on_hand_quantity": {"type": "bigint", "index": 78, "name": "on_hand_quantity", "comment": null}, "available_quantity": {"type": "bigint", "index": 79, "name": "available_quantity", "comment": null}, "committed_quantity": {"type": "bigint", "index": 80, "name": "committed_quantity", "comment": null}, "reserved_quantity": {"type": "bigint", "index": 81, "name": "reserved_quantity", "comment": null}, "damaged_quantity": {"type": "bigint", "index": 82, "name": "damaged_quantity", "comment": null}, "safety_stock_quantity": {"type": "bigint", "index": 83, "name": "safety_stock_quantity", "comment": null}, "quality_control_quantity": {"type": "bigint", "index": 84, "name": "quality_control_quantity", "comment": null}, "net_subtotal_sold": {"type": "double precision", "index": 85, "name": "net_subtotal_sold", "comment": null}, "net_quantity_sold": {"type": "double precision", "index": 86, "name": "net_quantity_sold", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__inventory_levels"}, "model.shopify.shopify_gql__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__line_item_enhanced", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"header_id": {"type": "integer", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "numeric(28,6)", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "numeric(28,6)", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "numeric(28,6)", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "numeric(28,6)", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "numeric(28,6)", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "numeric(28,6)", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "text", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "double precision", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "text", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "integer", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "source_relation": {"type": "text", "index": 37, "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.shopify.shopify_gql__line_item_enhanced"}, "model.shopify.shopify_gql__order_lines": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__order_lines", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}, "pre_tax_price": {"type": "double precision", "index": 27, "name": "pre_tax_price", "comment": null}, "order_line_tax": {"type": "double precision", "index": 28, "name": "order_line_tax", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 29, "name": "fulfillable_quantity", "comment": null}, "weight_unit": {"type": "text", "index": 30, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 31, "name": "weight_value", "comment": null}, "restock_types": {"type": "text", "index": 32, "name": "restock_types", "comment": null}, "refunded_quantity": {"type": "double precision", "index": 33, "name": "refunded_quantity", "comment": null}, "refunded_subtotal": {"type": "double precision", "index": 34, "name": "refunded_subtotal", "comment": null}, "quantity_net_refunds": {"type": "double precision", "index": 35, "name": "quantity_net_refunds", "comment": null}, "subtotal_net_refunds": {"type": "double precision", "index": 36, "name": "subtotal_net_refunds", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 37, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 38, "name": "variant_updated_at", "comment": null}, "inventory_item_id": {"type": "integer", "index": 39, "name": "inventory_item_id", "comment": null}, "media_id": {"type": "integer", "index": 40, "name": "media_id", "comment": null}, "variant_price": {"type": "double precision", "index": 41, "name": "variant_price", "comment": null}, "variant_sku": {"type": "text", "index": 42, "name": "variant_sku", "comment": null}, "variant_position": {"type": "integer", "index": 43, "name": "variant_position", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 44, "name": "variant_inventory_policy", "comment": null}, "variant_compare_at_price": {"type": "character varying", "index": 45, "name": "variant_compare_at_price", "comment": null}, "variant_is_taxable": {"type": "boolean", "index": 46, "name": "variant_is_taxable", "comment": null}, "variant_barcode": {"type": "text", "index": 47, "name": "variant_barcode", "comment": null}, "variant_inventory_quantity": {"type": "integer", "index": 48, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 49, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 50, "name": "variant_weight_unit", "comment": null}, "variant_tax_code": {"type": "text", "index": 51, "name": "variant_tax_code", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 52, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 53, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "integer", "index": 54, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 55, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 56, "name": "variant_sellable_online_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.shopify.shopify_gql__order_lines"}, "model.shopify.shopify_gql__order_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__order_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_url", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw": {"type": "text", "index": 89, "name": "metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe": {"type": "text", "index": 90, "name": "metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__order_metafields"}, "model.shopify.shopify_gql__orders": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__orders", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_url", "comment": null}, "order_adjustment_amount": {"type": "double precision", "index": 89, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 90, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "double precision", "index": 91, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 92, "name": "refund_total_tax", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 93, "name": "order_adjusted_total", "comment": null}, "line_item_count": {"type": "bigint", "index": 94, "name": "line_item_count", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 95, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 96, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_pres_currency_codes": {"type": "text", "index": 97, "name": "total_line_items_price_pres_currency_codes", "comment": null}, "total_line_items_price_shop_currency_codes": {"type": "text", "index": 98, "name": "total_line_items_price_shop_currency_codes", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 99, "name": "shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 100, "name": "percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 101, "name": "fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "bigint", "index": 102, "name": "count_discount_codes_applied", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 103, "name": "order_total_shipping_tax", "comment": null}, "order_tags": {"type": "text", "index": 104, "name": "order_tags", "comment": null}, "number_of_fulfillments": {"type": "bigint", "index": 105, "name": "number_of_fulfillments", "comment": null}, "fulfillment_services": {"type": "text", "index": 106, "name": "fulfillment_services", "comment": null}, "tracking_companies": {"type": "text", "index": 107, "name": "tracking_companies", "comment": null}, "tracking_numbers": {"type": "text", "index": 108, "name": "tracking_numbers", "comment": null}, "customer_order_seq_number": {"type": "bigint", "index": 109, "name": "customer_order_seq_number", "comment": null}, "new_vs_repeat": {"type": "text", "index": 110, "name": "new_vs_repeat", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__orders"}, "model.shopify.shopify_gql__product_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__product_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bc_brenbre": {"type": "text", "index": 14, "name": "metafield_bea81c1795a612d8fc3a232b156467bc_brenbre", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42": {"type": "text", "index": 15, "name": "metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__product_metafields"}, "model.shopify.shopify_gql__product_variant_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__product_variant_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}, "weight": {"type": "double precision", "index": 24, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__product_variant_metafields"}, "model.shopify.shopify_gql__products": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__products", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}, "collections": {"type": "text", "index": 14, "name": "collections", "comment": null}, "tags": {"type": "text", "index": 15, "name": "tags", "comment": null}, "count_variants": {"type": "bigint", "index": 16, "name": "count_variants", "comment": null}, "has_product_media": {"type": "boolean", "index": 17, "name": "has_product_media", "comment": null}, "total_quantity_sold": {"type": "bigint", "index": 18, "name": "total_quantity_sold", "comment": null}, "subtotal_sold": {"type": "double precision", "index": 19, "name": "subtotal_sold", "comment": null}, "quantity_sold_net_refunds": {"type": "double precision", "index": 20, "name": "quantity_sold_net_refunds", "comment": null}, "subtotal_sold_net_refunds": {"type": "double precision", "index": 21, "name": "subtotal_sold_net_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_quantity_per_order_line": {"type": "numeric", "index": 24, "name": "avg_quantity_per_order_line", "comment": null}, "product_total_discount": {"type": "double precision", "index": 25, "name": "product_total_discount", "comment": null}, "product_avg_discount_per_order_line": {"type": "double precision", "index": 26, "name": "product_avg_discount_per_order_line", "comment": null}, "product_total_tax": {"type": "double precision", "index": 27, "name": "product_total_tax", "comment": null}, "product_avg_tax_per_order_line": {"type": "double precision", "index": 28, "name": "product_avg_tax_per_order_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__products"}, "model.shopify.shopify_gql__shop_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__shop_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 16, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 17, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 18, "name": "email", "comment": null}, "domain": {"type": "text", "index": 19, "name": "domain", "comment": null}, "phone": {"type": "character varying", "index": 20, "name": "phone", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 21, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 22, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 23, "name": "timezone_offset_minutes", "comment": null}, "iana_timezone": {"type": "text", "index": 24, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 25, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 26, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "has_shipping_taxes": {"type": "boolean", "index": 29, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 30, "name": "has_taxes_included_in_price", "comment": null}, "has_storefront": {"type": "boolean", "index": 31, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 32, "name": "has_checkout_api_supported", "comment": null}, "money_format": {"type": "text", "index": 33, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 34, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 35, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 36, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 37, "name": "plan_display_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 38, "name": "is_password_enabled", "comment": null}, "is_setup_required": {"type": "boolean", "index": 39, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 40, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 41, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 42, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 43, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 44, "name": "unique_key", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew": {"type": "text", "index": 45, "name": "metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__shop_metafields"}, "model.shopify.shopify_gql__transactions": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__transactions", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "integer", "index": 3, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 4, "name": "amount_pres", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "device_id": {"type": "text", "index": 6, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 7, "name": "gateway", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 8, "name": "amount_pres_currency_code", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 9, "name": "amount_shop_currency_code", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 11, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 12, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 13, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 14, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 15, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 17, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 18, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 19, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 20, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 21, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 22, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "text", "index": 23, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 24, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 26, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 29, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 30, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 31, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 32, "name": "unique_key", "comment": null}, "payment_method": {"type": "text", "index": 33, "name": "payment_method", "comment": null}, "parent_created_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "parent_created_timestamp", "comment": null}, "parent_kind": {"type": "text", "index": 35, "name": "parent_kind", "comment": null}, "parent_amount": {"type": "double precision", "index": 36, "name": "parent_amount", "comment": null}, "parent_status": {"type": "text", "index": 37, "name": "parent_status", "comment": null}, "location_id": {"type": "integer", "index": 38, "name": "location_id", "comment": null}, "source_name": {"type": "text", "index": 39, "name": "source_name", "comment": null}, "exchange_rate": {"type": "numeric", "index": 40, "name": "exchange_rate", "comment": null}, "currency_exchange_calculated_amount": {"type": "double precision", "index": 41, "name": "currency_exchange_calculated_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__transactions"}, "model.shopify_source.stg_shopify__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 18, "name": "has_buyer_accepted_marketing", "comment": null}, "cart_token": {"type": "text", "index": 19, "name": "cart_token", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 20, "name": "created_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 21, "name": "closed_at", "comment": null}, "shop_currency": {"type": "text", "index": 22, "name": "shop_currency", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 24, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 25, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 26, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 27, "name": "gateway", "comment": null}, "checkout_id": {"type": "integer", "index": 28, "name": "checkout_id", "comment": null}, "landing_site_base_url": {"type": "text", "index": 29, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 30, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 31, "name": "name", "comment": null}, "note": {"type": "integer", "index": 32, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 33, "name": "phone", "comment": null}, "presentment_currency": {"type": "text", "index": 34, "name": "presentment_currency", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 36, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 37, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 38, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 39, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 40, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 41, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 42, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 43, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 44, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 45, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 46, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 47, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 48, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 49, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 50, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 51, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 52, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 53, "name": "has_taxes_included", "comment": null}, "token": {"type": "text", "index": 54, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_duties": {"type": "integer", "index": 56, "name": "total_duties", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 57, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 58, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 59, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 60, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 61, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 62, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 63, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 64, "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.shopify_source.stg_shopify__abandoned_checkout"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "discount_id": {"type": "bigint", "index": 3, "name": "discount_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "type": {"type": "character varying", "index": 5, "name": "type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 10, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"abandoned_checkout_shipping_line_id": {"type": "text", "index": 1, "name": "abandoned_checkout_shipping_line_id", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "shipping_code": {"type": "text", "index": 5, "name": "shipping_code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 7, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 8, "name": "delivery_expectation_range_max", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 9, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 10, "name": "delivery_expectation_type", "comment": null}, "discounted_price": {"type": "integer", "index": 11, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "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.shopify_source.stg_shopify__abandoned_checkout_shipping_line"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.stg_shopify__abandoned_checkout_tmp"}, "model.shopify_source.stg_shopify__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection"}, "model.shopify_source.stg_shopify__collection_product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection_product"}, "model.shopify_source.stg_shopify__collection_product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp"}, "model.shopify_source.stg_shopify__collection_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_tmp"}, "model.shopify_source.stg_shopify__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__customer"}, "model.shopify_source.stg_shopify__customer_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__customer_tag"}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp"}, "model.shopify_source.stg_shopify__customer_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tmp"}, "model.shopify_source.stg_shopify__discount_allocation": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"amount": {"type": "double precision", "index": 1, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 2, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 3, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 5, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 8, "name": "order_line_id", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_allocation"}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.stg_shopify__discount_allocation_tmp"}, "model.shopify_source.stg_shopify__discount_application": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocation_method": {"type": "character varying", "index": 1, "name": "allocation_method", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 3, "name": "description", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 5, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 6, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 7, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 8, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 9, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_application"}, "model.shopify_source.stg_shopify__discount_application_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp"}, "model.shopify_source.stg_shopify__discount_code_app": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_app"}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp"}, "model.shopify_source.stg_shopify__discount_code_basic": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_basic"}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp"}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_bxgy"}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp"}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_free_shipping"}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"}, "model.shopify_source.stg_shopify__discount_redeem_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_redeem_code"}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.stg_shopify__discount_redeem_code_tmp"}, "model.shopify_source.stg_shopify__fulfillment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "service": {"type": "text", "index": 5, "name": "service", "comment": null}, "shipment_status": {"type": "integer", "index": 6, "name": "shipment_status", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 8, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 9, "name": "tracking_number", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__fulfillment"}, "model.shopify_source.stg_shopify__fulfillment_event": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_event_id": {"type": "integer", "index": 1, "name": "fulfillment_event_id", "comment": null}, "fulfillment_id": {"type": "integer", "index": 2, "name": "fulfillment_id", "comment": null}, "shop_id": {"type": "integer", "index": 3, "name": "shop_id", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "message": {"type": "text", "index": 6, "name": "message", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 8, "name": "happened_at", "comment": null}, "address_1": {"type": "integer", "index": 9, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 10, "name": "city", "comment": null}, "province": {"type": "text", "index": 11, "name": "province", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "zip": {"type": "text", "index": 13, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 14, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 15, "name": "longitude", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "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.shopify_source.stg_shopify__fulfillment_event"}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp"}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp"}, "model.shopify_source.stg_shopify__inventory_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_item_id": {"type": "bigint", "index": 1, "name": "inventory_item_id", "comment": null}, "sku": {"type": "text", "index": 2, "name": "sku", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 4, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 5, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 6, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 7, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 8, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 9, "name": "is_inventory_quantity_tracked", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 10, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 11, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 12, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 13, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 14, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 15, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 16, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 17, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 18, "name": "tracked_editable_reason", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "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.shopify_source.stg_shopify__inventory_item"}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp"}, "model.shopify_source.stg_shopify__inventory_level": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "available_quantity": {"type": "integer", "index": 4, "name": "available_quantity", "comment": null}, "can_deactivate": {"type": "boolean", "index": 5, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_level"}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp"}, "model.shopify_source.stg_shopify__inventory_quantity": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_quantity_id": {"type": "bigint", "index": 1, "name": "inventory_quantity_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "inventory_state_name": {"type": "text", "index": 4, "name": "inventory_state_name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_quantity"}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp"}, "model.shopify_source.stg_shopify__location": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "is_active": {"type": "boolean", "index": 4, "name": "is_active", "comment": null}, "address_1": {"type": "text", "index": 5, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 6, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 10, "name": "country_name", "comment": null}, "is_legacy": {"type": "boolean", "index": 11, "name": "is_legacy", "comment": null}, "localized_country_name": {"type": "text", "index": 12, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 13, "name": "localized_province_name", "comment": null}, "phone": {"type": "integer", "index": 14, "name": "phone", "comment": null}, "province": {"type": "text", "index": 15, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 16, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 20, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 21, "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.shopify_source.stg_shopify__location"}, "model.shopify_source.stg_shopify__location_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.stg_shopify__location_tmp"}, "model.shopify_source.stg_shopify__media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media"}, "model.shopify_source.stg_shopify__media_image": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media_image"}, "model.shopify_source.stg_shopify__media_image_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_image_tmp"}, "model.shopify_source.stg_shopify__media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_tmp"}, "model.shopify_source.stg_shopify__metafield": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "stg_shopify__metafield", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"metafield_id": {"type": "bigint", "index": 1, "name": "metafield_id", "comment": null}, "description": {"type": "integer", "index": 2, "name": "description", "comment": null}, "namespace": {"type": "text", "index": 3, "name": "namespace", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "value_type": {"type": "text", "index": 6, "name": "value_type", "comment": null}, "owner_resource_id": {"type": "bigint", "index": 7, "name": "owner_resource_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "metafield_reference": {"type": "text", "index": 12, "name": "metafield_reference", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__metafield"}, "model.shopify_source.stg_shopify__metafield_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__metafield_tmp"}, "model.shopify_source.stg_shopify__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "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.shopify_source.stg_shopify__order"}, "model.shopify_source.stg_shopify__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "bigint", "index": 1, "name": "order_adjustment_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "amount_set": {"type": "integer", "index": 5, "name": "amount_set", "comment": null}, "tax_amount": {"type": "double precision", "index": 6, "name": "tax_amount", "comment": null}, "tax_amount_set": {"type": "integer", "index": 7, "name": "tax_amount_set", "comment": null}, "kind": {"type": "text", "index": 8, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 9, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_adjustment"}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp"}, "model.shopify_source.stg_shopify__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_discount_code"}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp"}, "model.shopify_source.stg_shopify__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "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.shopify_source.stg_shopify__order_line"}, "model.shopify_source.stg_shopify__order_line_refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_refund_id": {"type": "bigint", "index": 1, "name": "order_line_refund_id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "order_line_id": {"type": "bigint", "index": 3, "name": "order_line_id", "comment": null}, "subtotal": {"type": "integer", "index": 4, "name": "subtotal", "comment": null}, "subtotal_set": {"type": "integer", "index": 5, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 6, "name": "total_tax", "comment": null}, "total_tax_set": {"type": "integer", "index": 7, "name": "total_tax_set", "comment": null}, "quantity": {"type": "integer", "index": 8, "name": "quantity", "comment": null}, "refund_id": {"type": "bigint", "index": 9, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 10, "name": "restock_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_line_refund"}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp"}, "model.shopify_source.stg_shopify__order_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_tmp"}, "model.shopify_source.stg_shopify__order_note_attribute": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_note_attribute"}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp"}, "model.shopify_source.stg_shopify__order_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 3, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 5, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 6, "name": "discounted_price", "comment": null}, "discounted_price_set": {"type": "text", "index": 7, "name": "discounted_price_set", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 10, "name": "price_set", "comment": null}, "is_third_party_required": {"type": "boolean", "index": 11, "name": "is_third_party_required", "comment": null}, "source": {"type": "text", "index": 12, "name": "source", "comment": null}, "title": {"type": "text", "index": 13, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_line"}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp"}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_tax_line"}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"}, "model.shopify_source.stg_shopify__order_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_tag"}, "model.shopify_source.stg_shopify__order_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp"}, "model.shopify_source.stg_shopify__order_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tmp"}, "model.shopify_source.stg_shopify__order_url_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "key": {"type": "text", "index": 2, "name": "key", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_url_tag"}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp"}, "model.shopify_source.stg_shopify__product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product"}, "model.shopify_source.stg_shopify__product_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_media"}, "model.shopify_source.stg_shopify__product_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_media_tmp"}, "model.shopify_source.stg_shopify__product_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product_tag"}, "model.shopify_source.stg_shopify__product_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp"}, "model.shopify_source.stg_shopify__product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tmp"}, "model.shopify_source.stg_shopify__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "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.shopify_source.stg_shopify__product_variant"}, "model.shopify_source.stg_shopify__product_variant_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_variant_media"}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_variant_media_tmp"}, "model.shopify_source.stg_shopify__product_variant_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp"}, "model.shopify_source.stg_shopify__refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"refund_id": {"type": "bigint", "index": 1, "name": "refund_id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "order_id": {"type": "bigint", "index": 3, "name": "order_id", "comment": null}, "restock": {"type": "boolean", "index": 4, "name": "restock", "comment": null}, "total_duties_set": {"type": "integer", "index": 5, "name": "total_duties_set", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__refund"}, "model.shopify_source.stg_shopify__refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.stg_shopify__refund_tmp"}, "model.shopify_source.stg_shopify__shop": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify_source.stg_shopify__shop"}, "model.shopify_source.stg_shopify__shop_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__shop_tmp"}, "model.shopify_source.stg_shopify__tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tax_line"}, "model.shopify_source.stg_shopify__tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp"}, "model.shopify_source.stg_shopify__tender_transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "payment_method": {"type": "text", "index": 5, "name": "payment_method", "comment": null}, "remote_reference": {"type": "integer", "index": 6, "name": "remote_reference", "comment": null}, "user_id": {"type": "integer", "index": 7, "name": "user_id", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tender_transaction"}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.stg_shopify__tender_transaction_tmp"}, "model.shopify_source.stg_shopify__transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "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.shopify_source.stg_shopify__transaction"}, "model.shopify_source.stg_shopify__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__transaction_tmp"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "checkout_id": {"type": "integer", "index": 20, "name": "checkout_id", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "note": {"type": "text", "index": 22, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 23, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 24, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 25, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 26, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 27, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 28, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 29, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 30, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 31, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 32, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 33, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 34, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 35, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 36, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 37, "name": "shipping_address_zip", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 38, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 39, "name": "subtotal_price_shop_currency_code", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_pres_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 42, "name": "has_taxes_included", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 43, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 44, "name": "total_discount_shop_currency_code", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_pres_currency_code", "comment": null}, "total_duties_shop_amount": {"type": "double precision", "index": 47, "name": "total_duties_shop_amount", "comment": null}, "total_duties_shop_currency_code": {"type": "text", "index": 48, "name": "total_duties_shop_currency_code", "comment": null}, "total_duties_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_pres_amount", "comment": null}, "total_duties_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_pres_currency_code", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 51, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_shop_currency_code": {"type": "text", "index": 52, "name": "total_line_items_price_shop_currency_code", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 55, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 56, "name": "total_price_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 59, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 60, "name": "total_tax_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_pres_currency_code", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 63, "name": "completed_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 64, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 65, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 66, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 67, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 5, "name": "index", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"}, "model.shopify_source.stg_shopify_gql__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__collection"}, "model.shopify_source.stg_shopify_gql__collection_product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 5, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__collection_product"}, "model.shopify_source.stg_shopify_gql__collection_product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.stg_shopify_gql__collection_product_tmp"}, "model.shopify_source.stg_shopify_gql__collection_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.stg_shopify_gql__collection_tmp"}, "model.shopify_source.stg_shopify_gql__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer"}, "model.shopify_source.stg_shopify_gql__customer_address": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_address_id": {"type": "integer", "index": 1, "name": "customer_address_id", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "company": {"type": "text", "index": 6, "name": "company", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 8, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 10, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 11, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 12, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 13, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 15, "name": "phone", "comment": null}, "province": {"type": "text", "index": 16, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 17, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 18, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 19, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 20, "name": "timezone", "comment": null}, "has_coordinates_validated": {"type": "boolean", "index": 21, "name": "has_coordinates_validated", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 22, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 23, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 24, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_address"}, "model.shopify_source.stg_shopify_gql__customer_address_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_address_tmp"}, "model.shopify_source.stg_shopify_gql__customer_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag"}, "model.shopify_source.stg_shopify_gql__customer_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag_tmp"}, "model.shopify_source.stg_shopify_gql__customer_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tmp"}, "model.shopify_source.stg_shopify_gql__customer_visit": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_visit_id": {"type": "integer", "index": 1, "name": "customer_visit_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 4, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 5, "name": "landing_page_html", "comment": null}, "referral_code": {"type": "text", "index": 6, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 7, "name": "referral_info_html", "comment": null}, "referring_site": {"type": "text", "index": 8, "name": "referring_site", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 10, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 11, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 12, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 13, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 14, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 15, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 16, "name": "utm_parameters_term", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 17, "name": "occurred_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit"}, "model.shopify_source.stg_shopify_gql__customer_visit_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit_tmp"}, "model.shopify_source.stg_shopify_gql__discount_allocation": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocated_pres_amount": {"type": "double precision", "index": 1, "name": "allocated_pres_amount", "comment": null}, "allocated_pres_currency_code": {"type": "text", "index": 2, "name": "allocated_pres_currency_code", "comment": null}, "allocated_shop_amount": {"type": "double precision", "index": 3, "name": "allocated_shop_amount", "comment": null}, "allocated_shop_currency_code": {"type": "text", "index": 4, "name": "allocated_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 5, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 6, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 7, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation"}, "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_source.stg_shopify_gql__discount_allocation_tmp"}, "model.shopify_source.stg_shopify_gql__discount_application": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocation_method": {"type": "text", "index": 1, "name": "allocation_method", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_percentage": {"type": "double precision", "index": 8, "name": "value_percentage", "comment": null}, "value_currency_code": {"type": "text", "index": 9, "name": "value_currency_code", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_application"}, "model.shopify_source.stg_shopify_gql__discount_application_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_source.stg_shopify_gql__discount_application_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_app": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app"}, "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_app_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_basic": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic"}, "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_basic_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 13, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 14, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 17, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 18, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy"}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping"}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"}, "model.shopify_source.stg_shopify_gql__discount_redeem_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code"}, "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "service": {"type": "text", "index": 5, "name": "service", "comment": null}, "shipment_status": {"type": "text", "index": 6, "name": "shipment_status", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 12, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment"}, "model.shopify_source.stg_shopify_gql__fulfillment_event": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_event_id": {"type": "integer", "index": 1, "name": "fulfillment_event_id", "comment": null}, "fulfillment_id": {"type": "integer", "index": 2, "name": "fulfillment_id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "message": {"type": "text", "index": 4, "name": "message", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 5, "name": "estimated_delivery_at", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 6, "name": "happened_at", "comment": null}, "address_1": {"type": "text", "index": 7, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "province": {"type": "text", "index": 9, "name": "province", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "zip": {"type": "text", "index": 11, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 12, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 13, "name": "longitude", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 17, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event"}, "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_order_line_item_id": {"type": "integer", "index": 1, "name": "fulfillment_order_line_item_id", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 5, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 6, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 7, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 9, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 10, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 11, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 12, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 13, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 15, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 16, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 17, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 18, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 19, "name": "weight_value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 20, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 22, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_source.stg_shopify_gql__fulfillment_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "tracking_company": {"type": "text", "index": 3, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "text", "index": 4, "name": "tracking_number", "comment": null}, "tracking_url": {"type": "text", "index": 5, "name": "tracking_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 8, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_item_id": {"type": "integer", "index": 1, "name": "inventory_item_id", "comment": null}, "sku": {"type": "text", "index": 2, "name": "sku", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 4, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 5, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "text", "index": 6, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "text", "index": 7, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 8, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 9, "name": "is_inventory_quantity_tracked", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 10, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 11, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 12, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 13, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 14, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 15, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 16, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "boolean", "index": 17, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item"}, "model.shopify_source.stg_shopify_gql__inventory_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.stg_shopify_gql__inventory_item_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_level": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "integer", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level"}, "model.shopify_source.stg_shopify_gql__inventory_level_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.stg_shopify_gql__inventory_level_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_quantity": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_quantity_id": {"type": "integer", "index": 1, "name": "inventory_quantity_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 3, "name": "inventory_level_id", "comment": null}, "inventory_state_name": {"type": "text", "index": 4, "name": "inventory_state_name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 9, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity"}, "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_source.stg_shopify_gql__inventory_quantity_tmp"}, "model.shopify_source.stg_shopify_gql__location": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__location", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "is_active": {"type": "boolean", "index": 4, "name": "is_active", "comment": null}, "address_1": {"type": "text", "index": 5, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 6, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 10, "name": "country_name", "comment": null}, "is_legacy": {"type": "boolean", "index": 11, "name": "is_legacy", "comment": null}, "phone": {"type": "character varying", "index": 12, "name": "phone", "comment": null}, "province": {"type": "text", "index": 13, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 14, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 15, "name": "zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__location"}, "model.shopify_source.stg_shopify_gql__location_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__location_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__location_tmp"}, "model.shopify_source.stg_shopify_gql__media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "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}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media"}, "model.shopify_source.stg_shopify_gql__media_image": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_image", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 8, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media_image"}, "model.shopify_source.stg_shopify_gql__media_image_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_image_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media_image_tmp"}, "model.shopify_source.stg_shopify_gql__media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_source.stg_shopify_gql__media_tmp"}, "model.shopify_source.stg_shopify_gql__metafield": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__metafield", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"metafield_id": {"type": "integer", "index": 1, "name": "metafield_id", "comment": null}, "description": {"type": "text", "index": 2, "name": "description", "comment": null}, "namespace": {"type": "text", "index": 3, "name": "namespace", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "value_type": {"type": "text", "index": 6, "name": "value_type", "comment": null}, "owner_resource_id": {"type": "integer", "index": 7, "name": "owner_resource_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "metafield_reference": {"type": "text", "index": 12, "name": "metafield_reference", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 15, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__metafield"}, "model.shopify_source.stg_shopify_gql__metafield_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__metafield_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__metafield_tmp"}, "model.shopify_source.stg_shopify_gql__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order"}, "model.shopify_source.stg_shopify_gql__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "integer", "index": 1, "name": "order_adjustment_id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 3, "name": "amount_pres", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 4, "name": "amount_pres_currency_code", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 6, "name": "amount_shop_currency_code", "comment": null}, "tax_amount_pres": {"type": "double precision", "index": 7, "name": "tax_amount_pres", "comment": null}, "tax_amount_pres_currency_code": {"type": "text", "index": 8, "name": "tax_amount_pres_currency_code", "comment": null}, "tax_amount_shop": {"type": "double precision", "index": 9, "name": "tax_amount_shop", "comment": null}, "tax_amount_shop_currency_code": {"type": "text", "index": 10, "name": "tax_amount_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 11, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 14, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment"}, "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment_tmp"}, "model.shopify_source.stg_shopify_gql__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code"}, "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_source.stg_shopify_gql__order_discount_code_tmp"}, "model.shopify_source.stg_shopify_gql__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line"}, "model.shopify_source.stg_shopify_gql__order_line_refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_refund_id": {"type": "integer", "index": 1, "name": "order_line_refund_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "subtotal_pres_amount": {"type": "double precision", "index": 4, "name": "subtotal_pres_amount", "comment": null}, "subtotal_pres_currency_code": {"type": "text", "index": 5, "name": "subtotal_pres_currency_code", "comment": null}, "subtotal_shop_amount": {"type": "double precision", "index": 6, "name": "subtotal_shop_amount", "comment": null}, "subtotal_shop_currency_code": {"type": "text", "index": 7, "name": "subtotal_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 8, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 9, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 10, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 11, "name": "total_tax_shop_currency_code", "comment": null}, "quantity": {"type": "double precision", "index": 12, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 13, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 14, "name": "restock_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 17, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund"}, "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_source.stg_shopify_gql__order_line_refund_tmp"}, "model.shopify_source.stg_shopify_gql__order_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_note_attribute": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute"}, "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"}, "model.shopify_source.stg_shopify_gql__order_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "carrier_identifier": {"type": "text", "index": 3, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "delivery_category": {"type": "text", "index": 5, "name": "delivery_category", "comment": null}, "discounted_price_pres_amount": {"type": "double precision", "index": 6, "name": "discounted_price_pres_amount", "comment": null}, "discounted_price_pres_currency_code": {"type": "text", "index": 7, "name": "discounted_price_pres_currency_code", "comment": null}, "discounted_price_shop_amount": {"type": "double precision", "index": 8, "name": "discounted_price_shop_amount", "comment": null}, "discounted_price_shop_currency_code": {"type": "text", "index": 9, "name": "discounted_price_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 10, "name": "phone", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 11, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 12, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 13, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 14, "name": "price_shop_currency_code", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 19, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line"}, "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 3, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 4, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 5, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 6, "name": "price_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 7, "name": "rate", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_tag"}, "model.shopify_source.stg_shopify_gql__order_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_tag_tmp"}, "model.shopify_source.stg_shopify_gql__order_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_source.stg_shopify_gql__order_tmp"}, "model.shopify_source.stg_shopify_gql__product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product"}, "model.shopify_source.stg_shopify_gql__product_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "unique_key": {"type": "text", "index": 5, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_media"}, "model.shopify_source.stg_shopify_gql__product_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.stg_shopify_gql__product_media_tmp"}, "model.shopify_source.stg_shopify_gql__product_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tag"}, "model.shopify_source.stg_shopify_gql__product_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tag_tmp"}, "model.shopify_source.stg_shopify_gql__product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tmp"}, "model.shopify_source.stg_shopify_gql__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_variant"}, "model.shopify_source.stg_shopify_gql__product_variant_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 4, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media"}, "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_source.stg_shopify_gql__product_variant_media_tmp"}, "model.shopify_source.stg_shopify_gql__product_variant_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.stg_shopify_gql__product_variant_tmp"}, "model.shopify_source.stg_shopify_gql__refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"refund_id": {"type": "integer", "index": 1, "name": "refund_id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 4, "name": "user_id", "comment": null}, "return_id": {"type": "integer", "index": 5, "name": "return_id", "comment": null}, "total_refunded_pres_amount": {"type": "double precision", "index": 6, "name": "total_refunded_pres_amount", "comment": null}, "total_refunded_pres_currency_code": {"type": "text", "index": 7, "name": "total_refunded_pres_currency_code", "comment": null}, "total_refunded_shop_amount": {"type": "double precision", "index": 8, "name": "total_refunded_shop_amount", "comment": null}, "total_refunded_shop_currency_code": {"type": "text", "index": 9, "name": "total_refunded_shop_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__refund"}, "model.shopify_source.stg_shopify_gql__refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_source.stg_shopify_gql__refund_tmp"}, "model.shopify_source.stg_shopify_gql__shop": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 16, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 17, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 18, "name": "email", "comment": null}, "domain": {"type": "text", "index": 19, "name": "domain", "comment": null}, "phone": {"type": "character varying", "index": 20, "name": "phone", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 21, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 22, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 23, "name": "timezone_offset_minutes", "comment": null}, "iana_timezone": {"type": "text", "index": 24, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 25, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 26, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "has_shipping_taxes": {"type": "boolean", "index": 29, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 30, "name": "has_taxes_included_in_price", "comment": null}, "has_storefront": {"type": "boolean", "index": 31, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 32, "name": "has_checkout_api_supported", "comment": null}, "money_format": {"type": "text", "index": 33, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 34, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 35, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 36, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 37, "name": "plan_display_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 38, "name": "is_password_enabled", "comment": null}, "is_setup_required": {"type": "boolean", "index": 39, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 40, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 41, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 42, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 43, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 44, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__shop"}, "model.shopify_source.stg_shopify_gql__shop_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__shop_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__shop_tmp"}, "model.shopify_source.stg_shopify_gql__tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 3, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 4, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 5, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 6, "name": "price_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 7, "name": "rate", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tax_line"}, "model.shopify_source.stg_shopify_gql__tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tax_line_tmp"}, "model.shopify_source.stg_shopify_gql__tender_transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "payment_method": {"type": "text", "index": 5, "name": "payment_method", "comment": null}, "remote_reference": {"type": "text", "index": 6, "name": "remote_reference", "comment": null}, "user_id": {"type": "integer", "index": 7, "name": "user_id", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction"}, "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_source.stg_shopify_gql__tender_transaction_tmp"}, "model.shopify_source.stg_shopify_gql__transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "integer", "index": 3, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 4, "name": "amount_pres", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "device_id": {"type": "text", "index": 6, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 7, "name": "gateway", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 8, "name": "amount_pres_currency_code", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 9, "name": "amount_shop_currency_code", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 11, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 12, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 13, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 14, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 15, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 17, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 18, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 19, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 20, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 21, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 22, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "text", "index": 23, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 24, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 26, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 29, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 30, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 31, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 32, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__transaction"}, "model.shopify_source.stg_shopify_gql__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__transaction_tmp"}}, "sources": {"source.shopify_source.shopify.abandoned_checkout": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.shopify.abandoned_checkout"}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code"}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line"}, "source.shopify_source.shopify.collection": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection"}, "source.shopify_source.shopify.collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection_product"}, "source.shopify_source.shopify.customer": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer"}, "source.shopify_source.shopify.customer_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer_tag"}, "source.shopify_source.shopify.discount_allocation": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.shopify.discount_allocation"}, "source.shopify_source.shopify.discount_application": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_application"}, "source.shopify_source.shopify.discount_code_app": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_app"}, "source.shopify_source.shopify.discount_code_basic": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_basic"}, "source.shopify_source.shopify.discount_code_bxgy": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_bxgy"}, "source.shopify_source.shopify.discount_code_free_shipping": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_free_shipping"}, "source.shopify_source.shopify.discount_redeem_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.shopify.discount_redeem_code"}, "source.shopify_source.shopify.fulfillment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment"}, "source.shopify_source.shopify.fulfillment_event": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment_event"}, "source.shopify_source.shopify_graphql.abandoned_checkout": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_source.shopify_graphql.abandoned_checkout"}, "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"}, "source.shopify_source.shopify_graphql.collection": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.shopify_graphql.collection"}, "source.shopify_source.shopify_graphql.collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.shopify_graphql.collection_product"}, "source.shopify_source.shopify_graphql.customer_address": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_address"}, "source.shopify_source.shopify_graphql.customer": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer"}, "source.shopify_source.shopify_graphql.customer_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_tag"}, "source.shopify_source.shopify_graphql.customer_visit": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_visit_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_visit"}, "source.shopify_source.shopify_graphql.discount_allocation": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_source.shopify_graphql.discount_allocation"}, "source.shopify_source.shopify_graphql.discount_application": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_source.shopify_graphql.discount_application"}, "source.shopify_source.shopify_graphql.discount_code_app": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_app"}, "source.shopify_source.shopify_graphql.discount_code_basic": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_basic"}, "source.shopify_source.shopify_graphql.discount_code_bxgy": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_bxgy"}, "source.shopify_source.shopify_graphql.discount_code_free_shipping": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_free_shipping"}, "source.shopify_source.shopify_graphql.discount_redeem_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_source.shopify_graphql.discount_redeem_code"}, "source.shopify_source.shopify_graphql.fulfillment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_source.shopify_graphql.fulfillment"}, "source.shopify_source.shopify_graphql.fulfillment_event": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_event"}, "source.shopify_source.shopify_graphql.fulfillment_order_line_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_order_line_item"}, "source.shopify_source.shopify_graphql.fulfillment_tracking_info": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_tracking_info"}, "source.shopify_source.shopify_graphql.inventory_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.shopify_graphql.inventory_item"}, "source.shopify_source.shopify_graphql.inventory_level": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.shopify_graphql.inventory_level"}, "source.shopify_source.shopify_graphql.inventory_quantity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_source.shopify_graphql.inventory_quantity"}, "source.shopify_source.shopify_graphql.location": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.location"}, "source.shopify_source.shopify_graphql.media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_source.shopify_graphql.media"}, "source.shopify_source.shopify_graphql.media_image": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.media_image"}, "source.shopify_source.shopify_graphql.metafield": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.metafield"}, "source.shopify_source.shopify_graphql.order_adjustment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_adjustment"}, "source.shopify_source.shopify_graphql.order": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_source.shopify_graphql.order"}, "source.shopify_source.shopify_graphql.order_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_source.shopify_graphql.order_discount_code"}, "source.shopify_source.shopify_graphql.order_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_line"}, "source.shopify_source.shopify_graphql.order_line_refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_source.shopify_graphql.order_line_refund"}, "source.shopify_source.shopify_graphql.order_note_attribute": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_note_attribute"}, "source.shopify_source.shopify_graphql.order_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_shipping_line"}, "source.shopify_source.shopify_graphql.order_shipping_tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_shipping_tax_line"}, "source.shopify_source.shopify_graphql.order_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_tag"}, "source.shopify_source.shopify_graphql.product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.product"}, "source.shopify_source.shopify_graphql.product_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.shopify_graphql.product_media"}, "source.shopify_source.shopify_graphql.product_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.product_tag"}, "source.shopify_source.shopify_graphql.product_variant": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.shopify_graphql.product_variant"}, "source.shopify_source.shopify_graphql.product_variant_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_source.shopify_graphql.product_variant_media"}, "source.shopify_source.shopify_graphql.refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_source.shopify_graphql.refund"}, "source.shopify_source.shopify_graphql.shop": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.shop"}, "source.shopify_source.shopify_graphql.tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.tax_line"}, "source.shopify_source.shopify_graphql.tender_transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_source.shopify_graphql.tender_transaction"}, "source.shopify_source.shopify_graphql.transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.transaction"}, "source.shopify_source.shopify.inventory_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_item"}, "source.shopify_source.shopify.inventory_level": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_level"}, "source.shopify_source.shopify.inventory_quantity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_quantity"}, "source.shopify_source.shopify.location": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.shopify.location"}, "source.shopify_source.shopify.media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media"}, "source.shopify_source.shopify.media_image": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media_image"}, "source.shopify_source.shopify.metafield": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.metafield"}, "source.shopify_source.shopify.order_adjustment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_adjustment"}, "source.shopify_source.shopify.order": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order"}, "source.shopify_source.shopify.order_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_discount_code"}, "source.shopify_source.shopify.order_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line"}, "source.shopify_source.shopify.order_line_refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line_refund"}, "source.shopify_source.shopify.order_note_attribute": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_note_attribute"}, "source.shopify_source.shopify.order_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_line"}, "source.shopify_source.shopify.order_shipping_tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_tax_line"}, "source.shopify_source.shopify.order_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_tag"}, "source.shopify_source.shopify.order_url_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_url_tag"}, "source.shopify_source.shopify.product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product"}, "source.shopify_source.shopify.product_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_media"}, "source.shopify_source.shopify.product_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_tag"}, "source.shopify_source.shopify.product_variant": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_variant"}, "source.shopify_source.shopify.product_variant_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_variant_media"}, "source.shopify_source.shopify.refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.shopify.refund"}, "source.shopify_source.shopify.shop": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.shop"}, "source.shopify_source.shopify.tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.tax_line"}, "source.shopify_source.shopify.tender_transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.shopify.tender_transaction"}, "source.shopify_source.shopify.transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.transaction"}}, "errors": null} +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.10.10", "generated_at": "2025-09-04T17:10:36.581466Z", "invocation_id": "db230143-3f42-4e82-84ef-aecc747781ad", "invocation_started_at": "2025-09-04T17:10:23.251898Z", "env": {}}, "nodes": {"seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_integration_tests.shopify_abandoned_checkout_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data"}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data"}, "seed.shopify_integration_tests.shopify_collection_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_data"}, "seed.shopify_integration_tests.shopify_collection_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data"}, "seed.shopify_integration_tests.shopify_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_data"}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data"}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_integration_tests.shopify_discount_allocation_data"}, "seed.shopify_integration_tests.shopify_discount_application_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data"}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data"}, "seed.shopify_integration_tests.shopify_discount_code_basic_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data"}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data"}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data"}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_integration_tests.shopify_discount_redeem_code_data"}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data"}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data"}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_integration_tests.shopify_gql_abandoned_checkout_data"}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data"}, "seed.shopify_integration_tests.shopify_gql_collection_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_integration_tests.shopify_gql_collection_data"}, "seed.shopify_integration_tests.shopify_gql_collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_collection_product"}, "seed.shopify_integration_tests.shopify_gql_collection_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_collection_product_data"}, "seed.shopify_integration_tests.shopify_gql_collection_rule_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_rule_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "condition": {"type": "text", "index": 4, "name": "condition", "comment": null}, "relation": {"type": "text", "index": 5, "name": "relation", "comment": null}, "columns": {"type": "text", "index": 6, "name": "columns", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_rule_data"}, "seed.shopify_integration_tests.shopify_gql_customer_address_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_address_data"}, "seed.shopify_integration_tests.shopify_gql_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_data"}, "seed.shopify_integration_tests.shopify_gql_customer_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_tag_data"}, "seed.shopify_integration_tests.shopify_gql_customer_visit_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_visit_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_visit_data"}, "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_integration_tests.shopify_gql_discount_allocation_data"}, "seed.shopify_integration_tests.shopify_gql_discount_application_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_integration_tests.shopify_gql_discount_application_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_app_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_basic_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_bxgy_data"}, "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data"}, "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_integration_tests.shopify_gql_discount_redeem_code_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_integration_tests.shopify_gql_fulfillment_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data"}, "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_integration_tests.shopify_gql_inventory_item_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_level_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_integration_tests.shopify_gql_inventory_level_data"}, "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_integration_tests.shopify_gql_inventory_quantity_data"}, "seed.shopify_integration_tests.shopify_gql_location_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_location_data"}, "seed.shopify_integration_tests.shopify_gql_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_integration_tests.shopify_gql_media_data"}, "seed.shopify_integration_tests.shopify_gql_media_image_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_media_image_data"}, "seed.shopify_integration_tests.shopify_gql_metafield_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_metafield_data"}, "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_adjustment_data"}, "seed.shopify_integration_tests.shopify_gql_order_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_integration_tests.shopify_gql_order_data"}, "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_integration_tests.shopify_gql_order_discount_code_data"}, "seed.shopify_integration_tests.shopify_gql_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_integration_tests.shopify_gql_order_line_refund_data"}, "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data"}, "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data"}, "seed.shopify_integration_tests.shopify_gql_order_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_order_tag_data"}, "seed.shopify_integration_tests.shopify_gql_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_product_data"}, "seed.shopify_integration_tests.shopify_gql_product_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_integration_tests.shopify_gql_product_media_data"}, "seed.shopify_integration_tests.shopify_gql_product_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_product_tag_data"}, "seed.shopify_integration_tests.shopify_gql_product_variant_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_integration_tests.shopify_gql_product_variant_data"}, "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_integration_tests.shopify_gql_product_variant_media_data"}, "seed.shopify_integration_tests.shopify_gql_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_integration_tests.shopify_gql_refund_data"}, "seed.shopify_integration_tests.shopify_gql_shop_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_shop_data"}, "seed.shopify_integration_tests.shopify_gql_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_tax_line_data"}, "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_integration_tests.shopify_gql_tender_transaction_data"}, "seed.shopify_integration_tests.shopify_gql_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_gql_transaction_data"}, "seed.shopify_integration_tests.shopify_inventory_item_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data"}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data"}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data"}, "seed.shopify_integration_tests.shopify_location_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_integration_tests.shopify_location_data"}, "seed.shopify_integration_tests.shopify_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_data"}, "seed.shopify_integration_tests.shopify_media_image_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_media_image_data"}, "seed.shopify_integration_tests.shopify_metafield_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_metafield_data"}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data"}, "seed.shopify_integration_tests.shopify_order_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_data"}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data"}, "seed.shopify_integration_tests.shopify_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_data"}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data"}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data"}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data"}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data"}, "seed.shopify_integration_tests.shopify_order_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data"}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data"}, "seed.shopify_integration_tests.shopify_product_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_data"}, "seed.shopify_integration_tests.shopify_product_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_media_data"}, "seed.shopify_integration_tests.shopify_product_tag_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data"}, "seed.shopify_integration_tests.shopify_product_variant_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data"}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_integration_tests.shopify_product_variant_media_data"}, "seed.shopify_integration_tests.shopify_refund_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_integration_tests.shopify_refund_data"}, "seed.shopify_integration_tests.shopify_shop_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_shop_data"}, "seed.shopify_integration_tests.shopify_tax_line_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data"}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_integration_tests.shopify_tender_transaction_data"}, "seed.shopify_integration_tests.shopify_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.shopify_integration_tests.shopify_transaction_data"}, "model.shopify.int_shopify__customer_email_rollup": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify__customer_email_rollup"}, "model.shopify.int_shopify_gql__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}, "rules": {"type": "text", "index": 11, "name": "rules", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__collection"}, "model.shopify.int_shopify_gql__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_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.shopify.int_shopify_gql__customer"}, "model.shopify.int_shopify_gql__customer_email_rollup": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__customer_email_rollup", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "account_state": {"type": "text", "index": 15, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 16, "name": "note", "comment": null}, "currency": {"type": "text", "index": 17, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 18, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 19, "name": "marketing_opt_in_level", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_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.shopify.int_shopify_gql__customer_email_rollup"}, "model.shopify.int_shopify_gql__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_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.shopify.int_shopify_gql__order"}, "model.shopify.int_shopify_gql__orders_order_line_aggregates": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_line_aggregates", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "line_item_count": {"type": "bigint", "index": 3, "name": "line_item_count", "comment": null}, "order_total_quantity": {"type": "bigint", "index": 4, "name": "order_total_quantity", "comment": null}, "order_total_tax": {"type": "double precision", "index": 5, "name": "order_total_tax", "comment": null}, "order_total_discount": {"type": "double precision", "index": 6, "name": "order_total_discount", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 8, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_pres_currency_codes": {"type": "text", "index": 9, "name": "total_line_items_price_pres_currency_codes", "comment": null}, "total_line_items_price_shop_currency_codes": {"type": "text", "index": 10, "name": "total_line_items_price_shop_currency_codes", "comment": null}, "order_total_shipping": {"type": "double precision", "index": 11, "name": "order_total_shipping", "comment": null}, "order_total_shipping_with_discounts": {"type": "double precision", "index": 12, "name": "order_total_shipping_with_discounts", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 13, "name": "order_total_shipping_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__orders_order_line_aggregates"}, "model.shopify.int_shopify_gql__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "int_shopify_gql__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}, "weight": {"type": "double precision", "index": 24, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.int_shopify_gql__product_variant"}, "model.shopify.shopify__calendar": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__calendar", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__calendar"}, "model.shopify.shopify__collection_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__collection_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__collection_metafields"}, "model.shopify.shopify__customer_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "date", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_cohorts"}, "model.shopify.shopify__customer_email_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify__customer_email_cohorts"}, "model.shopify.shopify__customer_emails": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_emails", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 15, "name": "default_address_id", "comment": null}, "account_state": {"type": "text", "index": 16, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 17, "name": "note", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 19, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 20, "name": "marketing_opt_in_level", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 21, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_order_value": {"type": "double precision", "index": 24, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 25, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 26, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 27, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 28, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 29, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 30, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 31, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 32, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 33, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 34, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 35, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 36, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 37, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 38, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 39, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_emails"}, "model.shopify.shopify__customer_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customer_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "metafield_star_wars_firstname": {"type": "text", "index": 21, "name": "metafield_star_wars_firstname", "comment": null}, "metafield_star_wars_fullname": {"type": "text", "index": 22, "name": "metafield_star_wars_fullname", "comment": null}, "metafield_star_wars_isjedi": {"type": "text", "index": 23, "name": "metafield_star_wars_isjedi", "comment": null}, "metafield_star_wars_lastname": {"type": "text", "index": 24, "name": "metafield_star_wars_lastname", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customer_metafields"}, "model.shopify.shopify__customers": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__customers", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "default_address_id": {"type": "bigint", "index": 5, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 9, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 10, "name": "note", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 12, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 13, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 14, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 15, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 19, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_order_timestamp", "comment": null}, "customer_tags": {"type": "text", "index": 22, "name": "customer_tags", "comment": null}, "avg_order_value": {"type": "double precision", "index": 23, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 24, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 25, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 26, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 27, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 28, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 29, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 30, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "numeric", "index": 31, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "numeric", "index": 32, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 33, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 34, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 35, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 36, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 37, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 38, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__customers"}, "model.shopify.shopify__daily_shop": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__daily_shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "shop_id": {"type": "integer", "index": 2, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "domain": {"type": "text", "index": 4, "name": "domain", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 7, "name": "enabled_presentment_currencies", "comment": null}, "iana_timezone": {"type": "text", "index": 8, "name": "iana_timezone", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "count_orders": {"type": "bigint", "index": 11, "name": "count_orders", "comment": null}, "count_line_items": {"type": "numeric", "index": 12, "name": "count_line_items", "comment": null}, "avg_line_item_count": {"type": "numeric", "index": 13, "name": "avg_line_item_count", "comment": null}, "count_customers": {"type": "bigint", "index": 14, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 15, "name": "count_customer_emails", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 16, "name": "order_adjusted_total", "comment": null}, "avg_order_value": {"type": "double precision", "index": 17, "name": "avg_order_value", "comment": null}, "shipping_cost": {"type": "double precision", "index": 18, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "numeric", "index": 19, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 20, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "numeric", "index": 21, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 22, "name": "refund_total_tax", "comment": null}, "total_discounts": {"type": "double precision", "index": 23, "name": "total_discounts", "comment": null}, "avg_discount": {"type": "double precision", "index": 24, "name": "avg_discount", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 25, "name": "shipping_discount_amount", "comment": null}, "avg_shipping_discount_amount": {"type": "double precision", "index": 26, "name": "avg_shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 27, "name": "percentage_calc_discount_amount", "comment": null}, "avg_percentage_calc_discount_amount": {"type": "double precision", "index": 28, "name": "avg_percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 29, "name": "fixed_amount_discount_amount", "comment": null}, "avg_fixed_amount_discount_amount": {"type": "double precision", "index": 30, "name": "avg_fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "numeric", "index": 31, "name": "count_discount_codes_applied", "comment": null}, "count_locations_ordered_from": {"type": "bigint", "index": 32, "name": "count_locations_ordered_from", "comment": null}, "count_orders_with_discounts": {"type": "bigint", "index": 33, "name": "count_orders_with_discounts", "comment": null}, "count_orders_with_refunds": {"type": "bigint", "index": 34, "name": "count_orders_with_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 36, "name": "last_order_timestamp", "comment": null}, "quantity_sold": {"type": "bigint", "index": 37, "name": "quantity_sold", "comment": null}, "quantity_refunded": {"type": "numeric", "index": 38, "name": "quantity_refunded", "comment": null}, "quantity_net": {"type": "numeric", "index": 39, "name": "quantity_net", "comment": null}, "avg_quantity_sold": {"type": "bigint", "index": 40, "name": "avg_quantity_sold", "comment": null}, "avg_quantity_net": {"type": "numeric", "index": 41, "name": "avg_quantity_net", "comment": null}, "count_variants_sold": {"type": "bigint", "index": 42, "name": "count_variants_sold", "comment": null}, "count_products_sold": {"type": "bigint", "index": 43, "name": "count_products_sold", "comment": null}, "quantity_gift_cards_sold": {"type": "numeric", "index": 44, "name": "quantity_gift_cards_sold", "comment": null}, "quantity_requiring_shipping": {"type": "numeric", "index": 45, "name": "quantity_requiring_shipping", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 46, "name": "count_abandoned_checkouts", "comment": null}, "count_customers_abandoned_checkout": {"type": "bigint", "index": 47, "name": "count_customers_abandoned_checkout", "comment": null}, "count_customer_emails_abandoned_checkout": {"type": "bigint", "index": 48, "name": "count_customer_emails_abandoned_checkout", "comment": null}, "count_fulfillment_attempted_delivery": {"type": "bigint", "index": 49, "name": "count_fulfillment_attempted_delivery", "comment": null}, "count_fulfillment_delayed": {"type": "bigint", "index": 50, "name": "count_fulfillment_delayed", "comment": null}, "count_fulfillment_delivered": {"type": "bigint", "index": 51, "name": "count_fulfillment_delivered", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 52, "name": "count_fulfillment_failure", "comment": null}, "count_fulfillment_in_transit": {"type": "bigint", "index": 53, "name": "count_fulfillment_in_transit", "comment": null}, "count_fulfillment_out_for_delivery": {"type": "bigint", "index": 54, "name": "count_fulfillment_out_for_delivery", "comment": null}, "count_fulfillment_ready_for_pickup": {"type": "bigint", "index": 55, "name": "count_fulfillment_ready_for_pickup", "comment": null}, "count_fulfillment_picked_up": {"type": "bigint", "index": 56, "name": "count_fulfillment_picked_up", "comment": null}, "count_fulfillment_label_printed": {"type": "bigint", "index": 57, "name": "count_fulfillment_label_printed", "comment": null}, "count_fulfillment_label_purchased": {"type": "bigint", "index": 58, "name": "count_fulfillment_label_purchased", "comment": null}, "count_fulfillment_confirmed": {"type": "bigint", "index": 59, "name": "count_fulfillment_confirmed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__daily_shop"}, "model.shopify.shopify__discounts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__discounts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"code": {"type": "character varying", "index": 1, "name": "code", "comment": null}, "discount_code_id": {"type": "bigint", "index": 2, "name": "discount_code_id", "comment": null}, "discount_type": {"type": "text", "index": 3, "name": "discount_type", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_count": {"type": "integer", "index": 5, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 14, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 15, "name": "status", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 17, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 18, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 20, "name": "usage_limit", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "allocation_method": {"type": "character varying", "index": 22, "name": "allocation_method", "comment": null}, "description": {"type": "character varying", "index": 23, "name": "description", "comment": null}, "target_selection": {"type": "character varying", "index": 24, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 25, "name": "target_type", "comment": null}, "application_type": {"type": "character varying", "index": 26, "name": "application_type", "comment": null}, "value": {"type": "double precision", "index": 27, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 28, "name": "value_type", "comment": null}, "discounts_unique_key": {"type": "text", "index": 29, "name": "discounts_unique_key", "comment": null}, "count_orders": {"type": "bigint", "index": 30, "name": "count_orders", "comment": null}, "avg_order_discount_amount": {"type": "double precision", "index": 31, "name": "avg_order_discount_amount", "comment": null}, "total_order_discount_amount": {"type": "double precision", "index": 32, "name": "total_order_discount_amount", "comment": null}, "total_order_line_items_price": {"type": "double precision", "index": 33, "name": "total_order_line_items_price", "comment": null}, "total_order_shipping_cost": {"type": "double precision", "index": 34, "name": "total_order_shipping_cost", "comment": null}, "total_order_refund_amount": {"type": "double precision", "index": 35, "name": "total_order_refund_amount", "comment": null}, "count_customers": {"type": "bigint", "index": 36, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 37, "name": "count_customer_emails", "comment": null}, "total_abandoned_checkout_discount_amount": {"type": "double precision", "index": 38, "name": "total_abandoned_checkout_discount_amount", "comment": null}, "total_abandoned_checkout_shipping_price": {"type": "double precision", "index": 39, "name": "total_abandoned_checkout_shipping_price", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 40, "name": "count_abandoned_checkouts", "comment": null}, "count_abandoned_checkout_customers": {"type": "bigint", "index": 41, "name": "count_abandoned_checkout_customers", "comment": null}, "count_abandoned_checkout_customer_emails": {"type": "bigint", "index": 42, "name": "count_abandoned_checkout_customer_emails", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__discounts"}, "model.shopify.shopify__inventory_levels": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__inventory_levels", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "sku": {"type": "text", "index": 10, "name": "sku", "comment": null}, "is_inventory_item_deleted": {"type": "boolean", "index": 11, "name": "is_inventory_item_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 14, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 15, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 16, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 17, "name": "is_inventory_quantity_tracked", "comment": null}, "inventory_item_created_at": {"type": "timestamp without time zone", "index": 18, "name": "inventory_item_created_at", "comment": null}, "inventory_item_updated_at": {"type": "timestamp without time zone", "index": 19, "name": "inventory_item_updated_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 20, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 21, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 22, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 23, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 24, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 25, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 26, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 27, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 28, "name": "tracked_editable_reason", "comment": null}, "location_name": {"type": "text", "index": 29, "name": "location_name", "comment": null}, "is_location_deleted": {"type": "boolean", "index": 30, "name": "is_location_deleted", "comment": null}, "is_location_active": {"type": "boolean", "index": 31, "name": "is_location_active", "comment": null}, "address_1": {"type": "text", "index": 32, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 33, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 34, "name": "city", "comment": null}, "country": {"type": "text", "index": 35, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 36, "name": "country_code", "comment": null}, "is_legacy_location": {"type": "boolean", "index": 37, "name": "is_legacy_location", "comment": null}, "province": {"type": "text", "index": 38, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 39, "name": "province_code", "comment": null}, "phone": {"type": "integer", "index": 40, "name": "phone", "comment": null}, "zip": {"type": "integer", "index": 41, "name": "zip", "comment": null}, "location_created_at": {"type": "timestamp without time zone", "index": 42, "name": "location_created_at", "comment": null}, "location_updated_at": {"type": "timestamp without time zone", "index": 43, "name": "location_updated_at", "comment": null}, "variant_id": {"type": "bigint", "index": 44, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 45, "name": "product_id", "comment": null}, "variant_title": {"type": "text", "index": 46, "name": "variant_title", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 47, "name": "variant_inventory_policy", "comment": null}, "variant_price": {"type": "double precision", "index": 48, "name": "variant_price", "comment": null}, "variant_media_id": {"type": "bigint", "index": 49, "name": "variant_media_id", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 50, "name": "variant_fulfillment_service", "comment": null}, "variant_inventory_management": {"type": "text", "index": 51, "name": "variant_inventory_management", "comment": null}, "is_variant_taxable": {"type": "boolean", "index": 52, "name": "is_variant_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 53, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 54, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 55, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 56, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 57, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 58, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 59, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 60, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 61, "name": "variant_tax_code", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 62, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 63, "name": "variant_updated_at", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 64, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 65, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 66, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 67, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 68, "name": "variant_sellable_online_quantity", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 69, "name": "subtotal_sold", "comment": null}, "quantity_sold": {"type": "bigint", "index": 70, "name": "quantity_sold", "comment": null}, "count_distinct_orders": {"type": "bigint", "index": 71, "name": "count_distinct_orders", "comment": null}, "count_distinct_customers": {"type": "bigint", "index": 72, "name": "count_distinct_customers", "comment": null}, "count_distinct_customer_emails": {"type": "bigint", "index": 73, "name": "count_distinct_customer_emails", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 74, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 75, "name": "last_order_timestamp", "comment": null}, "subtotal_sold_refunds": {"type": "numeric", "index": 76, "name": "subtotal_sold_refunds", "comment": null}, "quantity_sold_refunds": {"type": "numeric", "index": 77, "name": "quantity_sold_refunds", "comment": null}, "count_fulfillment_pending": {"type": "bigint", "index": 78, "name": "count_fulfillment_pending", "comment": null}, "count_fulfillment_open": {"type": "bigint", "index": 79, "name": "count_fulfillment_open", "comment": null}, "count_fulfillment_success": {"type": "bigint", "index": 80, "name": "count_fulfillment_success", "comment": null}, "count_fulfillment_cancelled": {"type": "bigint", "index": 81, "name": "count_fulfillment_cancelled", "comment": null}, "count_fulfillment_error": {"type": "bigint", "index": 82, "name": "count_fulfillment_error", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 83, "name": "count_fulfillment_failure", "comment": null}, "incoming_quantity": {"type": "bigint", "index": 84, "name": "incoming_quantity", "comment": null}, "on_hand_quantity": {"type": "bigint", "index": 85, "name": "on_hand_quantity", "comment": null}, "available_quantity": {"type": "bigint", "index": 86, "name": "available_quantity", "comment": null}, "committed_quantity": {"type": "bigint", "index": 87, "name": "committed_quantity", "comment": null}, "reserved_quantity": {"type": "bigint", "index": 88, "name": "reserved_quantity", "comment": null}, "damaged_quantity": {"type": "bigint", "index": 89, "name": "damaged_quantity", "comment": null}, "safety_stock_quantity": {"type": "bigint", "index": 90, "name": "safety_stock_quantity", "comment": null}, "quality_control_quantity": {"type": "bigint", "index": 91, "name": "quality_control_quantity", "comment": null}, "net_subtotal_sold": {"type": "numeric", "index": 92, "name": "net_subtotal_sold", "comment": null}, "net_quantity_sold": {"type": "numeric", "index": 93, "name": "net_quantity_sold", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__inventory_levels"}, "model.shopify.shopify__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"header_id": {"type": "bigint", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "numeric(28,6)", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "numeric(28,6)", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "numeric(28,6)", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "numeric(28,6)", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "numeric(28,6)", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "numeric(28,6)", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "text", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "double precision", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "text", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "bigint", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "source_relation": {"type": "text", "index": 37, "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.shopify.shopify__line_item_enhanced"}, "model.shopify.shopify__order_lines": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_lines", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "name": "source_relation", "comment": null}, "order_lines_unique_key": {"type": "text", "index": 29, "name": "order_lines_unique_key", "comment": null}, "restock_types": {"type": "text", "index": 30, "name": "restock_types", "comment": null}, "refunded_quantity": {"type": "bigint", "index": 31, "name": "refunded_quantity", "comment": null}, "refunded_subtotal": {"type": "bigint", "index": 32, "name": "refunded_subtotal", "comment": null}, "quantity_net_refunds": {"type": "bigint", "index": 33, "name": "quantity_net_refunds", "comment": null}, "subtotal_net_refunds": {"type": "bigint", "index": 34, "name": "subtotal_net_refunds", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 35, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 36, "name": "variant_updated_at", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 37, "name": "inventory_item_id", "comment": null}, "media_id": {"type": "bigint", "index": 38, "name": "media_id", "comment": null}, "variant_price": {"type": "double precision", "index": 39, "name": "variant_price", "comment": null}, "variant_sku": {"type": "text", "index": 40, "name": "variant_sku", "comment": null}, "variant_position": {"type": "integer", "index": 41, "name": "variant_position", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 42, "name": "variant_inventory_policy", "comment": null}, "variant_compare_at_price": {"type": "integer", "index": 43, "name": "variant_compare_at_price", "comment": null}, "variant_fulfillment_service": {"type": "text", "index": 44, "name": "variant_fulfillment_service", "comment": null}, "variant_is_taxable": {"type": "boolean", "index": 45, "name": "variant_is_taxable", "comment": null}, "variant_barcode": {"type": "integer", "index": 46, "name": "variant_barcode", "comment": null}, "variant_grams": {"type": "double precision", "index": 47, "name": "variant_grams", "comment": null}, "variant_inventory_quantity": {"type": "numeric", "index": 48, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 49, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 50, "name": "variant_weight_unit", "comment": null}, "variant_option_1": {"type": "text", "index": 51, "name": "variant_option_1", "comment": null}, "variant_option_2": {"type": "text", "index": 52, "name": "variant_option_2", "comment": null}, "variant_option_3": {"type": "text", "index": 53, "name": "variant_option_3", "comment": null}, "variant_tax_code": {"type": "integer", "index": 54, "name": "variant_tax_code", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 55, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 56, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "bigint", "index": 57, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 58, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 59, "name": "variant_sellable_online_quantity", "comment": null}, "order_line_tax": {"type": "double precision", "index": 60, "name": "order_line_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_lines"}, "model.shopify.shopify__order_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__order_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 81, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_howmany": {"type": "text", "index": 82, "name": "metafield_avengers_howmany", "comment": null}, "metafield_star_wars_isinspace": {"type": "text", "index": 83, "name": "metafield_star_wars_isinspace", "comment": null}, "metafield_star_wars_numbersequels": {"type": "text", "index": 84, "name": "metafield_star_wars_numbersequels", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__order_metafields"}, "model.shopify.shopify__orders": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "name": "source_relation", "comment": null}, "orders_unique_key": {"type": "text", "index": 81, "name": "orders_unique_key", "comment": null}, "shipping_cost": {"type": "double precision", "index": 82, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "bigint", "index": 83, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 84, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "bigint", "index": 85, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 86, "name": "refund_total_tax", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 87, "name": "order_adjusted_total", "comment": null}, "line_item_count": {"type": "bigint", "index": 88, "name": "line_item_count", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 89, "name": "shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 90, "name": "percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 91, "name": "fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "bigint", "index": 92, "name": "count_discount_codes_applied", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 93, "name": "order_total_shipping_tax", "comment": null}, "order_tags": {"type": "text", "index": 94, "name": "order_tags", "comment": null}, "order_url_tags": {"type": "text", "index": 95, "name": "order_url_tags", "comment": null}, "number_of_fulfillments": {"type": "bigint", "index": 96, "name": "number_of_fulfillments", "comment": null}, "fulfillment_services": {"type": "text", "index": 97, "name": "fulfillment_services", "comment": null}, "tracking_companies": {"type": "text", "index": 98, "name": "tracking_companies", "comment": null}, "tracking_numbers": {"type": "text", "index": 99, "name": "tracking_numbers", "comment": null}, "customer_order_seq_number": {"type": "bigint", "index": 100, "name": "customer_order_seq_number", "comment": null}, "new_vs_repeat": {"type": "text", "index": 101, "name": "new_vs_repeat", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders"}, "model.shopify.shopify__orders__order_line_aggregates": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "line_item_count": {"type": "bigint", "index": 3, "name": "line_item_count", "comment": null}, "order_total_quantity": {"type": "bigint", "index": 4, "name": "order_total_quantity", "comment": null}, "order_total_tax": {"type": "double precision", "index": 5, "name": "order_total_tax", "comment": null}, "order_total_discount": {"type": "bigint", "index": 6, "name": "order_total_discount", "comment": null}, "order_total_shipping": {"type": "double precision", "index": 7, "name": "order_total_shipping", "comment": null}, "order_total_shipping_with_discounts": {"type": "double precision", "index": 8, "name": "order_total_shipping_with_discounts", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 9, "name": "order_total_shipping_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__orders__order_line_aggregates"}, "model.shopify.shopify__product_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify.shopify__product_metafields"}, "model.shopify.shopify__product_variant_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "name": "source_relation", "comment": null}, "metafield_blade_runner_returnauthorizations": {"type": "text", "index": 31, "name": "metafield_blade_runner_returnauthorizations", "comment": null}, "metafield_avengers_wherearethey": {"type": "text", "index": 32, "name": "metafield_avengers_wherearethey", "comment": null}, "metafield_star_wars_wheninspace": {"type": "text", "index": 33, "name": "metafield_star_wars_wheninspace", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__product_variant_metafields"}, "model.shopify.shopify__products": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__products", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "collections": {"type": "text", "index": 14, "name": "collections", "comment": null}, "tags": {"type": "text", "index": 15, "name": "tags", "comment": null}, "count_variants": {"type": "bigint", "index": 16, "name": "count_variants", "comment": null}, "has_product_media": {"type": "boolean", "index": 17, "name": "has_product_media", "comment": null}, "total_quantity_sold": {"type": "bigint", "index": 18, "name": "total_quantity_sold", "comment": null}, "subtotal_sold": {"type": "bigint", "index": 19, "name": "subtotal_sold", "comment": null}, "quantity_sold_net_refunds": {"type": "numeric", "index": 20, "name": "quantity_sold_net_refunds", "comment": null}, "subtotal_sold_net_refunds": {"type": "numeric", "index": 21, "name": "subtotal_sold_net_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_quantity_per_order_line": {"type": "numeric", "index": 24, "name": "avg_quantity_per_order_line", "comment": null}, "product_total_discount": {"type": "bigint", "index": 25, "name": "product_total_discount", "comment": null}, "product_avg_discount_per_order_line": {"type": "numeric", "index": 26, "name": "product_avg_discount_per_order_line", "comment": null}, "product_total_tax": {"type": "double precision", "index": 27, "name": "product_total_tax", "comment": null}, "product_avg_tax_per_order_line": {"type": "double precision", "index": 28, "name": "product_avg_tax_per_order_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__products"}, "model.shopify.shopify__shop_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__shop_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify.shopify__shop_metafields"}, "model.shopify.shopify__transactions": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify__transactions", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "name": "source_relation", "comment": null}, "transactions_unique_id": {"type": "text", "index": 33, "name": "transactions_unique_id", "comment": null}, "payment_method": {"type": "text", "index": 34, "name": "payment_method", "comment": null}, "parent_created_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "parent_created_timestamp", "comment": null}, "parent_kind": {"type": "text", "index": 36, "name": "parent_kind", "comment": null}, "parent_amount": {"type": "double precision", "index": 37, "name": "parent_amount", "comment": null}, "parent_status": {"type": "text", "index": 38, "name": "parent_status", "comment": null}, "exchange_rate": {"type": "numeric", "index": 39, "name": "exchange_rate", "comment": null}, "currency_exchange_calculated_amount": {"type": "double precision", "index": 40, "name": "currency_exchange_calculated_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify__transactions"}, "model.shopify.shopify_gql__collection_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__collection_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}, "rules": {"type": "text", "index": 11, "name": "rules", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb": {"type": "text", "index": 12, "name": "metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw": {"type": "text", "index": 13, "name": "metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__collection_metafields"}, "model.shopify.shopify_gql__customer_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify_gql__customer_cohorts"}, "model.shopify.shopify_gql__customer_email_cohorts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_email_cohorts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_month": {"type": "date", "index": 1, "name": "date_month", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 3, "name": "first_order_timestamp", "comment": null}, "cohort_month": {"type": "timestamp without time zone", "index": 4, "name": "cohort_month", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "order_count_in_month": {"type": "bigint", "index": 6, "name": "order_count_in_month", "comment": null}, "total_price_in_month": {"type": "double precision", "index": 7, "name": "total_price_in_month", "comment": null}, "line_item_count_in_month": {"type": "numeric", "index": 8, "name": "line_item_count_in_month", "comment": null}, "total_price_lifetime": {"type": "double precision", "index": 9, "name": "total_price_lifetime", "comment": null}, "order_count_lifetime": {"type": "numeric", "index": 10, "name": "order_count_lifetime", "comment": null}, "line_item_count_lifetime": {"type": "numeric", "index": 11, "name": "line_item_count_lifetime", "comment": null}, "cohort_month_number": {"type": "bigint", "index": 12, "name": "cohort_month_number", "comment": null}, "customer_cohort_id": {"type": "text", "index": 13, "name": "customer_cohort_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.shopify.shopify_gql__customer_email_cohorts"}, "model.shopify.shopify_gql__customer_emails": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_emails", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"email": {"type": "text", "index": 1, "name": "email", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "customer_ids": {"type": "text", "index": 3, "name": "customer_ids", "comment": null}, "phone_numbers": {"type": "text", "index": 4, "name": "phone_numbers", "comment": null}, "customer_tags": {"type": "text", "index": 5, "name": "customer_tags", "comment": null}, "first_account_created_at": {"type": "timestamp without time zone", "index": 6, "name": "first_account_created_at", "comment": null}, "last_account_created_at": {"type": "timestamp without time zone", "index": 7, "name": "last_account_created_at", "comment": null}, "last_updated_at": {"type": "timestamp without time zone", "index": 8, "name": "last_updated_at", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 9, "name": "marketing_consent_updated_at", "comment": null}, "last_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "last_fivetran_synced", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 11, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 12, "name": "is_verified_email", "comment": null}, "first_name": {"type": "text", "index": 13, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 14, "name": "last_name", "comment": null}, "account_state": {"type": "text", "index": 15, "name": "account_state", "comment": null}, "note": {"type": "text", "index": 16, "name": "note", "comment": null}, "currency": {"type": "text", "index": 17, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 18, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 19, "name": "marketing_opt_in_level", "comment": null}, "default_address_id": {"type": "integer", "index": 20, "name": "default_address_id", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 21, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_order_value": {"type": "double precision", "index": 24, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 25, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 26, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 27, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 28, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 29, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 30, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 31, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "double precision", "index": 32, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "double precision", "index": 33, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 34, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 35, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 36, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 37, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 38, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 39, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customer_emails"}, "model.shopify.shopify_gql__customer_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customer_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}, "default_address_id": {"type": "integer", "index": 21, "name": "default_address_id", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj": {"type": "text", "index": 22, "name": "metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre": {"type": "text", "index": 23, "name": "metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customer_metafields"}, "model.shopify.shopify_gql__customers": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__customers", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "phone": {"type": "character varying", "index": 5, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 6, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 7, "name": "is_tax_exempt", "comment": null}, "is_verified_email": {"type": "boolean", "index": 8, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 9, "name": "note", "comment": null}, "currency": {"type": "text", "index": 10, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 11, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 12, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 13, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 14, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 15, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 16, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}, "default_address_id": {"type": "integer", "index": 18, "name": "default_address_id", "comment": null}, "lifetime_abandoned_checkouts": {"type": "bigint", "index": 19, "name": "lifetime_abandoned_checkouts", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 21, "name": "most_recent_order_timestamp", "comment": null}, "customer_tags": {"type": "text", "index": 22, "name": "customer_tags", "comment": null}, "avg_order_value": {"type": "double precision", "index": 23, "name": "avg_order_value", "comment": null}, "lifetime_total_spent": {"type": "double precision", "index": 24, "name": "lifetime_total_spent", "comment": null}, "lifetime_total_refunded": {"type": "double precision", "index": 25, "name": "lifetime_total_refunded", "comment": null}, "lifetime_total_net": {"type": "double precision", "index": 26, "name": "lifetime_total_net", "comment": null}, "lifetime_count_orders": {"type": "bigint", "index": 27, "name": "lifetime_count_orders", "comment": null}, "avg_quantity_per_order": {"type": "numeric", "index": 28, "name": "avg_quantity_per_order", "comment": null}, "lifetime_total_tax": {"type": "double precision", "index": 29, "name": "lifetime_total_tax", "comment": null}, "avg_tax_per_order": {"type": "double precision", "index": 30, "name": "avg_tax_per_order", "comment": null}, "lifetime_total_discount": {"type": "double precision", "index": 31, "name": "lifetime_total_discount", "comment": null}, "avg_discount_per_order": {"type": "double precision", "index": 32, "name": "avg_discount_per_order", "comment": null}, "lifetime_total_shipping": {"type": "double precision", "index": 33, "name": "lifetime_total_shipping", "comment": null}, "avg_shipping_per_order": {"type": "double precision", "index": 34, "name": "avg_shipping_per_order", "comment": null}, "lifetime_total_shipping_with_discounts": {"type": "double precision", "index": 35, "name": "lifetime_total_shipping_with_discounts", "comment": null}, "avg_shipping_with_discounts_per_order": {"type": "double precision", "index": 36, "name": "avg_shipping_with_discounts_per_order", "comment": null}, "lifetime_total_shipping_tax": {"type": "double precision", "index": 37, "name": "lifetime_total_shipping_tax", "comment": null}, "avg_shipping_tax_per_order": {"type": "double precision", "index": 38, "name": "avg_shipping_tax_per_order", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__customers"}, "model.shopify.shopify_gql__daily_shop": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__daily_shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "shop_id": {"type": "integer", "index": 2, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "domain": {"type": "text", "index": 4, "name": "domain", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 7, "name": "enabled_presentment_currencies", "comment": null}, "iana_timezone": {"type": "text", "index": 8, "name": "iana_timezone", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "count_orders": {"type": "bigint", "index": 11, "name": "count_orders", "comment": null}, "count_line_items": {"type": "numeric", "index": 12, "name": "count_line_items", "comment": null}, "avg_line_item_count": {"type": "numeric", "index": 13, "name": "avg_line_item_count", "comment": null}, "count_customers": {"type": "bigint", "index": 14, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 15, "name": "count_customer_emails", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 16, "name": "order_adjusted_total", "comment": null}, "avg_order_value": {"type": "double precision", "index": 17, "name": "avg_order_value", "comment": null}, "shipping_cost": {"type": "double precision", "index": 18, "name": "shipping_cost", "comment": null}, "order_adjustment_amount": {"type": "double precision", "index": 19, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 20, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "double precision", "index": 21, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 22, "name": "refund_total_tax", "comment": null}, "total_discounts": {"type": "double precision", "index": 23, "name": "total_discounts", "comment": null}, "avg_discount": {"type": "double precision", "index": 24, "name": "avg_discount", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 25, "name": "shipping_discount_amount", "comment": null}, "avg_shipping_discount_amount": {"type": "double precision", "index": 26, "name": "avg_shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 27, "name": "percentage_calc_discount_amount", "comment": null}, "avg_percentage_calc_discount_amount": {"type": "double precision", "index": 28, "name": "avg_percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 29, "name": "fixed_amount_discount_amount", "comment": null}, "avg_fixed_amount_discount_amount": {"type": "double precision", "index": 30, "name": "avg_fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "numeric", "index": 31, "name": "count_discount_codes_applied", "comment": null}, "count_locations_ordered_from": {"type": "bigint", "index": 32, "name": "count_locations_ordered_from", "comment": null}, "count_orders_with_discounts": {"type": "bigint", "index": 33, "name": "count_orders_with_discounts", "comment": null}, "count_orders_with_refunds": {"type": "bigint", "index": 34, "name": "count_orders_with_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 36, "name": "last_order_timestamp", "comment": null}, "quantity_sold": {"type": "bigint", "index": 37, "name": "quantity_sold", "comment": null}, "quantity_refunded": {"type": "double precision", "index": 38, "name": "quantity_refunded", "comment": null}, "quantity_net": {"type": "double precision", "index": 39, "name": "quantity_net", "comment": null}, "avg_quantity_sold": {"type": "bigint", "index": 40, "name": "avg_quantity_sold", "comment": null}, "avg_quantity_net": {"type": "double precision", "index": 41, "name": "avg_quantity_net", "comment": null}, "count_variants_sold": {"type": "bigint", "index": 42, "name": "count_variants_sold", "comment": null}, "count_products_sold": {"type": "bigint", "index": 43, "name": "count_products_sold", "comment": null}, "quantity_gift_cards_sold": {"type": "double precision", "index": 44, "name": "quantity_gift_cards_sold", "comment": null}, "quantity_requiring_shipping": {"type": "double precision", "index": 45, "name": "quantity_requiring_shipping", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 46, "name": "count_abandoned_checkouts", "comment": null}, "count_customers_abandoned_checkout": {"type": "bigint", "index": 47, "name": "count_customers_abandoned_checkout", "comment": null}, "count_customer_emails_abandoned_checkout": {"type": "bigint", "index": 48, "name": "count_customer_emails_abandoned_checkout", "comment": null}, "count_fulfillment_attempted_delivery": {"type": "bigint", "index": 49, "name": "count_fulfillment_attempted_delivery", "comment": null}, "count_fulfillment_delayed": {"type": "bigint", "index": 50, "name": "count_fulfillment_delayed", "comment": null}, "count_fulfillment_delivered": {"type": "bigint", "index": 51, "name": "count_fulfillment_delivered", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 52, "name": "count_fulfillment_failure", "comment": null}, "count_fulfillment_in_transit": {"type": "bigint", "index": 53, "name": "count_fulfillment_in_transit", "comment": null}, "count_fulfillment_out_for_delivery": {"type": "bigint", "index": 54, "name": "count_fulfillment_out_for_delivery", "comment": null}, "count_fulfillment_ready_for_pickup": {"type": "bigint", "index": 55, "name": "count_fulfillment_ready_for_pickup", "comment": null}, "count_fulfillment_label_printed": {"type": "bigint", "index": 56, "name": "count_fulfillment_label_printed", "comment": null}, "count_fulfillment_label_purchased": {"type": "bigint", "index": 57, "name": "count_fulfillment_label_purchased", "comment": null}, "count_fulfillment_confirmed": {"type": "bigint", "index": 58, "name": "count_fulfillment_confirmed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__daily_shop"}, "model.shopify.shopify_gql__discounts": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__discounts", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"code": {"type": "text", "index": 1, "name": "code", "comment": null}, "discount_code_id": {"type": "integer", "index": 2, "name": "discount_code_id", "comment": null}, "discount_type": {"type": "text", "index": 3, "name": "discount_type", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_count": {"type": "integer", "index": 5, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 14, "name": "starts_at", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 17, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 18, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 20, "name": "usage_limit", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "allocation_method": {"type": "text", "index": 22, "name": "allocation_method", "comment": null}, "target_selection": {"type": "text", "index": 23, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 24, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 25, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 26, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 27, "name": "value_percentage", "comment": null}, "value_type": {"type": "text", "index": 28, "name": "value_type", "comment": null}, "unique_key": {"type": "text", "index": 29, "name": "unique_key", "comment": null}, "count_orders": {"type": "bigint", "index": 30, "name": "count_orders", "comment": null}, "avg_order_discount_amount": {"type": "double precision", "index": 31, "name": "avg_order_discount_amount", "comment": null}, "total_order_discount_amount": {"type": "double precision", "index": 32, "name": "total_order_discount_amount", "comment": null}, "total_order_line_items_price": {"type": "double precision", "index": 33, "name": "total_order_line_items_price", "comment": null}, "total_order_shipping_cost": {"type": "double precision", "index": 34, "name": "total_order_shipping_cost", "comment": null}, "total_order_refund_amount": {"type": "double precision", "index": 35, "name": "total_order_refund_amount", "comment": null}, "count_customers": {"type": "bigint", "index": 36, "name": "count_customers", "comment": null}, "count_customer_emails": {"type": "bigint", "index": 37, "name": "count_customer_emails", "comment": null}, "total_abandoned_checkout_discount_amount": {"type": "double precision", "index": 38, "name": "total_abandoned_checkout_discount_amount", "comment": null}, "count_abandoned_checkouts": {"type": "bigint", "index": 39, "name": "count_abandoned_checkouts", "comment": null}, "count_abandoned_checkout_customers": {"type": "bigint", "index": 40, "name": "count_abandoned_checkout_customers", "comment": null}, "count_abandoned_checkout_customer_emails": {"type": "bigint", "index": 41, "name": "count_abandoned_checkout_customer_emails", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__discounts"}, "model.shopify.shopify_gql__inventory_levels": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__inventory_levels", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "integer", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "sku": {"type": "text", "index": 10, "name": "sku", "comment": null}, "is_inventory_item_deleted": {"type": "boolean", "index": 11, "name": "is_inventory_item_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "text", "index": 14, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "text", "index": 15, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 16, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 17, "name": "is_inventory_quantity_tracked", "comment": null}, "inventory_item_created_at": {"type": "timestamp without time zone", "index": 18, "name": "inventory_item_created_at", "comment": null}, "inventory_item_updated_at": {"type": "timestamp without time zone", "index": 19, "name": "inventory_item_updated_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 20, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 21, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 22, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 23, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 24, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 25, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 26, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "boolean", "index": 27, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 28, "name": "tracked_editable_reason", "comment": null}, "location_name": {"type": "text", "index": 29, "name": "location_name", "comment": null}, "is_location_deleted": {"type": "boolean", "index": 30, "name": "is_location_deleted", "comment": null}, "is_location_active": {"type": "boolean", "index": 31, "name": "is_location_active", "comment": null}, "address_1": {"type": "text", "index": 32, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 33, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 34, "name": "city", "comment": null}, "country": {"type": "text", "index": 35, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 36, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 37, "name": "country_name", "comment": null}, "is_legacy_location": {"type": "boolean", "index": 38, "name": "is_legacy_location", "comment": null}, "province": {"type": "text", "index": 39, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 40, "name": "province_code", "comment": null}, "phone": {"type": "character varying", "index": 41, "name": "phone", "comment": null}, "zip": {"type": "integer", "index": 42, "name": "zip", "comment": null}, "location_created_at": {"type": "timestamp without time zone", "index": 43, "name": "location_created_at", "comment": null}, "location_updated_at": {"type": "timestamp without time zone", "index": 44, "name": "location_updated_at", "comment": null}, "variant_id": {"type": "integer", "index": 45, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 46, "name": "product_id", "comment": null}, "variant_title": {"type": "text", "index": 47, "name": "variant_title", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 48, "name": "variant_inventory_policy", "comment": null}, "variant_price": {"type": "double precision", "index": 49, "name": "variant_price", "comment": null}, "variant_media_id": {"type": "integer", "index": 50, "name": "variant_media_id", "comment": null}, "is_variant_taxable": {"type": "boolean", "index": 51, "name": "is_variant_taxable", "comment": null}, "variant_barcode": {"type": "text", "index": 52, "name": "variant_barcode", "comment": null}, "variant_inventory_quantity": {"type": "integer", "index": 53, "name": "variant_inventory_quantity", "comment": null}, "variant_tax_code": {"type": "text", "index": 54, "name": "variant_tax_code", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 55, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 56, "name": "variant_updated_at", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 57, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 58, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "integer", "index": 59, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 60, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 61, "name": "variant_sellable_online_quantity", "comment": null}, "subtotal_sold": {"type": "double precision", "index": 62, "name": "subtotal_sold", "comment": null}, "quantity_sold": {"type": "bigint", "index": 63, "name": "quantity_sold", "comment": null}, "count_distinct_orders": {"type": "bigint", "index": 64, "name": "count_distinct_orders", "comment": null}, "count_distinct_customers": {"type": "bigint", "index": 65, "name": "count_distinct_customers", "comment": null}, "count_distinct_customer_emails": {"type": "bigint", "index": 66, "name": "count_distinct_customer_emails", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 67, "name": "first_order_timestamp", "comment": null}, "last_order_timestamp": {"type": "timestamp without time zone", "index": 68, "name": "last_order_timestamp", "comment": null}, "subtotal_sold_refunds": {"type": "double precision", "index": 69, "name": "subtotal_sold_refunds", "comment": null}, "quantity_sold_refunds": {"type": "double precision", "index": 70, "name": "quantity_sold_refunds", "comment": null}, "count_fulfillment_pending": {"type": "bigint", "index": 71, "name": "count_fulfillment_pending", "comment": null}, "count_fulfillment_open": {"type": "bigint", "index": 72, "name": "count_fulfillment_open", "comment": null}, "count_fulfillment_success": {"type": "bigint", "index": 73, "name": "count_fulfillment_success", "comment": null}, "count_fulfillment_cancelled": {"type": "bigint", "index": 74, "name": "count_fulfillment_cancelled", "comment": null}, "count_fulfillment_error": {"type": "bigint", "index": 75, "name": "count_fulfillment_error", "comment": null}, "count_fulfillment_failure": {"type": "bigint", "index": 76, "name": "count_fulfillment_failure", "comment": null}, "incoming_quantity": {"type": "bigint", "index": 77, "name": "incoming_quantity", "comment": null}, "on_hand_quantity": {"type": "bigint", "index": 78, "name": "on_hand_quantity", "comment": null}, "available_quantity": {"type": "bigint", "index": 79, "name": "available_quantity", "comment": null}, "committed_quantity": {"type": "bigint", "index": 80, "name": "committed_quantity", "comment": null}, "reserved_quantity": {"type": "bigint", "index": 81, "name": "reserved_quantity", "comment": null}, "damaged_quantity": {"type": "bigint", "index": 82, "name": "damaged_quantity", "comment": null}, "safety_stock_quantity": {"type": "bigint", "index": 83, "name": "safety_stock_quantity", "comment": null}, "quality_control_quantity": {"type": "bigint", "index": 84, "name": "quality_control_quantity", "comment": null}, "net_subtotal_sold": {"type": "double precision", "index": 85, "name": "net_subtotal_sold", "comment": null}, "net_quantity_sold": {"type": "double precision", "index": 86, "name": "net_quantity_sold", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__inventory_levels"}, "model.shopify.shopify_gql__line_item_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__line_item_enhanced", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"header_id": {"type": "integer", "index": 1, "name": "header_id", "comment": null}, "line_item_id": {"type": "numeric(28,6)", "index": 2, "name": "line_item_id", "comment": null}, "line_item_index": {"type": "numeric(28,6)", "index": 3, "name": "line_item_index", "comment": null}, "record_type": {"type": "text", "index": 4, "name": "record_type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "header_status": {"type": "text", "index": 7, "name": "header_status", "comment": null}, "product_id": {"type": "numeric(28,6)", "index": 8, "name": "product_id", "comment": null}, "product_name": {"type": "text", "index": 9, "name": "product_name", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "billing_type": {"type": "text", "index": 11, "name": "billing_type", "comment": null}, "product_type": {"type": "text", "index": 12, "name": "product_type", "comment": null}, "quantity": {"type": "numeric(28,6)", "index": 13, "name": "quantity", "comment": null}, "unit_amount": {"type": "numeric(28,6)", "index": 14, "name": "unit_amount", "comment": null}, "discount_amount": {"type": "double precision", "index": 15, "name": "discount_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 16, "name": "tax_amount", "comment": null}, "total_amount": {"type": "numeric(28,6)", "index": 17, "name": "total_amount", "comment": null}, "payment_id": {"type": "text", "index": 18, "name": "payment_id", "comment": null}, "payment_method_id": {"type": "text", "index": 19, "name": "payment_method_id", "comment": null}, "payment_method": {"type": "text", "index": 20, "name": "payment_method", "comment": null}, "payment_at": {"type": "text", "index": 21, "name": "payment_at", "comment": null}, "fee_amount": {"type": "double precision", "index": 22, "name": "fee_amount", "comment": null}, "refund_amount": {"type": "double precision", "index": 23, "name": "refund_amount", "comment": null}, "subscription_id": {"type": "text", "index": 24, "name": "subscription_id", "comment": null}, "subscription_plan": {"type": "text", "index": 25, "name": "subscription_plan", "comment": null}, "subscription_period_started_at": {"type": "timestamp without time zone", "index": 26, "name": "subscription_period_started_at", "comment": null}, "subscription_period_ended_at": {"type": "timestamp without time zone", "index": 27, "name": "subscription_period_ended_at", "comment": null}, "subscription_status": {"type": "text", "index": 28, "name": "subscription_status", "comment": null}, "customer_id": {"type": "integer", "index": 29, "name": "customer_id", "comment": null}, "customer_created_at": {"type": "timestamp without time zone", "index": 30, "name": "customer_created_at", "comment": null}, "customer_level": {"type": "text", "index": 31, "name": "customer_level", "comment": null}, "customer_name": {"type": "text", "index": 32, "name": "customer_name", "comment": null}, "customer_company": {"type": "text", "index": 33, "name": "customer_company", "comment": null}, "customer_email": {"type": "text", "index": 34, "name": "customer_email", "comment": null}, "customer_city": {"type": "text", "index": 35, "name": "customer_city", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "source_relation": {"type": "text", "index": 37, "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.shopify.shopify_gql__line_item_enhanced"}, "model.shopify.shopify_gql__order_lines": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__order_lines", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}, "pre_tax_price": {"type": "double precision", "index": 27, "name": "pre_tax_price", "comment": null}, "order_line_tax": {"type": "double precision", "index": 28, "name": "order_line_tax", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 29, "name": "fulfillable_quantity", "comment": null}, "weight_unit": {"type": "text", "index": 30, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 31, "name": "weight_value", "comment": null}, "restock_types": {"type": "text", "index": 32, "name": "restock_types", "comment": null}, "refunded_quantity": {"type": "double precision", "index": 33, "name": "refunded_quantity", "comment": null}, "refunded_subtotal": {"type": "double precision", "index": 34, "name": "refunded_subtotal", "comment": null}, "quantity_net_refunds": {"type": "double precision", "index": 35, "name": "quantity_net_refunds", "comment": null}, "subtotal_net_refunds": {"type": "double precision", "index": 36, "name": "subtotal_net_refunds", "comment": null}, "variant_created_at": {"type": "timestamp without time zone", "index": 37, "name": "variant_created_at", "comment": null}, "variant_updated_at": {"type": "timestamp without time zone", "index": 38, "name": "variant_updated_at", "comment": null}, "inventory_item_id": {"type": "integer", "index": 39, "name": "inventory_item_id", "comment": null}, "media_id": {"type": "integer", "index": 40, "name": "media_id", "comment": null}, "variant_price": {"type": "double precision", "index": 41, "name": "variant_price", "comment": null}, "variant_sku": {"type": "text", "index": 42, "name": "variant_sku", "comment": null}, "variant_position": {"type": "integer", "index": 43, "name": "variant_position", "comment": null}, "variant_inventory_policy": {"type": "text", "index": 44, "name": "variant_inventory_policy", "comment": null}, "variant_compare_at_price": {"type": "character varying", "index": 45, "name": "variant_compare_at_price", "comment": null}, "variant_is_taxable": {"type": "boolean", "index": 46, "name": "variant_is_taxable", "comment": null}, "variant_barcode": {"type": "text", "index": 47, "name": "variant_barcode", "comment": null}, "variant_inventory_quantity": {"type": "integer", "index": 48, "name": "variant_inventory_quantity", "comment": null}, "variant_weight": {"type": "double precision", "index": 49, "name": "variant_weight", "comment": null}, "variant_weight_unit": {"type": "text", "index": 50, "name": "variant_weight_unit", "comment": null}, "variant_tax_code": {"type": "text", "index": 51, "name": "variant_tax_code", "comment": null}, "variant_is_available_for_sale": {"type": "boolean", "index": 52, "name": "variant_is_available_for_sale", "comment": null}, "variant_display_name": {"type": "text", "index": 53, "name": "variant_display_name", "comment": null}, "variant_legacy_resource_id": {"type": "integer", "index": 54, "name": "variant_legacy_resource_id", "comment": null}, "variant_has_components_required": {"type": "boolean", "index": 55, "name": "variant_has_components_required", "comment": null}, "variant_sellable_online_quantity": {"type": "integer", "index": 56, "name": "variant_sellable_online_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.shopify.shopify_gql__order_lines"}, "model.shopify.shopify_gql__order_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__order_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_url", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw": {"type": "text", "index": 89, "name": "metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe": {"type": "text", "index": 90, "name": "metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__order_metafields"}, "model.shopify.shopify_gql__orders": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__orders", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}, "referring_site": {"type": "text", "index": 87, "name": "referring_site", "comment": null}, "landing_site_base_url": {"type": "text", "index": 88, "name": "landing_site_base_url", "comment": null}, "order_adjustment_amount": {"type": "double precision", "index": 89, "name": "order_adjustment_amount", "comment": null}, "order_adjustment_tax_amount": {"type": "double precision", "index": 90, "name": "order_adjustment_tax_amount", "comment": null}, "refund_subtotal": {"type": "double precision", "index": 91, "name": "refund_subtotal", "comment": null}, "refund_total_tax": {"type": "double precision", "index": 92, "name": "refund_total_tax", "comment": null}, "order_adjusted_total": {"type": "double precision", "index": 93, "name": "order_adjusted_total", "comment": null}, "line_item_count": {"type": "bigint", "index": 94, "name": "line_item_count", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 95, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 96, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_pres_currency_codes": {"type": "text", "index": 97, "name": "total_line_items_price_pres_currency_codes", "comment": null}, "total_line_items_price_shop_currency_codes": {"type": "text", "index": 98, "name": "total_line_items_price_shop_currency_codes", "comment": null}, "shipping_discount_amount": {"type": "double precision", "index": 99, "name": "shipping_discount_amount", "comment": null}, "percentage_calc_discount_amount": {"type": "double precision", "index": 100, "name": "percentage_calc_discount_amount", "comment": null}, "fixed_amount_discount_amount": {"type": "double precision", "index": 101, "name": "fixed_amount_discount_amount", "comment": null}, "count_discount_codes_applied": {"type": "bigint", "index": 102, "name": "count_discount_codes_applied", "comment": null}, "order_total_shipping_tax": {"type": "double precision", "index": 103, "name": "order_total_shipping_tax", "comment": null}, "order_tags": {"type": "text", "index": 104, "name": "order_tags", "comment": null}, "number_of_fulfillments": {"type": "bigint", "index": 105, "name": "number_of_fulfillments", "comment": null}, "fulfillment_services": {"type": "text", "index": 106, "name": "fulfillment_services", "comment": null}, "tracking_companies": {"type": "text", "index": 107, "name": "tracking_companies", "comment": null}, "tracking_numbers": {"type": "text", "index": 108, "name": "tracking_numbers", "comment": null}, "customer_order_seq_number": {"type": "bigint", "index": 109, "name": "customer_order_seq_number", "comment": null}, "new_vs_repeat": {"type": "text", "index": 110, "name": "new_vs_repeat", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__orders"}, "model.shopify.shopify_gql__product_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__product_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467bc_brenbre": {"type": "text", "index": 14, "name": "metafield_bea81c1795a612d8fc3a232b156467bc_brenbre", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42": {"type": "text", "index": 15, "name": "metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__product_metafields"}, "model.shopify.shopify_gql__product_variant_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__product_variant_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}, "weight": {"type": "double precision", "index": 24, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__product_variant_metafields"}, "model.shopify.shopify_gql__products": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__products", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}, "collections": {"type": "text", "index": 14, "name": "collections", "comment": null}, "tags": {"type": "text", "index": 15, "name": "tags", "comment": null}, "count_variants": {"type": "bigint", "index": 16, "name": "count_variants", "comment": null}, "has_product_media": {"type": "boolean", "index": 17, "name": "has_product_media", "comment": null}, "total_quantity_sold": {"type": "bigint", "index": 18, "name": "total_quantity_sold", "comment": null}, "subtotal_sold": {"type": "double precision", "index": 19, "name": "subtotal_sold", "comment": null}, "quantity_sold_net_refunds": {"type": "double precision", "index": 20, "name": "quantity_sold_net_refunds", "comment": null}, "subtotal_sold_net_refunds": {"type": "double precision", "index": 21, "name": "subtotal_sold_net_refunds", "comment": null}, "first_order_timestamp": {"type": "timestamp without time zone", "index": 22, "name": "first_order_timestamp", "comment": null}, "most_recent_order_timestamp": {"type": "timestamp without time zone", "index": 23, "name": "most_recent_order_timestamp", "comment": null}, "avg_quantity_per_order_line": {"type": "numeric", "index": 24, "name": "avg_quantity_per_order_line", "comment": null}, "product_total_discount": {"type": "double precision", "index": 25, "name": "product_total_discount", "comment": null}, "product_avg_discount_per_order_line": {"type": "double precision", "index": 26, "name": "product_avg_discount_per_order_line", "comment": null}, "product_total_tax": {"type": "double precision", "index": 27, "name": "product_total_tax", "comment": null}, "product_avg_tax_per_order_line": {"type": "double precision", "index": 28, "name": "product_avg_tax_per_order_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__products"}, "model.shopify.shopify_gql__shop_metafields": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__shop_metafields", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 16, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 17, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 18, "name": "email", "comment": null}, "domain": {"type": "text", "index": 19, "name": "domain", "comment": null}, "phone": {"type": "character varying", "index": 20, "name": "phone", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 21, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 22, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 23, "name": "timezone_offset_minutes", "comment": null}, "iana_timezone": {"type": "text", "index": 24, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 25, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 26, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "has_shipping_taxes": {"type": "boolean", "index": 29, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 30, "name": "has_taxes_included_in_price", "comment": null}, "has_storefront": {"type": "boolean", "index": 31, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 32, "name": "has_checkout_api_supported", "comment": null}, "money_format": {"type": "text", "index": 33, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 34, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 35, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 36, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 37, "name": "plan_display_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 38, "name": "is_password_enabled", "comment": null}, "is_setup_required": {"type": "boolean", "index": 39, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 40, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 41, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 42, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 43, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 44, "name": "unique_key", "comment": null}, "metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew": {"type": "text", "index": 45, "name": "metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__shop_metafields"}, "model.shopify.shopify_gql__transactions": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "shopify_gql__transactions", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "integer", "index": 3, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 4, "name": "amount_pres", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "device_id": {"type": "text", "index": 6, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 7, "name": "gateway", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 8, "name": "amount_pres_currency_code", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 9, "name": "amount_shop_currency_code", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 11, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 12, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 13, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 14, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 15, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 17, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 18, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 19, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 20, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 21, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 22, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "text", "index": 23, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 24, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 26, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 29, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 30, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 31, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 32, "name": "unique_key", "comment": null}, "payment_method": {"type": "text", "index": 33, "name": "payment_method", "comment": null}, "parent_created_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "parent_created_timestamp", "comment": null}, "parent_kind": {"type": "text", "index": 35, "name": "parent_kind", "comment": null}, "parent_amount": {"type": "double precision", "index": 36, "name": "parent_amount", "comment": null}, "parent_status": {"type": "text", "index": 37, "name": "parent_status", "comment": null}, "location_id": {"type": "integer", "index": 38, "name": "location_id", "comment": null}, "source_name": {"type": "text", "index": 39, "name": "source_name", "comment": null}, "exchange_rate": {"type": "numeric", "index": 40, "name": "exchange_rate", "comment": null}, "currency_exchange_calculated_amount": {"type": "double precision", "index": 41, "name": "currency_exchange_calculated_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify.shopify_gql__transactions"}, "model.shopify_source.stg_shopify__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 18, "name": "has_buyer_accepted_marketing", "comment": null}, "cart_token": {"type": "text", "index": 19, "name": "cart_token", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 20, "name": "created_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 21, "name": "closed_at", "comment": null}, "shop_currency": {"type": "text", "index": 22, "name": "shop_currency", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 24, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 25, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 26, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 27, "name": "gateway", "comment": null}, "checkout_id": {"type": "integer", "index": 28, "name": "checkout_id", "comment": null}, "landing_site_base_url": {"type": "text", "index": 29, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 30, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 31, "name": "name", "comment": null}, "note": {"type": "integer", "index": 32, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 33, "name": "phone", "comment": null}, "presentment_currency": {"type": "text", "index": 34, "name": "presentment_currency", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 36, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 37, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 38, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 39, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 40, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 41, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 42, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 43, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 44, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 45, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 46, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 47, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 48, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 49, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 50, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 51, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 52, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 53, "name": "has_taxes_included", "comment": null}, "token": {"type": "text", "index": 54, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_duties": {"type": "integer", "index": 56, "name": "total_duties", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 57, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 58, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 59, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 60, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 61, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 62, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 63, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 64, "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.shopify_source.stg_shopify__abandoned_checkout"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "discount_id": {"type": "bigint", "index": 3, "name": "discount_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "type": {"type": "character varying", "index": 5, "name": "type", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 10, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code"}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"abandoned_checkout_shipping_line_id": {"type": "text", "index": 1, "name": "abandoned_checkout_shipping_line_id", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "shipping_code": {"type": "text", "index": 5, "name": "shipping_code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 7, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 8, "name": "delivery_expectation_range_max", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 9, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 10, "name": "delivery_expectation_type", "comment": null}, "discounted_price": {"type": "integer", "index": 11, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "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.shopify_source.stg_shopify__abandoned_checkout_shipping_line"}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.stg_shopify__abandoned_checkout_tmp"}, "model.shopify_source.stg_shopify__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_scope": {"type": "integer", "index": 5, "name": "published_scope", "comment": null}, "rules": {"type": "integer", "index": 6, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 7, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 9, "name": "published_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection"}, "model.shopify_source.stg_shopify__collection_product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__collection_product"}, "model.shopify_source.stg_shopify__collection_product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp"}, "model.shopify_source.stg_shopify__collection_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__collection_tmp"}, "model.shopify_source.stg_shopify__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "default_address_id": {"type": "bigint", "index": 6, "name": "default_address_id", "comment": null}, "phone": {"type": "integer", "index": 7, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 8, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 9, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 10, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 11, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 12, "name": "note", "comment": null}, "currency": {"type": "text", "index": 13, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 14, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 15, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 16, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 18, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 19, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__customer"}, "model.shopify_source.stg_shopify__customer_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__customer_tag"}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp"}, "model.shopify_source.stg_shopify__customer_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__customer_tmp"}, "model.shopify_source.stg_shopify__discount_allocation": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"amount": {"type": "double precision", "index": 1, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 2, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 3, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 5, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 8, "name": "order_line_id", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_allocation"}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.stg_shopify__discount_allocation_tmp"}, "model.shopify_source.stg_shopify__discount_application": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocation_method": {"type": "character varying", "index": 1, "name": "allocation_method", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 3, "name": "description", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 5, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 6, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 7, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 8, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 9, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_application"}, "model.shopify_source.stg_shopify__discount_application_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp"}, "model.shopify_source.stg_shopify__discount_code_app": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_app"}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp"}, "model.shopify_source.stg_shopify__discount_code_basic": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_basic"}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp"}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_bxgy"}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp"}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "character varying", "index": 2, "name": "title", "comment": null}, "status": {"type": "character varying", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "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.shopify_source.stg_shopify__discount_code_free_shipping"}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"}, "model.shopify_source.stg_shopify__discount_redeem_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "bigint", "index": 1, "name": "discount_code_id", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__discount_redeem_code"}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.stg_shopify__discount_redeem_code_tmp"}, "model.shopify_source.stg_shopify__fulfillment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "service": {"type": "text", "index": 5, "name": "service", "comment": null}, "shipment_status": {"type": "integer", "index": 6, "name": "shipment_status", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 8, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 9, "name": "tracking_number", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__fulfillment"}, "model.shopify_source.stg_shopify__fulfillment_event": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_event_id": {"type": "integer", "index": 1, "name": "fulfillment_event_id", "comment": null}, "fulfillment_id": {"type": "integer", "index": 2, "name": "fulfillment_id", "comment": null}, "shop_id": {"type": "integer", "index": 3, "name": "shop_id", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "message": {"type": "text", "index": 6, "name": "message", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 8, "name": "happened_at", "comment": null}, "address_1": {"type": "integer", "index": 9, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 10, "name": "city", "comment": null}, "province": {"type": "text", "index": 11, "name": "province", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "zip": {"type": "text", "index": 13, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 14, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 15, "name": "longitude", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "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.shopify_source.stg_shopify__fulfillment_event"}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp"}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp"}, "model.shopify_source.stg_shopify__inventory_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_item_id": {"type": "bigint", "index": 1, "name": "inventory_item_id", "comment": null}, "sku": {"type": "text", "index": 2, "name": "sku", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 4, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 5, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 6, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 7, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 8, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 9, "name": "is_inventory_quantity_tracked", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 10, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 11, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 12, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 13, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 14, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 15, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 16, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "integer", "index": 17, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 18, "name": "tracked_editable_reason", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "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.shopify_source.stg_shopify__inventory_item"}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp"}, "model.shopify_source.stg_shopify__inventory_level": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "bigint", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "available_quantity": {"type": "integer", "index": 4, "name": "available_quantity", "comment": null}, "can_deactivate": {"type": "boolean", "index": 5, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_level"}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp"}, "model.shopify_source.stg_shopify__inventory_quantity": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_quantity_id": {"type": "bigint", "index": 1, "name": "inventory_quantity_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "inventory_state_name": {"type": "text", "index": 4, "name": "inventory_state_name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__inventory_quantity"}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp"}, "model.shopify_source.stg_shopify__location": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "is_active": {"type": "boolean", "index": 4, "name": "is_active", "comment": null}, "address_1": {"type": "text", "index": 5, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 6, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 10, "name": "country_name", "comment": null}, "is_legacy": {"type": "boolean", "index": 11, "name": "is_legacy", "comment": null}, "localized_country_name": {"type": "text", "index": 12, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 13, "name": "localized_province_name", "comment": null}, "phone": {"type": "integer", "index": 14, "name": "phone", "comment": null}, "province": {"type": "text", "index": 15, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 16, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 20, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 21, "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.shopify_source.stg_shopify__location"}, "model.shopify_source.stg_shopify__location_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.stg_shopify__location_tmp"}, "model.shopify_source.stg_shopify__media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media"}, "model.shopify_source.stg_shopify__media_image": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__media_image"}, "model.shopify_source.stg_shopify__media_image_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_image_tmp"}, "model.shopify_source.stg_shopify__media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__media_tmp"}, "model.shopify_source.stg_shopify__metafield": {"metadata": {"type": "BASE TABLE", "schema": "public_shopify", "name": "stg_shopify__metafield", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"metafield_id": {"type": "bigint", "index": 1, "name": "metafield_id", "comment": null}, "description": {"type": "integer", "index": 2, "name": "description", "comment": null}, "namespace": {"type": "text", "index": 3, "name": "namespace", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "value_type": {"type": "text", "index": 6, "name": "value_type", "comment": null}, "owner_resource_id": {"type": "bigint", "index": 7, "name": "owner_resource_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "metafield_reference": {"type": "text", "index": 12, "name": "metafield_reference", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__metafield"}, "model.shopify_source.stg_shopify__metafield_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__metafield_tmp"}, "model.shopify_source.stg_shopify__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "bigint", "index": 2, "name": "user_id", "comment": null}, "total_discounts": {"type": "double precision", "index": 3, "name": "total_discounts", "comment": null}, "total_discounts_set": {"type": "text", "index": 4, "name": "total_discounts_set", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 5, "name": "total_line_items_price", "comment": null}, "total_line_items_price_set": {"type": "text", "index": 6, "name": "total_line_items_price_set", "comment": null}, "total_price": {"type": "double precision", "index": 7, "name": "total_price", "comment": null}, "total_price_set": {"type": "text", "index": 8, "name": "total_price_set", "comment": null}, "total_tax_set": {"type": "text", "index": 9, "name": "total_tax_set", "comment": null}, "total_tax": {"type": "double precision", "index": 10, "name": "total_tax", "comment": null}, "source_name": {"type": "text", "index": 11, "name": "source_name", "comment": null}, "subtotal_price": {"type": "double precision", "index": 12, "name": "subtotal_price", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 13, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 14, "name": "total_weight", "comment": null}, "total_tip_received": {"type": "double precision", "index": 15, "name": "total_tip_received", "comment": null}, "landing_site_base_url": {"type": "text", "index": 16, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "bigint", "index": 17, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 18, "name": "name", "comment": null}, "note": {"type": "text", "index": 19, "name": "note", "comment": null}, "number": {"type": "integer", "index": 20, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 21, "name": "order_number", "comment": null}, "cancel_reason": {"type": "integer", "index": 22, "name": "cancel_reason", "comment": null}, "cart_token": {"type": "text", "index": 23, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 24, "name": "checkout_token", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 25, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 26, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 30, "name": "currency", "comment": null}, "customer_id": {"type": "bigint", "index": 31, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 32, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 33, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 34, "name": "fulfillment_status", "comment": null}, "referring_site": {"type": "text", "index": 35, "name": "referring_site", "comment": null}, "billing_address_address_1": {"type": "text", "index": 36, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 37, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 38, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 39, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 40, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 41, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 42, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 43, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "text", "index": 44, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 45, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 46, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "text", "index": 47, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 48, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 49, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 50, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 51, "name": "browser_ip", "comment": null}, "total_shipping_price_set": {"type": "text", "index": 52, "name": "total_shipping_price_set", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 53, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 54, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 55, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 56, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 57, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 58, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 59, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 60, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 61, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 62, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 63, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "text", "index": 64, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 65, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 66, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 67, "name": "shipping_address_zip", "comment": null}, "token": {"type": "text", "index": 68, "name": "token", "comment": null}, "app_id": {"type": "integer", "index": 69, "name": "app_id", "comment": null}, "checkout_id": {"type": "integer", "index": 70, "name": "checkout_id", "comment": null}, "client_details_user_agent": {"type": "text", "index": 71, "name": "client_details_user_agent", "comment": null}, "customer_locale": {"type": "text", "index": 72, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 73, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 74, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 75, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 76, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 77, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 78, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 79, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 80, "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.shopify_source.stg_shopify__order"}, "model.shopify_source.stg_shopify__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "bigint", "index": 1, "name": "order_adjustment_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "amount_set": {"type": "integer", "index": 5, "name": "amount_set", "comment": null}, "tax_amount": {"type": "double precision", "index": 6, "name": "tax_amount", "comment": null}, "tax_amount_set": {"type": "integer", "index": 7, "name": "tax_amount_set", "comment": null}, "kind": {"type": "text", "index": 8, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 9, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_adjustment"}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp"}, "model.shopify_source.stg_shopify__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_discount_code"}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp"}, "model.shopify_source.stg_shopify__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "bigint", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "bigint", "index": 4, "name": "order_id", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 5, "name": "fulfillable_quantity", "comment": null}, "fulfillment_status": {"type": "text", "index": 6, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 7, "name": "is_gift_card", "comment": null}, "grams": {"type": "integer", "index": 8, "name": "grams", "comment": null}, "pre_tax_price": {"type": "integer", "index": 9, "name": "pre_tax_price", "comment": null}, "pre_tax_price_set": {"type": "text", "index": 10, "name": "pre_tax_price_set", "comment": null}, "price": {"type": "double precision", "index": 11, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 12, "name": "price_set", "comment": null}, "product_id": {"type": "bigint", "index": 13, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 14, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 15, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 16, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 17, "name": "is_taxable", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "title": {"type": "text", "index": 19, "name": "title", "comment": null}, "total_discount": {"type": "integer", "index": 20, "name": "total_discount", "comment": null}, "total_discount_set": {"type": "text", "index": 21, "name": "total_discount_set", "comment": null}, "variant_id": {"type": "bigint", "index": 22, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 23, "name": "variant_title", "comment": null}, "variant_inventory_management": {"type": "text", "index": 24, "name": "variant_inventory_management", "comment": null}, "vendor": {"type": "text", "index": 25, "name": "vendor", "comment": null}, "properties": {"type": "text", "index": 26, "name": "properties", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 27, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 28, "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.shopify_source.stg_shopify__order_line"}, "model.shopify_source.stg_shopify__order_line_refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_refund_id": {"type": "bigint", "index": 1, "name": "order_line_refund_id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "order_line_id": {"type": "bigint", "index": 3, "name": "order_line_id", "comment": null}, "subtotal": {"type": "integer", "index": 4, "name": "subtotal", "comment": null}, "subtotal_set": {"type": "integer", "index": 5, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 6, "name": "total_tax", "comment": null}, "total_tax_set": {"type": "integer", "index": 7, "name": "total_tax_set", "comment": null}, "quantity": {"type": "integer", "index": 8, "name": "quantity", "comment": null}, "refund_id": {"type": "bigint", "index": 9, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 10, "name": "restock_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_line_refund"}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp"}, "model.shopify_source.stg_shopify__order_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_line_tmp"}, "model.shopify_source.stg_shopify__order_note_attribute": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_note_attribute"}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp"}, "model.shopify_source.stg_shopify__order_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 3, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 5, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 6, "name": "discounted_price", "comment": null}, "discounted_price_set": {"type": "text", "index": 7, "name": "discounted_price_set", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 10, "name": "price_set", "comment": null}, "is_third_party_required": {"type": "boolean", "index": 11, "name": "is_third_party_required", "comment": null}, "source": {"type": "text", "index": 12, "name": "source", "comment": null}, "title": {"type": "text", "index": 13, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 14, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_line"}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp"}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_shipping_tax_line"}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"}, "model.shopify_source.stg_shopify__order_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_tag"}, "model.shopify_source.stg_shopify__order_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp"}, "model.shopify_source.stg_shopify__order_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_tmp"}, "model.shopify_source.stg_shopify__order_url_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "key": {"type": "text", "index": 2, "name": "key", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__order_url_tag"}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp"}, "model.shopify_source.stg_shopify__product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "published_scope": {"type": "text", "index": 4, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 5, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 6, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 8, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 11, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product"}, "model.shopify_source.stg_shopify__product_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_media"}, "model.shopify_source.stg_shopify__product_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_media_tmp"}, "model.shopify_source.stg_shopify__product_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__product_tag"}, "model.shopify_source.stg_shopify__product_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp"}, "model.shopify_source.stg_shopify__product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_tmp"}, "model.shopify_source.stg_shopify__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "bigint", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "bigint", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "integer", "index": 9, "name": "compare_at_price", "comment": null}, "fulfillment_service": {"type": "text", "index": 10, "name": "fulfillment_service", "comment": null}, "inventory_management": {"type": "text", "index": 11, "name": "inventory_management", "comment": null}, "is_taxable": {"type": "boolean", "index": 12, "name": "is_taxable", "comment": null}, "barcode": {"type": "integer", "index": 13, "name": "barcode", "comment": null}, "grams": {"type": "double precision", "index": 14, "name": "grams", "comment": null}, "inventory_quantity": {"type": "numeric", "index": 15, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 16, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 17, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 18, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 19, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 20, "name": "sellable_online_quantity", "comment": null}, "weight": {"type": "double precision", "index": 21, "name": "weight", "comment": null}, "weight_unit": {"type": "text", "index": 22, "name": "weight_unit", "comment": null}, "option_1": {"type": "text", "index": 23, "name": "option_1", "comment": null}, "option_2": {"type": "text", "index": 24, "name": "option_2", "comment": null}, "option_3": {"type": "text", "index": 25, "name": "option_3", "comment": null}, "tax_code": {"type": "integer", "index": 26, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 29, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 30, "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.shopify_source.stg_shopify__product_variant"}, "model.shopify_source.stg_shopify__product_variant_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "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.shopify_source.stg_shopify__product_variant_media"}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.stg_shopify__product_variant_media_tmp"}, "model.shopify_source.stg_shopify__product_variant_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp"}, "model.shopify_source.stg_shopify__refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"refund_id": {"type": "bigint", "index": 1, "name": "refund_id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "order_id": {"type": "bigint", "index": 3, "name": "order_id", "comment": null}, "restock": {"type": "boolean", "index": 4, "name": "restock", "comment": null}, "total_duties_set": {"type": "integer", "index": 5, "name": "total_duties_set", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__refund"}, "model.shopify_source.stg_shopify__refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.stg_shopify__refund_tmp"}, "model.shopify_source.stg_shopify__shop": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "has_county_taxes": {"type": "boolean", "index": 15, "name": "has_county_taxes", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 17, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 18, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 19, "name": "email", "comment": null}, "domain": {"type": "text", "index": 20, "name": "domain", "comment": null}, "phone": {"type": "integer", "index": 21, "name": "phone", "comment": null}, "timezone": {"type": "text", "index": 22, "name": "timezone", "comment": null}, "iana_timezone": {"type": "text", "index": 23, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 24, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 25, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 26, "name": "myshopify_domain", "comment": null}, "cookie_consent_level": {"type": "text", "index": 27, "name": "cookie_consent_level", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 29, "name": "source", "comment": null}, "has_shipping_taxes": {"type": "integer", "index": 30, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 31, "name": "has_taxes_included_in_price", "comment": null}, "has_discounts": {"type": "boolean", "index": 32, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 33, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 34, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 35, "name": "has_checkout_api_supported", "comment": null}, "is_eligible_for_card_reader_giveaway": {"type": "boolean", "index": 36, "name": "is_eligible_for_card_reader_giveaway", "comment": null}, "is_eligible_for_payments": {"type": "boolean", "index": 37, "name": "is_eligible_for_payments", "comment": null}, "google_apps_domain": {"type": "integer", "index": 38, "name": "google_apps_domain", "comment": null}, "is_google_apps_login_enabled": {"type": "boolean", "index": 39, "name": "is_google_apps_login_enabled", "comment": null}, "money_format": {"type": "text", "index": 40, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 41, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 42, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 43, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 44, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 45, "name": "plan_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 46, "name": "is_password_enabled", "comment": null}, "is_pre_launch_enabled": {"type": "boolean", "index": 47, "name": "is_pre_launch_enabled", "comment": null}, "is_extra_payments_agreement_required": {"type": "boolean", "index": 48, "name": "is_extra_payments_agreement_required", "comment": null}, "is_setup_required": {"type": "boolean", "index": 49, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 50, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 51, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 52, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 53, "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.shopify_source.stg_shopify__shop"}, "model.shopify_source.stg_shopify__shop_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__shop_tmp"}, "model.shopify_source.stg_shopify__tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "price": {"type": "double precision", "index": 3, "name": "price", "comment": null}, "price_set": {"type": "text", "index": 4, "name": "price_set", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tax_line"}, "model.shopify_source.stg_shopify__tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp"}, "model.shopify_source.stg_shopify__tender_transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "payment_method": {"type": "text", "index": 5, "name": "payment_method", "comment": null}, "remote_reference": {"type": "integer", "index": 6, "name": "remote_reference", "comment": null}, "user_id": {"type": "integer", "index": 7, "name": "user_id", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "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.shopify_source.stg_shopify__tender_transaction"}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.stg_shopify__tender_transaction_tmp"}, "model.shopify_source.stg_shopify__transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "bigint", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "device_id": {"type": "integer", "index": 5, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 6, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 7, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 8, "name": "message", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 11, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 12, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 13, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 14, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 15, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 16, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 17, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 18, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 19, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 20, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 21, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 22, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 23, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 24, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 26, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 27, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 29, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 30, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 31, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 32, "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.shopify_source.stg_shopify__transaction"}, "model.shopify_source.stg_shopify__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify__transaction_tmp"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"is_deleted": {"type": "boolean", "index": 1, "name": "is_deleted", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 2, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 6, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 7, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 8, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 9, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 10, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 11, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 12, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 13, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 14, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 15, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 16, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 17, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "checkout_id": {"type": "integer", "index": 20, "name": "checkout_id", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "note": {"type": "text", "index": 22, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 23, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 24, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 25, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 26, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 27, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 28, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 29, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 30, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 31, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 32, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 33, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 34, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 35, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 36, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 37, "name": "shipping_address_zip", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 38, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 39, "name": "subtotal_price_shop_currency_code", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_pres_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 42, "name": "has_taxes_included", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 43, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 44, "name": "total_discount_shop_currency_code", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_pres_currency_code", "comment": null}, "total_duties_shop_amount": {"type": "double precision", "index": 47, "name": "total_duties_shop_amount", "comment": null}, "total_duties_shop_currency_code": {"type": "text", "index": 48, "name": "total_duties_shop_currency_code", "comment": null}, "total_duties_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_pres_amount", "comment": null}, "total_duties_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_pres_currency_code", "comment": null}, "total_line_items_price_shop_amount": {"type": "double precision", "index": 51, "name": "total_line_items_price_shop_amount", "comment": null}, "total_line_items_price_shop_currency_code": {"type": "text", "index": 52, "name": "total_line_items_price_shop_currency_code", "comment": null}, "total_line_items_price_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_pres_amount", "comment": null}, "total_line_items_price_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 55, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 56, "name": "total_price_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 59, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 60, "name": "total_tax_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_pres_currency_code", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 63, "name": "completed_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 64, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 65, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 66, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 67, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 5, "name": "index", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"}, "model.shopify_source.stg_shopify_gql__collection": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "is_deleted": {"type": "boolean", "index": 2, "name": "is_deleted", "comment": null}, "rule_logic": {"type": "text", "index": 3, "name": "rule_logic", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "sort_order": {"type": "text", "index": 5, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__collection"}, "model.shopify_source.stg_shopify_gql__collection_product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 5, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__collection_product"}, "model.shopify_source.stg_shopify_gql__collection_product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.stg_shopify_gql__collection_product_tmp"}, "model.shopify_source.stg_shopify_gql__collection_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__collection_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.stg_shopify_gql__collection_tmp"}, "model.shopify_source.stg_shopify_gql__customer": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 2, "name": "email", "comment": null}, "first_name": {"type": "text", "index": 3, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 4, "name": "last_name", "comment": null}, "orders_count": {"type": "integer", "index": 5, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 6, "name": "phone", "comment": null}, "account_state": {"type": "text", "index": 7, "name": "account_state", "comment": null}, "is_tax_exempt": {"type": "boolean", "index": 8, "name": "is_tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 9, "name": "total_spent", "comment": null}, "is_verified_email": {"type": "boolean", "index": 10, "name": "is_verified_email", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "marketing_consent_state": {"type": "text", "index": 13, "name": "marketing_consent_state", "comment": null}, "marketing_opt_in_level": {"type": "text", "index": 14, "name": "marketing_opt_in_level", "comment": null}, "marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 15, "name": "marketing_consent_updated_at", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 16, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 17, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer"}, "model.shopify_source.stg_shopify_gql__customer_address": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_address_id": {"type": "integer", "index": 1, "name": "customer_address_id", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "company": {"type": "text", "index": 6, "name": "company", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 8, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 10, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 11, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 12, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 13, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 15, "name": "phone", "comment": null}, "province": {"type": "text", "index": 16, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 17, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 18, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 19, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 20, "name": "timezone", "comment": null}, "has_coordinates_validated": {"type": "boolean", "index": 21, "name": "has_coordinates_validated", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 22, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 23, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 24, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_address"}, "model.shopify_source.stg_shopify_gql__customer_address_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_address_tmp"}, "model.shopify_source.stg_shopify_gql__customer_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag"}, "model.shopify_source.stg_shopify_gql__customer_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag_tmp"}, "model.shopify_source.stg_shopify_gql__customer_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_tmp"}, "model.shopify_source.stg_shopify_gql__customer_visit": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_visit_id": {"type": "integer", "index": 1, "name": "customer_visit_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 4, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 5, "name": "landing_page_html", "comment": null}, "referral_code": {"type": "text", "index": 6, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 7, "name": "referral_info_html", "comment": null}, "referring_site": {"type": "text", "index": 8, "name": "referring_site", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 10, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 11, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 12, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 13, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 14, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 15, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 16, "name": "utm_parameters_term", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 17, "name": "occurred_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit"}, "model.shopify_source.stg_shopify_gql__customer_visit_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit_tmp"}, "model.shopify_source.stg_shopify_gql__discount_allocation": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocated_pres_amount": {"type": "double precision", "index": 1, "name": "allocated_pres_amount", "comment": null}, "allocated_pres_currency_code": {"type": "text", "index": 2, "name": "allocated_pres_currency_code", "comment": null}, "allocated_shop_amount": {"type": "double precision", "index": 3, "name": "allocated_shop_amount", "comment": null}, "allocated_shop_currency_code": {"type": "text", "index": 4, "name": "allocated_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 5, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 6, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 7, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation"}, "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_source.stg_shopify_gql__discount_allocation_tmp"}, "model.shopify_source.stg_shopify_gql__discount_application": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"allocation_method": {"type": "text", "index": 1, "name": "allocation_method", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_percentage": {"type": "double precision", "index": 8, "name": "value_percentage", "comment": null}, "value_currency_code": {"type": "text", "index": 9, "name": "value_currency_code", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_application"}, "model.shopify_source.stg_shopify_gql__discount_application_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_source.stg_shopify_gql__discount_application_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_app": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app"}, "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_app_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_basic": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic"}, "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_basic_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 13, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 14, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 17, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 18, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy"}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 4, "name": "applies_once_per_customer", "comment": null}, "usage_limit": {"type": "integer", "index": 5, "name": "usage_limit", "comment": null}, "usage_count": {"type": "integer", "index": 6, "name": "usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 7, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 8, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 9, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 10, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 11, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 13, "name": "recurring_cycle_limit", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 14, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 15, "name": "total_sales_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 18, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 19, "name": "ends_at", "comment": null}, "source_relation": {"type": "text", "index": 20, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 21, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping"}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"}, "model.shopify_source.stg_shopify_gql__discount_redeem_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"discount_code_id": {"type": "integer", "index": 1, "name": "discount_code_id", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code"}, "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "service": {"type": "text", "index": 5, "name": "service", "comment": null}, "shipment_status": {"type": "text", "index": 6, "name": "shipment_status", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 12, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment"}, "model.shopify_source.stg_shopify_gql__fulfillment_event": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_event_id": {"type": "integer", "index": 1, "name": "fulfillment_event_id", "comment": null}, "fulfillment_id": {"type": "integer", "index": 2, "name": "fulfillment_id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "message": {"type": "text", "index": 4, "name": "message", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 5, "name": "estimated_delivery_at", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 6, "name": "happened_at", "comment": null}, "address_1": {"type": "text", "index": 7, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "province": {"type": "text", "index": 9, "name": "province", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "zip": {"type": "text", "index": 11, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 12, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 13, "name": "longitude", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 17, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event"}, "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_order_line_item_id": {"type": "integer", "index": 1, "name": "fulfillment_order_line_item_id", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 5, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 6, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 7, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 9, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 10, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 11, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 12, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 13, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 15, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 16, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 17, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 18, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 19, "name": "weight_value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 20, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 21, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 22, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_source.stg_shopify_gql__fulfillment_tmp"}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fulfillment_id": {"type": "integer", "index": 1, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "tracking_company": {"type": "text", "index": 3, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "text", "index": 4, "name": "tracking_number", "comment": null}, "tracking_url": {"type": "text", "index": 5, "name": "tracking_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 8, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_item": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_item_id": {"type": "integer", "index": 1, "name": "inventory_item_id", "comment": null}, "sku": {"type": "text", "index": 2, "name": "sku", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 4, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 5, "name": "unit_cost_currency_code", "comment": null}, "country_code_of_origin": {"type": "text", "index": 6, "name": "country_code_of_origin", "comment": null}, "province_code_of_origin": {"type": "text", "index": 7, "name": "province_code_of_origin", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 8, "name": "is_shipping_required", "comment": null}, "is_inventory_quantity_tracked": {"type": "boolean", "index": 9, "name": "is_inventory_quantity_tracked", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 10, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 11, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 12, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 13, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 14, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 15, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 16, "name": "measurement_weight_unit", "comment": null}, "is_tracked_editable_locked": {"type": "boolean", "index": 17, "name": "is_tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item"}, "model.shopify_source.stg_shopify_gql__inventory_item_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.stg_shopify_gql__inventory_item_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_level": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_level_id": {"type": "integer", "index": 1, "name": "inventory_level_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "deactivation_alert": {"type": "text", "index": 5, "name": "deactivation_alert", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 10, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level"}, "model.shopify_source.stg_shopify_gql__inventory_level_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.stg_shopify_gql__inventory_level_tmp"}, "model.shopify_source.stg_shopify_gql__inventory_quantity": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"inventory_quantity_id": {"type": "integer", "index": 1, "name": "inventory_quantity_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 3, "name": "inventory_level_id", "comment": null}, "inventory_state_name": {"type": "text", "index": 4, "name": "inventory_state_name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 9, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity"}, "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_source.stg_shopify_gql__inventory_quantity_tmp"}, "model.shopify_source.stg_shopify_gql__location": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__location", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "is_active": {"type": "boolean", "index": 4, "name": "is_active", "comment": null}, "address_1": {"type": "text", "index": 5, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 6, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 10, "name": "country_name", "comment": null}, "is_legacy": {"type": "boolean", "index": 11, "name": "is_legacy", "comment": null}, "phone": {"type": "character varying", "index": 12, "name": "phone", "comment": null}, "province": {"type": "text", "index": 13, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 14, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 15, "name": "zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 18, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 19, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 20, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__location"}, "model.shopify_source.stg_shopify_gql__location_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__location_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__location_tmp"}, "model.shopify_source.stg_shopify_gql__media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "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}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media"}, "model.shopify_source.stg_shopify_gql__media_image": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_image", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 8, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media_image"}, "model.shopify_source.stg_shopify_gql__media_image_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_image_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__media_image_tmp"}, "model.shopify_source.stg_shopify_gql__media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_source.stg_shopify_gql__media_tmp"}, "model.shopify_source.stg_shopify_gql__metafield": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__metafield", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"metafield_id": {"type": "integer", "index": 1, "name": "metafield_id", "comment": null}, "description": {"type": "text", "index": 2, "name": "description", "comment": null}, "namespace": {"type": "text", "index": 3, "name": "namespace", "comment": null}, "key": {"type": "text", "index": 4, "name": "key", "comment": null}, "value": {"type": "text", "index": 5, "name": "value", "comment": null}, "value_type": {"type": "text", "index": 6, "name": "value_type", "comment": null}, "owner_resource_id": {"type": "integer", "index": 7, "name": "owner_resource_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "metafield_reference": {"type": "text", "index": 12, "name": "metafield_reference", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 13, "name": "is_most_recent_record", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 15, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__metafield"}, "model.shopify_source.stg_shopify_gql__metafield_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__metafield_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__metafield_tmp"}, "model.shopify_source.stg_shopify_gql__order": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 2, "name": "user_id", "comment": null}, "total_discounts_pres_amount": {"type": "double precision", "index": 3, "name": "total_discounts_pres_amount", "comment": null}, "total_discounts_pres_currency_code": {"type": "text", "index": 4, "name": "total_discounts_pres_currency_code", "comment": null}, "total_discounts_shop_amount": {"type": "double precision", "index": 5, "name": "total_discounts_shop_amount", "comment": null}, "total_discounts_shop_currency_code": {"type": "text", "index": 6, "name": "total_discounts_shop_currency_code", "comment": null}, "total_price_pres_amount": {"type": "double precision", "index": 7, "name": "total_price_pres_amount", "comment": null}, "total_price_pres_currency_code": {"type": "text", "index": 8, "name": "total_price_pres_currency_code", "comment": null}, "total_price_shop_amount": {"type": "double precision", "index": 9, "name": "total_price_shop_amount", "comment": null}, "total_price_shop_currency_code": {"type": "text", "index": 10, "name": "total_price_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 11, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 12, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 13, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 14, "name": "total_tax_shop_currency_code", "comment": null}, "source_name": {"type": "text", "index": 15, "name": "source_name", "comment": null}, "subtotal_price_pres_amount": {"type": "double precision", "index": 16, "name": "subtotal_price_pres_amount", "comment": null}, "subtotal_price_pres_currency_code": {"type": "text", "index": 17, "name": "subtotal_price_pres_currency_code", "comment": null}, "subtotal_price_shop_amount": {"type": "double precision", "index": 18, "name": "subtotal_price_shop_amount", "comment": null}, "subtotal_price_shop_currency_code": {"type": "text", "index": 19, "name": "subtotal_price_shop_currency_code", "comment": null}, "has_taxes_included": {"type": "boolean", "index": 20, "name": "has_taxes_included", "comment": null}, "total_weight": {"type": "integer", "index": 21, "name": "total_weight", "comment": null}, "total_tip_received_pres_amount": {"type": "double precision", "index": 22, "name": "total_tip_received_pres_amount", "comment": null}, "total_tip_received_pres_currency_code": {"type": "text", "index": 23, "name": "total_tip_received_pres_currency_code", "comment": null}, "total_tip_received_shop_amount": {"type": "double precision", "index": 24, "name": "total_tip_received_shop_amount", "comment": null}, "total_tip_received_shop_currency_code": {"type": "text", "index": 25, "name": "total_tip_received_shop_currency_code", "comment": null}, "location_id": {"type": "integer", "index": 26, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 27, "name": "name", "comment": null}, "note": {"type": "text", "index": 28, "name": "note", "comment": null}, "number": {"type": "integer", "index": 29, "name": "number", "comment": null}, "cancel_reason": {"type": "text", "index": 30, "name": "cancel_reason", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 31, "name": "created_timestamp", "comment": null}, "cancelled_timestamp": {"type": "timestamp without time zone", "index": 32, "name": "cancelled_timestamp", "comment": null}, "closed_timestamp": {"type": "timestamp without time zone", "index": 33, "name": "closed_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 34, "name": "processed_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 35, "name": "updated_timestamp", "comment": null}, "currency": {"type": "text", "index": 36, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 37, "name": "customer_id", "comment": null}, "email": {"type": "text", "index": 38, "name": "email", "comment": null}, "financial_status": {"type": "text", "index": 39, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 40, "name": "fulfillment_status", "comment": null}, "billing_address_address_1": {"type": "text", "index": 41, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 42, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 43, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 44, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 45, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 46, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 47, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 48, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 49, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 50, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 51, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 52, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 53, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 54, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 55, "name": "billing_address_zip", "comment": null}, "browser_ip": {"type": "text", "index": 56, "name": "browser_ip", "comment": null}, "shipping_cost_pres_amount": {"type": "double precision", "index": 57, "name": "shipping_cost_pres_amount", "comment": null}, "shipping_cost_pres_currency_code": {"type": "text", "index": 58, "name": "shipping_cost_pres_currency_code", "comment": null}, "shipping_cost_shop_amount": {"type": "double precision", "index": 59, "name": "shipping_cost_shop_amount", "comment": null}, "shipping_cost_shop_currency_code": {"type": "text", "index": 60, "name": "shipping_cost_shop_currency_code", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 61, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 62, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 63, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 64, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 65, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 66, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 67, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 68, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 69, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 70, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 71, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 72, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 73, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 74, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 75, "name": "shipping_address_zip", "comment": null}, "app_id": {"type": "integer", "index": 76, "name": "app_id", "comment": null}, "customer_locale": {"type": "text", "index": 77, "name": "customer_locale", "comment": null}, "order_status_url": {"type": "text", "index": 78, "name": "order_status_url", "comment": null}, "presentment_currency": {"type": "text", "index": 79, "name": "presentment_currency", "comment": null}, "is_test_order": {"type": "boolean", "index": 80, "name": "is_test_order", "comment": null}, "is_deleted": {"type": "boolean", "index": 81, "name": "is_deleted", "comment": null}, "has_buyer_accepted_marketing": {"type": "boolean", "index": 82, "name": "has_buyer_accepted_marketing", "comment": null}, "is_confirmed": {"type": "boolean", "index": 83, "name": "is_confirmed", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 84, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 85, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 86, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order"}, "model.shopify_source.stg_shopify_gql__order_adjustment": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_adjustment_id": {"type": "integer", "index": 1, "name": "order_adjustment_id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 3, "name": "amount_pres", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 4, "name": "amount_pres_currency_code", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 6, "name": "amount_shop_currency_code", "comment": null}, "tax_amount_pres": {"type": "double precision", "index": 7, "name": "tax_amount_pres", "comment": null}, "tax_amount_pres_currency_code": {"type": "text", "index": 8, "name": "tax_amount_pres_currency_code", "comment": null}, "tax_amount_shop": {"type": "double precision", "index": 9, "name": "tax_amount_shop", "comment": null}, "tax_amount_shop_currency_code": {"type": "text", "index": 10, "name": "tax_amount_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 11, "name": "reason", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 14, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment"}, "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment_tmp"}, "model.shopify_source.stg_shopify_gql__order_discount_code": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code"}, "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_source.stg_shopify_gql__order_discount_code_tmp"}, "model.shopify_source.stg_shopify_gql__order_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_id": {"type": "integer", "index": 1, "name": "order_line_id", "comment": null}, "index": {"type": "bigint", "index": 2, "name": "index", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "fulfillment_status": {"type": "text", "index": 5, "name": "fulfillment_status", "comment": null}, "is_gift_card": {"type": "boolean", "index": 6, "name": "is_gift_card", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 7, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 8, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 9, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 10, "name": "price_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 11, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "is_shipping_required": {"type": "boolean", "index": 13, "name": "is_shipping_required", "comment": null}, "sku": {"type": "text", "index": 14, "name": "sku", "comment": null}, "is_taxable": {"type": "boolean", "index": 15, "name": "is_taxable", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "total_discount_pres_amount": {"type": "double precision", "index": 17, "name": "total_discount_pres_amount", "comment": null}, "total_discount_pres_currency_code": {"type": "text", "index": 18, "name": "total_discount_pres_currency_code", "comment": null}, "total_discount_shop_amount": {"type": "double precision", "index": 19, "name": "total_discount_shop_amount", "comment": null}, "total_discount_shop_currency_code": {"type": "text", "index": 20, "name": "total_discount_shop_currency_code", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 24, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 25, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 26, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line"}, "model.shopify_source.stg_shopify_gql__order_line_refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_line_refund_id": {"type": "integer", "index": 1, "name": "order_line_refund_id", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "subtotal_pres_amount": {"type": "double precision", "index": 4, "name": "subtotal_pres_amount", "comment": null}, "subtotal_pres_currency_code": {"type": "text", "index": 5, "name": "subtotal_pres_currency_code", "comment": null}, "subtotal_shop_amount": {"type": "double precision", "index": 6, "name": "subtotal_shop_amount", "comment": null}, "subtotal_shop_currency_code": {"type": "text", "index": 7, "name": "subtotal_shop_currency_code", "comment": null}, "total_tax_pres_amount": {"type": "double precision", "index": 8, "name": "total_tax_pres_amount", "comment": null}, "total_tax_pres_currency_code": {"type": "text", "index": 9, "name": "total_tax_pres_currency_code", "comment": null}, "total_tax_shop_amount": {"type": "double precision", "index": 10, "name": "total_tax_shop_amount", "comment": null}, "total_tax_shop_currency_code": {"type": "text", "index": 11, "name": "total_tax_shop_currency_code", "comment": null}, "quantity": {"type": "double precision", "index": 12, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 13, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 14, "name": "restock_type", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 17, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund"}, "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_source.stg_shopify_gql__order_line_refund_tmp"}, "model.shopify_source.stg_shopify_gql__order_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_note_attribute": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute"}, "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"}, "model.shopify_source.stg_shopify_gql__order_shipping_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "carrier_identifier": {"type": "text", "index": 3, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 4, "name": "code", "comment": null}, "delivery_category": {"type": "text", "index": 5, "name": "delivery_category", "comment": null}, "discounted_price_pres_amount": {"type": "double precision", "index": 6, "name": "discounted_price_pres_amount", "comment": null}, "discounted_price_pres_currency_code": {"type": "text", "index": 7, "name": "discounted_price_pres_currency_code", "comment": null}, "discounted_price_shop_amount": {"type": "double precision", "index": 8, "name": "discounted_price_shop_amount", "comment": null}, "discounted_price_shop_currency_code": {"type": "text", "index": 9, "name": "discounted_price_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 10, "name": "phone", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 11, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 12, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 13, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 14, "name": "price_shop_currency_code", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 17, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 19, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line"}, "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_shipping_line_id": {"type": "integer", "index": 1, "name": "order_shipping_line_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 3, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 4, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 5, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 6, "name": "price_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 7, "name": "rate", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"}, "model.shopify_source.stg_shopify_gql__order_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "integer", "index": 1, "name": "order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_tag"}, "model.shopify_source.stg_shopify_gql__order_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__order_tag_tmp"}, "model.shopify_source.stg_shopify_gql__order_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__order_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_source.stg_shopify_gql__order_tmp"}, "model.shopify_source.stg_shopify_gql__product": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "handle": {"type": "text", "index": 2, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 3, "name": "product_type", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 8, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 9, "name": "updated_timestamp", "comment": null}, "published_timestamp": {"type": "timestamp without time zone", "index": 10, "name": "published_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product"}, "model.shopify_source.stg_shopify_gql__product_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "unique_key": {"type": "text", "index": 5, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_media"}, "model.shopify_source.stg_shopify_gql__product_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.stg_shopify_gql__product_media_tmp"}, "model.shopify_source.stg_shopify_gql__product_tag": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "integer", "index": 1, "name": "product_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 6, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tag"}, "model.shopify_source.stg_shopify_gql__product_tag_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tag_tmp"}, "model.shopify_source.stg_shopify_gql__product_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_tmp"}, "model.shopify_source.stg_shopify_gql__product_variant": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"variant_id": {"type": "integer", "index": 1, "name": "variant_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "comment": null}, "price": {"type": "double precision", "index": 5, "name": "price", "comment": null}, "sku": {"type": "text", "index": 6, "name": "sku", "comment": null}, "position": {"type": "integer", "index": 7, "name": "position", "comment": null}, "inventory_policy": {"type": "text", "index": 8, "name": "inventory_policy", "comment": null}, "compare_at_price": {"type": "character varying", "index": 9, "name": "compare_at_price", "comment": null}, "is_taxable": {"type": "boolean", "index": 10, "name": "is_taxable", "comment": null}, "barcode": {"type": "text", "index": 11, "name": "barcode", "comment": null}, "inventory_quantity": {"type": "integer", "index": 12, "name": "inventory_quantity", "comment": null}, "is_available_for_sale": {"type": "boolean", "index": 13, "name": "is_available_for_sale", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 15, "name": "legacy_resource_id", "comment": null}, "has_components_required": {"type": "boolean", "index": 16, "name": "has_components_required", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 17, "name": "sellable_online_quantity", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 19, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "timestamp without time zone", "index": 20, "name": "updated_timestamp", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 22, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 23, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_variant"}, "model.shopify_source.stg_shopify_gql__product_variant_media": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 4, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media"}, "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_source.stg_shopify_gql__product_variant_media_tmp"}, "model.shopify_source.stg_shopify_gql__product_variant_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.stg_shopify_gql__product_variant_tmp"}, "model.shopify_source.stg_shopify_gql__refund": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__refund", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"refund_id": {"type": "integer", "index": 1, "name": "refund_id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "user_id": {"type": "integer", "index": 4, "name": "user_id", "comment": null}, "return_id": {"type": "integer", "index": 5, "name": "return_id", "comment": null}, "total_refunded_pres_amount": {"type": "double precision", "index": 6, "name": "total_refunded_pres_amount", "comment": null}, "total_refunded_pres_currency_code": {"type": "text", "index": 7, "name": "total_refunded_pres_currency_code", "comment": null}, "total_refunded_shop_amount": {"type": "double precision", "index": 8, "name": "total_refunded_shop_amount", "comment": null}, "total_refunded_shop_currency_code": {"type": "text", "index": 9, "name": "total_refunded_shop_currency_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 13, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__refund"}, "model.shopify_source.stg_shopify_gql__refund_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__refund_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_source.stg_shopify_gql__refund_tmp"}, "model.shopify_source.stg_shopify_gql__shop": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__shop", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"shop_id": {"type": "integer", "index": 1, "name": "shop_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "province": {"type": "text", "index": 7, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 8, "name": "province_code", "comment": null}, "country": {"type": "text", "index": 9, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 11, "name": "country_name", "comment": null}, "zip": {"type": "integer", "index": 12, "name": "zip", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 16, "name": "enabled_presentment_currencies", "comment": null}, "customer_email": {"type": "text", "index": 17, "name": "customer_email", "comment": null}, "email": {"type": "text", "index": 18, "name": "email", "comment": null}, "domain": {"type": "text", "index": 19, "name": "domain", "comment": null}, "phone": {"type": "character varying", "index": 20, "name": "phone", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 21, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 22, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 23, "name": "timezone_offset_minutes", "comment": null}, "iana_timezone": {"type": "text", "index": 24, "name": "iana_timezone", "comment": null}, "primary_locale": {"type": "text", "index": 25, "name": "primary_locale", "comment": null}, "weight_unit": {"type": "text", "index": 26, "name": "weight_unit", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "shop_owner": {"type": "text", "index": 28, "name": "shop_owner", "comment": null}, "has_shipping_taxes": {"type": "boolean", "index": 29, "name": "has_shipping_taxes", "comment": null}, "has_taxes_included_in_price": {"type": "boolean", "index": 30, "name": "has_taxes_included_in_price", "comment": null}, "has_storefront": {"type": "boolean", "index": 31, "name": "has_storefront", "comment": null}, "has_checkout_api_supported": {"type": "boolean", "index": 32, "name": "has_checkout_api_supported", "comment": null}, "money_format": {"type": "text", "index": 33, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 34, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 35, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 36, "name": "money_with_currency_in_emails_format", "comment": null}, "plan_display_name": {"type": "text", "index": 37, "name": "plan_display_name", "comment": null}, "is_password_enabled": {"type": "boolean", "index": 38, "name": "is_password_enabled", "comment": null}, "is_setup_required": {"type": "boolean", "index": 39, "name": "is_setup_required", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 40, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 41, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 42, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 43, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 44, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__shop"}, "model.shopify_source.stg_shopify_gql__shop_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__shop_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__shop_tmp"}, "model.shopify_source.stg_shopify_gql__tax_line": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "price_pres_amount": {"type": "double precision", "index": 3, "name": "price_pres_amount", "comment": null}, "price_pres_currency_code": {"type": "text", "index": 4, "name": "price_pres_currency_code", "comment": null}, "price_shop_amount": {"type": "double precision", "index": 5, "name": "price_shop_amount", "comment": null}, "price_shop_currency_code": {"type": "text", "index": 6, "name": "price_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 7, "name": "rate", "comment": null}, "title": {"type": "text", "index": 8, "name": "title", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tax_line"}, "model.shopify_source.stg_shopify_gql__tax_line_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tax_line_tmp"}, "model.shopify_source.stg_shopify_gql__tender_transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "payment_method": {"type": "text", "index": 5, "name": "payment_method", "comment": null}, "remote_reference": {"type": "text", "index": 6, "name": "remote_reference", "comment": null}, "user_id": {"type": "integer", "index": 7, "name": "user_id", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 8, "name": "processed_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 11, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction"}, "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_source.stg_shopify_gql__tender_transaction_tmp"}, "model.shopify_source.stg_shopify_gql__transaction": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__transaction", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "integer", "index": 3, "name": "refund_id", "comment": null}, "amount_pres": {"type": "double precision", "index": 4, "name": "amount_pres", "comment": null}, "amount_shop": {"type": "double precision", "index": 5, "name": "amount_shop", "comment": null}, "device_id": {"type": "text", "index": 6, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 7, "name": "gateway", "comment": null}, "amount_pres_currency_code": {"type": "text", "index": 8, "name": "amount_pres_currency_code", "comment": null}, "amount_shop_currency_code": {"type": "text", "index": 9, "name": "amount_shop_currency_code", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 11, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 12, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 13, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 14, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 15, "name": "payment_credit_card_company", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "receipt": {"type": "text", "index": 17, "name": "receipt", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 18, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 19, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 20, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 21, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 22, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "text", "index": 23, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 24, "name": "status", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "authorization_code": {"type": "text", "index": 26, "name": "authorization_code", "comment": null}, "created_timestamp": {"type": "timestamp without time zone", "index": 27, "name": "created_timestamp", "comment": null}, "processed_timestamp": {"type": "timestamp without time zone", "index": 28, "name": "processed_timestamp", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 29, "name": "authorization_expires_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 30, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 31, "name": "source_relation", "comment": null}, "unique_key": {"type": "text", "index": 32, "name": "unique_key", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__transaction"}, "model.shopify_source.stg_shopify_gql__transaction_tmp": {"metadata": {"type": "VIEW", "schema": "public_shopify", "name": "stg_shopify_gql__transaction_tmp", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.shopify_source.stg_shopify_gql__transaction_tmp"}}, "sources": {"source.shopify_source.shopify.abandoned_checkout": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "applied_discount_amount": {"type": "integer", "index": 4, "name": "applied_discount_amount", "comment": null}, "applied_discount_applicable": {"type": "integer", "index": 5, "name": "applied_discount_applicable", "comment": null}, "applied_discount_description": {"type": "integer", "index": 6, "name": "applied_discount_description", "comment": null}, "applied_discount_non_applicable_reason": {"type": "integer", "index": 7, "name": "applied_discount_non_applicable_reason", "comment": null}, "applied_discount_title": {"type": "integer", "index": 8, "name": "applied_discount_title", "comment": null}, "applied_discount_value": {"type": "integer", "index": 9, "name": "applied_discount_value", "comment": null}, "applied_discount_value_type": {"type": "integer", "index": 10, "name": "applied_discount_value_type", "comment": null}, "billing_address_address_1": {"type": "text", "index": 11, "name": "billing_address_address_1", "comment": null}, "billing_address_address_0": {"type": "text", "index": 12, "name": "billing_address_address_0", "comment": null}, "billing_address_city": {"type": "text", "index": 13, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "integer", "index": 14, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 15, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 16, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 17, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 18, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 19, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 20, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 21, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 22, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 23, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 24, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 25, "name": "billing_address_zip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 26, "name": "buyer_accepts_marketing", "comment": null}, "cart_token": {"type": "text", "index": 27, "name": "cart_token", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 28, "name": "closed_at", "comment": null}, "completed_at": {"type": "integer", "index": 29, "name": "completed_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 30, "name": "created_at", "comment": null}, "credit_card_first_name": {"type": "integer", "index": 31, "name": "credit_card_first_name", "comment": null}, "credit_card_last_name": {"type": "integer", "index": 32, "name": "credit_card_last_name", "comment": null}, "credit_card_month": {"type": "integer", "index": 33, "name": "credit_card_month", "comment": null}, "credit_card_number": {"type": "integer", "index": 34, "name": "credit_card_number", "comment": null}, "credit_card_verification_value": {"type": "integer", "index": 35, "name": "credit_card_verification_value", "comment": null}, "credit_card_year": {"type": "integer", "index": 36, "name": "credit_card_year", "comment": null}, "currency": {"type": "text", "index": 37, "name": "currency", "comment": null}, "customer_id": {"type": "integer", "index": 38, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 39, "name": "customer_locale", "comment": null}, "device_id": {"type": "integer", "index": 40, "name": "device_id", "comment": null}, "email": {"type": "text", "index": 41, "name": "email", "comment": null}, "gateway": {"type": "text", "index": 42, "name": "gateway", "comment": null}, "landing_site_base_url": {"type": "text", "index": 43, "name": "landing_site_base_url", "comment": null}, "location_id": {"type": "integer", "index": 44, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 45, "name": "name", "comment": null}, "note": {"type": "integer", "index": 46, "name": "note", "comment": null}, "phone": {"type": "integer", "index": 47, "name": "phone", "comment": null}, "referring_site": {"type": "text", "index": 48, "name": "referring_site", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 49, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_0": {"type": "text", "index": 50, "name": "shipping_address_address_0", "comment": null}, "shipping_address_city": {"type": "text", "index": 51, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "integer", "index": 52, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 53, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 54, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 55, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 56, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 57, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 58, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 59, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 60, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 61, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 62, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 63, "name": "shipping_address_zip", "comment": null}, "shipping_line": {"type": "integer", "index": 64, "name": "shipping_line", "comment": null}, "shipping_rate_id": {"type": "integer", "index": 65, "name": "shipping_rate_id", "comment": null}, "shipping_rate_price": {"type": "integer", "index": 66, "name": "shipping_rate_price", "comment": null}, "shipping_rate_title": {"type": "integer", "index": 67, "name": "shipping_rate_title", "comment": null}, "source": {"type": "integer", "index": 68, "name": "source", "comment": null}, "source_identifier": {"type": "integer", "index": 69, "name": "source_identifier", "comment": null}, "source_name": {"type": "text", "index": 70, "name": "source_name", "comment": null}, "source_url": {"type": "integer", "index": 71, "name": "source_url", "comment": null}, "subtotal_price": {"type": "double precision", "index": 72, "name": "subtotal_price", "comment": null}, "taxes_included": {"type": "boolean", "index": 73, "name": "taxes_included", "comment": null}, "token": {"type": "text", "index": 74, "name": "token", "comment": null}, "total_discounts": {"type": "double precision", "index": 75, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 76, "name": "total_line_items_price", "comment": null}, "total_price": {"type": "double precision", "index": 77, "name": "total_price", "comment": null}, "total_tax": {"type": "double precision", "index": 78, "name": "total_tax", "comment": null}, "total_weight": {"type": "integer", "index": 79, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 80, "name": "updated_at", "comment": null}, "user_id": {"type": "integer", "index": 81, "name": "user_id", "comment": null}, "note_attribute_littledata_updated_at": {"type": "integer", "index": 82, "name": "note_attribute_littledata_updated_at", "comment": null}, "note_attribute_segment_client_id": {"type": "text", "index": 83, "name": "note_attribute_segment_client_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 84, "name": "billing_address_id", "comment": null}, "billing_address_is_default": {"type": "integer", "index": 85, "name": "billing_address_is_default", "comment": null}, "presentment_currency": {"type": "text", "index": 86, "name": "presentment_currency", "comment": null}, "shipping_address_id": {"type": "integer", "index": 87, "name": "shipping_address_id", "comment": null}, "shipping_address_is_default": {"type": "integer", "index": 88, "name": "shipping_address_is_default", "comment": null}, "total_duties": {"type": "integer", "index": 89, "name": "total_duties", "comment": null}, "note_attribute_email_client_id": {"type": "integer", "index": 90, "name": "note_attribute_email_client_id", "comment": null}, "note_attributes": {"type": "text", "index": 91, "name": "note_attributes", "comment": null}, "note_attribute_google_client_id": {"type": "integer", "index": 92, "name": "note_attribute_google_client_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 93, "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.shopify_source.shopify.abandoned_checkout"}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "bigint", "index": 1, "name": "checkout_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": "double precision", "index": 4, "name": "amount", "comment": null}, "discount_id": {"type": "bigint", "index": 5, "name": "discount_id", "comment": null}, "code": {"type": "character varying", "index": 6, "name": "code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "type": {"type": "character varying", "index": 8, "name": "type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "usage_count": {"type": "integer", "index": 10, "name": "usage_count", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code"}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"checkout_id": {"type": "integer", "index": 1, "name": "checkout_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "api_client_id": {"type": "integer", "index": 4, "name": "api_client_id", "comment": null}, "carrier_identifier": {"type": "integer", "index": 5, "name": "carrier_identifier", "comment": null}, "carrier_service_id": {"type": "integer", "index": 6, "name": "carrier_service_id", "comment": null}, "code": {"type": "text", "index": 7, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 8, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "integer", "index": 9, "name": "discounted_price", "comment": null}, "id": {"type": "text", "index": 10, "name": "id", "comment": null}, "markup": {"type": "character varying", "index": 11, "name": "markup", "comment": null}, "phone": {"type": "integer", "index": 12, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 14, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 15, "name": "source", "comment": null}, "title": {"type": "text", "index": 16, "name": "title", "comment": null}, "validation_context": {"type": "integer", "index": 17, "name": "validation_context", "comment": null}, "delivery_expectation_range": {"type": "integer", "index": 18, "name": "delivery_expectation_range", "comment": null}, "delivery_expectation_type": {"type": "integer", "index": 19, "name": "delivery_expectation_type", "comment": null}, "original_shop_markup": {"type": "character varying", "index": 20, "name": "original_shop_markup", "comment": null}, "original_shop_price": {"type": "character varying", "index": 21, "name": "original_shop_price", "comment": null}, "presentment_title": {"type": "text", "index": 22, "name": "presentment_title", "comment": null}, "delivery_expectation_range_min": {"type": "integer", "index": 23, "name": "delivery_expectation_range_min", "comment": null}, "delivery_expectation_range_max": {"type": "integer", "index": 24, "name": "delivery_expectation_range_max", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line"}, "source.shopify_source.shopify.collection": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "handle": {"type": "integer", "index": 4, "name": "handle", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 5, "name": "published_at", "comment": null}, "published_scope": {"type": "integer", "index": 6, "name": "published_scope", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "disjunctive": {"type": "boolean", "index": 9, "name": "disjunctive", "comment": null}, "rules": {"type": "integer", "index": 10, "name": "rules", "comment": null}, "sort_order": {"type": "integer", "index": 11, "name": "sort_order", "comment": null}, "template_suffix": {"type": "integer", "index": 12, "name": "template_suffix", "comment": null}, "body_html": {"type": "integer", "index": 13, "name": "body_html", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection"}, "source.shopify_source.shopify.collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"collection_id": {"type": "integer", "index": 1, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.collection_product"}, "source.shopify_source.shopify.customer": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "first_name": {"type": "text", "index": 2, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 3, "name": "last_name", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "phone": {"type": "integer", "index": 5, "name": "phone", "comment": null}, "state": {"type": "text", "index": 6, "name": "state", "comment": null}, "orders_count": {"type": "integer", "index": 7, "name": "orders_count", "comment": null}, "total_spent": {"type": "double precision", "index": 8, "name": "total_spent", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "accepts_marketing": {"type": "boolean", "index": 11, "name": "accepts_marketing", "comment": null}, "tax_exempt": {"type": "boolean", "index": 12, "name": "tax_exempt", "comment": null}, "verified_email": {"type": "boolean", "index": 13, "name": "verified_email", "comment": null}, "default_address_id": {"type": "bigint", "index": 14, "name": "default_address_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 15, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer"}, "source.shopify_source.shopify.customer_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.customer_tag"}, "source.shopify_source.shopify.discount_allocation": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "amount_set_presentment_money_amount": {"type": "double precision", "index": 3, "name": "amount_set_presentment_money_amount", "comment": null}, "amount_set_presentment_money_currency_code": {"type": "character varying", "index": 4, "name": "amount_set_presentment_money_currency_code", "comment": null}, "amount_set_shop_money_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_money_amount", "comment": null}, "amount_set_shop_money_currency_code": {"type": "character varying", "index": 6, "name": "amount_set_shop_money_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 7, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "order_line_id": {"type": "bigint", "index": 9, "name": "order_line_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.shopify_source.shopify.discount_allocation"}, "source.shopify_source.shopify.discount_application": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "character varying", "index": 2, "name": "allocation_method", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "description": {"type": "character varying", "index": 4, "name": "description", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 6, "name": "order_id", "comment": null}, "target_selection": {"type": "character varying", "index": 7, "name": "target_selection", "comment": null}, "target_type": {"type": "character varying", "index": 8, "name": "target_type", "comment": null}, "title": {"type": "character varying", "index": 9, "name": "title", "comment": null}, "type": {"type": "character varying", "index": 10, "name": "type", "comment": null}, "value": {"type": "double precision", "index": 11, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 12, "name": "value_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_application"}, "source.shopify_source.shopify.discount_code_app": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count_count": {"type": "integer", "index": 6, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "character varying", "index": 7, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_app"}, "source.shopify_source.shopify.discount_code_basic": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 12, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 13, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 14, "name": "status", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 15, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 16, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 18, "name": "usage_limit", "comment": null}, "_fivetran_synced": {"type": "text", "index": 19, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_basic"}, "source.shopify_source.shopify.discount_code_bxgy": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 3, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 4, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 5, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 6, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 7, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 8, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 10, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 11, "name": "ends_at", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 12, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 13, "name": "status", "comment": null}, "summary": {"type": "character varying", "index": 14, "name": "summary", "comment": null}, "title": {"type": "character varying", "index": 15, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 16, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 17, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 18, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 19, "name": "usage_limit", "comment": null}, "uses_per_order_limit": {"type": "integer", "index": 20, "name": "uses_per_order_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_bxgy"}, "source.shopify_source.shopify.discount_code_free_shipping": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 2, "name": "applies_once_per_customer", "comment": null}, "applies_on_one_time_purchase": {"type": "boolean", "index": 3, "name": "applies_on_one_time_purchase", "comment": null}, "applies_on_subscription": {"type": "boolean", "index": 4, "name": "applies_on_subscription", "comment": null}, "async_usage_count": {"type": "integer", "index": 5, "name": "async_usage_count", "comment": null}, "codes_count": {"type": "integer", "index": 6, "name": "codes_count", "comment": null}, "codes_precision": {"type": "character varying", "index": 7, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 8, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 9, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 10, "name": "combines_with_shipping_discounts", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 12, "name": "customer_selection_all_customers", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 13, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 14, "name": "recurring_cycle_limit", "comment": null}, "starts_at": {"type": "timestamp without time zone", "index": 15, "name": "starts_at", "comment": null}, "status": {"type": "character varying", "index": 16, "name": "status", "comment": null}, "title": {"type": "character varying", "index": 17, "name": "title", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "character varying", "index": 19, "name": "total_sales_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 20, "name": "updated_at", "comment": null}, "usage_limit": {"type": "integer", "index": 21, "name": "usage_limit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.discount_code_free_shipping"}, "source.shopify_source.shopify.discount_redeem_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "character varying", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "character varying", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "bigint", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "character varying", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "bigint", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "character varying", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "bigint", "index": 9, "name": "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.shopify_source.shopify.discount_redeem_code"}, "source.shopify_source.shopify.fulfillment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "location_id": {"type": "integer", "index": 4, "name": "location_id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "tracking_company": {"type": "integer", "index": 7, "name": "tracking_company", "comment": null}, "tracking_number": {"type": "integer", "index": 8, "name": "tracking_number", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}, "tracking_numbers": {"type": "text", "index": 10, "name": "tracking_numbers", "comment": null}, "tracking_urls": {"type": "text", "index": 11, "name": "tracking_urls", "comment": null}, "shipment_status": {"type": "integer", "index": 12, "name": "shipment_status", "comment": null}, "service": {"type": "text", "index": 13, "name": "service", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "receipt_authorization": {"type": "integer", "index": 15, "name": "receipt_authorization", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment"}, "source.shopify_source.shopify.fulfillment_event": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "integer", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "text", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "text", "index": 9, "name": "happened_at", "comment": null}, "latitude": {"type": "double precision", "index": 10, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 11, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 12, "name": "message", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "shop_id": {"type": "integer", "index": 15, "name": "shop_id", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "updated_at": {"type": "text", "index": 17, "name": "updated_at", "comment": null}, "zip": {"type": "text", "index": 18, "name": "zip", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.fulfillment_event"}, "source.shopify_source.shopify_graphql.abandoned_checkout": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "abandoned_checkout_url": {"type": "text", "index": 3, "name": "abandoned_checkout_url", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 18, "name": "billing_address_zip", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 19, "name": "created_at", "comment": null}, "completed_at": {"type": "timestamp without time zone", "index": 20, "name": "completed_at", "comment": null}, "customer_id": {"type": "integer", "index": 21, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 22, "name": "id", "comment": null}, "name": {"type": "text", "index": 23, "name": "name", "comment": null}, "note": {"type": "text", "index": 24, "name": "note", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 25, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 26, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 27, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 28, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 29, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 30, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 31, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 32, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 33, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 34, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 35, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 36, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 37, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 38, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 39, "name": "shipping_address_zip", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 40, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 41, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 42, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 43, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 44, "name": "taxes_included", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 45, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 46, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 47, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 48, "name": "total_discount_set_shop_currency_code", "comment": null}, "total_duties_set_pres_amount": {"type": "double precision", "index": 49, "name": "total_duties_set_pres_amount", "comment": null}, "total_duties_set_pres_currency_code": {"type": "text", "index": 50, "name": "total_duties_set_pres_currency_code", "comment": null}, "total_duties_set_shop_amount": {"type": "double precision", "index": 51, "name": "total_duties_set_shop_amount", "comment": null}, "total_duties_set_shop_currency_code": {"type": "text", "index": 52, "name": "total_duties_set_shop_currency_code", "comment": null}, "total_line_items_price_set_pres_amount": {"type": "double precision", "index": 53, "name": "total_line_items_price_set_pres_amount", "comment": null}, "total_line_items_price_set_pres_currency_code": {"type": "text", "index": 54, "name": "total_line_items_price_set_pres_currency_code", "comment": null}, "total_line_items_price_set_shop_amount": {"type": "double precision", "index": 55, "name": "total_line_items_price_set_shop_amount", "comment": null}, "total_line_items_price_set_shop_currency_code": {"type": "text", "index": 56, "name": "total_line_items_price_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "total_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 61, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 62, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 63, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 64, "name": "total_tax_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 65, "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.shopify_source.shopify_graphql.abandoned_checkout"}, "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "checkout_id": {"type": "integer", "index": 2, "name": "checkout_id", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"}, "source.shopify_source.shopify_graphql.collection": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "applied_disjunctively": {"type": "boolean", "index": 3, "name": "applied_disjunctively", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "sort_order": {"type": "text", "index": 6, "name": "sort_order", "comment": null}, "title": {"type": "text", "index": 7, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.shopify_graphql.collection"}, "source.shopify_source.shopify_graphql.collection_product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_collection_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "collection_id": {"type": "integer", "index": 2, "name": "collection_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.shopify_graphql.collection_product"}, "source.shopify_source.shopify_graphql.customer_address": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "company": {"type": "text", "index": 7, "name": "company", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 9, "name": "country_code", "comment": null}, "first_name": {"type": "text", "index": 10, "name": "first_name", "comment": null}, "is_default": {"type": "boolean", "index": 11, "name": "is_default", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "latitude": {"type": "double precision", "index": 13, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 14, "name": "longitude", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 16, "name": "phone", "comment": null}, "province": {"type": "text", "index": 17, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 18, "name": "province_code", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}, "validation_result_summary": {"type": "text", "index": 20, "name": "validation_result_summary", "comment": null}, "timezone": {"type": "text", "index": 21, "name": "timezone", "comment": null}, "coordinates_validated": {"type": "boolean", "index": 22, "name": "coordinates_validated", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_address"}, "source.shopify_source.shopify_graphql.customer": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "email": {"type": "text", "index": 4, "name": "email", "comment": null}, "email_marketing_consent_opt_in_level": {"type": "text", "index": 5, "name": "email_marketing_consent_opt_in_level", "comment": null}, "email_marketing_consent_state": {"type": "text", "index": 6, "name": "email_marketing_consent_state", "comment": null}, "email_marketing_consent_updated_at": {"type": "timestamp without time zone", "index": 7, "name": "email_marketing_consent_updated_at", "comment": null}, "first_name": {"type": "text", "index": 8, "name": "first_name", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "last_name": {"type": "text", "index": 10, "name": "last_name", "comment": null}, "note": {"type": "text", "index": 11, "name": "note", "comment": null}, "orders_count": {"type": "integer", "index": 12, "name": "orders_count", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "tax_exempt": {"type": "boolean", "index": 15, "name": "tax_exempt", "comment": null}, "total_spent": {"type": "double precision", "index": 16, "name": "total_spent", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 17, "name": "updated_at", "comment": null}, "verified_email": {"type": "boolean", "index": 18, "name": "verified_email", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer"}, "source.shopify_source.shopify_graphql.customer_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "customer_id": {"type": "integer", "index": 3, "name": "customer_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_tag"}, "source.shopify_source.shopify_graphql.customer_visit": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_customer_visit_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "landing_page": {"type": "text", "index": 5, "name": "landing_page", "comment": null}, "landing_page_html": {"type": "text", "index": 6, "name": "landing_page_html", "comment": null}, "occurred_at": {"type": "timestamp without time zone", "index": 7, "name": "occurred_at", "comment": null}, "referral_code": {"type": "text", "index": 8, "name": "referral_code", "comment": null}, "referral_info_html": {"type": "text", "index": 9, "name": "referral_info_html", "comment": null}, "referrer_url": {"type": "text", "index": 10, "name": "referrer_url", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "source_description": {"type": "text", "index": 12, "name": "source_description", "comment": null}, "source_type": {"type": "text", "index": 13, "name": "source_type", "comment": null}, "utm_parameters_campaign": {"type": "text", "index": 14, "name": "utm_parameters_campaign", "comment": null}, "utm_parameters_content": {"type": "text", "index": 15, "name": "utm_parameters_content", "comment": null}, "utm_parameters_medium": {"type": "text", "index": 16, "name": "utm_parameters_medium", "comment": null}, "utm_parameters_source": {"type": "text", "index": 17, "name": "utm_parameters_source", "comment": null}, "utm_parameters_term": {"type": "text", "index": 18, "name": "utm_parameters_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.customer_visit"}, "source.shopify_source.shopify_graphql.discount_allocation": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_allocation_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocated_amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "allocated_amount_set_pres_amount", "comment": null}, "allocated_amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "allocated_amount_set_pres_currency_code", "comment": null}, "allocated_amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "allocated_amount_set_shop_amount", "comment": null}, "allocated_amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "allocated_amount_set_shop_currency_code", "comment": null}, "discount_application_index": {"type": "integer", "index": 6, "name": "discount_application_index", "comment": null}, "index": {"type": "integer", "index": 7, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 8, "name": "order_line_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.shopify_source.shopify_graphql.discount_allocation"}, "source.shopify_source.shopify_graphql.discount_application": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_application_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "allocation_method": {"type": "text", "index": 2, "name": "allocation_method", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_id", "comment": null}, "target_selection": {"type": "text", "index": 5, "name": "target_selection", "comment": null}, "target_type": {"type": "text", "index": 6, "name": "target_type", "comment": null}, "value_amount": {"type": "double precision", "index": 7, "name": "value_amount", "comment": null}, "value_currency_code": {"type": "text", "index": 8, "name": "value_currency_code", "comment": null}, "value_percentage": {"type": "double precision", "index": 9, "name": "value_percentage", "comment": null}, "code": {"type": "text", "index": 10, "name": "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.shopify_source.shopify_graphql.discount_application"}, "source.shopify_source.shopify_graphql.discount_code_app": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_app_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count_count": {"type": "integer", "index": 13, "name": "codes_count_count", "comment": null}, "codes_count_precision": {"type": "text", "index": 14, "name": "codes_count_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_app"}, "source.shopify_source.shopify_graphql.discount_code_basic": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_basic"}, "source.shopify_source.shopify_graphql.discount_code_bxgy": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "title": {"type": "text", "index": 3, "name": "title", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 9, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 10, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 11, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 12, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 13, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 14, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 15, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 16, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 17, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 18, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 19, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_bxgy"}, "source.shopify_source.shopify_graphql.discount_code_free_shipping": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "status": {"type": "text", "index": 3, "name": "status", "comment": null}, "title": {"type": "text", "index": 4, "name": "title", "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}, "starts_at": {"type": "timestamp without time zone", "index": 7, "name": "starts_at", "comment": null}, "ends_at": {"type": "timestamp without time zone", "index": 8, "name": "ends_at", "comment": null}, "recurring_cycle_limit": {"type": "integer", "index": 9, "name": "recurring_cycle_limit", "comment": null}, "applies_once_per_customer": {"type": "boolean", "index": 10, "name": "applies_once_per_customer", "comment": null}, "async_usage_count": {"type": "integer", "index": 11, "name": "async_usage_count", "comment": null}, "usage_limit": {"type": "integer", "index": 12, "name": "usage_limit", "comment": null}, "codes_count": {"type": "integer", "index": 13, "name": "codes_count", "comment": null}, "codes_precision": {"type": "text", "index": 14, "name": "codes_precision", "comment": null}, "combines_with_order_discounts": {"type": "boolean", "index": 15, "name": "combines_with_order_discounts", "comment": null}, "combines_with_product_discounts": {"type": "boolean", "index": 16, "name": "combines_with_product_discounts", "comment": null}, "combines_with_shipping_discounts": {"type": "boolean", "index": 17, "name": "combines_with_shipping_discounts", "comment": null}, "customer_selection_all_customers": {"type": "boolean", "index": 18, "name": "customer_selection_all_customers", "comment": null}, "total_sales_amount": {"type": "double precision", "index": 19, "name": "total_sales_amount", "comment": null}, "total_sales_currency_code": {"type": "text", "index": 20, "name": "total_sales_currency_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.shopify_source.shopify_graphql.discount_code_free_shipping"}, "source.shopify_source.shopify_graphql.discount_redeem_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "async_usage_count": {"type": "integer", "index": 2, "name": "async_usage_count", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "created_by_description": {"type": "text", "index": 4, "name": "created_by_description", "comment": null}, "created_by_id": {"type": "integer", "index": 5, "name": "created_by_id", "comment": null}, "created_by_title": {"type": "text", "index": 6, "name": "created_by_title", "comment": null}, "discount_id": {"type": "integer", "index": 7, "name": "discount_id", "comment": null}, "discount_type": {"type": "text", "index": 8, "name": "discount_type", "comment": null}, "id": {"type": "integer", "index": 9, "name": "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.shopify_source.shopify_graphql.discount_redeem_code"}, "source.shopify_source.shopify_graphql.fulfillment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "display_status": {"type": "text", "index": 3, "name": "display_status", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 5, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 7, "name": "order_id", "comment": null}, "service_id": {"type": "text", "index": 8, "name": "service_id", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "total_quantity": {"type": "integer", "index": 10, "name": "total_quantity", "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.shopify_source.shopify_graphql.fulfillment"}, "source.shopify_source.shopify_graphql.fulfillment_event": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "estimated_delivery_at": {"type": "timestamp without time zone", "index": 7, "name": "estimated_delivery_at", "comment": null}, "fulfillment_id": {"type": "integer", "index": 8, "name": "fulfillment_id", "comment": null}, "happened_at": {"type": "timestamp without time zone", "index": 9, "name": "happened_at", "comment": null}, "id": {"type": "integer", "index": 10, "name": "id", "comment": null}, "latitude": {"type": "double precision", "index": 11, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 12, "name": "longitude", "comment": null}, "message": {"type": "text", "index": 13, "name": "message", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "status": {"type": "text", "index": 15, "name": "status", "comment": null}, "zip": {"type": "text", "index": 16, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_event"}, "source.shopify_source.shopify_graphql.fulfillment_order_line_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "fulfillment_order_id": {"type": "integer", "index": 2, "name": "fulfillment_order_id", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "image_alt_text": {"type": "text", "index": 4, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 5, "name": "image_height", "comment": null}, "image_id": {"type": "integer", "index": 6, "name": "image_id", "comment": null}, "image_url": {"type": "text", "index": 7, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 8, "name": "image_width", "comment": null}, "inventory_item_id": {"type": "integer", "index": 9, "name": "inventory_item_id", "comment": null}, "order_line_item_id": {"type": "integer", "index": 10, "name": "order_line_item_id", "comment": null}, "product_title": {"type": "text", "index": 11, "name": "product_title", "comment": null}, "product_variant_id": {"type": "integer", "index": 12, "name": "product_variant_id", "comment": null}, "remaining_quantity": {"type": "integer", "index": 13, "name": "remaining_quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "total_quantity": {"type": "integer", "index": 16, "name": "total_quantity", "comment": null}, "variant_title": {"type": "text", "index": 17, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 18, "name": "vendor", "comment": null}, "weight_unit": {"type": "text", "index": 19, "name": "weight_unit", "comment": null}, "weight_value": {"type": "double precision", "index": 20, "name": "weight_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_order_line_item"}, "source.shopify_source.shopify_graphql.fulfillment_tracking_info": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "company": {"type": "text", "index": 2, "name": "company", "comment": null}, "fulfillment_id": {"type": "integer", "index": 3, "name": "fulfillment_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "number": {"type": "text", "index": 5, "name": "number", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.fulfillment_tracking_info"}, "source.shopify_source.shopify_graphql.inventory_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "country_code_of_origin": {"type": "text", "index": 3, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 5, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "text", "index": 6, "name": "harmonized_system_code", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_history_url": {"type": "text", "index": 8, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 9, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "integer", "index": 10, "name": "measurement_id", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 11, "name": "measurement_weight_unit", "comment": null}, "measurement_weight_value": {"type": "double precision", "index": 12, "name": "measurement_weight_value", "comment": null}, "province_code_of_origin": {"type": "text", "index": 13, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 14, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 15, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 16, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "boolean", "index": 17, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "text", "index": 18, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 19, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 20, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.shopify_graphql.inventory_item"}, "source.shopify_source.shopify_graphql.inventory_level": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "can_deactivate": {"type": "boolean", "index": 2, "name": "can_deactivate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 4, "name": "deactivation_alert", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 6, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "integer", "index": 7, "name": "location_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "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.shopify_source.shopify_graphql.inventory_level"}, "source.shopify_source.shopify_graphql.inventory_quantity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 3, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "integer", "index": 4, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 6, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "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.shopify_source.shopify_graphql.inventory_quantity"}, "source.shopify_source.shopify_graphql.location": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 3, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 4, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 5, "name": "city", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 7, "name": "country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 9, "name": "id", "comment": null}, "is_active": {"type": "boolean", "index": 10, "name": "is_active", "comment": null}, "is_fulfillment_service": {"type": "boolean", "index": 11, "name": "is_fulfillment_service", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "phone": {"type": "character varying", "index": 13, "name": "phone", "comment": null}, "province": {"type": "text", "index": 14, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 15, "name": "province_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 17, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.location"}, "source.shopify_source.shopify_graphql.media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "alt": {"type": "text", "index": 2, "name": "alt", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "file_status": {"type": "text", "index": 4, "name": "file_status", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "media_content_type": {"type": "text", "index": 6, "name": "media_content_type", "comment": null}, "preview_image_alt_text": {"type": "text", "index": 7, "name": "preview_image_alt_text", "comment": null}, "preview_image_height": {"type": "integer", "index": 8, "name": "preview_image_height", "comment": null}, "preview_image_id": {"type": "integer", "index": 9, "name": "preview_image_id", "comment": null}, "preview_image_url": {"type": "text", "index": 10, "name": "preview_image_url", "comment": null}, "preview_image_width": {"type": "integer", "index": 11, "name": "preview_image_width", "comment": null}, "preview_status": {"type": "text", "index": 12, "name": "preview_status", "comment": null}, "status": {"type": "text", "index": 13, "name": "status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 14, "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.shopify_source.shopify_graphql.media"}, "source.shopify_source.shopify_graphql.media_image": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "integer", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "integer", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "text", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "text", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.media_image"}, "source.shopify_source.shopify_graphql.metafield": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "integer", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "value_type": {"type": "text", "index": 10, "name": "value_type", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 12, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.metafield"}, "source.shopify_source.shopify_graphql.order_adjustment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 3, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 4, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 5, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 6, "name": "amount_set_shop_currency_code", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "tax_amount_set_pres_amount": {"type": "double precision", "index": 8, "name": "tax_amount_set_pres_amount", "comment": null}, "tax_amount_set_pres_currency_code": {"type": "text", "index": 9, "name": "tax_amount_set_pres_currency_code", "comment": null}, "tax_amount_set_shop_amount": {"type": "double precision", "index": 10, "name": "tax_amount_set_shop_amount", "comment": null}, "tax_amount_set_shop_currency_code": {"type": "text", "index": 11, "name": "tax_amount_set_shop_currency_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_adjustment"}, "source.shopify_source.shopify_graphql.order": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "app_id": {"type": "integer", "index": 3, "name": "app_id", "comment": null}, "billing_address_address_1": {"type": "text", "index": 4, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 5, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 6, "name": "billing_address_city", "comment": null}, "billing_address_company": {"type": "text", "index": 7, "name": "billing_address_company", "comment": null}, "billing_address_country": {"type": "text", "index": 8, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 9, "name": "billing_address_country_code", "comment": null}, "billing_address_first_name": {"type": "text", "index": 10, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 11, "name": "billing_address_last_name", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 12, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 13, "name": "billing_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 14, "name": "billing_address_name", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 15, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 16, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 17, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 18, "name": "billing_address_zip", "comment": null}, "cancel_reason": {"type": "text", "index": 19, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 20, "name": "cancelled_at", "comment": null}, "client_ip": {"type": "text", "index": 21, "name": "client_ip", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 22, "name": "closed_at", "comment": null}, "confirmed": {"type": "boolean", "index": 23, "name": "confirmed", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 25, "name": "currency_code", "comment": null}, "customer_accepts_marketing": {"type": "boolean", "index": 26, "name": "customer_accepts_marketing", "comment": null}, "customer_id": {"type": "integer", "index": 27, "name": "customer_id", "comment": null}, "customer_locale": {"type": "text", "index": 28, "name": "customer_locale", "comment": null}, "display_financial_status": {"type": "text", "index": 29, "name": "display_financial_status", "comment": null}, "display_fulfillment_status": {"type": "text", "index": 30, "name": "display_fulfillment_status", "comment": null}, "email": {"type": "text", "index": 31, "name": "email", "comment": null}, "id": {"type": "integer", "index": 32, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 33, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 34, "name": "name", "comment": null}, "note": {"type": "text", "index": 35, "name": "note", "comment": null}, "number": {"type": "integer", "index": 36, "name": "number", "comment": null}, "presentment_currency_code": {"type": "text", "index": 37, "name": "presentment_currency_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 38, "name": "processed_at", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 39, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 40, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 41, "name": "shipping_address_city", "comment": null}, "shipping_address_company": {"type": "text", "index": 42, "name": "shipping_address_company", "comment": null}, "shipping_address_country": {"type": "text", "index": 43, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 44, "name": "shipping_address_country_code", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 45, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 46, "name": "shipping_address_last_name", "comment": null}, "shipping_address_latitude": {"type": "double precision", "index": 47, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "double precision", "index": 48, "name": "shipping_address_longitude", "comment": null}, "shipping_address_name": {"type": "text", "index": 49, "name": "shipping_address_name", "comment": null}, "shipping_address_phone": {"type": "character varying", "index": 50, "name": "shipping_address_phone", "comment": null}, "shipping_address_province": {"type": "text", "index": 51, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "text", "index": 52, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "integer", "index": 53, "name": "shipping_address_zip", "comment": null}, "source_name": {"type": "text", "index": 54, "name": "source_name", "comment": null}, "staff_member_id": {"type": "integer", "index": 55, "name": "staff_member_id", "comment": null}, "status_page_url": {"type": "text", "index": 56, "name": "status_page_url", "comment": null}, "subtotal_price_set_pres_amount": {"type": "double precision", "index": 57, "name": "subtotal_price_set_pres_amount", "comment": null}, "subtotal_price_set_pres_currency_code": {"type": "text", "index": 58, "name": "subtotal_price_set_pres_currency_code", "comment": null}, "subtotal_price_set_shop_amount": {"type": "double precision", "index": 59, "name": "subtotal_price_set_shop_amount", "comment": null}, "subtotal_price_set_shop_currency_code": {"type": "text", "index": 60, "name": "subtotal_price_set_shop_currency_code", "comment": null}, "taxes_included": {"type": "boolean", "index": 61, "name": "taxes_included", "comment": null}, "test": {"type": "boolean", "index": 62, "name": "test", "comment": null}, "total_discounts_set_pres_amount": {"type": "double precision", "index": 63, "name": "total_discounts_set_pres_amount", "comment": null}, "total_discounts_set_pres_currency_code": {"type": "text", "index": 64, "name": "total_discounts_set_pres_currency_code", "comment": null}, "total_discounts_set_shop_amount": {"type": "double precision", "index": 65, "name": "total_discounts_set_shop_amount", "comment": null}, "total_discounts_set_shop_currency_code": {"type": "text", "index": 66, "name": "total_discounts_set_shop_currency_code", "comment": null}, "total_price_set_pres_amount": {"type": "double precision", "index": 67, "name": "total_price_set_pres_amount", "comment": null}, "total_price_set_pres_currency_code": {"type": "text", "index": 68, "name": "total_price_set_pres_currency_code", "comment": null}, "total_price_set_shop_amount": {"type": "double precision", "index": 69, "name": "total_price_set_shop_amount", "comment": null}, "total_price_set_shop_currency_code": {"type": "text", "index": 70, "name": "total_price_set_shop_currency_code", "comment": null}, "total_shipping_price_set_pres_amount": {"type": "double precision", "index": 71, "name": "total_shipping_price_set_pres_amount", "comment": null}, "total_shipping_price_set_pres_currency_code": {"type": "text", "index": 72, "name": "total_shipping_price_set_pres_currency_code", "comment": null}, "total_shipping_price_set_shop_amount": {"type": "double precision", "index": 73, "name": "total_shipping_price_set_shop_amount", "comment": null}, "total_shipping_price_set_shop_currency_code": {"type": "text", "index": 74, "name": "total_shipping_price_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 75, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 76, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 77, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 78, "name": "total_tax_set_shop_currency_code", "comment": null}, "total_tip_received_set_pres_amount": {"type": "double precision", "index": 79, "name": "total_tip_received_set_pres_amount", "comment": null}, "total_tip_received_set_pres_currency_code": {"type": "text", "index": 80, "name": "total_tip_received_set_pres_currency_code", "comment": null}, "total_tip_received_set_shop_amount": {"type": "double precision", "index": 81, "name": "total_tip_received_set_shop_amount", "comment": null}, "total_tip_received_set_shop_currency_code": {"type": "text", "index": 82, "name": "total_tip_received_set_shop_currency_code", "comment": null}, "total_weight": {"type": "integer", "index": 83, "name": "total_weight", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 84, "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.shopify_source.shopify_graphql.order"}, "source.shopify_source.shopify_graphql.order_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "code": {"type": "text", "index": 2, "name": "code", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 4, "name": "order_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.shopify_source.shopify_graphql.order_discount_code"}, "source.shopify_source.shopify_graphql.order_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "is_gift_card": {"type": "boolean", "index": 3, "name": "is_gift_card", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "original_total_set_pres_amount": {"type": "double precision", "index": 6, "name": "original_total_set_pres_amount", "comment": null}, "original_total_set_pres_currency_code": {"type": "text", "index": 7, "name": "original_total_set_pres_currency_code", "comment": null}, "original_total_set_shop_amount": {"type": "double precision", "index": 8, "name": "original_total_set_shop_amount", "comment": null}, "original_total_set_shop_currency_code": {"type": "text", "index": 9, "name": "original_total_set_shop_currency_code", "comment": null}, "product_id": {"type": "integer", "index": 10, "name": "product_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "taxable": {"type": "boolean", "index": 14, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 15, "name": "title", "comment": null}, "total_discount_set_pres_amount": {"type": "double precision", "index": 16, "name": "total_discount_set_pres_amount", "comment": null}, "total_discount_set_pres_currency_code": {"type": "text", "index": 17, "name": "total_discount_set_pres_currency_code", "comment": null}, "total_discount_set_shop_amount": {"type": "double precision", "index": 18, "name": "total_discount_set_shop_amount", "comment": null}, "total_discount_set_shop_currency_code": {"type": "text", "index": 19, "name": "total_discount_set_shop_currency_code", "comment": null}, "unfulfilled_quantity": {"type": "integer", "index": 20, "name": "unfulfilled_quantity", "comment": null}, "variant_id": {"type": "integer", "index": 21, "name": "variant_id", "comment": null}, "variant_title": {"type": "text", "index": 22, "name": "variant_title", "comment": null}, "vendor": {"type": "text", "index": 23, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_line"}, "source.shopify_source.shopify_graphql.order_line_refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "location_id": {"type": "integer", "index": 3, "name": "location_id", "comment": null}, "order_line_id": {"type": "integer", "index": 4, "name": "order_line_id", "comment": null}, "quantity": {"type": "double precision", "index": 5, "name": "quantity", "comment": null}, "refund_id": {"type": "integer", "index": 6, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 7, "name": "restock_type", "comment": null}, "subtotal_set_pres_amount": {"type": "double precision", "index": 8, "name": "subtotal_set_pres_amount", "comment": null}, "subtotal_set_pres_currency_code": {"type": "text", "index": 9, "name": "subtotal_set_pres_currency_code", "comment": null}, "subtotal_set_shop_amount": {"type": "double precision", "index": 10, "name": "subtotal_set_shop_amount", "comment": null}, "subtotal_set_shop_currency_code": {"type": "text", "index": 11, "name": "subtotal_set_shop_currency_code", "comment": null}, "total_tax_set_pres_amount": {"type": "double precision", "index": 12, "name": "total_tax_set_pres_amount", "comment": null}, "total_tax_set_pres_currency_code": {"type": "text", "index": 13, "name": "total_tax_set_pres_currency_code", "comment": null}, "total_tax_set_shop_amount": {"type": "double precision", "index": 14, "name": "total_tax_set_shop_amount", "comment": null}, "total_tax_set_shop_currency_code": {"type": "text", "index": 15, "name": "total_tax_set_shop_currency_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.shopify_source.shopify_graphql.order_line_refund"}, "source.shopify_source.shopify_graphql.order_note_attribute": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_note_attribute"}, "source.shopify_source.shopify_graphql.order_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "text", "index": 2, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 3, "name": "code", "comment": null}, "current_discounted_price_set_pres_amount": {"type": "double precision", "index": 4, "name": "current_discounted_price_set_pres_amount", "comment": null}, "current_discounted_price_set_pres_currency_code": {"type": "text", "index": 5, "name": "current_discounted_price_set_pres_currency_code", "comment": null}, "current_discounted_price_set_shop_amount": {"type": "double precision", "index": 6, "name": "current_discounted_price_set_shop_amount", "comment": null}, "current_discounted_price_set_shop_currency_code": {"type": "text", "index": 7, "name": "current_discounted_price_set_shop_currency_code", "comment": null}, "custom": {"type": "boolean", "index": 8, "name": "custom", "comment": null}, "delivery_category": {"type": "text", "index": 9, "name": "delivery_category", "comment": null}, "discounted_price_set_pres_amount": {"type": "double precision", "index": 10, "name": "discounted_price_set_pres_amount", "comment": null}, "discounted_price_set_pres_currency_code": {"type": "text", "index": 11, "name": "discounted_price_set_pres_currency_code", "comment": null}, "discounted_price_set_shop_amount": {"type": "double precision", "index": 12, "name": "discounted_price_set_shop_amount", "comment": null}, "discounted_price_set_shop_currency_code": {"type": "text", "index": 13, "name": "discounted_price_set_shop_currency_code", "comment": null}, "id": {"type": "integer", "index": 14, "name": "id", "comment": null}, "is_removed": {"type": "boolean", "index": 15, "name": "is_removed", "comment": null}, "order_id": {"type": "integer", "index": 16, "name": "order_id", "comment": null}, "original_price_set_pres_amount": {"type": "double precision", "index": 17, "name": "original_price_set_pres_amount", "comment": null}, "original_price_set_pres_currency_code": {"type": "text", "index": 18, "name": "original_price_set_pres_currency_code", "comment": null}, "original_price_set_shop_amount": {"type": "double precision", "index": 19, "name": "original_price_set_shop_amount", "comment": null}, "original_price_set_shop_currency_code": {"type": "text", "index": 20, "name": "original_price_set_shop_currency_code", "comment": null}, "phone": {"type": "character varying", "index": 21, "name": "phone", "comment": null}, "shipping_rate_handle": {"type": "text", "index": 22, "name": "shipping_rate_handle", "comment": null}, "source": {"type": "text", "index": 23, "name": "source", "comment": null}, "title": {"type": "text", "index": 24, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_shipping_line"}, "source.shopify_source.shopify_graphql.order_shipping_tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 3, "name": "order_shipping_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "source": {"type": "text", "index": 9, "name": "source", "comment": null}, "title": {"type": "text", "index": 10, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_shipping_tax_line"}, "source.shopify_source.shopify_graphql.order_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 3, "name": "order_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.order_tag"}, "source.shopify_source.shopify_graphql.product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "handle": {"type": "text", "index": 4, "name": "handle", "comment": null}, "id": {"type": "integer", "index": 5, "name": "id", "comment": null}, "product_type": {"type": "text", "index": 6, "name": "product_type", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 7, "name": "published_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "vendor": {"type": "text", "index": 11, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.product"}, "source.shopify_source.shopify_graphql.product_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_id", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_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.shopify_source.shopify_graphql.product_media"}, "source.shopify_source.shopify_graphql.product_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 3, "name": "product_id", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.product_tag"}, "source.shopify_source.shopify_graphql.product_variant": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "available_for_sale": {"type": "boolean", "index": 2, "name": "available_for_sale", "comment": null}, "barcode": {"type": "text", "index": 3, "name": "barcode", "comment": null}, "compare_at_price": {"type": "character varying", "index": 4, "name": "compare_at_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 6, "name": "display_name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "inventory_item_id": {"type": "integer", "index": 8, "name": "inventory_item_id", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "integer", "index": 11, "name": "legacy_resource_id", "comment": null}, "position": {"type": "integer", "index": 12, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 13, "name": "price", "comment": null}, "product_id": {"type": "integer", "index": 14, "name": "product_id", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "text", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 21, "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.shopify_source.shopify_graphql.product_variant"}, "source.shopify_source.shopify_graphql.product_variant_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "integer", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "integer", "index": 2, "name": "media_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.shopify_source.shopify_graphql.product_variant_media"}, "source.shopify_source.shopify_graphql.refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "id": {"type": "integer", "index": 3, "name": "id", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "return_id": {"type": "integer", "index": 6, "name": "return_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 7, "name": "staff_member_id", "comment": null}, "total_refunded_set_pres_amount": {"type": "double precision", "index": 8, "name": "total_refunded_set_pres_amount", "comment": null}, "total_refunded_set_pres_currency_code": {"type": "text", "index": 9, "name": "total_refunded_set_pres_currency_code", "comment": null}, "total_refunded_set_shop_amount": {"type": "double precision", "index": 10, "name": "total_refunded_set_shop_amount", "comment": null}, "total_refunded_set_shop_currency_code": {"type": "text", "index": 11, "name": "total_refunded_set_shop_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 12, "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.shopify_source.shopify_graphql.refund"}, "source.shopify_source.shopify_graphql.shop": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "billing_address_address_1": {"type": "text", "index": 3, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 4, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 5, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 6, "name": "billing_address_country", "comment": null}, "billing_address_country_code_v_2": {"type": "text", "index": 7, "name": "billing_address_country_code_v_2", "comment": null}, "billing_address_latitude": {"type": "double precision", "index": 8, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "double precision", "index": 9, "name": "billing_address_longitude", "comment": null}, "billing_address_phone": {"type": "character varying", "index": 10, "name": "billing_address_phone", "comment": null}, "billing_address_province": {"type": "text", "index": 11, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "text", "index": 12, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "integer", "index": 13, "name": "billing_address_zip", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 14, "name": "checkout_api_supported", "comment": null}, "contact_email": {"type": "text", "index": 15, "name": "contact_email", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 17, "name": "currency_code", "comment": null}, "currency_formats_money_format": {"type": "text", "index": 18, "name": "currency_formats_money_format", "comment": null}, "currency_formats_money_in_emails_format": {"type": "text", "index": 19, "name": "currency_formats_money_in_emails_format", "comment": null}, "currency_formats_money_with_currency_format": {"type": "text", "index": 20, "name": "currency_formats_money_with_currency_format", "comment": null}, "currency_formats_money_with_currency_in_emails_format": {"type": "text", "index": 21, "name": "currency_formats_money_with_currency_in_emails_format", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 23, "name": "enabled_presentment_currencies", "comment": null}, "features_storefront": {"type": "boolean", "index": 24, "name": "features_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 25, "name": "iana_timezone", "comment": null}, "id": {"type": "integer", "index": 26, "name": "id", "comment": null}, "myshopify_domain": {"type": "text", "index": 27, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 28, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 29, "name": "password_enabled", "comment": null}, "plan_display_name": {"type": "text", "index": 30, "name": "plan_display_name", "comment": null}, "primary_domain_host": {"type": "text", "index": 31, "name": "primary_domain_host", "comment": null}, "primary_domain_localization_default_locale": {"type": "text", "index": 32, "name": "primary_domain_localization_default_locale", "comment": null}, "setup_required": {"type": "boolean", "index": 33, "name": "setup_required", "comment": null}, "shop_owner_name": {"type": "text", "index": 34, "name": "shop_owner_name", "comment": null}, "tax_shipping": {"type": "boolean", "index": 35, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 36, "name": "taxes_included", "comment": null}, "timezone_abbreviation": {"type": "text", "index": 37, "name": "timezone_abbreviation", "comment": null}, "timezone_offset": {"type": "integer", "index": 38, "name": "timezone_offset", "comment": null}, "timezone_offset_minutes": {"type": "integer", "index": 39, "name": "timezone_offset_minutes", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 40, "name": "updated_at", "comment": null}, "weight_unit": {"type": "text", "index": 41, "name": "weight_unit", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.shop"}, "source.shopify_source.shopify_graphql.tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 3, "name": "order_line_id", "comment": null}, "price_set_pres_amount": {"type": "double precision", "index": 4, "name": "price_set_pres_amount", "comment": null}, "price_set_pres_currency_code": {"type": "text", "index": 5, "name": "price_set_pres_currency_code", "comment": null}, "price_set_shop_amount": {"type": "double precision", "index": 6, "name": "price_set_shop_amount", "comment": null}, "price_set_shop_currency_code": {"type": "text", "index": 7, "name": "price_set_shop_currency_code", "comment": null}, "rate": {"type": "double precision", "index": 8, "name": "rate", "comment": null}, "title": {"type": "text", "index": 9, "name": "title", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.tax_line"}, "source.shopify_source.shopify_graphql.tender_transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "id": {"type": "integer", "index": 4, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_method": {"type": "text", "index": 6, "name": "payment_method", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 7, "name": "processed_at", "comment": null}, "remote_reference": {"type": "text", "index": 8, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 9, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 10, "name": "user_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.shopify_source.shopify_graphql.tender_transaction"}, "source.shopify_source.shopify_graphql.transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_gql_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "amount_set_pres_amount": {"type": "double precision", "index": 2, "name": "amount_set_pres_amount", "comment": null}, "amount_set_pres_currency_code": {"type": "text", "index": 3, "name": "amount_set_pres_currency_code", "comment": null}, "amount_set_shop_amount": {"type": "double precision", "index": 4, "name": "amount_set_shop_amount", "comment": null}, "amount_set_shop_currency_code": {"type": "text", "index": 5, "name": "amount_set_shop_currency_code", "comment": null}, "authorization_code": {"type": "text", "index": 6, "name": "authorization_code", "comment": null}, "authorization_expires_at": {"type": "timestamp without time zone", "index": 7, "name": "authorization_expires_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "error_code": {"type": "text", "index": 9, "name": "error_code", "comment": null}, "gateway": {"type": "text", "index": 10, "name": "gateway", "comment": null}, "id": {"type": "integer", "index": 11, "name": "id", "comment": null}, "kind": {"type": "text", "index": 12, "name": "kind", "comment": null}, "order_id": {"type": "integer", "index": 13, "name": "order_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 16, "name": "payment_credit_card_bin", "comment": null}, "payment_credit_card_company": {"type": "text", "index": 17, "name": "payment_credit_card_company", "comment": null}, "payment_credit_card_number": {"type": "text", "index": 18, "name": "payment_credit_card_number", "comment": null}, "payment_cvv_result_code": {"type": "text", "index": 19, "name": "payment_cvv_result_code", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 20, "name": "processed_at", "comment": null}, "refund_id": {"type": "integer", "index": 21, "name": "refund_id", "comment": null}, "staff_member_id": {"type": "integer", "index": 22, "name": "staff_member_id", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "device_id": {"type": "text", "index": 25, "name": "device_id", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 26, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 27, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 28, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 29, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 30, "name": "currency_exchange_currency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify_graphql.transaction"}, "source.shopify_source.shopify.inventory_item": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_item_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "country_code_of_origin": {"type": "integer", "index": 2, "name": "country_code_of_origin", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "duplicate_sku_count": {"type": "integer", "index": 4, "name": "duplicate_sku_count", "comment": null}, "harmonized_system_code": {"type": "integer", "index": 5, "name": "harmonized_system_code", "comment": null}, "inventory_history_url": {"type": "text", "index": 6, "name": "inventory_history_url", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 7, "name": "legacy_resource_id", "comment": null}, "measurement_id": {"type": "bigint", "index": 8, "name": "measurement_id", "comment": null}, "measurement_weight_value": {"type": "integer", "index": 9, "name": "measurement_weight_value", "comment": null}, "measurement_weight_unit": {"type": "text", "index": 10, "name": "measurement_weight_unit", "comment": null}, "province_code_of_origin": {"type": "integer", "index": 11, "name": "province_code_of_origin", "comment": null}, "requires_shipping": {"type": "boolean", "index": 12, "name": "requires_shipping", "comment": null}, "sku": {"type": "text", "index": 13, "name": "sku", "comment": null}, "tracked": {"type": "boolean", "index": 14, "name": "tracked", "comment": null}, "tracked_editable_locked": {"type": "integer", "index": 15, "name": "tracked_editable_locked", "comment": null}, "tracked_editable_reason": {"type": "integer", "index": 16, "name": "tracked_editable_reason", "comment": null}, "unit_cost_amount": {"type": "integer", "index": 17, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "integer", "index": 18, "name": "unit_cost_currency_code", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_item"}, "source.shopify_source.shopify.inventory_level": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_level_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "location_id": {"type": "bigint", "index": 3, "name": "location_id", "comment": null}, "can_deactivate": {"type": "boolean", "index": 4, "name": "can_deactivate", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deactivation_alert": {"type": "text", "index": 6, "name": "deactivation_alert", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_level"}, "source.shopify_source.shopify.inventory_quantity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_inventory_quantity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 2, "name": "inventory_item_id", "comment": null}, "inventory_level_id": {"type": "bigint", "index": 3, "name": "inventory_level_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.inventory_quantity"}, "source.shopify_source.shopify.location": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_location_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "integer", "index": 5, "name": "address_2", "comment": null}, "city": {"type": "text", "index": 6, "name": "city", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "created_at": {"type": "text", "index": 8, "name": "created_at", "comment": null}, "legacy": {"type": "boolean", "index": 9, "name": "legacy", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "phone": {"type": "integer", "index": 11, "name": "phone", "comment": null}, "province": {"type": "text", "index": 12, "name": "province", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}, "zip": {"type": "integer", "index": 14, "name": "zip", "comment": null}, "country_code": {"type": "text", "index": 15, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 16, "name": "country_name", "comment": null}, "localized_country_name": {"type": "text", "index": 17, "name": "localized_country_name", "comment": null}, "localized_province_name": {"type": "text", "index": 18, "name": "localized_province_name", "comment": null}, "province_code": {"type": "text", "index": 19, "name": "province_code", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 20, "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.shopify_source.shopify.location"}, "source.shopify_source.shopify.media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "status": {"type": "character varying", "index": 2, "name": "status", "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}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media"}, "source.shopify_source.shopify.media_image": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_media_image_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"media_id": {"type": "bigint", "index": 1, "name": "media_id", "comment": null}, "image_id": {"type": "bigint", "index": 2, "name": "image_id", "comment": null}, "image_alt_text": {"type": "character varying", "index": 3, "name": "image_alt_text", "comment": null}, "image_height": {"type": "integer", "index": 4, "name": "image_height", "comment": null}, "image_url": {"type": "character varying", "index": 5, "name": "image_url", "comment": null}, "image_width": {"type": "integer", "index": 6, "name": "image_width", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.media_image"}, "source.shopify_source.shopify.metafield": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_metafield_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 4, "name": "description", "comment": null}, "key": {"type": "text", "index": 5, "name": "key", "comment": null}, "namespace": {"type": "text", "index": 6, "name": "namespace", "comment": null}, "owner_id": {"type": "bigint", "index": 7, "name": "owner_id", "comment": null}, "owner_resource": {"type": "text", "index": 8, "name": "owner_resource", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 9, "name": "updated_at", "comment": null}, "value": {"type": "text", "index": 10, "name": "value", "comment": null}, "value_type": {"type": "character varying", "index": 11, "name": "value_type", "comment": null}, "type": {"type": "character varying", "index": 12, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.metafield"}, "source.shopify_source.shopify.order_adjustment": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_adjustment_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 5, "name": "tax_amount", "comment": null}, "kind": {"type": "text", "index": 6, "name": "kind", "comment": null}, "reason": {"type": "text", "index": 7, "name": "reason", "comment": null}, "amount_set": {"type": "integer", "index": 8, "name": "amount_set", "comment": null}, "tax_amount_set": {"type": "integer", "index": 9, "name": "tax_amount_set", "comment": null}, "_fivetran_synced": {"type": "text", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_adjustment"}, "source.shopify_source.shopify.order": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "note": {"type": "text", "index": 2, "name": "note", "comment": null}, "email": {"type": "text", "index": 3, "name": "email", "comment": null}, "taxes_included": {"type": "boolean", "index": 4, "name": "taxes_included", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "subtotal_price": {"type": "double precision", "index": 6, "name": "subtotal_price", "comment": null}, "total_tax": {"type": "double precision", "index": 7, "name": "total_tax", "comment": null}, "total_price": {"type": "double precision", "index": 8, "name": "total_price", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "shipping_address_name": {"type": "text", "index": 12, "name": "shipping_address_name", "comment": null}, "shipping_address_first_name": {"type": "text", "index": 13, "name": "shipping_address_first_name", "comment": null}, "shipping_address_last_name": {"type": "text", "index": 14, "name": "shipping_address_last_name", "comment": null}, "shipping_address_company": {"type": "text", "index": 15, "name": "shipping_address_company", "comment": null}, "shipping_address_phone": {"type": "text", "index": 16, "name": "shipping_address_phone", "comment": null}, "shipping_address_address_1": {"type": "text", "index": 17, "name": "shipping_address_address_1", "comment": null}, "shipping_address_address_2": {"type": "text", "index": 18, "name": "shipping_address_address_2", "comment": null}, "shipping_address_city": {"type": "text", "index": 19, "name": "shipping_address_city", "comment": null}, "shipping_address_country": {"type": "text", "index": 20, "name": "shipping_address_country", "comment": null}, "shipping_address_country_code": {"type": "text", "index": 21, "name": "shipping_address_country_code", "comment": null}, "shipping_address_province": {"type": "text", "index": 22, "name": "shipping_address_province", "comment": null}, "shipping_address_province_code": {"type": "integer", "index": 23, "name": "shipping_address_province_code", "comment": null}, "shipping_address_zip": {"type": "text", "index": 24, "name": "shipping_address_zip", "comment": null}, "shipping_address_latitude": {"type": "text", "index": 25, "name": "shipping_address_latitude", "comment": null}, "shipping_address_longitude": {"type": "text", "index": 26, "name": "shipping_address_longitude", "comment": null}, "billing_address_name": {"type": "text", "index": 27, "name": "billing_address_name", "comment": null}, "billing_address_first_name": {"type": "text", "index": 28, "name": "billing_address_first_name", "comment": null}, "billing_address_last_name": {"type": "text", "index": 29, "name": "billing_address_last_name", "comment": null}, "billing_address_company": {"type": "text", "index": 30, "name": "billing_address_company", "comment": null}, "billing_address_phone": {"type": "text", "index": 31, "name": "billing_address_phone", "comment": null}, "billing_address_address_1": {"type": "text", "index": 32, "name": "billing_address_address_1", "comment": null}, "billing_address_address_2": {"type": "text", "index": 33, "name": "billing_address_address_2", "comment": null}, "billing_address_city": {"type": "text", "index": 34, "name": "billing_address_city", "comment": null}, "billing_address_country": {"type": "text", "index": 35, "name": "billing_address_country", "comment": null}, "billing_address_country_code": {"type": "text", "index": 36, "name": "billing_address_country_code", "comment": null}, "billing_address_province": {"type": "text", "index": 37, "name": "billing_address_province", "comment": null}, "billing_address_province_code": {"type": "integer", "index": 38, "name": "billing_address_province_code", "comment": null}, "billing_address_zip": {"type": "text", "index": 39, "name": "billing_address_zip", "comment": null}, "billing_address_latitude": {"type": "text", "index": 40, "name": "billing_address_latitude", "comment": null}, "billing_address_longitude": {"type": "text", "index": 41, "name": "billing_address_longitude", "comment": null}, "customer_id": {"type": "bigint", "index": 42, "name": "customer_id", "comment": null}, "location_id": {"type": "bigint", "index": 43, "name": "location_id", "comment": null}, "user_id": {"type": "bigint", "index": 44, "name": "user_id", "comment": null}, "number": {"type": "integer", "index": 45, "name": "number", "comment": null}, "order_number": {"type": "integer", "index": 46, "name": "order_number", "comment": null}, "financial_status": {"type": "text", "index": 47, "name": "financial_status", "comment": null}, "fulfillment_status": {"type": "text", "index": 48, "name": "fulfillment_status", "comment": null}, "processed_at": {"type": "timestamp without time zone", "index": 49, "name": "processed_at", "comment": null}, "processing_method": {"type": "text", "index": 50, "name": "processing_method", "comment": null}, "referring_site": {"type": "text", "index": 51, "name": "referring_site", "comment": null}, "cancel_reason": {"type": "integer", "index": 52, "name": "cancel_reason", "comment": null}, "cancelled_at": {"type": "timestamp without time zone", "index": 53, "name": "cancelled_at", "comment": null}, "closed_at": {"type": "text", "index": 54, "name": "closed_at", "comment": null}, "total_discounts": {"type": "double precision", "index": 55, "name": "total_discounts", "comment": null}, "total_line_items_price": {"type": "double precision", "index": 56, "name": "total_line_items_price", "comment": null}, "total_weight": {"type": "integer", "index": 57, "name": "total_weight", "comment": null}, "source_name": {"type": "text", "index": 58, "name": "source_name", "comment": null}, "browser_ip": {"type": "text", "index": 59, "name": "browser_ip", "comment": null}, "buyer_accepts_marketing": {"type": "boolean", "index": 60, "name": "buyer_accepts_marketing", "comment": null}, "token": {"type": "text", "index": 61, "name": "token", "comment": null}, "cart_token": {"type": "text", "index": 62, "name": "cart_token", "comment": null}, "checkout_token": {"type": "text", "index": 63, "name": "checkout_token", "comment": null}, "test": {"type": "boolean", "index": 64, "name": "test", "comment": null}, "landing_site_base_url": {"type": "text", "index": 65, "name": "landing_site_base_url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 66, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order"}, "source.shopify_source.shopify.order_discount_code": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_discount_code_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_discount_code"}, "source.shopify_source.shopify.order_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"order_id": {"type": "bigint", "index": 1, "name": "order_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "product_id": {"type": "bigint", "index": 3, "name": "product_id", "comment": null}, "variant_id": {"type": "bigint", "index": 4, "name": "variant_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "vendor": {"type": "text", "index": 7, "name": "vendor", "comment": null}, "price": {"type": "double precision", "index": 8, "name": "price", "comment": null}, "quantity": {"type": "integer", "index": 9, "name": "quantity", "comment": null}, "grams": {"type": "integer", "index": 10, "name": "grams", "comment": null}, "sku": {"type": "text", "index": 11, "name": "sku", "comment": null}, "fulfillable_quantity": {"type": "integer", "index": 12, "name": "fulfillable_quantity", "comment": null}, "fulfillment_service": {"type": "text", "index": 13, "name": "fulfillment_service", "comment": null}, "gift_card": {"type": "boolean", "index": 14, "name": "gift_card", "comment": null}, "requires_shipping": {"type": "boolean", "index": 15, "name": "requires_shipping", "comment": null}, "taxable": {"type": "boolean", "index": 16, "name": "taxable", "comment": null}, "index": {"type": "integer", "index": 17, "name": "index", "comment": null}, "total_discount": {"type": "integer", "index": 18, "name": "total_discount", "comment": null}, "pre_tax_price": {"type": "integer", "index": 19, "name": "pre_tax_price", "comment": null}, "fulfillment_status": {"type": "text", "index": 20, "name": "fulfillment_status", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 21, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line"}, "source.shopify_source.shopify.order_line_refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_line_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "location_id": {"type": "bigint", "index": 2, "name": "location_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "restock_type": {"type": "text", "index": 4, "name": "restock_type", "comment": null}, "quantity": {"type": "integer", "index": 5, "name": "quantity", "comment": null}, "order_line_id": {"type": "bigint", "index": 6, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "subtotal": {"type": "integer", "index": 8, "name": "subtotal", "comment": null}, "total_tax_set": {"type": "integer", "index": 9, "name": "total_tax_set", "comment": null}, "subtotal_set": {"type": "integer", "index": 10, "name": "subtotal_set", "comment": null}, "total_tax": {"type": "double precision", "index": 11, "name": "total_tax", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_line_refund"}, "source.shopify_source.shopify.order_note_attribute": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_note_attribute_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"name": {"type": "text", "index": 1, "name": "name", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_note_attribute"}, "source.shopify_source.shopify.order_shipping_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "carrier_identifier": {"type": "integer", "index": 4, "name": "carrier_identifier", "comment": null}, "code": {"type": "text", "index": 5, "name": "code", "comment": null}, "delivery_category": {"type": "integer", "index": 6, "name": "delivery_category", "comment": null}, "discounted_price": {"type": "double precision", "index": 7, "name": "discounted_price", "comment": null}, "phone": {"type": "integer", "index": 8, "name": "phone", "comment": null}, "price": {"type": "double precision", "index": 9, "name": "price", "comment": null}, "requested_fulfillment_service_id": {"type": "integer", "index": 10, "name": "requested_fulfillment_service_id", "comment": null}, "source": {"type": "text", "index": 11, "name": "source", "comment": null}, "title": {"type": "text", "index": 12, "name": "title", "comment": null}, "discounted_price_set": {"type": "text", "index": 13, "name": "discounted_price_set", "comment": null}, "price_set": {"type": "text", "index": 14, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_line"}, "source.shopify_source.shopify.order_shipping_tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_shipping_line_id": {"type": "integer", "index": 2, "name": "order_shipping_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_shipping_tax_line"}, "source.shopify_source.shopify.order_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_tag"}, "source.shopify_source.shopify.order_url_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_order_url_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"key": {"type": "text", "index": 1, "name": "key", "comment": null}, "order_id": {"type": "integer", "index": 2, "name": "order_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.order_url_tag"}, "source.shopify_source.shopify.product": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title": {"type": "text", "index": 2, "name": "title", "comment": null}, "handle": {"type": "text", "index": 3, "name": "handle", "comment": null}, "product_type": {"type": "text", "index": 4, "name": "product_type", "comment": null}, "vendor": {"type": "text", "index": 5, "name": "vendor", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "published_at": {"type": "timestamp without time zone", "index": 8, "name": "published_at", "comment": null}, "published_scope": {"type": "text", "index": 9, "name": "published_scope", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 11, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product"}, "source.shopify_source.shopify.product_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_media"}, "source.shopify_source.shopify.product_tag": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_tag_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "product_id": {"type": "integer", "index": 2, "name": "product_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_tag"}, "source.shopify_source.shopify.product_variant": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_id": {"type": "bigint", "index": 1, "name": "product_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "inventory_item_id": {"type": "bigint", "index": 3, "name": "inventory_item_id", "comment": null}, "available_for_sale": {"type": "boolean", "index": 4, "name": "available_for_sale", "comment": null}, "barcode": {"type": "integer", "index": 5, "name": "barcode", "comment": null}, "compare_at_price": {"type": "integer", "index": 6, "name": "compare_at_price", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "display_name": {"type": "text", "index": 8, "name": "display_name", "comment": null}, "inventory_policy": {"type": "text", "index": 9, "name": "inventory_policy", "comment": null}, "inventory_quantity": {"type": "integer", "index": 10, "name": "inventory_quantity", "comment": null}, "legacy_resource_id": {"type": "bigint", "index": 11, "name": "legacy_resource_id", "comment": null}, "metafield": {"type": "integer", "index": 12, "name": "metafield", "comment": null}, "position": {"type": "integer", "index": 13, "name": "position", "comment": null}, "price": {"type": "double precision", "index": 14, "name": "price", "comment": null}, "requires_components": {"type": "boolean", "index": 15, "name": "requires_components", "comment": null}, "sellable_online_quantity": {"type": "integer", "index": 16, "name": "sellable_online_quantity", "comment": null}, "sku": {"type": "text", "index": 17, "name": "sku", "comment": null}, "tax_code": {"type": "integer", "index": 18, "name": "tax_code", "comment": null}, "taxable": {"type": "boolean", "index": 19, "name": "taxable", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "updated_at": {"type": "text", "index": 21, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "text", "index": 22, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.product_variant"}, "source.shopify_source.shopify.product_variant_media": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_product_variant_media_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"product_variant_id": {"type": "bigint", "index": 1, "name": "product_variant_id", "comment": null}, "media_id": {"type": "bigint", "index": 2, "name": "media_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.shopify_source.shopify.product_variant_media"}, "source.shopify_source.shopify.refund": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_refund_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_at": {"type": "text", "index": 2, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 3, "name": "processed_at", "comment": null}, "note": {"type": "text", "index": 4, "name": "note", "comment": null}, "restock": {"type": "boolean", "index": 5, "name": "restock", "comment": null}, "user_id": {"type": "bigint", "index": 6, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "total_duties_set": {"type": "integer", "index": 8, "name": "total_duties_set", "comment": null}, "order_id": {"type": "bigint", "index": 9, "name": "order_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.shopify_source.shopify.refund"}, "source.shopify_source.shopify.shop": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_shop_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "auto_configure_tax_inclusivity": {"type": "integer", "index": 6, "name": "auto_configure_tax_inclusivity", "comment": null}, "checkout_api_supported": {"type": "boolean", "index": 7, "name": "checkout_api_supported", "comment": null}, "city": {"type": "text", "index": 8, "name": "city", "comment": null}, "cookie_consent_level": {"type": "text", "index": 9, "name": "cookie_consent_level", "comment": null}, "country": {"type": "text", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "text", "index": 11, "name": "country_code", "comment": null}, "country_name": {"type": "text", "index": 12, "name": "country_name", "comment": null}, "county_taxes": {"type": "boolean", "index": 13, "name": "county_taxes", "comment": null}, "created_at": {"type": "text", "index": 14, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 15, "name": "currency", "comment": null}, "customer_email": {"type": "text", "index": 16, "name": "customer_email", "comment": null}, "domain": {"type": "text", "index": 17, "name": "domain", "comment": null}, "eligible_for_card_reader_giveaway": {"type": "boolean", "index": 18, "name": "eligible_for_card_reader_giveaway", "comment": null}, "eligible_for_payments": {"type": "boolean", "index": 19, "name": "eligible_for_payments", "comment": null}, "email": {"type": "text", "index": 20, "name": "email", "comment": null}, "enabled_presentment_currencies": {"type": "text", "index": 21, "name": "enabled_presentment_currencies", "comment": null}, "force_ssl": {"type": "boolean", "index": 22, "name": "force_ssl", "comment": null}, "google_apps_domain": {"type": "integer", "index": 23, "name": "google_apps_domain", "comment": null}, "google_apps_login_enabled": {"type": "boolean", "index": 24, "name": "google_apps_login_enabled", "comment": null}, "has_discounts": {"type": "boolean", "index": 25, "name": "has_discounts", "comment": null}, "has_gift_cards": {"type": "boolean", "index": 26, "name": "has_gift_cards", "comment": null}, "has_storefront": {"type": "boolean", "index": 27, "name": "has_storefront", "comment": null}, "iana_timezone": {"type": "text", "index": 28, "name": "iana_timezone", "comment": null}, "latitude": {"type": "double precision", "index": 29, "name": "latitude", "comment": null}, "longitude": {"type": "double precision", "index": 30, "name": "longitude", "comment": null}, "money_format": {"type": "text", "index": 31, "name": "money_format", "comment": null}, "money_in_emails_format": {"type": "text", "index": 32, "name": "money_in_emails_format", "comment": null}, "money_with_currency_format": {"type": "text", "index": 33, "name": "money_with_currency_format", "comment": null}, "money_with_currency_in_emails_format": {"type": "text", "index": 34, "name": "money_with_currency_in_emails_format", "comment": null}, "multi_location_enabled": {"type": "boolean", "index": 35, "name": "multi_location_enabled", "comment": null}, "myshopify_domain": {"type": "text", "index": 36, "name": "myshopify_domain", "comment": null}, "name": {"type": "text", "index": 37, "name": "name", "comment": null}, "password_enabled": {"type": "boolean", "index": 38, "name": "password_enabled", "comment": null}, "phone": {"type": "integer", "index": 39, "name": "phone", "comment": null}, "plan_display_name": {"type": "text", "index": 40, "name": "plan_display_name", "comment": null}, "plan_name": {"type": "text", "index": 41, "name": "plan_name", "comment": null}, "pre_launch_enabled": {"type": "boolean", "index": 42, "name": "pre_launch_enabled", "comment": null}, "primary_locale": {"type": "text", "index": 43, "name": "primary_locale", "comment": null}, "primary_location_id": {"type": "integer", "index": 44, "name": "primary_location_id", "comment": null}, "province": {"type": "text", "index": 45, "name": "province", "comment": null}, "province_code": {"type": "text", "index": 46, "name": "province_code", "comment": null}, "requires_extra_payments_agreement": {"type": "boolean", "index": 47, "name": "requires_extra_payments_agreement", "comment": null}, "setup_required": {"type": "boolean", "index": 48, "name": "setup_required", "comment": null}, "shop_owner": {"type": "text", "index": 49, "name": "shop_owner", "comment": null}, "source": {"type": "integer", "index": 50, "name": "source", "comment": null}, "tax_shipping": {"type": "integer", "index": 51, "name": "tax_shipping", "comment": null}, "taxes_included": {"type": "boolean", "index": 52, "name": "taxes_included", "comment": null}, "timezone": {"type": "text", "index": 53, "name": "timezone", "comment": null}, "updated_at": {"type": "text", "index": 54, "name": "updated_at", "comment": null}, "visitor_tracking_consent_preference": {"type": "text", "index": 55, "name": "visitor_tracking_consent_preference", "comment": null}, "weight_unit": {"type": "text", "index": 56, "name": "weight_unit", "comment": null}, "zip": {"type": "integer", "index": 57, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.shop"}, "source.shopify_source.shopify.tax_line": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tax_line_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "order_line_id": {"type": "integer", "index": 2, "name": "order_line_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "price": {"type": "double precision", "index": 4, "name": "price", "comment": null}, "rate": {"type": "double precision", "index": 5, "name": "rate", "comment": null}, "title": {"type": "text", "index": 6, "name": "title", "comment": null}, "price_set": {"type": "text", "index": 7, "name": "price_set", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.tax_line"}, "source.shopify_source.shopify.tender_transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_tender_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "order_id": {"type": "integer", "index": 5, "name": "order_id", "comment": null}, "payment_details_credit_card_company": {"type": "integer", "index": 6, "name": "payment_details_credit_card_company", "comment": null}, "payment_details_credit_card_number": {"type": "integer", "index": 7, "name": "payment_details_credit_card_number", "comment": null}, "payment_method": {"type": "text", "index": 8, "name": "payment_method", "comment": null}, "processed_at": {"type": "text", "index": 9, "name": "processed_at", "comment": null}, "remote_reference": {"type": "integer", "index": 10, "name": "remote_reference", "comment": null}, "test": {"type": "boolean", "index": 11, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 12, "name": "user_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.shopify_source.shopify.tender_transaction"}, "source.shopify_source.shopify.transaction": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "shopify_transaction_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "order_id": {"type": "bigint", "index": 2, "name": "order_id", "comment": null}, "refund_id": {"type": "bigint", "index": 3, "name": "refund_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "authorization": {"type": "text", "index": 5, "name": "authorization", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "processed_at": {"type": "text", "index": 7, "name": "processed_at", "comment": null}, "device_id": {"type": "integer", "index": 8, "name": "device_id", "comment": null}, "gateway": {"type": "text", "index": 9, "name": "gateway", "comment": null}, "source_name": {"type": "text", "index": 10, "name": "source_name", "comment": null}, "message": {"type": "text", "index": 11, "name": "message", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "location_id": {"type": "integer", "index": 13, "name": "location_id", "comment": null}, "parent_id": {"type": "integer", "index": 14, "name": "parent_id", "comment": null}, "payment_avs_result_code": {"type": "text", "index": 15, "name": "payment_avs_result_code", "comment": null}, "kind": {"type": "text", "index": 16, "name": "kind", "comment": null}, "currency_exchange_id": {"type": "integer", "index": 17, "name": "currency_exchange_id", "comment": null}, "currency_exchange_adjustment": {"type": "integer", "index": 18, "name": "currency_exchange_adjustment", "comment": null}, "currency_exchange_original_amount": {"type": "integer", "index": 19, "name": "currency_exchange_original_amount", "comment": null}, "currency_exchange_final_amount": {"type": "integer", "index": 20, "name": "currency_exchange_final_amount", "comment": null}, "currency_exchange_currency": {"type": "integer", "index": 21, "name": "currency_exchange_currency", "comment": null}, "error_code": {"type": "integer", "index": 22, "name": "error_code", "comment": null}, "status": {"type": "text", "index": 23, "name": "status", "comment": null}, "test": {"type": "boolean", "index": 24, "name": "test", "comment": null}, "user_id": {"type": "integer", "index": 25, "name": "user_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 26, "name": "_fivetran_synced", "comment": null}, "payment_credit_card_bin": {"type": "integer", "index": 27, "name": "payment_credit_card_bin", "comment": null}, "payment_cvv_result_code": {"type": "integer", "index": 28, "name": "payment_cvv_result_code", "comment": null}, "payment_credit_card_number": {"type": "integer", "index": 29, "name": "payment_credit_card_number", "comment": null}, "payment_credit_card_company": {"type": "integer", "index": 30, "name": "payment_credit_card_company", "comment": null}, "receipt": {"type": "text", "index": 31, "name": "receipt", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.shopify_source.shopify.transaction"}}, "errors": null} \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index c97e481b..d1dc0f5f 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v12.json", "dbt_version": "1.10.9", "generated_at": "2025-08-19T03:43:12.680467Z", "invocation_id": "8bb839a5-9565-4b5d-bb6f-d1ea30b2cf9b", "invocation_started_at": "2025-08-19T03:42:42.289494+00:00", "env": {}, "project_name": "shopify_integration_tests", "project_id": "c39719ba3d679fd569bed21921e72e32", "user_id": null, "send_anonymous_usage_stats": false, "adapter_type": "postgres", "quoting": {"database": true, "schema": true, "identifier": true, "column": null}}, "nodes": {"seed.shopify_integration_tests.shopify_inventory_item_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_item_data.csv", "original_file_path": "seeds/shopify_inventory_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data", "fqn": ["shopify_integration_tests", "shopify_inventory_item_data"], "alias": "shopify_inventory_item_data", "checksum": {"name": "sha256", "checksum": "07e090d559afd6d31a98e4baca9934b8534b2c855de25177937c792688a17114"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "measurement_id": "bigint", "legacy_resource_id": "bigint", "updated_at": "timestamp", "created_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "measurement_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "updated_at": "timestamp", "created_at": "timestamp"}}, "created_at": 1755574965.7114694, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_quantity_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_quantity_data.csv", "original_file_path": "seeds/shopify_inventory_quantity_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data", "fqn": ["shopify_integration_tests", "shopify_inventory_quantity_data"], "alias": "shopify_inventory_quantity_data", "checksum": {"name": "sha256", "checksum": "8fa9f26df5501b6f7a065d74a2da5bf70329b7197e8c11139cda950874243d1c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "inventory_level_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_level_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1755574965.7188816, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_visit_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_visit_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_visit_data.csv", "original_file_path": "seeds/shopify_gql_customer_visit_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_visit_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_visit_data"], "alias": "shopify_gql_customer_visit_data", "checksum": {"name": "sha256", "checksum": "33bcb50366b3a771c4a408cf198e0ba0ed4308af90d0d9066fcf5b8a0cb74ce6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.72207, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_redeem_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_redeem_code_data.csv", "original_file_path": "seeds/shopify_discount_redeem_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_redeem_code_data", "fqn": ["shopify_integration_tests", "shopify_discount_redeem_code_data"], "alias": "shopify_discount_redeem_code_data", "checksum": {"name": "sha256", "checksum": "801a010544f98b358371e38d9af1023f4e91747d6f4e488c5a65358794bc3ab5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "discount_id": "bigint", "created_by_id": "bigint", "async_usage_count": "integer", "code": "varchar", "discount_type": "varchar", "created_by_description": "varchar", "created_by_title": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "created_by_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "async_usage_count": "integer", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1755574965.7255256, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_shipping_tax_line_data.csv", "original_file_path": "seeds/shopify_gql_order_shipping_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_shipping_tax_line_data"], "alias": "shopify_gql_order_shipping_tax_line_data", "checksum": {"name": "sha256", "checksum": "4c0d33725e1979f861188e46f54626db2fa5d1dc12a23b6dec4d67b2617e8493"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.7287009, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_free_shipping_data.csv", "original_file_path": "seeds/shopify_discount_code_free_shipping_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_free_shipping_data"], "alias": "shopify_discount_code_free_shipping_data", "checksum": {"name": "sha256", "checksum": "55e37730e02503078ff03a624def743c4413c5feda1bdcdd38cc7d0dbe47e2bd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1755574965.7320535, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_media_image_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_media_image_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_media_image_data.csv", "original_file_path": "seeds/shopify_gql_media_image_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_media_image_data", "fqn": ["shopify_integration_tests", "shopify_gql_media_image_data"], "alias": "shopify_gql_media_image_data", "checksum": {"name": "sha256", "checksum": "6581609f609de50cc0b430e64d53a728502cdaea962a90bffd1e5f72079cfc47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.7353306, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_image_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_transaction_data.csv", "original_file_path": "seeds/shopify_gql_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_transaction_data", "fqn": ["shopify_integration_tests", "shopify_gql_transaction_data"], "alias": "shopify_gql_transaction_data", "checksum": {"name": "sha256", "checksum": "6daf1a707db559a969488734847d9996d22fc0c1eb96d91c6ae621e6fa0c9a53"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.7385168, "relation_name": "\"postgres\".\"public\".\"shopify_gql_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_application_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_application_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_application_data.csv", "original_file_path": "seeds/shopify_discount_application_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data", "fqn": ["shopify_integration_tests", "shopify_discount_application_data"], "alias": "shopify_discount_application_data", "checksum": {"name": "sha256", "checksum": "9d678050ac7442f36d8aa9a5b0b013aeea7ab64a785a564a31aa41fa6a6ee70a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"allocation_method": "varchar", "code": "varchar", "description": "varchar", "index": "integer", "order_id": "bigint", "target_selection": "varchar", "target_type": "varchar", "title": "varchar", "type": "varchar", "value": "float", "value_type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"allocation_method": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "index": "integer", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "target_selection": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "target_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "value": "float", "value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1755574965.7417717, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_media_data.csv", "original_file_path": "seeds/shopify_product_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_media_data", "fqn": ["shopify_integration_tests", "shopify_product_media_data"], "alias": "shopify_product_media_data", "checksum": {"name": "sha256", "checksum": "b38d774b588961b4cd6e5b8cdb9c0319dd694bcdd474a54a68e062b3cf488d44"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1755574965.745066, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_tag_data.csv", "original_file_path": "seeds/shopify_order_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_tag_data"], "alias": "shopify_order_tag_data", "checksum": {"name": "sha256", "checksum": "c448adfe655f83dcaf6370ad2ef36f0ad6991c1b6d001e3aab317fd17359b129"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.7482178, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_transaction_data.csv", "original_file_path": "seeds/shopify_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_transaction_data", "fqn": ["shopify_integration_tests", "shopify_transaction_data"], "alias": "shopify_transaction_data", "checksum": {"name": "sha256", "checksum": "def7b7fc64e42148b900dcd1f7327b470e5d3b0ed8e73f263e46a715ecb09199"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1755574965.7513673, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_shop_data": {"database": "postgres", "schema": "public", "name": "shopify_shop_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_shop_data.csv", "original_file_path": "seeds/shopify_shop_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_shop_data", "fqn": ["shopify_integration_tests", "shopify_shop_data"], "alias": "shopify_shop_data", "checksum": {"name": "sha256", "checksum": "1029ea325d95c96dbdf0c52a9fd8ef272516b15f99f834a507bff27eda689bba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}}, "created_at": 1755574965.754726, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_tag_data.csv", "original_file_path": "seeds/shopify_customer_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data", "fqn": ["shopify_integration_tests", "shopify_customer_tag_data"], "alias": "shopify_customer_tag_data", "checksum": {"name": "sha256", "checksum": "27dad4d9a29bfd94903c156e01cdee4c0b33cfb2c5d88af98b89c19287596e5c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1755574965.757917, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_shipping_line_data.csv", "original_file_path": "seeds/shopify_gql_order_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_shipping_line_data"], "alias": "shopify_gql_order_shipping_line_data", "checksum": {"name": "sha256", "checksum": "5e77fbe4d6a87d50fcee326d856b97033aa850a6bc3edab4b70064c89498c01b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1755574965.761179, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_event_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_event_data.csv", "original_file_path": "seeds/shopify_fulfillment_event_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_event_data"], "alias": "shopify_fulfillment_event_data", "checksum": {"name": "sha256", "checksum": "ae538cd22df11081f1f4d2b6970c945d432f92af0e96fac2e10e1e09d886abef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.7644885, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_data": {"database": "postgres", "schema": "public", "name": "shopify_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_data.csv", "original_file_path": "seeds/shopify_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_data", "fqn": ["shopify_integration_tests", "shopify_media_data"], "alias": "shopify_media_data", "checksum": {"name": "sha256", "checksum": "7c6234841dd8ff01ec7cd72fb11d8f933c4b12efbf8470324f0671f6afb6e266"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "status": "varchar", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1755574965.7677507, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_tag_data.csv", "original_file_path": "seeds/shopify_gql_product_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_tag_data"], "alias": "shopify_gql_product_tag_data", "checksum": {"name": "sha256", "checksum": "8c043c435f2de4a4004471419a272adaf066c1e9e36fa2e9de62a6562d4d2e26"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.770868, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_item_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_item_data.csv", "original_file_path": "seeds/shopify_gql_inventory_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_item_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_item_data"], "alias": "shopify_gql_inventory_item_data", "checksum": {"name": "sha256", "checksum": "cb50caac3e13ddc3c4011ecbd1929f2c6876a6010e0e055ce0d32891a2caa6f0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.773922, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_location_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_location_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_location_data.csv", "original_file_path": "seeds/shopify_gql_location_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_location_data", "fqn": ["shopify_integration_tests", "shopify_gql_location_data"], "alias": "shopify_gql_location_data", "checksum": {"name": "sha256", "checksum": "0e3fcbfcccb24bff1a397108c5284f013e54846463ce693db515c9e843d65c82"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1755574965.777051, "relation_name": "\"postgres\".\"public\".\"shopify_gql_location_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_metafield_data": {"database": "postgres", "schema": "public", "name": "shopify_metafield_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_metafield_data.csv", "original_file_path": "seeds/shopify_metafield_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_metafield_data", "fqn": ["shopify_integration_tests", "shopify_metafield_data"], "alias": "shopify_metafield_data", "checksum": {"name": "sha256", "checksum": "f9586af820e5f4c1d04e71e5a8fc699080ecb101b85735abe9724a8ea9bf0d97"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"value_type": "varchar", "type": "varchar", "id": "bigint", "owner_id": "bigint", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "owner_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1755574965.78028, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_data.csv", "original_file_path": "seeds/shopify_gql_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_data"], "alias": "shopify_gql_product_data", "checksum": {"name": "sha256", "checksum": "5c3d5008de7c87b129567ced494177bc809a49587033e462e8e099dfe3c02662"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.784114, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_address_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_address_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_address_data.csv", "original_file_path": "seeds/shopify_gql_customer_address_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_address_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_address_data"], "alias": "shopify_gql_customer_address_data", "checksum": {"name": "sha256", "checksum": "55643b705646db36fbaeb65e2786f9981acc20dbcd95996c0ee31afacef123b6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1755574965.7872434, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_data.csv", "original_file_path": "seeds/shopify_gql_customer_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_data"], "alias": "shopify_gql_customer_data", "checksum": {"name": "sha256", "checksum": "ccd33f05c9942cd47dc7bf8abef925334aa740a60181b9ce13657323fe63267d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1755574965.7903945, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_data.csv", "original_file_path": "seeds/shopify_fulfillment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_data"], "alias": "shopify_fulfillment_data", "checksum": {"name": "sha256", "checksum": "36993dd7ab6cd0951d3229c9d72237f4115292350e2659bdb717866f8fe8ebd8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.7935398, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_line_data.csv", "original_file_path": "seeds/shopify_gql_order_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_line_data"], "alias": "shopify_gql_order_line_data", "checksum": {"name": "sha256", "checksum": "c4ef70509cf12a7e963b4427bd4ecaf67fa4597191c62bd6da8844e0c448a3ef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.7967196, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_abandoned_checkout_data.csv", "original_file_path": "seeds/shopify_gql_abandoned_checkout_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data", "fqn": ["shopify_integration_tests", "shopify_gql_abandoned_checkout_data"], "alias": "shopify_gql_abandoned_checkout_data", "checksum": {"name": "sha256", "checksum": "f3999e4554d821e95b65fc49d14ab501151f3026c8936871197cabfbac47e25a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar", "shipping_address_phone": "varchar", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_discount_set_shop_amount": "float", "total_discount_set_pres_amount": "float", "total_duties_set_shop_amount": "float", "total_duties_set_pres_amount": "float", "total_line_items_price_set_shop_amount": "float", "total_line_items_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_tax_set_pres_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_discount_set_shop_amount": "float", "total_discount_set_pres_amount": "float", "total_duties_set_shop_amount": "float", "total_duties_set_pres_amount": "float", "total_line_items_price_set_shop_amount": "float", "total_line_items_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_tax_set_pres_amount": "float"}}, "created_at": 1755574965.8000052, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_discount_code_data.csv", "original_file_path": "seeds/shopify_gql_order_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_discount_code_data"], "alias": "shopify_gql_order_discount_code_data", "checksum": {"name": "sha256", "checksum": "aafb732b582b0f19c9f004febfb986cf33a2d090c53d87dc5d9875584d1c9643"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8032267, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_order_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_discount_code_data.csv", "original_file_path": "seeds/shopify_order_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_order_discount_code_data"], "alias": "shopify_order_discount_code_data", "checksum": {"name": "sha256", "checksum": "f4e391a3f00ebb1f7444487e4577dc95e28c39745e40f6c0fcb1bd90562833f6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"order_id": "bigint", "amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float"}}, "created_at": 1755574965.8063376, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"database": "postgres", "schema": "public", "name": "shopify_order_note_attribute_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_note_attribute_data.csv", "original_file_path": "seeds/shopify_order_note_attribute_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data", "fqn": ["shopify_integration_tests", "shopify_order_note_attribute_data"], "alias": "shopify_order_note_attribute_data", "checksum": {"name": "sha256", "checksum": "9076f469c15ad5e18c4365039836b6739c2d7fc79ed987564ab8c1849994309c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8094556, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_metafield_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_metafield_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_metafield_data.csv", "original_file_path": "seeds/shopify_gql_metafield_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_metafield_data", "fqn": ["shopify_integration_tests", "shopify_gql_metafield_data"], "alias": "shopify_gql_metafield_data", "checksum": {"name": "sha256", "checksum": "b698e66e6a1d23c772fe5d1c36943dd9e5be8609f08b7f0990b1c20417e3f4d1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8125603, "relation_name": "\"postgres\".\"public\".\"shopify_gql_metafield_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_data.csv", "original_file_path": "seeds/shopify_order_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_data", "fqn": ["shopify_integration_tests", "shopify_order_line_data"], "alias": "shopify_order_line_data", "checksum": {"name": "sha256", "checksum": "a4e65b3c0ee73ff8755aec89198632427baa2dbcc39d2e97659a8a976a92b8cd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "order_id": "bigint", "id": "bigint", "product_id": "bigint", "variant_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1755574965.8157635, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_refund_data.csv", "original_file_path": "seeds/shopify_gql_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_refund_data", "fqn": ["shopify_integration_tests", "shopify_gql_refund_data"], "alias": "shopify_gql_refund_data", "checksum": {"name": "sha256", "checksum": "f8767945248aa31df8667d9a302c98da70ecfa3200f09ae9a8a08e56f648b1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8188846, "relation_name": "\"postgres\".\"public\".\"shopify_gql_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_variant_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_variant_media_data.csv", "original_file_path": "seeds/shopify_gql_product_variant_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_variant_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_variant_media_data"], "alias": "shopify_gql_product_variant_media_data", "checksum": {"name": "sha256", "checksum": "ce88d8703b4da3dd7db2c16a322622fd970488948aef2981dd3499ba3d63fa3c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8219805, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_note_attribute_data.csv", "original_file_path": "seeds/shopify_gql_order_note_attribute_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_note_attribute_data"], "alias": "shopify_gql_order_note_attribute_data", "checksum": {"name": "sha256", "checksum": "fdc162afb1aaf6ccc432a5df8eb1d42ebe945151101a43edf6176d98c3cd4ec6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8251407, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_allocation_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_allocation_data.csv", "original_file_path": "seeds/shopify_discount_allocation_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_allocation_data", "fqn": ["shopify_integration_tests", "shopify_discount_allocation_data"], "alias": "shopify_discount_allocation_data", "checksum": {"name": "sha256", "checksum": "22cd7acd65491fcbbd2d2de60dc69b993fa1ac45d90b41dee7976905d6418fcf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "varchar", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "varchar", "discount_application_index": "integer", "index": "integer", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_application_index": "integer", "index": "integer", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1755574965.8283262, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_discount_code_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_discount_code_data"], "alias": "shopify_abandoned_checkout_discount_code_data", "checksum": {"name": "sha256", "checksum": "f60365d56b94e348893476184122a98c6a4b939de1c7de1f7f3684e2ba344e48"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"checkout_id": "bigint", "discount_id": "bigint", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "varchar", "type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"checkout_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1755574965.8316567, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_media_data.csv", "original_file_path": "seeds/shopify_product_variant_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_media_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_media_data"], "alias": "shopify_product_variant_media_data", "checksum": {"name": "sha256", "checksum": "7994b7016d58d7ada3e0fbc5bd97b3564faf8d3bf0e94d76da0703f96a75c772"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_variant_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1755574965.8348873, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_product": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_product", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_product.csv", "original_file_path": "seeds/shopify_gql_collection_product.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_product", "fqn": ["shopify_integration_tests", "shopify_gql_collection_product"], "alias": "shopify_gql_collection_product", "checksum": {"name": "sha256", "checksum": "97528489feaf3fe056bfad2e1d5704c7a27d9fd0e90253b3fd64eceecfe31a7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.838002, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_rule_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_rule_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_rule_data.csv", "original_file_path": "seeds/shopify_gql_collection_rule_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_rule_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_rule_data"], "alias": "shopify_gql_collection_rule_data", "checksum": {"name": "sha256", "checksum": "fc43b048e1c1c4e2dc67460f2d7ad884ccc7a3f02ba7d749a766459199c1a6aa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.841155, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_rule_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_url_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_url_tag_data.csv", "original_file_path": "seeds/shopify_order_url_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_url_tag_data"], "alias": "shopify_order_url_tag_data", "checksum": {"name": "sha256", "checksum": "18d23ae4cb9bb569772db2a5622ab7f84281f3391b6c9295973a8fed3d887567"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.844237, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_app_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_app_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_app_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_app_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_app_data"], "alias": "shopify_gql_discount_code_app_data", "checksum": {"name": "sha256", "checksum": "b6ea6c09ffbae0eedd94577b2ec3a6074bff0d33b6338d895111b7f9521ce049"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.847253, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_quantity_data.csv", "original_file_path": "seeds/shopify_gql_inventory_quantity_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_quantity_data"], "alias": "shopify_gql_inventory_quantity_data", "checksum": {"name": "sha256", "checksum": "aa5cdc0d5565496916a0f61055b029546d99b6aab2a2433c11f936abeeafcb1b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8503618, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_shop_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_shop_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_shop_data.csv", "original_file_path": "seeds/shopify_gql_shop_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_shop_data", "fqn": ["shopify_integration_tests", "shopify_gql_shop_data"], "alias": "shopify_gql_shop_data", "checksum": {"name": "sha256", "checksum": "e691117d38fb0c6a9ad757f7adc677a8a3454f881d6c9f7d3fd625611addb1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1755574965.8535335, "relation_name": "\"postgres\".\"public\".\"shopify_gql_shop_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"database": "postgres", "schema": "public", "name": "shopify_order_adjustment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_adjustment_data.csv", "original_file_path": "seeds/shopify_order_adjustment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data", "fqn": ["shopify_integration_tests", "shopify_order_adjustment_data"], "alias": "shopify_order_adjustment_data", "checksum": {"name": "sha256", "checksum": "48ce96540f19450088c661fd48bd8f6d58bb4ca13a1f048880e9984be367172e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1755574965.8567488, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_adjustment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_adjustment_data.csv", "original_file_path": "seeds/shopify_gql_order_adjustment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_adjustment_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_adjustment_data"], "alias": "shopify_gql_order_adjustment_data", "checksum": {"name": "sha256", "checksum": "5477a81fe785b813c63156e1f04d73748f431cd6f247ad0f5ac75785a9cc1325"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8598833, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_order_line_item_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_order_line_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_order_line_item_data"], "alias": "shopify_gql_fulfillment_order_line_item_data", "checksum": {"name": "sha256", "checksum": "038512c381c821457b427a8a6d19049e6eb9302f5acfaaebdf56896f31aa0c01"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8629446, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tax_line_data.csv", "original_file_path": "seeds/shopify_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_tax_line_data"], "alias": "shopify_tax_line_data", "checksum": {"name": "sha256", "checksum": "af3615f675a22513590ef6a8abcce714b286f06c7532e650a56787c6afbd36de"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float", "rate": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float", "rate": "float"}}, "created_at": 1755574965.8660827, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_data.csv", "original_file_path": "seeds/shopify_gql_collection_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_data"], "alias": "shopify_gql_collection_data", "checksum": {"name": "sha256", "checksum": "29e0276fbf7a043b812e101d81438672484cca31a69ba9c4ce2df96dc215a3b2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8692992, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_product_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_product_data.csv", "original_file_path": "seeds/shopify_gql_collection_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_product_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_product_data"], "alias": "shopify_gql_collection_product_data", "checksum": {"name": "sha256", "checksum": "97528489feaf3fe056bfad2e1d5704c7a27d9fd0e90253b3fd64eceecfe31a7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8723612, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_shipping_line_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_shipping_line_data"], "alias": "shopify_abandoned_checkout_shipping_line_data", "checksum": {"name": "sha256", "checksum": "9b1e873b952f85626352f2ca85b67b7a14e54e7edd01467951653fc2716023d5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"markup": "varchar", "price": "float", "original_shop_markup": "varchar", "original_shop_price": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "price": "float", "original_shop_markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "original_shop_price": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1755574965.8754823, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_data": {"database": "postgres", "schema": "public", "name": "shopify_order_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_data.csv", "original_file_path": "seeds/shopify_order_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_data", "fqn": ["shopify_integration_tests", "shopify_order_data"], "alias": "shopify_order_data", "checksum": {"name": "sha256", "checksum": "274aec2c5b1f7cd936359683f33c830d2ef7067e6e445469df0c3b460ad9d56c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "bigint", "customer_id": "bigint", "location_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1755574965.878819, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_allocation_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_allocation_data.csv", "original_file_path": "seeds/shopify_gql_discount_allocation_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_allocation_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_allocation_data"], "alias": "shopify_gql_discount_allocation_data", "checksum": {"name": "sha256", "checksum": "66070d7edfd03f95cce45261aff8868c52ac272d23457e8b00d31f89bee13bb2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8821514, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_refund_data.csv", "original_file_path": "seeds/shopify_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_refund_data", "fqn": ["shopify_integration_tests", "shopify_refund_data"], "alias": "shopify_refund_data", "checksum": {"name": "sha256", "checksum": "8d8bc98681d9b0d57a43af3fc99ff13cc42401d97e49bba41c1fafb28f858d23"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1755574965.8852694, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_tag_data.csv", "original_file_path": "seeds/shopify_gql_customer_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_tag_data"], "alias": "shopify_gql_customer_tag_data", "checksum": {"name": "sha256", "checksum": "b9990af8b8157368df2e7cd54ad712620ce79cfb8bcddbce8ceac25314d1f98f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8883681, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_data"], "alias": "shopify_gql_fulfillment_data", "checksum": {"name": "sha256", "checksum": "707d77c094f00fb4c21d1968550d66a131bbfbec48addd7d7137936b00aca500"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8913767, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_location_data": {"database": "postgres", "schema": "public", "name": "shopify_location_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_location_data.csv", "original_file_path": "seeds/shopify_location_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_location_data", "fqn": ["shopify_integration_tests", "shopify_location_data"], "alias": "shopify_location_data", "checksum": {"name": "sha256", "checksum": "781bb070fbf96fd7e01d4229ccbac91f77bcd52726ffea2de9fa36abe6804b38"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8945224, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_bxgy_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_bxgy_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_bxgy_data"], "alias": "shopify_gql_discount_code_bxgy_data", "checksum": {"name": "sha256", "checksum": "93dd6da3ac1575fe61eed846dd3e2db2d75f16237571cfd4a4647f33ec612a28"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.8976753, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_data.csv", "original_file_path": "seeds/shopify_gql_order_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_data"], "alias": "shopify_gql_order_data", "checksum": {"name": "sha256", "checksum": "5f2c9bc0a1d81234edf8945c72a99425ebe0450aad71cf418ca24b12c0ab3fd3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar", "shipping_address_phone": "varchar", "total_shipping_price_set_pres_amount": "float", "total_shipping_price_set_shop_amount": "float", "total_tax_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_discounts_set_pres_amount": "float", "total_discounts_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_tip_received_set_pres_amount": "float", "total_tip_received_set_shop_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_shipping_price_set_pres_amount": "float", "total_shipping_price_set_shop_amount": "float", "total_tax_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_discounts_set_pres_amount": "float", "total_discounts_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_tip_received_set_pres_amount": "float", "total_tip_received_set_shop_amount": "float"}}, "created_at": 1755574965.9009407, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_product_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_product_data.csv", "original_file_path": "seeds/shopify_collection_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data", "fqn": ["shopify_integration_tests", "shopify_collection_product_data"], "alias": "shopify_collection_product_data", "checksum": {"name": "sha256", "checksum": "f0829ff9b0c3116846c83d4cb2dfae170594e230d3586b8abae97a31d4a51c55"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.904173, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_product_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_tag_data.csv", "original_file_path": "seeds/shopify_product_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data", "fqn": ["shopify_integration_tests", "shopify_product_tag_data"], "alias": "shopify_product_tag_data", "checksum": {"name": "sha256", "checksum": "10203c8ee30c2d400a7f5126732f6c17985017df02cd4eceff90ef483e1c0729"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.9072316, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_tracking_info_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_tracking_info_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_tracking_info_data"], "alias": "shopify_gql_fulfillment_tracking_info_data", "checksum": {"name": "sha256", "checksum": "0ce5041eae13306e77b2f03c364a8e5767be39e68e711fbb1b76709e51191b12"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.9103706, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_event_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_event_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_event_data"], "alias": "shopify_gql_fulfillment_event_data", "checksum": {"name": "sha256", "checksum": "c8df472434961ad12566344da5a47483bd18c4b9cb7b5eafd44f96f284aaebea"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.913428, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_abandoned_checkout_discount_code_data.csv", "original_file_path": "seeds/shopify_gql_abandoned_checkout_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_abandoned_checkout_discount_code_data"], "alias": "shopify_gql_abandoned_checkout_discount_code_data", "checksum": {"name": "sha256", "checksum": "90c5089352dfe1ea90e277813ae7824053992fa838896d4d55130c1ca0e51b82"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.9164755, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_tender_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_tender_transaction_data.csv", "original_file_path": "seeds/shopify_gql_tender_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_tender_transaction_data", "fqn": ["shopify_integration_tests", "shopify_gql_tender_transaction_data"], "alias": "shopify_gql_tender_transaction_data", "checksum": {"name": "sha256", "checksum": "6e660fced8b377b4a7c7a3ea5c4cb1e8dff259e0b3596bfff56868873a7348dc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.919522, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_application_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_application_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_application_data.csv", "original_file_path": "seeds/shopify_gql_discount_application_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_application_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_application_data"], "alias": "shopify_gql_discount_application_data", "checksum": {"name": "sha256", "checksum": "02bf15863aaf29b404a84ab214ff73121e4ee411f2e6fecf3f757e179b6c9c2e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.9225397, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_basic_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_basic_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_basic_data"], "alias": "shopify_gql_discount_code_basic_data", "checksum": {"name": "sha256", "checksum": "d42fbb32c0fcf3c168a45013a7a5c9b9e9c8871e7b2079d5973741f88543c079"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"total_sales_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"total_sales_amount": "float"}}, "created_at": 1755574965.925723, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_basic_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_basic_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_basic_data.csv", "original_file_path": "seeds/shopify_discount_code_basic_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_basic_data"], "alias": "shopify_discount_code_basic_data", "checksum": {"name": "sha256", "checksum": "dc25a6ca420db34e1ce13e0749f1e65e949cef3a260c736e1eb6e53b7db15ace"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1755574965.9291139, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_redeem_code_data.csv", "original_file_path": "seeds/shopify_gql_discount_redeem_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_redeem_code_data"], "alias": "shopify_gql_discount_redeem_code_data", "checksum": {"name": "sha256", "checksum": "0b1fd8ebdc11adc10b729eb22fe80d4e8f69d29dbc42114ea54d5977fdb6d638"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.9323573, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_free_shipping_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_free_shipping_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_free_shipping_data"], "alias": "shopify_gql_discount_code_free_shipping_data", "checksum": {"name": "sha256", "checksum": "0d9313224e67ae163a3b90d05629775d330a68deef8c6826316ffa88d75254a2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.9354753, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_data.csv", "original_file_path": "seeds/shopify_product_variant_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_data"], "alias": "shopify_product_variant_data", "checksum": {"name": "sha256", "checksum": "82853fb5c0847393202bdfc6844cc43aad89d7d41f33a159a3c330c16cf864f9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "product_id": "bigint", "inventory_item_id": "bigint", "legacy_resource_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1755574965.9386866, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_app_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_app_data.csv", "original_file_path": "seeds/shopify_discount_code_app_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_app_data"], "alias": "shopify_discount_code_app_data", "checksum": {"name": "sha256", "checksum": "079a9204224ded648d6e15b794bf77034e41f319b72801fcfee0f5b1c9e37d77"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1755574965.9421403, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_image_data": {"database": "postgres", "schema": "public", "name": "shopify_media_image_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_image_data.csv", "original_file_path": "seeds/shopify_media_image_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_image_data", "fqn": ["shopify_integration_tests", "shopify_media_image_data"], "alias": "shopify_media_image_data", "checksum": {"name": "sha256", "checksum": "98621ab1fd6334df5ffa045d9642644d5e465d8684cd635dd5bf8c157f964966"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"media_id": "bigint", "image_id": "bigint", "image_alt_text": "varchar", "image_height": "integer", "image_url": "varchar", "image_width": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_alt_text": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_height": "integer", "image_url": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_width": "integer"}}, "created_at": 1755574965.9455402, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_tender_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tender_transaction_data.csv", "original_file_path": "seeds/shopify_tender_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tender_transaction_data", "fqn": ["shopify_integration_tests", "shopify_tender_transaction_data"], "alias": "shopify_tender_transaction_data", "checksum": {"name": "sha256", "checksum": "7d1b7ebc547f9068b258e49431a3955f9143b99afa151664aa26a2ad9c5b479c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.9487085, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_level_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_level_data.csv", "original_file_path": "seeds/shopify_inventory_level_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data", "fqn": ["shopify_integration_tests", "shopify_inventory_level_data"], "alias": "shopify_inventory_level_data", "checksum": {"name": "sha256", "checksum": "d62c717239fd0873246f29f5573684185b6ceb0caf3b85b68fd25d65a64e6cfb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "location_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1755574965.9518497, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_data"], "alias": "shopify_abandoned_checkout_data", "checksum": {"name": "sha256", "checksum": "1fc66dc1ee0e84111cc6c3de1b49c3e172d477eadda206ec80095dbae720a7b4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"total_line_items_price": "float", "billing_address_phone": "varchar", "shipping_address_phone": "varchar", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"total_line_items_price": "float", "billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1755574965.9552653, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_refund_data.csv", "original_file_path": "seeds/shopify_order_line_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data", "fqn": ["shopify_integration_tests", "shopify_order_line_refund_data"], "alias": "shopify_order_line_refund_data", "checksum": {"name": "sha256", "checksum": "5d28c17ac30b49f32cb92c5ade7643c3322d0a18e38094140cf06ace9fc85e72"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "id": "bigint", "location_id": "bigint", "refund_id": "bigint", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1755574965.9584742, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_media_data.csv", "original_file_path": "seeds/shopify_gql_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_media_data"], "alias": "shopify_gql_media_data", "checksum": {"name": "sha256", "checksum": "ffa3f564a810c9230c529066f5be55051045d32e14bfee4c04479ec3e5140a3c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.961621, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_variant_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_variant_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_variant_data.csv", "original_file_path": "seeds/shopify_gql_product_variant_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_variant_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_variant_data"], "alias": "shopify_gql_product_variant_data", "checksum": {"name": "sha256", "checksum": "9a783e511b142f376bb30e534f58457aa8bc43eca7bba64edc31ed0d2d2164fa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"compare_at_price": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"compare_at_price": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1755574965.9647222, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_data": {"database": "postgres", "schema": "public", "name": "shopify_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_data.csv", "original_file_path": "seeds/shopify_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_data", "fqn": ["shopify_integration_tests", "shopify_product_data"], "alias": "shopify_product_data", "checksum": {"name": "sha256", "checksum": "e3e37227f60cd1960dc29421bf94785a59c058e4b6a4cd01262376f34947e320"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1755574965.9679947, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_level_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_level_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_level_data.csv", "original_file_path": "seeds/shopify_gql_inventory_level_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_level_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_level_data"], "alias": "shopify_gql_inventory_level_data", "checksum": {"name": "sha256", "checksum": "a176c479102e74867e9ca4c77ed5806ad4ec824edecfbcb9672877a3581ffddc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.9711986, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_tax_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_tax_line_data"], "alias": "shopify_order_shipping_tax_line_data", "checksum": {"name": "sha256", "checksum": "279d995731cd3b85aa948f6721ada5f455324347f7ac3211a98bf2f3bb72f899"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float"}}, "created_at": 1755574965.974305, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_tag_data.csv", "original_file_path": "seeds/shopify_gql_order_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_tag_data"], "alias": "shopify_gql_order_tag_data", "checksum": {"name": "sha256", "checksum": "6fb78d3ccb69ab26e0ab8d781865dece254bfa951b1e1e57efe800e4c3c9aa9d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.9773798, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_tax_line_data.csv", "original_file_path": "seeds/shopify_gql_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_tax_line_data"], "alias": "shopify_gql_tax_line_data", "checksum": {"name": "sha256", "checksum": "08f6ab93144ae307e2e9f808278e5e6f13b1c76a609df067a7b3e18c52623bc2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.9803865, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_media_data.csv", "original_file_path": "seeds/shopify_gql_product_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_media_data"], "alias": "shopify_gql_product_media_data", "checksum": {"name": "sha256", "checksum": "9b99a3ca51b4ecd63cc1d2a8a83a5a96dbf52e878990055a8e3a03b89666272d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1755574965.9835, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_line_data"], "alias": "shopify_order_shipping_line_data", "checksum": {"name": "sha256", "checksum": "7a83a6e1121c088d6cd6ab3a944c683bfe4ac72ac440fcf97d55c3ca709b88a8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"discounted_price": "float", "price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"discounted_price": "float", "price": "float"}}, "created_at": 1755574965.9866157, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_line_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_line_refund_data.csv", "original_file_path": "seeds/shopify_gql_order_line_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_refund_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_line_refund_data"], "alias": "shopify_gql_order_line_refund_data", "checksum": {"name": "sha256", "checksum": "f42ec092931b7b6629fad2c44ca9d9cfa5b655980dd1140d69d8b687178b8d32"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"quantity": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"quantity": "float"}}, "created_at": 1755574965.9897656, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_data.csv", "original_file_path": "seeds/shopify_customer_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_data", "fqn": ["shopify_integration_tests", "shopify_customer_data"], "alias": "shopify_customer_data", "checksum": {"name": "sha256", "checksum": "72ba9c7141e483ec3a8715cb27d57c8e36f8ca293b0a507676391c8804c717f2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint", "default_address_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "default_address_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1755574965.9929957, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_bxgy_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_bxgy_data.csv", "original_file_path": "seeds/shopify_discount_code_bxgy_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_bxgy_data"], "alias": "shopify_discount_code_bxgy_data", "checksum": {"name": "sha256", "checksum": "676970b98658b2da21aec24691e589c9d1bd42703e266864d7af1d310f57fc53"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "varchar", "summary": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "summary": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}}, "created_at": 1755574965.996548, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_data.csv", "original_file_path": "seeds/shopify_collection_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_data", "fqn": ["shopify_integration_tests", "shopify_collection_data"], "alias": "shopify_collection_data", "checksum": {"name": "sha256", "checksum": "27cb0f0a37833f86bc7d0eb153acacdca987a69caf07dccdea4a072895f0a518"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1755574965.9998784, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__abandoned_checkout_discount_code"], "alias": "stg_shopify_gql__abandoned_checkout_discount_code", "checksum": {"name": "sha256", "checksum": "0c42da3c30c3c151bce61bb481405da53967b9b43818d4d74ce29d238f4a9b57"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Abandoned checkouts that applied a discount code.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `checkout_id`, `code`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the discount codes from abandoned checkouts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.948566, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__abandoned_checkout_discount_code_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_shopify_gql__abandoned_checkout_discount_code_tmp')),\n staging_columns=get_graphql_abandoned_checkout_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index,\n {{ dbt_utils.generate_surrogate_key(['checkout_id', 'code', 'source_relation']) }} as unique_key\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index,\n md5(cast(coalesce(cast(checkout_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(code as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment"], "alias": "stg_shopify_gql__fulfillment", "checksum": {"name": "sha256", "checksum": "545e435664dc989b50d51ec7cd18d7ad7e582c75fb916d7be3176e7c1ce5af7b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9758804, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_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_shopify_gql__fulfillment_tmp')),\n staging_columns=get_graphql_fulfillment_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service_id as service,\n lower(display_status) as shipment_status,\n lower(status) as status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n display_status\n \n as \n \n display_status\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n service_id\n \n as \n \n service_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n total_quantity\n \n as \n \n total_quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service_id as service,\n lower(display_status) as shipment_status,\n lower(status) as status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_variant.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_variant.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_variant"], "alias": "stg_shopify_gql__product_variant", "checksum": {"name": "sha256", "checksum": "c7030869bd75cbabff68beaf7e71249275594b03fc2b06429962e8c596ba07de"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product variant in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `variant_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_available_for_sale": {"name": "is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_components_required": {"name": "has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0333657, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_variant_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_shopify_gql__product_variant_tmp')),\n staging_columns=get_graphql_product_variant_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n taxable as is_taxable,\n barcode,\n inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n tax_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('product_variant_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_variant_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n available_for_sale\n \n as \n \n available_for_sale\n \n, \n \n \n barcode\n \n as \n \n barcode\n \n, \n \n \n compare_at_price\n \n as \n \n compare_at_price\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_policy\n \n as \n \n inventory_policy\n \n, \n \n \n inventory_quantity\n \n as \n \n inventory_quantity\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n position\n \n as \n \n position\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n requires_components\n \n as \n \n requires_components\n \n, \n \n \n sellable_online_quantity\n \n as \n \n sellable_online_quantity\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tax_code\n \n as \n \n tax_code\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 \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n taxable as is_taxable,\n barcode,\n inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n tax_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__media.sql", "original_file_path": "models/graphql/stg_shopify_gql__media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__media"], "alias": "stg_shopify_gql__media", "checksum": {"name": "sha256", "checksum": "653de7e7a0d32617a2b87aee243be40cd14af47689ece20af8771b3c27136913"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing media metadata, including status and timestamps.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `media_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0037756, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__media_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_shopify_gql__media_tmp')),\n staging_columns=get_graphql_media_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_event": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_event.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_event.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_event"], "alias": "stg_shopify_gql__fulfillment_event", "checksum": {"name": "sha256", "checksum": "e8a4a0010c4cfa96bfd6c5a789ddf6df815ada5e397d8ee06d7480eb9a6150ba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_event_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_event_id": {"name": "fulfillment_event_id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9808955, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_event_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_shopify_gql__fulfillment_event_tmp')),\n staging_columns=get_graphql_fulfillment_event_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n lower(status) as status,\n message,\n {{ shopify_source.fivetran_convert_timezone(column='cast(estimated_delivery_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as estimated_delivery_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(happened_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_event_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_event.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\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 created_at\n \n as \n \n created_at\n \n, \n \n \n estimated_delivery_at\n \n as \n \n estimated_delivery_at\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n happened_at\n \n as \n \n happened_at\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 longitude\n \n as \n \n longitude\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n lower(status) as status,\n message,\n cast(\n cast(cast(estimated_delivery_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as estimated_delivery_at,\n cast(\n cast(cast(happened_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_redeem_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_redeem_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_redeem_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_redeem_code"], "alias": "stg_shopify_gql__discount_redeem_code", "checksum": {"name": "sha256", "checksum": "d67dd71e571048d9820f777d5b66057c66c157c43e2937fd7cd59bbf13b5a300"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each redeem code is tied to a parent discount and may be created by an app or manually.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This is updated asynchronously and may differ from real-time usage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (typically an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount the redeem code is associated with (e.g., `discount_code_basic`, `discount_code_app`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9737, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_redeem_code_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_shopify_gql__discount_redeem_code_tmp')),\n staging_columns=get_graphql_discount_redeem_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_redeem_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_redeem_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_redeem_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_by_description\n \n as \n \n created_by_description\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_by_title\n \n as \n \n created_by_title\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n discount_type\n \n as \n \n discount_type\n \n, \n \n \n id\n \n as \n \n id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__location": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__location", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__location.sql", "original_file_path": "models/graphql/stg_shopify_gql__location.sql", "unique_id": "model.shopify_source.stg_shopify_gql__location", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__location"], "alias": "stg_shopify_gql__location", "checksum": {"name": "sha256", "checksum": "8b73ec5a42911c795216811ac8867c5c3d611587e19aa46f698ed21e0802e7df"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `location_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in, this matches the REST API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy": {"name": "is_legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0025249, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__location_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_shopify_gql__location_tmp')),\n staging_columns=get_graphql_location_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n is_active,\n address_1,\n address_2,\n city,\n country_code as country, -- match REST API format\n country_code,\n country as country_name,\n is_fulfillment_service as is_legacy,\n phone,\n province,\n province_code,\n zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__location_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_location_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__location_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__location.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__location_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\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_code\n \n as \n \n country_code\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_active\n \n as \n \n is_active\n \n, \n \n \n is_fulfillment_service\n \n as \n \n is_fulfillment_service\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n is_active,\n address_1,\n address_2,\n city,\n country_code as country, -- match REST API format\n country_code,\n country as country_name,\n is_fulfillment_service as is_legacy,\n phone,\n province,\n province_code,\n zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_order_line_item"], "alias": "stg_shopify_gql__fulfillment_order_line_item", "checksum": {"name": "sha256", "checksum": "cce1876da347fe32a6a944ed7db67af1c5897acfa7c3f164c6f02707ecd93e37"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Links a fulfillment order to specific items that require fulfillment. Contains detailed product information, quantity tracking, variant metadata, and shipping requirements. This is a core entity for determining which products and how many units are involved in a given fulfillment process.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_order_line_item_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_order_line_item_id": {"name": "fulfillment_order_line_item_id", "description": "A globally unique identifier for this fulfillment order line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_order_id": {"name": "fulfillment_order_id", "description": "The identifier of the fulfillment order that this line item is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "Alt text describing the image associated with the line item's variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "The height in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "The unique identifier for the variant image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The url of the variant image used in this fulfillment line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "The width in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The identifier of the inventory item being fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_item_id": {"name": "order_line_item_id", "description": "The identifier of the original order line item linked to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_title": {"name": "product_title", "description": "The title of the product at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The identifier of the product variant associated with this fulfillment item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remaining_quantity": {"name": "remaining_quantity", "description": "The number of units remaining to be fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Indicates whether physical shipping is required for this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The SKU of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "The total number of units allocated to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The vendor of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9874086, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_order_line_item', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_order_line_item_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_shopify_gql__fulfillment_order_line_item_tmp')),\n staging_columns=get_graphql_fulfillment_order_line_item_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_order_line_item_id,\n fulfillment_order_id,\n image_alt_text,\n image_height,\n image_id,\n image_url,\n image_width,\n inventory_item_id,\n order_line_item_id,\n product_title,\n product_variant_id,\n remaining_quantity,\n requires_shipping,\n sku,\n total_quantity,\n variant_title,\n vendor,\n weight_unit,\n weight_value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_order_line_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fulfillment_order_id\n \n as \n \n fulfillment_order_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n order_line_item_id\n \n as \n \n order_line_item_id\n \n, \n \n \n product_title\n \n as \n \n product_title\n \n, \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n remaining_quantity\n \n as \n \n remaining_quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n total_quantity\n \n as \n \n total_quantity\n \n, \n \n \n variant_title\n \n as \n \n variant_title\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n, \n \n \n weight_value\n \n as \n \n weight_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_order_line_item_id,\n fulfillment_order_id,\n image_alt_text,\n image_height,\n image_id,\n image_url,\n image_width,\n inventory_item_id,\n order_line_item_id,\n product_title,\n product_variant_id,\n remaining_quantity,\n requires_shipping,\n sku,\n total_quantity,\n variant_title,\n vendor,\n weight_unit,\n weight_value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__refund", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__refund.sql", "original_file_path": "models/graphql/stg_shopify_gql__refund.sql", "unique_id": "model.shopify_source.stg_shopify_gql__refund", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__refund"], "alias": "stg_shopify_gql__refund", "checksum": {"name": "sha256", "checksum": "dcdb84868e1656f35342c6bc14ef62d6604ad84a1dffd60a6b759b4e9446bb12"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a refund within Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `refund_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "return_id": {"name": "return_id", "description": "Reference to the return which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_pres_amount": {"name": "total_refunded_pres_amount", "description": "The total amount across all transactions for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_pres_currency_code": {"name": "total_refunded_pres_currency_code", "description": "The three letter currency code for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_shop_amount": {"name": "total_refunded_shop_amount", "description": "The total amount across all transactions for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_shop_currency_code": {"name": "total_refunded_shop_currency_code", "description": "The three letter currency code for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0380335, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__refund_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_shopify_gql__refund_tmp')),\n staging_columns=get_graphql_refund_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as refund_id,\n note,\n order_id,\n staff_member_id as user_id,\n return_id,\n total_refunded_set_pres_amount as total_refunded_pres_amount,\n total_refunded_set_pres_currency_code as total_refunded_pres_currency_code,\n total_refunded_set_shop_amount as total_refunded_shop_amount,\n total_refunded_set_shop_currency_code as total_refunded_shop_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__refund.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n return_id\n \n as \n \n return_id\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n total_refunded_set_pres_amount\n \n as \n \n total_refunded_set_pres_amount\n \n, \n \n \n total_refunded_set_pres_currency_code\n \n as \n \n total_refunded_set_pres_currency_code\n \n, \n \n \n total_refunded_set_shop_amount\n \n as \n \n total_refunded_set_shop_amount\n \n, \n \n \n total_refunded_set_shop_currency_code\n \n as \n \n total_refunded_set_shop_currency_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as refund_id,\n note,\n order_id,\n staff_member_id as user_id,\n return_id,\n total_refunded_set_pres_amount as total_refunded_pres_amount,\n total_refunded_set_pres_currency_code as total_refunded_pres_currency_code,\n total_refunded_set_shop_amount as total_refunded_shop_amount,\n total_refunded_set_shop_currency_code as total_refunded_shop_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_application": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_application.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_application.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_application", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_application"], "alias": "stg_shopify_gql__discount_application", "checksum": {"name": "sha256", "checksum": "4bf285a6880d9d733f1165b4e3f0f50282d80b3e33bb5de1eba42941ef54a367"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing discount applications, which define how discounts were applied at the order level.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to all line items (`all`) or only those that are specifically entitled (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount value is a `percentage` or `fixed_amount`. If `target_type` is `shipping_line`, only `percentage` is accepted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9594605, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_application_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_shopify_gql__discount_application_tmp')),\n staging_columns=get_graphql_discount_application_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n lower(allocation_method) as allocation_method,\n upper(code) as code,\n index,\n order_id,\n lower(target_selection) as target_selection,\n lower(target_type) as target_type,\n value_amount,\n value_percentage,\n value_currency_code,\n case \n when value_percentage is not null then 'percentage'\n when lower(target_type) = 'shipping_line' then 'shipping'\n when value_amount is not null then 'fixed_amount'\n else null end as value_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['index', 'order_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_application_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_application.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocation_method\n \n as \n \n allocation_method\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n target_selection\n \n as \n \n target_selection\n \n, \n \n \n target_type\n \n as \n \n target_type\n \n, \n \n \n value_amount\n \n as \n \n value_amount\n \n, \n \n \n value_currency_code\n \n as \n \n value_currency_code\n \n, \n \n \n value_percentage\n \n as \n \n value_percentage\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n lower(allocation_method) as allocation_method,\n upper(code) as code,\n index,\n order_id,\n lower(target_selection) as target_selection,\n lower(target_type) as target_type,\n value_amount,\n value_percentage,\n value_currency_code,\n case \n when value_percentage is not null then 'percentage'\n when lower(target_type) = 'shipping_line' then 'shipping'\n when value_amount is not null then 'fixed_amount'\n else null end as value_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_address": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_address.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_address.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_address", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_address"], "alias": "stg_shopify_gql__customer_address", "checksum": {"name": "sha256", "checksum": "cca4e8b6590274294b6e15baebf9cd8153a1a9ab4925ab353bc35319ef93dda9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a customer's mailing address and includes additional geographic metadata.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_address_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_address_id": {"name": "customer_address_id", "description": "A globally unique identifier for the customer address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer to whom this address belongs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The first line of the address (e.g., street address or PO Box).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The second line of the address (e.g., apartment, suite, or unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The name of the city, district, village, or town for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The company or organization associated with the customer at this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The full country name for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter ISO country code for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_default": {"name": "is_default", "description": "Indicates if this address is the default shipping address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The full name of the customer, derived from first and last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer\u2019s phone number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The name of the region, state, or province for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The standardized zone or province code for the region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code of the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "validation_result_summary": {"name": "validation_result_summary", "description": "A summary of address validation results (e.g., match confidence or status).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The timezone associated with the address, if available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_coordinates_validated": {"name": "has_coordinates_validated", "description": "Indicates whether the latitude and longitude coordinates were validated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0701659, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_address_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__customer_address_tmp')),\n staging_columns=get_graphql_customer_address_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_address_id,\n customer_id,\n address_1,\n address_2,\n city,\n company,\n country,\n country_code,\n first_name,\n is_default,\n last_name,\n latitude,\n longitude,\n name,\n phone,\n province,\n province_code,\n zip,\n validation_result_summary,\n timezone,\n coordinates_validated as has_coordinates_validated,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_address_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_address.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n is_default\n \n as \n \n is_default\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n latitude\n \n as \n \n latitude\n \n, \n \n \n longitude\n \n as \n \n longitude\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n zip\n \n as \n \n zip\n \n, \n \n \n validation_result_summary\n \n as \n \n validation_result_summary\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n coordinates_validated\n \n as \n \n coordinates_validated\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_address_id,\n customer_id,\n address_1,\n address_2,\n city,\n company,\n country,\n country_code,\n first_name,\n is_default,\n last_name,\n latitude,\n longitude,\n name,\n phone,\n province,\n province_code,\n zip,\n validation_result_summary,\n timezone,\n coordinates_validated as has_coordinates_validated,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_item.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_item.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_item"], "alias": "stg_shopify_gql__inventory_item", "checksum": {"name": "sha256", "checksum": "32245e3be959135fac78958f66d2bd942b104f90bf7c1cf0176b5fe76d3da089"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_item_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9953735, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_item_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_shopify_gql__inventory_item_tmp')),\n staging_columns=get_graphql_inventory_item_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted,\n unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country_code_of_origin\n \n as \n \n country_code_of_origin\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n duplicate_sku_count\n \n as \n \n duplicate_sku_count\n \n, \n \n \n harmonized_system_code\n \n as \n \n harmonized_system_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_history_url\n \n as \n \n inventory_history_url\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n measurement_id\n \n as \n \n measurement_id\n \n, \n \n \n measurement_weight_unit\n \n as \n \n measurement_weight_unit\n \n, \n \n \n measurement_weight_value\n \n as \n \n measurement_weight_value\n \n, \n \n \n province_code_of_origin\n \n as \n \n province_code_of_origin\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tracked\n \n as \n \n tracked\n \n, \n \n \n tracked_editable_locked\n \n as \n \n tracked_editable_locked\n \n, \n \n \n tracked_editable_reason\n \n as \n \n tracked_editable_reason\n \n, \n \n \n unit_cost_amount\n \n as \n \n unit_cost_amount\n \n, \n \n \n unit_cost_currency_code\n \n as \n \n unit_cost_currency_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted,\n unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_image": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_image", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__media_image.sql", "original_file_path": "models/graphql/stg_shopify_gql__media_image.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_image", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__media_image"], "alias": "stg_shopify_gql__media_image", "checksum": {"name": "sha256", "checksum": "69407476920c94773e783d596ed84aaedfefb3524efba4a654239771ec7bad8f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing image-specific properties for media assets.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `media_id`, `image_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0047712, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__media_image_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__media_image_tmp')),\n staging_columns=get_graphql_media_image_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['media_id', 'image_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__media_image_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_media_image_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__media_image.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation,\n md5(cast(coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(image_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_shipping_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_shipping_line"], "alias": "stg_shopify_gql__order_shipping_line", "checksum": {"name": "sha256", "checksum": "5da193b8bb92f55d18b8e41ab292c215df78b4d69d5380fa52172a808a1fd08d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents the shipping details that the customer chose for their order.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_shipping_line_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_pres_amount": {"name": "discounted_price_pres_amount", "description": "Shipping price in customer currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_pres_currency_code": {"name": "discounted_price_pres_currency_code", "description": "Three digit customer currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_shop_amount": {"name": "discounted_price_shop_amount", "description": "Shipping price in shop currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_shop_currency_code": {"name": "discounted_price_shop_currency_code", "description": "Three digit shop currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The pre-tax shipping price without any discounts applied in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The pre-tax shipping price without any discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0237308, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_shipping_line_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_shopify_gql__order_shipping_line_tmp')),\n staging_columns=get_graphql_order_shipping_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price_set_pres_amount as discounted_price_pres_amount,\n discounted_price_set_pres_currency_code as discounted_price_pres_currency_code,\n discounted_price_set_shop_amount as discounted_price_shop_amount,\n discounted_price_set_shop_currency_code as discounted_price_shop_currency_code,\n phone,\n original_price_set_pres_amount as price_pres_amount,\n original_price_set_pres_currency_code as price_pres_currency_code,\n original_price_set_shop_amount as price_shop_amount,\n original_price_set_shop_currency_code as price_shop_currency_code,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n discounted_price_set_pres_amount\n \n as \n \n discounted_price_set_pres_amount\n \n, \n \n \n discounted_price_set_pres_currency_code\n \n as \n \n discounted_price_set_pres_currency_code\n \n, \n \n \n discounted_price_set_shop_amount\n \n as \n \n discounted_price_set_shop_amount\n \n, \n \n \n discounted_price_set_shop_currency_code\n \n as \n \n discounted_price_set_shop_currency_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n original_price_set_pres_amount\n \n as \n \n original_price_set_pres_amount\n \n, \n \n \n original_price_set_pres_currency_code\n \n as \n \n original_price_set_pres_currency_code\n \n, \n \n \n original_price_set_shop_amount\n \n as \n \n original_price_set_shop_amount\n \n, \n \n \n original_price_set_shop_currency_code\n \n as \n \n original_price_set_shop_currency_code\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price_set_pres_amount as discounted_price_pres_amount,\n discounted_price_set_pres_currency_code as discounted_price_pres_currency_code,\n discounted_price_set_shop_amount as discounted_price_shop_amount,\n discounted_price_set_shop_currency_code as discounted_price_shop_currency_code,\n phone,\n original_price_set_pres_amount as price_pres_amount,\n original_price_set_pres_currency_code as price_pres_currency_code,\n original_price_set_shop_amount as price_shop_amount,\n original_price_set_shop_currency_code as price_shop_currency_code,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_level": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_level.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_level.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_level"], "alias": "stg_shopify_gql__inventory_level", "checksum": {"name": "sha256", "checksum": "666a85a3945cef763805af14862e54687fbadf91916472cc6858e442ff60cf23"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory level represents the quantities of an inventory item for a location. Each inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_level_id`, `inventory_item_id`, `location_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9973662, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_level_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_shopify_gql__inventory_level_tmp')),\n staging_columns=get_graphql_inventory_level_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_level_id,\n inventory_item_id,\n location_id,\n can_deactivate,\n deactivation_alert,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'inventory_item_id', 'location_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_level_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_level_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_level.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n can_deactivate\n \n as \n \n can_deactivate\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deactivation_alert\n \n as \n \n deactivation_alert\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_level_id,\n inventory_item_id,\n location_id,\n can_deactivate,\n deactivation_alert,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_item_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(location_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_line"], "alias": "stg_shopify_gql__order_line", "checksum": {"name": "sha256", "checksum": "109c38abe09fecda46bfe1c3abaab41598133e0972636f50bb20d067987f3185"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9395418, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_line_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_shopify_gql__order_line_tmp')),\n staging_columns=get_graphql_order_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_line_id,\n row_number() over(partition by order_id, source_relation order by id asc) as index,\n name,\n order_id,\n case \n when unfulfilled_quantity = 0 then 'fulfilled'\n when unfulfilled_quantity > 0 and unfulfilled_quantity < quantity then 'partial'\n when unfulfilled_quantity = quantity then 'unfulfilled'\n else null \n end as fulfillment_status,\n is_gift_card,\n original_total_set_pres_amount as price_pres_amount,\n original_total_set_pres_currency_code as price_pres_currency_code,\n original_total_set_shop_amount as price_shop_amount,\n original_total_set_shop_currency_code as price_shop_currency_code,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n title,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n variant_id,\n variant_title,\n vendor,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n {{ fivetran_utils.fill_pass_through_columns('order_line_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_gift_card\n \n as \n \n is_gift_card\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n original_total_set_pres_amount\n \n as \n \n original_total_set_pres_amount\n \n, \n \n \n original_total_set_pres_currency_code\n \n as \n \n original_total_set_pres_currency_code\n \n, \n \n \n original_total_set_shop_amount\n \n as \n \n original_total_set_shop_amount\n \n, \n \n \n original_total_set_shop_currency_code\n \n as \n \n original_total_set_shop_currency_code\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\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 total_discount_set_pres_amount\n \n as \n \n total_discount_set_pres_amount\n \n, \n \n \n total_discount_set_pres_currency_code\n \n as \n \n total_discount_set_pres_currency_code\n \n, \n \n \n total_discount_set_shop_amount\n \n as \n \n total_discount_set_shop_amount\n \n, \n \n \n total_discount_set_shop_currency_code\n \n as \n \n total_discount_set_shop_currency_code\n \n, \n \n \n unfulfilled_quantity\n \n as \n \n unfulfilled_quantity\n \n, \n \n \n variant_id\n \n as \n \n variant_id\n \n, \n \n \n variant_title\n \n as \n \n variant_title\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_line_id,\n row_number() over(partition by order_id, source_relation order by id asc) as index,\n name,\n order_id,\n case \n when unfulfilled_quantity = 0 then 'fulfilled'\n when unfulfilled_quantity > 0 and unfulfilled_quantity < quantity then 'partial'\n when unfulfilled_quantity = quantity then 'unfulfilled'\n else null \n end as fulfillment_status,\n is_gift_card,\n original_total_set_pres_amount as price_pres_amount,\n original_total_set_pres_currency_code as price_pres_currency_code,\n original_total_set_shop_amount as price_shop_amount,\n original_total_set_shop_currency_code as price_shop_currency_code,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n title,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n variant_id,\n variant_title,\n vendor,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order.sql", "original_file_path": "models/graphql/stg_shopify_gql__order.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order"], "alias": "stg_shopify_gql__order", "checksum": {"name": "sha256", "checksum": "9c104f3d7986e5c83382a7cec256a7666306e5f61fdbd590a8c0cac6b185c13e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "A globally-unique ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the customer who placed the order. Useful for fraud detection and geographic analysis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The shop currency when the order was placed. For example, \"USD\" or \"CAD\".", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "An order's financial status for display in the Shopify admin. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFinancialStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's fulfillment status that displays in the Shopify admin to merchants. For example, an order might be unfulfilled or scheduled. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFulfillmentStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The unique identifier for the order that appears on the order page in the Shopify admin and the Order status page. For example, \"#1001\", \"EN1001\", or \"1001-A\". This value isn't unique across multiple stores.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The optional note associated with the order. Contains additional information or instructions added by merchants or customers during the order process. Commonly used for special delivery instructions, gift messages, or internal processing notes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The name of the source associated with the order, such as \"web\", \"mobile_app\", or \"pos\". Use this field to identify the platform where the order was placed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_amount": {"name": "total_discounts_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_amount": {"name": "total_discounts_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_currency_code": {"name": "total_discounts_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_currency_code": {"name": "total_discounts_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights before returns, in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The staff member who created or is responsible for the order. Useful for tracking which team member handled phone orders, manual orders, or order modifications. Returns null for orders created directly by customers through the online store.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL where customers can check their order's current status, including tracking information and delivery updates. Provides order tracking links in emails, apps, or customer communications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received_shop_amount": {"name": "total_tip_received_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_amount": {"name": "total_tip_received_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_currency_code": {"name": "total_tip_received_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_currency_code": {"name": "total_tip_received_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_amount": {"name": "shipping_cost_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_amount": {"name": "shipping_cost_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_currency_code": {"name": "shipping_cost_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_currency_code": {"name": "shipping_cost_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9308488, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_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_shopify_gql__order_tmp')),\n staging_columns=get_graphql_order_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_id,\n staff_member_id as user_id,\n total_discounts_set_pres_amount as total_discounts_pres_amount,\n total_discounts_set_pres_currency_code as total_discounts_pres_currency_code,\n total_discounts_set_shop_amount as total_discounts_shop_amount,\n total_discounts_set_shop_currency_code as total_discounts_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n source_name,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received_set_pres_amount as total_tip_received_pres_amount,\n total_tip_received_set_pres_currency_code as total_tip_received_pres_currency_code,\n total_tip_received_set_shop_amount as total_tip_received_shop_amount,\n total_tip_received_set_shop_currency_code as total_tip_received_shop_currency_code,\n location_id,\n name,\n note,\n number, -- Will be included in 2025-07 release of GraphQL API\n cancel_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(cancelled_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as cancelled_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n currency_code as currency,\n customer_id,\n lower(email) as email,\n lower(display_financial_status) as financial_status,\n lower(display_fulfillment_status) as fulfillment_status,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n client_ip as browser_ip,\n total_shipping_price_set_pres_amount as shipping_cost_pres_amount,\n total_shipping_price_set_pres_currency_code as shipping_cost_pres_currency_code,\n total_shipping_price_set_shop_amount as shipping_cost_shop_amount,\n total_shipping_price_set_shop_currency_code as shipping_cost_shop_currency_code,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n app_id,\n customer_locale,\n status_page_url as order_status_url,\n presentment_currency_code as presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n customer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('order_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n app_id\n \n as \n \n app_id\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n cancel_reason\n \n as \n \n cancel_reason\n \n, \n \n \n cancelled_at\n \n as \n \n cancelled_at\n \n, \n \n \n client_ip\n \n as \n \n client_ip\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n confirmed\n \n as \n \n confirmed\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n customer_accepts_marketing\n \n as \n \n customer_accepts_marketing\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_locale\n \n as \n \n customer_locale\n \n, \n \n \n display_financial_status\n \n as \n \n display_financial_status\n \n, \n \n \n display_fulfillment_status\n \n as \n \n display_fulfillment_status\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n presentment_currency_code\n \n as \n \n presentment_currency_code\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n status_page_url\n \n as \n \n status_page_url\n \n, \n \n \n subtotal_price_set_pres_amount\n \n as \n \n subtotal_price_set_pres_amount\n \n, \n \n \n subtotal_price_set_pres_currency_code\n \n as \n \n subtotal_price_set_pres_currency_code\n \n, \n \n \n subtotal_price_set_shop_amount\n \n as \n \n subtotal_price_set_shop_amount\n \n, \n \n \n subtotal_price_set_shop_currency_code\n \n as \n \n subtotal_price_set_shop_currency_code\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n total_discounts_set_pres_amount\n \n as \n \n total_discounts_set_pres_amount\n \n, \n \n \n total_discounts_set_pres_currency_code\n \n as \n \n total_discounts_set_pres_currency_code\n \n, \n \n \n total_discounts_set_shop_amount\n \n as \n \n total_discounts_set_shop_amount\n \n, \n \n \n total_discounts_set_shop_currency_code\n \n as \n \n total_discounts_set_shop_currency_code\n \n, \n \n \n total_price_set_pres_amount\n \n as \n \n total_price_set_pres_amount\n \n, \n \n \n total_price_set_pres_currency_code\n \n as \n \n total_price_set_pres_currency_code\n \n, \n \n \n total_price_set_shop_amount\n \n as \n \n total_price_set_shop_amount\n \n, \n \n \n total_price_set_shop_currency_code\n \n as \n \n total_price_set_shop_currency_code\n \n, \n \n \n total_shipping_price_set_pres_amount\n \n as \n \n total_shipping_price_set_pres_amount\n \n, \n \n \n total_shipping_price_set_pres_currency_code\n \n as \n \n total_shipping_price_set_pres_currency_code\n \n, \n \n \n total_shipping_price_set_shop_amount\n \n as \n \n total_shipping_price_set_shop_amount\n \n, \n \n \n total_shipping_price_set_shop_currency_code\n \n as \n \n total_shipping_price_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\n \n, \n \n \n total_tip_received_set_pres_amount\n \n as \n \n total_tip_received_set_pres_amount\n \n, \n \n \n total_tip_received_set_pres_currency_code\n \n as \n \n total_tip_received_set_pres_currency_code\n \n, \n \n \n total_tip_received_set_shop_amount\n \n as \n \n total_tip_received_set_shop_amount\n \n, \n \n \n total_tip_received_set_shop_currency_code\n \n as \n \n total_tip_received_set_shop_currency_code\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_id,\n staff_member_id as user_id,\n total_discounts_set_pres_amount as total_discounts_pres_amount,\n total_discounts_set_pres_currency_code as total_discounts_pres_currency_code,\n total_discounts_set_shop_amount as total_discounts_shop_amount,\n total_discounts_set_shop_currency_code as total_discounts_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n source_name,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received_set_pres_amount as total_tip_received_pres_amount,\n total_tip_received_set_pres_currency_code as total_tip_received_pres_currency_code,\n total_tip_received_set_shop_amount as total_tip_received_shop_amount,\n total_tip_received_set_shop_currency_code as total_tip_received_shop_currency_code,\n location_id,\n name,\n note,\n number, -- Will be included in 2025-07 release of GraphQL API\n cancel_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(cancelled_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as cancelled_timestamp,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n currency_code as currency,\n customer_id,\n lower(email) as email,\n lower(display_financial_status) as financial_status,\n lower(display_fulfillment_status) as fulfillment_status,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n client_ip as browser_ip,\n total_shipping_price_set_pres_amount as shipping_cost_pres_amount,\n total_shipping_price_set_pres_currency_code as shipping_cost_pres_currency_code,\n total_shipping_price_set_shop_amount as shipping_cost_shop_amount,\n total_shipping_price_set_shop_currency_code as shipping_cost_shop_currency_code,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n app_id,\n customer_locale,\n status_page_url as order_status_url,\n presentment_currency_code as presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n customer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer"], "alias": "stg_shopify_gql__customer", "checksum": {"name": "sha256", "checksum": "ee040da4cd184398d97000afa6857728219292a2b055904acf172c7d3505cd03"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9026093, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_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_shopify_gql__customer_tmp')),\n staging_columns=get_graphql_customer_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n lower(email_marketing_consent_state) as marketing_consent_state,\n lower(email_marketing_consent_opt_in_level) as marketing_opt_in_level,\n {{ shopify_source.fivetran_convert_timezone(column='cast(email_marketing_consent_updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as marketing_consent_updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n {{ fivetran_utils.fill_pass_through_columns('customer_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n email_marketing_consent_opt_in_level\n \n as \n \n email_marketing_consent_opt_in_level\n \n, \n \n \n email_marketing_consent_state\n \n as \n \n email_marketing_consent_state\n \n, \n \n \n email_marketing_consent_updated_at\n \n as \n \n email_marketing_consent_updated_at\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n orders_count\n \n as \n \n orders_count\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n tax_exempt\n \n as \n \n tax_exempt\n \n, \n \n \n total_spent\n \n as \n \n total_spent\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n verified_email\n \n as \n \n verified_email\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n lower(email_marketing_consent_state) as marketing_consent_state,\n lower(email_marketing_consent_opt_in_level) as marketing_opt_in_level,\n cast(\n cast(cast(email_marketing_consent_updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as marketing_consent_updated_at,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__transaction", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__transaction.sql", "original_file_path": "models/graphql/stg_shopify_gql__transaction.sql", "unique_id": "model.shopify_source.stg_shopify_gql__transaction", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__transaction"], "alias": "stg_shopify_gql__transaction", "checksum": {"name": "sha256", "checksum": "7424657329c3c4945c6c79b2326dd4991efaf952abff49c191f08dd9ccb5587b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `transaction_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of the transaction in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three letter currency code of the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of the transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three letter currency code of the shop's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0586, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__transaction_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_shopify_gql__transaction_tmp')),\n staging_columns=get_graphql_transaction_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_shop_amount as amount_shop,\n device_id, -- Will be included in 2025-07 release of GraphQL API\n gateway,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_currency_code as amount_shop_currency_code,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n lower(kind) as kind, -- lower in REST api\n {{ shopify_source.json_to_string(\"receipt_json\", source_columns_in_relation) }} as receipt,\n currency_exchange_id, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_adjustment, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_original_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_final_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_currency, -- Will be included in 2025-07 release of GraphQL API\n error_code,\n lower(status) as status, -- lower in REST api\n staff_member_id as user_id,\n authorization_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(authorization_expires_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as authorization_expires_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('transaction_pass_through_columns') }}\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount_set_pres_amount\n \n as \n \n amount_set_pres_amount\n \n, \n \n \n amount_set_pres_currency_code\n \n as \n \n amount_set_pres_currency_code\n \n, \n \n \n amount_set_shop_amount\n \n as \n \n amount_set_shop_amount\n \n, \n \n \n amount_set_shop_currency_code\n \n as \n \n amount_set_shop_currency_code\n \n, \n \n \n authorization_code\n \n as \n \n authorization_code\n \n, \n \n \n authorization_expires_at\n \n as \n \n authorization_expires_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n error_code\n \n as \n \n error_code\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n payment_avs_result_code\n \n as \n \n payment_avs_result_code\n \n, \n \n \n payment_credit_card_bin\n \n as \n \n payment_credit_card_bin\n \n, \n \n \n payment_credit_card_company\n \n as \n \n payment_credit_card_company\n \n, \n \n \n payment_credit_card_number\n \n as \n \n payment_credit_card_number\n \n, \n \n \n payment_cvv_result_code\n \n as \n \n payment_cvv_result_code\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n cast(null as TEXT) as \n \n receipt_json\n \n , \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n currency_exchange_id\n \n as \n \n currency_exchange_id\n \n, \n \n \n currency_exchange_adjustment\n \n as \n \n currency_exchange_adjustment\n \n, \n \n \n currency_exchange_original_amount\n \n as \n \n currency_exchange_original_amount\n \n, \n \n \n currency_exchange_final_amount\n \n as \n \n currency_exchange_final_amount\n \n, \n \n \n currency_exchange_currency\n \n as \n \n currency_exchange_currency\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_shop_amount as amount_shop,\n device_id, -- Will be included in 2025-07 release of GraphQL API\n gateway,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_currency_code as amount_shop_currency_code,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n lower(kind) as kind, -- lower in REST api\n receipt_json as receipt,\n currency_exchange_id, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_adjustment, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_original_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_final_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_currency, -- Will be included in 2025-07 release of GraphQL API\n error_code,\n lower(status) as status, -- lower in REST api\n staff_member_id as user_id,\n authorization_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(authorization_expires_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as authorization_expires_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_tracking_info"], "alias": "stg_shopify_gql__fulfillment_tracking_info", "checksum": {"name": "sha256", "checksum": "b81b5a9a260e0144655ecdf19307a4fd7bc3e27d08f38b679573649357273654"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents tracking information associated with a fulfillment. Used by Shopify to generate clickable tracking numbers and delivery updates.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_id": {"name": "fulfillment_id", "description": "The unique identifier of the fulfillment this tracking info belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company. For supported carriers, Shopify automatically builds tracking URLs and may update the shipment status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Tracking number for the fulfillment. If a known tracking company is specified, or the number matches a known format, Shopify may auto-generate a tracking URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_url": {"name": "tracking_url", "description": "Direct URL to track the fulfillment. This is displayed in the Shopify admin and customer notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the tracking information associated with a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.989384, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_tracking_info', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_tracking_info_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_shopify_gql__fulfillment_tracking_info_tmp')),\n staging_columns=get_graphql_fulfillment_tracking_info_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n fulfillment_id,\n index,\n company as tracking_company,\n number as tracking_number,\n url as tracking_url,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['fulfillment_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_tracking_info_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n url\n \n as \n \n url\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n fulfillment_id,\n index,\n company as tracking_company,\n number as tracking_number,\n url as tracking_url,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(fulfillment_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_free_shipping.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_free_shipping.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_free_shipping"], "alias": "stg_shopify_gql__discount_code_free_shipping", "checksum": {"name": "sha256", "checksum": "cdae529b92ea53946c636f7f8bcb98c4f7ff4b853caa5dad542cbf5d34b0adfd"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for free shipping discount codes in Shopify, where shipping costs are discounted based on qualifying conditions.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9706788, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_free_shipping_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_shopify_gql__discount_code_free_shipping_tmp')),\n staging_columns=get_graphql_discount_code_free_shipping_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_free_shipping_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_free_shipping_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_free_shipping.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_allocation": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_allocation.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_allocation.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_allocation"], "alias": "stg_shopify_gql__discount_allocation", "checksum": {"name": "sha256", "checksum": "739863a768f40dd60d330e331eae06d15864832e04c0ca6b863424ec4f7ac4c6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing allocation amounts from discount applications across specific order lines.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id`, `discount_application_index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocated_pres_amount": {"name": "allocated_pres_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_pres_currency_code": {"name": "allocated_pres_currency_code", "description": "The presentment money currency code for the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_shop_amount": {"name": "allocated_shop_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_shop_currency_code": {"name": "allocated_shop_currency_code", "description": "The shop money currency code for the store\u2019s currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to. Used to join with the discount application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount allocation within the list of allocations on an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9559488, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_allocation_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_shopify_gql__discount_allocation_tmp')),\n staging_columns=get_graphql_discount_allocation_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n allocated_amount_set_pres_amount as allocated_pres_amount,\n allocated_amount_set_pres_currency_code as allocated_pres_currency_code,\n allocated_amount_set_shop_amount as allocated_shop_amount,\n allocated_amount_set_shop_currency_code as allocated_shop_currency_code,\n discount_application_index,\n index,\n order_line_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_line_id', 'discount_application_index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_allocation_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_allocation_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_allocation.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocated_amount_set_pres_amount\n \n as \n \n allocated_amount_set_pres_amount\n \n, \n \n \n allocated_amount_set_pres_currency_code\n \n as \n \n allocated_amount_set_pres_currency_code\n \n, \n \n \n allocated_amount_set_shop_amount\n \n as \n \n allocated_amount_set_shop_amount\n \n, \n \n \n allocated_amount_set_shop_currency_code\n \n as \n \n allocated_amount_set_shop_currency_code\n \n, \n \n \n discount_application_index\n \n as \n \n discount_application_index\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n allocated_amount_set_pres_amount as allocated_pres_amount,\n allocated_amount_set_pres_currency_code as allocated_pres_currency_code,\n allocated_amount_set_shop_amount as allocated_shop_amount,\n allocated_amount_set_shop_currency_code as allocated_shop_currency_code,\n discount_application_index,\n index,\n order_line_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_application_index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_tag"], "alias": "stg_shopify_gql__order_tag", "checksum": {"name": "sha256", "checksum": "1b21c4d52ba47cab2b79f8ed6d47375b9c817395c7632a7ab2816bff9f78e77b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the order.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0262067, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_tag_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_shopify_gql__order_tag_tmp')),\n staging_columns=get_graphql_order_tag_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_adjustment.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_adjustment.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_adjustment"], "alias": "stg_shopify_gql__order_adjustment", "checksum": {"name": "sha256", "checksum": "9ddd660936d0935e7496a6a0384b2fbb096e604fec6082d155ae5d6594d61a81"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_adjustment_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_id": {"name": "order_adjustment_id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three letter currency code for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three letter shop currency code of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_pres": {"name": "tax_amount_pres", "description": "The tax amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_pres_currency_code": {"name": "tax_amount_pres_currency_code", "description": "The three letter currency code for the tax of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_shop": {"name": "tax_amount_shop", "description": "The tax amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_shop_currency_code": {"name": "tax_amount_shop_currency_code", "description": "The three letter shop currency code of the tax for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0143673, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_adjustment_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__order_adjustment_tmp')),\n staging_columns=get_graphql_order_adjustment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_amount as amount_shop,\n amount_set_shop_currency_code as amount_shop_currency_code,\n tax_amount_set_pres_amount as tax_amount_pres,\n tax_amount_set_pres_currency_code as tax_amount_pres_currency_code,\n tax_amount_set_shop_amount as tax_amount_shop,\n tax_amount_set_shop_currency_code as tax_amount_shop_currency_code,\n reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_adjustment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_adjustment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_adjustment.sql", "compiled": true, "compiled_code": "\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n amount_set_pres_amount\n \n as \n \n amount_set_pres_amount\n \n, \n \n \n amount_set_pres_currency_code\n \n as \n \n amount_set_pres_currency_code\n \n, \n \n \n amount_set_shop_amount\n \n as \n \n amount_set_shop_amount\n \n, \n \n \n amount_set_shop_currency_code\n \n as \n \n amount_set_shop_currency_code\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n tax_amount_set_pres_amount\n \n as \n \n tax_amount_set_pres_amount\n \n, \n \n \n tax_amount_set_pres_currency_code\n \n as \n \n tax_amount_set_pres_currency_code\n \n, \n \n \n tax_amount_set_shop_amount\n \n as \n \n tax_amount_set_shop_amount\n \n, \n \n \n tax_amount_set_shop_currency_code\n \n as \n \n tax_amount_set_shop_currency_code\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_amount as amount_shop,\n amount_set_shop_currency_code as amount_shop_currency_code,\n tax_amount_set_pres_amount as tax_amount_pres,\n tax_amount_set_pres_currency_code as tax_amount_pres_currency_code,\n tax_amount_set_shop_amount as tax_amount_shop,\n tax_amount_set_shop_currency_code as tax_amount_shop_currency_code,\n reason,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_media.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_media"], "alias": "stg_shopify_gql__product_media", "checksum": {"name": "sha256", "checksum": "cdb03869e9ddfe19b2ce602f5a435a4dd2c24e9ef9e9f38fa6417a3ffaf4e1d9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id`, `media_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0096152, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_media_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_shopify_gql__product_media_tmp')),\n staging_columns=get_graphql_product_media_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n product_id,\n media_id,\n source_relation, \n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n {{ dbt_utils.generate_surrogate_key(['product_id', 'media_id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n media_id,\n source_relation, \n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n md5(cast(coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_discount_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_discount_code"], "alias": "stg_shopify_gql__order_discount_code", "checksum": {"name": "sha256", "checksum": "46169dbd62882ab67770a3a78a62349267dba7b5a5a0ce940de18b35209b060c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Discount codes placed on orders.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0154665, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_discount_code_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_shopify_gql__order_discount_code_tmp')),\n staging_columns=get_graphql_order_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_quantity": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_quantity.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_quantity.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_quantity"], "alias": "stg_shopify_gql__inventory_quantity", "checksum": {"name": "sha256", "checksum": "bf44e42da315e47a9d9b7fa5b9e4cad92ba2f087de9c02766a15811a1c5dfb55"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The total quantity of the inventory item available at all locations.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_quantity_id`, `inventory_level_id`, `inventory_item_id`, `inventory_state_name`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity_id": {"name": "inventory_quantity_id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_state_name": {"name": "inventory_state_name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.999101, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_quantity_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_shopify_gql__inventory_quantity_tmp')),\n staging_columns=get_graphql_inventory_quantity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'inventory_item_id', 'inventory_level_id', 'name', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_quantity_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_quantity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_quantity.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_level_id\n \n as \n \n inventory_level_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_item_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_level_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_tag"], "alias": "stg_shopify_gql__product_tag", "checksum": {"name": "sha256", "checksum": "7f63c730d6dca3cbed580fdb8e75a6f808816c7d132c861e57e18b7600c7cd43"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the product.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0352316, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_tag_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_shopify_gql__product_tag_tmp')),\n staging_columns=get_graphql_product_tag_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['product_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product.sql", "original_file_path": "models/graphql/stg_shopify_gql__product.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product"], "alias": "stg_shopify_gql__product", "checksum": {"name": "sha256", "checksum": "bd16eaf9c2f2b9d327db6071a73dc1fa5aaa07b070d4f3fd72bd82f8621145a9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0280666, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_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_shopify_gql__product_tmp')),\n staging_columns=get_graphql_product_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as product_id,\n handle,\n product_type,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('product_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n status\n \n as \n \n status\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\n \n as \n \n vendor\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as product_id,\n handle,\n product_type,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_shipping_tax_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_shipping_tax_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_shipping_tax_line"], "alias": "stg_shopify_gql__order_shipping_tax_line", "checksum": {"name": "sha256", "checksum": "1ce49a7e29271683d2a26b5640c826be0a3c626e752ce9600fa531b9cfdbbf26"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents taxes associated with order shipping lines.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_shipping_line_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this record is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The amount of tax in customer currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The amount of tax in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0252304, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_shipping_tax_line_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_shopify_gql__order_shipping_tax_line_tmp')),\n staging_columns=get_graphql_order_shipping_tax_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_shipping_line_id', 'index', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_shipping_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_shipping_tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_shipping_line_id\n \n as \n \n order_shipping_line_id\n \n, \n \n \n price_set_pres_amount\n \n as \n \n price_set_pres_amount\n \n, \n \n \n price_set_pres_currency_code\n \n as \n \n price_set_pres_currency_code\n \n, \n \n \n price_set_shop_amount\n \n as \n \n price_set_shop_amount\n \n, \n \n \n price_set_shop_currency_code\n \n as \n \n price_set_shop_currency_code\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_shipping_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_tag"], "alias": "stg_shopify_gql__customer_tag", "checksum": {"name": "sha256", "checksum": "d1dc3244691c097ebdca6b9f76fcb51c4f898b7d4653bb1a2e3c1c092c9b3d70"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9532537, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_tag_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_shopify_gql__customer_tag_tmp')),\n staging_columns=get_graphql_customer_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['customer_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection_product.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection_product.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_product", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection_product"], "alias": "stg_shopify_gql__collection_product", "checksum": {"name": "sha256", "checksum": "f1dafc3138b77c46252e3d61f0ce084cdd24ccdd94e56f0212db3aca550e9aa6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id`, `product_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9519694, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_product_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_shopify_gql__collection_product_tmp')),\n staging_columns=get_graphql_collection_product_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['collection_id', 'product_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__collection_product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n collection_id\n \n as \n \n collection_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(collection_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_visit": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_visit.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_visit.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_visit"], "alias": "stg_shopify_gql__customer_visit", "checksum": {"name": "sha256", "checksum": "dc6dbc7c87fbaf8737671d7d2f502113fa6266ae3ed31720df6bf23974c04c56"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metadata about a customer's session visiting a Shopify store, including session, landing page, referrer, marketing campaign, and source attribution information. This data helps merchants analyze the effectiveness of marketing campaigns and customer engagement.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_visit_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_visit_id": {"name": "customer_visit_id", "description": "A globally-unique identifier for the customer visit session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "The ID of the order associated with the customer visit, if any.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of marketing tactic associated with the session. Possible values include: abandoned_cart, ad, affiliate, link, loyalty, message, newsletter, notification, post, retargeting, seo, storefront_app, transactional.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page": {"name": "landing_page", "description": "The URL of the first page the customer landed on for the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page_html": {"name": "landing_page_html", "description": "The landing page URL rendered as HTML with a hyperlink.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "occurred_at": {"name": "occurred_at", "description": "The timestamp when the customer's session occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_code": {"name": "referral_code", "description": "A marketing referral code captured from the landing URL. Supports query params like `ref`, `source`, or `r`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_info_html": {"name": "referral_info_html", "description": "Referral info rendered as HTML with URLs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The referring webpage where the customer clicked a link to arrive at the store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The origin of the customer's visit, such as a platform (e.g., Facebook, Google), a QR code, direct, or other attribution channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_description": {"name": "source_description", "description": "A more descriptive label for the visit source; used primarily for the first or last session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_type": {"name": "source_type", "description": "The marketing tactic type, such as ad, seo, newsletter, etc.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_campaign": {"name": "utm_parameters_campaign", "description": "The name of the marketing campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_content": {"name": "utm_parameters_content", "description": "Identifies specific content within a campaign, used to differentiate similar links.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_medium": {"name": "utm_parameters_medium", "description": "The medium of the campaign (e.g., cpc, banner, email).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_source": {"name": "utm_parameters_source", "description": "The traffic source for the campaign (e.g., google, newsletter).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_term": {"name": "utm_parameters_term", "description": "Search terms associated with paid campaigns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.06465, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_customer_visit', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_visit_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_shopify_gql__customer_visit_tmp')),\n staging_columns=get_graphql_customer_visit_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_visit_id,\n order_id,\n type,\n landing_page,\n landing_page_html,\n referral_code,\n referral_info_html,\n referrer_url as referring_site,\n source,\n source_description,\n source_type,\n utm_parameters_campaign,\n utm_parameters_content,\n utm_parameters_medium,\n utm_parameters_source,\n utm_parameters_term,\n {{ shopify_source.fivetran_convert_timezone(column='cast(occurred_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as occurred_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_visit_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_visit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_visit.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n landing_page\n \n as \n \n landing_page\n \n, \n \n \n landing_page_html\n \n as \n \n landing_page_html\n \n, \n \n \n occurred_at\n \n as \n \n occurred_at\n \n, \n \n \n referral_code\n \n as \n \n referral_code\n \n, \n \n \n referral_info_html\n \n as \n \n referral_info_html\n \n, \n \n \n referrer_url\n \n as \n \n referrer_url\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_description\n \n as \n \n source_description\n \n, \n \n \n source_type\n \n as \n \n source_type\n \n, \n \n \n utm_parameters_campaign\n \n as \n \n utm_parameters_campaign\n \n, \n \n \n utm_parameters_content\n \n as \n \n utm_parameters_content\n \n, \n \n \n utm_parameters_medium\n \n as \n \n utm_parameters_medium\n \n, \n \n \n utm_parameters_source\n \n as \n \n utm_parameters_source\n \n, \n \n \n utm_parameters_term\n \n as \n \n utm_parameters_term\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_visit_id,\n order_id,\n type,\n landing_page,\n landing_page_html,\n referral_code,\n referral_info_html,\n referrer_url as referring_site,\n source,\n source_description,\n source_type,\n utm_parameters_campaign,\n utm_parameters_content,\n utm_parameters_medium,\n utm_parameters_source,\n utm_parameters_term,\n cast(\n cast(cast(occurred_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as occurred_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection"], "alias": "stg_shopify_gql__collection", "checksum": {"name": "sha256", "checksum": "f3cc283d3c7ac17d0c9b19de8ef5940574461038364cc5f2e02db114340908bb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\"). \n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "rule_logic": {"name": "rule_logic", "description": "Whether the `rules` are disjunctive (logical `OR`) or conjunctive (logical `AND`)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values incline - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9509363, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_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_shopify_gql__collection_tmp')),\n staging_columns=get_graphql_collection_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when applied_disjunctively is null then null\n when applied_disjunctively then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n sort_order,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__collection.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n applied_disjunctively\n \n as \n \n applied_disjunctively\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n sort_order\n \n as \n \n sort_order\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 \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when applied_disjunctively is null then null\n when applied_disjunctively then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n sort_order,\n title,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_note_attribute": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_note_attribute.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_note_attribute.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_note_attribute"], "alias": "stg_shopify_gql__order_note_attribute", "checksum": {"name": "sha256", "checksum": "7873d5d4778fda0c06ad067718d305252d77e07908f715611688af7d7fb948d8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing custom attributes placed on orders.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `name`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0196872, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_note_attribute_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_shopify_gql__order_note_attribute_tmp')),\n staging_columns=get_graphql_order_note_attribute_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'name', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_note_attribute_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_note_attribute_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_note_attribute.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tender_transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__tender_transaction.sql", "original_file_path": "models/graphql/stg_shopify_gql__tender_transaction.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__tender_transaction"], "alias": "stg_shopify_gql__tender_transaction", "checksum": {"name": "sha256", "checksum": "10ec55a65a5226c5e72a4837722d9753808b9fab6f01ea59b97f8b9733ff6e95"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `transaction_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0511637, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__tender_transaction_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_shopify_gql__tender_transaction_tmp')),\n staging_columns=get_graphql_tender_transaction_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency_code as currency,\n payment_method,\n remote_reference,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__tender_transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_tender_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__tender_transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n payment_method\n \n as \n \n payment_method\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n remote_reference\n \n as \n \n remote_reference\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency_code as currency,\n payment_method,\n remote_reference,\n user_id,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__shop": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__shop", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__shop.sql", "original_file_path": "models/graphql/stg_shopify_gql__shop.sql", "unique_id": "model.shopify_source.stg_shopify_gql__shop", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__shop"], "alias": "stg_shopify_gql__shop", "checksum": {"name": "sha256", "checksum": "b0950c23a4aef6080249618f83c620290043117629346a3efd333ad95e6e0d90"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `shop_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_checkout_api_supported": {"name": "has_checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_password_enabled": {"name": "is_password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_setup_required": {"name": "is_setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_shipping_taxes": {"name": "has_shipping_taxes", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included_in_price": {"name": "has_taxes_included_in_price", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_abbreviation": {"name": "timezone_abbreviation", "description": "The shop's time zone abbreviation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset": {"name": "timezone_offset", "description": "The shop's time zone offset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset_minutes": {"name": "timezone_offset_minutes", "description": "The shop's time zone offset expressed as a number of minutes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0473263, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__shop_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_shopify_gql__shop_tmp')),\n staging_columns=get_graphql_shop_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n billing_address_address_1 as address_1,\n billing_address_address_2 as address_2,\n billing_address_city as city,\n billing_address_province as province,\n billing_address_province_code as province_code,\n billing_address_country_code_v_2 as country, -- in REST API country = code\n billing_address_country_code_v_2 as country_code,\n billing_address_country as country_name,\n billing_address_zip as zip,\n billing_address_latitude as latitude,\n billing_address_longitude as longitude,\n currency_code as currency,\n {{ shopify_source.json_to_string(\"enabled_presentment_currencies\", source_columns_in_relation) }} as enabled_presentment_currencies,\n contact_email as customer_email,\n email,\n primary_domain_host as domain,\n billing_address_phone as phone,\n timezone_abbreviation,\n {# timezone_offset is formatted like -0400 instead of -04:00 #}\n timezone_offset, \n timezone_offset_minutes, \n iana_timezone, \n primary_domain_localization_default_locale as primary_locale,\n weight_unit,\n myshopify_domain,\n shop_owner_name as shop_owner,\n tax_shipping as has_shipping_taxes,\n coalesce(taxes_included, false) as has_taxes_included_in_price,\n features_storefront as has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n currency_formats_money_format as money_format,\n currency_formats_money_in_emails_format as money_in_emails_format,\n currency_formats_money_with_currency_format as money_with_currency_format,\n currency_formats_money_with_currency_in_emails_format as money_with_currency_in_emails_format,\n plan_display_name,\n password_enabled as is_password_enabled,\n setup_required as is_setup_required,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__shop_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_shop_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__shop_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__shop.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code_v_2\n \n as \n \n billing_address_country_code_v_2\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n checkout_api_supported\n \n as \n \n checkout_api_supported\n \n, \n \n \n contact_email\n \n as \n \n contact_email\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n currency_formats_money_format\n \n as \n \n currency_formats_money_format\n \n, \n \n \n currency_formats_money_in_emails_format\n \n as \n \n currency_formats_money_in_emails_format\n \n, \n \n \n currency_formats_money_with_currency_format\n \n as \n \n currency_formats_money_with_currency_format\n \n, \n \n \n currency_formats_money_with_currency_in_emails_format\n \n as \n \n currency_formats_money_with_currency_in_emails_format\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n enabled_presentment_currencies\n \n as \n \n enabled_presentment_currencies\n \n, \n \n \n features_storefront\n \n as \n \n features_storefront\n \n, \n \n \n iana_timezone\n \n as \n \n iana_timezone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n myshopify_domain\n \n as \n \n myshopify_domain\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n password_enabled\n \n as \n \n password_enabled\n \n, \n \n \n plan_display_name\n \n as \n \n plan_display_name\n \n, \n \n \n primary_domain_host\n \n as \n \n primary_domain_host\n \n, \n \n \n primary_domain_localization_default_locale\n \n as \n \n primary_domain_localization_default_locale\n \n, \n \n \n setup_required\n \n as \n \n setup_required\n \n, \n \n \n shop_owner_name\n \n as \n \n shop_owner_name\n \n, \n \n \n tax_shipping\n \n as \n \n tax_shipping\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n timezone_abbreviation\n \n as \n \n timezone_abbreviation\n \n, \n \n \n timezone_offset\n \n as \n \n timezone_offset\n \n, \n \n \n timezone_offset_minutes\n \n as \n \n timezone_offset_minutes\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n billing_address_address_1 as address_1,\n billing_address_address_2 as address_2,\n billing_address_city as city,\n billing_address_province as province,\n billing_address_province_code as province_code,\n billing_address_country_code_v_2 as country, -- in REST API country = code\n billing_address_country_code_v_2 as country_code,\n billing_address_country as country_name,\n billing_address_zip as zip,\n billing_address_latitude as latitude,\n billing_address_longitude as longitude,\n currency_code as currency,\n enabled_presentment_currencies as enabled_presentment_currencies,\n contact_email as customer_email,\n email,\n primary_domain_host as domain,\n billing_address_phone as phone,\n timezone_abbreviation,\n \n timezone_offset, \n timezone_offset_minutes, \n iana_timezone, \n primary_domain_localization_default_locale as primary_locale,\n weight_unit,\n myshopify_domain,\n shop_owner_name as shop_owner,\n tax_shipping as has_shipping_taxes,\n coalesce(taxes_included, false) as has_taxes_included_in_price,\n features_storefront as has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n currency_formats_money_format as money_format,\n currency_formats_money_in_emails_format as money_in_emails_format,\n currency_formats_money_with_currency_format as money_with_currency_format,\n currency_formats_money_with_currency_in_emails_format as money_with_currency_in_emails_format,\n plan_display_name,\n password_enabled as is_password_enabled,\n setup_required as is_setup_required,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__metafield": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__metafield", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__metafield.sql", "original_file_path": "models/graphql/stg_shopify_gql__metafield.sql", "unique_id": "model.shopify_source.stg_shopify_gql__metafield", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__metafield"], "alias": "stg_shopify_gql__metafield", "checksum": {"name": "sha256", "checksum": "4396fe0f88e8e01449008a5e44f202694eca0ffff8fd9a6bf7fb8fc3ce6df932"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context. \n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `metafield_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_id": {"name": "metafield_id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource_id": {"name": "owner_resource_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_reference": {"name": "metafield_reference", "description": "Combination of the namespace and key columns. This field is key for metafield mapping in downstream models.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating the most up to date record identified by the most recent updated_at field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.00867, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_metafield', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__metafield_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_shopify_gql__metafield_tmp')),\n staging_columns=get_graphql_metafield_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(type) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n lower({{ dbt.concat([\"namespace\",\"'_'\",\"key\"]) }}) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_metafield_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt.concat", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__metafield.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n 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 id\n \n as \n \n id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n namespace\n \n as \n \n namespace\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n owner_resource\n \n as \n \n owner_resource\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(type) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n lower(namespace || '_' || key) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_variant_media.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_variant_media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_variant_media"], "alias": "stg_shopify_gql__product_variant_media", "checksum": {"name": "sha256", "checksum": "0127c3b8b208869da17e7b9e75af811a5ece076af61f156cba239e76cba5337e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_variant_id`, `media_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0342708, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_product_variant_media', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_variant_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__product_variant_media_tmp')),\n staging_columns=get_graphql_product_variant_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['product_variant_id', 'media_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_variant_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_variant_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation,\n md5(cast(coalesce(cast(product_variant_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_app": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_app.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_app.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_app"], "alias": "stg_shopify_gql__discount_code_app", "checksum": {"name": "sha256", "checksum": "0ba65d555b341ea472c2d2b467241a6df089e4b223676e974feffdd7f747df7a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for discount codes created through third-party apps in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.966021, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_discount_code_app', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_app_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_shopify_gql__discount_code_app_tmp')),\n staging_columns=get_graphql_discount_code_app_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_app_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_app_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_app.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count_count\n \n as \n \n codes_count_count\n \n, \n \n \n codes_count_precision\n \n as \n \n codes_count_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_basic": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_basic.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_basic.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_basic"], "alias": "stg_shopify_gql__discount_code_basic", "checksum": {"name": "sha256", "checksum": "6d6b5c65be3377b64f2b0a2c42b7df1f71649dd2aaa52ba1464ebec3e2f7ef5e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata about basic discount codes created by merchants.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9675586, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_basic_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_shopify_gql__discount_code_basic_tmp')),\n staging_columns=get_graphql_discount_code_basic_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_basic_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_basic_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_basic.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__abandoned_checkout.sql", "original_file_path": "models/graphql/stg_shopify_gql__abandoned_checkout.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__abandoned_checkout"], "alias": "stg_shopify_gql__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "07a4852ed7c97ff18d1a526ca4d4f355ab85f81fc1e7cc652030f6a39732159a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `checkout_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_shop_amount": {"name": "total_duties_shop_amount", "description": "The total duties of the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_pres_amount": {"name": "total_duties_pres_amount", "description": "The total duties of the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_shop_currency_code": {"name": "total_duties_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_pres_currency_code": {"name": "total_duties_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_amount": {"name": "total_line_items_price_shop_amount", "description": "The sum of the prices of all line items in the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_amount": {"name": "total_line_items_price_pres_amount", "description": "The sum of the prices of all line items in the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_currency_code": {"name": "total_line_items_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_currency_code": {"name": "total_line_items_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The sum of all the taxes applied to the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The sum of all the taxes applied to the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "completed_at": {"name": "completed_at", "description": "The date and time when the buyer completed the checkout. Null if the checkout has not been completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The price of the checkout before shipping and taxes in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The price of the checkout before shipping and taxes in *presentment* currencyy. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.9472687, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__abandoned_checkout_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_shopify_gql__abandoned_checkout_tmp')),\n staging_columns=get_graphql_abandoned_checkout_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n customer_id,\n id as checkout_id,\n name,\n note,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n taxes_included as has_taxes_included,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_duties_set_shop_amount as total_duties_shop_amount,\n total_duties_set_shop_currency_code as total_duties_shop_currency_code,\n total_duties_set_pres_amount as total_duties_pres_amount,\n total_duties_set_pres_currency_code as total_duties_pres_currency_code,\n total_line_items_price_set_shop_amount as total_line_items_price_shop_amount,\n total_line_items_price_set_shop_currency_code as total_line_items_price_shop_currency_code,\n total_line_items_price_set_pres_amount as total_line_items_price_pres_amount,\n total_line_items_price_set_pres_currency_code as total_line_items_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(completed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as completed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_abandoned_checkout_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n abandoned_checkout_url\n \n as \n \n abandoned_checkout_url\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n completed_at\n \n as \n \n completed_at\n \n, \n \n \n customer_id\n \n as \n \n customer_id\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 note\n \n as \n \n note\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n subtotal_price_set_pres_amount\n \n as \n \n subtotal_price_set_pres_amount\n \n, \n \n \n subtotal_price_set_pres_currency_code\n \n as \n \n subtotal_price_set_pres_currency_code\n \n, \n \n \n subtotal_price_set_shop_amount\n \n as \n \n subtotal_price_set_shop_amount\n \n, \n \n \n subtotal_price_set_shop_currency_code\n \n as \n \n subtotal_price_set_shop_currency_code\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n total_discount_set_pres_amount\n \n as \n \n total_discount_set_pres_amount\n \n, \n \n \n total_discount_set_pres_currency_code\n \n as \n \n total_discount_set_pres_currency_code\n \n, \n \n \n total_discount_set_shop_amount\n \n as \n \n total_discount_set_shop_amount\n \n, \n \n \n total_discount_set_shop_currency_code\n \n as \n \n total_discount_set_shop_currency_code\n \n, \n \n \n total_duties_set_pres_amount\n \n as \n \n total_duties_set_pres_amount\n \n, \n \n \n total_duties_set_pres_currency_code\n \n as \n \n total_duties_set_pres_currency_code\n \n, \n \n \n total_duties_set_shop_amount\n \n as \n \n total_duties_set_shop_amount\n \n, \n \n \n total_duties_set_shop_currency_code\n \n as \n \n total_duties_set_shop_currency_code\n \n, \n \n \n total_line_items_price_set_pres_amount\n \n as \n \n total_line_items_price_set_pres_amount\n \n, \n \n \n total_line_items_price_set_pres_currency_code\n \n as \n \n total_line_items_price_set_pres_currency_code\n \n, \n \n \n total_line_items_price_set_shop_amount\n \n as \n \n total_line_items_price_set_shop_amount\n \n, \n \n \n total_line_items_price_set_shop_currency_code\n \n as \n \n total_line_items_price_set_shop_currency_code\n \n, \n \n \n total_price_set_pres_amount\n \n as \n \n total_price_set_pres_amount\n \n, \n \n \n total_price_set_pres_currency_code\n \n as \n \n total_price_set_pres_currency_code\n \n, \n \n \n total_price_set_shop_amount\n \n as \n \n total_price_set_shop_amount\n \n, \n \n \n total_price_set_shop_currency_code\n \n as \n \n total_price_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n customer_id,\n id as checkout_id,\n name,\n note,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n taxes_included as has_taxes_included,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_duties_set_shop_amount as total_duties_shop_amount,\n total_duties_set_shop_currency_code as total_duties_shop_currency_code,\n total_duties_set_pres_amount as total_duties_pres_amount,\n total_duties_set_pres_currency_code as total_duties_pres_currency_code,\n total_line_items_price_set_shop_amount as total_line_items_price_shop_amount,\n total_line_items_price_set_shop_currency_code as total_line_items_price_shop_currency_code,\n total_line_items_price_set_pres_amount as total_line_items_price_pres_amount,\n total_line_items_price_set_pres_currency_code as total_line_items_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n cast(\n cast(cast(completed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as completed_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_bxgy.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_bxgy.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_bxgy"], "alias": "stg_shopify_gql__discount_code_bxgy", "checksum": {"name": "sha256", "checksum": "8a278226cd258f939cddc99dc0bfaaf6eeb8173af7ecef73c6cee066cffb65d6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for Buy X Get Y-style discount codes in Shopify, where discounts are applied based on product quantity thresholds.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.969121, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_bxgy_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_shopify_gql__discount_code_bxgy_tmp')),\n staging_columns=get_graphql_discount_code_bxgy_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n total_sales_amount,\n total_sales_currency_code, \n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_bxgy_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_bxgy_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_bxgy.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n total_sales_amount,\n total_sales_currency_code, \n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__tax_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__tax_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tax_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__tax_line"], "alias": "stg_shopify_gql__tax_line", "checksum": {"name": "sha256", "checksum": "7c3265693bb444db83715b94d4923ebc32f8d385562f5dd4b570230542e309d6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a single tax applied to the associated line item.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The amount of tax in customer currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The amount of tax in shop currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.0484576, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__tax_line_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_shopify_gql__tax_line_tmp')),\n staging_columns=get_graphql_tax_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_line_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n price_set_pres_amount\n \n as \n \n price_set_pres_amount\n \n, \n \n \n price_set_pres_currency_code\n \n as \n \n price_set_pres_currency_code\n \n, \n \n \n price_set_shop_amount\n \n as \n \n price_set_shop_amount\n \n, \n \n \n price_set_shop_currency_code\n \n as \n \n price_set_shop_currency_code\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_line_refund.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_line_refund.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_line_refund"], "alias": "stg_shopify_gql__order_line_refund", "checksum": {"name": "sha256", "checksum": "0402af2a04adb3d40bbdc43cd8f592cecec885892b79aedebe455210880640fe"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item refund in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_refund_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_line_refund_id": {"name": "order_line_refund_id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location where the items will be restocked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_pres_amount": {"name": "subtotal_pres_amount", "description": "The refunded subtotal amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_pres_currency_code": {"name": "subtotal_pres_currency_code", "description": "The three letter currency code for the subtotal the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_shop_amount": {"name": "subtotal_shop_amount", "description": "The refunded subtotal amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_shop_currency_code": {"name": "subtotal_shop_currency_code", "description": "The three letter currency code for the subtotal in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three letter currency code of the tax the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three letter currency code of the tax in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.018645, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_line_refund_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_shopify_gql__order_line_refund_tmp')),\n staging_columns=get_graphql_order_line_refund_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal_set_pres_amount as subtotal_pres_amount,\n subtotal_set_pres_currency_code as subtotal_pres_currency_code,\n subtotal_set_shop_amount as subtotal_shop_amount,\n subtotal_set_shop_currency_code as subtotal_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n quantity,\n refund_id,\n lower(restock_type) as restock_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_refund_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_line_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_line_refund.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n restock_type\n \n as \n \n restock_type\n \n, \n \n \n subtotal_set_pres_amount\n \n as \n \n subtotal_set_pres_amount\n \n, \n \n \n subtotal_set_pres_currency_code\n \n as \n \n subtotal_set_pres_currency_code\n \n, \n \n \n subtotal_set_shop_amount\n \n as \n \n subtotal_set_shop_amount\n \n, \n \n \n subtotal_set_shop_currency_code\n \n as \n \n subtotal_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal_set_pres_amount as subtotal_pres_amount,\n subtotal_set_pres_currency_code as subtotal_pres_currency_code,\n subtotal_set_shop_amount as subtotal_shop_amount,\n subtotal_set_shop_currency_code as subtotal_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n quantity,\n refund_id,\n lower(restock_type) as restock_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_line_refund_tmp"], "alias": "stg_shopify_gql__order_line_refund_tmp", "checksum": {"name": "sha256", "checksum": "de5d8368b1e2f8a01f8457ecfb538f18f39940fbfd88a8bd4317449bdb3500d5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.664033, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line_refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_line_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_line_refund"], ["shopify_graphql", "order_line_refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_tmp"], "alias": "stg_shopify_gql__order_tmp", "checksum": {"name": "sha256", "checksum": "00d88df1afa1afc1c67823cb65c6c737c7efe99876be4543728c56578daa29fa"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.7027752, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order"], ["shopify_graphql", "order"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_application_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_application_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_application_tmp"], "alias": "stg_shopify_gql__discount_application_tmp", "checksum": {"name": "sha256", "checksum": "51b3cf65b837e23b8567427012151bc4daed3ddaa38887bf0f6ed09aa65f98d9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.7119312, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_application', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_application_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_application"], ["shopify_graphql", "discount_application"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_tmp"], "alias": "stg_shopify_gql__fulfillment_tmp", "checksum": {"name": "sha256", "checksum": "33c816c7194073933556f8e74f281eaea2e3f3c728d0cef25ac3270e69ac46b3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.7203321, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment"], ["shopify_graphql", "fulfillment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_event_tmp"], "alias": "stg_shopify_gql__fulfillment_event_tmp", "checksum": {"name": "sha256", "checksum": "b3d654e7eb8d3c87eed9e599ce914c626a86ec7426dd9501721e89556e6e3667"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.7288191, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_event', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_event_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_event"], ["shopify_graphql", "fulfillment_event"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_tag_tmp"], "alias": "stg_shopify_gql__product_tag_tmp", "checksum": {"name": "sha256", "checksum": "a24216b9e175dc892ba05ae61cef5b660627718f05f76c3773cd851609c471a0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.7376761, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_tag"], ["shopify_graphql", "product_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_tracking_info_tmp"], "alias": "stg_shopify_gql__fulfillment_tracking_info_tmp", "checksum": {"name": "sha256", "checksum": "916e15ae9d3b58b4bfaed65f98893baa84653e193472d33ec051a14323d7b859"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.7470083, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_tracking_info', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_tracking_info', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_tracking_info_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_tracking_info"], ["shopify_graphql", "fulfillment_tracking_info"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_shipping_tax_line_tmp"], "alias": "stg_shopify_gql__order_shipping_tax_line_tmp", "checksum": {"name": "sha256", "checksum": "2f563d319f6ab1e785c0c0dd8c46c7eb60b34036eab89dff6306ce7e0318dc2a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.7558753, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_shipping_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_shipping_tax_line"], ["shopify_graphql", "order_shipping_tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "alias": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "fadf9a4496c441981f39419454d443a7be6f42ffdb6b1d9be43a628ec71d06c1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.7647407, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_abandoned_checkout_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "abandoned_checkout_discount_code"], ["shopify_graphql", "abandoned_checkout_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_variant_media_tmp"], "alias": "stg_shopify_gql__product_variant_media_tmp", "checksum": {"name": "sha256", "checksum": "a6a402d3eb1fc91386b58803aeea45dbfa70f93ad6fcc44aebe193e37428c941"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.7735424, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_product_variant_media', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_variant_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_variant_media"], ["shopify_graphql", "product_variant_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_discount_code_tmp"], "alias": "stg_shopify_gql__order_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "e5f05cb907273a7d7faf0cb35b3f239d92e59bea6b53b3d9f874621d4702bacd"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.783369, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_discount_code"], ["shopify_graphql", "order_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__abandoned_checkout_tmp"], "alias": "stg_shopify_gql__abandoned_checkout_tmp", "checksum": {"name": "sha256", "checksum": "447fcf5964f191e3a35aac2df0126f572f80174deefc22e167e089b2c072d3ad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.7918599, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_tmp\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_abandoned_checkout_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "abandoned_checkout"], ["shopify_graphql", "abandoned_checkout"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_basic_tmp"], "alias": "stg_shopify_gql__discount_code_basic_tmp", "checksum": {"name": "sha256", "checksum": "3d2c8273708359c8f712f46e5d5178c0d6807fa06cddfac2cef2890f360b6bc2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.8007236, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_basic', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_basic_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_basic"], ["shopify_graphql", "discount_code_basic"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_item_tmp"], "alias": "stg_shopify_gql__inventory_item_tmp", "checksum": {"name": "sha256", "checksum": "562f5900bff17e2074910b889c93f479d175ca8d45a1c3a94c7f1145632af195"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.809203, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_item"], ["shopify_graphql", "inventory_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_allocation_tmp"], "alias": "stg_shopify_gql__discount_allocation_tmp", "checksum": {"name": "sha256", "checksum": "3031935efab97198e8bfd1d1818023693aed0298c4b4334573c1d099ccb4c8d2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.8187451, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_allocation', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_allocation_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_allocation"], ["shopify_graphql", "discount_allocation"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_note_attribute_tmp"], "alias": "stg_shopify_gql__order_note_attribute_tmp", "checksum": {"name": "sha256", "checksum": "1dc3d9e025bc87c95c74672a8a46a3e9751b91727f7e8de84c5d5c4b0ec7bca9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.8273299, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_note_attribute', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_note_attribute_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_note_attribute"], ["shopify_graphql", "order_note_attribute"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tax_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__tax_line_tmp"], "alias": "stg_shopify_gql__tax_line_tmp", "checksum": {"name": "sha256", "checksum": "b797f714cca33152d58d9f9371337be2af75ba71868a9c645a5b661e30953bdb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.8356984, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "tax_line"], ["shopify_graphql", "tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__media_tmp"], "alias": "stg_shopify_gql__media_tmp", "checksum": {"name": "sha256", "checksum": "835c3851c7d05b5f89f126d660881e1bd1ba913531e40059ebc9a18e5814a12b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.8441834, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "media"], ["shopify_graphql", "media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__tender_transaction_tmp"], "alias": "stg_shopify_gql__tender_transaction_tmp", "checksum": {"name": "sha256", "checksum": "999811b7c8c9bbb9ca1f553177635c3ff561ce3a498c54e7c2d16ef471dc94a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.852765, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tender_transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_tender_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "tender_transaction"], ["shopify_graphql", "tender_transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_media_tmp"], "alias": "stg_shopify_gql__product_media_tmp", "checksum": {"name": "sha256", "checksum": "9fec30aae73d36ed6755c3f429db455f56b87fdfb24affac6bb8110c833d7538"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.8625016, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_media"], ["shopify_graphql", "product_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_order_line_item_tmp"], "alias": "stg_shopify_gql__fulfillment_order_line_item_tmp", "checksum": {"name": "sha256", "checksum": "7da21a799b42d6572274d5c708e6c1820d534868af0169a999f3ba0baa558cf0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.8710487, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_order_line_item', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_order_line_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_order_line_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_order_line_item"], ["shopify_graphql", "fulfillment_order_line_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_variant_tmp"], "alias": "stg_shopify_gql__product_variant_tmp", "checksum": {"name": "sha256", "checksum": "49b89b7bc716e35589007a5ab8431b1371c4a468f4be3bffbba33558f287c85b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.8799136, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_variant_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_variant"], ["shopify_graphql", "product_variant"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__transaction_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__transaction_tmp"], "alias": "stg_shopify_gql__transaction_tmp", "checksum": {"name": "sha256", "checksum": "2e07b515aabc2fcadb617d88f8bd4b308339b0f2425445340e95c18fe47ea54f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.8884504, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "transaction"], ["shopify_graphql", "transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_adjustment_tmp"], "alias": "stg_shopify_gql__order_adjustment_tmp", "checksum": {"name": "sha256", "checksum": "41de7ec16964a262f4fa0545875703abc0c7d188982b1b9697770663e0e5557c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.8979876, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_adjustment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_adjustment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_adjustment"], ["shopify_graphql", "order_adjustment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "compiled": true, "compiled_code": "\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_tmp"], "alias": "stg_shopify_gql__customer_tmp", "checksum": {"name": "sha256", "checksum": "cbad42ba9c8311e55176c04ed3a661a3cf4a5ac59514099a69a595235769a2a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.9065514, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer"], ["shopify_graphql", "customer"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_redeem_code_tmp"], "alias": "stg_shopify_gql__discount_redeem_code_tmp", "checksum": {"name": "sha256", "checksum": "cfc36e942b2ec63cfed9b2ce3fffc11ae5f379cdd12ffb28389ed0380c25e6d0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.9150937, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_redeem_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_redeem_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_redeem_code"], ["shopify_graphql", "discount_redeem_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__location_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__location_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__location_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__location_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__location_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__location_tmp"], "alias": "stg_shopify_gql__location_tmp", "checksum": {"name": "sha256", "checksum": "6e50fc60b6453e907f266a407a8ffd9c7e0509261b61e3a62d79bd98ff8f9d16"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.9235985, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__location_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='location', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_location_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "location"], ["shopify_graphql", "location"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__location_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_visit_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_visit_tmp"], "alias": "stg_shopify_gql__customer_visit_tmp", "checksum": {"name": "sha256", "checksum": "a6f824dc3840066caffed56e0389dd7ef63cfb7814e79f0dbedf937bc738e392"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.93297, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_customer_visit', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_visit', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_visit_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_visit"], ["shopify_graphql", "customer_visit"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_image_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_image_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_image_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__media_image_tmp"], "alias": "stg_shopify_gql__media_image_tmp", "checksum": {"name": "sha256", "checksum": "30d02cd315c4bc627fdb2de7d2c4910b8401ec97e7f9bd572c2f4efb219d3059"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.9418783, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media_image', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_media_image_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "media_image"], ["shopify_graphql", "media_image"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_media_image_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_product_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_product_tmp"], "alias": "stg_shopify_gql__collection_product_tmp", "checksum": {"name": "sha256", "checksum": "265042e513f9f41755e3d67cb838c5a4bc2a0f30f0005797170d61c7c68c506f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.9503422, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection_product"], ["shopify_graphql", "collection_product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__shop_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__shop_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__shop_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__shop_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__shop_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__shop_tmp"], "alias": "stg_shopify_gql__shop_tmp", "checksum": {"name": "sha256", "checksum": "484564c85bbddaca318f1165dc0418a31023ea29c6ff8bc0531246eeb8d59a1c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.9587882, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__shop_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='shop', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_shop_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "shop"], ["shopify_graphql", "shop"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__shop_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_shop_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_tmp"], "alias": "stg_shopify_gql__product_tmp", "checksum": {"name": "sha256", "checksum": "d6bdb88269a24c1e7e047ad5cbcd7cb41689fdfe4028c6b73feb2cf06f5d8c4e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.9682145, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product"], ["shopify_graphql", "product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_app_tmp"], "alias": "stg_shopify_gql__discount_code_app_tmp", "checksum": {"name": "sha256", "checksum": "42d515dfaa9edf7645c90b5d4e3fba1b10ce11c8e33e5f9004dc3286c70abbb5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.976727, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_discount_code_app', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_app', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_app_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_app"], ["shopify_graphql", "discount_code_app"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_line_tmp"], "alias": "stg_shopify_gql__order_line_tmp", "checksum": {"name": "sha256", "checksum": "8d070802154be87b0f6abc6a84d1cc04a7479c71e72d51f9c29e9b84ff0a4470"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.9855099, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_line"], ["shopify_graphql", "order_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__metafield_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__metafield_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__metafield_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__metafield_tmp"], "alias": "stg_shopify_gql__metafield_tmp", "checksum": {"name": "sha256", "checksum": "745867433e8c372b8247770c5511da696b44146d8a9cecbb805e2fbccc407b1b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574967.9939167, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_metafield', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='metafield', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_metafield_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "metafield"], ["shopify_graphql", "metafield"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_metafield_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_tag_tmp"], "alias": "stg_shopify_gql__order_tag_tmp", "checksum": {"name": "sha256", "checksum": "ef3af11883c240380fbddf262db8be9cd7d8008833e23746bc1c7268ba0a43e1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574968.00379, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_tag"], ["shopify_graphql", "order_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_quantity_tmp"], "alias": "stg_shopify_gql__inventory_quantity_tmp", "checksum": {"name": "sha256", "checksum": "07d53773e990ce9f6350463bc39d7d11d10a77623f572ba7e12f9d4ec1fc637c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574968.0122473, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_quantity', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_quantity_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_quantity"], ["shopify_graphql", "inventory_quantity"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_tag_tmp"], "alias": "stg_shopify_gql__customer_tag_tmp", "checksum": {"name": "sha256", "checksum": "6c9353c051ba91aace024c85f929cfe6f1fc74e9bf69e7c185ba5abc16b3bad0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574968.0206597, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_tag"], ["shopify_graphql", "customer_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_tmp"], "alias": "stg_shopify_gql__collection_tmp", "checksum": {"name": "sha256", "checksum": "13622f8f6269a36bc80ce5b592234d5f1b7c88cbf80e19bf6d50aa4c8886d4ab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574968.0292423, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection"], ["shopify_graphql", "collection"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__collection_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_collection_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_shipping_line_tmp"], "alias": "stg_shopify_gql__order_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "48a6b1d4908a3a78e6f338213ae2230d0666ea0fd398dc7df1ce269582c553a8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574968.1151485, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_shipping_line"], ["shopify_graphql", "order_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_free_shipping_tmp"], "alias": "stg_shopify_gql__discount_code_free_shipping_tmp", "checksum": {"name": "sha256", "checksum": "de9a7bc807b211bfad12ecd0bbffc6f5566d4f52164b3bc66f5bb79a363ac4a1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574968.1235642, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_free_shipping', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_free_shipping_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_free_shipping"], ["shopify_graphql", "discount_code_free_shipping"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__refund_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__refund_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__refund_tmp"], "alias": "stg_shopify_gql__refund_tmp", "checksum": {"name": "sha256", "checksum": "a11a22eb9bcb9a62e27a0e2ce13c47296be38a753bd3a1fa9df5e8c90c1af4ab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574968.1320055, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "refund"], ["shopify_graphql", "refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__refund_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_level_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_level_tmp"], "alias": "stg_shopify_gql__inventory_level_tmp", "checksum": {"name": "sha256", "checksum": "e940f5fe7081ecb499500343359757242bb316d24954bd29464cccb19e675125"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574968.140435, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_level', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_level_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_level"], ["shopify_graphql", "inventory_level"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_bxgy_tmp"], "alias": "stg_shopify_gql__discount_code_bxgy_tmp", "checksum": {"name": "sha256", "checksum": "74f77e4738c5c72ca63e005803146b7cdce868cd42f4187da43c47e040a9a713"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574968.1498785, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_bxgy', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_bxgy_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_bxgy"], ["shopify_graphql", "discount_code_bxgy"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_address_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_address_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_address_tmp"], "alias": "stg_shopify_gql__customer_address_tmp", "checksum": {"name": "sha256", "checksum": "3df59d0c9b1202ab5431236c9ffd08af4840856ea7e880991c6247ca328c89f4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574968.1583118, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_address', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_address_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_address"], ["shopify_graphql", "customer_address"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_allocation.sql", "original_file_path": "models/rest/stg_shopify__discount_allocation.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation", "fqn": ["shopify_source", "rest", "stg_shopify__discount_allocation"], "alias": "stg_shopify__discount_allocation", "checksum": {"name": "sha256", "checksum": "834136ae3fedb83876370eb77b57f96fe24028aee02681d1dc2ac6d0d7d3553e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing allocation amounts from discount applications across specific order lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The presentment money currency code for the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The shop money currency code for the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to. Used to join with the discount application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount allocation within the list of allocations on an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8293068, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_allocation_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_shopify__discount_allocation_tmp')),\n staging_columns=get_discount_allocation_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_allocation_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_allocation.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set_presentment_money_amount\n \n as \n \n amount_set_presentment_money_amount\n \n, \n \n \n amount_set_presentment_money_currency_code\n \n as \n \n amount_set_presentment_money_currency_code\n \n, \n \n \n amount_set_shop_money_amount\n \n as \n \n amount_set_shop_money_amount\n \n, \n \n \n amount_set_shop_money_currency_code\n \n as \n \n amount_set_shop_money_currency_code\n \n, \n \n \n discount_application_index\n \n as \n \n discount_application_index\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_free_shipping.sql", "original_file_path": "models/rest/stg_shopify__discount_code_free_shipping.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_free_shipping"], "alias": "stg_shopify__discount_code_free_shipping", "checksum": {"name": "sha256", "checksum": "6cfeea54c8a7056fa680b926c2ae6ceeb594bf4e1a9857799b875bae0d73fc53"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for free shipping discount codes in Shopify, where shipping costs are discounted based on qualifying conditions.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.836389, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_free_shipping_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_shopify__discount_code_free_shipping_tmp')),\n staging_columns=get_discount_code_free_shipping_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_free_shipping_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_free_shipping.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_basic.sql", "original_file_path": "models/rest/stg_shopify__discount_code_basic.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_basic"], "alias": "stg_shopify__discount_code_basic", "checksum": {"name": "sha256", "checksum": "36e6431d35cf4791624e49bc76a0f3124e087452e777031fcfb250818ba0b9b5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata about basic discount codes created by merchants.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8334656, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_basic_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_shopify__discount_code_basic_tmp')),\n staging_columns=get_discount_code_basic_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_basic_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_basic.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as TEXT) as \n \n title\n \n , \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_app.sql", "original_file_path": "models/rest/stg_shopify__discount_code_app.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_app"], "alias": "stg_shopify__discount_code_app", "checksum": {"name": "sha256", "checksum": "3ff36db72d417bd6de0b40cba77865f1fcb5f0e5f3b6dc9fff266db6324a3b13"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for discount codes created through third-party apps in Shopify.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8319607, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"", "raw_code": "{{ config(enabled=(var('shopify_using_discount_code_app', False) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_app_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_shopify__discount_code_app_tmp')),\n staging_columns=get_discount_code_app_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_app_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_app.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count_count\n \n as \n \n codes_count_count\n \n, \n \n \n codes_count_precision\n \n as \n \n codes_count_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__shop": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__shop.sql", "original_file_path": "models/rest/stg_shopify__shop.sql", "unique_id": "model.shopify_source.stg_shopify__shop", "fqn": ["shopify_source", "rest", "stg_shopify__shop"], "alias": "stg_shopify__shop", "checksum": {"name": "sha256", "checksum": "5530f9eaba5fde4a59b8556a0f242759bc63e380c45442ae1d5bc2a95225c3af"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_checkout_api_supported": {"name": "has_checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_county_taxes": {"name": "has_county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_card_reader_giveaway": {"name": "is_eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_payments": {"name": "is_eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_google_apps_login_enabled": {"name": "is_google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_password_enabled": {"name": "is_password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_pre_launch_enabled": {"name": "is_pre_launch_enabled", "description": "Boolean representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_extra_payments_agreement_required": {"name": "is_extra_payments_agreement_required", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_setup_required": {"name": "is_setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_shipping_taxes": {"name": "has_shipping_taxes", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included_in_price": {"name": "has_taxes_included_in_price", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8179147, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__shop_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__shop_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_shop_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n {{ shopify_source.json_to_string(\"enabled_presentment_currencies\", source_columns_in_relation) }} as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop_tmp", "package": null, "version": null}, {"name": "stg_shopify__shop_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_shop_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__shop_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__shop.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\n \n, \n \n \n checkout_api_supported\n \n as \n \n checkout_api_supported\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n cookie_consent_level\n \n as \n \n cookie_consent_level\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n county_taxes\n \n as \n \n county_taxes\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_email\n \n as \n \n customer_email\n \n, \n \n \n domain\n \n as \n \n domain\n \n, \n \n \n eligible_for_card_reader_giveaway\n \n as \n \n eligible_for_card_reader_giveaway\n \n, \n \n \n eligible_for_payments\n \n as \n \n eligible_for_payments\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n enabled_presentment_currencies\n \n as \n \n enabled_presentment_currencies\n \n, \n \n \n google_apps_domain\n \n as \n \n google_apps_domain\n \n, \n \n \n google_apps_login_enabled\n \n as \n \n google_apps_login_enabled\n \n, \n \n \n has_discounts\n \n as \n \n has_discounts\n \n, \n \n \n has_gift_cards\n \n as \n \n has_gift_cards\n \n, \n \n \n has_storefront\n \n as \n \n has_storefront\n \n, \n \n \n iana_timezone\n \n as \n \n iana_timezone\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 longitude\n \n as \n \n longitude\n \n, \n \n \n money_format\n \n as \n \n money_format\n \n, \n \n \n money_in_emails_format\n \n as \n \n money_in_emails_format\n \n, \n \n \n money_with_currency_format\n \n as \n \n money_with_currency_format\n \n, \n \n \n money_with_currency_in_emails_format\n \n as \n \n money_with_currency_in_emails_format\n \n, \n \n \n myshopify_domain\n \n as \n \n myshopify_domain\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n password_enabled\n \n as \n \n password_enabled\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n plan_display_name\n \n as \n \n plan_display_name\n \n, \n \n \n plan_name\n \n as \n \n plan_name\n \n, \n \n \n pre_launch_enabled\n \n as \n \n pre_launch_enabled\n \n, \n \n \n primary_locale\n \n as \n \n primary_locale\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n requires_extra_payments_agreement\n \n as \n \n requires_extra_payments_agreement\n \n, \n \n \n setup_required\n \n as \n \n setup_required\n \n, \n \n \n shop_owner\n \n as \n \n shop_owner\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n tax_shipping\n \n as \n \n tax_shipping\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n enabled_presentment_currencies as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_line.sql", "original_file_path": "models/rest/stg_shopify__order_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_line"], "alias": "stg_shopify__order_line", "checksum": {"name": "sha256", "checksum": "36ea0a90f4476fd400178aa8b6a37b2d30c8bc5325f7ff8dc0670ecd740f5def"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.765463, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_line_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_tmp')),\n staging_columns=get_order_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_pass_through_columns') }}\n\n from fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fulfillable_quantity\n \n as \n \n fulfillable_quantity\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n gift_card\n \n as \n \n gift_card\n \n, \n \n \n grams\n \n as \n \n grams\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n pre_tax_price\n \n as \n \n pre_tax_price\n \n, \n cast(null as TEXT) as \n \n pre_tax_price_set\n \n , \n \n \n price\n \n as \n \n price\n \n, \n cast(null as TEXT) as \n \n price_set\n \n , \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n cast(null as TEXT) as \n \n tax_code\n \n , \n \n \n title\n \n as \n \n title\n \n, \n \n \n total_discount\n \n as \n \n total_discount\n \n, \n cast(null as TEXT) as \n \n total_discount_set\n \n , \n \n \n variant_id\n \n as \n \n variant_id\n \n, \n cast(null as TEXT) as \n \n variant_title\n \n , \n cast(null as TEXT) as \n \n variant_inventory_management\n \n , \n \n \n vendor\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n properties\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__tax_line.sql", "original_file_path": "models/rest/stg_shopify__tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line", "fqn": ["shopify_source", "rest", "stg_shopify__tax_line"], "alias": "stg_shopify__tax_line", "checksum": {"name": "sha256", "checksum": "d69e6962393ead5e08c53a74bb2310b91352db44f50335ebb42e923f996baba5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.827006, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__tax_line_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_shopify__tax_line_tmp')),\n staging_columns=get_tax_line_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_quantity.sql", "original_file_path": "models/rest/stg_shopify__inventory_quantity.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_quantity"], "alias": "stg_shopify__inventory_quantity", "checksum": {"name": "sha256", "checksum": "ceec14a24511cf768af52d91c6ee0c193dc4871c832b3a4136ed4ed7497f98dc"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The total quantity of the inventory item available at all locations.", "columns": {"inventory_quantity_id": {"name": "inventory_quantity_id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_state_name": {"name": "inventory_state_name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.7984724, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_quantity_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_shopify__inventory_quantity_tmp')),\n staging_columns=get_inventory_quantity_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_quantity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_quantity.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_level_id\n \n as \n \n inventory_level_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_shipping_tax_line.sql", "original_file_path": "models/rest/stg_shopify__order_shipping_tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_shipping_tax_line"], "alias": "stg_shopify__order_shipping_tax_line", "checksum": {"name": "sha256", "checksum": "26fc98d9b37f25a22d931bc0786714888c2e7809a61b9e2cdd84c6c02c1deee4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this record is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8075774, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_tax_line_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_shopify__order_shipping_tax_line_tmp')),\n staging_columns=get_order_shipping_tax_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_shipping_tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_shipping_line_id\n \n as \n \n order_shipping_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_shipping_line.sql", "original_file_path": "models/rest/stg_shopify__order_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_shipping_line"], "alias": "stg_shopify__order_shipping_line", "checksum": {"name": "sha256", "checksum": "2a53345accb04b023d123b631a1fe94ad8a69fd7e81658e7f9b0c26389f4fa02"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_third_party_required": {"name": "is_third_party_required", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.80662, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_line_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_shopify__order_shipping_line_tmp')),\n staging_columns=get_order_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n discounted_price_set\n \n as \n \n discounted_price_set\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__refund.sql", "original_file_path": "models/rest/stg_shopify__refund.sql", "unique_id": "model.shopify_source.stg_shopify__refund", "fqn": ["shopify_source", "rest", "stg_shopify__refund"], "alias": "stg_shopify__refund", "checksum": {"name": "sha256", "checksum": "bda33a385dc2880adba5bbe2cf033de9509cc5389c76ef11e2c4923f757ef0b8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a refund within Shopify.", "columns": {"refund_id": {"name": "refund_id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.7833052, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__refund_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__refund_tmp')),\n staging_columns=get_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__refund.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n restock\n \n as \n \n restock\n \n, \n \n \n total_duties_set\n \n as \n \n total_duties_set\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_redeem_code.sql", "original_file_path": "models/rest/stg_shopify__discount_redeem_code.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code", "fqn": ["shopify_source", "rest", "stg_shopify__discount_redeem_code"], "alias": "stg_shopify__discount_redeem_code", "checksum": {"name": "sha256", "checksum": "999024fc5a37f651b415e8f306756d8c0a6c78043c125950dd1cb95377237b6d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each redeem code is tied to a parent discount and may be created by an app or manually.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This is updated asynchronously and may differ from real-time usage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (typically an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount the redeem code is associated with (e.g., `discount_code_basic`, `discount_code_app`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8373663, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_redeem_code_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_shopify__discount_redeem_code_tmp')),\n staging_columns=get_discount_redeem_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_redeem_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_redeem_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_by_description\n \n as \n \n created_by_description\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_by_title\n \n as \n \n created_by_title\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n discount_type\n \n as \n \n discount_type\n \n, \n \n \n id\n \n as \n \n id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_bxgy.sql", "original_file_path": "models/rest/stg_shopify__discount_code_bxgy.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_bxgy"], "alias": "stg_shopify__discount_code_bxgy", "checksum": {"name": "sha256", "checksum": "b47ced0eb2ea79958678c2ed4453bb46573b8b484f255c2e709af7ebe51453b8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for Buy X Get Y-style discount codes in Shopify, where discounts are applied based on product quantity thresholds.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8349245, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_bxgy_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_shopify__discount_code_bxgy_tmp')),\n staging_columns=get_discount_code_bxgy_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_bxgy_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_bxgy.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n cast(null as integer) as \n \n recurring_cycle_limit\n \n , \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_image": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__media_image.sql", "original_file_path": "models/rest/stg_shopify__media_image.sql", "unique_id": "model.shopify_source.stg_shopify__media_image", "fqn": ["shopify_source", "rest", "stg_shopify__media_image"], "alias": "stg_shopify__media_image", "checksum": {"name": "sha256", "checksum": "3a6ae116ff7a7f495476ef47c6bd942d29fe17f4e5a683e88323c3e05877e556"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "Specifies the location of the product image, hashed for privacy. Coalesced with the deprecated `src` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8022926, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__media_image_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_image_tmp')),\n staging_columns=get_media_image_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_image_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_image_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__media_image_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__media_image.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout"], "alias": "stg_shopify__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "f8f4974bab648fcae4b0a95ec02701aad1981cc01d748404977a3bfac64de65a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_currency": {"name": "shop_currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.789661, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_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_shopify__abandoned_checkout_tmp')),\n staging_columns=get_abandoned_checkout_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n abandoned_checkout_url\n \n as \n \n abandoned_checkout_url\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n cast(null as TEXT) as \n \n billing_address_address_2\n \n , \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_locale\n \n as \n \n customer_locale\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n presentment_currency\n \n as \n \n presentment_currency\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n cast(null as TEXT) as \n \n shipping_address_address_2\n \n , \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n \n \n total_duties\n \n as \n \n total_duties\n \n, \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n \n \n total_price\n \n as \n \n total_price\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n user_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_discount_code.sql", "original_file_path": "models/rest/stg_shopify__order_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code", "fqn": ["shopify_source", "rest", "stg_shopify__order_discount_code"], "alias": "stg_shopify__order_discount_code", "checksum": {"name": "sha256", "checksum": "e8738ee571f2712e359118c5799400f39259f8aef959df3c6df84aa83d819b71"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.820935, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_discount_code_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_shopify__order_discount_code_tmp')),\n staging_columns=get_order_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_application.sql", "original_file_path": "models/rest/stg_shopify__discount_application.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application", "fqn": ["shopify_source", "rest", "stg_shopify__discount_application"], "alias": "stg_shopify__discount_application", "checksum": {"name": "sha256", "checksum": "eb9d6cd583dcf8522153a756ebd4b6179a68ebce8da489c17bee9b294d173ba8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing discount applications, which define how discounts were applied at the order level.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code associated with the application, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to all line items (`all`) or only those that are specifically entitled (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name or title of the discount as defined in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The value of the discount. If `value_type` is `percentage`, this represents a percentage. If `fixed_amount`, this is a fixed currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount value is a `percentage` or `fixed_amount`. If `target_type` is `shipping_line`, only `percentage` is accepted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.830532, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_application_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_shopify__discount_application_tmp')),\n staging_columns=get_discount_application_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_application_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_application_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_application.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocation_method\n \n as \n \n allocation_method\n \n, \n \n \n code\n \n as \n \n code\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 order_id\n \n as \n \n order_id\n \n, \n \n \n target_selection\n \n as \n \n target_selection\n \n, \n \n \n target_type\n \n as \n \n target_type\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value\n \n as \n \n value\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_media.sql", "original_file_path": "models/rest/stg_shopify__product_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_media", "fqn": ["shopify_source", "rest", "stg_shopify__product_media"], "alias": "stg_shopify__product_media", "checksum": {"name": "sha256", "checksum": "e866179624b96dced4df610afe1303d19b741bd9fba169f6c706a897330f9556"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8101003, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_media_tmp')),\n staging_columns=get_product_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_variant_media.sql", "original_file_path": "models/rest/stg_shopify__product_variant_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media", "fqn": ["shopify_source", "rest", "stg_shopify__product_variant_media"], "alias": "stg_shopify__product_variant_media", "checksum": {"name": "sha256", "checksum": "2a19d359137d9e352d5ab42327cf191199d918cef118124f2aee0272c513bb70"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8108501, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"", "raw_code": "{{ config(enabled=(var('shopify_using_product_variant_media', False) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_media_tmp')),\n staging_columns=get_product_variant_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_variant_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order.sql", "original_file_path": "models/rest/stg_shopify__order.sql", "unique_id": "model.shopify_source.stg_shopify__order", "fqn": ["shopify_source", "rest", "stg_shopify__order"], "alias": "stg_shopify__order", "checksum": {"name": "sha256", "checksum": "6610716cd337bcefb217f0cf6588b855c6ecf4045a690e229a1c57b19b48241e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.7745068, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__order_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_order_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n {{ shopify_source.json_to_string(\"total_discounts_set\", source_columns_in_relation) }} as total_discounts_set,\n total_line_items_price,\n {{ shopify_source.json_to_string(\"total_line_items_price_set\", source_columns_in_relation) }} as total_line_items_price_set,\n total_price,\n {{ shopify_source.json_to_string(\"total_price_set\", source_columns_in_relation) }} as total_price_set,\n {{ shopify_source.json_to_string(\"total_tax_set\", source_columns_in_relation) }} as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(cancelled_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as cancelled_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n {{ shopify_source.json_to_string(\"total_shipping_price_set\", source_columns_in_relation) }} as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n cast(null as TEXT) as \n \n total_discounts_set\n \n , \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n cast(null as TEXT) as \n \n total_line_items_price_set\n \n , \n \n \n total_price\n \n as \n \n total_price\n \n, \n cast(null as TEXT) as \n \n total_price_set\n \n , \n cast(null as TEXT) as \n \n total_tax_set\n \n , \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n cast(null as float) as \n \n total_tip_received\n \n , \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n order_number\n \n as \n \n order_number\n \n, \n \n \n cancel_reason\n \n as \n \n cancel_reason\n \n, \n \n \n cancelled_at\n \n as \n \n cancelled_at\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n checkout_token\n \n as \n \n checkout_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n financial_status\n \n as \n \n financial_status\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n browser_ip\n \n as \n \n browser_ip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n cast(null as TEXT) as \n \n total_shipping_price_set\n \n , \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as integer) as \n \n app_id\n \n , \n cast(null as integer) as \n \n checkout_id\n \n , \n cast(null as TEXT) as \n \n client_details_user_agent\n \n , \n cast(null as TEXT) as \n \n customer_locale\n \n , \n cast(null as TEXT) as \n \n order_status_url\n \n , \n cast(null as TEXT) as \n \n presentment_currency\n \n , \n cast(null as boolean) as \n \n confirmed\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n total_discounts_set as total_discounts_set,\n total_line_items_price,\n total_line_items_price_set as total_line_items_price_set,\n total_price,\n total_price_set as total_price_set,\n total_tax_set as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(cancelled_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as cancelled_timestamp,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n total_shipping_price_set as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product.sql", "original_file_path": "models/rest/stg_shopify__product.sql", "unique_id": "model.shopify_source.stg_shopify__product", "fqn": ["shopify_source", "rest", "stg_shopify__product"], "alias": "stg_shopify__product", "checksum": {"name": "sha256", "checksum": "6a92711673f429c4465f05d51488c01ce9e270cbd8df0434bcbeac8809f3d370"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.775972, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_tmp')),\n staging_columns=get_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_pass_through_columns') }}\n\nfrom fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"\n\n),\n\nfields as (\n\n select\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 handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\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\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n status\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\nfrom fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout_shipping_line.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout_shipping_line"], "alias": "stg_shopify__abandoned_checkout_shipping_line", "checksum": {"name": "sha256", "checksum": "fbf2d9940115326795a88f5c018c2e369638ef804e59a09602f65814824ba483"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_code": {"name": "shipping_code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "abandoned_checkout_shipping_line_id": {"name": "abandoned_checkout_shipping_line_id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8247669, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_shipping_line_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_shopify__abandoned_checkout_shipping_line_tmp')),\n staging_columns=get_abandoned_checkout_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n delivery_expectation_range\n \n as \n \n delivery_expectation_range\n \n, \n \n \n delivery_expectation_range_max\n \n as \n \n delivery_expectation_range_max\n \n, \n \n \n delivery_expectation_range_min\n \n as \n \n delivery_expectation_range_min\n \n, \n \n \n delivery_expectation_type\n \n as \n \n delivery_expectation_type\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout_discount_code.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout_discount_code"], "alias": "stg_shopify__abandoned_checkout_discount_code", "checksum": {"name": "sha256", "checksum": "4f79565f0c0b60aaa4b9e6d55bb3d8e69dbc5e52a2bc952224ec9fc2777d5a08"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the discount codes from abandoned checkouts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8200088, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_discount_code_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_shopify__abandoned_checkout_discount_code_tmp')),\n staging_columns=get_abandoned_checkout_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n type\n \n as \n \n type\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 TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__customer_tag.sql", "original_file_path": "models/rest/stg_shopify__customer_tag.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag", "fqn": ["shopify_source", "rest", "stg_shopify__customer_tag"], "alias": "stg_shopify__customer_tag", "checksum": {"name": "sha256", "checksum": "7ddbfed95b8851221f0fcec884872362a389f01cf7a6e0fdfcf21fae5de68c35"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.7927957, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__customer_tag_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_shopify__customer_tag_tmp')),\n staging_columns=get_customer_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__customer_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__customer_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__collection_product.sql", "original_file_path": "models/rest/stg_shopify__collection_product.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product", "fqn": ["shopify_source", "rest", "stg_shopify__collection_product"], "alias": "stg_shopify__collection_product", "checksum": {"name": "sha256", "checksum": "0abb81383bce80941338fce6c30579fd7e729cce5a443d0921752640c0450779"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.7905245, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__collection_product_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_shopify__collection_product_tmp')),\n staging_columns=get_collection_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__collection_product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n collection_id\n \n as \n \n collection_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_variant.sql", "original_file_path": "models/rest/stg_shopify__product_variant.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant", "fqn": ["shopify_source", "rest", "stg_shopify__product_variant"], "alias": "stg_shopify__product_variant", "checksum": {"name": "sha256", "checksum": "8a25c78869bc4281ee618d06cc2a9154294d3a4d475d473f133a59ea72532f1a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_available_for_sale": {"name": "is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_components_required": {"name": "has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.7797287, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_tmp')),\n staging_columns=get_product_variant_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_variant_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_variant_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\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 updated_at\n \n as \n \n updated_at\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n position\n \n as \n \n position\n \n, \n \n \n inventory_policy\n \n as \n \n inventory_policy\n \n, \n \n \n compare_at_price\n \n as \n \n compare_at_price\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n barcode\n \n as \n \n barcode\n \n, \n cast(null as numeric(28,6)) as \n \n old_inventory_quantity\n \n , \n \n \n inventory_quantity\n \n as \n \n inventory_quantity\n \n, \n \n \n tax_code\n \n as \n \n tax_code\n \n, \n \n \n available_for_sale\n \n as \n \n available_for_sale\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n requires_components\n \n as \n \n requires_components\n \n, \n \n \n sellable_online_quantity\n \n as \n \n sellable_online_quantity\n \n, \n cast(null as TEXT) as \n \n fulfillment_service\n \n , \n cast(null as float) as \n \n grams\n \n , \n cast(null as TEXT) as \n \n inventory_management\n \n , \n cast(null as float) as \n \n weight\n \n , \n cast(null as TEXT) as \n \n weight_unit\n \n , \n cast(null as TEXT) as \n \n option_1\n \n , \n cast(null as TEXT) as \n \n option_2\n \n , \n cast(null as TEXT) as \n \n option_3\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_level.sql", "original_file_path": "models/rest/stg_shopify__inventory_level.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_level"], "alias": "stg_shopify__inventory_level", "checksum": {"name": "sha256", "checksum": "79a7a96d7bd30b27bd745353030e4bd5a8f5bfa29cdc816e938a7b323d0a1d01"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available_quantity": {"name": "available_quantity", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.7976239, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_level_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_shopify__inventory_level_tmp')),\n staging_columns=get_inventory_level_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_level_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_level_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_level.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n can_deactivate\n \n as \n \n can_deactivate\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deactivation_alert\n \n as \n \n deactivation_alert\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as integer) as \n \n available\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__location": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__location.sql", "original_file_path": "models/rest/stg_shopify__location.sql", "unique_id": "model.shopify_source.stg_shopify__location", "fqn": ["shopify_source", "rest", "stg_shopify__location"], "alias": "stg_shopify__location", "checksum": {"name": "sha256", "checksum": "9c5af83aa1e6cb6cae684e11bc8c6a6aea6e040e08b32e7e0ce556e6a657df69"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy": {"name": "is_legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8006394, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__location_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_shopify__location_tmp')),\n staging_columns=get_location_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location_tmp", "package": null, "version": null}, {"name": "stg_shopify__location_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_location_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__location_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__location.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\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_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n legacy\n \n as \n \n legacy\n \n, \n \n \n localized_country_name\n \n as \n \n localized_country_name\n \n, \n \n \n localized_province_name\n \n as \n \n localized_province_name\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_line_refund.sql", "original_file_path": "models/rest/stg_shopify__order_line_refund.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund", "fqn": ["shopify_source", "rest", "stg_shopify__order_line_refund"], "alias": "stg_shopify__order_line_refund", "checksum": {"name": "sha256", "checksum": "aa4df0e851d252ad4d9a27a7c0f36bcc0577026ab1e9b016b645a6250dd9d0c6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_line_refund_id": {"name": "order_line_refund_id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.760795, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_line_refund_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_refund_tmp')),\n staging_columns=get_order_line_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_refund_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_line_refund.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n subtotal\n \n as \n \n subtotal\n \n, \n \n \n subtotal_set\n \n as \n \n subtotal_set\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_tax_set\n \n as \n \n total_tax_set\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n restock_type\n \n as \n \n restock_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_url_tag.sql", "original_file_path": "models/rest/stg_shopify__order_url_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag", "fqn": ["shopify_source", "rest", "stg_shopify__order_url_tag"], "alias": "stg_shopify__order_url_tag", "checksum": {"name": "sha256", "checksum": "c20d1f6f0095e9d95f7694143ef693d91dc3438b40d254a451662414c1aa9699"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8092575, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_url_tag_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_shopify__order_url_tag_tmp')),\n staging_columns=get_order_url_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_url_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_url_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_tag.sql", "original_file_path": "models/rest/stg_shopify__product_tag.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag", "fqn": ["shopify_source", "rest", "stg_shopify__product_tag"], "alias": "stg_shopify__product_tag", "checksum": {"name": "sha256", "checksum": "30ae521143e47b36580f3e0c4bc03bf3a2b2d39e2f219078194419fd2ef0ba08"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8117201, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_tag_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_shopify__product_tag_tmp')),\n staging_columns=get_product_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__product_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_note_attribute.sql", "original_file_path": "models/rest/stg_shopify__order_note_attribute.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute", "fqn": ["shopify_source", "rest", "stg_shopify__order_note_attribute"], "alias": "stg_shopify__order_note_attribute", "checksum": {"name": "sha256", "checksum": "e2c49df60461bef5bfebae6311cc92fa0bef64467a5d22e5dcf31d0d18b31250"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8043823, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_note_attribute_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_shopify__order_note_attribute_tmp')),\n staging_columns=get_order_note_attribute_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_note_attribute_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_note_attribute.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_tag.sql", "original_file_path": "models/rest/stg_shopify__order_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag", "fqn": ["shopify_source", "rest", "stg_shopify__order_tag"], "alias": "stg_shopify__order_tag", "checksum": {"name": "sha256", "checksum": "e4d40846975eafeecc76f411ee433af97b1ffe1a24fd2d27a11b6a0b17f8096f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8084147, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_tag_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_shopify__order_tag_tmp')),\n staging_columns=get_order_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__collection.sql", "original_file_path": "models/rest/stg_shopify__collection.sql", "unique_id": "model.shopify_source.stg_shopify__collection", "fqn": ["shopify_source", "rest", "stg_shopify__collection"], "alias": "stg_shopify__collection", "checksum": {"name": "sha256", "checksum": "b14f356bbf20e962744b82a4ba45e57c6b82e6a988d3cfe60ce1cdf23b849904"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "rule_logic": {"name": "rule_logic", "description": "Whether the `rules` are disjunctive (logical `OR`) or conjunctive (logical `AND`)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparative relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values incline - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.7919557, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__collection_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__collection_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_collection_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n {{ shopify_source.json_to_string(\"rules\", source_columns_in_relation) }} as rules,\n sort_order,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__collection.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n disjunctive\n \n as \n \n disjunctive\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\n \n, \n \n \n rules\n \n as \n \n rules\n \n, \n \n \n sort_order\n \n as \n \n sort_order\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\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n rules as rules,\n sort_order,\n title,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__transaction.sql", "original_file_path": "models/rest/stg_shopify__transaction.sql", "unique_id": "model.shopify_source.stg_shopify__transaction", "fqn": ["shopify_source", "rest", "stg_shopify__transaction"], "alias": "stg_shopify__transaction", "checksum": {"name": "sha256", "checksum": "d1c4d552029ac5491af20f77ec0fd7a2a98236f3c25c2dc1e6a613a4dbbb10ad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.781709, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__transaction_tmp')) %}\n\nwith base as (\n\n select * from {{ ref('stg_shopify__transaction_tmp') }}\n\n),\n\nfields as (\n\n select\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n {{ shopify_source.json_to_string(\"receipt\", source_columns_in_relation) }} as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(authorization_expires_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as authorization_expires_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('transaction_pass_through_columns') }}\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__transaction.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * from \"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"\n\n),\n\nfields as (\n\n select\n\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\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 processed_at\n \n as \n \n processed_at\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n payment_avs_result_code\n \n as \n \n payment_avs_result_code\n \n, \n \n \n payment_credit_card_bin\n \n as \n \n payment_credit_card_bin\n \n, \n \n \n payment_cvv_result_code\n \n as \n \n payment_cvv_result_code\n \n, \n \n \n payment_credit_card_number\n \n as \n \n payment_credit_card_number\n \n, \n \n \n payment_credit_card_company\n \n as \n \n payment_credit_card_company\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n receipt\n \n as \n \n receipt\n \n, \n \n \n currency_exchange_id\n \n as \n \n currency_exchange_id\n \n, \n \n \n currency_exchange_adjustment\n \n as \n \n currency_exchange_adjustment\n \n, \n \n \n currency_exchange_original_amount\n \n as \n \n currency_exchange_original_amount\n \n, \n \n \n currency_exchange_final_amount\n \n as \n \n currency_exchange_final_amount\n \n, \n \n \n currency_exchange_currency\n \n as \n \n currency_exchange_currency\n \n, \n \n \n error_code\n \n as \n \n error_code\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as timestamp) as \n \n authorization_expires_at\n \n , \n \n \n \n \n \"authorization\"\n \n \n \n as authorization_code \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n receipt as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(authorization_expires_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as authorization_expires_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__media.sql", "original_file_path": "models/rest/stg_shopify__media.sql", "unique_id": "model.shopify_source.stg_shopify__media", "fqn": ["shopify_source", "rest", "stg_shopify__media"], "alias": "stg_shopify__media", "checksum": {"name": "sha256", "checksum": "fbddf6477f3a1498b88f3a0699a65e4395a7631bb615234a6338242df8580429"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing media metadata, including status and timestamps.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8014162, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_tmp')),\n staging_columns=get_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__metafield": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__metafield.sql", "original_file_path": "models/rest/stg_shopify__metafield.sql", "unique_id": "model.shopify_source.stg_shopify__metafield", "fqn": ["shopify_source", "rest", "stg_shopify__metafield"], "alias": "stg_shopify__metafield", "checksum": {"name": "sha256", "checksum": "e7e2a824bf892f5c1d89602d012a6ccdce8e45362840db93f341c741eb754596"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_id": {"name": "metafield_id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource_id": {"name": "owner_resource_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Coalescing of type and value_type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_reference": {"name": "metafield_reference", "description": "Combination of the namespace and key columns. This field is key for metafield mapping in downstream models.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating the most up to date record identified by the most recent updated_at field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574971.8035343, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield\"", "raw_code": "{{ config(enabled=(var('shopify_using_metafield', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__metafield_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_shopify__metafield_tmp')),\n staging_columns=get_metafield_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n lower({{ dbt.concat([\"namespace\",\"'_'\",\"key\"]) }}) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield_tmp", "package": null, "version": null}, {"name": "stg_shopify__metafield_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_metafield_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt.concat"], "nodes": ["model.shopify_source.stg_shopify__metafield_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__metafield.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n 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 id\n \n as \n \n id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n namespace\n \n as \n \n namespace\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n owner_resource\n \n as \n \n owner_resource\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n lower(namespace || '_' || key) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__tender_transaction.sql", "original_file_path": "models/rest/stg_shopify__tender_transaction.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction", "fqn": ["shopify_source", "rest", "stg_shopify__tender_transaction"], "alias": "stg_shopify__tender_transaction", "checksum": {"name": "sha256", "checksum": "d4d8a6ff82d57efdf1f1814199d70d44444154dc08519b85aad3258b7fadeaa6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8189504, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__tender_transaction_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_shopify__tender_transaction_tmp')),\n staging_columns=get_tender_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tender_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__tender_transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n payment_method\n \n as \n \n payment_method\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n remote_reference\n \n as \n \n remote_reference\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_adjustment.sql", "original_file_path": "models/rest/stg_shopify__order_adjustment.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment", "fqn": ["shopify_source", "rest", "stg_shopify__order_adjustment"], "alias": "stg_shopify__order_adjustment", "checksum": {"name": "sha256", "checksum": "c4ddb2ba573ce5e01cef92e306dabe987669b60eaee828727876182dec8d4537"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"order_adjustment_id": {"name": "order_adjustment_id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in the shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.7856975, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_adjustment_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_adjustment_tmp')),\n staging_columns=get_order_adjustment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_adjustment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_adjustment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_adjustment.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set\n \n as \n \n amount_set\n \n, \n \n \n tax_amount\n \n as \n \n tax_amount\n \n, \n \n \n tax_amount_set\n \n as \n \n tax_amount_set\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__fulfillment_event.sql", "original_file_path": "models/rest/stg_shopify__fulfillment_event.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event", "fqn": ["shopify_source", "rest", "stg_shopify__fulfillment_event"], "alias": "stg_shopify__fulfillment_event", "checksum": {"name": "sha256", "checksum": "2aa34203a0c3980df4a385721479ddf040698998be9432e7334d403a7e525e56"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_event_id": {"name": "fulfillment_event_id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.8260896, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"", "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_event_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_shopify__fulfillment_event_tmp')),\n staging_columns=get_fulfillment_event_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n {{ shopify_source.fivetran_convert_timezone(column='cast(estimated_delivery_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as estimated_delivery_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(happened_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__fulfillment_event.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\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 created_at\n \n as \n \n created_at\n \n, \n \n \n estimated_delivery_at\n \n as \n \n estimated_delivery_at\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n happened_at\n \n as \n \n happened_at\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 longitude\n \n as \n \n longitude\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n shop_id\n \n as \n \n shop_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n cast(\n cast(cast(estimated_delivery_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as estimated_delivery_at,\n cast(\n cast(cast(happened_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_item.sql", "original_file_path": "models/rest/stg_shopify__inventory_item.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_item"], "alias": "stg_shopify__inventory_item", "checksum": {"name": "sha256", "checksum": "853a6e06a16707a06826f7d445f609b75da97e7990fdb4386fb2bf47b5cd088b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item. Coalesced with the deprecated `cost` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.7963169, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_item_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_shopify__inventory_item_tmp')),\n staging_columns=get_inventory_item_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country_code_of_origin\n \n as \n \n country_code_of_origin\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n province_code_of_origin\n \n as \n \n province_code_of_origin\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tracked\n \n as \n \n tracked\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n duplicate_sku_count\n \n as \n \n duplicate_sku_count\n \n, \n \n \n harmonized_system_code\n \n as \n \n harmonized_system_code\n \n, \n \n \n inventory_history_url\n \n as \n \n inventory_history_url\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n measurement_id\n \n as \n \n measurement_id\n \n, \n \n \n measurement_weight_value\n \n as \n \n measurement_weight_value\n \n, \n \n \n measurement_weight_unit\n \n as \n \n measurement_weight_unit\n \n, \n \n \n tracked_editable_locked\n \n as \n \n tracked_editable_locked\n \n, \n \n \n tracked_editable_reason\n \n as \n \n tracked_editable_reason\n \n, \n \n \n unit_cost_amount\n \n as \n \n unit_cost_amount\n \n, \n \n \n unit_cost_currency_code\n \n as \n \n unit_cost_currency_code\n \n, \n cast(null as float) as \n \n cost\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__fulfillment.sql", "original_file_path": "models/rest/stg_shopify__fulfillment.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment", "fqn": ["shopify_source", "rest", "stg_shopify__fulfillment"], "alias": "stg_shopify__fulfillment", "checksum": {"name": "sha256", "checksum": "ca3697aa2d2acc4e0714a2689336a063495e3bc64cc9515944e36f7ee55f1810"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.7947662, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_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_shopify__fulfillment_tmp')),\n staging_columns=get_fulfillment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n shipment_status\n \n as \n \n shipment_status\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n tracking_company\n \n as \n \n tracking_company\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n tracking_numbers\n \n as \n \n tracking_numbers\n \n, \n \n \n tracking_urls\n \n as \n \n tracking_urls\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__customer.sql", "original_file_path": "models/rest/stg_shopify__customer.sql", "unique_id": "model.shopify_source.stg_shopify__customer", "fqn": ["shopify_source", "rest", "stg_shopify__customer"], "alias": "stg_shopify__customer", "checksum": {"name": "sha256", "checksum": "2493d71ed3533a8938368c51239486949c4a399cd4005d846f8008eb82b945e6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574971.7583172, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__customer_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n {{ shopify_source.fivetran_convert_timezone(column='cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as marketing_consent_updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n {{ fivetran_utils.fill_pass_through_columns('customer_pass_through_columns') }}\n\n from fields\n \n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__customer_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__customer.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accepts_marketing\n \n as \n \n accepts_marketing\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n default_address_id\n \n as \n \n default_address_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n orders_count\n \n as \n \n orders_count\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n tax_exempt\n \n as \n \n tax_exempt\n \n, \n \n \n total_spent\n \n as \n \n total_spent\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n verified_email\n \n as \n \n verified_email\n \n, \n cast(null as timestamp) as \n \n email_marketing_consent_consent_updated_at\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_opt_in_level\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_state\n \n , \n cast(null as TEXT) as \n \n note\n \n , \n cast(null as timestamp) as \n \n accepts_marketing_updated_at\n \n , \n cast(null as TEXT) as \n \n marketing_opt_in_level\n \n , \n cast(null as TEXT) as \n \n currency\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n cast(\n cast(cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as marketing_consent_updated_at,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n \n\n\n\n\n\n from fields\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__fulfillment_event_tmp"], "alias": "stg_shopify__fulfillment_event_tmp", "checksum": {"name": "sha256", "checksum": "f81a5b8e0dd6dbe917bcfeddf57d4d6ac608409132baad5cc131406c3143cb24"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.291322, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_event', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_event_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment_event"], ["shopify", "fulfillment_event"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__tender_transaction_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__tender_transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__tender_transaction_tmp"], "alias": "stg_shopify__tender_transaction_tmp", "checksum": {"name": "sha256", "checksum": "2ff3b509f93c78e9e47e8dce5e43f5c97a8ad66b5cb9b2ff68f9b4ddb37b502d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.3004804, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tender_transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tender_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tender_transaction"], ["shopify", "tender_transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__tender_transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tender_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_app_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_app_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_app_tmp"], "alias": "stg_shopify__discount_code_app_tmp", "checksum": {"name": "sha256", "checksum": "c633d1450d2ee190d81cb6f4267d15ed580e17bbcc5bbb0958f2f49a2bafc008"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.3089848, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_discount_code_app', False) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_app', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_app_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_app"], ["shopify", "discount_code_app"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_app_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_app_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__transaction_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__transaction_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__transaction_tmp"], "alias": "stg_shopify__transaction_tmp", "checksum": {"name": "sha256", "checksum": "fe66d5a0482b65f07d4d7173cd2aef146efabcf38e17fed7aa2e7d1d1f8b1f33"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.3186588, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "transaction"], ["shopify", "transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__collection_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__collection_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__collection_tmp"], "alias": "stg_shopify__collection_tmp", "checksum": {"name": "sha256", "checksum": "83677a641e5bf258065b60673dc391162a342de5ac494faafa9af5c370f048d7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.3269432, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection"], ["shopify", "collection"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__collection_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_image_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__media_image_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__media_image_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_image_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__media_image_tmp"], "alias": "stg_shopify__media_image_tmp", "checksum": {"name": "sha256", "checksum": "c4780240faf9cb4ab2a407a9419b94336727ec3b77d6bfb1ac753fc8c4179208"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.3353658, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media_image', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_image_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media_image"], ["shopify", "media_image"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__media_image_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_image_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_shipping_tax_line_tmp"], "alias": "stg_shopify__order_shipping_tax_line_tmp", "checksum": {"name": "sha256", "checksum": "5d38344e972f1093709af51973879e64d530563a4b82ec9d06d313db387c5318"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.3436732, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_tax_line"], ["shopify", "order_shipping_tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_item_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_item_tmp"], "alias": "stg_shopify__inventory_item_tmp", "checksum": {"name": "sha256", "checksum": "80078c5de257923b797af6925dace90a4bc9540ba0b787c0d94cd99f90fb2df9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.3519325, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_item"], ["shopify", "inventory_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_adjustment_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_adjustment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_adjustment_tmp"], "alias": "stg_shopify__order_adjustment_tmp", "checksum": {"name": "sha256", "checksum": "660c959bd994c8ebeb444328094cae630dae00be0ffdfecedb5e46d62635507d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.444082, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_adjustment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_adjustment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_adjustment"], ["shopify", "order_adjustment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_adjustment_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_adjustment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_quantity_tmp"], "alias": "stg_shopify__inventory_quantity_tmp", "checksum": {"name": "sha256", "checksum": "888a1894a42f30df0c772f9551fb3298534856d39b261bcab4c94f3e62fa4a8d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.4524639, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_quantity', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_quantity_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_quantity"], ["shopify", "inventory_quantity"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__customer_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__customer_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__customer_tmp"], "alias": "stg_shopify__customer_tmp", "checksum": {"name": "sha256", "checksum": "8186176eeffaabc3738d1e3aa65b2a56d1a708202122324f0169520faf245327"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.4607167, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer"], ["shopify", "customer"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__customer_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_discount_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_discount_code_tmp"], "alias": "stg_shopify__order_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "37a4d39417499542b5aeca8c362b51a3e3d95e6908f2a7a9af57b44e170c1046"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.468909, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_discount_code"], ["shopify", "order_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__fulfillment_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__fulfillment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__fulfillment_tmp"], "alias": "stg_shopify__fulfillment_tmp", "checksum": {"name": "sha256", "checksum": "93a633acef33eac51374633d67a9e6bf52c1c1b813b549c211bb9fd23cf16938"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.4781013, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment"], ["shopify", "fulfillment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__fulfillment_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_line_refund_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_line_refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_line_refund_tmp"], "alias": "stg_shopify__order_line_refund_tmp", "checksum": {"name": "sha256", "checksum": "19f0e79eaed071741c7e53e9b5e90e693184225cc4ca171806f698404df07126"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.4863942, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order line refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line_refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line_refund"], ["shopify", "order_line_refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_line_refund_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order line refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_tmp"], "alias": "stg_shopify__product_tmp", "checksum": {"name": "sha256", "checksum": "dd2e5338bf797082fe088c198911e406eb041e87cd28e1352a7a2835b0122ffe"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.4949207, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product"], ["shopify", "product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_discount_code_tmp"], "alias": "stg_shopify__abandoned_checkout_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "a6071b36e80e24d2b0cd31158419e657ac970ce35f8c6c9d3df08606bae64cdc"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.5033069, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_discount_code"], ["shopify", "abandoned_checkout_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__customer_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__customer_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__customer_tag_tmp"], "alias": "stg_shopify__customer_tag_tmp", "checksum": {"name": "sha256", "checksum": "cacc0b85d32b6695c089824f90b3d43e47ca479d9fd5b5751bf4d517d60f28be"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.513235, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer_tag"], ["shopify", "customer_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__customer_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_shipping_line_tmp"], "alias": "stg_shopify__abandoned_checkout_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "5197f889810c43cba25bb329b29fc36f1a2694481886a84d85db44061121e4ba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.521518, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_shipping_line"], ["shopify", "abandoned_checkout_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_free_shipping_tmp"], "alias": "stg_shopify__discount_code_free_shipping_tmp", "checksum": {"name": "sha256", "checksum": "daf2f7cefba4ef7cf8917d509e7a199b591e31ba3931e27a0b0d81e4e551184d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.5299747, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_free_shipping', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_free_shipping_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_free_shipping"], ["shopify", "discount_code_free_shipping"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_tag_tmp"], "alias": "stg_shopify__product_tag_tmp", "checksum": {"name": "sha256", "checksum": "6103799f99a890d76dc2ec51299412d9708fd31f94528fb71198148f4462a9b4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.5382087, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_tag"], ["shopify", "product_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_redeem_code_tmp"], "alias": "stg_shopify__discount_redeem_code_tmp", "checksum": {"name": "sha256", "checksum": "ee9513dba26602b035fed4f3b201585cf07e919856c51d1f846b7ffee8f71cca"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.5475485, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_redeem_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_redeem_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_redeem_code"], ["shopify", "discount_redeem_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__location_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__location_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__location_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__location_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__location_tmp"], "alias": "stg_shopify__location_tmp", "checksum": {"name": "sha256", "checksum": "b633d3eb65fefb379a9cd5f44ff617a1fc99c132ed5d0bb81e18c9bce0665013"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.5557642, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='location', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='location_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "location"], ["shopify", "location"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__location_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_tmp"], "alias": "stg_shopify__order_tmp", "checksum": {"name": "sha256", "checksum": "67e08e77af56b0e21cbe52d7cae143433d14a805c38eae3aeaaa6325e4849af5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.5639195, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order',\n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order"], ["shopify", "order"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__metafield_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__metafield_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__metafield_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__metafield_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__metafield_tmp"], "alias": "stg_shopify__metafield_tmp", "checksum": {"name": "sha256", "checksum": "5414a4c10292fcacadde27a458e5df75130c4f8c14e5b38887bc42eefb8a0b53"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.5721416, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_metafield', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='metafield', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='metafield_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "metafield"], ["shopify", "metafield"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__metafield_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_metafield_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__collection_product_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__collection_product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__collection_product_tmp"], "alias": "stg_shopify__collection_product_tmp", "checksum": {"name": "sha256", "checksum": "f210c463c05bd68110fb94b96ecc72832aa2b6c6bcbbd0faa14fd9e081f098ff"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.5820818, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection_product"], ["shopify", "collection_product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__collection_product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_allocation_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_allocation_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_allocation_tmp"], "alias": "stg_shopify__discount_allocation_tmp", "checksum": {"name": "sha256", "checksum": "eef0c91992b9834308249935e8ba406fd0c5782a684da3d90859ef1ae3db7040"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.5902534, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_allocation', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_allocation_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_allocation"], ["shopify", "discount_allocation"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_allocation_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_allocation_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_note_attribute_tmp"], "alias": "stg_shopify__order_note_attribute_tmp", "checksum": {"name": "sha256", "checksum": "2cc3882bae2ba3aa7c2110da7e9e80172971e9ca75b03700615c4ec0e85124af"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.5984535, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_note_attribute', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_note_attribute_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_note_attribute"], ["shopify", "order_note_attribute"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_basic_tmp"], "alias": "stg_shopify__discount_code_basic_tmp", "checksum": {"name": "sha256", "checksum": "6b6304e0f284579e79af69626b602eb9c4bd9de54c74e74b4956174d796d24fb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.6067302, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_basic', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_basic_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_basic"], ["shopify", "discount_code_basic"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_url_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_url_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_url_tag_tmp"], "alias": "stg_shopify__order_url_tag_tmp", "checksum": {"name": "sha256", "checksum": "9acc8c7614789de25d394b07b8638e54639ea5d0fcb75765963d0bca0f63f353"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.616249, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_url_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_url_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_url_tag"], ["shopify", "order_url_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_url_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_url_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__refund_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__refund_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__refund_tmp"], "alias": "stg_shopify__refund_tmp", "checksum": {"name": "sha256", "checksum": "0d3eceddf310b90dc85313e6286c98c2894031ab4569f3db315388dcaef32f8f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.6245158, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you create a refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "refund"], ["shopify", "refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__refund_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you create a refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__tax_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__tax_line_tmp"], "alias": "stg_shopify__tax_line_tmp", "checksum": {"name": "sha256", "checksum": "f904365c42217c601725c775a158e9dd20e3e0cd976b5df19c993275cdb49d6f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.632732, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tax_line"], ["shopify", "tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_tmp"], "alias": "stg_shopify__abandoned_checkout_tmp", "checksum": {"name": "sha256", "checksum": "725135b3d811e4e230601561e990f0c8f03ff22a855abd5b57e8152ae0093e43"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.6409526, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout"], ["shopify", "abandoned_checkout"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_bxgy_tmp"], "alias": "stg_shopify__discount_code_bxgy_tmp", "checksum": {"name": "sha256", "checksum": "bc9ed40d3831d9595a9522c0dd7c6afddc3ff313c1959896e1bc498d17f12551"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.6495142, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_bxgy', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_bxgy_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_bxgy"], ["shopify", "discount_code_bxgy"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__media_tmp"], "alias": "stg_shopify__media_tmp", "checksum": {"name": "sha256", "checksum": "0c94b30527a13af3563413d119affaec39c52720d8aca5223af84b9ad8c55eac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.65902, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media"], ["shopify", "media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_media_tmp"], "alias": "stg_shopify__product_media_tmp", "checksum": {"name": "sha256", "checksum": "a05118e90fbe264d9ec4586834a925938d4ffdc01126953864c80e75d1e1572f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.6672053, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_media"], ["shopify", "product_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_variant_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_variant_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_variant_tmp"], "alias": "stg_shopify__product_variant_tmp", "checksum": {"name": "sha256", "checksum": "1479b98d0d8fc9c6fd0ded96f6b0aa50e05e71a67bf61d54de8abac635aa1920"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.675391, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant"], ["shopify", "product_variant"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_variant_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_level_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_level_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_level_tmp"], "alias": "stg_shopify__inventory_level_tmp", "checksum": {"name": "sha256", "checksum": "7d78bc258a56f48d8968e1910dd797fe7d73a5d83d4bc165080ea5769a4f0727"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.6836414, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_level', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_level_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_level"], ["shopify", "inventory_level"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_level_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_level_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_application_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_application_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_application_tmp"], "alias": "stg_shopify__discount_application_tmp", "checksum": {"name": "sha256", "checksum": "303e6de79bb4d473c2d041c88a66aa1ee0a79961b5b044472cb5a5b2169cb622"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.6932487, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_application', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_application_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_application"], ["shopify", "discount_application"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_application_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_application_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_tag_tmp"], "alias": "stg_shopify__order_tag_tmp", "checksum": {"name": "sha256", "checksum": "a42066ecdf32f3882d6fa6a1c3df6b75d69ce0a4553375d3320a61f1a1de08f6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.7016468, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_tag"], ["shopify", "order_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__shop_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__shop_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__shop_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__shop_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__shop_tmp"], "alias": "stg_shopify__shop_tmp", "checksum": {"name": "sha256", "checksum": "e9f782471f9533f7b339be8a70a57196eb8135b5cfe449d2957810794f289803"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.7098653, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='shop', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='shop_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "shop"], ["shopify", "shop"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__shop_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_shop_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_variant_media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_variant_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_variant_media_tmp"], "alias": "stg_shopify__product_variant_media_tmp", "checksum": {"name": "sha256", "checksum": "cd139c183a1ca8cb8118db376fa3f7d1b31636685eb01ec485a82e75a7a28d65"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.7182624, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_product_variant_media', False) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant_media"], ["shopify", "product_variant_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_variant_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_line_tmp"], "alias": "stg_shopify__order_line_tmp", "checksum": {"name": "sha256", "checksum": "d8a2b2b7331a577fe56b007114d5e8d9c9422dec4bdc3a7a92ed4b975e811eab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.728284, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line"], ["shopify", "order_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_shipping_line_tmp"], "alias": "stg_shopify__order_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "14e60b7aefb49552134a34cdb90c47cd4ce6da6381d0586553738d7d4b823d6d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.736665, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_line"], ["shopify", "order_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__discounts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__discounts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__discounts.sql", "original_file_path": "models/graphql/shopify_gql__discounts.sql", "unique_id": "model.shopify.shopify_gql__discounts", "fqn": ["shopify", "graphql", "shopify_gql__discounts"], "alias": "shopify_gql__discounts", "checksum": {"name": "sha256", "checksum": "7a569223e2c4c3386f19482d1460516239b38fe1ff56f7c435ad56adcbe8a5e3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The case-insensitive discount code that customers use at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether the discount can be used only once per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "Number of times the discount has been used (asynchronously updated).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "Number of unique redeem codes associated with the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether `codes_count` is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "Timestamp when the discount ends or expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "Timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "Current status of the discount (e.g. 'active', 'expired', 'scheduled').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount\u2019s display name in the Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to 'all' or 'entitled' items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "How the discount value is interpreted (e.g., 'percentage', 'fixed_amount').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_discount_amount": {"name": "total_order_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off of orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_discount_amount": {"name": "total_abandoned_checkout_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_line_items_price": {"name": "total_order_line_items_price", "description": "Total monetary amount (in shop currency) of line items for orders that have used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_shipping_cost": {"name": "total_order_shipping_cost", "description": "Total shipping costs for orders that used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_refund_amount": {"name": "total_order_refund_amount", "description": "Total refunded amount (in shop currency) for orders that used this discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer emails who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_discount_amount": {"name": "avg_order_discount_amount", "description": "Average amount (in shop currency) of discount taken off orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "count_orders": {"name": "count_orders", "description": "Count of orders in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customers": {"name": "count_abandoned_checkout_customers", "description": "Distinct count of customers who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customer_emails": {"name": "count_abandoned_checkout_customer_emails", "description": "Distinct count of customer emails who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.0909164, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__discounts\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith discounts_enriched as (\n\n select *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as unique_key\n from {{ ref('int_shopify_gql__discount_code_enriched')}}\n),\n\norders_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__discounts_order_aggregates')}}\n),\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\nabandoned_checkouts_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__discounts_abandoned_checkouts')}}\n),\n{% endif %}\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n {% endif %} \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n {% endif %}\n)\n\nselect * \nfrom aggregates_joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__discount_code_enriched", "package": null, "version": null}, {"name": "int_shopify_gql__discounts_order_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__discounts_abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__discounts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n), __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__discounts_order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), discounts_enriched as (\n\n select *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_code_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n from __dbt__cte__int_shopify_gql__discount_code_enriched\n),\n\norders_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__discounts_order_aggregates\n),\n\n\nabandoned_checkouts_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts\n),\n\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n \n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n \n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n \n)\n\nselect * \nfrom aggregates_joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__discount_code_enriched", "sql": " __dbt__cte__int_shopify_gql__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n)"}, {"id": "model.shopify.int_shopify_gql__order_discount_code", "sql": " __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__discounts_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__discounts_order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}, {"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}, {"id": "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "sql": " __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__customer_emails": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_emails", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_emails.sql", "original_file_path": "models/graphql/shopify_gql__customer_emails.sql", "unique_id": "model.shopify.shopify_gql__customer_emails", "fqn": ["shopify", "graphql", "shopify_gql__customer_emails"], "alias": "shopify_gql__customer_emails", "checksum": {"name": "sha256", "checksum": "af89662d410ca87ac66c148c1f5f7e4194cec7c47a6939591c5bc3b2bc113825"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer email in Shopify.", "columns": {"last_fivetran_synced": {"name": "last_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_ids": {"name": "customer_ids", "description": "Comma-separated list of customer IDs associated with the email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone_numbers": {"name": "phone_numbers", "description": "Comma-separated list of phone numbers associated with this email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_updated_at": {"name": "last_updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money that the customer has spent on orders across their order history (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_account_created_at": {"name": "first_account_created_at", "description": "Timestamp of when the first account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_account_created_at": {"name": "last_account_created_at", "description": "Timestamp of when the last account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.0497901, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customer_emails as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify_gql__customer_email_rollup'), except=[\"orders_count\", \"total_spent\", \"unique_key\"]) }}\n from {{ ref('int_shopify_gql__customer_email_rollup') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__emails_order_aggregates' )}}\n where email is not null\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ ref('int_shopify_gql__abandoned_checkout' )}}\n where email is not null\n group by 1,2\n{% endif %}\n\n), joined as (\n\n select \n customer_emails.*,\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify_gql__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify_gql__emails_order_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star"], "nodes": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.int_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_emails.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__emails_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), customer_emails as (\n\n select \n \"email\",\n \"source_relation\",\n \"customer_ids\",\n \"phone_numbers\",\n \"customer_tags\",\n \"first_account_created_at\",\n \"last_account_created_at\",\n \"last_updated_at\",\n \"marketing_consent_updated_at\",\n \"last_fivetran_synced\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"first_name\",\n \"last_name\",\n \"account_state\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"default_address_id\"\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer_email_rollup\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__emails_order_aggregates\n where email is not null\n\n\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n where email is not null\n group by 1,2\n\n\n), joined as (\n\n select \n customer_emails.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n \n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__emails_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__emails_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}, {"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__customer_email_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_email_cohorts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_email_cohorts.sql", "original_file_path": "models/graphql/shopify_gql__customer_email_cohorts.sql", "unique_id": "model.shopify.shopify_gql__customer_email_cohorts", "fqn": ["shopify", "graphql", "shopify_gql__customer_email_cohorts"], "alias": "shopify_gql__customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "44ea3b7181f25acbd8740e7b4084080f926680aeac54311144a29cf6dd814708"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's (on the EMAIL grain) performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "created_at": 1755574972.0264132, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'),\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'email'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify_gql__customer_emails') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify_gql__customer_emails", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customer_emails", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_email_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n email\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.email as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify_gql__products": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__products", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__products.sql", "original_file_path": "models/graphql/shopify_gql__products.sql", "unique_id": "model.shopify.shopify_gql__products", "fqn": ["shopify", "graphql", "shopify_gql__products"], "alias": "shopify_gql__products", "checksum": {"name": "sha256", "checksum": "2f676f8591456d8c9e51c9c86d2a748f05045aea58b9b9f9d470c5a5f09e0320"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a product. Hashed on 'product_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity_sold": {"name": "total_quantity_sold", "description": "Quantity of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (in shop currency) of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_net_refunds": {"name": "quantity_sold_net_refunds", "description": "Quantity of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_net_refunds": {"name": "subtotal_sold_net_refunds", "description": "Total amount (in shop currency) of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the product was first ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the product was most recently ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order_line": {"name": "avg_quantity_per_order_line", "description": "Average quantity per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_discount": {"name": "product_total_discount", "description": "Total discounts associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_discount_per_order_line": {"name": "product_avg_discount_per_order_line", "description": "Average discount per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_tax": {"name": "product_total_tax", "description": "Total taxes associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_tax_per_order_line": {"name": "product_avg_tax_per_order_line", "description": "Average taxes per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants": {"name": "count_variants", "description": "Count of product variants.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_product_media": {"name": "has_product_media", "description": "If the product has media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collections": {"name": "collections", "description": "Comma-separated list of collections associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tags": {"name": "tags", "description": "Comma-separated list of tags associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.0556588, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__products\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith products as (\n\n select *\n from {{ ref('int_shopify_gql__products_with_aggregates') }}\n\n), product_order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__product_order_line_aggregates')}}\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__products_with_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__product_order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.int_shopify_gql__product_order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__products.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__product_order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), products as (\n\n select *\n from __dbt__cte__int_shopify_gql__products_with_aggregates\n\n), product_order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__product_order_line_aggregates\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__products_with_aggregates", "sql": " __dbt__cte__int_shopify_gql__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__product_order_line_aggregates", "sql": " __dbt__cte__int_shopify_gql__product_order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__transactions": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__transactions", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__transactions.sql", "original_file_path": "models/graphql/shopify_gql__transactions.sql", "unique_id": "model.shopify.shopify_gql__transactions", "fqn": ["shopify", "graphql", "shopify_gql__transactions"], "alias": "shopify_gql__transactions", "checksum": {"name": "sha256", "checksum": "a515293deae8b33e3c0c262d12f78da246ceff07bf83ee3f6d3458d27c8d7234"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of money included in the transaction in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of money included in the transaction in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of the date the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "exchange_rate": {"name": "exchange_rate", "description": "The exchange rate between the home currency and the currency of sale at the time of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_calculated_amount": {"name": "currency_exchange_calculated_amount", "description": "The total amount of the transaction with the currency exchange rate applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Method of payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_created_timestamp": {"name": "parent_created_timestamp", "description": "Created on timestamp of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_kind": {"name": "parent_kind", "description": "Kind of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_amount": {"name": "parent_amount", "description": "Amount of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_status": {"name": "parent_status", "description": "Status of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "Timestamp when the authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.070393, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__transactions\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith transactions as (\n select *\n from {{ var('shopify_gql_transaction') }} \n\n), tender_transactions as (\n\n select *\n from {{ var('shopify_gql_tender_transaction') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__order') }}\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount_shop as parent_amount,\n parent_transactions.status as parent_status,\n orders.location_id,\n orders.source_name \n\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n left join orders\n on transactions.order_id = orders.order_id\n and transactions.source_relation = orders.source_relation\n\n), exchange_rate as (\n\n select\n *,\n {# QUESTION/ISSUE: Cannot confirm if receipt looks the same in GraphQL #}\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount_shop as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.json_parse", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction", "model.shopify_source.stg_shopify_gql__tender_transaction", "model.shopify.int_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__transactions.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\" \n\n), tender_transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount_shop as parent_amount,\n parent_transactions.status as parent_status,\n orders.location_id,\n orders.source_name \n\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n left join orders\n on transactions.order_id = orders.order_id\n and transactions.source_relation = orders.source_relation\n\n), exchange_rate as (\n\n select\n *,\n \n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) as exchange_rate,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) * amount_shop as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__order_lines": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__order_lines", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__order_lines.sql", "original_file_path": "models/graphql/shopify_gql__order_lines.sql", "unique_id": "model.shopify.shopify_gql__order_lines", "fqn": ["shopify", "graphql", "shopify_gql__order_lines"], "alias": "shopify_gql__order_lines", "checksum": {"name": "sha256", "checksum": "05e8538403e3ee72811dc4d13bee21fd937ef51018cc15f1b72b25fb9f047d03"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item of an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_quantity": {"name": "refunded_quantity", "description": "Quantity of the item that has been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net_refunds": {"name": "quantity_net_refunds", "description": "Quantity ordered, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_compare_at_price": {"name": "variant_compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_position": {"name": "variant_position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sku": {"name": "variant_sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_taxable": {"name": "variant_is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "The weight value of the variant's inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "The unit of measurement for the variant's inventory item's weight.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_subtotal": {"name": "refunded_subtotal", "description": "Subtotal amount of the refund applied to the order line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_net_refunds": {"name": "subtotal_net_refunds", "description": "Subtotal of the order line with refunds subtracted in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_types": {"name": "restock_types", "description": "List of how this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_tax": {"name": "order_line_tax", "description": "Total taxes for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The total pre tax price of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.0662258, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__order_line') }}\n\n), product_variants as (\n\n select *\n from {{ ref('int_shopify_gql__product_variant') }}\n\n), refunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), \n\n{% if var('shopify_gql_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_gql_product_variant_media') }}\n),\n{% endif %}\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n {{ fivetran_utils.string_agg(\"distinct cast(refunds.restock_type as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as restock_types\n from refunds\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n refunds_aggregated.restock_types,\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n product_variant_media.media_id,\n {% endif %}\n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_line", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__product_variant", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__order_lines.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n\n), product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"\n\n), refunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), \n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\n),\n\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n \n string_agg(distinct cast(refunds.restock_type as TEXT), ', ')\n\n as restock_types\n from refunds\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n refunds_aggregated.restock_types,\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n \n product_variant_media.media_id,\n \n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n\n \n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_line", "sql": " __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__customers": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customers", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customers.sql", "original_file_path": "models/graphql/shopify_gql__customers.sql", "unique_id": "model.shopify.shopify_gql__customers", "fqn": ["shopify", "graphql", "shopify_gql__customers"], "alias": "shopify_gql__customers", "checksum": {"name": "sha256", "checksum": "9c21a0b94a0b4b535719777ad86c81e3780eabb5274d18ef3bffa0b82fa98633"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money in shop currency that the customer has spent on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.045527, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customers\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customers as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify_gql__customer'), except=[\"orders_count\", \"total_spent\", \"unique_key\"]) }}\n from {{ ref('int_shopify_gql__customer') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__customers_order_aggregates' )}}\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_gql_abandoned_checkout' )}}\n where customer_id is not null\n group by 1,2\n{% endif %}\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags\n\n from {{ var('shopify_gql_customer_tag' )}}\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n {% endif %}\n\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customers_order_aggregates", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customers.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__customers_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated\n), customers as (\n\n select \n \"customer_id\",\n \"email\",\n \"first_name\",\n \"last_name\",\n \"phone\",\n \"account_state\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"marketing_consent_updated_at\",\n \"created_timestamp\",\n \"updated_timestamp\",\n \"_fivetran_synced\",\n \"source_relation\",\n \"default_address_id\"\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__customers_order_aggregates\n\n\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n where customer_id is not null\n group by 1,2\n\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as customer_tags\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n \n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__customers_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__customers_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__orders": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__orders", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__orders.sql", "original_file_path": "models/graphql/shopify_gql__orders.sql", "unique_id": "model.shopify.shopify_gql__orders", "fqn": ["shopify", "graphql", "shopify_gql__orders"], "alias": "shopify_gql__orders", "checksum": {"name": "sha256", "checksum": "2ecbe0d27380045217fefb1d40c135d7557dd131145cb6c48ae86521585cd5e5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing an order. Hashed on 'order_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_amount": {"name": "total_discounts_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_amount": {"name": "total_discounts_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_currency_code": {"name": "total_discounts_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_currency_code": {"name": "total_discounts_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_amount": {"name": "total_line_items_price_shop_amount", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_amount": {"name": "total_line_items_price_pres_amount", "description": "The sum of all line item prices in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_currency_codes": {"name": "total_line_items_price_shop_currency_codes", "description": "The three-letter codes (ISO 4217 format) for the shop currency used to display the total line item price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_currency_codes": {"name": "total_line_items_price_pres_currency_codes", "description": "The three-letter codes (ISO 4217 format) for the presentment currency used to display the total line item price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count": {"name": "line_item_count", "description": "Number of line items included in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_order_seq_number": {"name": "customer_order_seq_number", "description": "The sequential number of the order as it relates to the customer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "new_vs_repeat": {"name": "new_vs_repeat", "description": "Whether the order was a new or repeat order for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_amount": {"name": "shipping_cost_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_amount": {"name": "shipping_cost_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_currency_code": {"name": "shipping_cost_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_currency_code": {"name": "shipping_cost_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to the adjustment on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_total_shipping_tax": {"name": "order_total_shipping_tax", "description": "Total shipping tax attributed to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_tags": {"name": "order_tags", "description": "List of tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number_of_fulfillments": {"name": "number_of_fulfillments", "description": "Total fulfillments for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_services": {"name": "fulfillment_services", "description": "List of fulfillment services for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_companies": {"name": "tracking_companies", "description": "List of tracking companies for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "List of tracking numbers for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_amount": {"name": "total_tip_received_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_amount": {"name": "total_tip_received_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_currency_code": {"name": "total_tip_received_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_currency_code": {"name": "total_tip_received_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied on the order", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.0374904, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__orders\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ ref('int_shopify_gql__order') }}\n\n), order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), fulfillments as (\n\n select *\n from {{ ref('int_shopify_gql__order_fulfillment_aggregates') }}\n \n), order_adjustments as (\n\n select *\n from {{ ref('int_shopify_gql__order_adjustment') }}\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount_shop) as order_adjustment_amount,\n sum(tax_amount_shop) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from {{ ref('int_shopify_gql__order_discount_code') }}\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then value_amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then value_amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then value_amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_tags\n \n from {{ var('shopify_gql_order_tag') }}\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n (orders.total_price_shop_amount\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n order_lines.total_line_items_price_pres_amount,\n order_lines.total_line_items_price_shop_amount,\n order_lines.total_line_items_price_pres_currency_codes,\n order_lines.total_line_items_price_shop_currency_codes,\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__order_fulfillment_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__order_adjustment", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}, {"name": "int_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.shopify.shopify_partition_by_cols"], "nodes": ["model.shopify.int_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.int_shopify_gql__order_discount_code", "model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__orders.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_fulfillment_aggregates as (\n\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final\n), __dbt__cte__int_shopify_gql__order_adjustment as (\n\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), fulfillments as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_fulfillment_aggregates\n \n), order_adjustments as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_adjustment\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount_shop) as order_adjustment_amount,\n sum(tax_amount_shop) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then value_amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then value_amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then value_amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n (orders.total_price_shop_amount\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n order_lines.total_line_items_price_pres_amount,\n order_lines.total_line_items_price_shop_amount,\n order_lines.total_line_items_price_pres_currency_codes,\n order_lines.total_line_items_price_shop_currency_codes,\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by \n\n\n customer_id\n\n\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_fulfillment_aggregates as (\n\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify_gql__order_adjustment", "sql": " __dbt__cte__int_shopify_gql__order_adjustment as (\n\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify_gql__order_discount_code", "sql": " __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__inventory_levels": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__inventory_levels", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__inventory_levels.sql", "original_file_path": "models/graphql/shopify_gql__inventory_levels.sql", "unique_id": "model.shopify.shopify_gql__inventory_levels", "fqn": ["shopify", "graphql", "shopify_gql__inventory_levels"], "alias": "shopify_gql__inventory_levels", "checksum": {"name": "sha256", "checksum": "a89da9a7a71fb56b90cae72642fc380a5dedaf66199ba21ee569c59d96ce55b0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of inventory items (which have a 1:1 relationship with product variants) and locations. \nInventory Level = Inventory item @ a Location.\n", "columns": {"inventory_level_id": {"name": "inventory_level_id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The name of the country where the inventory level is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_item_deleted": {"name": "is_inventory_item_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "(DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_created_at": {"name": "inventory_item_created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_updated_at": {"name": "inventory_item_updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_location_deleted": {"name": "is_location_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_location_active": {"name": "is_location_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_created_at": {"name": "location_created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy_location": {"name": "is_legacy_location", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_name": {"name": "location_name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_updated_at": {"name": "location_updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_media_id": {"name": "variant_media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_variant_taxable": {"name": "is_variant_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_orders": {"name": "count_distinct_orders", "description": "The number of distinct orders placed from this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customers": {"name": "count_distinct_customers", "description": "The number of distinct customers (based on customer_id) that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customer_emails": {"name": "count_distinct_customer_emails", "description": "The number of distinct customer emails that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timetamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "The timestamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_refunds": {"name": "subtotal_sold_refunds", "description": "The monetary amount (in shop currency) of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_refunds": {"name": "quantity_sold_refunds", "description": "The quantity of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_subtotal_sold": {"name": "net_subtotal_sold", "description": "Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_quantity_sold": {"name": "net_quantity_sold", "description": "Net quantity sold from this inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_pending": {"name": "count_fulfillment_pending", "description": "Count of currently pending distinct fulfillments for this inventory level. \"Pending\" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_open": {"name": "count_fulfillment_open", "description": "Count of currently open distinct fulfillments for this inventory level. \"Open\" = The fulfillment has been acknowledged by the service and is in processing.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_success": {"name": "count_fulfillment_success", "description": "Count of successful distinct fulfillments for this inventory level. \"Success\" = The fulfillment was successful.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_cancelled": {"name": "count_fulfillment_cancelled", "description": "Count of cancelled distinct fulfillments for this inventory level. \"Cancelled\" = The fulfillment was cancelled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_error": {"name": "count_fulfillment_error", "description": "Count of distinct fulfillments for this inventory level that encountered an error. \"Error\" = There was an error with the fulfillment request.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of distinct fulfillments for this inventory level that failed. \"Failure\" = The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "available_quantity": {"name": "available_quantity", "description": "The available quantity that a merchant can sell, determined by coalescing the `quantity` where inventory_state_name = 'available' from `stg_shopify_gql__inventory_quantity`and `available_quantity` from the deprecated `stg_shopify_gql__inventory_level`. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "incoming_quantity": {"name": "incoming_quantity", "description": "The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "on_hand_quantity": {"name": "on_hand_quantity", "description": "The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "committed_quantity": {"name": "committed_quantity", "description": "The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reserved_quantity": {"name": "reserved_quantity", "description": "The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "damaged_quantity": {"name": "damaged_quantity", "description": "The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "safety_stock_quantity": {"name": "safety_stock_quantity", "description": "The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quality_control_quantity": {"name": "quality_control_quantity", "description": "The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.0846796, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith inventory_level as (\n\n select *\n from {{ var('shopify_gql_inventory_level') }}\n), \n\ninventory_item as (\n\n select *\n from {{ var('shopify_gql_inventory_item') }}\n),\n\ninventory_quantity as (\n\n select *\n from {{ var('shopify_gql_inventory_quantity') }}\n),\n\nlocation as (\n\n select *\n from {{ var('shopify_gql_location') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n),\n\nproduct as (\n\n select *\n from {{ var('shopify_gql_product') }}\n),\n\ninventory_level_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__inventory_level_aggregates') }}\n),\n\n{% if var('shopify_gql_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_gql_product_variant_media') }}\n),\n{% endif %}\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%}\n {% for inventory_state in inventory_states -%}\n , sum(case when lower(inventory_state_name) = {{ \"'\" ~ inventory_state|lower ~ \"'\" }}\n then inventory_quantity.quantity end) as {{ inventory_state }}_quantity\n {% endfor -%}\n\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.country_name,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n product_variant_media.media_id as variant_media_id,\n {% endif %}\n\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }}\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n left join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n {% endif %}\n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n\n {% for inventory_state in inventory_states -%}\n , inventory_quantity_aggregated.{{ inventory_state }}_quantity\n {% endfor -%}\n\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}, {"name": "stg_shopify_gql__location", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "int_shopify_gql__inventory_level_aggregates", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level", "model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__inventory_quantity", "model.shopify_source.stg_shopify_gql__location", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product", "model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__inventory_levels.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify_gql__inventory_level_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), inventory_level as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\n), \n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\n),\n\ninventory_quantity as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\n),\n\nlocation as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n),\n\nproduct as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n),\n\ninventory_level_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__inventory_level_aggregates\n),\n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\n),\n\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n , sum(case when lower(inventory_state_name) = 'incoming'\n then inventory_quantity.quantity end) as incoming_quantity\n , sum(case when lower(inventory_state_name) = 'on_hand'\n then inventory_quantity.quantity end) as on_hand_quantity\n , sum(case when lower(inventory_state_name) = 'available'\n then inventory_quantity.quantity end) as available_quantity\n , sum(case when lower(inventory_state_name) = 'committed'\n then inventory_quantity.quantity end) as committed_quantity\n , sum(case when lower(inventory_state_name) = 'reserved'\n then inventory_quantity.quantity end) as reserved_quantity\n , sum(case when lower(inventory_state_name) = 'damaged'\n then inventory_quantity.quantity end) as damaged_quantity\n , sum(case when lower(inventory_state_name) = 'safety_stock'\n then inventory_quantity.quantity end) as safety_stock_quantity\n , sum(case when lower(inventory_state_name) = 'quality_control'\n then inventory_quantity.quantity end) as quality_control_quantity\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.country_name,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n\n \n product_variant_media.media_id as variant_media_id,\n \n\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n \n\n\n\n\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n \n left join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n \n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n \n , coalesce(inventory_level_aggregated.count_fulfillment_pending, 0) as count_fulfillment_pending\n \n , coalesce(inventory_level_aggregated.count_fulfillment_open, 0) as count_fulfillment_open\n \n , coalesce(inventory_level_aggregated.count_fulfillment_success, 0) as count_fulfillment_success\n \n , coalesce(inventory_level_aggregated.count_fulfillment_cancelled, 0) as count_fulfillment_cancelled\n \n , coalesce(inventory_level_aggregated.count_fulfillment_error, 0) as count_fulfillment_error\n \n , coalesce(inventory_level_aggregated.count_fulfillment_failure, 0) as count_fulfillment_failure\n \n\n , inventory_quantity_aggregated.incoming_quantity\n , inventory_quantity_aggregated.on_hand_quantity\n , inventory_quantity_aggregated.available_quantity\n , inventory_quantity_aggregated.committed_quantity\n , inventory_quantity_aggregated.reserved_quantity\n , inventory_quantity_aggregated.damaged_quantity\n , inventory_quantity_aggregated.safety_stock_quantity\n , inventory_quantity_aggregated.quality_control_quantity\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_line", "sql": " __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify_gql__inventory_level_aggregates", "sql": " __dbt__cte__int_shopify_gql__inventory_level_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__customer_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_cohorts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_cohorts.sql", "original_file_path": "models/graphql/shopify_gql__customer_cohorts.sql", "unique_id": "model.shopify.shopify_gql__customer_cohorts", "fqn": ["shopify", "graphql", "shopify_gql__customer_cohorts"], "alias": "shopify_gql__customer_cohorts", "checksum": {"name": "sha256", "checksum": "ee60abfcf8dbc62b9076eba78f3ae9049684e928f2bb727d820ae9bff594820c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "created_at": 1755574972.0251899, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'),\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'customer_id'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify_gql__customers') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify_gql__customers", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customers", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__customers\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n customer_id\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify_gql__daily_shop": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__daily_shop", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__daily_shop.sql", "original_file_path": "models/graphql/shopify_gql__daily_shop.sql", "unique_id": "model.shopify.shopify_gql__daily_shop", "fqn": ["shopify", "graphql", "shopify_gql__daily_shop"], "alias": "shopify_gql__daily_shop", "checksum": {"name": "sha256", "checksum": "cab8dd258f8ec32221ccbf94b62a452a5070fc9714d799c939ee0fa6c48f9a5e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a day in your Shop, enriched with a suite of metrics.\n", "columns": {"date_day": {"name": "date_day", "description": "Day for which the shop activity is being measured.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders": {"name": "count_orders", "description": "Count of the distinct orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_line_items": {"name": "count_line_items", "description": "Count of the line items included in orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer email addresses who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "Average adjusted total per order placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount (in shop currency) applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to adjustments (in shop currency) on the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of the discount allocated to this day's orders in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied by customers on orders for this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_locations_ordered_from": {"name": "count_locations_ordered_from", "description": "Distinct locations with orders placed against them on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_discounts": {"name": "count_orders_with_discounts", "description": "Count of orders in which a discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_refunds": {"name": "count_orders_with_refunds", "description": "Count of orders in which there was a refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "Timestamp of the first order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "Timestamp of the last order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_refunded": {"name": "quantity_refunded", "description": "The quantity of goods ORDERED on this day that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net": {"name": "quantity_net", "description": "Net quantity sold from this shop on this day. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants_sold": {"name": "count_variants_sold", "description": "Distinct product variants sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_products_sold": {"name": "count_products_sold", "description": "Distinct products sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_gift_cards_sold": {"name": "quantity_gift_cards_sold", "description": "Quantity of gift cards sold on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_requiring_shipping": {"name": "quantity_requiring_shipping", "description": "Quantity of goods sold on this day that require shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers_abandoned_checkout": {"name": "count_customers_abandoned_checkout", "description": "Count of distinct customers who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails_abandoned_checkout": {"name": "count_customer_emails_abandoned_checkout", "description": "Count of distinct customer emails who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_attempted_delivery": {"name": "count_fulfillment_attempted_delivery", "description": "Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delivered": {"name": "count_fulfillment_delivered", "description": "Count of successful distinct fulfillments successfully delivered on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_in_transit": {"name": "count_fulfillment_in_transit", "description": "Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_out_for_delivery": {"name": "count_fulfillment_out_for_delivery", "description": "Count of distinct fulfillments being delivered to their final destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_ready_for_pickup": {"name": "count_fulfillment_ready_for_pickup", "description": "Count of distinct fulfillments ready for pickup at a shipping depot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_printed": {"name": "count_fulfillment_label_printed", "description": "Count of distinct fulfillments for which a purchased shipping label has been printed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_purchased": {"name": "count_fulfillment_label_purchased", "description": "Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_confirmed": {"name": "count_fulfillment_confirmed", "description": "Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delayed": {"name": "count_fulfillment_delayed", "description": "Count of delayed distinct fulfillments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_line_item_count": {"name": "avg_line_item_count", "description": "Average line item count for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount": {"name": "avg_discount", "description": "Average total discount placed on orders on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_discount_amount": {"name": "avg_shipping_discount_amount", "description": "Average discount amount (in shop currency) allocated toward shipping on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_percentage_calc_discount_amount": {"name": "avg_percentage_calc_discount_amount", "description": "Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_fixed_amount_discount_amount": {"name": "avg_fixed_amount_discount_amount", "description": "Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_sold": {"name": "avg_quantity_sold", "description": "Average quantity sold per order on this day. Includes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_net": {"name": "avg_quantity_net", "description": "Average net quantity sold per order on this day. Excludes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.1031759, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__daily_shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith shop as (\n\n select *\n from {{ var('shopify_gql_shop') }}\n),\n\ncalendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from {{ ref('int_shopify_gql__daily_orders') }}\n),\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\ndaily_abandoned_checkouts as (\n\n select *\n from {{ ref('int_shopify_gql__daily_abandoned_checkouts') }}\n),\n{% endif %}\n\n{% if var('shopify_gql_using_fulfillment_event', false) %}\ndaily_fulfillment as (\n\n select *\n from {{ ref('int_shopify_gql__daily_fulfillment') }}\n),\n{% endif %}\n\nshop_calendar as (\n\n select\n cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n {% endif %}\n\n {% if var('shopify_gql_using_fulfillment_event', false) %}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%}\n , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n {% endif %}\n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n {% endif %}\n\n {% if var('shopify_gql_using_fulfillment_event', false) %}\n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n {% endif %}\n \n)\n\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "shopify__calendar", "package": null, "version": null}, {"name": "int_shopify_gql__daily_orders", "package": null, "version": null}, {"name": "int_shopify_gql__daily_abandoned_checkouts", "package": null, "version": null}, {"name": "int_shopify_gql__daily_fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify_gql__shop", "model.shopify.shopify__calendar", "model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__daily_fulfillment"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__daily_shop.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n), __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), __dbt__cte__int_shopify_gql__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n), __dbt__cte__int_shopify_gql__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n), shop as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\n),\n\ncalendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('day', date_day) as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_orders\n),\n\n\ndaily_abandoned_checkouts as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_abandoned_checkouts\n),\n\n\n\ndaily_fulfillment as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_fulfillment\n),\n\n\nshop_calendar as (\n\n select\n cast(date_trunc('day', calendar.date_day) as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n \n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n \n\n \n \n , coalesce(count_fulfillment_attempted_delivery, 0) as count_fulfillment_attempted_delivery\n \n , coalesce(count_fulfillment_delayed, 0) as count_fulfillment_delayed\n \n , coalesce(count_fulfillment_delivered, 0) as count_fulfillment_delivered\n \n , coalesce(count_fulfillment_failure, 0) as count_fulfillment_failure\n \n , coalesce(count_fulfillment_in_transit, 0) as count_fulfillment_in_transit\n \n , coalesce(count_fulfillment_out_for_delivery, 0) as count_fulfillment_out_for_delivery\n \n , coalesce(count_fulfillment_ready_for_pickup, 0) as count_fulfillment_ready_for_pickup\n \n , coalesce(count_fulfillment_label_printed, 0) as count_fulfillment_label_printed\n \n , coalesce(count_fulfillment_label_purchased, 0) as count_fulfillment_label_purchased\n \n , coalesce(count_fulfillment_confirmed, 0) as count_fulfillment_confirmed\n \n \n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n \n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n \n\n \n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n \n \n)\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__daily_orders", "sql": " __dbt__cte__int_shopify_gql__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}, {"id": "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "sql": " __dbt__cte__int_shopify_gql__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n)"}, {"id": "model.shopify.int_shopify_gql__daily_fulfillment", "sql": " __dbt__cte__int_shopify_gql__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_fulfillment_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_fulfillment_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__order_fulfillment_aggregates"], "alias": "int_shopify_gql__order_fulfillment_aggregates", "checksum": {"name": "sha256", "checksum": "eab4b050977a64c32a911238f62cd031e55c7fdf4d70257621648e0100ef3bb6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574969.9473045, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith fulfillment as (\n\n select *\n from {{ var('shopify_gql_fulfillment') }}\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n{% if var('shopify_gql_using_fulfillment_tracking_info', False) %}\nfulfillment_tracking_info as (\n\n select *\n from {{ var('shopify_gql_fulfillment_tracking_info') }}\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_number as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_url as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_urls,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_company as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment.service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n{% else %}\nfinal as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n count_fulfillments.number_of_fulfillments,\n max(cast(null as {{ dbt.type_string() }})) as tracking_numbers,\n max(cast(null as {{ dbt.type_string() }})) as tracking_urls,\n max(cast(null as {{ dbt.type_string() }})) as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment.service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services\n \n from fulfillment\n left join count_fulfillments\n on fulfillment.order_id = count_fulfillments.order_id\n and fulfillment.source_relation = count_fulfillments.source_relation\n group by 1,2,3\n)\n{% endif %}\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_orders": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_orders", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_orders.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_orders.sql", "unique_id": "model.shopify.int_shopify_gql__daily_orders", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_orders"], "alias": "int_shopify_gql__daily_orders", "checksum": {"name": "sha256", "checksum": "65a52e078d07bc36095bbfe50d4c57f831d112c3229bd68887265843aaf50be4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574969.9622931, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from {{ ref('shopify_gql__order_lines') }}\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}, {"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.shopify_gql__orders", "model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_orders.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__product_order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__product_order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__product_order_line_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__product_order_line_aggregates"], "alias": "int_shopify_gql__product_order_line_aggregates", "checksum": {"name": "sha256", "checksum": "920e1fc150f4213e06a67d88602663cef81d03069da2be99d221bea87c439370"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574969.9720316, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('shopify_gql__order_lines') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders')}}\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customer_email_rollup": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customer_email_rollup", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "unique_id": "model.shopify.int_shopify_gql__customer_email_rollup", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__customer_email_rollup"], "alias": "int_shopify_gql__customer_email_rollup", "checksum": {"name": "sha256", "checksum": "64c2801aa55efb47b328ad86e87224082a02e6ca3e915d5820e53f09078cd22a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574969.9794114, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__customer_email_rollup\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by created_timestamp desc) \n as customer_index\n\n from {{ ref('int_shopify_gql__customer') }}\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from {{ var('shopify_gql_customer_tag' )}}\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n {{ fivetran_utils.string_agg(\"distinct cast(customers.customer_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_ids,\n {{ fivetran_utils.string_agg(\"distinct cast(customers.phone as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as phone_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(customer_tags.value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n {{ fivetran_utils.max_bool(\"case when customers.customer_index = 1 then customers.is_tax_exempt else null end\") }} as is_tax_exempt, -- since this changes every year\n {{ fivetran_utils.max_bool(\"customers.is_verified_email\") }} as is_verified_email\n\n -- for all other fields, just take the latest value\n {% set cols = adapter.get_columns_in_relation(ref('int_shopify_gql__customer')) %}\n {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', \n 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp',\n 'is_tax_exempt', 'is_verified_email'] %}\n {% for col in cols %}\n {% if col.column|lower not in except_cols %}\n , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }}\n {% endif %}\n {% endfor %}\n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_partition_by_cols", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.max_bool"], "nodes": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by \n\n\n email\n\n\n order by created_timestamp desc) \n as customer_index\n\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n \n string_agg(distinct cast(customers.customer_id as TEXT), ', ')\n\n as customer_ids,\n \n string_agg(distinct cast(customers.phone as TEXT), ', ')\n\n as phone_numbers,\n \n string_agg(distinct cast(customer_tags.value as TEXT), ', ')\n\n as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n \n\n bool_or( case when customers.customer_index = 1 then customers.is_tax_exempt else null end )\n\n as is_tax_exempt, -- since this changes every year\n \n\n bool_or( customers.is_verified_email )\n\n as is_verified_email\n\n -- for all other fields, just take the latest value\n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.first_name else null end) as first_name\n \n \n \n , max(case when customers.customer_index = 1 then customers.last_name else null end) as last_name\n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.account_state else null end) as account_state\n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.note else null end) as note\n \n \n \n , max(case when customers.customer_index = 1 then customers.currency else null end) as currency\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_consent_state else null end) as marketing_consent_state\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_opt_in_level else null end) as marketing_opt_in_level\n \n \n \n \n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.unique_key else null end) as unique_key\n \n \n \n , max(case when customers.customer_index = 1 then customers.default_address_id else null end) as default_address_id\n \n \n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__emails_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__emails_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__emails_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__emails_order_aggregates"], "alias": "int_shopify_gql__emails_order_aggregates", "checksum": {"name": "sha256", "checksum": "46a6101b635fbaac9e4c4f48883e0c13893e9a0ea161d2e182bb07a5a8c5bf81"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574969.996904, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n\n), order_aggregates as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify_gql__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from {{ var('shopify_gql_customer') }}\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "shopify_gql__transactions", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customers_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customers_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__customers_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__customers_order_aggregates"], "alias": "int_shopify_gql__customers_order_aggregates", "checksum": {"name": "sha256", "checksum": "d0a702cbdb5b6a1fb0b18326465045024d5cf44d97d55a324cb07c68f6927844"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.0059993, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify_gql__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__orders_order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__orders_order_line_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__orders_order_line_aggregates"], "alias": "int_shopify_gql__orders_order_line_aggregates", "checksum": {"name": "sha256", "checksum": "d4920955a26e1fe0a86640c97e6cf61a18199255c10350c485aad97d1706beab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574970.0154977, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"", "raw_code": "{{ config(\n materialized='table', \n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')\n) }}\n\nwith order_line as (\n\n select *\n from {{ var('shopify_gql_order_line') }}\n\n), tax as (\n\n select\n *\n from {{ var('shopify_gql_tax_line') }}\n\n), shipping as (\n\n select\n *\n from {{ ref('int_shopify_gql__order_shipping_aggregates')}}\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(coalesce(order_line.quantity, 0)) as order_total_quantity,\n sum(coalesce(tax_aggregates.price, 0)) as order_total_tax,\n sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount,\n sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount,\n sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount,\n {{ fivetran_utils.string_agg(\"distinct cast(order_line.price_pres_currency_code as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as total_line_items_price_pres_currency_codes,\n {{ fivetran_utils.string_agg(\"distinct cast(order_line.price_shop_currency_code as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as total_line_items_price_shop_currency_codes\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n order_line_aggregates.total_line_items_price_pres_amount,\n order_line_aggregates.total_line_items_price_shop_amount,\n order_line_aggregates.total_line_items_price_pres_currency_codes,\n order_line_aggregates.total_line_items_price_shop_currency_codes,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line", "package": null, "version": null}, {"name": "int_shopify_gql__order_shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line", "model.shopify.int_shopify_gql__order_shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), order_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n\n), tax as (\n\n select\n *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n\n), shipping as (\n\n select\n *\n from __dbt__cte__int_shopify_gql__order_shipping_aggregates\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(coalesce(order_line.quantity, 0)) as order_total_quantity,\n sum(coalesce(tax_aggregates.price, 0)) as order_total_tax,\n sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount,\n sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount,\n sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount,\n \n string_agg(distinct cast(order_line.price_pres_currency_code as TEXT), ', ')\n\n as total_line_items_price_pres_currency_codes,\n \n string_agg(distinct cast(order_line.price_shop_currency_code as TEXT), ', ')\n\n as total_line_items_price_shop_currency_codes\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n order_line_aggregates.total_line_items_price_pres_amount,\n order_line_aggregates.total_line_items_price_shop_amount,\n order_line_aggregates.total_line_items_price_pres_currency_codes,\n order_line_aggregates.total_line_items_price_shop_currency_codes,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__products_with_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__products_with_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__products_with_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__products_with_aggregates"], "alias": "int_shopify_gql__products_with_aggregates", "checksum": {"name": "sha256", "checksum": "e193bda9d00349acc767910a46f163e2c0cbf21e745ac7e7268ab3a8429e3cac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.027108, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith products as (\n\n select *\n from {{ var('shopify_gql_product') }}\n), \n\ncollection_product as (\n\n select *\n from {{ var('shopify_gql_collection_product') }}\n),\n\ncollection as (\n\n select *\n from {{ ref('int_shopify_gql__collection') }}\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from {{ var('shopify_gql_product_tag') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n), \n\nproduct_media as (\n\n select *\n from {{ var('shopify_gql_product_media') }}\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter=\"', '\") }} as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='value', delimiter=\"', '\") }} as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_product", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tag", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__collection_product", "model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__product_tag", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__orders_order_refunds": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_refunds", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "unique_id": "model.shopify.int_shopify_gql__orders_order_refunds", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__orders_order_refunds"], "alias": "int_shopify_gql__orders_order_refunds", "checksum": {"name": "sha256", "checksum": "5c76fbeaab2dd2bff9d13131a4e4fb19a7716c825c70436c6c42ff0f8f1f6234"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.0395224, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith refunds as (\n\n select *\n from {{ var('shopify_gql_refund') }}\n\n), order_line_refunds as (\n\n select *\n from {{ var('shopify_gql_order_line_refund') }}\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__refund", "model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "compiled": true, "compiled_code": "\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__inventory_level_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__inventory_level_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__inventory_level_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__inventory_level_aggregates"], "alias": "int_shopify_gql__inventory_level_aggregates", "checksum": {"name": "sha256", "checksum": "e25fd92bb71fc3846d1c2e59cf59c2bbdb36b4d99ba571160394a38b4854625a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.0478766, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__order_line') }}\n),\n\nfulfillment as (\n\n select *\n from {{ var('shopify_gql_fulfillment') }}\n),\n\norders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n {# open and pending are set to be deprecated in the future by Shopify #}\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n {{ dbt_utils.group_by(n=3) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}, {"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify.int_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_refunds"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_line", "sql": " __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_shipping_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_shipping_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__order_shipping_aggregates"], "alias": "int_shopify_gql__order_shipping_aggregates", "checksum": {"name": "sha256", "checksum": "26bcfed5649b9547dd26cec0717b663322f2a11fe33a1018bba98b4a41ec0dce"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.0591145, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from {{ var('shopify_gql_order_shipping_line') }}\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from {{ var('shopify_gql_order_shipping_tax_line') }}\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line", "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_fulfillment", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "unique_id": "model.shopify.int_shopify_gql__daily_fulfillment", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_fulfillment"], "alias": "int_shopify_gql__daily_fulfillment", "checksum": {"name": "sha256", "checksum": "6093ddf8463f9914ea1a6f6798a01d89e77af1f43f0ef6f475ceb741b0824740"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.0675776, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', false) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith fulfillment_event as (\n\n select *\n from {{ var('shopify_gql_fulfillment_event') }}\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day\n\n {# Possible status values: https://shopify.dev/docs/api/admin-graphql/latest/objects/fulfillmentevent#field-FulfillmentEvent.fields.status #}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%}\n , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discounts_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discounts_abandoned_checkouts"], "alias": "int_shopify_gql__discounts_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "ab9f8f0b086697ca51e0f7ffc6005ff2797126920b53eb844a2e5e9ed34f5da7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.076924, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ ref('int_shopify_gql__abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from {{ var('shopify_gql_abandoned_checkout_discount_code') }}\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discounts_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discounts_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__discounts_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discounts_order_aggregates"], "alias": "int_shopify_gql__discounts_order_aggregates", "checksum": {"name": "sha256", "checksum": "28bcab684975ed061e765767dcc92ed6ca7a8c8f7235aee1d6c1ac349bae7799"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.0860178, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_discount_code as (\n\n select *\n from {{ ref('int_shopify_gql__order_discount_code') }}\n),\n\norders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__order_discount_code", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n), order_discount_code as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_discount_code", "sql": " __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_abandoned_checkouts"], "alias": "int_shopify_gql__daily_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "0afd0194490f924273b15c246f6827d0a5fe61b0a084cbaf0673a36995d63d7b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.0956745, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ ref('int_shopify_gql__abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.int_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discount_code_enriched": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discount_code_enriched", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "unique_id": "model.shopify.int_shopify_gql__discount_code_enriched", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discount_code_enriched"], "alias": "int_shopify_gql__discount_code_enriched", "checksum": {"name": "sha256", "checksum": "d268ffc342662037c84c650aab638ba29d2e2136da8c908bc04508c9a7ddc129"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.1058166, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith discount_redeem_codes as (\n \n select *\n from {{ var('shopify_gql_discount_redeem_code') }}\n),\n\ndiscount_applications as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_basic') }}\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_bxgy') }}\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_free_shipping') }}\n\n {% if var('shopify_gql_using_discount_code_app', False) %}\n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_app') }}\n {% endif %}\n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code", "model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__discount_code_basic", "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "compiled": true, "compiled_code": "\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_adjustment", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "unique_id": "model.shopify.int_shopify_gql__order_adjustment", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_adjustment"], "alias": "int_shopify_gql__order_adjustment", "checksum": {"name": "sha256", "checksum": "566b80b0396e349d2332bee356ba5a1d82377b770a0ff4905c5e8d0ab17ddcb8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.1181476, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_adjustment as (\n\n select *\n from {{ var('shopify_gql_order_adjustment') }}\n),\n\nrefund as (\n\n select *\n from {{ var('shopify_gql_refund') }}\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}, {"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment", "model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "compiled": true, "compiled_code": "\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__collection": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__collection", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__collection.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__collection.sql", "unique_id": "model.shopify.int_shopify_gql__collection", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__collection"], "alias": "int_shopify_gql__collection", "checksum": {"name": "sha256", "checksum": "79c88599b5c946df080af1c74d71b27aed4f7771a481e1c5f675687ea792341a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.126634, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith collection as (\n\n select *\n from {{ var('shopify_gql_collection') }}\n)\n\n{% if var('shopify_gql_using_collection_rule', False) %}\n, collection_rule as (\n\n select *\n from {{ var('shopify_gql_collection_rule') }}\n),\n\nprep_collection_rule as (\n\n select \n collection_id,\n source_relation,\n '{\"column\":\"' || columns || '\",\"relation\":\"' || relation || '\",\"condition\":\"' || condition || '\"}' as rule\n from collection_rule\n),\n\nagg_collection_rule as (\n \n select \n collection_id,\n source_relation,\n '[' || {{ fivetran_utils.string_agg(\"rule\", \"','\") }} || ']' as rules\n from prep_collection_rule\n group by 1,2\n),\n\njoined as (\n\n select \n collection.*,\n agg_collection_rule.rules\n from collection\n left join agg_collection_rule\n on collection.collection_id = agg_collection_rule.collection_id\n and collection.source_relation = agg_collection_rule.source_relation\n)\n\nselect *\nfrom joined\n\n{% else %}\nselect \n collection.*,\n cast(null as {{ dbt.type_string() }}) as rules\nfrom collection\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__collection.sql", "compiled": true, "compiled_code": "\n\nwith collection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\n)\n\n\nselect \n collection.*,\n cast(null as TEXT) as rules\nfrom collection\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_discount_code", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "unique_id": "model.shopify.int_shopify_gql__order_discount_code", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_discount_code"], "alias": "int_shopify_gql__order_discount_code", "checksum": {"name": "sha256", "checksum": "2c39fac4f334420b741ddf5b87e22b5ace34b1e5183fde13fefd3564e4a85353"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.1372206, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_discount_code as (\n\n select *\n from {{ var('shopify_gql_order_discount_code') }}\n),\n\ndiscount_application as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code", "model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__product_variant", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__product_variant.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__product_variant.sql", "unique_id": "model.shopify.int_shopify_gql__product_variant", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__product_variant"], "alias": "int_shopify_gql__product_variant", "checksum": {"name": "sha256", "checksum": "9fd96455970237120c405b947004cecc05bd570910786e801daa7df3cf823a5b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.145614, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith product_variants as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n),\n\ninventory_item as (\n\n select *\n from {{ var('shopify_gql_inventory_item') }}\n),\n\njoined as (\n\n select\n product_variants.*,\n inventory_item.measurement_weight_value as weight,\n inventory_item.measurement_weight_unit as weight_unit\n\n from product_variants\n left join inventory_item\n on product_variants.inventory_item_id = inventory_item.inventory_item_id\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n),\n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\n),\n\njoined as (\n\n select\n product_variants.*,\n inventory_item.measurement_weight_value as weight,\n inventory_item.measurement_weight_unit as weight_unit\n\n from product_variants\n left join inventory_item\n on product_variants.inventory_item_id = inventory_item.inventory_item_id\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__abandoned_checkout", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "unique_id": "model.shopify.int_shopify_gql__abandoned_checkout", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__abandoned_checkout"], "alias": "int_shopify_gql__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "1fbb259948ecde6f3a26ef67f85419e23adb92a76099e8951574038b36f320eb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.1541421, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_gql_abandoned_checkout') }}\n),\n\ncustomer as (\n\n select *\n from {{ var('shopify_gql_customer') }}\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_line": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_line", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_line.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_line.sql", "unique_id": "model.shopify.int_shopify_gql__order_line", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_line"], "alias": "int_shopify_gql__order_line", "checksum": {"name": "sha256", "checksum": "d31c98c59428343bb271372b984f57abf5a5c0ef5b2acc38050034d694a12bc2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.162945, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_line as (\n \n select *\n from {{ var('shopify_gql_order_line') }}\n),\n\ntax_line as (\n\n select *\n from {{ var('shopify_gql_tax_line') }}\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n{% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\nfulfillment_order_line_item as (\n\n select *\n from {{ var('shopify_gql_fulfillment_order_line_item') }}\n),\n{% endif %}\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n {% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n {% else %}\n cast(null as {{ dbt.type_int() }}) as fulfillable_quantity,\n cast(null as {{ dbt.type_string() }}) as weight_unit,\n cast(null as {{ dbt.type_float() }}) as weight_value\n {% endif %}\n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n {% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line", "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_line.sql", "compiled": true, "compiled_code": "\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customer": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customer", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__customer.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__customer.sql", "unique_id": "model.shopify.int_shopify_gql__customer", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__customer"], "alias": "int_shopify_gql__customer", "checksum": {"name": "sha256", "checksum": "42669a857b1fdc53d88ee34544dfc078e52ceb729cfe1fe4fc47b48691288e07"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.1739786, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customer as (\n\n select *\n from {{ var('shopify_gql_customer') }}\n),\n\ncustomer_address as (\n\n select *\n from {{ var('shopify_gql_customer_address') }}\n),\n\ncustomer_default_address as (\n\n select *\n from customer_address\n where coalesce(is_default, false)\n),\n\njoined as (\n\n select \n customer.*,\n customer_default_address.customer_address_id as default_address_id\n {# QUESTION: maybe add other fields that are helpful (would be new)? #}\n \n from customer \n left join customer_default_address\n on customer_default_address.customer_id = customer.customer_id\n and customer_default_address.source_relation = customer.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__customer.sql", "compiled": true, "compiled_code": "\n\nwith customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\ncustomer_address as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\n),\n\ncustomer_default_address as (\n\n select *\n from customer_address\n where coalesce(is_default, false)\n),\n\njoined as (\n\n select \n customer.*,\n customer_default_address.customer_address_id as default_address_id\n \n \n from customer \n left join customer_default_address\n on customer_default_address.customer_id = customer.customer_id\n and customer_default_address.source_relation = customer.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order.sql", "unique_id": "model.shopify.int_shopify_gql__order", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order"], "alias": "int_shopify_gql__order", "checksum": {"name": "sha256", "checksum": "d39c46fbe7a2d41c1b096e78f78ba70cf0d6930f622f93b2424f3c03517cf0ef"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574970.1839926, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select * \n from {{ var('shopify_gql_order') }}\n)\n\n{% if var('shopify_gql_using_customer_visit', True) %}\n, customer_visit as (\n \n select * \n from {{ var('shopify_gql_customer_visit') }}\n),\n\njoined as (\n\n select \n orders.*,\n customer_visit.referring_site,\n customer_visit.landing_page as landing_site_base_url\n from orders\n left join customer_visit\n on orders.order_id = customer_visit.order_id\n and orders.source_relation = customer_visit.source_relation\n)\n\nselect *\nfrom joined\n\n{% else %}\n\nselect \n orders.*,\n cast(null as {{ dbt.type_string() }}) as referring_site,\n cast(null as {{ dbt.type_string() }}) as landing_site_base_url\nfrom orders\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n)\n\n\n, customer_visit as (\n \n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\n),\n\njoined as (\n\n select \n orders.*,\n customer_visit.referring_site,\n customer_visit.landing_page as landing_site_base_url\n from orders\n left join customer_visit\n on orders.order_id = customer_visit.order_id\n and orders.source_relation = customer_visit.source_relation\n)\n\nselect *\nfrom joined\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__line_item_enhanced": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__line_item_enhanced", "resource_type": "model", "package_name": "shopify", "path": "graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "original_file_path": "models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "unique_id": "model.shopify.shopify_gql__line_item_enhanced", "fqn": ["shopify", "graphql", "standardized_models", "shopify_gql__line_item_enhanced"], "alias": "shopify_gql__line_item_enhanced", "checksum": {"name": "sha256", "checksum": "397d1387f769ec2a75bd7c041e9c6fd40a46cd420f15904cd27c12ca712fcc84"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It\u2019s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details.", "columns": {"header_id": {"name": "header_id", "description": "Id of corresponding order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_id": {"name": "line_item_id", "description": "Order line item id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_index": {"name": "line_item_index", "description": "Unique index of each line item id for each order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "record_type": {"name": "record_type", "description": "header or line_item", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the order was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "header_status": {"name": "header_status", "description": "Status of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_type": {"name": "billing_type", "description": "NA for Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "Currency used in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "Product ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_name": {"name": "product_name", "description": "Product name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "Product type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_type": {"name": "transaction_type", "description": "Transaction type (Charge, Refund, etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of units of this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_amount": {"name": "unit_amount", "description": "Amount per unit, or the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_amount": {"name": "discount_amount", "description": "The discount amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "The tax amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_amount": {"name": "total_amount", "description": "Order total", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_id": {"name": "payment_id", "description": "Transaction ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Transaction gateway for Shopify ('gift card', 'shopify payments', etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method_id": {"name": "payment_method_id", "description": "Shopify does not have a particular payment_method_id, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_at": {"name": "payment_at", "description": "Transaction processed timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fee_amount": {"name": "fee_amount", "description": "The total shipping fee associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_amount": {"name": "refund_amount", "description": "Refund amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_id": {"name": "subscription_id", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_plan": {"name": "subscription_plan", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_started_at": {"name": "subscription_period_started_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_ended_at": {"name": "subscription_period_ended_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_status": {"name": "subscription_status", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "Customer associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_created_at": {"name": "customer_created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_level": {"name": "customer_level", "description": "Whether 'account' or 'customer'. For Shopify, the level is 'customer'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_name": {"name": "customer_name", "description": "Customer name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_company": {"name": "customer_company", "description": "Associated customer's company noted on the shipping address if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "Customer email", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_city": {"name": "customer_city", "description": "Customer's shipping address city", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_country": {"name": "customer_country", "description": "Customer's shipping address country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/standardized_models/shopify__standardized_models.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.3052087, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__line_item_enhanced\"", "raw_code": "{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith line_items as (\n\n select * \n from {{ var('shopify_gql_order_line')}}\n\n), orders as ( \n\n select * \n from {{ var('shopify_gql_order')}}\n\n), product as (\n\n select *\n from {{ var('shopify_gql_product')}}\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n {{ fivetran_utils.string_agg(\"cast (transaction_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} AS transaction_id,\n {{ fivetran_utils.string_agg(\"cast (processed_timestamp as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as processed_timestamp,\n {{ fivetran_utils.string_agg('gateway', \"', '\") }} as gateway\n\n from {{ var('shopify_gql_transaction')}}\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount_shop) as total_order_refund_amount\n from {{ var('shopify_gql_transaction')}}\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal_shop_amount + total_tax_shop_amount) as total_refund_amount\n from {{ var('shopify_gql_order_line_refund')}}\n group by 1,2\n\n), customer as (\n\n select *\n from {{ var('shopify_gql_customer')}}\n\n), shipping as (\n\n select * \n from {{ ref('int_shopify_gql__order_shipping_aggregates')}}\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price_shop_amount as unit_amount,\n o.total_discounts_shop_amount as discount_amount,\n o.total_tax_shop_amount as tax_amount,\n (li.quantity * li.price_shop_amount) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as {{ dbt.type_string() }}) as subscription_id,\n cast(null as {{ dbt.type_string() }}) as subscription_plan,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at,\n cast(null as {{ dbt.type_string() }}) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n {{ dbt.concat([\"c.first_name\", \"''\", \"c.last_name\"]) }} as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id,\n cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as {{ dbt.type_numeric() }}) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as {{ dbt.type_numeric() }}) as quantity,\n cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,\n cast(null as {{ dbt.type_numeric() }}) as discount_amount,\n cast(null as {{ dbt.type_numeric() }}) as tax_amount,\n cast(total_amount as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as {{ dbt.type_numeric() }}) as fee_amount,\n cast(null as {{ dbt.type_numeric() }}) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as {{ dbt.type_numeric() }}) as line_item_id,\n cast(0 as {{ dbt.type_numeric() }}) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as {{ dbt.type_numeric() }}) as product_id,\n cast(null as {{ dbt.type_string() }}) as product_name,\n transaction_type,\n billing_type,\n cast(null as {{ dbt.type_string() }}) as product_type,\n cast(null as {{ dbt.type_numeric() }}) as quantity,\n cast(null as {{ dbt.type_numeric() }}) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__order_shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.dbt.type_timestamp", "macro.dbt.concat", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__transaction", "model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__customer", "model.shopify.int_shopify_gql__order_shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), line_items as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n\n), orders as ( \n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n \n string_agg(cast (transaction_id as TEXT), ', ')\n\n AS transaction_id,\n \n string_agg(cast (processed_timestamp as TEXT), ', ')\n\n as processed_timestamp,\n \n string_agg(gateway, ', ')\n\n as gateway\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount_shop) as total_order_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal_shop_amount + total_tax_shop_amount) as total_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n group by 1,2\n\n), customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n\n), shipping as (\n\n select * \n from __dbt__cte__int_shopify_gql__order_shipping_aggregates\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price_shop_amount as unit_amount,\n o.total_discounts_shop_amount as discount_amount,\n o.total_tax_shop_amount as tax_amount,\n (li.quantity * li.price_shop_amount) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as TEXT) as subscription_id,\n cast(null as TEXT) as subscription_plan,\n cast(null as timestamp) as subscription_period_started_at,\n cast(null as timestamp) as subscription_period_ended_at,\n cast(null as TEXT) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n c.first_name || '' || c.last_name as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as numeric(28,6)) as line_item_id,\n cast(line_item_index as numeric(28,6)) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as numeric(28,6)) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as numeric(28,6)) as quantity,\n cast(unit_amount as numeric(28,6)) as unit_amount,\n cast(null as numeric(28,6)) as discount_amount,\n cast(null as numeric(28,6)) as tax_amount,\n cast(total_amount as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as numeric(28,6)) as fee_amount,\n cast(null as numeric(28,6)) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as numeric(28,6)) as line_item_id,\n cast(0 as numeric(28,6)) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as numeric(28,6)) as product_id,\n cast(null as TEXT) as product_name,\n transaction_type,\n billing_type,\n cast(null as TEXT) as product_type,\n cast(null as numeric(28,6)) as quantity,\n cast(null as numeric(28,6)) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__product_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__product_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__product_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__product_metafields.sql", "unique_id": "model.shopify.shopify_gql__product_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__product_metafields"], "alias": "shopify_gql__product_metafields", "checksum": {"name": "sha256", "checksum": "e662128efd355a0a62e3fdd489bcec4cbec57e7f5630e356a1ce31cdbf150fa5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__product model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.3072822, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__product_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify_gql__product\", \n reference_values = ['product'],\n id_column = \"product_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__product_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bc_brenbre'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bc_brenbre\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.product_id,\n \n source_table.handle,\n \n source_table.product_type,\n \n source_table.title,\n \n source_table.vendor,\n \n source_table.status,\n \n source_table.is_deleted,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.published_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bc_brenbre) as metafield_bea81c1795a612d8fc3a232b156467bc_brenbre\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42) as metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.product_id\n and lower(lookup_object.owner_resource) in ('product')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__shop_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__shop_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__shop_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__shop_metafields.sql", "unique_id": "model.shopify.shopify_gql__shop_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__shop_metafields"], "alias": "shopify_gql__shop_metafields", "checksum": {"name": "sha256", "checksum": "e4981591a733469551b3e4de1f177957b0575b0f2a7a2fd1a9c87926c9be0fad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__shop model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.3082159, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__shop_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify_gql__shop\", \n reference_values = ['shop'],\n id_column = \"shop_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__shop_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c0_gwrgew'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c0_gwrgew\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.shop_id,\n \n source_table.name,\n \n source_table.is_deleted,\n \n source_table.address_1,\n \n source_table.address_2,\n \n source_table.city,\n \n source_table.province,\n \n source_table.province_code,\n \n source_table.country,\n \n source_table.country_code,\n \n source_table.country_name,\n \n source_table.zip,\n \n source_table.latitude,\n \n source_table.longitude,\n \n source_table.currency,\n \n source_table.enabled_presentment_currencies,\n \n source_table.customer_email,\n \n source_table.email,\n \n source_table.domain,\n \n source_table.phone,\n \n source_table.timezone_abbreviation,\n \n source_table.timezone_offset,\n \n source_table.timezone_offset_minutes,\n \n source_table.iana_timezone,\n \n source_table.primary_locale,\n \n source_table.weight_unit,\n \n source_table.myshopify_domain,\n \n source_table.shop_owner,\n \n source_table.has_shipping_taxes,\n \n source_table.has_taxes_included_in_price,\n \n source_table.has_storefront,\n \n source_table.has_checkout_api_supported,\n \n source_table.money_format,\n \n source_table.money_in_emails_format,\n \n source_table.money_with_currency_format,\n \n source_table.money_with_currency_in_emails_format,\n \n source_table.plan_display_name,\n \n source_table.is_password_enabled,\n \n source_table.is_setup_required,\n \n source_table.created_at,\n \n source_table.updated_at,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c0_gwrgew) as metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.shop_id\n and lower(lookup_object.owner_resource) in ('shop')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__order_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__order_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__order_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__order_metafields.sql", "unique_id": "model.shopify.shopify_gql__order_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__order_metafields"], "alias": "shopify_gql__order_metafields", "checksum": {"name": "sha256", "checksum": "9fac4f22b24cd29d081991b5d98aa549f4e86f07b07d203a5ff11c21b304b7a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__order model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.3068175, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__order_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__order\", \n reference_values = ['order'],\n id_column = \"order_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}\n\n{# Does not contain total_line_items_price columns as these are calculated in shopify_gql_orders__order_line_aggregates in GraphQL #}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__order_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bf_htynetnbw'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bf_htynetnbw\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.order_id,\n \n source_table.user_id,\n \n source_table.total_discounts_pres_amount,\n \n source_table.total_discounts_pres_currency_code,\n \n source_table.total_discounts_shop_amount,\n \n source_table.total_discounts_shop_currency_code,\n \n source_table.total_price_pres_amount,\n \n source_table.total_price_pres_currency_code,\n \n source_table.total_price_shop_amount,\n \n source_table.total_price_shop_currency_code,\n \n source_table.total_tax_pres_amount,\n \n source_table.total_tax_pres_currency_code,\n \n source_table.total_tax_shop_amount,\n \n source_table.total_tax_shop_currency_code,\n \n source_table.source_name,\n \n source_table.subtotal_price_pres_amount,\n \n source_table.subtotal_price_pres_currency_code,\n \n source_table.subtotal_price_shop_amount,\n \n source_table.subtotal_price_shop_currency_code,\n \n source_table.has_taxes_included,\n \n source_table.total_weight,\n \n source_table.total_tip_received_pres_amount,\n \n source_table.total_tip_received_pres_currency_code,\n \n source_table.total_tip_received_shop_amount,\n \n source_table.total_tip_received_shop_currency_code,\n \n source_table.location_id,\n \n source_table.name,\n \n source_table.note,\n \n source_table.number,\n \n source_table.cancel_reason,\n \n source_table.created_timestamp,\n \n source_table.cancelled_timestamp,\n \n source_table.closed_timestamp,\n \n source_table.processed_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.currency,\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.financial_status,\n \n source_table.fulfillment_status,\n \n source_table.billing_address_address_1,\n \n source_table.billing_address_address_2,\n \n source_table.billing_address_city,\n \n source_table.billing_address_company,\n \n source_table.billing_address_country,\n \n source_table.billing_address_country_code,\n \n source_table.billing_address_first_name,\n \n source_table.billing_address_last_name,\n \n source_table.billing_address_latitude,\n \n source_table.billing_address_longitude,\n \n source_table.billing_address_name,\n \n source_table.billing_address_phone,\n \n source_table.billing_address_province,\n \n source_table.billing_address_province_code,\n \n source_table.billing_address_zip,\n \n source_table.browser_ip,\n \n source_table.shipping_cost_pres_amount,\n \n source_table.shipping_cost_pres_currency_code,\n \n source_table.shipping_cost_shop_amount,\n \n source_table.shipping_cost_shop_currency_code,\n \n source_table.shipping_address_address_1,\n \n source_table.shipping_address_address_2,\n \n source_table.shipping_address_city,\n \n source_table.shipping_address_company,\n \n source_table.shipping_address_country,\n \n source_table.shipping_address_country_code,\n \n source_table.shipping_address_first_name,\n \n source_table.shipping_address_last_name,\n \n source_table.shipping_address_latitude,\n \n source_table.shipping_address_longitude,\n \n source_table.shipping_address_name,\n \n source_table.shipping_address_phone,\n \n source_table.shipping_address_province,\n \n source_table.shipping_address_province_code,\n \n source_table.shipping_address_zip,\n \n source_table.app_id,\n \n source_table.customer_locale,\n \n source_table.order_status_url,\n \n source_table.presentment_currency,\n \n source_table.is_test_order,\n \n source_table.is_deleted,\n \n source_table.has_buyer_accepted_marketing,\n \n source_table.is_confirmed,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.referring_site,\n \n source_table.landing_site_base_url\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bf_htynetnbw) as metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe) as metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.order_id\n and lower(lookup_object.owner_resource) in ('order')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88\n)\n\nselect *\nfrom final\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__product_variant_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__product_variant_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__product_variant_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__product_variant_metafields.sql", "unique_id": "model.shopify.shopify_gql__product_variant_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__product_variant_metafields"], "alias": "shopify_gql__product_variant_metafields", "checksum": {"name": "sha256", "checksum": "78d300b3aa3591fe3640572e9da4b3d8deb530699a6526cbcc9eb6b629ef698b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__product_variant model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.307758, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__product_variant_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__product_variant\",\n reference_values = ['variant', 'productvariant'],\n id_column = \"variant_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__product_variant_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__customer_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__customer_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__customer_metafields.sql", "unique_id": "model.shopify.shopify_gql__customer_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__customer_metafields"], "alias": "shopify_gql__customer_metafields", "checksum": {"name": "sha256", "checksum": "6baad0e1b580a1d84fbd7b945503df32990beafd0d64caa90296378d893291fb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__customer model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.3063316, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__customer\", \n reference_values = ['customer'],\n id_column = \"customer_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__customer_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467be_bwrtbnwrj'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467be_bwrtbnwrj\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c4_brewbrewbre'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c4_brewbrewbre\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.first_name,\n \n source_table.last_name,\n \n source_table.orders_count,\n \n source_table.phone,\n \n source_table.account_state,\n \n source_table.is_tax_exempt,\n \n source_table.total_spent,\n \n source_table.is_verified_email,\n \n source_table.note,\n \n source_table.currency,\n \n source_table.marketing_consent_state,\n \n source_table.marketing_opt_in_level,\n \n source_table.marketing_consent_updated_at,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.default_address_id\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467be_bwrtbnwrj) as metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c4_brewbrewbre) as metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.customer_id\n and lower(lookup_object.owner_resource) in ('customer')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__collection_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__collection_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__collection_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__collection_metafields.sql", "unique_id": "model.shopify.shopify_gql__collection_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__collection_metafields"], "alias": "shopify_gql__collection_metafields", "checksum": {"name": "sha256", "checksum": "32b746ed89b86970bc65491e90337339d95f490f4b53efbad3c2d67b17c29056"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__collection model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.305859, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__collection_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__collection\", \n reference_values = ['collection'],\n id_column = \"collection_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__collection_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bd_gwhebwrb'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bd_gwhebwrb\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c3_wgewvevw'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c3_wgewvevw\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.collection_id,\n \n source_table.is_deleted,\n \n source_table.rule_logic,\n \n source_table.handle,\n \n source_table.sort_order,\n \n source_table.title,\n \n source_table.updated_at,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.rules\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bd_gwhebwrb) as metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c3_wgewvevw) as metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.collection_id\n and lower(lookup_object.owner_resource) in ('collection')\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__inventory_levels": {"database": "postgres", "schema": "public_shopify", "name": "shopify__inventory_levels", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__inventory_levels.sql", "original_file_path": "models/rest/shopify__inventory_levels.sql", "unique_id": "model.shopify.shopify__inventory_levels", "fqn": ["shopify", "rest", "shopify__inventory_levels"], "alias": "shopify__inventory_levels", "checksum": {"name": "sha256", "checksum": "e8d825125cc655025c647e33121dbd1eb1c201a0559aad2fa17efe928d69edaf"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of inventory items (which have a 1:1 relationship with product variants) and locations. \nInventory Level = Inventory item @ a Location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_item_deleted": {"name": "is_inventory_item_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "(DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_created_at": {"name": "inventory_item_created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_updated_at": {"name": "inventory_item_updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_location_deleted": {"name": "is_location_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_location_active": {"name": "is_location_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_created_at": {"name": "location_created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy_location": {"name": "is_legacy_location", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_name": {"name": "location_name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_updated_at": {"name": "location_updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_media_id": {"name": "variant_media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_variant_taxable": {"name": "is_variant_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_orders": {"name": "count_distinct_orders", "description": "The number of distinct orders placed from this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customers": {"name": "count_distinct_customers", "description": "The number of distinct customers (based on customer_id) that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customer_emails": {"name": "count_distinct_customer_emails", "description": "The number of distinct customer emails that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timetamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "The timestamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_refunds": {"name": "subtotal_sold_refunds", "description": "The monetary amount (in shop currency) of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_refunds": {"name": "quantity_sold_refunds", "description": "The quantity of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_subtotal_sold": {"name": "net_subtotal_sold", "description": "Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_quantity_sold": {"name": "net_quantity_sold", "description": "Net quantity sold from this inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_pending": {"name": "count_fulfillment_pending", "description": "Count of currently pending distinct fulfillments for this inventory level. \"Pending\" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_open": {"name": "count_fulfillment_open", "description": "Count of currently open distinct fulfillments for this inventory level. \"Open\" = The fulfillment has been acknowledged by the service and is in processing.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_success": {"name": "count_fulfillment_success", "description": "Count of successful distinct fulfillments for this inventory level. \"Success\" = The fulfillment was successful.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_cancelled": {"name": "count_fulfillment_cancelled", "description": "Count of cancelled distinct fulfillments for this inventory level. \"Cancelled\" = The fulfillment was cancelled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_error": {"name": "count_fulfillment_error", "description": "Count of distinct fulfillments for this inventory level that encountered an error. \"Error\" = There was an error with the fulfillment request.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of distinct fulfillments for this inventory level that failed. \"Failure\" = The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "available_quantity": {"name": "available_quantity", "description": "The available quantity that a merchant can sell, determined by coalescing the `quantity` where inventory_state_name = 'available' from `stg_shopify__inventory_quantity`and `available_quantity` from the deprecated `stg_shopify__inventory_level`. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "incoming_quantity": {"name": "incoming_quantity", "description": "The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "on_hand_quantity": {"name": "on_hand_quantity", "description": "The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "committed_quantity": {"name": "committed_quantity", "description": "The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reserved_quantity": {"name": "reserved_quantity", "description": "The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "damaged_quantity": {"name": "damaged_quantity", "description": "The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "safety_stock_quantity": {"name": "safety_stock_quantity", "description": "The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quality_control_quantity": {"name": "quality_control_quantity", "description": "The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.248655, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__inventory_levels\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith inventory_level as (\n\n select *\n from {{ var('shopify_inventory_level') }}\n), \n\ninventory_item as (\n\n select *\n from {{ var('shopify_inventory_item') }}\n),\n\ninventory_quantity as (\n\n select *\n from {{ var('shopify_inventory_quantity') }}\n),\n\nlocation as (\n\n select *\n from {{ var('shopify_location') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n),\n\nproduct as (\n\n select *\n from {{ var('shopify_product') }}\n),\n\ninventory_level_aggregated as (\n\n select *\n from {{ ref('int_shopify__inventory_level__aggregates') }}\n),\n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%}\n {% for inventory_state in inventory_states -%}\n , sum(case when lower(inventory_state_name) = {{ \"'\" ~ inventory_state|lower ~ \"'\" }}\n {% if inventory_state|lower == 'available ' -%}\n then coalesce(inventory_quantity.quantity, inventory_level.available_quantity)\n {% else -%}\n then inventory_quantity.quantity\n {% endif -%}\n end) as {{ inventory_state }}_quantity\n {% endfor -%}\n\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id as variant_media_id,\n {% endif %}\n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }}\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n left join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n {% endif %}\n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n\n {% for inventory_state in inventory_states -%}\n , inventory_quantity_aggregated.{{ inventory_state }}_quantity\n {% endfor -%}\n\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level", "package": null, "version": null}, {"name": "stg_shopify__inventory_item", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity", "package": null, "version": null}, {"name": "stg_shopify__location", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "int_shopify__inventory_level__aggregates", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__inventory_levels.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), inventory_level as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"\n), \n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\n),\n\ninventory_quantity as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"\n),\n\nlocation as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__location\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n),\n\nproduct as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n),\n\ninventory_level_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__inventory_level__aggregates\n),\n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n , sum(case when lower(inventory_state_name) = 'incoming'\n then inventory_quantity.quantity\n end) as incoming_quantity\n , sum(case when lower(inventory_state_name) = 'on_hand'\n then inventory_quantity.quantity\n end) as on_hand_quantity\n , sum(case when lower(inventory_state_name) = 'available'\n then inventory_quantity.quantity\n end) as available_quantity\n , sum(case when lower(inventory_state_name) = 'committed'\n then inventory_quantity.quantity\n end) as committed_quantity\n , sum(case when lower(inventory_state_name) = 'reserved'\n then inventory_quantity.quantity\n end) as reserved_quantity\n , sum(case when lower(inventory_state_name) = 'damaged'\n then inventory_quantity.quantity\n end) as damaged_quantity\n , sum(case when lower(inventory_state_name) = 'safety_stock'\n then inventory_quantity.quantity\n end) as safety_stock_quantity\n , sum(case when lower(inventory_state_name) = 'quality_control'\n then inventory_quantity.quantity\n end) as quality_control_quantity\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n \n product_variant_media.media_id as variant_media_id,\n \n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n \n\n\n\n\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n \n left join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n \n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n \n , coalesce(inventory_level_aggregated.count_fulfillment_pending, 0) as count_fulfillment_pending\n \n , coalesce(inventory_level_aggregated.count_fulfillment_open, 0) as count_fulfillment_open\n \n , coalesce(inventory_level_aggregated.count_fulfillment_success, 0) as count_fulfillment_success\n \n , coalesce(inventory_level_aggregated.count_fulfillment_cancelled, 0) as count_fulfillment_cancelled\n \n , coalesce(inventory_level_aggregated.count_fulfillment_error, 0) as count_fulfillment_error\n \n , coalesce(inventory_level_aggregated.count_fulfillment_failure, 0) as count_fulfillment_failure\n \n\n , inventory_quantity_aggregated.incoming_quantity\n , inventory_quantity_aggregated.on_hand_quantity\n , inventory_quantity_aggregated.available_quantity\n , inventory_quantity_aggregated.committed_quantity\n , inventory_quantity_aggregated.reserved_quantity\n , inventory_quantity_aggregated.damaged_quantity\n , inventory_quantity_aggregated.safety_stock_quantity\n , inventory_quantity_aggregated.quality_control_quantity\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify__inventory_level__aggregates", "sql": " __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__discounts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__discounts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__discounts.sql", "original_file_path": "models/rest/shopify__discounts.sql", "unique_id": "model.shopify.shopify__discounts", "fqn": ["shopify", "rest", "shopify__discounts"], "alias": "shopify__discounts", "checksum": {"name": "sha256", "checksum": "62fa5f60084ea0263c89743d8e99e3642dc01df675b0f810158be89eba5984aa"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts.\n", "columns": {"discounts_unique_key": {"name": "discounts_unique_key", "description": "Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "The case-insensitive discount code that customers use at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether the discount can be used only once per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "Number of times the discount has been used (asynchronously updated).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "Number of unique redeem codes associated with the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether `codes_count` is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "Timestamp when the discount ends or expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "Timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "Current status of the discount (e.g. 'active', 'expired', 'scheduled').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount\u2019s display name in the Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to 'all' or 'entitled' items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "application_type": {"name": "application_type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Numeric value of the discount (e.g., percentage or fixed amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "How the discount value is interpreted (e.g., 'percentage', 'fixed_amount').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_discount_amount": {"name": "total_order_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off of orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_discount_amount": {"name": "total_abandoned_checkout_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_line_items_price": {"name": "total_order_line_items_price", "description": "Total monetary amount (in shop currency) of line items for orders that have used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_shipping_cost": {"name": "total_order_shipping_cost", "description": "Total shipping costs for orders that used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_shipping_price": {"name": "total_abandoned_checkout_shipping_price", "description": "Total projected shipping costs for abandoned checkouts that applied this discount first.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_refund_amount": {"name": "total_order_refund_amount", "description": "Total refunded amount (in shop currency) for orders that used this discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer emails who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_discount_amount": {"name": "avg_order_discount_amount", "description": "Average amount (in shop currency) of discount taken off orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "count_orders": {"name": "count_orders", "description": "Count of orders in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customers": {"name": "count_abandoned_checkout_customers", "description": "Distinct count of customers who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customer_emails": {"name": "count_abandoned_checkout_customer_emails", "description": "Distinct count of customer emails who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.2521954, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__discounts\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith discounts_enriched as (\n\n select *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as discounts_unique_key\n from {{ ref('int_shopify__discount_code_enriched')}}\n),\n\norders_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__order_aggregates')}}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\nabandoned_checkouts_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__abandoned_checkouts')}}\n),\n{% endif %}\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n {% endif %} \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n {% endif %}\n)\n\nselect * \nfrom aggregates_joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discount_code_enriched", "package": null, "version": null}, {"name": "int_shopify__discounts__order_aggregates", "package": null, "version": null}, {"name": "int_shopify__discounts__abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__discounts__abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__discounts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n), __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), discounts_enriched as (\n\n select *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_code_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as discounts_unique_key\n from __dbt__cte__int_shopify__discount_code_enriched\n),\n\norders_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__order_aggregates\n),\n\n\nabandoned_checkouts_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__abandoned_checkouts\n),\n\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n \n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n \n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n \n)\n\nselect * \nfrom aggregates_joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discount_code_enriched", "sql": " __dbt__cte__int_shopify__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n)"}, {"id": "model.shopify.int_shopify__discounts__order_aggregates", "sql": " __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}, {"id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "sql": " __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discounts_unique_key"], "time_spine": null}, "model.shopify.shopify__customers": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customers.sql", "original_file_path": "models/rest/shopify__customers.sql", "unique_id": "model.shopify.shopify__customers", "fqn": ["shopify", "rest", "shopify__customers"], "alias": "shopify__customers", "checksum": {"name": "sha256", "checksum": "0ecd7f0b22e3a25224a922e9f02cfa4d5deadd8d3b62d124e6caff3602c729c0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money in shop currency that the customer has spent on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.231796, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customers\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customers as (\n\n select \n {{ dbt_utils.star(from=ref('stg_shopify__customer'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ var('shopify_customer') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__customers__order_aggregates' )}}\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where customer_id is not null\n group by 1,2\n{% endif %}\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags\n\n from {{ var('shopify_customer_tag' )}}\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n {% endif %}\n\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "shopify__customers__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customers.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n), customers as (\n\n select \n \"customer_id\",\n \"email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"phone\",\n \"account_state\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"marketing_consent_updated_at\",\n \"created_timestamp\",\n \"updated_timestamp\",\n \"_fivetran_synced\",\n \"source_relation\"\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), orders as (\n\n select *\n from __dbt__cte__shopify__customers__order_aggregates\n\n\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where customer_id is not null\n group by 1,2\n\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as customer_tags\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n \n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__customers__order_aggregates", "sql": " __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__products": {"database": "postgres", "schema": "public_shopify", "name": "shopify__products", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__products.sql", "original_file_path": "models/rest/shopify__products.sql", "unique_id": "model.shopify.shopify__products", "fqn": ["shopify", "rest", "shopify__products"], "alias": "shopify__products", "checksum": {"name": "sha256", "checksum": "cfa6ebbb138e82d7287894a9ab6ea7d2ae5511199880dd0650bea0aeaf4f09a8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity_sold": {"name": "total_quantity_sold", "description": "Quantity of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (in shop currency) of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_net_refunds": {"name": "quantity_sold_net_refunds", "description": "Quantity of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_net_refunds": {"name": "subtotal_sold_net_refunds", "description": "Total amount (in shop currency) of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the product was first ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the product was most recently ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order_line": {"name": "avg_quantity_per_order_line", "description": "Average quantity per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_discount": {"name": "product_total_discount", "description": "Total discounts associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_discount_per_order_line": {"name": "product_avg_discount_per_order_line", "description": "Average discount per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_tax": {"name": "product_total_tax", "description": "Total taxes associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_tax_per_order_line": {"name": "product_avg_tax_per_order_line", "description": "Average taxes per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants": {"name": "count_variants", "description": "Count of product variants.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_product_media": {"name": "has_product_media", "description": "If the product has media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collections": {"name": "collections", "description": "Comma-separated list of collections associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tags": {"name": "tags", "description": "Comma-separated list of tags associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.2359781, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__products\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith products as (\n\n select *\n from {{ ref('int_shopify__products_with_aggregates') }}\n\n), product_order_lines as (\n\n select *\n from {{ ref('int_shopify__product__order_line_aggregates')}}\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__products_with_aggregates", "package": null, "version": null}, {"name": "int_shopify__product__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.int_shopify__product__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__products.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), products as (\n\n select *\n from __dbt__cte__int_shopify__products_with_aggregates\n\n), product_order_lines as (\n\n select *\n from __dbt__cte__int_shopify__product__order_line_aggregates\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__products_with_aggregates", "sql": " __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify__product__order_line_aggregates", "sql": " __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_emails": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_emails", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_emails.sql", "original_file_path": "models/rest/shopify__customer_emails.sql", "unique_id": "model.shopify.shopify__customer_emails", "fqn": ["shopify", "rest", "shopify__customer_emails"], "alias": "shopify__customer_emails", "checksum": {"name": "sha256", "checksum": "950e6e68218fd53bf2bd11f089af340c092a4251e1fd9d8c9230bf9c298af01f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer email in Shopify.", "columns": {"last_fivetran_synced": {"name": "last_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_ids": {"name": "customer_ids", "description": "Comma-separated list of customer IDs associated with the email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone_numbers": {"name": "phone_numbers", "description": "Comma-separated list of phone numbers associated with this email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_updated_at": {"name": "last_updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money that the customer has spent on orders across their order history (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_account_created_at": {"name": "first_account_created_at", "description": "Timestamp of when the first account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_account_created_at": {"name": "last_account_created_at", "description": "Timestamp of when the last account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.2342236, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_emails\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customer_emails as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify__customer_email_rollup'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ ref('int_shopify__customer_email_rollup') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify__emails__order_aggregates' )}}\n where email is not null\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where email is not null\n group by 1,2\n{% endif %}\n\n), joined as (\n\n select \n customer_emails.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__emails__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star"], "nodes": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_emails.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), customer_emails as (\n\n select \n \"email\",\n \"source_relation\",\n \"customer_ids\",\n \"phone_numbers\",\n \"customer_tags\",\n \"first_account_created_at\",\n \"last_account_created_at\",\n \"last_updated_at\",\n \"marketing_consent_updated_at\",\n \"last_fivetran_synced\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"account_state\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\"\n from \"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify__emails__order_aggregates\n where email is not null\n\n\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where email is not null\n group by 1,2\n\n\n), joined as (\n\n select \n customer_emails.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n \n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__emails__order_aggregates", "sql": " __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__transactions": {"database": "postgres", "schema": "public_shopify", "name": "shopify__transactions", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__transactions.sql", "original_file_path": "models/rest/shopify__transactions.sql", "unique_id": "model.shopify.shopify__transactions", "fqn": ["shopify", "rest", "shopify__transactions"], "alias": "shopify__transactions", "checksum": {"name": "sha256", "checksum": "4c15f502fa243723bce0834561afdefee97a2ca1dee9e4bebadad7e2e2f42c1a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transactions_unique_id": {"name": "transactions_unique_id", "description": "Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of the date the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "exchange_rate": {"name": "exchange_rate", "description": "The exchange rate between the home currency and the currency of sale at the time of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_calculated_amount": {"name": "currency_exchange_calculated_amount", "description": "The total amount of the transaction with the currency exchange rate applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Method of payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_created_timestamp": {"name": "parent_created_timestamp", "description": "Created on timestamp of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_kind": {"name": "parent_kind", "description": "Kind of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_amount": {"name": "parent_amount", "description": "Amount of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_status": {"name": "parent_status", "description": "Status of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "Timestamp when the authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.243728, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__transactions\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith transactions as (\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'transaction_id'])}} as transactions_unique_id\n from {{ var('shopify_transaction') }} \n\n), tender_transactions as (\n\n select *\n from {{ var('shopify_tender_transaction') }}\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.json_parse", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__transactions.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as transactions_unique_id\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\" \n\n), tender_transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) as exchange_rate,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["transactions_unique_id"], "time_spine": null}, "model.shopify.shopify__orders": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__orders.sql", "original_file_path": "models/rest/shopify__orders.sql", "unique_id": "model.shopify.shopify__orders", "fqn": ["shopify", "rest", "shopify__orders"], "alias": "shopify__orders", "checksum": {"name": "sha256", "checksum": "391f81515fc070ec8ddcf72d17f302ea6b76c9341329302d11ed57e3ff96b0e0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"orders_unique_key": {"name": "orders_unique_key", "description": "Unique key representing an order. Hashed on 'order_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count": {"name": "line_item_count", "description": "Number of line items included in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_order_seq_number": {"name": "customer_order_seq_number", "description": "The sequential number of the order as it relates to the customer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "new_vs_repeat": {"name": "new_vs_repeat", "description": "Whether the order was a new or repeat order for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to the adjustment on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "The checkout token applied to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price set to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_total_shipping_tax": {"name": "order_total_shipping_tax", "description": "Total shipping tax attributed to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_tags": {"name": "order_tags", "description": "List of tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_url_tags": {"name": "order_url_tags", "description": "List of url tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number_of_fulfillments": {"name": "number_of_fulfillments", "description": "Total fulfillments for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_services": {"name": "fulfillment_services", "description": "List of fulfillment services for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_companies": {"name": "tracking_companies", "description": "List of tracking companies for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "List of tracking numbers for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied on the order", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.2295756, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_id']) }} as orders_unique_key\n from {{ var('shopify_order') }}\n \n), order_lines as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), order_adjustments as (\n\n select *\n from {{ var('shopify_order_adjustment') }}\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from {{ var('shopify_order_discount_code') }}\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_tags\n \n from {{ var('shopify_order_tag') }}\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_url_tags\n \n from {{ var('shopify_order_url_tag') }}\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n {{ fivetran_utils.string_agg(\"distinct cast(service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_company as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_number as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_numbers\n\n from {{ var('shopify_fulfillment') }}\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast({{ fivetran_utils.json_parse(\"total_shipping_price_set\",[\"shop_money\",\"amount\"]) }} as {{ dbt.type_float() }}) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify__order_tag", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.json_parse", "macro.dbt.type_float", "macro.shopify.shopify_partition_by_cols"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag", "model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__orders.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), orders as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as orders_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n \n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), order_adjustments as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_url_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n \n string_agg(distinct cast(service as TEXT), ', ')\n\n as fulfillment_services,\n \n string_agg(distinct cast(tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(tracking_number as TEXT), ', ')\n\n as tracking_numbers\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast(\n\n total_shipping_price_set::json #>> '{shop_money,amount}'\n\n as float) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by \n\n\n customer_id\n\n\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["orders_unique_key"], "time_spine": null}, "model.shopify.shopify__order_lines": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_lines", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__order_lines.sql", "original_file_path": "models/rest/shopify__order_lines.sql", "unique_id": "model.shopify.shopify__order_lines", "fqn": ["shopify", "rest", "shopify__order_lines"], "alias": "shopify__order_lines", "checksum": {"name": "sha256", "checksum": "4bea1545ae004b8d366bcf551eead0be215407510cf95a048869e1346d111116"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item of an order in Shopify.", "columns": {"order_lines_unique_key": {"name": "order_lines_unique_key", "description": "Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_quantity": {"name": "refunded_quantity", "description": "Quantity of the item that has been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net_refunds": {"name": "quantity_net_refunds", "description": "Quantity ordered, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_compare_at_price": {"name": "variant_compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_position": {"name": "variant_position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sku": {"name": "variant_sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_taxable": {"name": "variant_is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_subtotal": {"name": "refunded_subtotal", "description": "Subtotal amount of the refund applied to the order line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_net_refunds": {"name": "subtotal_net_refunds", "description": "Subtotal of the order line with refunds subtracted in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_types": {"name": "restock_types", "description": "List of how this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_tax": {"name": "order_line_tax", "description": "Total taxes for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The total pre tax price of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.2410412, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_lines\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_line_id']) }} as order_lines_unique_key\n from {{ var('shopify_order_line') }}\n\n), product_variants as (\n\n select *\n from {{ var('shopify_product_variant') }}\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), \n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n {{ fivetran_utils.string_agg(\"distinct cast(refunds.restock_type as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from {{ var('shopify_tax_line')}}\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id,\n {% endif %}\n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__order_lines.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as order_lines_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), \n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n \n string_agg(distinct cast(refunds.restock_type as TEXT), ', ')\n\n as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n \n product_variant_media.media_id,\n \n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n \n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_lines_unique_key"], "time_spine": null}, "model.shopify.shopify__daily_shop": {"database": "postgres", "schema": "public_shopify", "name": "shopify__daily_shop", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__daily_shop.sql", "original_file_path": "models/rest/shopify__daily_shop.sql", "unique_id": "model.shopify.shopify__daily_shop", "fqn": ["shopify", "rest", "shopify__daily_shop"], "alias": "shopify__daily_shop", "checksum": {"name": "sha256", "checksum": "26b5fbd6bc74a61de3e6051ace6b3c123b9a789b1871f098d3803e2a0a348335"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a day in your Shop, enriched with a suite of metrics.\n", "columns": {"date_day": {"name": "date_day", "description": "Day for which the shop activity is being measured.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders": {"name": "count_orders", "description": "Count of the distinct orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_line_items": {"name": "count_line_items", "description": "Count of the line items included in orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer email addresses who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "Average adjusted total per order placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount (in shop currency) applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to adjustments (in shop currency) on the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of the discount allocated to this day's orders in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied by customers on orders for this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_locations_ordered_from": {"name": "count_locations_ordered_from", "description": "Distinct locations with orders placed against them on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_discounts": {"name": "count_orders_with_discounts", "description": "Count of orders in which a discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_refunds": {"name": "count_orders_with_refunds", "description": "Count of orders in which there was a refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "Timestamp of the first order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "Timestamp of the last order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_refunded": {"name": "quantity_refunded", "description": "The quantity of goods ORDERED on this day that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net": {"name": "quantity_net", "description": "Net quantity sold from this shop on this day. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants_sold": {"name": "count_variants_sold", "description": "Distinct product variants sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_products_sold": {"name": "count_products_sold", "description": "Distinct products sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_gift_cards_sold": {"name": "quantity_gift_cards_sold", "description": "Quantity of gift cards sold on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_requiring_shipping": {"name": "quantity_requiring_shipping", "description": "Quantity of goods sold on this day that require shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers_abandoned_checkout": {"name": "count_customers_abandoned_checkout", "description": "Count of distinct customers who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails_abandoned_checkout": {"name": "count_customer_emails_abandoned_checkout", "description": "Count of distinct customer emails who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_attempted_delivery": {"name": "count_fulfillment_attempted_delivery", "description": "Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delivered": {"name": "count_fulfillment_delivered", "description": "Count of successful distinct fulfillments successfully delivered on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_in_transit": {"name": "count_fulfillment_in_transit", "description": "Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_out_for_delivery": {"name": "count_fulfillment_out_for_delivery", "description": "Count of distinct fulfillments being delivered to their final destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_ready_for_pickup": {"name": "count_fulfillment_ready_for_pickup", "description": "Count of distinct fulfillments ready for pickup at a shipping depot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_picked_up": {"name": "count_fulfillment_picked_up", "description": "Count of distinct fulfillments successfully picked up on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_printed": {"name": "count_fulfillment_label_printed", "description": "Count of distinct fulfillments for which a purchased shipping label has been printed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_purchased": {"name": "count_fulfillment_label_purchased", "description": "Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_confirmed": {"name": "count_fulfillment_confirmed", "description": "Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delayed": {"name": "count_fulfillment_delayed", "description": "Count of delayed distinct fulfillments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_line_item_count": {"name": "avg_line_item_count", "description": "Average line item count for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount": {"name": "avg_discount", "description": "Average total discount placed on orders on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_discount_amount": {"name": "avg_shipping_discount_amount", "description": "Average discount amount (in shop currency) allocated toward shipping on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_percentage_calc_discount_amount": {"name": "avg_percentage_calc_discount_amount", "description": "Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_fixed_amount_discount_amount": {"name": "avg_fixed_amount_discount_amount", "description": "Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_sold": {"name": "avg_quantity_sold", "description": "Average quantity sold per order on this day. Includes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_net": {"name": "avg_quantity_net", "description": "Average net quantity sold per order on this day. Excludes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.255651, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__daily_shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith shop as (\n\n select *\n from {{ var('shopify_shop') }}\n),\n\ncalendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from {{ ref('int_shopify__daily_orders') }}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\ndaily_abandoned_checkouts as (\n\n select *\n from {{ ref('int_shopify__daily_abandoned_checkouts') }}\n),\n{% endif %}\n\n{% if var('shopify_using_fulfillment_event', false) %}\ndaily_fulfillment as (\n\n select *\n from {{ ref('int_shopify__daily_fulfillment') }}\n),\n{% endif %}\n\nshop_calendar as (\n\n select\n cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n {% endif %}\n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n {% endif %}\n \n)\n\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "shopify__calendar", "package": null, "version": null}, {"name": "int_shopify__daily_orders", "package": null, "version": null}, {"name": "int_shopify__daily_abandoned_checkouts", "package": null, "version": null}, {"name": "int_shopify__daily_fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__shop", "model.shopify.shopify__calendar", "model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__daily_shop.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n), __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n), __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n), shop as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n),\n\ncalendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('day', date_day) as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from __dbt__cte__int_shopify__daily_orders\n),\n\n\ndaily_abandoned_checkouts as (\n\n select *\n from __dbt__cte__int_shopify__daily_abandoned_checkouts\n),\n\n\n\ndaily_fulfillment as (\n\n select *\n from __dbt__cte__int_shopify__daily_fulfillment\n),\n\n\nshop_calendar as (\n\n select\n cast(date_trunc('day', calendar.date_day) as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n \n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n \n\n \n \n , coalesce(count_fulfillment_attempted_delivery, 0) as count_fulfillment_attempted_delivery\n \n , coalesce(count_fulfillment_delayed, 0) as count_fulfillment_delayed\n \n , coalesce(count_fulfillment_delivered, 0) as count_fulfillment_delivered\n \n , coalesce(count_fulfillment_failure, 0) as count_fulfillment_failure\n \n , coalesce(count_fulfillment_in_transit, 0) as count_fulfillment_in_transit\n \n , coalesce(count_fulfillment_out_for_delivery, 0) as count_fulfillment_out_for_delivery\n \n , coalesce(count_fulfillment_ready_for_pickup, 0) as count_fulfillment_ready_for_pickup\n \n , coalesce(count_fulfillment_picked_up, 0) as count_fulfillment_picked_up\n \n , coalesce(count_fulfillment_label_printed, 0) as count_fulfillment_label_printed\n \n , coalesce(count_fulfillment_label_purchased, 0) as count_fulfillment_label_purchased\n \n , coalesce(count_fulfillment_confirmed, 0) as count_fulfillment_confirmed\n \n \n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n \n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n \n\n \n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n \n \n)\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__daily_orders", "sql": " __dbt__cte__int_shopify__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify__daily_abandoned_checkouts", "sql": " __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n)"}, {"id": "model.shopify.int_shopify__daily_fulfillment", "sql": " __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_email_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_email_cohorts.sql", "original_file_path": "models/rest/shopify__customer_email_cohorts.sql", "unique_id": "model.shopify.shopify__customer_email_cohorts", "fqn": ["shopify", "rest", "shopify__customer_email_cohorts"], "alias": "shopify__customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "3c60f6ffa19bb9a0e60b9b3a02e5c5a3a5baa560bcfa85b39e38194b2bae552a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's (on the EMAIL grain) performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "created_at": 1755574972.2236912, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == 'rest',\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'email'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customer_emails') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customer_emails", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_email_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customer_emails\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n email\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.email as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify__customer_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_cohorts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_cohorts.sql", "original_file_path": "models/rest/shopify__customer_cohorts.sql", "unique_id": "model.shopify.shopify__customer_cohorts", "fqn": ["shopify", "rest", "shopify__customer_cohorts"], "alias": "shopify__customer_cohorts", "checksum": {"name": "sha256", "checksum": "8b92c597e275f6464fbf1375ffb22714ad640588e7f163bb322202ef25f70304"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "created_at": 1755574972.2224317, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == 'rest',\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'customer_id'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customers\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast(date_trunc('month', first_order_timestamp) as date) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n customer_id\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-08-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.int_shopify__order__shipping_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__order__shipping_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__order__shipping_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__order__shipping_aggregates.sql", "unique_id": "model.shopify.int_shopify__order__shipping_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__order__shipping_aggregates"], "alias": "int_shopify__order__shipping_aggregates", "checksum": {"name": "sha256", "checksum": "0b62dd0d5d3643dd2d497124c55db965c77cbf556e68645f15965bf80f3d3a82"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574972.3126557, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from {{ var('shopify_order_shipping_line') }}\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from {{ var('shopify_order_shipping_tax_line') }}\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__order__shipping_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__daily_orders": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_orders", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_orders.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_orders.sql", "unique_id": "model.shopify.int_shopify__daily_orders", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_orders"], "alias": "int_shopify__daily_orders", "checksum": {"name": "sha256", "checksum": "f866152e2f91cf3593173286eeb1d4337212bc81a34a1b8550189f69081f69a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.5443053, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from {{ ref('shopify__order_lines') }}\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.shopify__orders", "model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_orders.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__orders__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__orders__order_line_aggregates.sql", "original_file_path": "models/rest/intermediate/shopify__orders__order_line_aggregates.sql", "unique_id": "model.shopify.shopify__orders__order_line_aggregates", "fqn": ["shopify", "rest", "intermediate", "shopify__orders__order_line_aggregates"], "alias": "shopify__orders__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "dc06ee54fe54de8c7cd7a17fc15bb4ab1331d5d1f7ea6b71aabce4a6d9cc3a3f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.309259, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"", "raw_code": "{{ config(materialized='table', enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_line as (\n\n select *\n from {{ var('shopify_order_line') }}\n\n), tax as (\n\n select\n *\n from {{ var('shopify_tax_line') }}\n\n), shipping as (\n\n select\n *\n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__orders__order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), order_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), tax as (\n\n select\n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), shipping as (\n\n select\n *\n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__emails__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__emails__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__emails__order_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__emails__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__emails__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__emails__order_aggregates"], "alias": "int_shopify__emails__order_aggregates", "checksum": {"name": "sha256", "checksum": "1b106193505d9a5cbf6f64b6fbc51c6eb010151e48da445481c726fc0a5a1f46"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574972.3102021, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_order') }}\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from {{ var('shopify_customer') }}\n where email is not null\n {{ dbt_utils.group_by(n=3) }}\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__emails__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__products_with_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__products_with_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__products_with_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__products_with_aggregates.sql", "unique_id": "model.shopify.int_shopify__products_with_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__products_with_aggregates"], "alias": "int_shopify__products_with_aggregates", "checksum": {"name": "sha256", "checksum": "f76affed4b8f7e1cbce3598d02d4114978ee18b9e5b4583720285c3c7c19750d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574972.3135445, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith products as (\n\n select *\n from {{ var('shopify_product') }}\n), \n\ncollection_product as (\n\n select *\n from {{ var('shopify_collection_product') }}\n),\n\ncollection as (\n\n select *\n from {{ var('shopify_collection') }}\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from {{ var('shopify_product_tag') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n), \n\nproduct_media as (\n\n select *\n from {{ var('shopify_product_media') }}\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter=\"', '\") }} as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='value', delimiter=\"', '\") }} as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__collection_product", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__product_tag", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__products_with_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discount_code_enriched": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discount_code_enriched", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discount_code_enriched.sql", "original_file_path": "models/rest/intermediate/int_shopify__discount_code_enriched.sql", "unique_id": "model.shopify.int_shopify__discount_code_enriched", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discount_code_enriched"], "alias": "int_shopify__discount_code_enriched", "checksum": {"name": "sha256", "checksum": "bcf513cc78532e595d895f3b33240d906515eaf4979369990586897a7bb64e84"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.584827, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith discount_redeem_codes as (\n \n select *\n from {{ var('shopify_discount_redeem_code') }}\n),\n\ndiscount_applications as (\n\n select *\n from {{ var('shopify_discount_application') }}\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_basic') }}\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_bxgy') }}\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_free_shipping') }}\n\n {% if var('shopify_using_discount_code_app', False) %}\n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_app') }}\n {% endif %}\n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_application", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code", "model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discount_code_enriched.sql", "compiled": true, "compiled_code": "\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__orders__order_refunds": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_refunds", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__orders__order_refunds.sql", "original_file_path": "models/rest/intermediate/shopify__orders__order_refunds.sql", "unique_id": "model.shopify.shopify__orders__order_refunds", "fqn": ["shopify", "rest", "intermediate", "shopify__orders__order_refunds"], "alias": "shopify__orders__order_refunds", "checksum": {"name": "sha256", "checksum": "b2779287393dd936f29751f0839d05d36aa9ac1ec21f071744d6d1c3047adc11"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574972.3097537, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith refunds as (\n\n select *\n from {{ var('shopify_refund') }}\n\n), order_line_refunds as (\n\n select *\n from {{ var('shopify_order_line_refund') }}\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__refund", "model.shopify_source.stg_shopify__order_line_refund"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__orders__order_refunds.sql", "compiled": true, "compiled_code": "\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__inventory_level__aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__inventory_level__aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__inventory_level__aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__inventory_level__aggregates.sql", "unique_id": "model.shopify.int_shopify__inventory_level__aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__inventory_level__aggregates"], "alias": "int_shopify__inventory_level__aggregates", "checksum": {"name": "sha256", "checksum": "71c148adee52b31e8a96b36110d93dba3f37be66f265625ca908744297ac0a92"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574972.3112776, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select *\n from {{ var('shopify_order_line') }}\n),\n\nfulfillment as (\n\n select *\n from {{ var('shopify_fulfillment') }}\n),\n\norders as (\n\n select *\n from {{ var('shopify_order') }}\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n {{ dbt_utils.group_by(n=3) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_refunds"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__inventory_level__aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__daily_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__daily_abandoned_checkouts", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_abandoned_checkouts"], "alias": "int_shopify__daily_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "3ed79baa28d3b9160647ad92b70096d29c4bffe408b4d69e2fcd790e124f9074"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.6167667, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__product__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__product__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__product__order_line_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__product__order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify__product__order_line_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__product__order_line_aggregates"], "alias": "int_shopify__product__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "7318e3e5faba66745a27e59d40674690031727a7c2719c8660c8c73a685e3896"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574972.3131018, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select *\n from {{ ref('shopify__order_lines') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders')}}\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__product__order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__customer_email_rollup": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__customer_email_rollup.sql", "original_file_path": "models/rest/intermediate/int_shopify__customer_email_rollup.sql", "unique_id": "model.shopify.int_shopify__customer_email_rollup", "fqn": ["shopify", "rest", "intermediate", "int_shopify__customer_email_rollup"], "alias": "int_shopify__customer_email_rollup", "checksum": {"name": "sha256", "checksum": "37f30d45093b6c1ed887121ee7e4b1ff6dafc2f9353024e4255b86946a64b431"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1755574972.3106697, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by created_timestamp desc) \n as customer_index\n\n from {{ var('shopify_customer') }}\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from {{ var('shopify_customer_tag' )}}\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n {{ fivetran_utils.string_agg(\"distinct cast(customers.customer_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_ids,\n {{ fivetran_utils.string_agg(\"distinct cast(customers.phone as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as phone_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(customer_tags.value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n {{ fivetran_utils.max_bool(\"case when customers.customer_index = 1 then customers.is_tax_exempt else null end\") }} as is_tax_exempt, -- since this changes every year\n {{ fivetran_utils.max_bool(\"customers.is_verified_email\") }} as is_verified_email\n\n -- for all other fields, just take the latest value\n {% set cols = adapter.get_columns_in_relation(ref('stg_shopify__customer')) %}\n {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', \n 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp',\n 'is_tax_exempt', 'is_verified_email'] %}\n {% for col in cols %}\n {% if col.column|lower not in except_cols %}\n , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }}\n {% endif %}\n {% endfor %}\n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_partition_by_cols", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.max_bool"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__customer_email_rollup.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by \n\n\n email\n\n\n order by created_timestamp desc) \n as customer_index\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n \n string_agg(distinct cast(customers.customer_id as TEXT), ', ')\n\n as customer_ids,\n \n string_agg(distinct cast(customers.phone as TEXT), ', ')\n\n as phone_numbers,\n \n string_agg(distinct cast(customer_tags.value as TEXT), ', ')\n\n as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n \n\n bool_or( case when customers.customer_index = 1 then customers.is_tax_exempt else null end )\n\n as is_tax_exempt, -- since this changes every year\n \n\n bool_or( customers.is_verified_email )\n\n as is_verified_email\n\n -- for all other fields, just take the latest value\n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.first_name else null end) as first_name\n \n \n \n , max(case when customers.customer_index = 1 then customers.last_name else null end) as last_name\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.default_address_id else null end) as default_address_id\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.account_state else null end) as account_state\n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.note else null end) as note\n \n \n \n , max(case when customers.customer_index = 1 then customers.currency else null end) as currency\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_consent_state else null end) as marketing_consent_state\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_opt_in_level else null end) as marketing_opt_in_level\n \n \n \n \n \n \n \n \n \n \n \n \n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discounts__order_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__discounts__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__discounts__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discounts__order_aggregates"], "alias": "int_shopify__discounts__order_aggregates", "checksum": {"name": "sha256", "checksum": "bf596881f17db03334a269b53a5856d2cddfe92d6bd8dffc26b5b779e874a480"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574972.3117483, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_discount_code as (\n\n select *\n from {{ var('shopify_order_discount_code') }}\n),\n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_discount_code", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discounts__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__daily_fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_fulfillment", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_fulfillment.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_fulfillment.sql", "unique_id": "model.shopify.int_shopify__daily_fulfillment", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_fulfillment"], "alias": "int_shopify__daily_fulfillment", "checksum": {"name": "sha256", "checksum": "5d07c22ba6468bebf18c3be8c5d123914dc91b33eb036c4bc75feb1bd4f7529c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574970.6571255, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith fulfillment_event as (\n\n select *\n from {{ var('shopify_fulfillment_event') }}\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day\n\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customers__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__customers__order_aggregates.sql", "original_file_path": "models/rest/intermediate/shopify__customers__order_aggregates.sql", "unique_id": "model.shopify.shopify__customers__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "shopify__customers__order_aggregates"], "alias": "shopify__customers__order_aggregates", "checksum": {"name": "sha256", "checksum": "e1af84adc51e48a677e22660a99ca8e7d48ee8fabc49c0b4505c8fc1c7233264"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574972.3088124, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_order') }}\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n {{ dbt_utils.group_by(n=2) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__customers__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "original_file_path": "models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discounts__abandoned_checkouts"], "alias": "int_shopify__discounts__abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "4db18a80ca151075ad7431fe218c35b61b96196951cf2da104512d277ca94f83"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1755574972.3121934, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from {{ var('shopify_abandoned_checkout_discount_code') }}\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from {{ var('shopify_abandoned_checkout_shipping_line') }}\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__line_item_enhanced": {"database": "postgres", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "resource_type": "model", "package_name": "shopify", "path": "rest/standardized_models/shopify__line_item_enhanced.sql", "original_file_path": "models/rest/standardized_models/shopify__line_item_enhanced.sql", "unique_id": "model.shopify.shopify__line_item_enhanced", "fqn": ["shopify", "rest", "standardized_models", "shopify__line_item_enhanced"], "alias": "shopify__line_item_enhanced", "checksum": {"name": "sha256", "checksum": "b7aba2e3c1eb834a55bcb5174c0e3ad5db1e8699f88d14469d04cbdcbefe0e5c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It\u2019s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details.", "columns": {"header_id": {"name": "header_id", "description": "Id of corresponding order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_id": {"name": "line_item_id", "description": "Order line item id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_index": {"name": "line_item_index", "description": "Unique index of each line item id for each order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "record_type": {"name": "record_type", "description": "header or line_item", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the order was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "header_status": {"name": "header_status", "description": "Status of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_type": {"name": "billing_type", "description": "NA for Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "Currency used in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "Product ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_name": {"name": "product_name", "description": "Product name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "Product type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_type": {"name": "transaction_type", "description": "Transaction type (Charge, Refund, etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of units of this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_amount": {"name": "unit_amount", "description": "Amount per unit, or the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_amount": {"name": "discount_amount", "description": "The discount amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "The tax amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_amount": {"name": "total_amount", "description": "Order total", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_id": {"name": "payment_id", "description": "Transaction ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Transaction gateway for Shopify ('gift card', 'shopify payments', etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method_id": {"name": "payment_method_id", "description": "Shopify does not have a particular payment_method_id, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_at": {"name": "payment_at", "description": "Transaction processed timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fee_amount": {"name": "fee_amount", "description": "The total shipping fee associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_amount": {"name": "refund_amount", "description": "Refund amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_id": {"name": "subscription_id", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_plan": {"name": "subscription_plan", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_started_at": {"name": "subscription_period_started_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_ended_at": {"name": "subscription_period_ended_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_status": {"name": "subscription_status", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "Customer associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_created_at": {"name": "customer_created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_level": {"name": "customer_level", "description": "Whether 'account' or 'customer'. For Shopify, the level is 'customer'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_name": {"name": "customer_name", "description": "Customer name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_company": {"name": "customer_company", "description": "Associated customer's company noted on the shipping address if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "Customer email", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_city": {"name": "customer_city", "description": "Customer's shipping address city", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_country": {"name": "customer_country", "description": "Customer's shipping address country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/standardized_models/shopify__standardized_models.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.3161118, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__line_item_enhanced\"", "raw_code": "{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith line_items as (\n\n select * \n from {{ var('shopify_order_line')}}\n\n), orders as ( \n\n select * \n from {{ var('shopify_order')}}\n\n), product as (\n\n select *\n from {{ var('shopify_product')}}\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n {{ fivetran_utils.string_agg(\"cast (transaction_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} AS transaction_id,\n {{ fivetran_utils.string_agg(\"cast (processed_timestamp as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as processed_timestamp,\n {{ fivetran_utils.string_agg('gateway', \"', '\") }} as gateway\n\n from {{ var('shopify_transaction')}}\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from {{ var('shopify_transaction')}}\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from {{ var('shopify_order_line_refund')}}\n group by 1,2\n\n), customer as (\n\n select *\n from {{ var('shopify_customer')}}\n\n), shipping as (\n\n select * \n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as {{ dbt.type_string() }}) as subscription_id,\n cast(null as {{ dbt.type_string() }}) as subscription_plan,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at,\n cast(null as {{ dbt.type_string() }}) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n {{ dbt.concat([\"c.first_name\", \"''\", \"c.last_name\"]) }} as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id,\n cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as {{ dbt.type_numeric() }}) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as {{ dbt.type_numeric() }}) as quantity,\n cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,\n cast(null as {{ dbt.type_numeric() }}) as discount_amount,\n cast(null as {{ dbt.type_numeric() }}) as tax_amount,\n cast(total_amount as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as {{ dbt.type_numeric() }}) as fee_amount,\n cast(null as {{ dbt.type_numeric() }}) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as {{ dbt.type_numeric() }}) as line_item_id,\n cast(0 as {{ dbt.type_numeric() }}) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as {{ dbt.type_numeric() }}) as product_id,\n cast(null as {{ dbt.type_string() }}) as product_name,\n transaction_type,\n billing_type,\n cast(null as {{ dbt.type_string() }}) as product_type,\n cast(null as {{ dbt.type_numeric() }}) as quantity,\n cast(null as {{ dbt.type_numeric() }}) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.dbt.type_timestamp", "macro.dbt.concat", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__customer", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/standardized_models/shopify__line_item_enhanced.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), line_items as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), orders as ( \n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n \n string_agg(cast (transaction_id as TEXT), ', ')\n\n AS transaction_id,\n \n string_agg(cast (processed_timestamp as TEXT), ', ')\n\n as processed_timestamp,\n \n string_agg(gateway, ', ')\n\n as gateway\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n group by 1,2\n\n), customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), shipping as (\n\n select * \n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as TEXT) as subscription_id,\n cast(null as TEXT) as subscription_plan,\n cast(null as timestamp) as subscription_period_started_at,\n cast(null as timestamp) as subscription_period_ended_at,\n cast(null as TEXT) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n c.first_name || '' || c.last_name as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as numeric(28,6)) as line_item_id,\n cast(line_item_index as numeric(28,6)) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as numeric(28,6)) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as numeric(28,6)) as quantity,\n cast(unit_amount as numeric(28,6)) as unit_amount,\n cast(null as numeric(28,6)) as discount_amount,\n cast(null as numeric(28,6)) as tax_amount,\n cast(total_amount as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as numeric(28,6)) as fee_amount,\n cast(null as numeric(28,6)) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as numeric(28,6)) as line_item_id,\n cast(0 as numeric(28,6)) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as numeric(28,6)) as product_id,\n cast(null as TEXT) as product_name,\n transaction_type,\n billing_type,\n cast(null as TEXT) as product_type,\n cast(null as numeric(28,6)) as quantity,\n cast(null as numeric(28,6)) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__collection_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__collection_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__collection_metafields.sql", "original_file_path": "models/rest/metafields/shopify__collection_metafields.sql", "unique_id": "model.shopify.shopify__collection_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__collection_metafields"], "alias": "shopify__collection_metafields", "checksum": {"name": "sha256", "checksum": "9a0e96e6e6a37a4a6acea599ac4a0e4fec53dbb44e8a29d52c87ed7ac596bbde"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__collection model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.3167598, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__collection_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__collection\", \n reference_values = ['collection'],\n id_column = \"collection_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__collection_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__shop_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__shop_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__shop_metafields.sql", "original_file_path": "models/rest/metafields/shopify__shop_metafields.sql", "unique_id": "model.shopify.shopify__shop_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__shop_metafields"], "alias": "shopify__shop_metafields", "checksum": {"name": "sha256", "checksum": "a6c83b00e994807860ae5fbe8c7766fe0ace4300cfd53c5ba206ea6bf1831f3c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__shop model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.3191142, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__shop_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__shop\", \n reference_values = ['shop'],\n id_column = \"shop_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__shop_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__product_variant_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__product_variant_metafields.sql", "original_file_path": "models/rest/metafields/shopify__product_variant_metafields.sql", "unique_id": "model.shopify.shopify__product_variant_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__product_variant_metafields"], "alias": "shopify__product_variant_metafields", "checksum": {"name": "sha256", "checksum": "aa2cdc58708d40d191a197a74aaa246cf15f5a6f3d984f70f378309283819367"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product_variant model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.3186574, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_variant_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product_variant\",\n reference_values = ['variant', 'productvariant'],\n id_column = \"variant_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__product_variant_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_wherearethey'\n then value\n else null\n end\n )\n \n \n as avengers_wherearethey\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_wheninspace'\n then value\n else null\n end\n )\n \n \n as star_wars_wheninspace\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.variant_id,\n \n source_table.product_id,\n \n source_table.inventory_item_id,\n \n source_table.title,\n \n source_table.price,\n \n source_table.sku,\n \n source_table.position,\n \n source_table.inventory_policy,\n \n source_table.compare_at_price,\n \n source_table.fulfillment_service,\n \n source_table.inventory_management,\n \n source_table.is_taxable,\n \n source_table.barcode,\n \n source_table.grams,\n \n source_table.inventory_quantity,\n \n source_table.is_available_for_sale,\n \n source_table.display_name,\n \n source_table.legacy_resource_id,\n \n source_table.has_components_required,\n \n source_table.sellable_online_quantity,\n \n source_table.weight,\n \n source_table.weight_unit,\n \n source_table.option_1,\n \n source_table.option_2,\n \n source_table.option_3,\n \n source_table.tax_code,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_wherearethey) as metafield_avengers_wherearethey\n \n , max(lookup_object.star_wars_wheninspace) as metafield_star_wars_wheninspace\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.variant_id\n and lower(lookup_object.owner_resource) in ('variant', 'productvariant')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__order_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__order_metafields.sql", "original_file_path": "models/rest/metafields/shopify__order_metafields.sql", "unique_id": "model.shopify.shopify__order_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__order_metafields"], "alias": "shopify__order_metafields", "checksum": {"name": "sha256", "checksum": "bb661fd29f14623b4e28a900a1a3b19cd679f288fdcc6b2db556b48c38756164"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__order model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.3177173, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__order\", \n reference_values = ['order'],\n id_column = \"order_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__order_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_howmany'\n then value\n else null\n end\n )\n \n \n as avengers_howmany\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isinspace'\n then value\n else null\n end\n )\n \n \n as star_wars_isinspace\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_numbersequels'\n then value\n else null\n end\n )\n \n \n as star_wars_numbersequels\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.order_id,\n \n source_table.user_id,\n \n source_table.total_discounts,\n \n source_table.total_discounts_set,\n \n source_table.total_line_items_price,\n \n source_table.total_line_items_price_set,\n \n source_table.total_price,\n \n source_table.total_price_set,\n \n source_table.total_tax_set,\n \n source_table.total_tax,\n \n source_table.source_name,\n \n source_table.subtotal_price,\n \n source_table.has_taxes_included,\n \n source_table.total_weight,\n \n source_table.total_tip_received,\n \n source_table.landing_site_base_url,\n \n source_table.location_id,\n \n source_table.name,\n \n source_table.note,\n \n source_table.number,\n \n source_table.order_number,\n \n source_table.cancel_reason,\n \n source_table.cart_token,\n \n source_table.checkout_token,\n \n source_table.created_timestamp,\n \n source_table.cancelled_timestamp,\n \n source_table.closed_timestamp,\n \n source_table.processed_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.currency,\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.financial_status,\n \n source_table.fulfillment_status,\n \n source_table.referring_site,\n \n source_table.billing_address_address_1,\n \n source_table.billing_address_address_2,\n \n source_table.billing_address_city,\n \n source_table.billing_address_company,\n \n source_table.billing_address_country,\n \n source_table.billing_address_country_code,\n \n source_table.billing_address_first_name,\n \n source_table.billing_address_last_name,\n \n source_table.billing_address_latitude,\n \n source_table.billing_address_longitude,\n \n source_table.billing_address_name,\n \n source_table.billing_address_phone,\n \n source_table.billing_address_province,\n \n source_table.billing_address_province_code,\n \n source_table.billing_address_zip,\n \n source_table.browser_ip,\n \n source_table.total_shipping_price_set,\n \n source_table.shipping_address_address_1,\n \n source_table.shipping_address_address_2,\n \n source_table.shipping_address_city,\n \n source_table.shipping_address_company,\n \n source_table.shipping_address_country,\n \n source_table.shipping_address_country_code,\n \n source_table.shipping_address_first_name,\n \n source_table.shipping_address_last_name,\n \n source_table.shipping_address_latitude,\n \n source_table.shipping_address_longitude,\n \n source_table.shipping_address_name,\n \n source_table.shipping_address_phone,\n \n source_table.shipping_address_province,\n \n source_table.shipping_address_province_code,\n \n source_table.shipping_address_zip,\n \n source_table.token,\n \n source_table.app_id,\n \n source_table.checkout_id,\n \n source_table.client_details_user_agent,\n \n source_table.customer_locale,\n \n source_table.order_status_url,\n \n source_table.presentment_currency,\n \n source_table.is_test_order,\n \n source_table.is_deleted,\n \n source_table.has_buyer_accepted_marketing,\n \n source_table.is_confirmed,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_howmany) as metafield_avengers_howmany\n \n , max(lookup_object.star_wars_isinspace) as metafield_star_wars_isinspace\n \n , max(lookup_object.star_wars_numbersequels) as metafield_star_wars_numbersequels\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.order_id\n and lower(lookup_object.owner_resource) in ('order')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__product_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__product_metafields.sql", "original_file_path": "models/rest/metafields/shopify__product_metafields.sql", "unique_id": "model.shopify.shopify__product_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__product_metafields"], "alias": "shopify__product_metafields", "checksum": {"name": "sha256", "checksum": "4ecabbfee204dd6d41c39d99eafd9e4627db1710831547eaf6b5ecc38ddb012a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.3181803, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product\", \n reference_values = ['product'],\n id_column = \"product_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__product_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__customer_metafields.sql", "original_file_path": "models/rest/metafields/shopify__customer_metafields.sql", "unique_id": "model.shopify.shopify__customer_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__customer_metafields"], "alias": "shopify__customer_metafields", "checksum": {"name": "sha256", "checksum": "1d183df4efbd1c05e74961913c1e9eda390a0aa59312a8e7914d2e26ac02f0f8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__customer model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1755574972.3172338, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__customer\", \n reference_values = ['customer'],\n id_column = \"customer_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__customer_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'star_wars_firstname'\n then value\n else null\n end\n )\n \n \n as star_wars_firstname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_fullname'\n then value\n else null\n end\n )\n \n \n as star_wars_fullname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isjedi'\n then value\n else null\n end\n )\n \n \n as star_wars_isjedi\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_lastname'\n then value\n else null\n end\n )\n \n \n as star_wars_lastname\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.first_name,\n \n source_table.last_name,\n \n source_table.orders_count,\n \n source_table.default_address_id,\n \n source_table.phone,\n \n source_table.account_state,\n \n source_table.is_tax_exempt,\n \n source_table.total_spent,\n \n source_table.is_verified_email,\n \n source_table.note,\n \n source_table.currency,\n \n source_table.marketing_consent_state,\n \n source_table.marketing_opt_in_level,\n \n source_table.marketing_consent_updated_at,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.star_wars_firstname) as metafield_star_wars_firstname\n \n , max(lookup_object.star_wars_fullname) as metafield_star_wars_fullname\n \n , max(lookup_object.star_wars_isjedi) as metafield_star_wars_isjedi\n \n , max(lookup_object.star_wars_lastname) as metafield_star_wars_lastname\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.customer_id\n and lower(lookup_object.owner_resource) in ('customer')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__calendar": {"database": "postgres", "schema": "public_shopify", "name": "shopify__calendar", "resource_type": "model", "package_name": "shopify", "path": "utils/shopify__calendar.sql", "original_file_path": "models/utils/shopify__calendar.sql", "unique_id": "model.shopify.shopify__calendar", "fqn": ["shopify", "utils", "shopify__calendar"], "alias": "shopify__calendar", "checksum": {"name": "sha256", "checksum": "5295fe06c949deb345450af0ad6b0335b6edc25b2e883a4f2452ae276a3e85f4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1755574970.7700746, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__calendar\"", "raw_code": "{% set start_date = var('shopify__calendar_start_date', '2019-01-01') %}\n\n{{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date=\"cast('\" ~ start_date ~ \"' as date)\",\n end_date=\"current_date\"\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.date_spine"], "nodes": []}, "compiled_path": "target/compiled/shopify/models/utils/shopify__calendar.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 2422\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2019-01-01' as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= current_date\n\n)\n\nselect * from filtered\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_unique_key"], "alias": "unique_stg_shopify_gql__customer_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2124612, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer", "attached_node": "model.shopify_source.stg_shopify_gql__customer", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_unique_key"], "alias": "not_null_stg_shopify_gql__customer_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2151592, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer", "attached_node": "model.shopify_source.stg_shopify_gql__customer", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_unique_key"], "alias": "unique_stg_shopify_gql__order_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2176147, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order", "attached_node": "model.shopify_source.stg_shopify_gql__order", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_unique_key"], "alias": "not_null_stg_shopify_gql__order_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2200673, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order", "attached_node": "model.shopify_source.stg_shopify_gql__order", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_line_unique_key"], "alias": "unique_stg_shopify_gql__order_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2226548, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2250333, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__abandoned_checkout_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__abandoned_checkout_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__abandoned_checkout_unique_key"], "alias": "unique_stg_shopify_gql__abandoned_checkout_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2274811, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__abandoned_checkout_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__abandoned_checkout_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_unique_key"], "alias": "not_null_stg_shopify_gql__abandoned_checkout_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2298632, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__abandoned_checkout_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_checkout_id"], "alias": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.232266, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__abandoned_checkout_checkout_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key"], "alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815"}, "created_at": 1755574971.234809, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key"], "alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256"}, "created_at": 1755574971.2371833, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id"], "alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e"}, "created_at": 1755574971.2395384, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_unique_key"], "alias": "unique_stg_shopify_gql__collection_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.241899, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__collection_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_unique_key"], "alias": "not_null_stg_shopify_gql__collection_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.244367, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_collection_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_collection_id"], "alias": "not_null_stg_shopify_gql__collection_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2467341, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_product_unique_key"], "alias": "unique_stg_shopify_gql__collection_product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2490947, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__collection_product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_unique_key"], "alias": "not_null_stg_shopify_gql__collection_product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2514176, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_collection_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_collection_id"], "alias": "not_null_stg_shopify_gql__collection_product_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.25375, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_product_id"], "alias": "not_null_stg_shopify_gql__collection_product_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2562015, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_tag_unique_key"], "alias": "unique_stg_shopify_gql__customer_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2585309, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_unique_key"], "alias": "not_null_stg_shopify_gql__customer_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2608812, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_index"], "alias": "not_null_stg_shopify_gql__customer_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.263214, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_customer_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_customer_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_customer_id"], "alias": "not_null_stg_shopify_gql__customer_tag_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2656639, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_allocation_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_allocation_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_allocation_unique_key"], "alias": "unique_stg_shopify_gql__discount_allocation_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2680228, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_allocation_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_allocation_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_unique_key"], "alias": "not_null_stg_shopify_gql__discount_allocation_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.27037, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_allocation_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_discount_application_index"], "alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416"}, "created_at": 1755574971.2727408, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_application_index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere discount_application_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_application_index", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_application_index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_order_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_allocation_order_line_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_order_line_id"], "alias": "not_null_stg_shopify_gql__discount_allocation_order_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2750847, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_allocation_order_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere order_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_line_id", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_application_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_application_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_application_unique_key"], "alias": "unique_stg_shopify_gql__discount_application_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2775397, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_application_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_unique_key"], "alias": "not_null_stg_shopify_gql__discount_application_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2799828, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_index"], "alias": "not_null_stg_shopify_gql__discount_application_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2823675, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_order_id"], "alias": "not_null_stg_shopify_gql__discount_application_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.284738, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_app_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_app_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_app_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_app_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2872145, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_app_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_app_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_app_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_app_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_app_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2896023, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_app_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_app_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_app_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_app_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_app_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2919953, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_app_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_basic_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_basic_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_basic_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_basic_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2943833, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_basic_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_basic_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_basic_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_basic_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_basic_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2967765, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_basic_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_basic_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.2992542, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_basic_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_bxgy_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_bxgy_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_bxgy_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3016303, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_bxgy_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3039932, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3063765, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_free_shipping_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3088498, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_free_shipping_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_free_shipping_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_free_shipping_unique_key"], "alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34"}, "created_at": 1755574971.3112059, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id"], "alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09"}, "created_at": 1755574971.313624, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_redeem_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_redeem_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_redeem_code_unique_key"], "alias": "unique_stg_shopify_gql__discount_redeem_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.315978, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_redeem_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_redeem_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_redeem_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_redeem_code_unique_key"], "alias": "not_null_stg_shopify_gql__discount_redeem_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.318421, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_redeem_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3209383, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3233514, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3257244, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_fulfillment_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_fulfillment_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_fulfillment_id"], "alias": "not_null_stg_shopify_gql__fulfillment_fulfillment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3280807, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_fulfillment_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fulfillment_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere fulfillment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fulfillment_id", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fulfillment_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_event_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_event_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_event_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_event_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3308303, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_event_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_event_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_event_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_event_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_event_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.333197, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_event_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3355625, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_order_line_item", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_order_line_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key"], "alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22"}, "created_at": 1755574971.3379529, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_order_line_item", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_order_line_item')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3403068, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_tracking_info", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_tracking_info')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3427956, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_tracking_info", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_tracking_info')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_item_unique_key"], "alias": "unique_stg_shopify_gql__inventory_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3451827, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_item_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.347528, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_item_inventory_item_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_item_inventory_item_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_item_inventory_item_id"], "alias": "not_null_stg_shopify_gql__inventory_item_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3498764, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_item_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_level_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_level_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_level_unique_key"], "alias": "unique_stg_shopify_gql__inventory_level_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3523145, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_level_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_level_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_level_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_level_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_level_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3546681, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_level_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_quantity_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_quantity_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_quantity_unique_key"], "alias": "unique_stg_shopify_gql__inventory_quantity_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3569977, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_quantity_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_quantity", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_quantity')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_quantity_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_quantity_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_quantity_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_quantity_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3593593, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_quantity_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_quantity", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_quantity')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__location_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__location_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__location_unique_key"], "alias": "unique_stg_shopify_gql__location_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3617125, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__location_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__location_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__location_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__location_unique_key"], "alias": "not_null_stg_shopify_gql__location_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3641577, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__location_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__location_location_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__location_location_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__location_location_id"], "alias": "not_null_stg_shopify_gql__location_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3664854, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__location_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__media_unique_key"], "alias": "unique_stg_shopify_gql__media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3688543, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_unique_key"], "alias": "not_null_stg_shopify_gql__media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.371179, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_media_id"], "alias": "not_null_stg_shopify_gql__media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3736339, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__media_image_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__media_image_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__media_image_unique_key"], "alias": "unique_stg_shopify_gql__media_image_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3759859, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__media_image_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_image_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_image_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_image_unique_key"], "alias": "not_null_stg_shopify_gql__media_image_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3783402, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_image_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_image_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_image_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_image_media_id"], "alias": "not_null_stg_shopify_gql__media_image_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3806849, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_image_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__metafield_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__metafield_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__metafield_unique_key"], "alias": "unique_stg_shopify_gql__metafield_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.383009, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__metafield_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__metafield_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__metafield_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__metafield_unique_key"], "alias": "not_null_stg_shopify_gql__metafield_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.385508, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__metafield_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__metafield_metafield_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__metafield_metafield_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__metafield_metafield_id"], "alias": "not_null_stg_shopify_gql__metafield_metafield_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3879118, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__metafield_metafield_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metafield_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere metafield_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metafield_id", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "metafield_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_media_unique_key"], "alias": "unique_stg_shopify_gql__product_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.390293, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_unique_key"], "alias": "not_null_stg_shopify_gql__product_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3926456, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_product_id"], "alias": "not_null_stg_shopify_gql__product_media_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.3950942, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_media_id"], "alias": "not_null_stg_shopify_gql__product_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.397441, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_adjustment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_adjustment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_adjustment_unique_key"], "alias": "unique_stg_shopify_gql__order_adjustment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.399809, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_adjustment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_adjustment", "attached_node": "model.shopify_source.stg_shopify_gql__order_adjustment", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_adjustment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_adjustment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_adjustment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_adjustment_unique_key"], "alias": "not_null_stg_shopify_gql__order_adjustment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4021356, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_adjustment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_adjustment", "attached_node": "model.shopify_source.stg_shopify_gql__order_adjustment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_adjustment')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_discount_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_discount_code_unique_key"], "alias": "unique_stg_shopify_gql__order_discount_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4044797, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_discount_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_unique_key"], "alias": "not_null_stg_shopify_gql__order_discount_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4069417, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_code", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_code.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_code"], "alias": "not_null_stg_shopify_gql__order_discount_code_code", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4093456, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_code.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect code\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "code", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "code", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_order_id"], "alias": "not_null_stg_shopify_gql__order_discount_code_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4117134, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_line_refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_line_refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_line_refund_unique_key"], "alias": "unique_stg_shopify_gql__order_line_refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4140985, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_line_refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line_refund", "attached_node": "model.shopify_source.stg_shopify_gql__order_line_refund", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line_refund')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_line_refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_line_refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_line_refund_unique_key"], "alias": "not_null_stg_shopify_gql__order_line_refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4165578, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_line_refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line_refund", "attached_node": "model.shopify_source.stg_shopify_gql__order_line_refund", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line_refund')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_note_attribute_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_note_attribute_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_note_attribute_unique_key"], "alias": "unique_stg_shopify_gql__order_note_attribute_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4189625, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_note_attribute_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_unique_key"], "alias": "not_null_stg_shopify_gql__order_note_attribute_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4213314, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_name", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_name.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_name"], "alias": "not_null_stg_shopify_gql__order_note_attribute_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4237757, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect name\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_order_id"], "alias": "not_null_stg_shopify_gql__order_note_attribute_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.426227, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_shipping_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_shipping_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_shipping_line_unique_key"], "alias": "unique_stg_shopify_gql__order_shipping_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4287503, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_shipping_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_shipping_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4311485, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id"], "alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2"}, "created_at": 1755574971.433561, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_shipping_tax_line_unique_key"], "alias": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4359453, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4384546, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id"], "alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4"}, "created_at": 1755574971.4408598, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_tax_line_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_index"], "alias": "not_null_stg_shopify_gql__order_shipping_tax_line_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4432292, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_tax_line_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_tag_unique_key"], "alias": "unique_stg_shopify_gql__order_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4455793, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_unique_key"], "alias": "not_null_stg_shopify_gql__order_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4479141, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_order_id"], "alias": "not_null_stg_shopify_gql__order_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4503655, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_index"], "alias": "not_null_stg_shopify_gql__order_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4527385, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_unique_key"], "alias": "unique_stg_shopify_gql__product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.455065, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product", "attached_node": "model.shopify_source.stg_shopify_gql__product", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_unique_key"], "alias": "not_null_stg_shopify_gql__product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4573956, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product", "attached_node": "model.shopify_source.stg_shopify_gql__product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_variant_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_variant_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_variant_unique_key"], "alias": "unique_stg_shopify_gql__product_variant_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4600775, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_variant_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_unique_key"], "alias": "not_null_stg_shopify_gql__product_variant_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.462423, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_variant_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_variant_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_variant_media_unique_key"], "alias": "unique_stg_shopify_gql__product_variant_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.464812, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_variant_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_unique_key"], "alias": "not_null_stg_shopify_gql__product_variant_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4671674, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_product_variant_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_product_variant_id"], "alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943"}, "created_at": 1755574971.4695158, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_variant_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere product_variant_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_variant_id", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_variant_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_media_id"], "alias": "not_null_stg_shopify_gql__product_variant_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4719818, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_tag_unique_key"], "alias": "unique_stg_shopify_gql__product_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4743605, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_unique_key"], "alias": "not_null_stg_shopify_gql__product_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.476736, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_index"], "alias": "not_null_stg_shopify_gql__product_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4790883, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_product_id"], "alias": "not_null_stg_shopify_gql__product_tag_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4815674, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__refund_unique_key"], "alias": "unique_stg_shopify_gql__refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4839525, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__refund", "attached_node": "model.shopify_source.stg_shopify_gql__refund", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__refund')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__refund_unique_key"], "alias": "not_null_stg_shopify_gql__refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4862986, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__refund", "attached_node": "model.shopify_source.stg_shopify_gql__refund", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__refund')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__shop_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__shop_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__shop_unique_key"], "alias": "unique_stg_shopify_gql__shop_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4887054, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__shop_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__shop_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__shop_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__shop_unique_key"], "alias": "not_null_stg_shopify_gql__shop_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.491063, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__shop_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__shop_shop_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__shop_shop_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__shop_shop_id"], "alias": "not_null_stg_shopify_gql__shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.493538, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__tax_line_unique_key"], "alias": "unique_stg_shopify_gql__tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4959414, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__tax_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tax_line_unique_key"], "alias": "not_null_stg_shopify_gql__tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.4983466, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tax_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__tender_transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__tender_transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__tender_transaction_unique_key"], "alias": "unique_stg_shopify_gql__tender_transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.5007312, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__tender_transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tender_transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tender_transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tender_transaction_unique_key"], "alias": "not_null_stg_shopify_gql__tender_transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.503205, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tender_transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tender_transaction_transaction_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tender_transaction_transaction_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tender_transaction_transaction_id"], "alias": "not_null_stg_shopify_gql__tender_transaction_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.5056074, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tender_transaction_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__transaction_unique_key"], "alias": "unique_stg_shopify_gql__transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.5079858, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__transaction", "attached_node": "model.shopify_source.stg_shopify_gql__transaction", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__transaction_unique_key"], "alias": "not_null_stg_shopify_gql__transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.5103457, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__transaction", "attached_node": "model.shopify_source.stg_shopify_gql__transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__transaction')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_visit_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_visit_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_visit_unique_key"], "alias": "unique_stg_shopify_gql__customer_visit_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.512721, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_visit_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_visit", "attached_node": "model.shopify_source.stg_shopify_gql__customer_visit", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_visit')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_visit_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_visit_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_visit_unique_key"], "alias": "not_null_stg_shopify_gql__customer_visit_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.5151923, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_visit_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_visit", "attached_node": "model.shopify_source.stg_shopify_gql__customer_visit", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_visit')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_rule_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_rule_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_rule_unique_key"], "alias": "unique_stg_shopify_gql__collection_rule_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.5177011, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_rule", "attached_node": "model.shopify_source.stg_shopify_gql__collection_rule", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_rule')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_rule_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_rule_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_rule_unique_key"], "alias": "not_null_stg_shopify_gql__collection_rule_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.5200794, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_rule", "attached_node": "model.shopify_source.stg_shopify_gql__collection_rule", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_rule')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_address_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_address_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_address_unique_key"], "alias": "unique_stg_shopify_gql__customer_address_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.5224345, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_address_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_address", "attached_node": "model.shopify_source.stg_shopify_gql__customer_address", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_address')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_address_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_address_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_address_unique_key"], "alias": "not_null_stg_shopify_gql__customer_address_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.5249104, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_address_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_address", "attached_node": "model.shopify_source.stg_shopify_gql__customer_address", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_address')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__abandoned_checkout_checkout_id"], "alias": "not_null_stg_shopify__abandoned_checkout_checkout_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.838604, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_collection_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_product_collection_id"], "alias": "not_null_stg_shopify__collection_product_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.841346, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_product_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_product_product_id"], "alias": "not_null_stg_shopify__collection_product_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8438008, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_product_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_collection_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_collection_id"], "alias": "not_null_stg_shopify__collection_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.846188, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection", "attached_node": "model.shopify_source.stg_shopify__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__customer_tag_index"], "alias": "not_null_stg_shopify__customer_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.848547, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__customer_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_customer_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_customer_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__customer_tag_customer_id"], "alias": "not_null_stg_shopify__customer_tag_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8510485, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__customer_tag_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__fulfillment_fulfillment_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__fulfillment_fulfillment_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__fulfillment_fulfillment_id"], "alias": "not_null_stg_shopify__fulfillment_fulfillment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8534079, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__fulfillment_fulfillment_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fulfillment_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\nwhere fulfillment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fulfillment_id", "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fulfillment_id", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__inventory_item_inventory_item_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__inventory_item_inventory_item_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__inventory_item_inventory_item_id"], "alias": "not_null_stg_shopify__inventory_item_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8557932, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__inventory_item_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.stg_shopify__inventory_item", "attached_node": "model.shopify_source.stg_shopify__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('stg_shopify__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__location_location_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__location_location_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__location_location_id"], "alias": "not_null_stg_shopify__location_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8581781, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__location_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__location\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_shopify__location", "attached_node": "model.shopify_source.stg_shopify__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_shopify__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__media_media_id"], "alias": "not_null_stg_shopify__media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8605206, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media", "attached_node": "model.shopify_source.stg_shopify__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_image_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_image_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__media_image_media_id"], "alias": "not_null_stg_shopify__media_image_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8630097, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__media_image_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media_image\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media_image", "attached_node": "model.shopify_source.stg_shopify__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__metafield_metafield_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__metafield_metafield_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__metafield_metafield_id"], "alias": "not_null_stg_shopify__metafield_metafield_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8653507, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__metafield_metafield_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metafield_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\nwhere metafield_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metafield_id", "file_key_name": "models.stg_shopify__metafield", "attached_node": "model.shopify_source.stg_shopify__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "metafield_id", "model": "{{ get_where_subquery(ref('stg_shopify__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_name", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_name.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_note_attribute_name"], "alias": "not_null_stg_shopify__order_note_attribute_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8677363, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect name\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_note_attribute_order_id"], "alias": "not_null_stg_shopify__order_note_attribute_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8700788, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1"}, "created_at": 1755574971.872561, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_shipping_tax_line_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_tax_line_index"], "alias": "not_null_stg_shopify__order_shipping_tax_line_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8749232, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_shipping_tax_line_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858"}, "created_at": 1755574971.8772652, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_tag_index"], "alias": "not_null_stg_shopify__order_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8795948, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_tag_order_id"], "alias": "not_null_stg_shopify__order_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8819363, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_key.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_url_tag_key"], "alias": "not_null_stg_shopify__order_url_tag_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.884361, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_url_tag_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "key", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "key", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_url_tag_order_id"], "alias": "not_null_stg_shopify__order_url_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8867881, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_url_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_media_product_id"], "alias": "not_null_stg_shopify__product_media_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.889145, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_media_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_media_media_id"], "alias": "not_null_stg_shopify__product_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8914576, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_product_variant_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_product_variant_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_variant_media_product_variant_id"], "alias": "not_null_stg_shopify__product_variant_media_product_variant_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8939164, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_variant_media_product_variant_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_variant_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere product_variant_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_variant_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_variant_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_variant_media_media_id"], "alias": "not_null_stg_shopify__product_variant_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.896251, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_variant_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_tag_index"], "alias": "not_null_stg_shopify__product_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.8985987, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_tag_product_id"], "alias": "not_null_stg_shopify__product_tag_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.9009438, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_tag_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__shop_shop_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__shop_shop_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__shop_shop_id"], "alias": "not_null_stg_shopify__shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.903293, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.stg_shopify__shop", "attached_node": "model.shopify_source.stg_shopify__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('stg_shopify__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__tender_transaction_transaction_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__tender_transaction_transaction_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__tender_transaction_transaction_id"], "alias": "not_null_stg_shopify__tender_transaction_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.9057512, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__tender_transaction_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_shopify__tender_transaction", "attached_node": "model.shopify_source.stg_shopify__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_shopify__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id"], "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c"}, "created_at": 1755574971.9081001, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_code", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_code.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_discount_code_code"], "alias": "not_null_stg_shopify__order_discount_code_code", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.9104176, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_discount_code_code.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect code\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "code", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "code", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_discount_code_order_id"], "alias": "not_null_stg_shopify__order_discount_code_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.9127684, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_discount_code_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_allocation_discount_application_index"], "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca"}, "created_at": 1755574971.9154582, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_application_index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere discount_application_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_application_index", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_application_index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_order_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_allocation_order_line_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_allocation_order_line_id"], "alias": "not_null_stg_shopify__discount_allocation_order_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.91781, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_allocation_order_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere order_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_line_id", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_application_index"], "alias": "not_null_stg_shopify__discount_application_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.920145, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_application_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_application_order_id"], "alias": "not_null_stg_shopify__discount_application_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.922462, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_application_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_app_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_app_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_app_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_app_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.924809, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_app_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_app", "attached_node": "model.shopify_source.stg_shopify__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_basic_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_basic_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_basic_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.9272418, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_bxgy_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.9295695, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_free_shipping_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_free_shipping_discount_code_id"], "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354"}, "created_at": 1755574971.9319265, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_redeem_code_discount_code_id"], "alias": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574971.9343245, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c", "fqn": ["shopify", "unique_shopify_gql__customer_cohorts_customer_cohort_id"], "alias": "unique_shopify_gql__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.1042953, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_cohorts", "attached_node": "model.shopify.shopify_gql__customer_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2", "fqn": ["shopify", "not_null_shopify_gql__customer_cohorts_customer_cohort_id"], "alias": "not_null_shopify_gql__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.1068623, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_cohorts", "attached_node": "model.shopify.shopify_gql__customer_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27", "fqn": ["shopify", "unique_shopify_gql__customer_email_cohorts_customer_cohort_id"], "alias": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.1093254, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_email_cohorts", "attached_node": "model.shopify.shopify_gql__customer_email_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f", "fqn": ["shopify", "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id"], "alias": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.111721, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_email_cohorts", "attached_node": "model.shopify.shopify_gql__customer_email_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__orders_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077", "fqn": ["shopify", "unique_shopify_gql__orders_unique_key"], "alias": "unique_shopify_gql__orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.114096, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__orders", "attached_node": "model.shopify.shopify_gql__orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__orders')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__orders_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041", "fqn": ["shopify", "not_null_shopify_gql__orders_unique_key"], "alias": "not_null_shopify_gql__orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.116441, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__orders", "attached_node": "model.shopify.shopify_gql__orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__orders')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__products_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__products_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326", "fqn": ["shopify", "unique_shopify_gql__products_unique_key"], "alias": "unique_shopify_gql__products_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.119186, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__products"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__products_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__products\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__products", "attached_node": "model.shopify.shopify_gql__products", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__products')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__products_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__products_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497", "fqn": ["shopify", "not_null_shopify_gql__products_unique_key"], "alias": "not_null_shopify_gql__products_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.1215312, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__products"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__products_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__products\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__products", "attached_node": "model.shopify.shopify_gql__products", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__products')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__order_lines_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4", "fqn": ["shopify", "unique_shopify_gql__order_lines_unique_key"], "alias": "unique_shopify_gql__order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.1239033, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__order_lines", "attached_node": "model.shopify.shopify_gql__order_lines", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__order_lines')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__order_lines_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db", "fqn": ["shopify", "not_null_shopify_gql__order_lines_unique_key"], "alias": "not_null_shopify_gql__order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.1262424, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__order_lines", "attached_node": "model.shopify.shopify_gql__order_lines", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__order_lines')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__transactions_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__transactions_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c", "fqn": ["shopify", "unique_shopify_gql__transactions_unique_key"], "alias": "unique_shopify_gql__transactions_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.1285765, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__transactions_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__transactions", "attached_node": "model.shopify.shopify_gql__transactions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__transactions_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__transactions_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d", "fqn": ["shopify", "not_null_shopify_gql__transactions_unique_key"], "alias": "not_null_shopify_gql__transactions_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2048368, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__transactions_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__transactions", "attached_node": "model.shopify.shopify_gql__transactions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__inventory_levels_inventory_item_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__inventory_levels_inventory_item_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957", "fqn": ["shopify", "not_null_shopify_gql__inventory_levels_inventory_item_id"], "alias": "not_null_shopify_gql__inventory_levels_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2072518, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__inventory_levels_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__inventory_levels_location_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__inventory_levels_location_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e", "fqn": ["shopify", "not_null_shopify_gql__inventory_levels_location_id"], "alias": "not_null_shopify_gql__inventory_levels_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.209651, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__inventory_levels_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__discounts_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5", "fqn": ["shopify", "unique_shopify_gql__discounts_unique_key"], "alias": "unique_shopify_gql__discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2121284, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__discounts_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994", "fqn": ["shopify", "not_null_shopify_gql__discounts_unique_key"], "alias": "not_null_shopify_gql__discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2145054, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__discounts_discount_code_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__discounts_discount_code_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264", "fqn": ["shopify", "not_null_shopify_gql__discounts_discount_code_id"], "alias": "not_null_shopify_gql__discounts_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2168975, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__discounts_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__daily_shop_shop_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__daily_shop_shop_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8", "fqn": ["shopify", "not_null_shopify_gql__daily_shop_shop_id"], "alias": "not_null_shopify_gql__daily_shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.219283, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__daily_shop"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__daily_shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__daily_shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.shopify_gql__daily_shop", "attached_node": "model.shopify.shopify_gql__daily_shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('shopify_gql__daily_shop')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a", "fqn": ["shopify", "unique_shopify__customer_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2567415, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "fqn": ["shopify", "not_null_shopify__customer_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.259194, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182", "fqn": ["shopify", "unique_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2616885, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "fqn": ["shopify", "not_null_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2640905, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51", "fqn": ["shopify", "unique_shopify__orders_orders_unique_key"], "alias": "unique_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2665792, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n orders_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is not null\ngroup by orders_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "fqn": ["shopify", "not_null_shopify__orders_orders_unique_key"], "alias": "not_null_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.268969, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect orders_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e", "fqn": ["shopify", "unique_shopify__order_lines_order_lines_unique_key"], "alias": "unique_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2713635, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_lines_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is not null\ngroup by order_lines_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "unique", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "fqn": ["shopify", "not_null_shopify__order_lines_order_lines_unique_key"], "alias": "not_null_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2737403, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_lines_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981", "fqn": ["shopify", "unique_shopify__transactions_transactions_unique_id"], "alias": "unique_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2760842, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n transactions_unique_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is not null\ngroup by transactions_unique_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "fqn": ["shopify", "not_null_shopify__transactions_transactions_unique_id"], "alias": "not_null_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.278542, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transactions_unique_id\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_inventory_item_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_inventory_item_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "fqn": ["shopify", "not_null_shopify__inventory_levels_inventory_item_id"], "alias": "not_null_shopify__inventory_levels_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2809389, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_location_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_location_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0", "fqn": ["shopify", "not_null_shopify__inventory_levels_location_id"], "alias": "not_null_shopify__inventory_levels_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2832878, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f", "fqn": ["shopify", "unique_shopify__discounts_discounts_unique_key"], "alias": "unique_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2856622, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n discounts_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is not null\ngroup by discounts_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "fqn": ["shopify", "not_null_shopify__discounts_discounts_unique_key"], "alias": "not_null_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2881207, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discounts_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discount_code_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discount_code_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "fqn": ["shopify", "not_null_shopify__discounts_discount_code_id"], "alias": "not_null_shopify__discounts_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2904618, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__daily_shop_shop_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__daily_shop_shop_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f", "fqn": ["shopify", "not_null_shopify__daily_shop_shop_id"], "alias": "not_null_shopify__daily_shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1755574972.2928524, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__daily_shop"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__daily_shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"shopify__daily_shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.shopify__daily_shop", "attached_node": "model.shopify.shopify__daily_shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('shopify__daily_shop')) }}"}, "namespace": null}}}, "sources": {"source.shopify_source.shopify_graphql.order": {"database": "postgres", "schema": "public", "name": "order", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_data", "quoting": {"database": null, "schema": null, "identifier": true, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_ip": {"name": "client_ip", "description": "The IP address of the customer who placed the order. Useful for fraud detection and geographic analysis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_accepts_marketing": {"name": "customer_accepts_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_at": {"name": "cancelled_at", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The shop currency when the order was placed. For example, \"USD\" or \"CAD\".", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_financial_status": {"name": "display_financial_status", "description": "An order's financial status for display in the Shopify admin. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFinancialStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_fulfillment_status": {"name": "display_fulfillment_status", "description": "The order's fulfillment status that displays in the Shopify admin to merchants. For example, an order might be unfulfilled or scheduled. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFulfillmentStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The unique identifier for the order that appears on the order page in the Shopify admin and the Order status page. For example, \"#1001\", \"EN1001\", or \"1001-A\". This value isn't unique across multiple stores.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The optional note associated with the order. Contains additional information or instructions added by merchants or customers during the order process. Commonly used for special delivery instructions, gift messages, or internal processing notes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The name of the source associated with the order, such as \"web\", \"mobile_app\", or \"pos\". Use this field to identify the platform where the order was placed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_amount": {"name": "subtotal_price_set_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_amount": {"name": "subtotal_price_set_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_currency_code": {"name": "subtotal_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_currency_code": {"name": "subtotal_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_shop_amount": {"name": "total_discounts_set_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_pres_amount": {"name": "total_discounts_set_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_shop_currency_code": {"name": "total_discounts_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_pres_currency_code": {"name": "total_discounts_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_amount": {"name": "total_price_set_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_amount": {"name": "total_price_set_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_currency_code": {"name": "total_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_currency_code": {"name": "total_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights before returns, in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "The staff member who created or is responsible for the order. Useful for tracking which team member handled phone orders, manual orders, or order modifications. Returns null for orders created directly by customers through the online store.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "confirmed": {"name": "confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status_page_url": {"name": "status_page_url", "description": "The URL where customers can check their order's current status, including tracking information and delivery updates. Provides order tracking links in emails, apps, or customer communications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received_set_shop_amount": {"name": "total_tip_received_set_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_pres_amount": {"name": "total_tip_received_set_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_shop_currency_code": {"name": "total_tip_received_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_pres_currency_code": {"name": "total_tip_received_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency_code": {"name": "presentment_currency_code", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_shop_amount": {"name": "total_shipping_price_set_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_pres_amount": {"name": "total_shipping_price_set_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_shop_currency_code": {"name": "total_shipping_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_pres_currency_code": {"name": "total_shipping_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_data\"", "created_at": 1755574972.3479881, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer": {"database": "postgres", "schema": "public", "name": "customer", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "state": {"name": "state", "description": "The state of the customer's account with a shop. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/customer#field-Customer.fields.state).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_exempt": {"name": "tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "verified_email": {"name": "verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_state": {"name": "email_marketing_consent_state", "description": "The current email marketing state for the customer. New version of `accepts_marketing` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_opt_in_level": {"name": "email_marketing_consent_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. New version of `marketing_opt_in_level` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_updated_at": {"name": "email_marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. New version of `accepts_marketing_updated_at` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_data\"", "created_at": 1755574972.3500931, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_line": {"database": "postgres", "schema": "public", "name": "order_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item for an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "unfulfilled_quantity": {"name": "unfulfilled_quantity", "description": "The number of units not yet fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_pres_amount": {"name": "original_total_set_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_pres_currency_code": {"name": "original_total_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_shop_amount": {"name": "original_total_set_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_shop_currency_code": {"name": "original_total_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_amount": {"name": "total_discount_set_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_amount": {"name": "total_discount_set_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_currency_code": {"name": "total_discount_set_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_currency_code": {"name": "total_discount_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_data\"", "created_at": 1755574972.3508418, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_line_refund": {"database": "postgres", "schema": "public", "name": "order_line_refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_line_refund", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_line_refund"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_line_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item refund in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location where the items will be restocked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_pres_amount": {"name": "subtotal_set_pres_amount", "description": "The refunded subtotal amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_pres_currency_code": {"name": "subtotal_set_pres_currency_code", "description": "The three letter currency code for the subtotal the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_shop_amount": {"name": "subtotal_set_shop_amount", "description": "The refunded subtotal amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_shop_currency_code": {"name": "subtotal_set_shop_currency_code", "description": "The three letter currency code for the subtotal in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The total tax amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three letter currency code of the tax the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The total tax amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three letter currency code of the tax in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "created_at": 1755574972.351647, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product": {"database": "postgres", "schema": "public", "name": "product", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product in Shopify.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_data\"", "created_at": 1755574972.352315, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_variant": {"database": "postgres", "schema": "public", "name": "product_variant", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_variant", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_variant"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_variant_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "available_for_sale": {"name": "available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_components": {"name": "requires_components", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "created_at": 1755574972.353027, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.transaction": {"database": "postgres", "schema": "public", "name": "transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.transaction", "fqn": ["shopify_source", "graphql", "shopify_graphql", "transaction"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a transaction in Shopify.", "columns": {"id": {"name": "id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_amount": {"name": "amount_set_pres_amount", "description": "The amount of the transaction in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_currency_code": {"name": "amount_set_pres_currency_code", "description": "The three letter currency code of the customer's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_amount": {"name": "amount_set_shop_amount", "description": "The amount of the transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_currency_code": {"name": "amount_set_shop_currency_code", "description": "The three letter currency code of the shop's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used to process the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "Unique identifier of the staff member who was logged into the Shopify POS device when the transaction was processed", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_transaction_data\"", "created_at": 1755574972.3538234, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.refund": {"database": "postgres", "schema": "public", "name": "refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.refund", "fqn": ["shopify_source", "graphql", "shopify_graphql", "refund"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a refund within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the refund was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "return_id": {"name": "return_id", "description": "Reference to the return which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "Reference to the staff member who created the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_pres_amount": {"name": "total_refunded_set_pres_amount", "description": "The total amount across all transactions for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_pres_currency_code": {"name": "total_refunded_set_pres_currency_code", "description": "The three letter currency code for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_shop_amount": {"name": "total_refunded_set_shop_amount", "description": "The total amount across all transactions for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_shop_currency_code": {"name": "total_refunded_set_shop_currency_code", "description": "The three letter currency code for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_refund_data\"", "created_at": 1755574972.3544762, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_adjustment": {"database": "postgres", "schema": "public", "name": "order_adjustment", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_adjustment", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_adjustment"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_adjustment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_amount": {"name": "amount_set_pres_amount", "description": "The amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_currency_code": {"name": "amount_set_pres_currency_code", "description": "The three letter currency code for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_amount": {"name": "amount_set_shop_amount", "description": "The amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_currency_code": {"name": "amount_set_shop_currency_code", "description": "The three letter shop currency code of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_pres_amount": {"name": "tax_amount_set_pres_amount", "description": "The tax amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_pres_currency_code": {"name": "tax_amount_set_pres_currency_code", "description": "The three letter currency code for the tax of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_shop_amount": {"name": "tax_amount_set_shop_amount", "description": "The tax amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_shop_currency_code": {"name": "tax_amount_set_shop_currency_code", "description": "The three letter shop currency code of the tax for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "created_at": 1755574972.3551345, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.abandoned_checkout": {"database": "postgres", "schema": "public", "name": "abandoned_checkout", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout", "fqn": ["shopify_source", "graphql", "shopify_graphql", "abandoned_checkout"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_abandoned_checkout_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_amount": {"name": "subtotal_price_set_shop_amount", "description": "The price of the checkout before shipping and taxes in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_amount": {"name": "subtotal_price_set_pres_amount", "description": "The price of the checkout before shipping and taxes in *presentment* currencyy. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_currency_code": {"name": "subtotal_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_currency_code": {"name": "subtotal_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_amount": {"name": "total_discount_set_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_amount": {"name": "total_discount_set_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_currency_code": {"name": "total_discount_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_currency_code": {"name": "total_discount_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_shop_amount": {"name": "total_duties_set_shop_amount", "description": "The total duties of the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_pres_amount": {"name": "total_duties_set_pres_amount", "description": "The total duties of the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_shop_currency_code": {"name": "total_duties_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_pres_currency_code": {"name": "total_duties_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_shop_amount": {"name": "total_line_items_price_set_shop_amount", "description": "The sum of the prices of all line items in the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_pres_amount": {"name": "total_line_items_price_set_pres_amount", "description": "The sum of the prices of all line items in the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_shop_currency_code": {"name": "total_line_items_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_pres_currency_code": {"name": "total_line_items_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_amount": {"name": "total_price_set_shop_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_amount": {"name": "total_price_set_pres_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_currency_code": {"name": "total_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_currency_code": {"name": "total_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The sum of all the taxes applied to the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The sum of all the taxes applied to the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "completed_at": {"name": "completed_at", "description": "The date and time when the buyer completed the checkout. Null if the checkout has not been completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "created_at": 1755574972.3560052, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.collection_product": {"database": "postgres", "schema": "public", "name": "collection_product", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection_product", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection_product"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "created_at": 1755574972.3566387, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.collection": {"database": "postgres", "schema": "public", "name": "collection", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "applied_disjunctively": {"name": "applied_disjunctively", "description": "Boolean representing whether products must match any or all of the `rules` to be included in the collection. True = products must match at least one rule, false = products must match all rules.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values inclide - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_data\"", "created_at": 1755574972.3572636, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_tag": {"database": "postgres", "schema": "public", "name": "customer_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "created_at": 1755574972.3578901, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment": {"database": "postgres", "schema": "public", "name": "fulfillment", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_status": {"name": "display_status", "description": "Display status for this fulfillment. Valid values include `attempted_delivery`, `canceled`, `confirmed`, `delayed`, `delivered`, `failure`, `fulfilled`, `in_transit`, `label_printed`, `label_purchased`, `label_voided`, `marked_as_fulfilled`, `not_delivered`, `out_for_delivery`, `picked_up`, `ready_for_pickup`, `submitted`. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service_id": {"name": "service_id", "description": "The id of the fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: (Legacy status, to be deprecated) Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: (Legacy status, to be deprecated) The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "Sum of all line item quantities for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "created_at": 1755574972.358532, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_item": {"database": "postgres", "schema": "public", "name": "inventory_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_item", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_item"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked": {"name": "tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_locked": {"name": "tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "created_at": 1755574972.3592622, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_level": {"database": "postgres", "schema": "public", "name": "inventory_level", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_level", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_level"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_level_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "created_at": 1755574972.3599195, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_quantity": {"database": "postgres", "schema": "public", "name": "inventory_quantity", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_quantity", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_quantity"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_quantity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The total quantity of the inventory item available at all locations.", "columns": {"id": {"name": "id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "created_at": 1755574972.3605337, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.location": {"database": "postgres", "schema": "public", "name": "location", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.location", "fqn": ["shopify_source", "graphql", "shopify_graphql", "location"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_location_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_fulfillment_service": {"name": "is_fulfillment_service", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_location_data\"", "created_at": 1755574972.3611972, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.metafield": {"database": "postgres", "schema": "public", "name": "metafield", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.metafield", "fqn": ["shopify_source", "graphql", "shopify_graphql", "metafield"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_metafield_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_id": {"name": "owner_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Use this instead of `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_metafield_data\"", "created_at": 1755574972.3618493, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_note_attribute": {"database": "postgres", "schema": "public", "name": "order_note_attribute", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_note_attribute", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_note_attribute"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_note_attribute_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "created_at": 1755574972.3624978, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_shipping_line": {"database": "postgres", "schema": "public", "name": "order_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_shipping_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_shipping_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_pres_amount": {"name": "current_discounted_price_set_pres_amount", "description": "Current shipping price in customer currency after applying refunds and discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_pres_currency_code": {"name": "current_discounted_price_set_pres_currency_code", "description": "Three digit customer currency code for the current discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_shop_amount": {"name": "current_discounted_price_set_shop_amount", "description": "Current shipping price in shop currency after applying refunds and discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_shop_currency_code": {"name": "current_discounted_price_set_shop_currency_code", "description": "Three digit shop currency code for the current discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_pres_amount": {"name": "discounted_price_set_pres_amount", "description": "Shipping price in customer currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_pres_currency_code": {"name": "discounted_price_set_pres_currency_code", "description": "Three digit customer currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_shop_amount": {"name": "discounted_price_set_shop_amount", "description": "Shipping price in shop currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_shop_currency_code": {"name": "discounted_price_set_shop_currency_code", "description": "Three digit shop currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_removed": {"name": "is_removed", "description": "Whether the shipping line has been removed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_pres_amount": {"name": "original_price_set_pres_amount", "description": "The pre-tax shipping price without any discounts applied in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_pres_currency_code": {"name": "original_price_set_pres_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_shop_amount": {"name": "original_price_set_shop_amount", "description": "The pre-tax shipping price without any discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_shop_currency_code": {"name": "original_price_set_shop_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_rate_handle": {"name": "shipping_rate_handle", "description": "A unique identifier for the shipping rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "created_at": 1755574972.3631966, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_shipping_tax_line": {"database": "postgres", "schema": "public", "name": "order_shipping_tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_shipping_tax_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_shipping_tax_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_shipping_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this recod is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_amount": {"name": "price_set_pres_amount", "description": "The amount of tax in customer currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_currency_code": {"name": "price_set_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_amount": {"name": "price_set_shop_amount", "description": "The amount of tax in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_currency_code": {"name": "price_set_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The source of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "created_at": 1755574972.3638518, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_tag": {"database": "postgres", "schema": "public", "name": "order_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "created_at": 1755574972.3644526, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.media": {"database": "postgres", "schema": "public", "name": "media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing media metadata, including status and timestamps.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "alt": {"name": "alt", "description": "A word or phrase to share the nature or contents of a media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "file_status": {"name": "file_status", "description": "The status of the file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_content_type": {"name": "media_content_type", "description": "The media content type (values include 'external_video', 'image', 'model_3d', 'video')", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_alt_text": {"name": "preview_image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_height": {"name": "preview_image_height", "description": "The original height of the image in pixels (returns null if image not hosted in Shopify).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_id": {"name": "preview_image_id", "description": "A unique id for the image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_url": {"name": "preview_image_url", "description": "The location of the image as a URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_width": {"name": "preview_image_width", "description": "The original width of the image in pixels (returns null if image not hosted in Shopify).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_status": {"name": "preview_status", "description": "Current status of the preview image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_data\"", "created_at": 1755574972.3650975, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.media_image": {"database": "postgres", "schema": "public", "name": "media_image", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.media_image", "fqn": ["shopify_source", "graphql", "shopify_graphql", "media_image"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_media_image_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_image_data\"", "created_at": 1755574972.3657627, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_media": {"database": "postgres", "schema": "public", "name": "product_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_media_data\"", "created_at": 1755574972.366353, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_variant_media": {"database": "postgres", "schema": "public", "name": "product_variant_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_variant_media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_variant_media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_variant_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping product variants to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "created_at": 1755574972.3669543, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_tag": {"database": "postgres", "schema": "public", "name": "product_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "created_at": 1755574972.3675485, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.shop": {"database": "postgres", "schema": "public", "name": "shop", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.shop", "fqn": ["shopify_source", "graphql", "shopify_graphql", "shop"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_shop_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The shop's street address (or PO Box number).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_api_supported": {"name": "checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code_v_2": {"name": "billing_address_country_code_v_2", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The three letter code for the currency that the shop sells in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_domain_host": {"name": "primary_domain_host", "description": "The host name of the primary domain of the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "contact_email": {"name": "contact_email", "description": "The public-facing contact email address for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "features_storefront": {"name": "features_storefront", "description": "Whether a shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_format": {"name": "currency_formats_money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_in_emails_format": {"name": "currency_formats_money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_with_currency_format": {"name": "currency_formats_money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_with_currency_in_emails_format": {"name": "currency_formats_money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "password_enabled": {"name": "password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_domain_localization_default_locale": {"name": "primary_domain_localization_default_locale", "description": "The localization of the domain of the shop's online store, if the domain doesn't redirect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "setup_required": {"name": "setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner_name": {"name": "shop_owner_name", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_shipping": {"name": "tax_shipping", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_abbreviation": {"name": "timezone_abbreviation", "description": "The shop's time zone abbreviation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset": {"name": "timezone_offset", "description": "The shop's time zone offset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset_minutes": {"name": "timezone_offset_minutes", "description": "The shop's time zone offset expressed as a number of minutes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_shop_data\"", "created_at": 1755574972.3683252, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.tender_transaction": {"database": "postgres", "schema": "public", "name": "tender_transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.tender_transaction", "fqn": ["shopify_source", "graphql", "shopify_graphql", "tender_transaction"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_tender_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the tender transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "created_at": 1755574972.3689852, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "abandoned_checkout_discount_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_abandoned_checkout_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index (from 1) representing the application of the discount to the checkout. Use the latest (highest index)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "created_at": 1755574972.3696473, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_discount_code": {"database": "postgres", "schema": "public", "name": "order_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_discount_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_discount_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "created_at": 1755574972.37025, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_event": {"database": "postgres", "schema": "public", "name": "fulfillment_event", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_event", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_event"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_event_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delayed: The shipment was delayed. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "created_at": 1755574972.3709111, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.tax_line": {"database": "postgres", "schema": "public", "name": "tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.tax_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "tax_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_amount": {"name": "price_set_pres_amount", "description": "The amount of tax in customer currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_currency_code": {"name": "price_set_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_amount": {"name": "price_set_shop_amount", "description": "The amount of tax in shop currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_currency_code": {"name": "price_set_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "created_at": 1755574972.3715274, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_allocation": {"database": "postgres", "schema": "public", "name": "discount_allocation", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_allocation", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_allocation"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_allocation_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing allocation amounts applied to order lines from discount applications. Discount allocations indicate how much of the discount was applied and how it was split across line items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocated_amount_set_pres_amount": {"name": "allocated_amount_set_pres_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_pres_currency_code": {"name": "allocated_amount_set_pres_currency_code", "description": "The currency code associated with the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_shop_amount": {"name": "allocated_amount_set_shop_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_shop_currency_code": {"name": "allocated_amount_set_shop_currency_code", "description": "The currency code associated with the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of this allocation in the list of discount allocations applied to an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "created_at": 1755574972.3721933, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_application": {"database": "postgres", "schema": "public", "name": "discount_application", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_application", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_application"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_application_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount applications, which define how discounts were applied to an order or shipping line. This includes metadata like allocation method, target type, and value type.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The allocation method used to apply the discount. Valid values include `each` (the discount is applied to each entitled item) and `across` (the discount is applied across all entitled items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Specifies whether the discount applies to all items (`all`) or only entitled ones (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "Indicates whether the discount applies to `line_item` or `shipping_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "created_at": 1755574972.3728302, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_app": {"database": "postgres", "schema": "public", "name": "discount_code_app", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_app", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_app"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_app_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount codes created and managed through apps using Shopify Functions. These app-based discounts support advanced, dynamic behavior and custom targeting.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of times a discount applies on recurring purchases (subscriptions). 0 will apply infinitely. 1 will only apply to the first checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_count": {"name": "codes_count_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_precision": {"name": "codes_count_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "created_at": 1755574972.374115, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_basic": {"database": "postgres", "schema": "public", "name": "discount_code_basic", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_basic", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_basic"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_basic_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing basic discount codes and their metadata. This includes usage limits, timeframes, eligible customers, combination rules, and tracked usage.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "Number of billing cycles the discount can be applied for (used for subscriptions).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is an exact number or an estimate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "created_at": 1755574972.374813, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_bxgy": {"database": "postgres", "schema": "public", "name": "discount_code_bxgy", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_bxgy", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_bxgy"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_bxgy_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing Buy X Get Y discount codes, including conditions for what customers must buy, what they receive, and metadata such as usage, status, and combination eligibility.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "created_at": 1755574972.3754766, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_free_shipping": {"database": "postgres", "schema": "public", "name": "discount_code_free_shipping", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_free_shipping", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_free_shipping"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_free_shipping_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing free shipping discount codes and metadata, including subscription and one-time purchase applicability, eligible countries, usage limits, and combination rules.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles for which the discount can be applied, which is useful for subscription-based discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "created_at": 1755574972.3762066, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_redeem_code": {"database": "postgres", "schema": "public", "name": "discount_redeem_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_redeem_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_redeem_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_redeem_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each code is tied to a parent discount and may be created by an app or manually by a merchant.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This value is updated asynchronously and may not match real-time usage counts.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (usually an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount this redeem code is associated with (e.g., `discount_code_basic`, `discount_code_bxgy`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "created_at": 1755574972.3768492, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_tracking_info": {"database": "postgres", "schema": "public", "name": "fulfillment_tracking_info", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_tracking_info", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_tracking_info"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_tracking_info_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents tracking information associated with a fulfillment. Used by Shopify to generate clickable tracking numbers and delivery updates.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_id": {"name": "fulfillment_id", "description": "The unique identifier of the fulfillment this tracking info belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The name of the tracking company. For supported carriers, Shopify automatically builds tracking URLs and may update the shipment status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "Tracking number for the fulfillment. If a known tracking company is specified, or the number matches a known format, Shopify may auto-generate a tracking URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "url": {"name": "url", "description": "Direct URL to track the fulfillment. This is displayed in the Shopify admin and customer notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the tracking information associated with a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "created_at": 1755574972.3774629, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_visit": {"database": "postgres", "schema": "public", "name": "customer_visit", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_visit", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_visit"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_visit_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metadata about a customer's session visiting a Shopify store, including session, landing page, referrer, marketing campaign, and source attribution information. This data helps merchants analyze the effectiveness of marketing campaigns and customer engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "A globally-unique identifier for the customer visit session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order associated with the customer visit, if any.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of marketing tactic associated with the session. Possible values include: abandoned_cart, ad, affiliate, link, loyalty, message, newsletter, notification, post, retargeting, seo, storefront_app, transactional.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page": {"name": "landing_page", "description": "The URL of the first page the customer landed on for the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page_html": {"name": "landing_page_html", "description": "The landing page URL rendered as HTML with a hyperlink.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "occurred_at": {"name": "occurred_at", "description": "The timestamp when the customer's session occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_code": {"name": "referral_code", "description": "A marketing referral code captured from the landing URL. Supports query params like `ref`, `source`, or `r`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_info_html": {"name": "referral_info_html", "description": "Referral info rendered as HTML with URLs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referrer_url": {"name": "referrer_url", "description": "The referring webpage where the customer clicked a link to arrive at the store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The origin of the customer's visit, such as a platform (e.g., Facebook, Google), a QR code, direct, or other attribution channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_description": {"name": "source_description", "description": "A more descriptive label for the visit source; used primarily for the first or last session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_type": {"name": "source_type", "description": "The marketing tactic type, such as ad, seo, newsletter, etc.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_campaign": {"name": "utm_parameters_campaign", "description": "The name of the marketing campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_content": {"name": "utm_parameters_content", "description": "Identifies specific content within a campaign, used to differentiate similar links.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_medium": {"name": "utm_parameters_medium", "description": "The medium of the campaign (e.g., cpc, banner, email).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_source": {"name": "utm_parameters_source", "description": "The traffic source for the campaign (e.g., google, newsletter).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_term": {"name": "utm_parameters_term", "description": "Search terms associated with paid campaigns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "created_at": 1755574972.3781326, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_order_line_item": {"database": "postgres", "schema": "public", "name": "fulfillment_order_line_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_order_line_item", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_order_line_item"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_order_line_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Links a fulfillment order to specific items that require fulfillment. Contains detailed product information, quantity tracking, variant metadata, and shipping requirements. This is a core entity for determining which products and how many units are involved in a given fulfillment process.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_order_id": {"name": "fulfillment_order_id", "description": "The identifier of the fulfillment order that this line item is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for this fulfillment order line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "Alt text describing the image associated with the line item's variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "The height in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "The unique identifier for the variant image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The url of the variant image used in this fulfillment line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "The width in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The identifier of the inventory item being fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_item_id": {"name": "order_line_item_id", "description": "The identifier of the original order line item linked to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_title": {"name": "product_title", "description": "The title of the product at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The identifier of the product variant associated with this fulfillment item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remaining_quantity": {"name": "remaining_quantity", "description": "The number of units remaining to be fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Indicates whether physical shipping is required for this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The SKU of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "The total number of units allocated to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The vendor of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "created_at": 1755574972.379463, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_address": {"database": "postgres", "schema": "public", "name": "customer_address", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_address", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_address"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a customer's mailing address and includes additional geographic metadata.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer to whom this address belongs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the customer address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The first line of the address (e.g., street address or PO Box).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The second line of the address (e.g., apartment, suite, or unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The name of the city, district, village, or town for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The company or organization associated with the customer at this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The full country name for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter ISO country code for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_default": {"name": "is_default", "description": "Indicates if this address is the default shipping address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The full name of the customer, derived from first and last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer\u2019s phone number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The name of the region, state, or province for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The standardized zone or province code for the region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code of the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "validation_result_summary": {"name": "validation_result_summary", "description": "A summary of address validation results (e.g., match confidence or status).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The timezone associated with the address, if available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "coordinates_validated": {"name": "coordinates_validated", "description": "Indicates whether the latitude and longitude coordinates were validated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "created_at": 1755574972.38015, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order": {"database": "postgres", "schema": "public", "name": "order", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order", "fqn": ["shopify_source", "rest", "shopify", "order"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_data", "quoting": {"database": null, "schema": null, "identifier": true, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_at": {"name": "cancelled_at", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "(DEPRECATED) The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "(DEPRECATED) A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "confirmed": {"name": "confirmed", "description": "Whether inventory has been reserved for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_identifier": {"name": "source_identifier", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "created_at": 1755574972.3810966, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer": {"database": "postgres", "schema": "public", "name": "customer", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer", "fqn": ["shopify_source", "rest", "shopify", "customer"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "accepts_marketing": {"name": "accepts_marketing", "description": "Whether the customer has consented to receive marketing material via email. Deprecated and will be coalesced with `email_marketing_consent_state`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "state": {"name": "state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_exempt": {"name": "tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "verified_email": {"name": "verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_state": {"name": "email_marketing_consent_state", "description": "The current email marketing state for the customer. New version of `accepts_marketing` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_opt_in_level": {"name": "email_marketing_consent_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. New version of `marketing_opt_in_level` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_consent_updated_at": {"name": "email_marketing_consent_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. New version of `accepts_marketing_updated_at` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "accepts_marketing_updated_at": {"name": "accepts_marketing_updated_at", "description": "Deprecated. The package will coalesce with `email_marketing_consent_consent_updated_at`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "Deprecated. The package will coalesce with `email_marketing_consent_opt_in_level`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "created_at": 1755574972.3817933, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line": {"database": "postgres", "schema": "public", "name": "order_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line", "fqn": ["shopify_source", "rest", "shopify", "order_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item for an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gift_card": {"name": "gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "created_at": 1755574972.3825126, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line_refund": {"database": "postgres", "schema": "public", "name": "order_line_refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line_refund", "fqn": ["shopify_source", "rest", "shopify", "order_line_refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item refund in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "created_at": 1755574972.3831594, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product": {"database": "postgres", "schema": "public", "name": "product", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product", "fqn": ["shopify_source", "rest", "shopify", "product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product in Shopify.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "created_at": 1755574972.3838127, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant": {"database": "postgres", "schema": "public", "name": "product_variant", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant", "fqn": ["shopify_source", "rest", "shopify", "product_variant"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "old_inventory_quantity": {"name": "old_inventory_quantity", "description": "(DEPRECATED 2025-01-06) Use the InventoryLevel resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "(DEPRECATED 2025-01-06) Use the `requires_shipping` property on the InventoryItem resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "available_for_sale": {"name": "available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield": {"name": "metafield", "description": "A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_components": {"name": "requires_components", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "created_at": 1755574972.384564, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.transaction": {"database": "postgres", "schema": "public", "name": "transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.transaction", "fqn": ["shopify_source", "rest", "shopify", "transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a transaction in Shopify.", "columns": {"id": {"name": "id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization": {"name": "authorization", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "created_at": 1755574972.385373, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.refund": {"database": "postgres", "schema": "public", "name": "refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.refund", "fqn": ["shopify_source", "rest", "shopify", "refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a refund within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "created_at": 1755574972.3860319, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_adjustment": {"database": "postgres", "schema": "public", "name": "order_adjustment", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_adjustment", "fqn": ["shopify_source", "rest", "shopify", "order_adjustment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_adjustment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "created_at": 1755574972.3866718, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout": {"database": "postgres", "schema": "public", "name": "abandoned_checkout", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "created_at": 1755574972.3875382, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection_product": {"database": "postgres", "schema": "public", "name": "collection_product", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection_product", "fqn": ["shopify_source", "rest", "shopify", "collection_product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "created_at": 1755574972.3881752, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection": {"database": "postgres", "schema": "public", "name": "collection", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection", "fqn": ["shopify_source", "rest", "shopify", "collection"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "disjunctive": {"name": "disjunctive", "description": "Boolean representing whether the `rules` or disjuctive (logical `OR`) or not. True = disjuctive, false = conjunctive (logical `AND`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparitive relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values inclide - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "created_at": 1755574972.3888278, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer_tag": {"database": "postgres", "schema": "public", "name": "customer_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer_tag", "fqn": ["shopify_source", "rest", "shopify", "customer_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "created_at": 1755574972.3894556, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment": {"database": "postgres", "schema": "public", "name": "fulfillment", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment", "fqn": ["shopify_source", "rest", "shopify", "fulfillment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt_authorization": {"name": "receipt_authorization", "description": "The authorization code from the receipt.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was succesfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "created_at": 1755574972.3901112, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_item": {"database": "postgres", "schema": "public", "name": "inventory_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_item", "fqn": ["shopify_source", "rest", "shopify", "inventory_item"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked": {"name": "tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_locked": {"name": "tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "created_at": 1755574972.3907878, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_level": {"database": "postgres", "schema": "public", "name": "inventory_level", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_level", "fqn": ["shopify_source", "rest", "shopify", "inventory_level"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_level_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available": {"name": "available", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "created_at": 1755574972.3914063, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_quantity": {"database": "postgres", "schema": "public", "name": "inventory_quantity", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_quantity", "fqn": ["shopify_source", "rest", "shopify", "inventory_quantity"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_quantity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The total quantity of the inventory item available at all locations.", "columns": {"id": {"name": "id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "created_at": 1755574972.3920305, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.location": {"database": "postgres", "schema": "public", "name": "location", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.location", "fqn": ["shopify_source", "rest", "shopify", "location"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_location_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "active": {"name": "active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy": {"name": "legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "created_at": 1755574972.392741, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.metafield": {"database": "postgres", "schema": "public", "name": "metafield", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.metafield", "fqn": ["shopify_source", "rest", "shopify", "metafield"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_metafield_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_id": {"name": "owner_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Use this instead of `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "created_at": 1755574972.3933747, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_note_attribute": {"database": "postgres", "schema": "public", "name": "order_note_attribute", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_note_attribute", "fqn": ["shopify_source", "rest", "shopify", "order_note_attribute"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_note_attribute_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "created_at": 1755574972.3939881, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_line": {"database": "postgres", "schema": "public", "name": "order_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_line", "fqn": ["shopify_source", "rest", "shopify", "order_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "created_at": 1755574972.3946424, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_tax_line": {"database": "postgres", "schema": "public", "name": "order_shipping_tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_tax_line", "fqn": ["shopify_source", "rest", "shopify", "order_shipping_tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this recod is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "created_at": 1755574972.3952596, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_tag": {"database": "postgres", "schema": "public", "name": "order_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_tag", "fqn": ["shopify_source", "rest", "shopify", "order_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "created_at": 1755574972.3958886, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_url_tag": {"database": "postgres", "schema": "public", "name": "order_url_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_url_tag", "fqn": ["shopify_source", "rest", "shopify", "order_url_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_url_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "created_at": 1755574972.3965278, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media": {"database": "postgres", "schema": "public", "name": "media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media", "fqn": ["shopify_source", "rest", "shopify", "media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing media metadata, including status and timestamps.", "columns": {"id": {"name": "id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "created_at": 1755574972.3971467, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media_image": {"database": "postgres", "schema": "public", "name": "media_image", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media_image", "fqn": ["shopify_source", "rest", "shopify", "media_image"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_image_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "created_at": 1755574972.397767, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_media": {"database": "postgres", "schema": "public", "name": "product_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_media", "fqn": ["shopify_source", "rest", "shopify", "product_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "created_at": 1755574972.398351, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant_media": {"database": "postgres", "schema": "public", "name": "product_variant_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant_media", "fqn": ["shopify_source", "rest", "shopify", "product_variant_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping product variants to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "created_at": 1755574972.3989577, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_tag": {"database": "postgres", "schema": "public", "name": "product_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_tag", "fqn": ["shopify_source", "rest", "shopify", "product_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "created_at": 1755574972.399561, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.shop": {"database": "postgres", "schema": "public", "name": "shop", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.shop", "fqn": ["shopify_source", "rest", "shopify", "shop"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_shop_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_api_supported": {"name": "checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "county_taxes": {"name": "county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_card_reader_giveaway": {"name": "eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_payments": {"name": "eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "force_ssl": {"name": "force_ssl", "description": "DEPRECATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_login_enabled": {"name": "google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "multi_location_enabled": {"name": "multi_location_enabled", "description": "DEPRECATED and hard-coded to `true`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "password_enabled": {"name": "password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_launch_enabled": {"name": "pre_launch_enabled", "description": "Boolen representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_location_id": {"name": "primary_location_id", "description": "DEPRECATED. Formerly used for the ID of the shipping origin location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_extra_payments_agreement": {"name": "requires_extra_payments_agreement", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "setup_required": {"name": "setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_shipping": {"name": "tax_shipping", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "created_at": 1755574972.4003842, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tender_transaction": {"database": "postgres", "schema": "public", "name": "tender_transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tender_transaction", "fqn": ["shopify_source", "rest", "shopify", "tender_transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tender_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the tender transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "created_at": 1755574972.4010296, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index (from 1) representing the application of the discount to the checkout. Use the latest (highest index)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "created_at": 1755574972.401654, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_discount_code": {"database": "postgres", "schema": "public", "name": "order_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_discount_code", "fqn": ["shopify_source", "rest", "shopify", "order_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "created_at": 1755574972.4022648, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_shop_price": {"name": "original_shop_price", "description": "The pre-tax shipping price without any discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "created_at": 1755574972.40293, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment_event": {"database": "postgres", "schema": "public", "name": "fulfillment_event", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment_event", "fqn": ["shopify_source", "rest", "shopify", "fulfillment_event"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_event_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "created_at": 1755574972.4036534, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tax_line": {"database": "postgres", "schema": "public", "name": "tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tax_line", "fqn": ["shopify_source", "rest", "shopify", "tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "created_at": 1755574972.4042637, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_allocation": {"database": "postgres", "schema": "public", "name": "discount_allocation", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_allocation", "fqn": ["shopify_source", "rest", "shopify", "discount_allocation"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_allocation_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing allocation amounts applied to order lines from discount applications. Discount allocations indicate how much of the discount was applied and how it was split across line items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The currency code associated with the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The currency code associated with the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of this allocation in the list of discount allocations applied to an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "created_at": 1755574972.4049044, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_application": {"database": "postgres", "schema": "public", "name": "discount_application", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_application", "fqn": ["shopify_source", "rest", "shopify", "discount_application"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_application_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount applications, which define how discounts were applied to an order. This includes metadata like allocation method, target type, and value type.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The allocation method used to apply the discount. Valid values include `each` (the discount is applied to each entitled item) and `across` (the discount is applied across all entitled items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A short description of the discount, usually derived from the associated rule or promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Specifies whether the discount applies to all items (`all`) or only entitled ones (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "Indicates whether the discount applies to `line_item` or `shipping_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the discount as displayed in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Possible values include `manual`, `automatic`, or `script`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The numerical value of the discount. This may be a flat amount or a percentage, depending on `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount is a `percentage` or a `fixed_amount`. When the target type is `shipping_line`, only `percentage` is allowed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "created_at": 1755574972.4055274, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_app": {"database": "postgres", "schema": "public", "name": "discount_code_app", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_app", "fqn": ["shopify_source", "rest", "shopify", "discount_code_app"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_app_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount codes created and managed through apps using Shopify Functions. These app-based discounts support advanced, dynamic behavior and custom targeting.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_count": {"name": "codes_count_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_precision": {"name": "codes_count_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "created_at": 1755574972.4066317, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_basic": {"database": "postgres", "schema": "public", "name": "discount_code_basic", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_basic", "fqn": ["shopify_source", "rest", "shopify", "discount_code_basic"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_basic_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing basic discount codes and their metadata. This includes usage limits, timeframes, eligible customers, combination rules, and tracked usage.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "Number of billing cycles the discount can be applied for (used for subscriptions).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is an exact number or an estimate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "created_at": 1755574972.4072943, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_bxgy": {"database": "postgres", "schema": "public", "name": "discount_code_bxgy", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_bxgy", "fqn": ["shopify_source", "rest", "shopify", "discount_code_bxgy"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_bxgy_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing Buy X Get Y discount codes, including conditions for what customers must buy, what they receive, and metadata such as usage, status, and combination eligibility.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "uses_per_order_limit": {"name": "uses_per_order_limit", "description": "The maximum number of times the discount can be applied to a single order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "created_at": 1755574972.407974, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_free_shipping": {"database": "postgres", "schema": "public", "name": "discount_code_free_shipping", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_free_shipping", "fqn": ["shopify_source", "rest", "shopify", "discount_code_free_shipping"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_free_shipping_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing free shipping discount codes and metadata, including subscription and one-time purchase applicability, eligible countries, usage limits, and combination rules.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "created_at": 1755574972.4086523, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_redeem_code": {"database": "postgres", "schema": "public", "name": "discount_redeem_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_redeem_code", "fqn": ["shopify_source", "rest", "shopify", "discount_redeem_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_redeem_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each code is tied to a parent discount and may be created by an app or manually by a merchant.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This value is updated asynchronously and may not match real-time usage counts.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (usually an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount this redeem code is associated with (e.g., `discount_code_basic`, `discount_code_bxgy`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "created_at": 1755574972.4093056, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}}, "macros": {"macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4658294, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.466124, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\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 when 'm' then 'MATERIALIZED 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 where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- 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', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\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{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4680593, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.468859, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.473313, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4743195, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4750192, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4756994, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4766603, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.477637, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.478013, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4787638, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.479514, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4811208, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4814997, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.482145, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4826891, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4835038, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n {% if relation.type == 'materialized_view' -%}\n {% set relation_type = \"materialized view\" %}\n {%- else -%}\n {%- set relation_type = relation.type -%}\n {%- endif -%}\n comment on {{ relation_type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4842653, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.485433, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4858475, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4860945, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.486439, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4867399, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4871485, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4875054, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4877474, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4879634, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4881763, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4890368, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_microbatch_sql": {"name": "postgres__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_microbatch_sql", "macro_sql": "{% macro postgres__get_incremental_microbatch_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"dbt-postgres 'microbatch' requires a `unique_key` config\") }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_merge_sql", "macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4898243, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n update {{ target }}\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }}::text = {{ target }}.{{ columns.dbt_scd_id }}::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n {% if config.get(\"dbt_valid_to_current\") %}\n and ({{ target }}.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }} or {{ target }}.{{ columns.dbt_valid_to }} is null);\n {% else %}\n and {{ target }}.{{ columns.dbt_valid_to }} is null;\n {% endif %}\n\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.492027, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4929733, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4968638, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4978974, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4986806, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.498976, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.4993794, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.499956, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5002973, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.500568, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5016184, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }}\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\t{{ ';' if not loop.last else \"\" }}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5026612, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config.model) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5032349, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.503517, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}{{ ';' if not loop.last else \"\" }}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5043428, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5055273, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5058932, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5061631, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.507269, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.507625, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.507897, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.509857, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5100994, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.510428, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5106695, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.51133, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5117116, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5119538, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5123835, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation.render() }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5128088, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5133095, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation.render() }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.513744, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5141795, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5155911, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5159652, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.516442, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.516896, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation.render() ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5191414, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5197027, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5201445, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.521006, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5213435, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5217612, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.522103, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5226202, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5235133, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5250704, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5256016, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.526001, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.526512, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5268893, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5272002, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.52754, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5281756, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.528568, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5291555, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5295238, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5298526, "supported_languages": null}, "macro.dbt.get_catalog_for_single_relation": {"name": "get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_for_single_relation", "macro_sql": "{% macro get_catalog_for_single_relation(relation) %}\n {{ return(adapter.dispatch('get_catalog_for_single_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_catalog_for_single_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5302024, "supported_languages": null}, "macro.dbt.default__get_catalog_for_single_relation": {"name": "default__get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_for_single_relation", "macro_sql": "{% macro default__get_catalog_for_single_relation(relation) %}\n {{ exceptions.raise_not_implemented(\n 'get_catalog_for_single_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5305073, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5308392, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5311315, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5315247, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.531873, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5324752, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5328481, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5331612, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5335143, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5343492, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5351405, "supported_languages": null}, "macro.dbt.collect_freshness_custom_sql": {"name": "collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness_custom_sql", "macro_sql": "{% macro collect_freshness_custom_sql(source, loaded_at_query) %}\n {{ return(adapter.dispatch('collect_freshness_custom_sql', 'dbt')(source, loaded_at_query))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness_custom_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5355392, "supported_languages": null}, "macro.dbt.default__collect_freshness_custom_sql": {"name": "default__collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness_custom_sql", "macro_sql": "{% macro default__collect_freshness_custom_sql(source, loaded_at_query) %}\n {% call statement('collect_freshness_custom_sql', fetch_result=True, auto_begin=False) -%}\n with source_query as (\n {{ loaded_at_query }}\n )\n select\n (select * from source_query) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n {% endcall %}\n {{ return(load_result('collect_freshness_custom_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5361624, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5382378, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5386782, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.53928, "supported_languages": null}, "macro.dbt.get_list_of_column_names": {"name": "get_list_of_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_list_of_column_names", "macro_sql": "\n\n{%- macro get_list_of_column_names(columns) -%}\n {% set col_names = [] %}\n {% for col in columns %}\n {% do col_names.append(col.name) %}\n {% endfor %}\n {{ return(col_names) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.539851, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.540263, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.540673, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5410469, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n {{ cast('null', col['data_type']) }} as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5432677, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5439367, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.544287, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5449436, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5453677, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation.render() }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation.render() }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation.render() }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation.render() }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5466256, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5471087, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation.render() }}\n\n {% for column in add_columns %}\n add column {{ column.quoted }} {{ 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.quoted }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5487175, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header is not none -%}\n {{ sql_header }}\n {%- endif %}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.549448, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "\n{%- macro get_limit_subquery_sql(sql, limit) -%}\n {{ adapter.dispatch('get_limit_sql', 'dbt')(sql, limit) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_limit_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5498288, "supported_languages": null}, "macro.dbt.default__get_limit_sql": {"name": "default__get_limit_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_sql", "macro_sql": "{% macro default__get_limit_sql(sql, limit) %}\n {{ sql }}\n {% if limit is not none %}\n limit {{ limit }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5501933, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5514495, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5517902, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {#-- This ensures microbatch batches get unique temp relations to avoid clobbering --#}\n {% if suffix == '__dbt_tmp' and model.batch %}\n {% set suffix = suffix ~ '_' ~ model.batch.id %}\n {% endif %}\n\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5526445, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5532076, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5536942, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5542953, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5546563, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation.render() }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5550034, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5554645, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.55652, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5569646, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.557243, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5581393, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5584095, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5587344, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5594962, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.559872, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.560146, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5604575, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5607233, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5615766, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5618937, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5621743, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5625062, "supported_languages": null}, "macro.dbt.get_snapshot_get_time_data_type": {"name": "get_snapshot_get_time_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.get_snapshot_get_time_data_type", "macro_sql": "{% macro get_snapshot_get_time_data_type() %}\n {% set snapshot_time = adapter.dispatch('snapshot_get_time', 'dbt')() %}\n {% set time_data_type_sql = 'select ' ~ snapshot_time ~ ' as dbt_snapshot_time' %}\n {% set snapshot_time_column_schema = get_column_schema_from_query(time_data_type_sql) %}\n {% set time_data_type = snapshot_time_column_schema[0].dtype %}\n {{ return(time_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt_postgres.postgres__snapshot_get_time", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5633008, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5636418, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5637975, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5641124, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5644293, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5649981, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5655751, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5661683, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5678008, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.568172, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5684552, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5687504, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.569042, "supported_languages": null}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n {% set limit = config.get('limit') %}\n\n {% set sql_with_limit %}\n {{ get_limit_subquery_sql(sql, limit) }}\n {% endset %}\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\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql_with_limit) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {# Since the test failures have already been saved to the database, reuse that result rather than querying again #}\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_with_limit %}\n\n {% endif %}\n\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 {# The limit has already been included above, and we do not want to duplicate it again. We also want to be safe for macro overrides treating `limit` as a required parameter. #}\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit=none)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5734925, "supported_languages": ["sql"]}, "macro.dbt.materialization_unit_default": {"name": "materialization_unit_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/unit.sql", "original_file_path": "macros/materializations/tests/unit.sql", "unique_id": "macro.dbt.materialization_unit_default", "macro_sql": "{%- materialization unit, default -%}\n\n {% set relations = [] %}\n\n {% set expected_rows = config.get('expected_rows') %}\n {% set expected_sql = config.get('expected_sql') %}\n {% set tested_expected_column_names = expected_rows[0].keys() if (expected_rows | length ) > 0 else get_columns_in_query(sql) %}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {% do run_query(get_create_table_as_sql(True, temp_relation, get_empty_subquery_sql(sql))) %}\n {%- set columns_in_relation = adapter.get_columns_in_relation(temp_relation) -%}\n {%- set column_name_to_data_types = {} -%}\n {%- set column_name_to_quoted = {} -%}\n {%- for column in columns_in_relation -%}\n {%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n {%- do column_name_to_quoted.update({column.name|lower: column.quoted}) -%}\n {%- endfor -%}\n\n {%- set expected_column_names_quoted = [] -%}\n {%- for column_name in tested_expected_column_names -%}\n {%- do expected_column_names_quoted.append(column_name_to_quoted[column_name]) -%}\n {%- endfor -%}\n\n {% if not expected_sql %}\n {% set expected_sql = get_expected_sql(expected_rows, column_name_to_data_types, column_name_to_quoted) %}\n {% endif %}\n {% set unit_test_sql = get_unit_test_sql(sql, expected_sql, expected_column_names_quoted) %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ unit_test_sql }}\n\n {%- endcall %}\n\n {% do adapter.drop_relation(temp_relation) %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt.make_temp_relation", "macro.dbt.run_query", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_empty_subquery_sql", "macro.dbt.get_expected_sql", "macro.dbt.get_unit_test_sql", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5770657, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5780756, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5786805, "supported_languages": null}, "macro.dbt.get_unit_test_sql": {"name": "get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_unit_test_sql", "macro_sql": "{% macro get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n {{ adapter.dispatch('get_unit_test_sql', 'dbt')(main_sql, expected_fixture_sql, expected_column_names) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_unit_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5790825, "supported_languages": null}, "macro.dbt.default__get_unit_test_sql": {"name": "default__get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_unit_test_sql", "macro_sql": "{% macro default__get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n-- Build actual result given inputs\nwith dbt_internal_unit_test_actual as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%},{% endif %}{%- endfor -%}, {{ dbt.string_literal(\"actual\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ main_sql }}\n ) _dbt_internal_unit_test_actual\n),\n-- Build expected result\ndbt_internal_unit_test_expected as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%}, {% endif %}{%- endfor -%}, {{ dbt.string_literal(\"expected\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ expected_fixture_sql }}\n ) _dbt_internal_unit_test_expected\n)\n-- Union actual and expected results\nselect * from dbt_internal_unit_test_actual\nunion all\nselect * from dbt_internal_unit_test_expected\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.580252, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5808659, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5816107, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n\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 {# The model['config'] parameter below is no longer used, but passing anyway for compatibility #}\n {# It was a dictionary of config, instead of the config object from the context #}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", model['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 build_or_select_sql = build_sql %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\n\n {{ adapter.assert_valid_snapshot_target_given_strategy(target_relation, columns, strategy) }}\n\n {% set build_or_select_sql = snapshot_staging_table(strategy, sql, target_relation) %}\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 remove_columns = ['dbt_change_type', 'DBT_CHANGE_TYPE', 'dbt_unique_key', 'DBT_UNIQUE_KEY'] %}\n {% if unique_key | is_list %}\n {% for key in strategy.unique_key %}\n {{ remove_columns.append('dbt_unique_key_' + loop.index|string) }}\n {{ remove_columns.append('DBT_UNIQUE_KEY_' + loop.index|string) }}\n {% endfor %}\n {% endif %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'in', remove_columns)\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', 'in', remove_columns)\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\n {{ check_time_data_types(build_or_select_sql) }}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_staging_table", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.check_time_data_types", "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": 1755574963.5894375, "supported_languages": ["sql"]}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5934064, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5937624, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5941978, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set primary_key = config.get('unique_key') %}\n {% set updated_at = config.get('updated_at') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\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 }}.{{ columns.dbt_valid_from }} < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.596076, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5964084, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5967665, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.5994234, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set check_cols_config = config.get('check_cols') %}\n {% set primary_key = config.get('unique_key') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set updated_at = config.get('updated_at') or 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_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6022956, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6060493, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation.render() }} add column {{ adapter.quote(column.name) }} {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.606701, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6070316, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6072147, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6074996, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.607747, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6081436, "supported_languages": null}, "macro.dbt.get_snapshot_table_column_names": {"name": "get_snapshot_table_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_snapshot_table_column_names", "macro_sql": "{% macro get_snapshot_table_column_names() %}\n {{ return({'dbt_valid_to': 'dbt_valid_to', 'dbt_valid_from': 'dbt_valid_from', 'dbt_scd_id': 'dbt_scd_id', 'dbt_updated_at': 'dbt_updated_at', 'dbt_is_deleted': 'dbt_is_deleted'}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6086252, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n {% if strategy.hard_deletes == 'new_record' %}\n {% set new_scd_id = snapshot_hash_arguments([columns.dbt_scd_id, snapshot_get_time()]) %}\n {% endif %}\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }}\n from {{ target_relation }}\n where\n {% if config.get('dbt_valid_to_current') %}\n\t\t{% set source_unique_key = columns.dbt_valid_to | trim %}\n\t\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\n\t\t{# The exact equals semantics between NULL values depends on the current behavior flag set. Also, update records if the source field is null #}\n ( {{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null )\n {% else %}\n {{ columns.dbt_valid_to }} is null\n {% endif %}\n\n ),\n\n insertions_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }},\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }}\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_to }}\n\n from snapshot_query\n ),\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n\n deletes_source_data as (\n\n select *, {{ unique_key_fields(strategy.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 {%- if strategy.hard_deletes == 'new_record' -%}\n ,'False' as {{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from insertions_source_data as source_data\n left outer join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"snapshotted_data\") }}\n or ({{ unique_key_is_not_null(strategy.unique_key, \"snapshotted_data\") }} and (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from updates_source_data as source_data\n join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n )\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n ,\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_to }},\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n and not (\n --avoid updating the record's valid_to if the latest entry is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n {%- endif %}\n )\n {%- endif %}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n {% set snapshotted_cols = get_list_of_column_names(get_columns_in_relation(target_relation)) %}\n {% set source_sql_cols = get_column_schema_from_query(source_sql) %}\n ,\n deletion_records as (\n\n select\n 'insert' as dbt_change_type,\n {#\n If a column has been added to the source it won't yet exist in the\n snapshotted table so we insert a null value as a placeholder for the column.\n #}\n {%- for col in source_sql_cols -%}\n {%- if col.name in snapshotted_cols -%}\n snapshotted_data.{{ adapter.quote(col.column) }},\n {%- else -%}\n NULL as {{ adapter.quote(col.column) }},\n {%- endif -%}\n {% endfor -%}\n {%- if strategy.unique_key | is_list -%}\n {%- for key in strategy.unique_key -%}\n snapshotted_data.{{ key }} as dbt_unique_key_{{ loop.index }},\n {% endfor -%}\n {%- else -%}\n snapshotted_data.dbt_unique_key as dbt_unique_key,\n {% endif -%}\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n snapshotted_data.{{ columns.dbt_valid_to }} as {{ columns.dbt_valid_to }},\n {{ new_scd_id }} as {{ columns.dbt_scd_id }},\n 'True' as {{ columns.dbt_is_deleted }}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n and not (\n --avoid inserting a new record if the latest one is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletes\n {%- endif %}\n {%- if strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletion_records\n {%- endif %}\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments", "macro.dbt.snapshot_get_time", "macro.dbt.unique_key_fields", "macro.dbt.equals", "macro.dbt.get_dbt_valid_to_current", "macro.dbt.unique_key_join_on", "macro.dbt.unique_key_is_null", "macro.dbt.unique_key_is_not_null", "macro.dbt.get_list_of_column_names", "macro.dbt.get_columns_in_relation", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6166723, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6170843, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n\n select *,\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , 'False' as {{ columns.dbt_is_deleted }}\n {% endif -%}\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.get_dbt_valid_to_current"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6181056, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6189559, "supported_languages": null}, "macro.dbt.get_updated_at_column_data_type": {"name": "get_updated_at_column_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_updated_at_column_data_type", "macro_sql": "{% macro get_updated_at_column_data_type(snapshot_sql) %}\n {% set snapshot_sql_column_schema = get_column_schema_from_query(snapshot_sql) %}\n {% set dbt_updated_at_data_type = null %}\n {% set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {% set ns.dbt_updated_at_data_type = null -%}\n {% for column in snapshot_sql_column_schema %}\n {% if ((column.column == 'dbt_updated_at') or (column.column == 'DBT_UPDATED_AT')) %}\n {% set ns.dbt_updated_at_data_type = column.dtype %}\n {% endif %}\n {% endfor %}\n {{ return(ns.dbt_updated_at_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.620099, "supported_languages": null}, "macro.dbt.check_time_data_types": {"name": "check_time_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.check_time_data_types", "macro_sql": "{% macro check_time_data_types(sql) %}\n {% set dbt_updated_at_data_type = get_updated_at_column_data_type(sql) %}\n {% set snapshot_get_time_data_type = get_snapshot_get_time_data_type() %}\n {% if snapshot_get_time_data_type is not none and dbt_updated_at_data_type is not none and snapshot_get_time_data_type != dbt_updated_at_data_type %}\n {% if exceptions.warn_snapshot_timestamp_data_types %}\n {{ exceptions.warn_snapshot_timestamp_data_types(snapshot_get_time_data_type, dbt_updated_at_data_type) }}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_updated_at_column_data_type", "macro.dbt.get_snapshot_get_time_data_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6209183, "supported_languages": null}, "macro.dbt.get_dbt_valid_to_current": {"name": "get_dbt_valid_to_current", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_dbt_valid_to_current", "macro_sql": "{% macro get_dbt_valid_to_current(strategy, columns) %}\n {% set dbt_valid_to_current = config.get('dbt_valid_to_current') or \"null\" %}\n coalesce(nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}), {{dbt_valid_to_current}})\n as {{ columns.dbt_valid_to }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6214576, "supported_languages": null}, "macro.dbt.unique_key_fields": {"name": "unique_key_fields", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_fields", "macro_sql": "{% macro unique_key_fields(unique_key) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n {{ key }} as dbt_unique_key_{{ loop.index }}\n {%- if not loop.last %} , {%- endif %}\n {% endfor %}\n {% else %}\n {{ unique_key }} as dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6221328, "supported_languages": null}, "macro.dbt.unique_key_join_on": {"name": "unique_key_join_on", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_join_on", "macro_sql": "{% macro unique_key_join_on(unique_key, identifier, from_identifier) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n\t {% set source_unique_key = (identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {% set target_unique_key = (from_identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {{ equals(source_unique_key, target_unique_key) }}\n {%- if not loop.last %} and {%- endif %}\n {% endfor %}\n {% else %}\n {{ identifier }}.dbt_unique_key = {{ from_identifier }}.dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6232417, "supported_languages": null}, "macro.dbt.unique_key_is_null": {"name": "unique_key_is_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_null", "macro_sql": "{% macro unique_key_is_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is null\n {% else %}\n {{ identifier }}.dbt_unique_key is null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6236706, "supported_languages": null}, "macro.dbt.unique_key_is_not_null": {"name": "unique_key_is_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_not_null", "macro_sql": "{% macro unique_key_is_not_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is not null\n {% else %}\n {{ identifier }}.dbt_unique_key is not null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.624077, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6248693, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n merge into {{ target.render() }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }} = DBT_INTERNAL_DEST.{{ columns.dbt_scd_id }}\n\n when matched\n {% if config.get(\"dbt_valid_to_current\") %}\n\t{% set source_unique_key = (\"DBT_INTERNAL_DEST.\" ~ columns.dbt_valid_to) | trim %}\n\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\tand ({{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null)\n\n {% else %}\n and DBT_INTERNAL_DEST.{{ columns.dbt_valid_to }} is null\n {% endif %}\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6264436, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation.render())) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6313872, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6331775, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6349204, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.635374, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation.render() %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.636338, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6367252, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.636994, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6372695, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6374984, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.637824, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.638056, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6389685, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6393213, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6417508, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6456842, "supported_languages": ["sql"]}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6485975, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6493282, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.649817, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation.render() ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation.render() ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6522954, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6527636, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6540086, "supported_languages": null}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n {% do create_indexes(intermediate_relation) %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6579275, "supported_languages": ["sql"]}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6590335, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6610017, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set source_unique_key = (\"DBT_INTERNAL_SOURCE.\" ~ unique_key) | trim %}\n\t {% set target_unique_key = (\"DBT_INTERNAL_DEST.\" ~ unique_key) | trim %}\n\t {% set unique_key_match = equals(source_unique_key, target_unique_key) | trim %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6644526, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.664969, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is string %}\n {% set unique_key = [unique_key] %}\n {% endif %}\n\n {%- set unique_key_str = unique_key|join(', ') -%}\n\n delete from {{ target }} as DBT_INTERNAL_DEST\n where ({{ unique_key_str }}) in (\n select distinct {{ unique_key_str }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6663902, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.666918, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6681545, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6697116, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6707666, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6720204, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6724691, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6738691, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6750934, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.675553, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6759477, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.67651, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6768928, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.677442, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6778176, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6783268, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.678703, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6790032, "supported_languages": null}, "macro.dbt.get_incremental_microbatch_sql": {"name": "get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_microbatch_sql", "macro_sql": "{% macro get_incremental_microbatch_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_microbatch_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_microbatch_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6793509, "supported_languages": null}, "macro.dbt.default__get_incremental_microbatch_sql": {"name": "default__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_microbatch_sql", "macro_sql": "{% macro default__get_incremental_microbatch_sql(arg_dict) %}\n\n {{ exceptions.raise_not_implemented('microbatch materialization strategy not implemented for adapter ' + adapter.type()) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6798031, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6803374, "supported_languages": null}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6826, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6849644, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6872492, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6888824, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% set relation_for_indexes = target_relation %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set relation_for_indexes = intermediate_relation %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% set relation_for_indexes = temp_relation %}\n {% set contract_config = config.get('contract') %}\n {% if not contract_config or not contract_config.enforced %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {% endif %}\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_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(relation_for_indexes) %}\n {% endif %}\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 {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.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": 1755574963.6970568, "supported_languages": ["sql"]}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6975656, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.6978285, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation.render() ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% if target_relation.database == defer_relation.database and\n target_relation.schema == defer_relation.schema and\n target_relation.identifier == defer_relation.identifier %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation.render()) }}\n {% else %}\n {% call statement('main') %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endcall %}\n {% endif %}\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7025268, "supported_languages": ["sql"]}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7031205, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation.render() }} clone {{ defer_relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7034516, "supported_languages": null}, "macro.dbt.get_fixture_sql": {"name": "get_fixture_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_fixture_sql", "macro_sql": "{% macro get_fixture_sql(rows, column_name_to_data_types) %}\n-- Fixture for {{ model.name }}\n{% set default_row = {} %}\n\n{%- if not column_name_to_data_types -%}\n{#-- Use defer_relation IFF it is available in the manifest and 'this' is missing from the database --#}\n{%- set this_or_defer_relation = defer_relation if (defer_relation and not load_relation(this)) else this -%}\n{%- set columns_in_relation = adapter.get_columns_in_relation(this_or_defer_relation) -%}\n\n{%- set column_name_to_data_types = {} -%}\n{%- set column_name_to_quoted = {} -%}\n{%- for column in columns_in_relation -%}\n\n{#-- This needs to be a case-insensitive comparison --#}\n{%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n{%- do column_name_to_quoted.update({column.name|lower: column.quoted}) -%}\n{%- endfor -%}\n{%- endif -%}\n\n{%- if not column_name_to_data_types -%}\n {{ exceptions.raise_compiler_error(\"Not able to get columns for unit test '\" ~ model.name ~ \"' from relation \" ~ this ~ \" because the relation doesn't exist\") }}\n{%- endif -%}\n\n{%- for column_name, column_type in column_name_to_data_types.items() -%}\n {%- do default_row.update({column_name: (safe_cast(\"null\", column_type) | trim )}) -%}\n{%- endfor -%}\n\n{{ validate_fixture_rows(rows, row_number) }}\n\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\n{%- set default_row_copy = default_row.copy() -%}\n{%- do default_row_copy.update(formatted_row) -%}\nselect\n{%- for column_name, column_value in default_row_copy.items() %} {{ column_value }} as {{ column_name_to_quoted[column_name] }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n\n{%- if (rows | length) == 0 -%}\n select\n {%- for column_name, column_value in default_row.items() %} {{ column_value }} as {{ column_name_to_quoted[column_name] }}{% if not loop.last -%},{%- endif %}\n {%- endfor %}\n limit 0\n{%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.safe_cast", "macro.dbt.validate_fixture_rows", "macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7082536, "supported_languages": null}, "macro.dbt.get_expected_sql": {"name": "get_expected_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_expected_sql", "macro_sql": "{% macro get_expected_sql(rows, column_name_to_data_types, column_name_to_quoted) %}\n\n{%- if (rows | length) == 0 -%}\n select * from dbt_internal_unit_test_actual\n limit 0\n{%- else -%}\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\nselect\n{%- for column_name, column_value in formatted_row.items() %} {{ column_value }} as {{ column_name_to_quoted[column_name] }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7094717, "supported_languages": null}, "macro.dbt.format_row": {"name": "format_row", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.format_row", "macro_sql": "\n\n{%- macro format_row(row, column_name_to_data_types) -%}\n {#-- generate case-insensitive formatted row --#}\n {% set formatted_row = {} %}\n {%- for column_name, column_value in row.items() -%}\n {% set column_name = column_name|lower %}\n\n {%- if column_name not in column_name_to_data_types %}\n {#-- if user-provided row contains column name that relation does not contain, raise an error --#}\n {% set fixture_name = \"expected output\" if model.resource_type == 'unit_test' else (\"'\" ~ model.name ~ \"'\") %}\n {{ exceptions.raise_compiler_error(\n \"Invalid column name: '\" ~ column_name ~ \"' in unit test fixture for \" ~ fixture_name ~ \".\"\n \"\\nAccepted columns for \" ~ fixture_name ~ \" are: \" ~ (column_name_to_data_types.keys()|list)\n ) }}\n {%- endif -%}\n\n {%- set column_type = column_name_to_data_types[column_name] %}\n\n {#-- sanitize column_value: wrap yaml strings in quotes, apply cast --#}\n {%- set column_value_clean = column_value -%}\n {%- if column_value is string -%}\n {%- set column_value_clean = dbt.string_literal(dbt.escape_single_quotes(column_value)) -%}\n {%- elif column_value is none -%}\n {%- set column_value_clean = 'null' -%}\n {%- endif -%}\n\n {%- set row_update = {column_name: safe_cast(column_value_clean, column_type) } -%}\n {%- do formatted_row.update(row_update) -%}\n {%- endfor -%}\n {{ return(formatted_row) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.string_literal", "macro.dbt.escape_single_quotes", "macro.dbt.safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.711593, "supported_languages": null}, "macro.dbt.validate_fixture_rows": {"name": "validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.validate_fixture_rows", "macro_sql": "{%- macro validate_fixture_rows(rows, row_number) -%}\n {{ return(adapter.dispatch('validate_fixture_rows', 'dbt')(rows, row_number)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__validate_fixture_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7120056, "supported_languages": null}, "macro.dbt.default__validate_fixture_rows": {"name": "default__validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.default__validate_fixture_rows", "macro_sql": "{%- macro default__validate_fixture_rows(rows, row_number) -%}\n {# This is an abstract method for adapter overrides as needed #}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7122, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7128928, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7133882, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.714091, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7148283, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7156394, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7161577, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7167175, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7172663, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7177227, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7182765, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7192612, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7205627, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7208877, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n\n {#\n We want to get the string of the returned relation by calling .render() in order to skip sample/empty\n mode rendering logic. However, people override the default ref macro, and often return a string instead\n of a relation (like the ref macro does by default). Thus, to make sure we dont blow things up, we have\n to ensure the resolved relation has a .render() method.\n #}\n {%- if resolved.render is defined and resolved.render is callable -%}\n {%- set resolved = resolved.render() -%}\n {%- endif -%}\n\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7227187, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.723636, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7247345, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.725622, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7257767, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7262394, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7265532, "supported_languages": null}, "macro.dbt.equals": {"name": "equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.equals", "macro_sql": "{% macro equals(expr1, expr2) %}\n {{ return(adapter.dispatch('equals', 'dbt') (expr1, expr2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7271655, "supported_languages": null}, "macro.dbt.default__equals": {"name": "default__equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.default__equals", "macro_sql": "{% macro default__equals(expr1, expr2) -%}\n{%- if adapter.behavior.enable_truthy_nulls_equals_macro.no_warn %}\n case when (({{ expr1 }} = {{ expr2 }}) or ({{ expr1 }} is null and {{ expr2 }} is null))\n then 0\n else 1\n end = 0\n{%- else -%}\n ({{ expr1 }} = {{ expr2 }})\n{%- endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7277427, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7283432, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7287269, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.729265, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7295368, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7301364, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.730655, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7309492, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7316532, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.732027, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7329683, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.734243, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7347202, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7354097, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.735947, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.736264, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7367175, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7368777, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.737384, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7376657, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7383552, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7388422, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7397072, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7404861, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7412317, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7415547, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7420094, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7425513, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.74284, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7432969, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7435112, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7440088, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7443402, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.745159, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7459552, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7463162, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7473154, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.747808, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.748016, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7485151, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7488124, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7492716, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7495136, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.750047, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7503116, "supported_languages": null}, "macro.dbt.date": {"name": "date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.date", "macro_sql": "{% macro date(year, month, day) %}\n {{ return(adapter.dispatch('date', 'dbt') (year, month, day)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7509274, "supported_languages": null}, "macro.dbt.default__date": {"name": "default__date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.default__date", "macro_sql": "{% macro default__date(year, month, day) -%}\n {%- set dt = modules.datetime.date(year, month, day) -%}\n {%- set iso_8601_formatted_date = dt.strftime('%Y-%m-%d') -%}\n to_date('{{ iso_8601_formatted_date }}', 'YYYY-MM-DD')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.751471, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7520816, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7523987, "supported_languages": null}, "macro.dbt.cast": {"name": "cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.cast", "macro_sql": "{% macro cast(field, type) %}\n {{ return(adapter.dispatch('cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.752924, "supported_languages": null}, "macro.dbt.default__cast": {"name": "default__cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.default__cast", "macro_sql": "{% macro default__cast(field, type) %}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.753184, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.753765, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7539792, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7544837, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7547607, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7559967, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7562876, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7566197, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7569149, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7572203, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.757508, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7578266, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.758161, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7584748, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.758784, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7590933, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7593935, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7597148, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7599883, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7605114, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7607915, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.761468, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7617114, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.762779, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation.type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.76504, "supported_languages": null}, "macro.dbt.drop_schema_named": {"name": "drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.drop_schema_named", "macro_sql": "{% macro drop_schema_named(schema_name) %}\n {{ return(adapter.dispatch('drop_schema_named', 'dbt') (schema_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_schema_named"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7655568, "supported_languages": null}, "macro.dbt.default__drop_schema_named": {"name": "default__drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.default__drop_schema_named", "macro_sql": "{% macro default__drop_schema_named(schema_name) %}\n {% set schema_relation = api.Relation.create(schema=schema_name) %}\n {{ adapter.drop_schema(schema_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7659876, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7668505, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7676866, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.768086, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation.render() }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7686849, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.769514, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation.render() }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7702599, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7706249, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.771014, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7713885, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7720413, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7725272, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7731059, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.773806, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7743795, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.774793, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7754898, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7763464, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7769444, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7774503, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.777955, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7782404, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7787452, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7790267, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{- adapter.dispatch('drop_materialized_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7794716, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.779731, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7807033, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7810621, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7816014, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.781894, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7824476, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7827291, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7833319, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7836301, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7841175, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7844005, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7849035, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7851903, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{- adapter.dispatch('drop_table', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7856512, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7859037, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7870443, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7873964, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7882288, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7898197, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.790785, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7911546, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7915156, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7929466, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7931905, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7943602, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7947268, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7950008, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.79743, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.79818, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7988582, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.7998421, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8001401, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8022363, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8026328, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation.render() ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8030841, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8035989, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8038917, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{- adapter.dispatch('drop_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.804347, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8046026, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8052812, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8056126, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8059628, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation.render() }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8069386, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.809374, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8104568, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.811027, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8124013, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.814608, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8160043, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.816446, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8172925, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8177938, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8183706, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8189428, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8195076, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.819815, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8201964, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.822211, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8235257, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8246017, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8252437, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8255095, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.825787, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8260472, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.826314, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8274252, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8279355, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8284183, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.828903, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8293676, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8298929, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8303976, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8308716, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8316884, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8336859, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8346539, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8349977, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8365238, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8372567, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8383813, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8390934, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.839829, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8452864, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8459783, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.84646, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.84669, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8469, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8473926, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8487434, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8490632, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8493721, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.849695, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8529308, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.85371, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.854429, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.854845, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.855274, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8572624, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8583288, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8597548, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.860657, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8629549, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.863734, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8640473, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8643513, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8647068, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8650122, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8653066, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8660798, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8663993, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8667276, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8671522, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8674657, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8678222, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8703158, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8710618, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8715935, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.871816, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8720233, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8722303, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8743756, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.88306, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.883942, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8843105, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8846643, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8849907, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.885276, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.885608, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.88655, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.886847, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8873827, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.887944, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8882027, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.888468, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8887362, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8889868, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8901694, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8907852, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8910124, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8912401, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.891561, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8917952, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8925242, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.893689, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.894163, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8943744, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.8945932, "supported_languages": null}, "macro.shopify_source.get_shop_columns": {"name": "get_shop_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_shop_columns.sql", "original_file_path": "macros/get_shop_columns.sql", "unique_id": "macro.shopify_source.get_shop_columns", "macro_sql": "{% macro get_shop_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_api_supported\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"cookie_consent_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"county_taxes\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_card_reader_giveaway\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"eligible_for_payments\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"enabled_presentment_currencies\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_login_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_gift_cards\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_storefront\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"iana_timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"money_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"myshopify_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"password_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"pre_launch_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"primary_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_extra_payments_agreement\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"setup_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"shop_owner\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.904602, "supported_languages": null}, "macro.shopify_source.get_graphql_shop_columns": {"name": "get_graphql_shop_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_shop_columns.sql", "original_file_path": "macros/get_shop_columns.sql", "unique_id": "macro.shopify_source.get_graphql_shop_columns", "macro_sql": "{% macro get_graphql_shop_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code_v_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_api_supported\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"contact_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_with_currency_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_with_currency_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"enabled_presentment_currencies\", \"datatype\": dbt.type_string()},\n {\"name\": \"features_storefront\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"iana_timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"myshopify_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"password_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"plan_display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_domain_host\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_domain_localization_default_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"setup_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"shop_owner_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"timezone_abbreviation\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_offset\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_offset_minutes\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.9112327, "supported_languages": null}, "macro.shopify_source.get_order_line_columns": {"name": "get_order_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_columns.sql", "original_file_path": "macros/get_order_line_columns.sql", "unique_id": "macro.shopify_source.get_order_line_columns", "macro_sql": "{% macro get_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillable_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"gift_card\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"grams\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"index\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"pre_tax_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"pre_tax_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"properties\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.916896, "supported_languages": null}, "macro.shopify_source.get_graphql_order_line_columns": {"name": "get_graphql_order_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_columns.sql", "original_file_path": "macros/get_order_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_line_columns", "macro_sql": "{% macro get_graphql_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_gift_card\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"original_total_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_total_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"original_total_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_total_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"unfulfilled_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.962673, "supported_languages": null}, "macro.shopify_source.get_order_shipping_line_columns": {"name": "get_order_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_line_columns.sql", "original_file_path": "macros/get_order_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_line_columns", "macro_sql": "{% macro get_order_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.9659133, "supported_languages": null}, "macro.shopify_source.get_graphql_order_shipping_line_columns": {"name": "get_graphql_order_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_line_columns.sql", "original_file_path": "macros/get_order_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_shipping_line_columns", "macro_sql": "{% macro get_graphql_order_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"original_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"original_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.9687614, "supported_languages": null}, "macro.shopify_source.get_location_columns": {"name": "get_location_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_location_columns.sql", "original_file_path": "macros/get_location_columns.sql", "unique_id": "macro.shopify_source.get_location_columns", "macro_sql": "{% macro get_location_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"legacy\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"localized_country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"localized_province_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.9729135, "supported_languages": null}, "macro.shopify_source.get_graphql_location_columns": {"name": "get_graphql_location_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_location_columns.sql", "original_file_path": "macros/get_location_columns.sql", "unique_id": "macro.shopify_source.get_graphql_location_columns", "macro_sql": "{% macro get_graphql_location_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"is_fulfillment_service\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.9758515, "supported_languages": null}, "macro.shopify_source.get_discount_code_bxgy_columns": {"name": "get_discount_code_bxgy_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_bxgy_columns.sql", "original_file_path": "macros/get_discount_code_bxgy_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_bxgy_columns", "macro_sql": "{% macro get_discount_code_bxgy_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.9800189, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_bxgy_columns": {"name": "get_graphql_discount_code_bxgy_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_bxgy_columns.sql", "original_file_path": "macros/get_discount_code_bxgy_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_bxgy_columns", "macro_sql": "{% macro get_graphql_discount_code_bxgy_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.9831874, "supported_languages": null}, "macro.shopify_source.get_customer_columns": {"name": "get_customer_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "unique_id": "macro.shopify_source.get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_address_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"orders_count\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_spent\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"verified_email\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email_marketing_consent_consent_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_marketing_consent_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepts_marketing_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"marketing_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customer_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.9878335, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_columns": {"name": "get_graphql_customer_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_columns", "macro_sql": "{% macro get_graphql_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"orders_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_spent\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"verified_email\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customer_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.99102, "supported_languages": null}, "macro.shopify_source.get_fulfillment_columns": {"name": "get_fulfillment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_columns.sql", "original_file_path": "macros/get_fulfillment_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_columns", "macro_sql": "{% macro get_fulfillment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_numbers\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.9940531, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_columns": {"name": "get_graphql_fulfillment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_columns.sql", "original_file_path": "macros/get_fulfillment_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_columns", "macro_sql": "{% macro get_graphql_fulfillment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"display_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574963.9960074, "supported_languages": null}, "macro.shopify_source.get_product_variant_columns": {"name": "get_product_variant_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_columns.sql", "original_file_path": "macros/get_product_variant_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_columns", "macro_sql": "{% macro get_product_variant_columns() %}\n\n{# Columns below line 28 to be deprecated. #}\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"position\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"compare_at_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"barcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"old_inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"available_for_sale\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"requires_components\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sellable_online_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"fulfillment_service\", \"datatype\": dbt.type_string()},\n {\"name\": \"grams\", \"datatype\": dbt.type_float()},\n {\"name\": \"inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_3\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_variant_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_boolean", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.002072, "supported_languages": null}, "macro.shopify_source.get_graphql_product_variant_columns": {"name": "get_graphql_product_variant_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_columns.sql", "original_file_path": "macros/get_product_variant_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_variant_columns", "macro_sql": "{% macro get_graphql_product_variant_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_sale\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"barcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"compare_at_price\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"position\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_components\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sellable_online_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_variant_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0056455, "supported_languages": null}, "macro.shopify_source.get_order_discount_code_columns": {"name": "get_order_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_discount_code_columns.sql", "original_file_path": "macros/get_order_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_order_discount_code_columns", "macro_sql": "{% macro get_order_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0072203, "supported_languages": null}, "macro.shopify_source.get_graphql_order_discount_code_columns": {"name": "get_graphql_order_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_discount_code_columns.sql", "original_file_path": "macros/get_order_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_discount_code_columns", "macro_sql": "{% macro get_graphql_order_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.008142, "supported_languages": null}, "macro.shopify_source.json_to_string": {"name": "json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.json_to_string", "macro_sql": "{%- macro json_to_string(column, column_list) -%}\n {{ return(adapter.dispatch('json_to_string', 'shopify_source')(column, column_list)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__json_to_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0088837, "supported_languages": null}, "macro.shopify_source.default__json_to_string": {"name": "default__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.default__json_to_string", "macro_sql": "{%- macro default__json_to_string(column, column_list) -%}\n {{ column }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.009117, "supported_languages": null}, "macro.shopify_source.bigquery__json_to_string": {"name": "bigquery__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.bigquery__json_to_string", "macro_sql": "{%- macro bigquery__json_to_string(column, column_list) -%}\n {%- set columns = column_list -%}\n {%- set ns = namespace(column_type='string') -%}\n\n {%- for col in columns -%}\n {%- if col.name|lower == column|lower -%}\n {%- set ns.column_type = col.dtype|lower -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- if ns.column_type == 'json' -%}\n to_json_string({{ column }})\n {%- else -%}\n {{ column }}\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0101233, "supported_languages": null}, "macro.shopify_source.get_order_tag_columns": {"name": "get_order_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_tag_columns.sql", "original_file_path": "macros/get_order_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_tag_columns", "macro_sql": "{% macro get_order_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.011357, "supported_languages": null}, "macro.shopify_source.get_graphql_order_tag_columns": {"name": "get_graphql_order_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_tag_columns.sql", "original_file_path": "macros/get_order_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_tag_columns", "macro_sql": "{% macro get_graphql_order_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0123172, "supported_languages": null}, "macro.shopify_source.get_discount_code_free_shipping_columns": {"name": "get_discount_code_free_shipping_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_free_shipping_columns.sql", "original_file_path": "macros/get_discount_code_free_shipping_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_free_shipping_columns", "macro_sql": "{% macro get_discount_code_free_shipping_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0166185, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_free_shipping_columns": {"name": "get_graphql_discount_code_free_shipping_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_free_shipping_columns.sql", "original_file_path": "macros/get_discount_code_free_shipping_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_free_shipping_columns", "macro_sql": "{% macro get_graphql_discount_code_free_shipping_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.019978, "supported_languages": null}, "macro.shopify_source.get_collection_columns": {"name": "get_collection_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_columns.sql", "original_file_path": "macros/get_collection_columns.sql", "unique_id": "macro.shopify_source.get_collection_columns", "macro_sql": "{% macro get_collection_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"disjunctive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"rules\", \"datatype\": dbt.type_string()},\n {\"name\": \"sort_order\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.022474, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_columns": {"name": "get_graphql_collection_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_columns.sql", "original_file_path": "macros/get_collection_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_columns", "macro_sql": "{% macro get_graphql_collection_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"applied_disjunctively\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"sort_order\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0240045, "supported_languages": null}, "macro.shopify_source.get_tender_transaction_columns": {"name": "get_tender_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tender_transaction_columns.sql", "original_file_path": "macros/get_tender_transaction_columns.sql", "unique_id": "macro.shopify_source.get_tender_transaction_columns", "macro_sql": "{% macro get_tender_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"remote_reference\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0263512, "supported_languages": null}, "macro.shopify_source.get_graphql_tender_transaction_columns": {"name": "get_graphql_tender_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tender_transaction_columns.sql", "original_file_path": "macros/get_tender_transaction_columns.sql", "unique_id": "macro.shopify_source.get_graphql_tender_transaction_columns", "macro_sql": "{% macro get_graphql_tender_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"remote_reference\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0281298, "supported_languages": null}, "macro.shopify_source.get_product_variant_media_columns": {"name": "get_product_variant_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_media_columns.sql", "original_file_path": "macros/get_product_variant_media_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_media_columns", "macro_sql": "{% macro get_product_variant_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0289972, "supported_languages": null}, "macro.shopify_source.get_graphql_product_variant_media_columns": {"name": "get_graphql_product_variant_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_media_columns.sql", "original_file_path": "macros/get_product_variant_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_variant_media_columns", "macro_sql": "{% macro get_graphql_product_variant_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0296378, "supported_languages": null}, "macro.shopify_source.get_inventory_item_columns": {"name": "get_inventory_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_item_columns.sql", "original_file_path": "macros/get_inventory_item_columns.sql", "unique_id": "macro.shopify_source.get_inventory_item_columns", "macro_sql": "{% macro get_inventory_item_columns() %}\n\n{# Columns below line 26 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"province_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duplicate_sku_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"harmonized_system_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_history_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_weight_value\", \"datatype\": dbt.type_float()},\n {\"name\": \"measurement_weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked_editable_locked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()}\n ,\n {\"name\": \"cost\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0341923, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_item_columns": {"name": "get_graphql_inventory_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_item_columns.sql", "original_file_path": "macros/get_inventory_item_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_item_columns", "macro_sql": "{% macro get_graphql_inventory_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duplicate_sku_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"harmonized_system_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_history_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"measurement_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"measurement_weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"measurement_weight_value\", \"datatype\": dbt.type_float()},\n {\"name\": \"province_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_locked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0376816, "supported_languages": null}, "macro.shopify_source.get_discount_redeem_code_columns": {"name": "get_discount_redeem_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_redeem_code_columns.sql", "original_file_path": "macros/get_discount_redeem_code_columns.sql", "unique_id": "macro.shopify_source.get_discount_redeem_code_columns", "macro_sql": "{% macro get_discount_redeem_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"created_by_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"discount_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0398672, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_redeem_code_columns": {"name": "get_graphql_discount_redeem_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_redeem_code_columns.sql", "original_file_path": "macros/get_discount_redeem_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_redeem_code_columns", "macro_sql": "{% macro get_graphql_discount_redeem_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"created_by_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"discount_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.041562, "supported_languages": null}, "macro.shopify_source.get_transaction_columns": {"name": "get_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_transaction_columns.sql", "original_file_path": "macros/get_transaction_columns.sql", "unique_id": "macro.shopify_source.get_transaction_columns", "macro_sql": "{% macro get_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"payment_avs_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_bin\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_cvv_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"receipt\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_exchange_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_adjustment\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_original_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_final_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"error_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"authorization_expires_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{% if target.type in ('redshift','postgres') %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"quote\": True, \"alias\": \"authorization_code\"}) }}\n{% else %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"alias\": \"authorization_code\"}) }}\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0489686, "supported_languages": null}, "macro.shopify_source.get_graphql_transaction_columns": {"name": "get_graphql_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_transaction_columns.sql", "original_file_path": "macros/get_transaction_columns.sql", "unique_id": "macro.shopify_source.get_graphql_transaction_columns", "macro_sql": "{% macro get_graphql_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"authorization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"authorization_expires_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"error_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_avs_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_bin\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_cvv_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"receipt_json\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_exchange_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_adjustment\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_original_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_final_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_currency\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0541012, "supported_languages": null}, "macro.shopify_source.get_inventory_quantity_columns": {"name": "get_inventory_quantity_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_quantity_columns.sql", "original_file_path": "macros/get_inventory_quantity_columns.sql", "unique_id": "macro.shopify_source.get_inventory_quantity_columns", "macro_sql": "{% macro get_inventory_quantity_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_level_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0559404, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_quantity_columns": {"name": "get_graphql_inventory_quantity_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_quantity_columns.sql", "original_file_path": "macros/get_inventory_quantity_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_quantity_columns", "macro_sql": "{% macro get_graphql_inventory_quantity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_level_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.057344, "supported_languages": null}, "macro.shopify_source.get_order_shipping_tax_line_columns": {"name": "get_order_shipping_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_tax_line_columns.sql", "original_file_path": "macros/get_order_shipping_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_tax_line_columns", "macro_sql": "{% macro get_order_shipping_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_shipping_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0592172, "supported_languages": null}, "macro.shopify_source.get_graphql_order_shipping_tax_line_columns": {"name": "get_graphql_order_shipping_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_tax_line_columns.sql", "original_file_path": "macros/get_order_shipping_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_shipping_tax_line_columns", "macro_sql": "{% macro get_graphql_order_shipping_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_shipping_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0610373, "supported_languages": null}, "macro.shopify_source.get_media_image_columns": {"name": "get_media_image_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_image_columns.sql", "original_file_path": "macros/get_media_image_columns.sql", "unique_id": "macro.shopify_source.get_media_image_columns", "macro_sql": "{% macro get_media_image_columns() %}\n\n{% set columns = [\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0626755, "supported_languages": null}, "macro.shopify_source.get_graphql_media_image_columns": {"name": "get_graphql_media_image_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_image_columns.sql", "original_file_path": "macros/get_media_image_columns.sql", "unique_id": "macro.shopify_source.get_graphql_media_image_columns", "macro_sql": "{% macro get_graphql_media_image_columns() %}\n\n{% set columns = [\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0638845, "supported_languages": null}, "macro.shopify_source.get_discount_allocation_columns": {"name": "get_discount_allocation_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_allocation_columns.sql", "original_file_path": "macros/get_discount_allocation_columns.sql", "unique_id": "macro.shopify_source.get_discount_allocation_columns", "macro_sql": "{% macro get_discount_allocation_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_application_index\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0660112, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_allocation_columns": {"name": "get_graphql_discount_allocation_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_allocation_columns.sql", "original_file_path": "macros/get_discount_allocation_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_allocation_columns", "macro_sql": "{% macro get_graphql_discount_allocation_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocated_amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"allocated_amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"allocated_amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"allocated_amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_application_index\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.06755, "supported_languages": null}, "macro.shopify_source.shopify_union_data": {"name": "shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.shopify_union_data", "macro_sql": "{%- macro shopify_union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases', shopify_model_api='rest') -%}\n\n{{ adapter.dispatch('shopify_union_data', 'shopify_source') (\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 shopify_model_api\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__shopify_union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.0699553, "supported_languages": null}, "macro.shopify_source.default__shopify_union_data": {"name": "default__shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.default__shopify_union_data", "macro_sql": "{%- macro default__shopify_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 shopify_model_api\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + ('_gql_' if shopify_model_api == 'graphql' else '_') + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema ~ ('_graphql' if shopify_model_api == 'graphql' else ''), table_identifier).database,\n schema=source(default_schema ~ ('_graphql' if shopify_model_api == 'graphql' else ''), table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.079463, "supported_languages": null}, "macro.shopify_source.get_order_columns": {"name": "get_order_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "unique_id": "macro.shopify_source.get_order_columns", "macro_sql": "{% macro get_order_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tip_received\", \"datatype\": dbt.type_float()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cancel_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancelled_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"financial_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"browser_ip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_shipping_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"app_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"client_details_user_agent\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_status_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"confirmed\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.095487, "supported_languages": null}, "macro.shopify_source.get_graphql_order_columns": {"name": "get_graphql_order_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_columns", "macro_sql": "{% macro get_graphql_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"app_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancel_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancelled_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"client_ip\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"confirmed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_financial_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"presentment_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status_page_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_discounts_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discounts_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_shipping_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_shipping_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_shipping_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_shipping_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tip_received_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tip_received_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tip_received_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tip_received_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1084876, "supported_languages": null}, "macro.shopify_source.get_product_media_columns": {"name": "get_product_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_media_columns.sql", "original_file_path": "macros/get_product_media_columns.sql", "unique_id": "macro.shopify_source.get_product_media_columns", "macro_sql": "{% macro get_product_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1094654, "supported_languages": null}, "macro.shopify_source.get_graphql_product_media_columns": {"name": "get_graphql_product_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_media_columns.sql", "original_file_path": "macros/get_product_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_media_columns", "macro_sql": "{% macro get_graphql_product_media_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.110255, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_columns": {"name": "get_abandoned_checkout_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_columns.sql", "original_file_path": "macros/get_abandoned_checkout_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_columns", "macro_sql": "{% macro get_abandoned_checkout_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"abandoned_checkout_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.122685, "supported_languages": null}, "macro.shopify_source.get_graphql_abandoned_checkout_columns": {"name": "get_graphql_abandoned_checkout_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_columns.sql", "original_file_path": "macros/get_abandoned_checkout_columns.sql", "unique_id": "macro.shopify_source.get_graphql_abandoned_checkout_columns", "macro_sql": "{% macro get_graphql_abandoned_checkout_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"abandoned_checkout_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"completed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_discount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_duties_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_duties_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1328013, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_address_columns": {"name": "get_graphql_customer_address_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_address_columns.sql", "original_file_path": "macros/get_customer_address_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_address_columns", "macro_sql": "{% macro get_graphql_customer_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_default\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"validation_result_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"coordinates_validated\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1369557, "supported_languages": null}, "macro.shopify_source.get_order_line_refund_columns": {"name": "get_order_line_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_refund_columns.sql", "original_file_path": "macros/get_order_line_refund_columns.sql", "unique_id": "macro.shopify_source.get_order_line_refund_columns", "macro_sql": "{% macro get_order_line_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"restock_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_refund_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1397798, "supported_languages": null}, "macro.shopify_source.get_graphql_order_line_refund_columns": {"name": "get_graphql_order_line_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_refund_columns.sql", "original_file_path": "macros/get_order_line_refund_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_line_refund_columns", "macro_sql": "{% macro get_graphql_order_line_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"restock_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_refund_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1424944, "supported_languages": null}, "macro.shopify_source.get_order_url_tag_columns": {"name": "get_order_url_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_url_tag_columns.sql", "original_file_path": "macros/get_order_url_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_url_tag_columns", "macro_sql": "{% macro get_order_url_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1436582, "supported_languages": null}, "macro.shopify_source.get_inventory_level_columns": {"name": "get_inventory_level_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_level_columns.sql", "original_file_path": "macros/get_inventory_level_columns.sql", "unique_id": "macro.shopify_source.get_inventory_level_columns", "macro_sql": "{% macro get_inventory_level_columns() %}\n\n{# Columns below line 13 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"can_deactivate\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deactivation_alert\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n ,\n {\"name\": \"available\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1458814, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_level_columns": {"name": "get_graphql_inventory_level_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_level_columns.sql", "original_file_path": "macros/get_inventory_level_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_level_columns", "macro_sql": "{% macro get_graphql_inventory_level_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"can_deactivate\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deactivation_alert\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1474102, "supported_languages": null}, "macro.shopify_source.get_order_note_attribute_columns": {"name": "get_order_note_attribute_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_note_attribute_columns.sql", "original_file_path": "macros/get_order_note_attribute_columns.sql", "unique_id": "macro.shopify_source.get_order_note_attribute_columns", "macro_sql": "{% macro get_order_note_attribute_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.148663, "supported_languages": null}, "macro.shopify_source.get_graphql_order_note_attribute_columns": {"name": "get_graphql_order_note_attribute_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_note_attribute_columns.sql", "original_file_path": "macros/get_order_note_attribute_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_note_attribute_columns", "macro_sql": "{% macro get_graphql_order_note_attribute_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1496036, "supported_languages": null}, "macro.shopify_source.get_fulfillment_event_columns": {"name": "get_fulfillment_event_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_event_columns.sql", "original_file_path": "macros/get_fulfillment_event_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_event_columns", "macro_sql": "{% macro get_fulfillment_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"estimated_delivery_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"happened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shop_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.153563, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_event_columns": {"name": "get_graphql_fulfillment_event_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_event_columns.sql", "original_file_path": "macros/get_fulfillment_event_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_event_columns", "macro_sql": "{% macro get_graphql_fulfillment_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"estimated_delivery_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"happened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1563513, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_order_line_item_columns": {"name": "get_graphql_fulfillment_order_line_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_order_line_item_columns.sql", "original_file_path": "macros/get_fulfillment_order_line_item_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_order_line_item_columns", "macro_sql": "{% macro get_graphql_fulfillment_order_line_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"remaining_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1601179, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_visit_columns": {"name": "get_graphql_customer_visit_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_visit_columns.sql", "original_file_path": "macros/get_customer_visit_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_visit_columns", "macro_sql": "{% macro get_graphql_customer_visit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page_html\", \"datatype\": dbt.type_string()},\n {\"name\": \"occurred_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"referral_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"referral_info_html\", \"datatype\": dbt.type_string()},\n {\"name\": \"referrer_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_campaign\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_content\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_medium\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_term\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1635454, "supported_languages": null}, "macro.shopify_source.get_metafield_columns": {"name": "get_metafield_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_metafield_columns.sql", "original_file_path": "macros/get_metafield_columns.sql", "unique_id": "macro.shopify_source.get_metafield_columns", "macro_sql": "{% macro get_metafield_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"namespace\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"owner_resource\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.166271, "supported_languages": null}, "macro.shopify_source.get_graphql_metafield_columns": {"name": "get_graphql_metafield_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_metafield_columns.sql", "original_file_path": "macros/get_metafield_columns.sql", "unique_id": "macro.shopify_source.get_graphql_metafield_columns", "macro_sql": "{% macro get_graphql_metafield_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"namespace\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"owner_resource\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.168244, "supported_languages": null}, "macro.shopify_source.get_refund_columns": {"name": "get_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_refund_columns.sql", "original_file_path": "macros/get_refund_columns.sql", "unique_id": "macro.shopify_source.get_refund_columns", "macro_sql": "{% macro get_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"restock\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_duties_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1704795, "supported_languages": null}, "macro.shopify_source.get_graphql_refund_columns": {"name": "get_graphql_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_refund_columns.sql", "original_file_path": "macros/get_refund_columns.sql", "unique_id": "macro.shopify_source.get_graphql_refund_columns", "macro_sql": "{% macro get_graphql_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"return_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_refunded_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_refunded_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_refunded_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_refunded_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1726036, "supported_languages": null}, "macro.shopify_source.get_customer_tag_columns": {"name": "get_customer_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_tag_columns.sql", "original_file_path": "macros/get_customer_tag_columns.sql", "unique_id": "macro.shopify_source.get_customer_tag_columns", "macro_sql": "{% macro get_customer_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1738331, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_tag_columns": {"name": "get_graphql_customer_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_tag_columns.sql", "original_file_path": "macros/get_customer_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_tag_columns", "macro_sql": "{% macro get_graphql_customer_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1747706, "supported_languages": null}, "macro.shopify_source.get_discount_code_basic_columns": {"name": "get_discount_code_basic_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_basic_columns.sql", "original_file_path": "macros/get_discount_code_basic_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_basic_columns", "macro_sql": "{% macro get_discount_code_basic_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1790423, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_basic_columns": {"name": "get_graphql_discount_code_basic_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_basic_columns.sql", "original_file_path": "macros/get_discount_code_basic_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_basic_columns", "macro_sql": "{% macro get_graphql_discount_code_basic_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.182419, "supported_languages": null}, "macro.shopify_source.get_order_adjustment_columns": {"name": "get_order_adjustment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_adjustment_columns.sql", "original_file_path": "macros/get_order_adjustment_columns.sql", "unique_id": "macro.shopify_source.get_order_adjustment_columns", "macro_sql": "{% macro get_order_adjustment_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1848311, "supported_languages": null}, "macro.shopify_source.get_graphql_order_adjustment_columns": {"name": "get_graphql_order_adjustment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_adjustment_columns.sql", "original_file_path": "macros/get_order_adjustment_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_adjustment_columns", "macro_sql": "{% macro get_graphql_order_adjustment_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1869576, "supported_languages": null}, "macro.shopify_source.get_collection_product_columns": {"name": "get_collection_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_product_columns.sql", "original_file_path": "macros/get_collection_product_columns.sql", "unique_id": "macro.shopify_source.get_collection_product_columns", "macro_sql": "{% macro get_collection_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.188023, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_product_columns": {"name": "get_graphql_collection_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_product_columns.sql", "original_file_path": "macros/get_collection_product_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_product_columns", "macro_sql": "{% macro get_graphql_collection_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.188811, "supported_languages": null}, "macro.shopify_source.get_product_columns": {"name": "get_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_columns.sql", "original_file_path": "macros/get_product_columns.sql", "unique_id": "macro.shopify_source.get_product_columns", "macro_sql": "{% macro get_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.191708, "supported_languages": null}, "macro.shopify_source.get_graphql_product_columns": {"name": "get_graphql_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_columns.sql", "original_file_path": "macros/get_product_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_columns", "macro_sql": "{% macro get_graphql_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1939187, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_tracking_info_columns": {"name": "get_graphql_fulfillment_tracking_info_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_tracking_info_columns.sql", "original_file_path": "macros/get_fulfillment_tracking_info_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_tracking_info_columns", "macro_sql": "{% macro get_graphql_fulfillment_tracking_info_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"number\", \"datatype\": dbt.type_string()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1953568, "supported_languages": null}, "macro.shopify_source.get_discount_code_app_columns": {"name": "get_discount_code_app_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_app_columns.sql", "original_file_path": "macros/get_discount_code_app_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_app_columns", "macro_sql": "{% macro get_discount_code_app_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.1995764, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_app_columns": {"name": "get_graphql_discount_code_app_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_app_columns.sql", "original_file_path": "macros/get_discount_code_app_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_app_columns", "macro_sql": "{% macro get_graphql_discount_code_app_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2029278, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_rule_columns": {"name": "get_graphql_collection_rule_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_rule_columns.sql", "original_file_path": "macros/get_collection_rule_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_rule_columns", "macro_sql": "{% macro get_graphql_collection_rule_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"condition\", \"datatype\": dbt.type_string()},\n {\"name\": \"relation\", \"datatype\": dbt.type_string()},\n {\"name\": \"columns\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.204357, "supported_languages": null}, "macro.shopify_source.get_media_columns": {"name": "get_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_columns.sql", "original_file_path": "macros/get_media_columns.sql", "unique_id": "macro.shopify_source.get_media_columns", "macro_sql": "{% macro get_media_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}, \n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()}, \n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()} \n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.205598, "supported_languages": null}, "macro.shopify_source.get_graphql_media_columns": {"name": "get_graphql_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_columns.sql", "original_file_path": "macros/get_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_media_columns", "macro_sql": "{% macro get_graphql_media_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2066774, "supported_languages": null}, "macro.shopify_source.get_tax_line_columns": {"name": "get_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tax_line_columns.sql", "original_file_path": "macros/get_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_tax_line_columns", "macro_sql": "{% macro get_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2085028, "supported_languages": null}, "macro.shopify_source.get_graphql_tax_line_columns": {"name": "get_graphql_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tax_line_columns.sql", "original_file_path": "macros/get_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_tax_line_columns", "macro_sql": "{% macro get_graphql_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.210178, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_discount_code_columns": {"name": "get_abandoned_checkout_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_discount_code_columns.sql", "original_file_path": "macros/get_abandoned_checkout_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro_sql": "{% macro get_abandoned_checkout_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2122645, "supported_languages": null}, "macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns": {"name": "get_graphql_abandoned_checkout_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_discount_code_columns.sql", "original_file_path": "macros/get_abandoned_checkout_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns", "macro_sql": "{% macro get_graphql_abandoned_checkout_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2132165, "supported_languages": null}, "macro.shopify_source.get_discount_application_columns": {"name": "get_discount_application_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_application_columns.sql", "original_file_path": "macros/get_discount_application_columns.sql", "unique_id": "macro.shopify_source.get_discount_application_columns", "macro_sql": "{% macro get_discount_application_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocation_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"target_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value\", \"datatype\": dbt.type_float()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2159128, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_application_columns": {"name": "get_graphql_discount_application_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_application_columns.sql", "original_file_path": "macros/get_discount_application_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_application_columns", "macro_sql": "{% macro get_graphql_discount_application_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocation_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"target_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"value_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_percentage\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2179306, "supported_languages": null}, "macro.shopify_source.get_product_tag_columns": {"name": "get_product_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_tag_columns.sql", "original_file_path": "macros/get_product_tag_columns.sql", "unique_id": "macro.shopify_source.get_product_tag_columns", "macro_sql": "{% macro get_product_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2191694, "supported_languages": null}, "macro.shopify_source.get_graphql_product_tag_columns": {"name": "get_graphql_product_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_tag_columns.sql", "original_file_path": "macros/get_product_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_tag_columns", "macro_sql": "{% macro get_graphql_product_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2200887, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_shipping_line_columns": {"name": "get_abandoned_checkout_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "original_file_path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro_sql": "{% macro get_abandoned_checkout_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range_max\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_range_min\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2233567, "supported_languages": null}, "macro.shopify_source.fivetran_convert_timezone": {"name": "fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.fivetran_convert_timezone", "macro_sql": "{%- macro fivetran_convert_timezone(column, target_tz=None, source_tz=None) -%}\n{%- set source_tz = \"UTC\" if not source_tz else source_tz -%}\n{%- set target_tz = \"UTC\" if not target_tz else target_tz -%}\n{{ return(adapter.dispatch('fivetran_convert_timezone', 'shopify_source') (column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.224592, "supported_languages": null}, "macro.shopify_source.default__fivetran_convert_timezone": {"name": "default__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.default__fivetran_convert_timezone", "macro_sql": "{% macro default__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ dbt.type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2250066, "supported_languages": null}, "macro.shopify_source.bigquery__fivetran_convert_timezone": {"name": "bigquery__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.bigquery__fivetran_convert_timezone", "macro_sql": "{%- macro bigquery__fivetran_convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2253149, "supported_languages": null}, "macro.shopify_source.postgres__fivetran_convert_timezone": {"name": "postgres__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.postgres__fivetran_convert_timezone", "macro_sql": "{% macro postgres__fivetran_convert_timezone(column, target_tz, source_tz) -%}\ncast(\n cast({{ column }} as {{ dbt.type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt.type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2257955, "supported_languages": null}, "macro.shopify_source.redshift__fivetran_convert_timezone": {"name": "redshift__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.redshift__fivetran_convert_timezone", "macro_sql": "{%- macro redshift__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.default__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2261653, "supported_languages": null}, "macro.shopify_source.duckdb__fivetran_convert_timezone": {"name": "duckdb__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.duckdb__fivetran_convert_timezone", "macro_sql": "{% macro duckdb__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.postgres__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2265296, "supported_languages": null}, "macro.shopify_source.spark__fivetran_convert_timezone": {"name": "spark__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.spark__fivetran_convert_timezone", "macro_sql": "{%- macro spark__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nfrom_utc_timestamp(\n to_utc_timestamp({{ column }}, '{{ source_tz }}'),\n '{{ target_tz }}'\n )\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2268722, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.227403, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.227692, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2287686, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2291946, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }} as tt\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2295325, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2299385, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2302814, "supported_languages": null}, "macro.dbt_utils.databricks__deduplicate": {"name": "databricks__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.databricks__deduplicate", "macro_sql": "\n{%- macro databricks__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2306294, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2310874, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2317498, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2328975, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2336795, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2350857, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, quote_identifiers)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2365355, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n {%- set current_col_name = adapter.quote(col.column) if quote_identifiers else col.column -%}\n select\n {%- for exclude_col in exclude %}\n {{ adapter.quote(exclude_col) if quote_identifiers else exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ adapter.quote(field_name) if quote_identifiers else field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(current_col_name) }}\n {% else %}\n {{ current_col_name }}\n {% endif %}\n as {{ cast_to }}) as {{ adapter.quote(value_name) if quote_identifiers else value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2400982, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.241043, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.242209, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2426775, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2433817, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.244038, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.244311, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2445967, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2448733, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2455235, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2460005, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2465937, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2474985, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2480335, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2485144, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.24988, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2525938, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2534235, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2543337, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2547562, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.255467, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2560205, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2575088, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2582362, "supported_languages": null}, "macro.dbt_utils.redshift__get_tables_by_pattern_sql": {"name": "redshift__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.redshift__get_tables_by_pattern_sql", "macro_sql": "{% macro redshift__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% set sql %}\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from \"{{ database }}\".\"information_schema\".\"tables\"\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n union all\n select distinct\n schemaname as {{ adapter.quote('table_schema') }},\n tablename as {{ adapter.quote('table_name') }},\n 'external' as {{ adapter.quote('table_type') }}\n from svv_external_tables\n where redshift_database_name = '{{ database }}'\n and schemaname ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n {% endset %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2595487, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2610939, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2620862, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2627358, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2638083, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2646017, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2660222, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2666562, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2677145, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2690332, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.271939, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2727892, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2735786, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2739613, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2749708, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2755258, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2761986, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2781532, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.284826, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2857933, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2874336, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2882903, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.288843, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2899365, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.291501, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2922206, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2934604, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2949805, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.296612, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2975087, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2991445, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.2997417, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3003545, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.300995, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3023727, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.302967, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3038855, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3047817, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3057063, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3064759, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3073812, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3081264, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3087964, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3097067, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n {% if group_by_columns|length() == 0 %}\n where {{ column_name }} is not null\n limit 1\n {% endif %}\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3113656, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3124359, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3143897, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3152397, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as {{ dbt.type_numeric() }}) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3169906, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3177924, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3185413, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3196309, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3217213, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns, exclude_columns, precision)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.323907, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n\n{%- if compare_columns and exclude_columns -%}\n {{ exceptions.raise_compiler_error(\"Both a compare and an ignore list were provided to the `equality` macro. Only one is allowed\") }}\n{%- endif -%}\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\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{# Ensure there are no extra columns in the compare_model vs model #}\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- do dbt_utils._is_ephemeral(compare_model, 'test_equality') -%}\n\n {%- set model_columns = adapter.get_columns_in_relation(model) -%}\n {%- set compare_model_columns = adapter.get_columns_in_relation(compare_model) -%}\n\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- set include_model_columns = [] %}\n {%- for column in model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n {%- for column in compare_model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_model_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns_set = set(include_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(include_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- else -%}\n {%- set compare_columns_set = set(model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(compare_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- endif -%}\n\n {% if compare_columns_set != compare_model_columns_set %}\n {{ exceptions.raise_compiler_error(compare_model ~\" has less columns than \" ~ model ~ \", please ensure they have the same columns or use the `compare_columns` or `exclude_columns` arguments to subset them.\") }}\n {% endif %}\n\n\n{% endif %}\n\n{%- if not precision -%}\n {%- if not compare_columns -%}\n {# \n You cannot get the columns in an ephemeral model (due to not existing in the information schema),\n so if the user does not provide an explicit list of columns we must error in the case it is ephemeral\n #}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model)-%}\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- for column in compare_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns = include_columns | map(attribute='quoted') %}\n {%- else -%} {# Compare columns provided #}\n {%- set compare_columns = compare_columns | map(attribute='quoted') %}\n {%- endif -%}\n {%- endif -%}\n\n {% set compare_cols_csv = compare_columns | join(', ') %}\n\n{% else %} {# Precision required #}\n {#-\n If rounding is required, we need to get the types, so it cannot be ephemeral even if they provide column names\n -#}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set columns = adapter.get_columns_in_relation(model) -%}\n\n {% set columns_list = [] %}\n {%- for col in columns -%}\n {%- if (\n (col.name|lower in compare_columns|map('lower') or not compare_columns) and\n (col.name|lower not in exclude_columns|map('lower') or not exclude_columns)\n ) -%}\n {# Databricks double type is not picked up by any number type checks in dbt #}\n {%- if col.is_float() or col.is_numeric() or col.data_type == 'double' -%}\n {# Cast is required due to postgres not having round for a double precision number #}\n {%- do columns_list.append('round(cast(' ~ col.quoted ~ ' as ' ~ dbt.type_numeric() ~ '),' ~ precision ~ ') as ' ~ col.quoted) -%}\n {%- else -%} {# Non-numeric type #}\n {%- do columns_list.append(col.quoted) -%}\n {%- endif -%}\n {% endif %}\n {%- endfor -%}\n\n {% set compare_cols_csv = columns_list | join(', ') %}\n\n{% endif %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_numeric", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3314874, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3322592, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3328602, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3338642, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3354738, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.336295, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3375463, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3390532, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.341988, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3427236, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3434262, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3444521, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3462143, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3471184, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3477898, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3482833, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.348621, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3490956, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.349427, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3509488, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3514807, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.351875, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{% if not string %}\n{{ return('') }}\n{% endif %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3533113, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3541617, "supported_languages": null}, "macro.shopify.shopify_is_databricks_sql_warehouse": {"name": "shopify_is_databricks_sql_warehouse", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_is_databricks_sql_warehouse.sql", "original_file_path": "macros/shopify_is_databricks_sql_warehouse.sql", "unique_id": "macro.shopify.shopify_is_databricks_sql_warehouse", "macro_sql": "{% macro shopify_is_databricks_sql_warehouse() %}\n {% if target.type in ('databricks') %}\n {% set re = modules.re %}\n {% set path_match = target.http_path %}\n {% set regex_pattern = \"sql/.+/warehouses/\" %}\n {% set match_result = re.search(regex_pattern, path_match) %}\n {% if match_result %}\n {{ return(True) }}\n {% else %}\n {{ return(False) }}\n {% endif %}\n {% else %}\n {{ return(False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3555279, "supported_languages": null}, "macro.shopify.shopify_partition_by_cols": {"name": "shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.shopify_partition_by_cols", "macro_sql": "{% macro shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n\n{{ adapter.dispatch('shopify_partition_by_cols', 'shopify') (base_col, source_relation) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_partition_by_cols"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.356165, "supported_languages": null}, "macro.shopify.default__shopify_partition_by_cols": {"name": "default__shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.default__shopify_partition_by_cols", "macro_sql": "{% macro default__shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n {%- if var('shopify_union_schemas', false) or var('shopify_union_databases', false) -%}\n {{ base_col }}, {{ source_relation }}\n {%- else %}\n {{ base_col }}\n {%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3567634, "supported_languages": null}, "macro.shopify.shopify_lookback": {"name": "shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.shopify_lookback", "macro_sql": "{% macro shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n{{ adapter.dispatch('shopify_lookback', 'shopify') (from_date, datepart, interval, safety_date='2010-01-01') }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_lookback"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3575053, "supported_languages": null}, "macro.shopify.default__shopify_lookback": {"name": "default__shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.default__shopify_lookback", "macro_sql": "{% macro default__shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n {% set sql_statement %}\n select coalesce({{ from_date }}, {{ \"'\" ~ safety_date ~ \"'\" }})\n from {{ this }}\n {%- endset -%}\n\n {%- set result = dbt_utils.get_single_value(sql_statement) %}\n\n {{ dbt.dateadd(datepart=datepart, interval=-interval, from_date_or_timestamp=\"cast('\" ~ result ~ \"' as date)\") }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_single_value", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.358373, "supported_languages": null}, "macro.shopify.get_metafields": {"name": "get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.get_metafields", "macro_sql": "{% macro get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n {{ return(adapter.dispatch('get_metafields', 'shopify')(source_object, reference_values, id_column, lookup_object, key_field, key_value, reference_field)) }} \n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__get_metafields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3597267, "supported_languages": null}, "macro.shopify.default__get_metafields": {"name": "default__get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.default__get_metafields", "macro_sql": "{% macro default__get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n\n{# Manually quote and join reference values #}\n{% set quoted_values = [] %}\n{% for value in reference_values %}\n {% do quoted_values.append(\"'\" ~ value | lower | trim ~ \"'\") %}\n{% endfor %}\n{% set reference_values_clause = quoted_values | join(\", \") %}\n\n{# Get the pivot fields dynamically based on the reference values #}\n{% set pivot_fields = dbt_utils.get_column_values(\n table=ref(lookup_object),\n column=key_field,\n where=\"lower(\" ~ reference_field ~ \") in (\" ~ reference_values_clause ~ \")\"\n) %}\n\n{% set source_columns = adapter.get_columns_in_relation(ref(source_object)) %}\n{% set source_column_count = source_columns | length %}\n\nwith source_table as (\n select *\n from {{ ref(source_object) }}\n)\n\n{% if pivot_fields is not none %},\nlookup_object as (\n select \n *,\n {{ dbt_utils.pivot(\n column=key_field, \n values=pivot_fields, \n agg='', \n then_value=key_value, \n else_value=\"null\",\n quote_identifiers=false\n ) \n }}\n from {{ ref(lookup_object) }}\n where is_most_recent_record\n),\n\nfinal as (\n select\n {% for column in source_columns %}\n source_table.{{ column.name }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% for fields in pivot_fields %}\n , max(lookup_object.{{ dbt_utils.slugify(fields) }}) as metafield_{{ dbt_utils.slugify(fields) }}\n {% endfor %}\n from source_table\n left join lookup_object \n on lookup_object.{{ reference_field }}_id = source_table.{{ id_column }}\n and lower(lookup_object.{{ reference_field }}) in ({{ reference_values_clause }})\n {{ dbt_utils.group_by(source_column_count) }}\n)\n\nselect *\nfrom final\n{% else %}\n\nselect *\nfrom source_table\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_column_values", "macro.dbt_utils.pivot", "macro.dbt_utils.slugify", "macro.dbt_utils.group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3627884, "supported_languages": null}, "macro.spark_utils.get_tables": {"name": "get_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_tables", "macro_sql": "{% macro get_tables(table_regex_pattern='.*') %}\n\n {% set tables = [] %}\n {% for database in spark__list_schemas('not_used') %}\n {% for table in spark__list_relations_without_caching(database[0]) %}\n {% set db_tablename = database[0] ~ \".\" ~ table[1] %}\n {% set is_match = modules.re.match(table_regex_pattern, db_tablename) %}\n {% if is_match %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('type', 'TYPE', 'Type'))|first %}\n {% if table_type[1]|lower != 'view' %}\n {{ tables.append(db_tablename) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n {{ return(tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3661778, "supported_languages": null}, "macro.spark_utils.get_delta_tables": {"name": "get_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_delta_tables", "macro_sql": "{% macro get_delta_tables(table_regex_pattern='.*') %}\n\n {% set delta_tables = [] %}\n {% for db_tablename in get_tables(table_regex_pattern) %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('provider', 'PROVIDER', 'Provider'))|first %}\n {% if table_type[1]|lower == 'delta' %}\n {{ delta_tables.append(db_tablename) }}\n {% endif %}\n {% endfor %}\n {{ return(delta_tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3675094, "supported_languages": null}, "macro.spark_utils.get_statistic_columns": {"name": "get_statistic_columns", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_statistic_columns", "macro_sql": "{% macro get_statistic_columns(table) %}\n\n {% call statement('input_columns', fetch_result=True) %}\n SHOW COLUMNS IN {{ table }}\n {% endcall %}\n {% set input_columns = load_result('input_columns').table %}\n\n {% set output_columns = [] %}\n {% for column in input_columns %}\n {% call statement('column_information', fetch_result=True) %}\n DESCRIBE TABLE {{ table }} `{{ column[0] }}`\n {% endcall %}\n {% if not load_result('column_information').table[1][1].startswith('struct') and not load_result('column_information').table[1][1].startswith('array') %}\n {{ output_columns.append('`' ~ column[0] ~ '`') }}\n {% endif %}\n {% endfor %}\n {{ return(output_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3692281, "supported_languages": null}, "macro.spark_utils.spark_optimize_delta_tables": {"name": "spark_optimize_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_optimize_delta_tables", "macro_sql": "{% macro spark_optimize_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Optimizing \" ~ table) }}\n {% do run_query(\"optimize \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3706505, "supported_languages": null}, "macro.spark_utils.spark_vacuum_delta_tables": {"name": "spark_vacuum_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "macro_sql": "{% macro spark_vacuum_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Vacuuming \" ~ table) }}\n {% do run_query(\"vacuum \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3720436, "supported_languages": null}, "macro.spark_utils.spark_analyze_tables": {"name": "spark_analyze_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_analyze_tables", "macro_sql": "{% macro spark_analyze_tables(table_regex_pattern='.*') %}\n\n {% for table in get_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set columns = get_statistic_columns(table) | join(',') %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Analyzing \" ~ table) }}\n {% if columns != '' %}\n {% do run_query(\"analyze table \" ~ table ~ \" compute statistics for columns \" ~ columns) %}\n {% endif %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.spark_utils.get_statistic_columns", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3737624, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_pattern": {"name": "spark__get_relations_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "macro_sql": "{% macro spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n show table extended in {{ schema_pattern }} like '{{ table_pattern }}'\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=None,\n schema=row[0],\n identifier=row[1],\n type=('view' if 'Type: VIEW' in row[3] else 'table')\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3760264, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_prefix": {"name": "spark__get_relations_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "macro_sql": "{% macro spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {% set table_pattern = table_pattern ~ '*' %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3766801, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_pattern": {"name": "spark__get_tables_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "macro_sql": "{% macro spark__get_tables_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3772082, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_prefix": {"name": "spark__get_tables_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "macro_sql": "{% macro spark__get_tables_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3777385, "supported_languages": null}, "macro.spark_utils.spark__type_numeric": {"name": "spark__type_numeric", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "unique_id": "macro.spark_utils.spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3779702, "supported_languages": null}, "macro.spark_utils.spark__datediff": {"name": "spark__datediff", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "unique_id": "macro.spark_utils.spark__datediff", "macro_sql": "{% macro spark__datediff(first_date, second_date, datepart) %}\n\n {%- if datepart in ['day', 'week', 'month', 'quarter', 'year'] -%}\n \n {# make sure the dates are real, otherwise raise an error asap #}\n {% set first_date = spark_utils.assert_not_null('date', first_date) %}\n {% set second_date = spark_utils.assert_not_null('date', second_date) %}\n \n {%- endif -%}\n \n {%- if datepart == 'day' -%}\n \n datediff({{second_date}}, {{first_date}})\n \n {%- elif datepart == 'week' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(datediff({{second_date}}, {{first_date}})/7)\n else ceil(datediff({{second_date}}, {{first_date}})/7)\n end\n \n -- did we cross a week boundary (Sunday)?\n + case\n when {{first_date}} < {{second_date}} and dayofweek({{second_date}}) < dayofweek({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofweek({{second_date}}) > dayofweek({{first_date}}) then -1\n else 0 end\n\n {%- elif datepart == 'month' -%}\n\n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}})))\n else ceil(months_between(date({{second_date}}), date({{first_date}})))\n end\n \n -- did we cross a month boundary?\n + case\n when {{first_date}} < {{second_date}} and dayofmonth({{second_date}}) < dayofmonth({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofmonth({{second_date}}) > dayofmonth({{first_date}}) then -1\n else 0 end\n \n {%- elif datepart == 'quarter' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}}))/3)\n else ceil(months_between(date({{second_date}}), date({{first_date}}))/3)\n end\n \n -- did we cross a quarter boundary?\n + case\n when {{first_date}} < {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n < (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then 1\n when {{first_date}} > {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n > (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then -1\n else 0 end\n\n {%- elif datepart == 'year' -%}\n \n year({{second_date}}) - year({{first_date}})\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set divisor -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n case when {{first_date}} < {{second_date}}\n then ceil((\n {# make sure the timestamps are real, otherwise raise an error asap #}\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n else floor((\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n end\n \n {% if datepart == 'millisecond' %}\n + cast(date_format({{second_date}}, 'SSS') as int)\n - cast(date_format({{first_date}}, 'SSS') as int)\n {% endif %}\n \n {% if datepart == 'microsecond' %} \n {% set capture_str = '[0-9]{4}-[0-9]{2}-[0-9]{2}.[0-9]{2}:[0-9]{2}:[0-9]{2}.([0-9]{6})' %}\n -- Spark doesn't really support microseconds, so this is a massive hack!\n -- It will only work if the timestamp-string is of the format\n -- 'yyyy-MM-dd-HH mm.ss.SSSSSS'\n + cast(regexp_extract({{second_date}}, '{{capture_str}}', 1) as int)\n - cast(regexp_extract({{first_date}}, '{{capture_str}}', 1) as int) \n {% endif %}\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro datediff not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3849025, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp": {"name": "spark__current_timestamp", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3852053, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp_in_utc": {"name": "spark__current_timestamp_in_utc", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3853626, "supported_languages": null}, "macro.spark_utils.spark__split_part": {"name": "spark__split_part", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "unique_id": "macro.spark_utils.spark__split_part", "macro_sql": "{% macro spark__split_part(string_text, delimiter_text, part_number) %}\n\n {% set delimiter_expr %}\n \n -- escape if starts with a special character\n case when regexp_extract({{ delimiter_text }}, '([^A-Za-z0-9])(.*)', 1) != '_'\n then concat('\\\\', {{ delimiter_text }})\n else {{ delimiter_text }} end\n \n {% endset %}\n\n {% set split_part_expr %}\n \n split(\n {{ string_text }},\n {{ delimiter_expr }}\n )[({{ part_number - 1 }})]\n \n {% endset %}\n \n {{ return(split_part_expr) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3862965, "supported_languages": null}, "macro.spark_utils.spark__concat": {"name": "spark__concat", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "unique_id": "macro.spark_utils.spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3866558, "supported_languages": null}, "macro.spark_utils.spark__dateadd": {"name": "spark__dateadd", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "unique_id": "macro.spark_utils.spark__dateadd", "macro_sql": "{% macro spark__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {%- set clock_component -%}\n {# make sure the dates + timestamps are real, otherwise raise an error asap #}\n to_unix_timestamp({{ spark_utils.assert_not_null('to_timestamp', from_date_or_timestamp) }})\n - to_unix_timestamp({{ spark_utils.assert_not_null('date', from_date_or_timestamp) }})\n {%- endset -%}\n\n {%- if datepart in ['day', 'week'] -%}\n \n {%- set multiplier = 7 if datepart == 'week' else 1 -%}\n\n to_timestamp(\n to_unix_timestamp(\n date_add(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ['month', 'quarter', 'year'] -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'month' -%} 1\n {%- elif datepart == 'quarter' -%} 3\n {%- elif datepart == 'year' -%} 12\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n to_unix_timestamp(\n add_months(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n {{ spark_utils.assert_not_null('to_unix_timestamp', from_date_or_timestamp) }}\n + cast({{interval}} * {{multiplier}} as int)\n )\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro dateadd not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.390274, "supported_languages": null}, "macro.spark_utils.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "unique_id": "macro.spark_utils.spark__convert_timezone", "macro_sql": "{% macro spark__convert_timezone(in_tz, out_tz, in_timestamp) %}\n from_utc_timestamp(to_utc_timestamp({{in_timestamp}}, {{in_tz}}), {{out_tz}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3907218, "supported_languages": null}, "macro.spark_utils.assert_not_null": {"name": "assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.3912833, "supported_languages": null}, "macro.spark_utils.default__assert_not_null": {"name": "default__assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.default__assert_not_null", "macro_sql": "{% macro default__assert_not_null(function, arg) %}\n\n coalesce({{function}}({{arg}}), nvl2({{function}}({{arg}}), assert_true({{function}}({{arg}}) is not null), null))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1755574964.391697, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.shopify_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_synced", "block_contents": "The time when a record was last updated by Fivetran."}, "doc.shopify_source._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_deleted", "block_contents": "Boolean representing whether the record was soft-deleted in Shopify."}, "doc.shopify_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source.source_relation", "block_contents": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {"test.shopify_integration_tests.consistency_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_orders.sql", "original_file_path": "tests/consistency/consistency_orders.sql", "unique_id": "test.shopify_integration_tests.consistency_orders", "fqn": ["shopify_integration_tests", "consistency", "consistency_orders"], "alias": "consistency_orders", "checksum": {"name": "sha256", "checksum": "0ab8c3335aa456106375ec248d3f309d35588f35d3654b13270a44eadb27faf6"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.4012988, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__orders\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__orders\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced"], "alias": "consistency_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "bafda328d8951e5c1315715ae2af2b6db591c008cfb2e3e87102e102a927127d"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.4333527, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.row_count_gql_inventory_levels": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "row_count_gql_inventory_levels", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/row_count_gql_inventory_levels.sql", "original_file_path": "tests/consistency/row_count_gql_inventory_levels.sql", "unique_id": "test.shopify_integration_tests.row_count_gql_inventory_levels", "fqn": ["shopify_integration_tests", "consistency", "row_count_gql_inventory_levels"], "alias": "row_count_gql_inventory_levels", "checksum": {"name": "sha256", "checksum": "b7a8534a0a818313148fae1e8cc1ee5e3f70ed548a5af90537d9d8c40269b4db"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.4392, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify_gql__inventory_levels\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify_gql__inventory_levels\n), \n\nprod_count as (\n select \n count(*) as total_prod_rows\n from prod\n),\n\ndev_count as (\n select \n count(*) as total_dev_rows\n from dev\n),\n\nfinal as (\n select\n total_prod_rows,\n total_dev_rows\n from prod_count\n cross join dev_count\n)\n\nselect *\nfrom final\nwhere total_prod_rows != total_dev_rows", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_emails": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_emails", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_emails.sql", "original_file_path": "tests/consistency/consistency_customer_emails.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_emails", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_emails"], "alias": "consistency_customer_emails", "checksum": {"name": "sha256", "checksum": "f65921899974fb386942217898b874b933b185b03ba96b7b4393a21c57749faf"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.4455185, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customer_emails\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customer_emails\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_email_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_email_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_email_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_email_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_email_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_email_cohorts"], "alias": "consistency_customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "9c68a37c8316395c4e9454f955bf9a88a8ec0f0a1b8e8b92f0324c30118b0a38"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.451142, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_email_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_email_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_discounts.sql", "original_file_path": "tests/consistency/consistency_discounts.sql", "unique_id": "test.shopify_integration_tests.consistency_discounts", "fqn": ["shopify_integration_tests", "consistency", "consistency_discounts"], "alias": "consistency_discounts", "checksum": {"name": "sha256", "checksum": "c4c0089722a912fc6859d3f23b928425253c88ad16955dc1ec30dd47328d24b8"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.4566655, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__discounts\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__discounts\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_order_lines": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_order_lines", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_order_lines.sql", "original_file_path": "tests/consistency/consistency_order_lines.sql", "unique_id": "test.shopify_integration_tests.consistency_order_lines", "fqn": ["shopify_integration_tests", "consistency", "consistency_order_lines"], "alias": "consistency_order_lines", "checksum": {"name": "sha256", "checksum": "0a6491b31602ef2fecc145804b8b8f386801aba35815ea3dc70e4bc0aaf5c3d9"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.4622445, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__order_lines\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__order_lines\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_cohorts"], "alias": "consistency_customer_cohorts", "checksum": {"name": "sha256", "checksum": "389c12079464cf20fe1f6888a7e40c8bb469148349a20931a8ba997e2f0023fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.4677982, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced_count": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced_count", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced_count.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced_count.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced_count", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced_count"], "alias": "consistency_line_item_enhanced_count", "checksum": {"name": "sha256", "checksum": "5966fa4f5d6392d55c6776983375aba21f63ec6d2bce09807769e2f807973074"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.4741921, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure the rows counts are the same between versions\nwith prod as (\n select count(*) as prod_rows\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select count(*) as dev_rows\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n)\n\n-- test will return values and fail if the row counts don't match\nselect *\nfrom prod\njoin dev\n on prod.prod_rows != dev.dev_rows", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_daily_shop": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_daily_shop", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_daily_shop.sql", "original_file_path": "tests/consistency/consistency_daily_shop.sql", "unique_id": "test.shopify_integration_tests.consistency_daily_shop", "fqn": ["shopify_integration_tests", "consistency", "consistency_daily_shop"], "alias": "consistency_daily_shop", "checksum": {"name": "sha256", "checksum": "c6b82febd4b38d78edcc9e3b3f8dba293d1754d7223d5c16828b5f48f01742f5"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.4799547, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_prod.shopify__daily_shop\n group by 1,2,3\n),\n\ndev as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_dev.shopify__daily_shop\n group by 1,2,3\n),\n\nfinal as (\n select \n prod.date_day as prod_date_day,\n dev.date_day as dev_date_day,\n prod.shop_id as prod_shop_id,\n dev.shop_id as dev_shop_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.count_orders as prod_count_orders,\n dev.count_orders as dev_count_orders,\n prod.count_customers as prod_count_customers,\n dev.count_customers as dev_count_customers,\n prod.order_adjusted_total as prod_order_adjusted_total,\n dev.order_adjusted_total as dev_order_adjusted_total,\n prod.count_abandoned_checkouts as prod_count_abandoned_checkouts,\n dev.count_abandoned_checkouts as dev_count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , prod.count_fulfillment_attempted_delivery as prod_count_fulfillment_attempted_delivery\n , dev.count_fulfillment_attempted_delivery as dev_count_fulfillment_attempted_delivery\n , prod.count_fulfillment_confirmed as prod_count_fulfillment_confirmed\n , dev.count_fulfillment_confirmed as dev_count_fulfillment_confirmed\n {% endif %}\n\n from prod\n full outer join dev \n on dev.date_day = prod.date_day\n and dev.shop_id = prod.shop_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_date_day != dev_date_day or\n prod_shop_id != dev_shop_id or\n prod_source_relation != dev_source_relation or\n abs(prod_count_orders - dev_count_orders) > .001 or\n abs(prod_count_customers - dev_count_customers) > .001 or\n abs(prod_order_adjusted_total - dev_order_adjusted_total) > .001 or\n abs(prod_count_abandoned_checkouts - dev_count_abandoned_checkouts) > .001\n \n {% if var('shopify_using_fulfillment_event', false) %}\n or abs(prod_count_fulfillment_attempted_delivery - dev_count_fulfillment_attempted_delivery) > .001\n or abs(prod_count_fulfillment_confirmed - dev_count_fulfillment_confirmed) > .001\n {% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_transactions": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_transactions", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_transactions.sql", "original_file_path": "tests/consistency/consistency_transactions.sql", "unique_id": "test.shopify_integration_tests.consistency_transactions", "fqn": ["shopify_integration_tests", "consistency", "consistency_transactions"], "alias": "consistency_transactions", "checksum": {"name": "sha256", "checksum": "4a35a742a91f9610e5f2f43d798aa32b4a7a03316db67fa95804ae894a6bddbd"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.4871829, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__transactions\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__transactions\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_inventory_levels": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_inventory_levels", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_inventory_levels.sql", "original_file_path": "tests/consistency/consistency_inventory_levels.sql", "unique_id": "test.shopify_integration_tests.consistency_inventory_levels", "fqn": ["shopify_integration_tests", "consistency", "consistency_inventory_levels"], "alias": "consistency_inventory_levels", "checksum": {"name": "sha256", "checksum": "5c4bf90e9896cd512f8251e7b55deaf76564f860f24c9332b2379854562145fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.492734, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__inventory_levels\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customers.sql", "original_file_path": "tests/consistency/consistency_customers.sql", "unique_id": "test.shopify_integration_tests.consistency_customers", "fqn": ["shopify_integration_tests", "consistency", "consistency_customers"], "alias": "consistency_customers", "checksum": {"name": "sha256", "checksum": "b585f5c5f4001fd7febda99275ce6e83ccc77d28d5113615025a883a10b3fe75"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.499016, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customers\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customers\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.row_count_rest_inventory_levels": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "row_count_rest_inventory_levels", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/row_count_rest_inventory_levels.sql", "original_file_path": "tests/consistency/row_count_rest_inventory_levels.sql", "unique_id": "test.shopify_integration_tests.row_count_rest_inventory_levels", "fqn": ["shopify_integration_tests", "consistency", "row_count_rest_inventory_levels"], "alias": "row_count_rest_inventory_levels", "checksum": {"name": "sha256", "checksum": "398f49d78b7b08f70b0a7b984dea95175e4b4080fa60cf2107baac8ffa69ad93"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.5045588, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__inventory_levels\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\nprod_count as (\n select \n count(*) as total_prod_rows\n from prod\n),\n\ndev_count as (\n select \n count(*) as total_dev_rows\n from dev\n),\n\nfinal as (\n select\n total_prod_rows,\n total_dev_rows\n from prod_count\n cross join dev_count\n)\n\nselect *\nfrom final\nwhere total_prod_rows != total_dev_rows", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "horizontal_integrity_daily_shop_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/horizontal_integrity_daily_shop_orders.sql", "original_file_path": "tests/integrity/horizontal_integrity_daily_shop_orders.sql", "unique_id": "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders", "fqn": ["shopify_integration_tests", "integrity", "horizontal_integrity_daily_shop_orders"], "alias": "horizontal_integrity_daily_shop_orders", "checksum": {"name": "sha256", "checksum": "addd76b5760975069f87aac715bd3ade9a52af4049104f635902fd87b8b41b1a"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.510079, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norder_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from orders\n where created_timestamp > '2020-01-01' and created_timestamp < '2024-06-10'\n group by 1,2\n),\n\ndaily_shop as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\ndaily_shop_metrics as (\n\n select \n source_relation,\n date_day,\n sum(count_orders) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from daily_shop\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2\n),\n\nfinal as (\n\n select\n daily_shop_metrics.source_relation,\n coalesce(daily_shop_metrics.count_orders, 0) as daily_shop_count_orders,\n coalesce(order_metrics.count_orders, 0) as order_count_orders,\n coalesce(daily_shop_metrics.order_adjusted_total, 0) as daily_shop_order_adjusted_total,\n coalesce(order_metrics.order_adjusted_total, 0) as order_order_adjusted_total\n\n from daily_shop_metrics\n full outer join order_metrics\n on daily_shop_metrics.source_relation = order_metrics.source_relation\n and daily_shop_metrics.date_day = order_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \n abs(daily_shop_count_orders - order_count_orders) > 0 or\n abs(daily_shop_order_adjusted_total - order_order_adjusted_total) > .1", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.integrity_inventory_level": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_inventory_level", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_inventory_level.sql", "original_file_path": "tests/integrity/integrity_inventory_level.sql", "unique_id": "test.shopify_integration_tests.integrity_inventory_level", "fqn": ["shopify_integration_tests", "integrity", "integrity_inventory_level"], "alias": "integrity_inventory_level", "checksum": {"name": "sha256", "checksum": "2f633fb0d91b0bebe0152b97a141df7481c08e0df5557ee4962f8d0ebe7bd7ee"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.5188618, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n count(*) as source_count\n from {{ target.schema }}_shopify_dev.stg_shopify__inventory_level as il\n join {{ target.schema }}_shopify_dev.stg_shopify__inventory_item as ii\n on il.inventory_item_id = ii.inventory_item_id \n and il.source_relation = ii.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__location as lo\n on il.location_id = lo.location_id \n and il.source_relation = lo.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__product_variant as pv\n on il.inventory_item_id = pv.inventory_item_id\n and il.source_relation = pv.source_relation\n),\n\ntransform as (\n select\n count(*) as transform_count\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\ncompare as (\n select *\n from source\n cross join transform\n)\n\nselect *\nfrom compare\nwhere source_count != transform_count", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_daily_shop_fulfillment", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_daily_shop_fulfillment.sql", "original_file_path": "tests/integrity/vertical_integrity_daily_shop_fulfillment.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_daily_shop_fulfillment"], "alias": "vertical_integrity_daily_shop_fulfillment", "checksum": {"name": "sha256", "checksum": "ba5dfc5af503b2012b977cd000daf131bf61c08241aad583df03926212225016"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.5257277, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n-- test will only run if shopify_using_fulfillment_event is set to True\n\nwith source as (\n\n select *\n from {{ ref('stg_shopify__fulfillment_event') }}\n),\n\nsource_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day,\n shop_id,\n count(distinct case when status = 'delayed' then fulfillment_id end) as count_fulfillment_delayed,\n count(distinct case when status = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit,\n count(distinct case when status = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed,\n count(distinct case when status = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n\n from source\n where happened_at > '2020-01-01' and happened_at < '2024-06-10'\n group by 1,2,3\n),\n\nmodel as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\nmodel_metrics as (\n\n select \n source_relation,\n date_day,\n shop_id,\n sum(count_fulfillment_delayed) as count_fulfillment_delayed,\n sum(count_fulfillment_in_transit) as count_fulfillment_in_transit,\n sum(count_fulfillment_confirmed) as count_fulfillment_confirmed,\n sum(count_fulfillment_delivered) as count_fulfillment_delivered\n\n from model\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2,3\n),\n\nfinal as (\n\n select\n model_metrics.source_relation,\n model_metrics.shop_id as model_shop_id,\n source_metrics.shop_id as source_shop_id,\n model_metrics.date_day as model_date_day,\n source_metrics.date_day as source_date_day,\n coalesce(model_metrics.count_fulfillment_delayed, 0) as model_count_fulfillment_delayed,\n coalesce(source_metrics.count_fulfillment_delayed, 0) as source_count_fulfillment_delayed,\n coalesce(model_metrics.count_fulfillment_in_transit, 0) as model_count_fulfillment_in_transit,\n coalesce(source_metrics.count_fulfillment_in_transit, 0) as source_count_fulfillment_in_transit,\n coalesce(model_metrics.count_fulfillment_confirmed, 0) as model_count_fulfillment_confirmed,\n coalesce(source_metrics.count_fulfillment_confirmed, 0) as source_count_fulfillment_confirmed,\n coalesce(model_metrics.count_fulfillment_delivered, 0) as model_count_fulfillment_delivered,\n coalesce(source_metrics.count_fulfillment_delivered, 0) as source_count_fulfillment_delivered\n\n from model_metrics\n full outer join source_metrics\n on model_metrics.source_relation = source_metrics.source_relation\n and model_metrics.shop_id = source_metrics.shop_id\n and model_metrics.date_day = source_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \nmodel_count_fulfillment_delayed != source_count_fulfillment_delayed or\nmodel_count_fulfillment_in_transit != source_count_fulfillment_in_transit or\nmodel_count_fulfillment_confirmed != source_count_fulfillment_confirmed or\nmodel_count_fulfillment_delivered != source_count_fulfillment_delivered", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_discounts.sql", "original_file_path": "tests/integrity/vertical_integrity_discounts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_discounts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_discounts"], "alias": "vertical_integrity_discounts", "checksum": {"name": "sha256", "checksum": "591dfe08097b58fd9433339a17d0388c891a6d3eef65c042f13c227737e9ff65"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.5321662, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith discount_redeem_code as (\n\n select \n code,\n discount_code_id,\n source_relation\n from {{ ref('stg_shopify__discount_redeem_code') }} \n group by 1, 2, 3\n),\n\ndiscount_codes_unioned as (\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_basic') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_bxgy') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_free_shipping') }} \n group by 1, 2\n\n {% if var('shopify_using_discount_code_app', False) %}\n\n union all\n \n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_app') }} \n group by 1, 2\n {% endif %}\n),\n\ndiscount_codes_source as (\n \n select \n discount_redeem_code.code, \n discount_redeem_code.source_relation,\n count(*) as code_count_source\n from discount_redeem_code\n left join discount_codes_unioned\n on discount_redeem_code.discount_code_id = discount_codes_unioned.discount_code_id\n and discount_redeem_code.source_relation = discount_codes_unioned.source_relation\n group by 1, 2\n),\n\n\ndiscount_codes_end as (\n\n select \n code, \n source_relation,\n count(*) as code_count_end\n from {{ ref('shopify__discounts') }}\n group by 1, 2\n),\n\n\nfinal as (\n\n select \n discount_codes_source.code,\n discount_codes_source.source_relation,\n coalesce(discount_codes_source.code_count_source, 0) as code_count_source,\n coalesce(discount_codes_end.code_count_end, 0) as code_count_end\n from discount_codes_source\n full outer join discount_codes_end\n on discount_codes_source.code = discount_codes_end.code\n and discount_codes_source.source_relation = discount_codes_end.source_relation\n)\n\nselect *\nfrom final\nwhere code_count_source != code_count_end", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}, {"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_line_item_enhanced.sql", "original_file_path": "tests/integrity/vertical_integrity_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_line_item_enhanced", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_line_item_enhanced"], "alias": "vertical_integrity_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "efc2b1e0ac6bc26d2581903d83d1d56be172c14cfff1d8d6d7fa6b6eb160c7f7"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.5393336, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure there is no fanout between the staging order_line_table and the line_item_enhanced model.\nwith stg_order_line as (\n select\n 1 as join_key,\n count(*) as order_line_count,\n count(distinct order_id) as order_count\n from {{ ref('stg_shopify__order_line') }}\n),\n\nline_item_enhanced as (\n select\n 1 as join_key,\n count(*) as line_item_enhanced_count\n from {{ ref('shopify__line_item_enhanced') }}\n),\n\n-- test will return values and fail if the row counts don't match\n\nfinal as (\n select \n stg_order_line.join_key,\n stg_order_line.order_line_count + stg_order_line.order_count as total_line_and_order_count,\n line_item_enhanced.line_item_enhanced_count\n from stg_order_line\n join line_item_enhanced\n on stg_order_line.join_key = line_item_enhanced.join_key\n) \n\nselect *\nfrom final\nwhere total_line_and_order_count != line_item_enhanced_count", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "shopify__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_customer_cohorts.sql", "original_file_path": "tests/integrity/vertical_integrity_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_customer_cohorts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_customer_cohorts"], "alias": "vertical_integrity_customer_cohorts", "checksum": {"name": "sha256", "checksum": "19553b1bce28d0577a330dc5544f21b9326b91d673b50fdfdc0ca5980b17f7ff"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.5454402, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n), \n\ncustomers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), \n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), \n\ncustomer_cohort_source as (\n\n select \n customers.source_relation,\n count(*) as source_rows \n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n group by 1\n),\n\ncustomer_cohort_end as (\n\n select \n source_relation,\n count(*) as end_rows\n from {{ ref('shopify__customer_cohorts') }}\n group by 1\n),\n\nfinal as (\n select\n customer_cohort_source.source_relation,\n source_rows,\n end_rows\n from customer_cohort_source\n join customer_cohort_end\n on customer_cohort_source.source_relation = customer_cohort_end.source_relation\n where customer_cohort_source.source_rows != customer_cohort_end.end_rows\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.integrity_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_customers.sql", "original_file_path": "tests/integrity/integrity_customers.sql", "unique_id": "test.shopify_integration_tests.integrity_customers", "fqn": ["shopify_integration_tests", "integrity", "integrity_customers"], "alias": "integrity_customers", "checksum": {"name": "sha256", "checksum": "690ac16cf903e5fd89a08680246fd495bf3fbdc94a622f0b9b1ce6f6988d8a74"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1755574965.5529206, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n customer_id,\n count(*) as source_customer_tag_count\n from {{ target.schema }}_shopify_dev.stg_shopify__customer_tag\n group by 1\n),\n\ntransform as (\n select\n customer_id,\n array_length(split(customer_tags, ',')) as transform_customer_tag_count -- Only BigQuery compatible for the time being\n from {{ target.schema }}_shopify_dev.shopify__customers\n where customer_tags is not null\n group by customer_id, customer_tags\n), \n\ncompare as (\n select\n source.customer_id,\n source.source_customer_tag_count,\n transform.transform_customer_tag_count\n from source\n full outer join transform\n on source.customer_id = transform.customer_id\n where source.source_customer_tag_count != transform.transform_customer_tag_count\n )\n\nselect *\nfrom compare", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "model.shopify_source.stg_shopify_gql__collection_rule": [{"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_rule", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection_rule.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection_rule.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_rule", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection_rule"], "alias": "stg_shopify_gql__collection_rule", "checksum": {"name": "sha256", "checksum": "01b76dc43dec6771d2c2ec7d82f1b18c80fa72974103274014b2147c07abaf8f"}, "config": {"enabled": false, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Defines the rules used to automatically include products in a smart collection. Each rule specifies a product attribute, a comparison relation, and a condition value to match against. These rules are evaluated dynamically to determine collection membership without manual curation.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "{{ doc('_fivetran_synced') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID of the smart collection to which this rule applies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of the rule within the collection's rule set. Rules are evaluated in order and may be grouped depending on collection logic.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "condition": {"name": "condition", "description": "The value to compare against the attribute. For example, \u201cHats\u201d if the rule is targeting products with a title containing \u201cHats\u201d. The interpretation depends on the associated `relation` and `columns` values.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "relation": {"name": "relation", "description": "The operator used to evaluate the rule. Common values include: - `equals` - `contains` - `not_equals` - `starts_with` - `ends_with` - `is_set` - `is_not_set` - `greater_than` - `less_than` - `not_contains`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "columns": {"name": "columns", "description": "The attribute being evaluated by the rule. Example values include: - `title` - `vendor` - `tag` - `variant_price` - `product_category_id` - `variant_compare_at_price` - `variant_metafield_definition` - `product_metafield_definition` - `variant_weight` - `type` - `is_price_reduced`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "{{ doc('source_relation') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": false}, "created_at": 1755574971.0666358, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_rule\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_collection_rule', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_rule_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_shopify_gql__collection_rule_tmp')),\n staging_columns=get_graphql_collection_rule_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n index,\n columns,\n condition,\n relation,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['collection_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_rule_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_rule_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}], "model.shopify_source.stg_shopify_gql__collection_rule_tmp": [{"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_rule_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_rule_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_rule_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_rule_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_rule_tmp"], "alias": "stg_shopify_gql__collection_rule_tmp", "checksum": {"name": "sha256", "checksum": "aea52cb2c08d241449697e4e67354b058c5b993645b80afe28dff54b1189108d"}, "config": {"enabled": false, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": false}, "created_at": 1755574968.038707, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_rule_tmp\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_collection_rule', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_rule', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_rule_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection_rule"], ["shopify_graphql", "collection_rule"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}], "source.shopify_source.shopify_graphql.collection_rule": [{"database": "postgres", "schema": "public", "name": "collection_rule", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection_rule", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection_rule"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_rule_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Defines the rules used to automatically include products in a smart collection. Each rule specifies a product attribute, a comparison relation, and a condition value to match against. These rules are evaluated dynamically to determine collection membership without manual curation.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "{{ doc('_fivetran_synced') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID of the smart collection to which this rule applies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of the rule within the collection's rule set. Rules are evaluated in order and may be grouped depending on collection logic.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "condition": {"name": "condition", "description": "The value to compare against the attribute. For example, \u201cHats\u201d if the rule is targeting products with a title containing \u201cHats\u201d. The interpretation depends on the associated `relation` and `columns` values.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "relation": {"name": "relation", "description": "The operator used to evaluate the rule. Common values include: - `equals` - `contains` - `not_equals` - `starts_with` - `ends_with` - `is_set` - `is_not_set` - `greater_than` - `less_than` - `not_contains`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "columns": {"name": "columns", "description": "The attribute being evaluated by the rule. Example values include: - `title` - `vendor` - `tag` - `variant_price` - `product_category_id` - `variant_compare_at_price` - `variant_metafield_definition` - `product_metafield_definition` - `variant_weight` - `type` - `is_price_reduced`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": false, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": false, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_rule_data\"", "created_at": 1755574972.3787591, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}]}, "parent_map": {"seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_customer_visit_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_gql_media_image_data": [], "seed.shopify_integration_tests.shopify_gql_transaction_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_gql_product_tag_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_location_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_gql_product_data": [], "seed.shopify_integration_tests.shopify_gql_customer_address_data": [], "seed.shopify_integration_tests.shopify_gql_customer_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_gql_metafield_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_refund_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product": [], "seed.shopify_integration_tests.shopify_gql_collection_rule_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_shop_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_collection_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_gql_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_gql_order_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_media_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_level_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_media_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"], "model.shopify_source.stg_shopify_gql__product_variant": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"], "model.shopify_source.stg_shopify_gql__media": ["model.shopify_source.stg_shopify_gql__media_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_event": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"], "model.shopify_source.stg_shopify_gql__discount_redeem_code": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"], "model.shopify_source.stg_shopify_gql__location": ["model.shopify_source.stg_shopify_gql__location_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"], "model.shopify_source.stg_shopify_gql__refund": ["model.shopify_source.stg_shopify_gql__refund_tmp"], "model.shopify_source.stg_shopify_gql__discount_application": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"], "model.shopify_source.stg_shopify_gql__customer_address": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"], "model.shopify_source.stg_shopify_gql__inventory_item": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"], "model.shopify_source.stg_shopify_gql__media_image": ["model.shopify_source.stg_shopify_gql__media_image_tmp"], "model.shopify_source.stg_shopify_gql__order_shipping_line": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"], "model.shopify_source.stg_shopify_gql__inventory_level": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"], "model.shopify_source.stg_shopify_gql__order_line": ["model.shopify_source.stg_shopify_gql__order_line_tmp"], "model.shopify_source.stg_shopify_gql__order": ["model.shopify_source.stg_shopify_gql__order_tmp"], "model.shopify_source.stg_shopify_gql__customer": ["model.shopify_source.stg_shopify_gql__customer_tmp"], "model.shopify_source.stg_shopify_gql__transaction": ["model.shopify_source.stg_shopify_gql__transaction_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"], "model.shopify_source.stg_shopify_gql__discount_allocation": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"], "model.shopify_source.stg_shopify_gql__order_tag": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"], "model.shopify_source.stg_shopify_gql__order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"], "model.shopify_source.stg_shopify_gql__product_media": ["model.shopify_source.stg_shopify_gql__product_media_tmp"], "model.shopify_source.stg_shopify_gql__order_discount_code": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"], "model.shopify_source.stg_shopify_gql__inventory_quantity": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"], "model.shopify_source.stg_shopify_gql__product_tag": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"], "model.shopify_source.stg_shopify_gql__product": ["model.shopify_source.stg_shopify_gql__product_tmp"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"], "model.shopify_source.stg_shopify_gql__customer_tag": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"], "model.shopify_source.stg_shopify_gql__collection_product": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"], "model.shopify_source.stg_shopify_gql__customer_visit": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"], "model.shopify_source.stg_shopify_gql__collection": ["model.shopify_source.stg_shopify_gql__collection_tmp"], "model.shopify_source.stg_shopify_gql__order_note_attribute": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"], "model.shopify_source.stg_shopify_gql__tender_transaction": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"], "model.shopify_source.stg_shopify_gql__shop": ["model.shopify_source.stg_shopify_gql__shop_tmp"], "model.shopify_source.stg_shopify_gql__metafield": ["model.shopify_source.stg_shopify_gql__metafield_tmp"], "model.shopify_source.stg_shopify_gql__product_variant_media": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_app": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_basic": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"], "model.shopify_source.stg_shopify_gql__abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"], "model.shopify_source.stg_shopify_gql__tax_line": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"], "model.shopify_source.stg_shopify_gql__order_line_refund": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"], "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": ["source.shopify_source.shopify_graphql.order_line_refund"], "model.shopify_source.stg_shopify_gql__order_tmp": ["source.shopify_source.shopify_graphql.order"], "model.shopify_source.stg_shopify_gql__discount_application_tmp": ["source.shopify_source.shopify_graphql.discount_application"], "model.shopify_source.stg_shopify_gql__fulfillment_tmp": ["source.shopify_source.shopify_graphql.fulfillment"], "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": ["source.shopify_source.shopify_graphql.fulfillment_event"], "model.shopify_source.stg_shopify_gql__product_tag_tmp": ["source.shopify_source.shopify_graphql.product_tag"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": ["source.shopify_source.shopify_graphql.fulfillment_tracking_info"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": ["source.shopify_source.shopify_graphql.order_shipping_tax_line"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": ["source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": ["source.shopify_source.shopify_graphql.product_variant_media"], "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": ["source.shopify_source.shopify_graphql.order_discount_code"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": ["source.shopify_source.shopify_graphql.abandoned_checkout"], "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": ["source.shopify_source.shopify_graphql.discount_code_basic"], "model.shopify_source.stg_shopify_gql__inventory_item_tmp": ["source.shopify_source.shopify_graphql.inventory_item"], "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": ["source.shopify_source.shopify_graphql.discount_allocation"], "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": ["source.shopify_source.shopify_graphql.order_note_attribute"], "model.shopify_source.stg_shopify_gql__tax_line_tmp": ["source.shopify_source.shopify_graphql.tax_line"], "model.shopify_source.stg_shopify_gql__media_tmp": ["source.shopify_source.shopify_graphql.media"], "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": ["source.shopify_source.shopify_graphql.tender_transaction"], "model.shopify_source.stg_shopify_gql__product_media_tmp": ["source.shopify_source.shopify_graphql.product_media"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": ["source.shopify_source.shopify_graphql.fulfillment_order_line_item"], "model.shopify_source.stg_shopify_gql__product_variant_tmp": ["source.shopify_source.shopify_graphql.product_variant"], "model.shopify_source.stg_shopify_gql__transaction_tmp": ["source.shopify_source.shopify_graphql.transaction"], "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": ["source.shopify_source.shopify_graphql.order_adjustment"], "model.shopify_source.stg_shopify_gql__customer_tmp": ["source.shopify_source.shopify_graphql.customer"], "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": ["source.shopify_source.shopify_graphql.discount_redeem_code"], "model.shopify_source.stg_shopify_gql__location_tmp": ["source.shopify_source.shopify_graphql.location"], "model.shopify_source.stg_shopify_gql__customer_visit_tmp": ["source.shopify_source.shopify_graphql.customer_visit"], "model.shopify_source.stg_shopify_gql__media_image_tmp": ["source.shopify_source.shopify_graphql.media_image"], "model.shopify_source.stg_shopify_gql__collection_product_tmp": ["source.shopify_source.shopify_graphql.collection_product"], "model.shopify_source.stg_shopify_gql__shop_tmp": ["source.shopify_source.shopify_graphql.shop"], "model.shopify_source.stg_shopify_gql__product_tmp": ["source.shopify_source.shopify_graphql.product"], "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": ["source.shopify_source.shopify_graphql.discount_code_app"], "model.shopify_source.stg_shopify_gql__order_line_tmp": ["source.shopify_source.shopify_graphql.order_line"], "model.shopify_source.stg_shopify_gql__metafield_tmp": ["source.shopify_source.shopify_graphql.metafield"], "model.shopify_source.stg_shopify_gql__order_tag_tmp": ["source.shopify_source.shopify_graphql.order_tag"], "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": ["source.shopify_source.shopify_graphql.inventory_quantity"], "model.shopify_source.stg_shopify_gql__customer_tag_tmp": ["source.shopify_source.shopify_graphql.customer_tag"], "model.shopify_source.stg_shopify_gql__collection_tmp": ["source.shopify_source.shopify_graphql.collection"], "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": ["source.shopify_source.shopify_graphql.order_shipping_line"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": ["source.shopify_source.shopify_graphql.discount_code_free_shipping"], "model.shopify_source.stg_shopify_gql__refund_tmp": ["source.shopify_source.shopify_graphql.refund"], "model.shopify_source.stg_shopify_gql__inventory_level_tmp": ["source.shopify_source.shopify_graphql.inventory_level"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": ["source.shopify_source.shopify_graphql.discount_code_bxgy"], "model.shopify_source.stg_shopify_gql__customer_address_tmp": ["source.shopify_source.shopify_graphql.customer_address"], "model.shopify_source.stg_shopify__discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "model.shopify_source.stg_shopify__shop": ["model.shopify_source.stg_shopify__shop_tmp"], "model.shopify_source.stg_shopify__order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "model.shopify_source.stg_shopify__refund": ["model.shopify_source.stg_shopify__refund_tmp"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "model.shopify_source.stg_shopify__media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "model.shopify_source.stg_shopify__product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "model.shopify_source.stg_shopify__order": ["model.shopify_source.stg_shopify__order_tmp"], "model.shopify_source.stg_shopify__product": ["model.shopify_source.stg_shopify__product_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "model.shopify_source.stg_shopify__location": ["model.shopify_source.stg_shopify__location_tmp"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "model.shopify_source.stg_shopify__order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "model.shopify_source.stg_shopify__collection": ["model.shopify_source.stg_shopify__collection_tmp"], "model.shopify_source.stg_shopify__transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "model.shopify_source.stg_shopify__media": ["model.shopify_source.stg_shopify__media_tmp"], "model.shopify_source.stg_shopify__metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "model.shopify_source.stg_shopify__customer": ["model.shopify_source.stg_shopify__customer_tmp"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["source.shopify_source.shopify.fulfillment_event"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["source.shopify_source.shopify.tender_transaction"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["source.shopify_source.shopify.discount_code_app"], "model.shopify_source.stg_shopify__transaction_tmp": ["source.shopify_source.shopify.transaction"], "model.shopify_source.stg_shopify__collection_tmp": ["source.shopify_source.shopify.collection"], "model.shopify_source.stg_shopify__media_image_tmp": ["source.shopify_source.shopify.media_image"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["source.shopify_source.shopify.order_shipping_tax_line"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["source.shopify_source.shopify.inventory_item"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["source.shopify_source.shopify.order_adjustment"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["source.shopify_source.shopify.inventory_quantity"], "model.shopify_source.stg_shopify__customer_tmp": ["source.shopify_source.shopify.customer"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["source.shopify_source.shopify.order_discount_code"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["source.shopify_source.shopify.fulfillment"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["source.shopify_source.shopify.order_line_refund"], "model.shopify_source.stg_shopify__product_tmp": ["source.shopify_source.shopify.product"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["source.shopify_source.shopify.abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["source.shopify_source.shopify.customer_tag"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["source.shopify_source.shopify.discount_code_free_shipping"], "model.shopify_source.stg_shopify__product_tag_tmp": ["source.shopify_source.shopify.product_tag"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["source.shopify_source.shopify.discount_redeem_code"], "model.shopify_source.stg_shopify__location_tmp": ["source.shopify_source.shopify.location"], "model.shopify_source.stg_shopify__order_tmp": ["source.shopify_source.shopify.order"], "model.shopify_source.stg_shopify__metafield_tmp": ["source.shopify_source.shopify.metafield"], "model.shopify_source.stg_shopify__collection_product_tmp": ["source.shopify_source.shopify.collection_product"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["source.shopify_source.shopify.discount_allocation"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["source.shopify_source.shopify.order_note_attribute"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["source.shopify_source.shopify.discount_code_basic"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["source.shopify_source.shopify.order_url_tag"], "model.shopify_source.stg_shopify__refund_tmp": ["source.shopify_source.shopify.refund"], "model.shopify_source.stg_shopify__tax_line_tmp": ["source.shopify_source.shopify.tax_line"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["source.shopify_source.shopify.abandoned_checkout"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["source.shopify_source.shopify.discount_code_bxgy"], "model.shopify_source.stg_shopify__media_tmp": ["source.shopify_source.shopify.media"], "model.shopify_source.stg_shopify__product_media_tmp": ["source.shopify_source.shopify.product_media"], "model.shopify_source.stg_shopify__product_variant_tmp": ["source.shopify_source.shopify.product_variant"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["source.shopify_source.shopify.inventory_level"], "model.shopify_source.stg_shopify__discount_application_tmp": ["source.shopify_source.shopify.discount_application"], "model.shopify_source.stg_shopify__order_tag_tmp": ["source.shopify_source.shopify.order_tag"], "model.shopify_source.stg_shopify__shop_tmp": ["source.shopify_source.shopify.shop"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["source.shopify_source.shopify.product_variant_media"], "model.shopify_source.stg_shopify__order_line_tmp": ["source.shopify_source.shopify.order_line"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["source.shopify_source.shopify.order_shipping_line"], "model.shopify.shopify_gql__discounts": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.int_shopify_gql__discounts_order_aggregates"], "model.shopify.shopify_gql__customer_emails": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.int_shopify_gql__emails_order_aggregates"], "model.shopify.shopify_gql__customer_email_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customer_emails", "model.shopify.shopify_gql__orders"], "model.shopify.shopify_gql__products": ["model.shopify.int_shopify_gql__product_order_line_aggregates", "model.shopify.int_shopify_gql__products_with_aggregates"], "model.shopify.shopify_gql__transactions": ["model.shopify.int_shopify_gql__order", "model.shopify_source.stg_shopify_gql__tender_transaction", "model.shopify_source.stg_shopify_gql__transaction"], "model.shopify.shopify_gql__order_lines": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.int_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify.shopify_gql__customers": ["model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify.shopify_gql__orders": ["model.shopify.int_shopify_gql__order", "model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__order_discount_code", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__order_tag"], "model.shopify.shopify_gql__inventory_levels": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__inventory_level", "model.shopify_source.stg_shopify_gql__inventory_quantity", "model.shopify_source.stg_shopify_gql__location", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify.shopify_gql__customer_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customers", "model.shopify.shopify_gql__orders"], "model.shopify.shopify_gql__daily_shop": ["model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__daily_fulfillment", "model.shopify.int_shopify_gql__daily_orders", "model.shopify.shopify__calendar", "model.shopify_source.stg_shopify_gql__shop"], "model.shopify.int_shopify_gql__order_fulfillment_aggregates": ["model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "model.shopify.int_shopify_gql__daily_orders": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__product_order_line_aggregates": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__customer_email_rollup": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify.int_shopify_gql__emails_order_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__customers_order_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__orders_order_line_aggregates": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify.int_shopify_gql__products_with_aggregates": ["model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__collection_product", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__product_media", "model.shopify_source.stg_shopify_gql__product_tag", "model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify.int_shopify_gql__orders_order_refunds": ["model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__refund"], "model.shopify.int_shopify_gql__inventory_level_aggregates": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__order_shipping_aggregates": ["model.shopify_source.stg_shopify_gql__order_shipping_line", "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "model.shopify.int_shopify_gql__daily_fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify_gql__discount_application"], "model.shopify.int_shopify_gql__discounts_order_aggregates": ["model.shopify.int_shopify_gql__order_discount_code", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__daily_abandoned_checkouts": ["model.shopify.int_shopify_gql__abandoned_checkout"], "model.shopify.int_shopify_gql__discount_code_enriched": ["model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__discount_code_app", "model.shopify_source.stg_shopify_gql__discount_code_basic", "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "model.shopify_source.stg_shopify_gql__discount_redeem_code"], "model.shopify.int_shopify_gql__order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment", "model.shopify_source.stg_shopify_gql__refund"], "model.shopify.int_shopify_gql__collection": ["model.shopify_source.stg_shopify_gql__collection"], "model.shopify.int_shopify_gql__order_discount_code": ["model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__order_discount_code"], "model.shopify.int_shopify_gql__product_variant": ["model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify.int_shopify_gql__abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer"], "model.shopify.int_shopify_gql__order_line": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify.int_shopify_gql__customer": ["model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_address"], "model.shopify.int_shopify_gql__order": ["model.shopify_source.stg_shopify_gql__customer_visit", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.shopify_gql__line_item_enhanced": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__transaction"], "model.shopify.shopify_gql__product_metafields": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__product"], "model.shopify.shopify_gql__shop_metafields": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__shop"], "model.shopify.shopify_gql__order_metafields": ["model.shopify.int_shopify_gql__order", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__product_variant_metafields": ["model.shopify.int_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__customer_metafields": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__collection_metafields": ["model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify__inventory_levels": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media"], "model.shopify.shopify__discounts": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.int_shopify__discounts__order_aggregates"], "model.shopify.shopify__customers": ["model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.shopify__products": ["model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.int_shopify__products_with_aggregates"], "model.shopify.shopify__customer_emails": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.shopify__transactions": ["model.shopify_source.stg_shopify__tender_transaction", "model.shopify_source.stg_shopify__transaction"], "model.shopify.shopify__orders": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag"], "model.shopify.shopify__order_lines": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.shopify__daily_shop": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment", "model.shopify.int_shopify__daily_orders", "model.shopify.shopify__calendar", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__customer_email_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"], "model.shopify.shopify__customer_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_media", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_app", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify.shopify__orders__order_refunds": ["model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__refund"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__orders", "model.shopify_source.stg_shopify__order_discount_code"], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__order"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify.shopify__line_item_enhanced": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction"], "model.shopify.shopify__collection_metafields": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__metafield"], "model.shopify.shopify__shop_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__product_variant_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.shopify__order_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"], "model.shopify.shopify__product_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"], "model.shopify.shopify__customer_metafields": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__metafield"], "model.shopify.shopify__calendar": [], "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": ["model.shopify_source.stg_shopify_gql__customer"], "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": ["model.shopify_source.stg_shopify_gql__customer"], "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": ["model.shopify_source.stg_shopify_gql__order"], "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": ["model.shopify_source.stg_shopify_gql__order"], "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": ["model.shopify_source.stg_shopify_gql__order_line"], "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": ["model.shopify_source.stg_shopify_gql__order_line"], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": ["model.shopify_source.stg_shopify_gql__product"], "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": ["model.shopify_source.stg_shopify_gql__product"], "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": ["model.shopify_source.stg_shopify_gql__product_variant"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": ["model.shopify_source.stg_shopify_gql__product_variant"], "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": ["model.shopify_source.stg_shopify_gql__refund"], "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": ["model.shopify_source.stg_shopify_gql__refund"], "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": ["model.shopify_source.stg_shopify_gql__tax_line"], "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": ["model.shopify_source.stg_shopify_gql__tax_line"], "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": ["model.shopify_source.stg_shopify_gql__transaction"], "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": ["model.shopify_source.stg_shopify_gql__transaction"], "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": ["model.shopify_source.stg_shopify_gql__customer_visit"], "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": ["model.shopify_source.stg_shopify_gql__customer_visit"], "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": [], "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": [], "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": ["model.shopify_source.stg_shopify_gql__customer_address"], "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": ["model.shopify_source.stg_shopify_gql__customer_address"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": ["model.shopify_source.stg_shopify__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": ["model.shopify_source.stg_shopify__collection"], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": ["model.shopify_source.stg_shopify__inventory_item"], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": ["model.shopify_source.stg_shopify__location"], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": ["model.shopify_source.stg_shopify__media"], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": ["model.shopify_source.stg_shopify__media_image"], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": ["model.shopify_source.stg_shopify__metafield"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": ["model.shopify_source.stg_shopify__order_shipping_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": ["model.shopify_source.stg_shopify__shop"], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": ["model.shopify_source.stg_shopify__tender_transaction"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": ["model.shopify_source.stg_shopify__discount_code_app"], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": ["model.shopify_source.stg_shopify__discount_code_basic"], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": ["model.shopify_source.stg_shopify__discount_redeem_code"], "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": ["model.shopify.shopify_gql__customer_cohorts"], "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": ["model.shopify.shopify_gql__customer_cohorts"], "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": ["model.shopify.shopify_gql__customer_email_cohorts"], "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": ["model.shopify.shopify_gql__customer_email_cohorts"], "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": ["model.shopify.shopify_gql__orders"], "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": ["model.shopify.shopify_gql__orders"], "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": ["model.shopify.shopify_gql__products"], "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": ["model.shopify.shopify_gql__products"], "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": ["model.shopify.shopify_gql__order_lines"], "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": ["model.shopify.shopify_gql__order_lines"], "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": ["model.shopify.shopify_gql__transactions"], "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": ["model.shopify.shopify_gql__transactions"], "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": ["model.shopify.shopify_gql__daily_shop"], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": ["model.shopify.shopify__customer_cohorts"], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": ["model.shopify.shopify__customer_cohorts"], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": ["model.shopify.shopify__orders"], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": ["model.shopify.shopify__orders"], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": ["model.shopify.shopify__order_lines"], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": ["model.shopify.shopify__order_lines"], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": ["model.shopify.shopify__inventory_levels"], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": ["model.shopify.shopify__inventory_levels"], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": ["model.shopify.shopify__daily_shop"], "source.shopify_source.shopify_graphql.order": [], "source.shopify_source.shopify_graphql.customer": [], "source.shopify_source.shopify_graphql.order_line": [], "source.shopify_source.shopify_graphql.order_line_refund": [], "source.shopify_source.shopify_graphql.product": [], "source.shopify_source.shopify_graphql.product_variant": [], "source.shopify_source.shopify_graphql.transaction": [], "source.shopify_source.shopify_graphql.refund": [], "source.shopify_source.shopify_graphql.order_adjustment": [], "source.shopify_source.shopify_graphql.abandoned_checkout": [], "source.shopify_source.shopify_graphql.collection_product": [], "source.shopify_source.shopify_graphql.collection": [], "source.shopify_source.shopify_graphql.customer_tag": [], "source.shopify_source.shopify_graphql.fulfillment": [], "source.shopify_source.shopify_graphql.inventory_item": [], "source.shopify_source.shopify_graphql.inventory_level": [], "source.shopify_source.shopify_graphql.inventory_quantity": [], "source.shopify_source.shopify_graphql.location": [], "source.shopify_source.shopify_graphql.metafield": [], "source.shopify_source.shopify_graphql.order_note_attribute": [], "source.shopify_source.shopify_graphql.order_shipping_line": [], "source.shopify_source.shopify_graphql.order_shipping_tax_line": [], "source.shopify_source.shopify_graphql.order_tag": [], "source.shopify_source.shopify_graphql.media": [], "source.shopify_source.shopify_graphql.media_image": [], "source.shopify_source.shopify_graphql.product_media": [], "source.shopify_source.shopify_graphql.product_variant_media": [], "source.shopify_source.shopify_graphql.product_tag": [], "source.shopify_source.shopify_graphql.shop": [], "source.shopify_source.shopify_graphql.tender_transaction": [], "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": [], "source.shopify_source.shopify_graphql.order_discount_code": [], "source.shopify_source.shopify_graphql.fulfillment_event": [], "source.shopify_source.shopify_graphql.tax_line": [], "source.shopify_source.shopify_graphql.discount_allocation": [], "source.shopify_source.shopify_graphql.discount_application": [], "source.shopify_source.shopify_graphql.discount_code_app": [], "source.shopify_source.shopify_graphql.discount_code_basic": [], "source.shopify_source.shopify_graphql.discount_code_bxgy": [], "source.shopify_source.shopify_graphql.discount_code_free_shipping": [], "source.shopify_source.shopify_graphql.discount_redeem_code": [], "source.shopify_source.shopify_graphql.fulfillment_tracking_info": [], "source.shopify_source.shopify_graphql.customer_visit": [], "source.shopify_source.shopify_graphql.fulfillment_order_line_item": [], "source.shopify_source.shopify_graphql.customer_address": [], "source.shopify_source.shopify.order": [], "source.shopify_source.shopify.customer": [], "source.shopify_source.shopify.order_line": [], "source.shopify_source.shopify.order_line_refund": [], "source.shopify_source.shopify.product": [], "source.shopify_source.shopify.product_variant": [], "source.shopify_source.shopify.transaction": [], "source.shopify_source.shopify.refund": [], "source.shopify_source.shopify.order_adjustment": [], "source.shopify_source.shopify.abandoned_checkout": [], "source.shopify_source.shopify.collection_product": [], "source.shopify_source.shopify.collection": [], "source.shopify_source.shopify.customer_tag": [], "source.shopify_source.shopify.fulfillment": [], "source.shopify_source.shopify.inventory_item": [], "source.shopify_source.shopify.inventory_level": [], "source.shopify_source.shopify.inventory_quantity": [], "source.shopify_source.shopify.location": [], "source.shopify_source.shopify.metafield": [], "source.shopify_source.shopify.order_note_attribute": [], "source.shopify_source.shopify.order_shipping_line": [], "source.shopify_source.shopify.order_shipping_tax_line": [], "source.shopify_source.shopify.order_tag": [], "source.shopify_source.shopify.order_url_tag": [], "source.shopify_source.shopify.media": [], "source.shopify_source.shopify.media_image": [], "source.shopify_source.shopify.product_media": [], "source.shopify_source.shopify.product_variant_media": [], "source.shopify_source.shopify.product_tag": [], "source.shopify_source.shopify.shop": [], "source.shopify_source.shopify.tender_transaction": [], "source.shopify_source.shopify.abandoned_checkout_discount_code": [], "source.shopify_source.shopify.order_discount_code": [], "source.shopify_source.shopify.abandoned_checkout_shipping_line": [], "source.shopify_source.shopify.fulfillment_event": [], "source.shopify_source.shopify.tax_line": [], "source.shopify_source.shopify.discount_allocation": [], "source.shopify_source.shopify.discount_application": [], "source.shopify_source.shopify.discount_code_app": [], "source.shopify_source.shopify.discount_code_basic": [], "source.shopify_source.shopify.discount_code_bxgy": [], "source.shopify_source.shopify.discount_code_free_shipping": [], "source.shopify_source.shopify.discount_redeem_code": []}, "child_map": {"seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_customer_visit_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_gql_media_image_data": [], "seed.shopify_integration_tests.shopify_gql_transaction_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_gql_product_tag_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_location_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_gql_product_data": [], "seed.shopify_integration_tests.shopify_gql_customer_address_data": [], "seed.shopify_integration_tests.shopify_gql_customer_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_gql_metafield_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_refund_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product": [], "seed.shopify_integration_tests.shopify_gql_collection_rule_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_shop_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_collection_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_gql_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_gql_order_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_media_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_level_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_media_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": ["model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398", "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76"], "model.shopify_source.stg_shopify_gql__fulfillment": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a", "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578"], "model.shopify_source.stg_shopify_gql__product_variant": ["model.shopify.int_shopify_gql__product_variant", "model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3", "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735"], "model.shopify_source.stg_shopify_gql__media": ["test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a", "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac", "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989"], "model.shopify_source.stg_shopify_gql__fulfillment_event": ["model.shopify.int_shopify_gql__daily_fulfillment", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c", "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78"], "model.shopify_source.stg_shopify_gql__discount_redeem_code": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3", "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742", "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f"], "model.shopify_source.stg_shopify_gql__location": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be", "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03", "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": ["model.shopify.int_shopify_gql__order_line", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c", "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12"], "model.shopify_source.stg_shopify_gql__refund": ["model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__orders_order_refunds", "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a", "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c"], "model.shopify_source.stg_shopify_gql__discount_application": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.int_shopify_gql__order_discount_code", "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4", "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0", "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af", "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2"], "model.shopify_source.stg_shopify_gql__customer_address": ["model.shopify.int_shopify_gql__customer", "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c", "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc"], "model.shopify_source.stg_shopify_gql__inventory_item": ["model.shopify.int_shopify_gql__product_variant", "model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8", "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91", "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4"], "model.shopify_source.stg_shopify_gql__media_image": ["test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141", "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4", "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6"], "model.shopify_source.stg_shopify_gql__order_shipping_line": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd", "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478"], "model.shopify_source.stg_shopify_gql__inventory_level": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd", "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570"], "model.shopify_source.stg_shopify_gql__order_line": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43", "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85"], "model.shopify_source.stg_shopify_gql__order": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.int_shopify_gql__order", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b", "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36"], "model.shopify_source.stg_shopify_gql__customer": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7", "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271"], "model.shopify_source.stg_shopify_gql__transaction": ["model.shopify.shopify_gql__line_item_enhanced", "model.shopify.shopify_gql__transactions", "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb", "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": ["model.shopify.int_shopify_gql__order_fulfillment_aggregates", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8", "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4", "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b", "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232"], "model.shopify_source.stg_shopify_gql__discount_allocation": ["test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a", "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e", "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04", "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685"], "model.shopify_source.stg_shopify_gql__order_tag": ["model.shopify.shopify_gql__orders", "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661", "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290", "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479", "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461"], "model.shopify_source.stg_shopify_gql__order_adjustment": ["model.shopify.int_shopify_gql__order_adjustment", "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c", "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861"], "model.shopify_source.stg_shopify_gql__product_media": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb", "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49", "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800", "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b"], "model.shopify_source.stg_shopify_gql__order_discount_code": ["model.shopify.int_shopify_gql__order_discount_code", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8", "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7"], "model.shopify_source.stg_shopify_gql__inventory_quantity": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1", "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa"], "model.shopify_source.stg_shopify_gql__product_tag": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd", "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c", "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984", "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0"], "model.shopify_source.stg_shopify_gql__product": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__inventory_levels", "model.shopify.shopify_gql__line_item_enhanced", "model.shopify.shopify_gql__product_metafields", "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb", "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8", "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60"], "model.shopify_source.stg_shopify_gql__customer_tag": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.shopify_gql__customers", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8", "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740"], "model.shopify_source.stg_shopify_gql__collection_product": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16", "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3", "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67", "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066"], "model.shopify_source.stg_shopify_gql__customer_visit": ["model.shopify.int_shopify_gql__order", "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89", "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2"], "model.shopify_source.stg_shopify_gql__collection": ["model.shopify.int_shopify_gql__collection", "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6", "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87", "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e"], "model.shopify_source.stg_shopify_gql__order_note_attribute": ["test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e", "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc", "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6", "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c"], "model.shopify_source.stg_shopify_gql__tender_transaction": ["model.shopify.shopify_gql__transactions", "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7", "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93", "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475"], "model.shopify_source.stg_shopify_gql__shop": ["model.shopify.shopify_gql__daily_shop", "model.shopify.shopify_gql__shop_metafields", "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531", "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075", "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9"], "model.shopify_source.stg_shopify_gql__metafield": ["model.shopify.shopify_gql__collection_metafields", "model.shopify.shopify_gql__customer_metafields", "model.shopify.shopify_gql__order_metafields", "model.shopify.shopify_gql__product_metafields", "model.shopify.shopify_gql__product_variant_metafields", "model.shopify.shopify_gql__shop_metafields", "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5", "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff", "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679"], "model.shopify_source.stg_shopify_gql__product_variant_media": ["model.shopify.shopify_gql__inventory_levels", "model.shopify.shopify_gql__order_lines", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae", "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894"], "model.shopify_source.stg_shopify_gql__discount_code_app": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2", "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c", "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981"], "model.shopify_source.stg_shopify_gql__discount_code_basic": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc", "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec", "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb"], "model.shopify_source.stg_shopify_gql__abandoned_checkout": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.shopify_gql__customers", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f", "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04", "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565", "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089"], "model.shopify_source.stg_shopify_gql__tax_line": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173", "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33"], "model.shopify_source.stg_shopify_gql__order_line_refund": ["model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e", "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20"], "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "model.shopify_source.stg_shopify_gql__order_tmp": ["model.shopify_source.stg_shopify_gql__order"], "model.shopify_source.stg_shopify_gql__discount_application_tmp": ["model.shopify_source.stg_shopify_gql__discount_application"], "model.shopify_source.stg_shopify_gql__fulfillment_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment"], "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "model.shopify_source.stg_shopify_gql__product_tag_tmp": ["model.shopify_source.stg_shopify_gql__product_tag"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "model.shopify_source.stg_shopify_gql__inventory_item_tmp": ["model.shopify_source.stg_shopify_gql__inventory_item"], "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "model.shopify_source.stg_shopify_gql__tax_line_tmp": ["model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify_source.stg_shopify_gql__media_tmp": ["model.shopify_source.stg_shopify_gql__media"], "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "model.shopify_source.stg_shopify_gql__product_media_tmp": ["model.shopify_source.stg_shopify_gql__product_media"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "model.shopify_source.stg_shopify_gql__product_variant_tmp": ["model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify_source.stg_shopify_gql__transaction_tmp": ["model.shopify_source.stg_shopify_gql__transaction"], "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "model.shopify_source.stg_shopify_gql__customer_tmp": ["model.shopify_source.stg_shopify_gql__customer"], "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "model.shopify_source.stg_shopify_gql__location_tmp": ["model.shopify_source.stg_shopify_gql__location"], "model.shopify_source.stg_shopify_gql__customer_visit_tmp": ["model.shopify_source.stg_shopify_gql__customer_visit"], "model.shopify_source.stg_shopify_gql__media_image_tmp": ["model.shopify_source.stg_shopify_gql__media_image"], "model.shopify_source.stg_shopify_gql__collection_product_tmp": ["model.shopify_source.stg_shopify_gql__collection_product"], "model.shopify_source.stg_shopify_gql__shop_tmp": ["model.shopify_source.stg_shopify_gql__shop"], "model.shopify_source.stg_shopify_gql__product_tmp": ["model.shopify_source.stg_shopify_gql__product"], "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "model.shopify_source.stg_shopify_gql__order_line_tmp": ["model.shopify_source.stg_shopify_gql__order_line"], "model.shopify_source.stg_shopify_gql__metafield_tmp": ["model.shopify_source.stg_shopify_gql__metafield"], "model.shopify_source.stg_shopify_gql__order_tag_tmp": ["model.shopify_source.stg_shopify_gql__order_tag"], "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "model.shopify_source.stg_shopify_gql__customer_tag_tmp": ["model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify_source.stg_shopify_gql__collection_tmp": ["model.shopify_source.stg_shopify_gql__collection"], "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "model.shopify_source.stg_shopify_gql__refund_tmp": ["model.shopify_source.stg_shopify_gql__refund"], "model.shopify_source.stg_shopify_gql__inventory_level_tmp": ["model.shopify_source.stg_shopify_gql__inventory_level"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "model.shopify_source.stg_shopify_gql__customer_address_tmp": ["model.shopify_source.stg_shopify_gql__customer_address"], "model.shopify_source.stg_shopify__discount_allocation": ["test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186"], "model.shopify_source.stg_shopify__shop": ["model.shopify.shopify__daily_shop", "model.shopify.shopify__shop_metafields", "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe"], "model.shopify_source.stg_shopify__order_line": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify.shopify__inventory_levels"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613"], "model.shopify_source.stg_shopify__refund": ["model.shopify.shopify__orders__order_refunds"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a"], "model.shopify_source.stg_shopify__media_image": ["test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.shopify__customer_emails", "model.shopify.shopify__customers", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.shopify__orders", "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3"], "model.shopify_source.stg_shopify__product_media": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9"], "model.shopify_source.stg_shopify__order": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_metafields", "model.shopify.shopify__orders"], "model.shopify_source.stg_shopify__product": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__product_metafields"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify.int_shopify__discounts__abandoned_checkouts"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify.int_shopify__discounts__abandoned_checkouts", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.shopify__customers", "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "model.shopify.shopify__product_variant_metafields"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify.shopify__inventory_levels"], "model.shopify_source.stg_shopify__location": ["model.shopify.shopify__inventory_levels", "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_refunds"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify.shopify__orders", "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3"], "model.shopify_source.stg_shopify__order_note_attribute": ["test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify.shopify__orders", "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6"], "model.shopify_source.stg_shopify__collection": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__collection_metafields", "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2"], "model.shopify_source.stg_shopify__transaction": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__transactions"], "model.shopify_source.stg_shopify__media": ["test.shopify_source.not_null_stg_shopify__media_media_id.9768604066"], "model.shopify_source.stg_shopify__metafield": ["model.shopify.shopify__collection_metafields", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__order_metafields", "model.shopify.shopify__product_metafields", "model.shopify.shopify__product_variant_metafields", "model.shopify.shopify__shop_metafields", "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify.shopify__transactions", "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify.shopify__orders"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify.int_shopify__daily_fulfillment"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify.shopify__inventory_levels", "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__orders", "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e"], "model.shopify_source.stg_shopify__customer": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__customers", "model.shopify.shopify__line_item_enhanced"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["model.shopify_source.stg_shopify__tender_transaction"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["model.shopify_source.stg_shopify__discount_code_app"], "model.shopify_source.stg_shopify__transaction_tmp": ["model.shopify_source.stg_shopify__transaction"], "model.shopify_source.stg_shopify__collection_tmp": ["model.shopify_source.stg_shopify__collection"], "model.shopify_source.stg_shopify__media_image_tmp": ["model.shopify_source.stg_shopify__media_image"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["model.shopify_source.stg_shopify__inventory_item"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["model.shopify_source.stg_shopify__order_adjustment"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["model.shopify_source.stg_shopify__inventory_quantity"], "model.shopify_source.stg_shopify__customer_tmp": ["model.shopify_source.stg_shopify__customer"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["model.shopify_source.stg_shopify__order_discount_code"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["model.shopify_source.stg_shopify__fulfillment"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["model.shopify_source.stg_shopify__order_line_refund"], "model.shopify_source.stg_shopify__product_tmp": ["model.shopify_source.stg_shopify__product"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["model.shopify_source.stg_shopify__customer_tag"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "model.shopify_source.stg_shopify__product_tag_tmp": ["model.shopify_source.stg_shopify__product_tag"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify_source.stg_shopify__location_tmp": ["model.shopify_source.stg_shopify__location"], "model.shopify_source.stg_shopify__order_tmp": ["model.shopify_source.stg_shopify__order"], "model.shopify_source.stg_shopify__metafield_tmp": ["model.shopify_source.stg_shopify__metafield"], "model.shopify_source.stg_shopify__collection_product_tmp": ["model.shopify_source.stg_shopify__collection_product"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["model.shopify_source.stg_shopify__discount_allocation"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["model.shopify_source.stg_shopify__order_note_attribute"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["model.shopify_source.stg_shopify__discount_code_basic"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["model.shopify_source.stg_shopify__order_url_tag"], "model.shopify_source.stg_shopify__refund_tmp": ["model.shopify_source.stg_shopify__refund"], "model.shopify_source.stg_shopify__tax_line_tmp": ["model.shopify_source.stg_shopify__tax_line"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "model.shopify_source.stg_shopify__media_tmp": ["model.shopify_source.stg_shopify__media"], "model.shopify_source.stg_shopify__product_media_tmp": ["model.shopify_source.stg_shopify__product_media"], "model.shopify_source.stg_shopify__product_variant_tmp": ["model.shopify_source.stg_shopify__product_variant"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["model.shopify_source.stg_shopify__inventory_level"], "model.shopify_source.stg_shopify__discount_application_tmp": ["model.shopify_source.stg_shopify__discount_application"], "model.shopify_source.stg_shopify__order_tag_tmp": ["model.shopify_source.stg_shopify__order_tag"], "model.shopify_source.stg_shopify__shop_tmp": ["model.shopify_source.stg_shopify__shop"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["model.shopify_source.stg_shopify__product_variant_media"], "model.shopify_source.stg_shopify__order_line_tmp": ["model.shopify_source.stg_shopify__order_line"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_line"], "model.shopify.shopify_gql__discounts": ["test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264", "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994", "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5"], "model.shopify.shopify_gql__customer_emails": ["model.shopify.shopify_gql__customer_email_cohorts"], "model.shopify.shopify_gql__customer_email_cohorts": ["test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f", "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27"], "model.shopify.shopify_gql__products": ["test.shopify.not_null_shopify_gql__products_unique_key.4982d88497", "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326"], "model.shopify.shopify_gql__transactions": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d", "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c"], "model.shopify.shopify_gql__order_lines": ["model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__product_order_line_aggregates", "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db", "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4"], "model.shopify.shopify_gql__customers": ["model.shopify.shopify_gql__customer_cohorts"], "model.shopify.shopify_gql__orders": ["model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.int_shopify_gql__product_order_line_aggregates", "model.shopify.shopify_gql__customer_cohorts", "model.shopify.shopify_gql__customer_email_cohorts", "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041", "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077"], "model.shopify.shopify_gql__inventory_levels": ["test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957", "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e"], "model.shopify.shopify_gql__customer_cohorts": ["test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2", "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c"], "model.shopify.shopify_gql__daily_shop": ["test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8"], "model.shopify.int_shopify_gql__order_fulfillment_aggregates": ["model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__daily_orders": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__product_order_line_aggregates": ["model.shopify.shopify_gql__products"], "model.shopify.int_shopify_gql__customer_email_rollup": ["model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__emails_order_aggregates": ["model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__customers_order_aggregates": ["model.shopify.shopify_gql__customers"], "model.shopify.int_shopify_gql__orders_order_line_aggregates": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__products_with_aggregates": ["model.shopify.shopify_gql__products"], "model.shopify.int_shopify_gql__orders_order_refunds": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__inventory_level_aggregates": ["model.shopify.shopify_gql__inventory_levels"], "model.shopify.int_shopify_gql__order_shipping_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__line_item_enhanced"], "model.shopify.int_shopify_gql__daily_fulfillment": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__discounts_order_aggregates": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__daily_abandoned_checkouts": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__discount_code_enriched": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__order_adjustment": ["model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__collection": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__collection_metafields"], "model.shopify.int_shopify_gql__order_discount_code": ["model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__product_variant": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__product_variant_metafields"], "model.shopify.int_shopify_gql__abandoned_checkout": ["model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__order_line": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.shopify_gql__order_lines"], "model.shopify.int_shopify_gql__customer": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.shopify_gql__customer_metafields", "model.shopify.shopify_gql__customers"], "model.shopify.int_shopify_gql__order": ["model.shopify.shopify_gql__order_metafields", "model.shopify.shopify_gql__orders", "model.shopify.shopify_gql__transactions"], "model.shopify.shopify_gql__line_item_enhanced": [], "model.shopify.shopify_gql__product_metafields": [], "model.shopify.shopify_gql__shop_metafields": [], "model.shopify.shopify_gql__order_metafields": [], "model.shopify.shopify_gql__product_variant_metafields": [], "model.shopify.shopify_gql__customer_metafields": [], "model.shopify.shopify_gql__collection_metafields": [], "model.shopify.shopify__inventory_levels": ["test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0"], "model.shopify.shopify__discounts": ["test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f"], "model.shopify.shopify__customers": ["model.shopify.shopify__customer_cohorts"], "model.shopify.shopify__products": [], "model.shopify.shopify__customer_emails": ["model.shopify.shopify__customer_email_cohorts"], "model.shopify.shopify__transactions": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981"], "model.shopify.shopify__orders": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51"], "model.shopify.shopify__order_lines": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__product__order_line_aggregates", "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e"], "model.shopify.shopify__daily_shop": ["test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f"], "model.shopify.shopify__customer_email_cohorts": ["test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182"], "model.shopify.shopify__customer_cohorts": ["test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_line_aggregates"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__daily_shop"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__orders"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__customer_emails"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify.shopify__products"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify.shopify__discounts"], "model.shopify.shopify__orders__order_refunds": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__inventory_levels"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__products"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify.shopify__customer_emails"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__discounts"], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify.shopify__daily_shop"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__customers"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify.shopify__discounts"], "model.shopify.shopify__line_item_enhanced": [], "model.shopify.shopify__collection_metafields": [], "model.shopify.shopify__shop_metafields": [], "model.shopify.shopify__product_variant_metafields": [], "model.shopify.shopify__order_metafields": [], "model.shopify.shopify__product_metafields": [], "model.shopify.shopify__customer_metafields": [], "model.shopify.shopify__calendar": ["model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "model.shopify.shopify__daily_shop", "model.shopify.shopify_gql__customer_cohorts", "model.shopify.shopify_gql__customer_email_cohorts", "model.shopify.shopify_gql__daily_shop"], "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": [], "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": [], "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": [], "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": [], "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": [], "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": [], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": [], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": [], "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": [], "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": [], "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": [], "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": [], "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": [], "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": [], "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": [], "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": [], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": [], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": [], "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": [], "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": [], "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": [], "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": [], "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": [], "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": [], "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": [], "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": [], "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": [], "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": [], "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": [], "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": [], "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": [], "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": [], "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": [], "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": [], "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": [], "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": [], "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": [], "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": [], "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": [], "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": [], "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": [], "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": [], "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": [], "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": [], "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": [], "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": [], "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": [], "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": [], "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": [], "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": [], "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": [], "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": [], "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": [], "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": [], "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": [], "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": [], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": [], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": [], "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": [], "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": [], "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": [], "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": [], "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": [], "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": [], "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": [], "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": [], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": [], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": [], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": [], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": [], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": [], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": [], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": [], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": [], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": [], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": [], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": [], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": [], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": [], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": [], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": [], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": [], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": [], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": [], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": [], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": [], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": [], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": [], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": [], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": [], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": [], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": [], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": [], "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": [], "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": [], "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": [], "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": [], "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": [], "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": [], "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": [], "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": [], "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": [], "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": [], "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": [], "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": [], "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": [], "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": [], "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": [], "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": [], "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": [], "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": [], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": [], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": [], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": [], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": [], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": [], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": [], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": [], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": [], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": [], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": [], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": [], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": [], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": [], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": [], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": [], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": [], "source.shopify_source.shopify_graphql.order": ["model.shopify_source.stg_shopify_gql__order_tmp"], "source.shopify_source.shopify_graphql.customer": ["model.shopify_source.stg_shopify_gql__customer_tmp"], "source.shopify_source.shopify_graphql.order_line": ["model.shopify_source.stg_shopify_gql__order_line_tmp"], "source.shopify_source.shopify_graphql.order_line_refund": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"], "source.shopify_source.shopify_graphql.product": ["model.shopify_source.stg_shopify_gql__product_tmp"], "source.shopify_source.shopify_graphql.product_variant": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"], "source.shopify_source.shopify_graphql.transaction": ["model.shopify_source.stg_shopify_gql__transaction_tmp"], "source.shopify_source.shopify_graphql.refund": ["model.shopify_source.stg_shopify_gql__refund_tmp"], "source.shopify_source.shopify_graphql.order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"], "source.shopify_source.shopify_graphql.abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"], "source.shopify_source.shopify_graphql.collection_product": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"], "source.shopify_source.shopify_graphql.collection": ["model.shopify_source.stg_shopify_gql__collection_tmp"], "source.shopify_source.shopify_graphql.customer_tag": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"], "source.shopify_source.shopify_graphql.fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"], "source.shopify_source.shopify_graphql.inventory_item": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"], "source.shopify_source.shopify_graphql.inventory_level": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"], "source.shopify_source.shopify_graphql.inventory_quantity": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"], "source.shopify_source.shopify_graphql.location": ["model.shopify_source.stg_shopify_gql__location_tmp"], "source.shopify_source.shopify_graphql.metafield": ["model.shopify_source.stg_shopify_gql__metafield_tmp"], "source.shopify_source.shopify_graphql.order_note_attribute": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"], "source.shopify_source.shopify_graphql.order_shipping_line": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"], "source.shopify_source.shopify_graphql.order_shipping_tax_line": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"], "source.shopify_source.shopify_graphql.order_tag": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"], "source.shopify_source.shopify_graphql.media": ["model.shopify_source.stg_shopify_gql__media_tmp"], "source.shopify_source.shopify_graphql.media_image": ["model.shopify_source.stg_shopify_gql__media_image_tmp"], "source.shopify_source.shopify_graphql.product_media": ["model.shopify_source.stg_shopify_gql__product_media_tmp"], "source.shopify_source.shopify_graphql.product_variant_media": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"], "source.shopify_source.shopify_graphql.product_tag": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"], "source.shopify_source.shopify_graphql.shop": ["model.shopify_source.stg_shopify_gql__shop_tmp"], "source.shopify_source.shopify_graphql.tender_transaction": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"], "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "source.shopify_source.shopify_graphql.order_discount_code": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"], "source.shopify_source.shopify_graphql.fulfillment_event": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"], "source.shopify_source.shopify_graphql.tax_line": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"], "source.shopify_source.shopify_graphql.discount_allocation": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"], "source.shopify_source.shopify_graphql.discount_application": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"], "source.shopify_source.shopify_graphql.discount_code_app": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"], "source.shopify_source.shopify_graphql.discount_code_basic": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"], "source.shopify_source.shopify_graphql.discount_code_bxgy": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"], "source.shopify_source.shopify_graphql.discount_code_free_shipping": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"], "source.shopify_source.shopify_graphql.discount_redeem_code": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"], "source.shopify_source.shopify_graphql.fulfillment_tracking_info": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"], "source.shopify_source.shopify_graphql.customer_visit": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"], "source.shopify_source.shopify_graphql.fulfillment_order_line_item": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"], "source.shopify_source.shopify_graphql.customer_address": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"], "source.shopify_source.shopify.order": ["model.shopify_source.stg_shopify__order_tmp"], "source.shopify_source.shopify.customer": ["model.shopify_source.stg_shopify__customer_tmp"], "source.shopify_source.shopify.order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "source.shopify_source.shopify.order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "source.shopify_source.shopify.product": ["model.shopify_source.stg_shopify__product_tmp"], "source.shopify_source.shopify.product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "source.shopify_source.shopify.transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "source.shopify_source.shopify.refund": ["model.shopify_source.stg_shopify__refund_tmp"], "source.shopify_source.shopify.order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "source.shopify_source.shopify.abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "source.shopify_source.shopify.collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "source.shopify_source.shopify.collection": ["model.shopify_source.stg_shopify__collection_tmp"], "source.shopify_source.shopify.customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "source.shopify_source.shopify.fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "source.shopify_source.shopify.inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "source.shopify_source.shopify.inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "source.shopify_source.shopify.inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "source.shopify_source.shopify.location": ["model.shopify_source.stg_shopify__location_tmp"], "source.shopify_source.shopify.metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "source.shopify_source.shopify.order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "source.shopify_source.shopify.order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "source.shopify_source.shopify.order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "source.shopify_source.shopify.order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "source.shopify_source.shopify.order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "source.shopify_source.shopify.media": ["model.shopify_source.stg_shopify__media_tmp"], "source.shopify_source.shopify.media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "source.shopify_source.shopify.product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "source.shopify_source.shopify.product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "source.shopify_source.shopify.product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "source.shopify_source.shopify.shop": ["model.shopify_source.stg_shopify__shop_tmp"], "source.shopify_source.shopify.tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "source.shopify_source.shopify.abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "source.shopify_source.shopify.order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "source.shopify_source.shopify.abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "source.shopify_source.shopify.fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "source.shopify_source.shopify.tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "source.shopify_source.shopify.discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "source.shopify_source.shopify.discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "source.shopify_source.shopify.discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "source.shopify_source.shopify.discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "source.shopify_source.shopify.discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "source.shopify_source.shopify.discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "source.shopify_source.shopify.discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}, "unit_tests": {}} +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v12.json", "dbt_version": "1.10.10", "generated_at": "2025-09-04T17:10:24.222867Z", "invocation_id": "db230143-3f42-4e82-84ef-aecc747781ad", "invocation_started_at": "2025-09-04T17:09:52.908362+00:00", "env": {}, "project_name": "shopify_integration_tests", "project_id": "c39719ba3d679fd569bed21921e72e32", "user_id": null, "send_anonymous_usage_stats": false, "adapter_type": "postgres", "quoting": {"database": true, "schema": true, "identifier": true, "column": null}}, "nodes": {"seed.shopify_integration_tests.shopify_shop_data": {"database": "postgres", "schema": "public", "name": "shopify_shop_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_shop_data.csv", "original_file_path": "seeds/shopify_shop_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_shop_data", "fqn": ["shopify_integration_tests", "shopify_shop_data"], "alias": "shopify_shop_data", "checksum": {"name": "sha256", "checksum": "1029ea325d95c96dbdf0c52a9fd8ef272516b15f99f834a507bff27eda689bba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"taxes_included": "boolean", "google_apps_login_enabled": "boolean", "county_taxes": "boolean"}}, "created_at": 1757005796.3490012, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tax_line_data.csv", "original_file_path": "seeds/shopify_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_tax_line_data"], "alias": "shopify_tax_line_data", "checksum": {"name": "sha256", "checksum": "af3615f675a22513590ef6a8abcce714b286f06c7532e650a56787c6afbd36de"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float", "rate": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float", "rate": "float"}}, "created_at": 1757005796.3565004, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_product": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_product", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_product.csv", "original_file_path": "seeds/shopify_gql_collection_product.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_product", "fqn": ["shopify_integration_tests", "shopify_gql_collection_product"], "alias": "shopify_gql_collection_product", "checksum": {"name": "sha256", "checksum": "97528489feaf3fe056bfad2e1d5704c7a27d9fd0e90253b3fd64eceecfe31a7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.359725, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_data.csv", "original_file_path": "seeds/shopify_gql_order_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_data"], "alias": "shopify_gql_order_data", "checksum": {"name": "sha256", "checksum": "5f2c9bc0a1d81234edf8945c72a99425ebe0450aad71cf418ca24b12c0ab3fd3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar", "shipping_address_phone": "varchar", "total_shipping_price_set_pres_amount": "float", "total_shipping_price_set_shop_amount": "float", "total_tax_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_discounts_set_pres_amount": "float", "total_discounts_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_tip_received_set_pres_amount": "float", "total_tip_received_set_shop_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_shipping_price_set_pres_amount": "float", "total_shipping_price_set_shop_amount": "float", "total_tax_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_discounts_set_pres_amount": "float", "total_discounts_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_tip_received_set_pres_amount": "float", "total_tip_received_set_shop_amount": "float"}}, "created_at": 1757005796.3632786, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_visit_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_visit_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_visit_data.csv", "original_file_path": "seeds/shopify_gql_customer_visit_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_visit_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_visit_data"], "alias": "shopify_gql_customer_visit_data", "checksum": {"name": "sha256", "checksum": "33bcb50366b3a771c4a408cf198e0ba0ed4308af90d0d9066fcf5b8a0cb74ce6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.3665037, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_data.csv", "original_file_path": "seeds/shopify_collection_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_data", "fqn": ["shopify_integration_tests", "shopify_collection_data"], "alias": "shopify_collection_data", "checksum": {"name": "sha256", "checksum": "27cb0f0a37833f86bc7d0eb153acacdca987a69caf07dccdea4a072895f0a518"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"disjunctive": "boolean", "published_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1757005796.3696675, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_shipping_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_shipping_tax_line_data.csv", "original_file_path": "seeds/shopify_gql_order_shipping_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_shipping_tax_line_data"], "alias": "shopify_gql_order_shipping_tax_line_data", "checksum": {"name": "sha256", "checksum": "4c0d33725e1979f861188e46f54626db2fa5d1dc12a23b6dec4d67b2617e8493"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.3727558, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_basic_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_basic_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_basic_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_basic_data"], "alias": "shopify_gql_discount_code_basic_data", "checksum": {"name": "sha256", "checksum": "d42fbb32c0fcf3c168a45013a7a5c9b9e9c8871e7b2079d5973741f88543c079"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"total_sales_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"total_sales_amount": "float"}}, "created_at": 1757005796.3768673, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_allocation_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_allocation_data.csv", "original_file_path": "seeds/shopify_gql_discount_allocation_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_allocation_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_allocation_data"], "alias": "shopify_gql_discount_allocation_data", "checksum": {"name": "sha256", "checksum": "66070d7edfd03f95cce45261aff8868c52ac272d23457e8b00d31f89bee13bb2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.3800004, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_redeem_code_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_redeem_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_redeem_code_data.csv", "original_file_path": "seeds/shopify_discount_redeem_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_redeem_code_data", "fqn": ["shopify_integration_tests", "shopify_discount_redeem_code_data"], "alias": "shopify_discount_redeem_code_data", "checksum": {"name": "sha256", "checksum": "801a010544f98b358371e38d9af1023f4e91747d6f4e488c5a65358794bc3ab5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "discount_id": "bigint", "created_by_id": "bigint", "async_usage_count": "integer", "code": "varchar", "discount_type": "varchar", "created_by_description": "varchar", "created_by_title": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "created_by_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "async_usage_count": "integer", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_by_title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1757005796.3831751, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_tracking_info_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_tracking_info_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_tracking_info_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_tracking_info_data"], "alias": "shopify_gql_fulfillment_tracking_info_data", "checksum": {"name": "sha256", "checksum": "0ce5041eae13306e77b2f03c364a8e5767be39e68e711fbb1b76709e51191b12"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.386367, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_rule_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_rule_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_rule_data.csv", "original_file_path": "seeds/shopify_gql_collection_rule_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_rule_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_rule_data"], "alias": "shopify_gql_collection_rule_data", "checksum": {"name": "sha256", "checksum": "fc43b048e1c1c4e2dc67460f2d7ad884ccc7a3f02ba7d749a766459199c1a6aa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.3894415, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_rule_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_allocation_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_allocation_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_allocation_data.csv", "original_file_path": "seeds/shopify_discount_allocation_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_allocation_data", "fqn": ["shopify_integration_tests", "shopify_discount_allocation_data"], "alias": "shopify_discount_allocation_data", "checksum": {"name": "sha256", "checksum": "22cd7acd65491fcbbd2d2de60dc69b993fa1ac45d90b41dee7976905d6418fcf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "varchar", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "varchar", "discount_application_index": "integer", "index": "integer", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"amount": "float", "amount_set_presentment_money_amount": "float", "amount_set_presentment_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "amount_set_shop_money_amount": "float", "amount_set_shop_money_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "discount_application_index": "integer", "index": "integer", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1757005796.3927805, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_tax_line_data.csv", "original_file_path": "seeds/shopify_gql_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_tax_line_data"], "alias": "shopify_gql_tax_line_data", "checksum": {"name": "sha256", "checksum": "08f6ab93144ae307e2e9f808278e5e6f13b1c76a609df067a7b3e18c52623bc2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.3960092, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_note_attribute_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_note_attribute_data.csv", "original_file_path": "seeds/shopify_gql_order_note_attribute_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_note_attribute_data"], "alias": "shopify_gql_order_note_attribute_data", "checksum": {"name": "sha256", "checksum": "fdc162afb1aaf6ccc432a5df8eb1d42ebe945151101a43edf6176d98c3cd4ec6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.3990607, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_media_data.csv", "original_file_path": "seeds/shopify_gql_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_media_data"], "alias": "shopify_gql_media_data", "checksum": {"name": "sha256", "checksum": "ffa3f564a810c9230c529066f5be55051045d32e14bfee4c04479ec3e5140a3c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.4020944, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_discount_code_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_discount_code_data"], "alias": "shopify_abandoned_checkout_discount_code_data", "checksum": {"name": "sha256", "checksum": "f60365d56b94e348893476184122a98c6a4b939de1c7de1f7f3684e2ba344e48"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"checkout_id": "bigint", "discount_id": "bigint", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "varchar", "type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"checkout_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "discount_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1757005796.4053977, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_data.csv", "original_file_path": "seeds/shopify_gql_customer_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_data"], "alias": "shopify_gql_customer_data", "checksum": {"name": "sha256", "checksum": "ccd33f05c9942cd47dc7bf8abef925334aa740a60181b9ce13657323fe63267d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1757005796.4086442, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_order_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_discount_code_data.csv", "original_file_path": "seeds/shopify_order_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_order_discount_code_data"], "alias": "shopify_order_discount_code_data", "checksum": {"name": "sha256", "checksum": "f4e391a3f00ebb1f7444487e4577dc95e28c39745e40f6c0fcb1bd90562833f6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"order_id": "bigint", "amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "amount": "float"}}, "created_at": 1757005796.4118352, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_data"], "alias": "shopify_gql_fulfillment_data", "checksum": {"name": "sha256", "checksum": "707d77c094f00fb4c21d1968550d66a131bbfbec48addd7d7137936b00aca500"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.4149382, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_tag_data.csv", "original_file_path": "seeds/shopify_order_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_tag_data"], "alias": "shopify_order_tag_data", "checksum": {"name": "sha256", "checksum": "c448adfe655f83dcaf6370ad2ef36f0ad6991c1b6d001e3aab317fd17359b129"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.4179602, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_data": {"database": "postgres", "schema": "public", "name": "shopify_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_data.csv", "original_file_path": "seeds/shopify_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_data", "fqn": ["shopify_integration_tests", "shopify_media_data"], "alias": "shopify_media_data", "checksum": {"name": "sha256", "checksum": "7c6234841dd8ff01ec7cd72fb11d8f933c4b12efbf8470324f0671f6afb6e266"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "status": "varchar", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1757005796.421203, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_metafield_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_metafield_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_metafield_data.csv", "original_file_path": "seeds/shopify_gql_metafield_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_metafield_data", "fqn": ["shopify_integration_tests", "shopify_gql_metafield_data"], "alias": "shopify_gql_metafield_data", "checksum": {"name": "sha256", "checksum": "b698e66e6a1d23c772fe5d1c36943dd9e5be8609f08b7f0990b1c20417e3f4d1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.4243472, "relation_name": "\"postgres\".\"public\".\"shopify_gql_metafield_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_application_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_application_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_application_data.csv", "original_file_path": "seeds/shopify_gql_discount_application_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_application_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_application_data"], "alias": "shopify_gql_discount_application_data", "checksum": {"name": "sha256", "checksum": "02bf15863aaf29b404a84ab214ff73121e4ee411f2e6fecf3f757e179b6c9c2e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.4273856, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_line_data.csv", "original_file_path": "seeds/shopify_gql_order_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_line_data"], "alias": "shopify_gql_order_line_data", "checksum": {"name": "sha256", "checksum": "c4ef70509cf12a7e963b4427bd4ecaf67fa4597191c62bd6da8844e0c448a3ef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.430454, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_media_data.csv", "original_file_path": "seeds/shopify_gql_product_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_media_data"], "alias": "shopify_gql_product_media_data", "checksum": {"name": "sha256", "checksum": "9b99a3ca51b4ecd63cc1d2a8a83a5a96dbf52e878990055a8e3a03b89666272d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.4336464, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_data.csv", "original_file_path": "seeds/shopify_order_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_data", "fqn": ["shopify_integration_tests", "shopify_order_line_data"], "alias": "shopify_order_line_data", "checksum": {"name": "sha256", "checksum": "a4e65b3c0ee73ff8755aec89198632427baa2dbcc39d2e97659a8a976a92b8cd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "order_id": "bigint", "id": "bigint", "product_id": "bigint", "variant_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1757005796.4368477, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_refund_data.csv", "original_file_path": "seeds/shopify_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_refund_data", "fqn": ["shopify_integration_tests", "shopify_refund_data"], "alias": "shopify_refund_data", "checksum": {"name": "sha256", "checksum": "8d8bc98681d9b0d57a43af3fc99ff13cc42401d97e49bba41c1fafb28f858d23"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1757005796.4400737, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_collection_product_data": {"database": "postgres", "schema": "public", "name": "shopify_collection_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_collection_product_data.csv", "original_file_path": "seeds/shopify_collection_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_collection_product_data", "fqn": ["shopify_integration_tests", "shopify_collection_product_data"], "alias": "shopify_collection_product_data", "checksum": {"name": "sha256", "checksum": "f0829ff9b0c3116846c83d4cb2dfae170594e230d3586b8abae97a31d4a51c55"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.443221, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_shipping_line_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_shipping_line_data"], "alias": "shopify_abandoned_checkout_shipping_line_data", "checksum": {"name": "sha256", "checksum": "9b1e873b952f85626352f2ca85b67b7a14e54e7edd01467951653fc2716023d5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"markup": "varchar", "price": "float", "original_shop_markup": "varchar", "original_shop_price": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "price": "float", "original_shop_markup": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "original_shop_price": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1757005796.4463801, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_order_line_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_order_line_item_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_order_line_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_order_line_item_data"], "alias": "shopify_gql_fulfillment_order_line_item_data", "checksum": {"name": "sha256", "checksum": "038512c381c821457b427a8a6d19049e6eb9302f5acfaaebdf56896f31aa0c01"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.4496226, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_shop_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_shop_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_shop_data.csv", "original_file_path": "seeds/shopify_gql_shop_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_shop_data", "fqn": ["shopify_integration_tests", "shopify_gql_shop_data"], "alias": "shopify_gql_shop_data", "checksum": {"name": "sha256", "checksum": "e691117d38fb0c6a9ad757f7adc677a8a3454f881d6c9f7d3fd625611addb1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1757005796.4527123, "relation_name": "\"postgres\".\"public\".\"shopify_gql_shop_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_shipping_line_data.csv", "original_file_path": "seeds/shopify_gql_order_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_shipping_line_data"], "alias": "shopify_gql_order_shipping_line_data", "checksum": {"name": "sha256", "checksum": "5e77fbe4d6a87d50fcee326d856b97033aa850a6bc3edab4b70064c89498c01b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1757005796.45585, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_data.csv", "original_file_path": "seeds/shopify_gql_collection_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_data"], "alias": "shopify_gql_collection_data", "checksum": {"name": "sha256", "checksum": "29e0276fbf7a043b812e101d81438672484cca31a69ba9c4ce2df96dc215a3b2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.4590447, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_tender_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_tender_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_tender_transaction_data.csv", "original_file_path": "seeds/shopify_tender_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_tender_transaction_data", "fqn": ["shopify_integration_tests", "shopify_tender_transaction_data"], "alias": "shopify_tender_transaction_data", "checksum": {"name": "sha256", "checksum": "7d1b7ebc547f9068b258e49431a3955f9143b99afa151664aa26a2ad9c5b479c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.4621844, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_tag_data.csv", "original_file_path": "seeds/shopify_customer_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_tag_data", "fqn": ["shopify_integration_tests", "shopify_customer_tag_data"], "alias": "shopify_customer_tag_data", "checksum": {"name": "sha256", "checksum": "27dad4d9a29bfd94903c156e01cdee4c0b33cfb2c5d88af98b89c19287596e5c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"customer_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1757005796.4652908, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_bxgy_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_bxgy_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_bxgy_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_bxgy_data"], "alias": "shopify_gql_discount_code_bxgy_data", "checksum": {"name": "sha256", "checksum": "93dd6da3ac1575fe61eed846dd3e2db2d75f16237571cfd4a4647f33ec612a28"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.468378, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_customer_data": {"database": "postgres", "schema": "public", "name": "shopify_customer_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_customer_data.csv", "original_file_path": "seeds/shopify_customer_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_customer_data", "fqn": ["shopify_integration_tests", "shopify_customer_data"], "alias": "shopify_customer_data", "checksum": {"name": "sha256", "checksum": "72ba9c7141e483ec3a8715cb27d57c8e36f8ca293b0a507676391c8804c717f2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint", "default_address_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "default_address_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1757005796.4715211, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_address_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_address_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_address_data.csv", "original_file_path": "seeds/shopify_gql_customer_address_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_address_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_address_data"], "alias": "shopify_gql_customer_address_data", "checksum": {"name": "sha256", "checksum": "55643b705646db36fbaeb65e2786f9981acc20dbcd95996c0ee31afacef123b6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1757005796.4746704, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_tag_data.csv", "original_file_path": "seeds/shopify_gql_order_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_tag_data"], "alias": "shopify_gql_order_tag_data", "checksum": {"name": "sha256", "checksum": "6fb78d3ccb69ab26e0ab8d781865dece254bfa951b1e1e57efe800e4c3c9aa9d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.4778821, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_line_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_line_refund_data.csv", "original_file_path": "seeds/shopify_gql_order_line_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_line_refund_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_line_refund_data"], "alias": "shopify_gql_order_line_refund_data", "checksum": {"name": "sha256", "checksum": "f42ec092931b7b6629fad2c44ca9d9cfa5b655980dd1140d69d8b687178b8d32"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"quantity": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"quantity": "float"}}, "created_at": 1757005796.4809618, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_variant_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_variant_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_variant_data.csv", "original_file_path": "seeds/shopify_gql_product_variant_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_variant_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_variant_data"], "alias": "shopify_gql_product_variant_data", "checksum": {"name": "sha256", "checksum": "9a783e511b142f376bb30e534f58457aa8bc43eca7bba64edc31ed0d2d2164fa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"compare_at_price": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"compare_at_price": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1757005796.4842367, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_media_data.csv", "original_file_path": "seeds/shopify_product_variant_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_media_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_media_data"], "alias": "shopify_product_variant_media_data", "checksum": {"name": "sha256", "checksum": "7994b7016d58d7ada3e0fbc5bd97b3564faf8d3bf0e94d76da0703f96a75c772"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_variant_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_variant_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1757005796.487439, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_abandoned_checkout_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_abandoned_checkout_data.csv", "original_file_path": "seeds/shopify_gql_abandoned_checkout_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data", "fqn": ["shopify_integration_tests", "shopify_gql_abandoned_checkout_data"], "alias": "shopify_gql_abandoned_checkout_data", "checksum": {"name": "sha256", "checksum": "f3999e4554d821e95b65fc49d14ab501151f3026c8936871197cabfbac47e25a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"billing_address_phone": "varchar", "shipping_address_phone": "varchar", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_discount_set_shop_amount": "float", "total_discount_set_pres_amount": "float", "total_duties_set_shop_amount": "float", "total_duties_set_pres_amount": "float", "total_line_items_price_set_shop_amount": "float", "total_line_items_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_tax_set_pres_amount": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "subtotal_price_set_pres_amount": "float", "subtotal_price_set_shop_amount": "float", "total_discount_set_shop_amount": "float", "total_discount_set_pres_amount": "float", "total_duties_set_shop_amount": "float", "total_duties_set_pres_amount": "float", "total_line_items_price_set_shop_amount": "float", "total_line_items_price_set_pres_amount": "float", "total_price_set_shop_amount": "float", "total_price_set_pres_amount": "float", "total_tax_set_shop_amount": "float", "total_tax_set_pres_amount": "float"}}, "created_at": 1757005796.4908721, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_level_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_level_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_level_data.csv", "original_file_path": "seeds/shopify_inventory_level_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_level_data", "fqn": ["shopify_integration_tests", "shopify_inventory_level_data"], "alias": "shopify_inventory_level_data", "checksum": {"name": "sha256", "checksum": "d62c717239fd0873246f29f5573684185b6ceb0caf3b85b68fd25d65a64e6cfb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "location_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1757005796.4942055, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_data.csv", "original_file_path": "seeds/shopify_gql_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_data"], "alias": "shopify_gql_product_data", "checksum": {"name": "sha256", "checksum": "5c3d5008de7c87b129567ced494177bc809a49587033e462e8e099dfe3c02662"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.497362, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_quantity_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_quantity_data.csv", "original_file_path": "seeds/shopify_gql_inventory_quantity_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_quantity_data"], "alias": "shopify_gql_inventory_quantity_data", "checksum": {"name": "sha256", "checksum": "aa5cdc0d5565496916a0f61055b029546d99b6aab2a2433c11f936abeeafcb1b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.5003793, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_tax_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_tax_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_tax_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_tax_line_data"], "alias": "shopify_order_shipping_tax_line_data", "checksum": {"name": "sha256", "checksum": "279d995731cd3b85aa948f6721ada5f455324347f7ac3211a98bf2f3bb72f899"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"price": "float"}}, "created_at": 1757005796.50348, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_url_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_order_url_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_url_tag_data.csv", "original_file_path": "seeds/shopify_order_url_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_url_tag_data", "fqn": ["shopify_integration_tests", "shopify_order_url_tag_data"], "alias": "shopify_order_url_tag_data", "checksum": {"name": "sha256", "checksum": "18d23ae4cb9bb569772db2a5622ab7f84281f3391b6c9295973a8fed3d887567"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.5067072, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_location_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_location_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_location_data.csv", "original_file_path": "seeds/shopify_gql_location_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_location_data", "fqn": ["shopify_integration_tests", "shopify_gql_location_data"], "alias": "shopify_gql_location_data", "checksum": {"name": "sha256", "checksum": "0e3fcbfcccb24bff1a397108c5284f013e54846463ce693db515c9e843d65c82"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"phone": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1757005796.5097697, "relation_name": "\"postgres\".\"public\".\"shopify_gql_location_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_shipping_line_data": {"database": "postgres", "schema": "public", "name": "shopify_order_shipping_line_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_shipping_line_data.csv", "original_file_path": "seeds/shopify_order_shipping_line_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_shipping_line_data", "fqn": ["shopify_integration_tests", "shopify_order_shipping_line_data"], "alias": "shopify_order_shipping_line_data", "checksum": {"name": "sha256", "checksum": "7a83a6e1121c088d6cd6ab3a944c683bfe4ac72ac440fcf97d55c3ca709b88a8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"discounted_price": "float", "price": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"discounted_price": "float", "price": "float"}}, "created_at": 1757005796.512933, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_item_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_item_data.csv", "original_file_path": "seeds/shopify_inventory_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_item_data", "fqn": ["shopify_integration_tests", "shopify_inventory_item_data"], "alias": "shopify_inventory_item_data", "checksum": {"name": "sha256", "checksum": "07e090d559afd6d31a98e4baca9934b8534b2c855de25177937c792688a17114"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "measurement_id": "bigint", "legacy_resource_id": "bigint", "updated_at": "timestamp", "created_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "measurement_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "updated_at": "timestamp", "created_at": "timestamp"}}, "created_at": 1757005796.5161817, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_transaction_data.csv", "original_file_path": "seeds/shopify_gql_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_transaction_data", "fqn": ["shopify_integration_tests", "shopify_gql_transaction_data"], "alias": "shopify_gql_transaction_data", "checksum": {"name": "sha256", "checksum": "6daf1a707db559a969488734847d9996d22fc0c1eb96d91c6ae621e6fa0c9a53"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.519366, "relation_name": "\"postgres\".\"public\".\"shopify_gql_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_metafield_data": {"database": "postgres", "schema": "public", "name": "shopify_metafield_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_metafield_data.csv", "original_file_path": "seeds/shopify_metafield_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_metafield_data", "fqn": ["shopify_integration_tests", "shopify_metafield_data"], "alias": "shopify_metafield_data", "checksum": {"name": "sha256", "checksum": "f9586af820e5f4c1d04e71e5a8fc699080ecb101b85735abe9724a8ea9bf0d97"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"value_type": "varchar", "type": "varchar", "id": "bigint", "owner_id": "bigint", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "owner_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "_fivetran_synced": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1757005796.5225537, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_collection_product_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_collection_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_collection_product_data.csv", "original_file_path": "seeds/shopify_gql_collection_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_collection_product_data", "fqn": ["shopify_integration_tests", "shopify_gql_collection_product_data"], "alias": "shopify_gql_collection_product_data", "checksum": {"name": "sha256", "checksum": "97528489feaf3fe056bfad2e1d5704c7a27d9fd0e90253b3fd64eceecfe31a7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.525661, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_application_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_application_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_application_data.csv", "original_file_path": "seeds/shopify_discount_application_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_application_data", "fqn": ["shopify_integration_tests", "shopify_discount_application_data"], "alias": "shopify_discount_application_data", "checksum": {"name": "sha256", "checksum": "9d678050ac7442f36d8aa9a5b0b013aeea7ab64a785a564a31aa41fa6a6ee70a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"allocation_method": "varchar", "code": "varchar", "description": "varchar", "index": "integer", "order_id": "bigint", "target_selection": "varchar", "target_type": "varchar", "title": "varchar", "type": "varchar", "value": "float", "value_type": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"allocation_method": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "description": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "index": "integer", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "target_selection": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "target_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "value": "float", "value_type": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1757005796.528889, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_discount_code_data.csv", "original_file_path": "seeds/shopify_gql_order_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_discount_code_data"], "alias": "shopify_gql_order_discount_code_data", "checksum": {"name": "sha256", "checksum": "aafb732b582b0f19c9f004febfb986cf33a2d090c53d87dc5d9875584d1c9643"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.5320635, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_free_shipping_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_free_shipping_data.csv", "original_file_path": "seeds/shopify_discount_code_free_shipping_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_free_shipping_data"], "alias": "shopify_discount_code_free_shipping_data", "checksum": {"name": "sha256", "checksum": "55e37730e02503078ff03a624def743c4413c5feda1bdcdd38cc7d0dbe47e2bd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1757005796.5355582, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_abandoned_checkout_discount_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_abandoned_checkout_discount_code_data.csv", "original_file_path": "seeds/shopify_gql_abandoned_checkout_discount_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_abandoned_checkout_discount_code_data"], "alias": "shopify_gql_abandoned_checkout_discount_code_data", "checksum": {"name": "sha256", "checksum": "90c5089352dfe1ea90e277813ae7824053992fa838896d4d55130c1ca0e51b82"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.5387948, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_app_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_app_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_app_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_app_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_app_data"], "alias": "shopify_gql_discount_code_app_data", "checksum": {"name": "sha256", "checksum": "b6ea6c09ffbae0eedd94577b2ec3a6074bff0d33b6338d895111b7f9521ce049"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.541809, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_transaction_data.csv", "original_file_path": "seeds/shopify_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_transaction_data", "fqn": ["shopify_integration_tests", "shopify_transaction_data"], "alias": "shopify_transaction_data", "checksum": {"name": "sha256", "checksum": "def7b7fc64e42148b900dcd1f7327b470e5d3b0ed8e73f263e46a715ecb09199"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1757005796.5449665, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_level_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_level_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_level_data.csv", "original_file_path": "seeds/shopify_gql_inventory_level_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_level_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_level_data"], "alias": "shopify_gql_inventory_level_data", "checksum": {"name": "sha256", "checksum": "a176c479102e74867e9ca4c77ed5806ad4ec824edecfbcb9672877a3581ffddc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.5482528, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_line_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_order_line_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_line_refund_data.csv", "original_file_path": "seeds/shopify_order_line_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_line_refund_data", "fqn": ["shopify_integration_tests", "shopify_order_line_refund_data"], "alias": "shopify_order_line_refund_data", "checksum": {"name": "sha256", "checksum": "5d28c17ac30b49f32cb92c5ade7643c3322d0a18e38094140cf06ace9fc85e72"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "id": "bigint", "location_id": "bigint", "refund_id": "bigint", "order_line_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_line_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1757005796.5513728, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_order_adjustment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_order_adjustment_data.csv", "original_file_path": "seeds/shopify_gql_order_adjustment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_order_adjustment_data", "fqn": ["shopify_integration_tests", "shopify_gql_order_adjustment_data"], "alias": "shopify_gql_order_adjustment_data", "checksum": {"name": "sha256", "checksum": "5477a81fe785b813c63156e1f04d73748f431cd6f247ad0f5ac75785a9cc1325"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.554484, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_abandoned_checkout_data": {"database": "postgres", "schema": "public", "name": "shopify_abandoned_checkout_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_abandoned_checkout_data.csv", "original_file_path": "seeds/shopify_abandoned_checkout_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_abandoned_checkout_data", "fqn": ["shopify_integration_tests", "shopify_abandoned_checkout_data"], "alias": "shopify_abandoned_checkout_data", "checksum": {"name": "sha256", "checksum": "1fc66dc1ee0e84111cc6c3de1b49c3e172d477eadda206ec80095dbae720a7b4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"total_line_items_price": "float", "billing_address_phone": "varchar", "shipping_address_phone": "varchar", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"total_line_items_price": "float", "billing_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "shipping_address_phone": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "closed_at": "timestamp", "created_at": "timestamp", "updated_at": "timestamp"}}, "created_at": 1757005796.5576406, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_basic_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_basic_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_basic_data.csv", "original_file_path": "seeds/shopify_discount_code_basic_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_basic_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_basic_data"], "alias": "shopify_discount_code_basic_data", "checksum": {"name": "sha256", "checksum": "dc25a6ca420db34e1ce13e0749f1e65e949cef3a260c736e1eb6e53b7db15ace"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1757005796.5610056, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_bxgy_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_bxgy_data.csv", "original_file_path": "seeds/shopify_discount_code_bxgy_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_bxgy_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_bxgy_data"], "alias": "shopify_discount_code_bxgy_data", "checksum": {"name": "sha256", "checksum": "676970b98658b2da21aec24691e589c9d1bd42703e266864d7af1d310f57fc53"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "varchar", "summary": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "async_usage_count": "integer", "codes_count": "integer", "codes_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "summary": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer", "uses_per_order_limit": "integer"}}, "created_at": 1757005796.5646222, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_note_attribute_data": {"database": "postgres", "schema": "public", "name": "shopify_order_note_attribute_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_note_attribute_data.csv", "original_file_path": "seeds/shopify_order_note_attribute_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_note_attribute_data", "fqn": ["shopify_integration_tests", "shopify_order_note_attribute_data"], "alias": "shopify_order_note_attribute_data", "checksum": {"name": "sha256", "checksum": "9076f469c15ad5e18c4365039836b6739c2d7fc79ed987564ab8c1849994309c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.5678601, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_product_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_tag_data.csv", "original_file_path": "seeds/shopify_product_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_tag_data", "fqn": ["shopify_integration_tests", "shopify_product_tag_data"], "alias": "shopify_product_tag_data", "checksum": {"name": "sha256", "checksum": "10203c8ee30c2d400a7f5126732f6c17985017df02cd4eceff90ef483e1c0729"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.570873, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_data": {"database": "postgres", "schema": "public", "name": "shopify_product_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_data.csv", "original_file_path": "seeds/shopify_product_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_data", "fqn": ["shopify_integration_tests", "shopify_product_data"], "alias": "shopify_product_data", "checksum": {"name": "sha256", "checksum": "e3e37227f60cd1960dc29421bf94785a59c058e4b6a4cd01262376f34947e320"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "published_at": "timestamp", "_fivetran_synced": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1757005796.573992, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_redeem_code_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_redeem_code_data.csv", "original_file_path": "seeds/shopify_gql_discount_redeem_code_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_redeem_code_data"], "alias": "shopify_gql_discount_redeem_code_data", "checksum": {"name": "sha256", "checksum": "0b1fd8ebdc11adc10b729eb22fe80d4e8f69d29dbc42114ea54d5977fdb6d638"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.5771809, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_variant_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_variant_media_data.csv", "original_file_path": "seeds/shopify_gql_product_variant_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_variant_media_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_variant_media_data"], "alias": "shopify_gql_product_variant_media_data", "checksum": {"name": "sha256", "checksum": "ce88d8703b4da3dd7db2c16a322622fd970488948aef2981dd3499ba3d63fa3c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.5801895, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_refund_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_refund_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_refund_data.csv", "original_file_path": "seeds/shopify_gql_refund_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_refund_data", "fqn": ["shopify_integration_tests", "shopify_gql_refund_data"], "alias": "shopify_gql_refund_data", "checksum": {"name": "sha256", "checksum": "f8767945248aa31df8667d9a302c98da70ecfa3200f09ae9a8a08e56f648b1b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.5831885, "relation_name": "\"postgres\".\"public\".\"shopify_gql_refund_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_data": {"database": "postgres", "schema": "public", "name": "shopify_order_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_data.csv", "original_file_path": "seeds/shopify_order_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_data", "fqn": ["shopify_integration_tests", "shopify_order_data"], "alias": "shopify_order_data", "checksum": {"name": "sha256", "checksum": "274aec2c5b1f7cd936359683f33c830d2ef7067e6e445469df0c3b460ad9d56c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "bigint", "customer_id": "bigint", "location_id": "bigint", "user_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"created_at": "timestamp", "updated_at": "timestamp", "processed_at": "timestamp", "cancelled_at": "timestamp", "_fivetran_synced": "timestamp", "total_tax": "float", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "customer_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "location_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "user_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1757005796.5863764, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_media_image_data": {"database": "postgres", "schema": "public", "name": "shopify_media_image_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_media_image_data.csv", "original_file_path": "seeds/shopify_media_image_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_media_image_data", "fqn": ["shopify_integration_tests", "shopify_media_image_data"], "alias": "shopify_media_image_data", "checksum": {"name": "sha256", "checksum": "98621ab1fd6334df5ffa045d9642644d5e465d8684cd635dd5bf8c157f964966"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"media_id": "bigint", "image_id": "bigint", "image_alt_text": "varchar", "image_height": "integer", "image_url": "varchar", "image_width": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "image_alt_text": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_height": "integer", "image_url": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "image_width": "integer"}}, "created_at": 1757005796.5896761, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_variant_data": {"database": "postgres", "schema": "public", "name": "shopify_product_variant_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_variant_data.csv", "original_file_path": "seeds/shopify_product_variant_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_variant_data", "fqn": ["shopify_integration_tests", "shopify_product_variant_data"], "alias": "shopify_product_variant_data", "checksum": {"name": "sha256", "checksum": "82853fb5c0847393202bdfc6844cc43aad89d7d41f33a159a3c330c16cf864f9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "product_id": "bigint", "inventory_item_id": "bigint", "legacy_resource_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "legacy_resource_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1757005796.5930045, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_event_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_event_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_event_data.csv", "original_file_path": "seeds/shopify_fulfillment_event_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_event_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_event_data"], "alias": "shopify_fulfillment_event_data", "checksum": {"name": "sha256", "checksum": "ae538cd22df11081f1f4d2b6970c945d432f92af0e96fac2e10e1e09d886abef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.596137, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_fulfillment_data": {"database": "postgres", "schema": "public", "name": "shopify_fulfillment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_fulfillment_data.csv", "original_file_path": "seeds/shopify_fulfillment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_fulfillment_data", "fqn": ["shopify_integration_tests", "shopify_fulfillment_data"], "alias": "shopify_fulfillment_data", "checksum": {"name": "sha256", "checksum": "36993dd7ab6cd0951d3229c9d72237f4115292350e2659bdb717866f8fe8ebd8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.5991626, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_customer_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_customer_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_customer_tag_data.csv", "original_file_path": "seeds/shopify_gql_customer_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_customer_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_customer_tag_data"], "alias": "shopify_gql_customer_tag_data", "checksum": {"name": "sha256", "checksum": "b9990af8b8157368df2e7cd54ad712620ce79cfb8bcddbce8ceac25314d1f98f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.6021764, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_inventory_item_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_inventory_item_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_inventory_item_data.csv", "original_file_path": "seeds/shopify_gql_inventory_item_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_inventory_item_data", "fqn": ["shopify_integration_tests", "shopify_gql_inventory_item_data"], "alias": "shopify_gql_inventory_item_data", "checksum": {"name": "sha256", "checksum": "cb50caac3e13ddc3c4011ecbd1929f2c6876a6010e0e055ce0d32891a2caa6f0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.6052792, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_product_tag_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_product_tag_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_product_tag_data.csv", "original_file_path": "seeds/shopify_gql_product_tag_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_product_tag_data", "fqn": ["shopify_integration_tests", "shopify_gql_product_tag_data"], "alias": "shopify_gql_product_tag_data", "checksum": {"name": "sha256", "checksum": "8c043c435f2de4a4004471419a272adaf066c1e9e36fa2e9de62a6562d4d2e26"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.608305, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_product_media_data": {"database": "postgres", "schema": "public", "name": "shopify_product_media_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_product_media_data.csv", "original_file_path": "seeds/shopify_product_media_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_product_media_data", "fqn": ["shopify_integration_tests", "shopify_product_media_data"], "alias": "shopify_product_media_data", "checksum": {"name": "sha256", "checksum": "b38d774b588961b4cd6e5b8cdb9c0319dd694bcdd474a54a68e062b3cf488d44"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"product_id": "bigint", "media_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"product_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "media_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1757005796.6114128, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_inventory_quantity_data": {"database": "postgres", "schema": "public", "name": "shopify_inventory_quantity_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_inventory_quantity_data.csv", "original_file_path": "seeds/shopify_inventory_quantity_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_inventory_quantity_data", "fqn": ["shopify_integration_tests", "shopify_inventory_quantity_data"], "alias": "shopify_inventory_quantity_data", "checksum": {"name": "sha256", "checksum": "8fa9f26df5501b6f7a065d74a2da5bf70329b7197e8c11139cda950874243d1c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"updated_at": "timestamp", "id": "bigint", "inventory_item_id": "bigint", "inventory_level_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"updated_at": "timestamp", "id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_item_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "inventory_level_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1757005796.6146185, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_fulfillment_event_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_fulfillment_event_data.csv", "original_file_path": "seeds/shopify_gql_fulfillment_event_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data", "fqn": ["shopify_integration_tests", "shopify_gql_fulfillment_event_data"], "alias": "shopify_gql_fulfillment_event_data", "checksum": {"name": "sha256", "checksum": "c8df472434961ad12566344da5a47483bd18c4b9cb7b5eafd44f96f284aaebea"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.6176977, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_discount_code_free_shipping_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_discount_code_free_shipping_data.csv", "original_file_path": "seeds/shopify_gql_discount_code_free_shipping_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data", "fqn": ["shopify_integration_tests", "shopify_gql_discount_code_free_shipping_data"], "alias": "shopify_gql_discount_code_free_shipping_data", "checksum": {"name": "sha256", "checksum": "0d9313224e67ae163a3b90d05629775d330a68deef8c6826316ffa88d75254a2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.6207654, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_order_adjustment_data": {"database": "postgres", "schema": "public", "name": "shopify_order_adjustment_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_order_adjustment_data.csv", "original_file_path": "seeds/shopify_order_adjustment_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_order_adjustment_data", "fqn": ["shopify_integration_tests", "shopify_order_adjustment_data"], "alias": "shopify_order_adjustment_data", "checksum": {"name": "sha256", "checksum": "48ce96540f19450088c661fd48bd8f6d58bb4ca13a1f048880e9984be367172e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "order_id": "bigint", "refund_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "order_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "refund_id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}"}}, "created_at": 1757005796.6238458, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_discount_code_app_data": {"database": "postgres", "schema": "public", "name": "shopify_discount_code_app_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_discount_code_app_data.csv", "original_file_path": "seeds/shopify_discount_code_app_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_discount_code_app_data", "fqn": ["shopify_integration_tests", "shopify_discount_code_app_data"], "alias": "shopify_discount_code_app_data", "checksum": {"name": "sha256", "checksum": "079a9204224ded648d6e15b794bf77034e41f319b72801fcfee0f5b1c9e37d77"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"id": "bigint", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "varchar", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "varchar", "title": "varchar", "total_sales_amount": "float", "total_sales_currency_code": "varchar", "updated_at": "timestamp", "usage_limit": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"id": "{%- if target.type == 'bigquery' -%} INT64 {%- else -%} bigint {%- endif -%}", "applies_once_per_customer": "boolean", "applies_on_one_time_purchase": "boolean", "applies_on_subscription": "boolean", "async_usage_count": "integer", "codes_count_count": "integer", "codes_count_precision": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "combines_with_order_discounts": "boolean", "combines_with_product_discounts": "boolean", "combines_with_shipping_discounts": "boolean", "created_at": "timestamp", "customer_selection_all_customers": "boolean", "ends_at": "timestamp", "recurring_cycle_limit": "integer", "starts_at": "timestamp", "status": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "title": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "total_sales_amount": "float", "total_sales_currency_code": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}", "updated_at": "timestamp", "usage_limit": "integer"}}, "created_at": 1757005796.6272585, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_location_data": {"database": "postgres", "schema": "public", "name": "shopify_location_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_location_data.csv", "original_file_path": "seeds/shopify_location_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_location_data", "fqn": ["shopify_integration_tests", "shopify_location_data"], "alias": "shopify_location_data", "checksum": {"name": "sha256", "checksum": "781bb070fbf96fd7e01d4229ccbac91f77bcd52726ffea2de9fa36abe6804b38"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.6304574, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_tender_transaction_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_tender_transaction_data.csv", "original_file_path": "seeds/shopify_gql_tender_transaction_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_tender_transaction_data", "fqn": ["shopify_integration_tests", "shopify_gql_tender_transaction_data"], "alias": "shopify_gql_tender_transaction_data", "checksum": {"name": "sha256", "checksum": "6e660fced8b377b4a7c7a3ea5c4cb1e8dff259e0b3596bfff56868873a7348dc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.633548, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "seed.shopify_integration_tests.shopify_gql_media_image_data": {"database": "postgres", "schema": "public", "name": "shopify_gql_media_image_data", "resource_type": "seed", "package_name": "shopify_integration_tests", "path": "shopify_gql_media_image_data.csv", "original_file_path": "seeds/shopify_gql_media_image_data.csv", "unique_id": "seed.shopify_integration_tests.shopify_gql_media_image_data", "fqn": ["shopify_integration_tests", "shopify_gql_media_image_data"], "alias": "shopify_gql_media_image_data", "checksum": {"name": "sha256", "checksum": "6581609f609de50cc0b430e64d53a728502cdaea962a90bffd1e5f72079cfc47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}"}, "created_at": 1757005796.6365488, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_image_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_shopify/dbt_shopify/integration_tests", "depends_on": {"macros": []}}, "model.shopify_source.stg_shopify_gql__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_discount_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_discount_code"], "alias": "stg_shopify_gql__order_discount_code", "checksum": {"name": "sha256", "checksum": "46169dbd62882ab67770a3a78a62349267dba7b5a5a0ce940de18b35209b060c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Discount codes placed on orders.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.023223, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_discount_code_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_shopify_gql__order_discount_code_tmp')),\n staging_columns=get_graphql_order_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__refund", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__refund.sql", "original_file_path": "models/graphql/stg_shopify_gql__refund.sql", "unique_id": "model.shopify_source.stg_shopify_gql__refund", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__refund"], "alias": "stg_shopify_gql__refund", "checksum": {"name": "sha256", "checksum": "dcdb84868e1656f35342c6bc14ef62d6604ad84a1dffd60a6b759b4e9446bb12"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a refund within Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `refund_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "return_id": {"name": "return_id", "description": "Reference to the return which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_pres_amount": {"name": "total_refunded_pres_amount", "description": "The total amount across all transactions for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_pres_currency_code": {"name": "total_refunded_pres_currency_code", "description": "The three letter currency code for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_shop_amount": {"name": "total_refunded_shop_amount", "description": "The total amount across all transactions for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_shop_currency_code": {"name": "total_refunded_shop_currency_code", "description": "The three letter currency code for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.040234, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__refund_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_shopify_gql__refund_tmp')),\n staging_columns=get_graphql_refund_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as refund_id,\n note,\n order_id,\n staff_member_id as user_id,\n return_id,\n total_refunded_set_pres_amount as total_refunded_pres_amount,\n total_refunded_set_pres_currency_code as total_refunded_pres_currency_code,\n total_refunded_set_shop_amount as total_refunded_shop_amount,\n total_refunded_set_shop_currency_code as total_refunded_shop_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__refund.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n return_id\n \n as \n \n return_id\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n total_refunded_set_pres_amount\n \n as \n \n total_refunded_set_pres_amount\n \n, \n \n \n total_refunded_set_pres_currency_code\n \n as \n \n total_refunded_set_pres_currency_code\n \n, \n \n \n total_refunded_set_shop_amount\n \n as \n \n total_refunded_set_shop_amount\n \n, \n \n \n total_refunded_set_shop_currency_code\n \n as \n \n total_refunded_set_shop_currency_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as refund_id,\n note,\n order_id,\n staff_member_id as user_id,\n return_id,\n total_refunded_set_pres_amount as total_refunded_pres_amount,\n total_refunded_set_pres_currency_code as total_refunded_pres_currency_code,\n total_refunded_set_shop_amount as total_refunded_shop_amount,\n total_refunded_set_shop_currency_code as total_refunded_shop_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_level": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_level.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_level.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_level"], "alias": "stg_shopify_gql__inventory_level", "checksum": {"name": "sha256", "checksum": "666a85a3945cef763805af14862e54687fbadf91916472cc6858e442ff60cf23"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory level represents the quantities of an inventory item for a location. Each inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_level_id`, `inventory_item_id`, `location_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0085266, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_level_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_shopify_gql__inventory_level_tmp')),\n staging_columns=get_graphql_inventory_level_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_level_id,\n inventory_item_id,\n location_id,\n can_deactivate,\n deactivation_alert,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'inventory_item_id', 'location_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_level_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_level_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_level.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n can_deactivate\n \n as \n \n can_deactivate\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deactivation_alert\n \n as \n \n deactivation_alert\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_level_id,\n inventory_item_id,\n location_id,\n can_deactivate,\n deactivation_alert,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_item_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(location_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__location": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__location", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__location.sql", "original_file_path": "models/graphql/stg_shopify_gql__location.sql", "unique_id": "model.shopify_source.stg_shopify_gql__location", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__location"], "alias": "stg_shopify_gql__location", "checksum": {"name": "sha256", "checksum": "8b73ec5a42911c795216811ac8867c5c3d611587e19aa46f698ed21e0802e7df"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `location_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in, this matches the REST API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy": {"name": "is_legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0123355, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__location_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_shopify_gql__location_tmp')),\n staging_columns=get_graphql_location_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n is_active,\n address_1,\n address_2,\n city,\n country_code as country, -- match REST API format\n country_code,\n country as country_name,\n is_fulfillment_service as is_legacy,\n phone,\n province,\n province_code,\n zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__location_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_location_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__location_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__location.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__location_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\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_code\n \n as \n \n country_code\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_active\n \n as \n \n is_active\n \n, \n \n \n is_fulfillment_service\n \n as \n \n is_fulfillment_service\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n is_active,\n address_1,\n address_2,\n city,\n country_code as country, -- match REST API format\n country_code,\n country as country_name,\n is_fulfillment_service as is_legacy,\n phone,\n province,\n province_code,\n zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order.sql", "original_file_path": "models/graphql/stg_shopify_gql__order.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order"], "alias": "stg_shopify_gql__order", "checksum": {"name": "sha256", "checksum": "9c104f3d7986e5c83382a7cec256a7666306e5f61fdbd590a8c0cac6b185c13e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "A globally-unique ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the customer who placed the order. Useful for fraud detection and geographic analysis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The shop currency when the order was placed. For example, \"USD\" or \"CAD\".", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "An order's financial status for display in the Shopify admin. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFinancialStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's fulfillment status that displays in the Shopify admin to merchants. For example, an order might be unfulfilled or scheduled. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFulfillmentStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The unique identifier for the order that appears on the order page in the Shopify admin and the Order status page. For example, \"#1001\", \"EN1001\", or \"1001-A\". This value isn't unique across multiple stores.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The optional note associated with the order. Contains additional information or instructions added by merchants or customers during the order process. Commonly used for special delivery instructions, gift messages, or internal processing notes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The name of the source associated with the order, such as \"web\", \"mobile_app\", or \"pos\". Use this field to identify the platform where the order was placed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_amount": {"name": "total_discounts_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_amount": {"name": "total_discounts_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_currency_code": {"name": "total_discounts_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_currency_code": {"name": "total_discounts_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights before returns, in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The staff member who created or is responsible for the order. Useful for tracking which team member handled phone orders, manual orders, or order modifications. Returns null for orders created directly by customers through the online store.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL where customers can check their order's current status, including tracking information and delivery updates. Provides order tracking links in emails, apps, or customer communications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received_shop_amount": {"name": "total_tip_received_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_amount": {"name": "total_tip_received_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_currency_code": {"name": "total_tip_received_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_currency_code": {"name": "total_tip_received_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_amount": {"name": "shipping_cost_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_amount": {"name": "shipping_cost_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_currency_code": {"name": "shipping_cost_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_currency_code": {"name": "shipping_cost_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.9701412, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_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_shopify_gql__order_tmp')),\n staging_columns=get_graphql_order_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_id,\n staff_member_id as user_id,\n total_discounts_set_pres_amount as total_discounts_pres_amount,\n total_discounts_set_pres_currency_code as total_discounts_pres_currency_code,\n total_discounts_set_shop_amount as total_discounts_shop_amount,\n total_discounts_set_shop_currency_code as total_discounts_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n source_name,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received_set_pres_amount as total_tip_received_pres_amount,\n total_tip_received_set_pres_currency_code as total_tip_received_pres_currency_code,\n total_tip_received_set_shop_amount as total_tip_received_shop_amount,\n total_tip_received_set_shop_currency_code as total_tip_received_shop_currency_code,\n location_id,\n name,\n note,\n number, -- Will be included in 2025-07 release of GraphQL API\n cancel_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(cancelled_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as cancelled_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n currency_code as currency,\n customer_id,\n lower(email) as email,\n lower(display_financial_status) as financial_status,\n lower(display_fulfillment_status) as fulfillment_status,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n client_ip as browser_ip,\n total_shipping_price_set_pres_amount as shipping_cost_pres_amount,\n total_shipping_price_set_pres_currency_code as shipping_cost_pres_currency_code,\n total_shipping_price_set_shop_amount as shipping_cost_shop_amount,\n total_shipping_price_set_shop_currency_code as shipping_cost_shop_currency_code,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n app_id,\n customer_locale,\n status_page_url as order_status_url,\n presentment_currency_code as presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n customer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('order_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n app_id\n \n as \n \n app_id\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n cancel_reason\n \n as \n \n cancel_reason\n \n, \n \n \n cancelled_at\n \n as \n \n cancelled_at\n \n, \n \n \n client_ip\n \n as \n \n client_ip\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n confirmed\n \n as \n \n confirmed\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n customer_accepts_marketing\n \n as \n \n customer_accepts_marketing\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_locale\n \n as \n \n customer_locale\n \n, \n \n \n display_financial_status\n \n as \n \n display_financial_status\n \n, \n \n \n display_fulfillment_status\n \n as \n \n display_fulfillment_status\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n presentment_currency_code\n \n as \n \n presentment_currency_code\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n status_page_url\n \n as \n \n status_page_url\n \n, \n \n \n subtotal_price_set_pres_amount\n \n as \n \n subtotal_price_set_pres_amount\n \n, \n \n \n subtotal_price_set_pres_currency_code\n \n as \n \n subtotal_price_set_pres_currency_code\n \n, \n \n \n subtotal_price_set_shop_amount\n \n as \n \n subtotal_price_set_shop_amount\n \n, \n \n \n subtotal_price_set_shop_currency_code\n \n as \n \n subtotal_price_set_shop_currency_code\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n total_discounts_set_pres_amount\n \n as \n \n total_discounts_set_pres_amount\n \n, \n \n \n total_discounts_set_pres_currency_code\n \n as \n \n total_discounts_set_pres_currency_code\n \n, \n \n \n total_discounts_set_shop_amount\n \n as \n \n total_discounts_set_shop_amount\n \n, \n \n \n total_discounts_set_shop_currency_code\n \n as \n \n total_discounts_set_shop_currency_code\n \n, \n \n \n total_price_set_pres_amount\n \n as \n \n total_price_set_pres_amount\n \n, \n \n \n total_price_set_pres_currency_code\n \n as \n \n total_price_set_pres_currency_code\n \n, \n \n \n total_price_set_shop_amount\n \n as \n \n total_price_set_shop_amount\n \n, \n \n \n total_price_set_shop_currency_code\n \n as \n \n total_price_set_shop_currency_code\n \n, \n \n \n total_shipping_price_set_pres_amount\n \n as \n \n total_shipping_price_set_pres_amount\n \n, \n \n \n total_shipping_price_set_pres_currency_code\n \n as \n \n total_shipping_price_set_pres_currency_code\n \n, \n \n \n total_shipping_price_set_shop_amount\n \n as \n \n total_shipping_price_set_shop_amount\n \n, \n \n \n total_shipping_price_set_shop_currency_code\n \n as \n \n total_shipping_price_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\n \n, \n \n \n total_tip_received_set_pres_amount\n \n as \n \n total_tip_received_set_pres_amount\n \n, \n \n \n total_tip_received_set_pres_currency_code\n \n as \n \n total_tip_received_set_pres_currency_code\n \n, \n \n \n total_tip_received_set_shop_amount\n \n as \n \n total_tip_received_set_shop_amount\n \n, \n \n \n total_tip_received_set_shop_currency_code\n \n as \n \n total_tip_received_set_shop_currency_code\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_id,\n staff_member_id as user_id,\n total_discounts_set_pres_amount as total_discounts_pres_amount,\n total_discounts_set_pres_currency_code as total_discounts_pres_currency_code,\n total_discounts_set_shop_amount as total_discounts_shop_amount,\n total_discounts_set_shop_currency_code as total_discounts_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n source_name,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received_set_pres_amount as total_tip_received_pres_amount,\n total_tip_received_set_pres_currency_code as total_tip_received_pres_currency_code,\n total_tip_received_set_shop_amount as total_tip_received_shop_amount,\n total_tip_received_set_shop_currency_code as total_tip_received_shop_currency_code,\n location_id,\n name,\n note,\n number, -- Will be included in 2025-07 release of GraphQL API\n cancel_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(cancelled_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as cancelled_timestamp,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n currency_code as currency,\n customer_id,\n lower(email) as email,\n lower(display_financial_status) as financial_status,\n lower(display_fulfillment_status) as fulfillment_status,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n client_ip as browser_ip,\n total_shipping_price_set_pres_amount as shipping_cost_pres_amount,\n total_shipping_price_set_pres_currency_code as shipping_cost_pres_currency_code,\n total_shipping_price_set_shop_amount as shipping_cost_shop_amount,\n total_shipping_price_set_shop_currency_code as shipping_cost_shop_currency_code,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n app_id,\n customer_locale,\n status_page_url as order_status_url,\n presentment_currency_code as presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n customer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_application": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_application.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_application.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_application", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_application"], "alias": "stg_shopify_gql__discount_application", "checksum": {"name": "sha256", "checksum": "4bf285a6880d9d733f1165b4e3f0f50282d80b3e33bb5de1eba42941ef54a367"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing discount applications, which define how discounts were applied at the order level.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to all line items (`all`) or only those that are specifically entitled (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount value is a `percentage` or `fixed_amount`. If `target_type` is `shipping_line`, only `percentage` is accepted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.9897351, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_application_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_shopify_gql__discount_application_tmp')),\n staging_columns=get_graphql_discount_application_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n lower(allocation_method) as allocation_method,\n upper(code) as code,\n index,\n order_id,\n lower(target_selection) as target_selection,\n lower(target_type) as target_type,\n value_amount,\n value_percentage,\n value_currency_code,\n case \n when value_percentage is not null then 'percentage'\n when lower(target_type) = 'shipping_line' then 'shipping'\n when value_amount is not null then 'fixed_amount'\n else null end as value_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['index', 'order_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_application_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_application.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocation_method\n \n as \n \n allocation_method\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n target_selection\n \n as \n \n target_selection\n \n, \n \n \n target_type\n \n as \n \n target_type\n \n, \n \n \n value_amount\n \n as \n \n value_amount\n \n, \n \n \n value_currency_code\n \n as \n \n value_currency_code\n \n, \n \n \n value_percentage\n \n as \n \n value_percentage\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n lower(allocation_method) as allocation_method,\n upper(code) as code,\n index,\n order_id,\n lower(target_selection) as target_selection,\n lower(target_type) as target_type,\n value_amount,\n value_percentage,\n value_currency_code,\n case \n when value_percentage is not null then 'percentage'\n when lower(target_type) = 'shipping_line' then 'shipping'\n when value_amount is not null then 'fixed_amount'\n else null end as value_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__metafield": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__metafield", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__metafield.sql", "original_file_path": "models/graphql/stg_shopify_gql__metafield.sql", "unique_id": "model.shopify_source.stg_shopify_gql__metafield", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__metafield"], "alias": "stg_shopify_gql__metafield", "checksum": {"name": "sha256", "checksum": "4396fe0f88e8e01449008a5e44f202694eca0ffff8fd9a6bf7fb8fc3ce6df932"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context. \n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `metafield_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_id": {"name": "metafield_id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource_id": {"name": "owner_resource_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_reference": {"name": "metafield_reference", "description": "Combination of the namespace and key columns. This field is key for metafield mapping in downstream models.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating the most up to date record identified by the most recent updated_at field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0168896, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_metafield', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__metafield_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_shopify_gql__metafield_tmp')),\n staging_columns=get_graphql_metafield_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(type) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n lower({{ dbt.concat([\"namespace\",\"'_'\",\"key\"]) }}) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_metafield_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt.concat", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__metafield.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n 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 id\n \n as \n \n id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n namespace\n \n as \n \n namespace\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n owner_resource\n \n as \n \n owner_resource\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(type) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n lower(namespace || '_' || key) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_image": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_image", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__media_image.sql", "original_file_path": "models/graphql/stg_shopify_gql__media_image.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_image", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__media_image"], "alias": "stg_shopify_gql__media_image", "checksum": {"name": "sha256", "checksum": "69407476920c94773e783d596ed84aaedfefb3524efba4a654239771ec7bad8f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing image-specific properties for media assets.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `media_id`, `image_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0142376, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__media_image_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__media_image_tmp')),\n staging_columns=get_graphql_media_image_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['media_id', 'image_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__media_image_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_media_image_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__media_image.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation,\n md5(cast(coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(image_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__shop": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__shop", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__shop.sql", "original_file_path": "models/graphql/stg_shopify_gql__shop.sql", "unique_id": "model.shopify_source.stg_shopify_gql__shop", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__shop"], "alias": "stg_shopify_gql__shop", "checksum": {"name": "sha256", "checksum": "b0950c23a4aef6080249618f83c620290043117629346a3efd333ad95e6e0d90"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `shop_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_checkout_api_supported": {"name": "has_checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_password_enabled": {"name": "is_password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_setup_required": {"name": "is_setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_shipping_taxes": {"name": "has_shipping_taxes", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included_in_price": {"name": "has_taxes_included_in_price", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_abbreviation": {"name": "timezone_abbreviation", "description": "The shop's time zone abbreviation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset": {"name": "timezone_offset", "description": "The shop's time zone offset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset_minutes": {"name": "timezone_offset_minutes", "description": "The shop's time zone offset expressed as a number of minutes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0475845, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__shop_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_shopify_gql__shop_tmp')),\n staging_columns=get_graphql_shop_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n billing_address_address_1 as address_1,\n billing_address_address_2 as address_2,\n billing_address_city as city,\n billing_address_province as province,\n billing_address_province_code as province_code,\n billing_address_country_code_v_2 as country, -- in REST API country = code\n billing_address_country_code_v_2 as country_code,\n billing_address_country as country_name,\n billing_address_zip as zip,\n billing_address_latitude as latitude,\n billing_address_longitude as longitude,\n currency_code as currency,\n {{ shopify_source.json_to_string(\"enabled_presentment_currencies\", source_columns_in_relation) }} as enabled_presentment_currencies,\n contact_email as customer_email,\n email,\n primary_domain_host as domain,\n billing_address_phone as phone,\n timezone_abbreviation,\n {# timezone_offset is formatted like -0400 instead of -04:00 #}\n timezone_offset, \n timezone_offset_minutes, \n iana_timezone, \n primary_domain_localization_default_locale as primary_locale,\n weight_unit,\n myshopify_domain,\n shop_owner_name as shop_owner,\n tax_shipping as has_shipping_taxes,\n coalesce(taxes_included, false) as has_taxes_included_in_price,\n features_storefront as has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n currency_formats_money_format as money_format,\n currency_formats_money_in_emails_format as money_in_emails_format,\n currency_formats_money_with_currency_format as money_with_currency_format,\n currency_formats_money_with_currency_in_emails_format as money_with_currency_in_emails_format,\n plan_display_name,\n password_enabled as is_password_enabled,\n setup_required as is_setup_required,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__shop_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_shop_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__shop_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__shop.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code_v_2\n \n as \n \n billing_address_country_code_v_2\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n checkout_api_supported\n \n as \n \n checkout_api_supported\n \n, \n \n \n contact_email\n \n as \n \n contact_email\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n currency_formats_money_format\n \n as \n \n currency_formats_money_format\n \n, \n \n \n currency_formats_money_in_emails_format\n \n as \n \n currency_formats_money_in_emails_format\n \n, \n \n \n currency_formats_money_with_currency_format\n \n as \n \n currency_formats_money_with_currency_format\n \n, \n \n \n currency_formats_money_with_currency_in_emails_format\n \n as \n \n currency_formats_money_with_currency_in_emails_format\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n enabled_presentment_currencies\n \n as \n \n enabled_presentment_currencies\n \n, \n \n \n features_storefront\n \n as \n \n features_storefront\n \n, \n \n \n iana_timezone\n \n as \n \n iana_timezone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n myshopify_domain\n \n as \n \n myshopify_domain\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n password_enabled\n \n as \n \n password_enabled\n \n, \n \n \n plan_display_name\n \n as \n \n plan_display_name\n \n, \n \n \n primary_domain_host\n \n as \n \n primary_domain_host\n \n, \n \n \n primary_domain_localization_default_locale\n \n as \n \n primary_domain_localization_default_locale\n \n, \n \n \n setup_required\n \n as \n \n setup_required\n \n, \n \n \n shop_owner_name\n \n as \n \n shop_owner_name\n \n, \n \n \n tax_shipping\n \n as \n \n tax_shipping\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n timezone_abbreviation\n \n as \n \n timezone_abbreviation\n \n, \n \n \n timezone_offset\n \n as \n \n timezone_offset\n \n, \n \n \n timezone_offset_minutes\n \n as \n \n timezone_offset_minutes\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n billing_address_address_1 as address_1,\n billing_address_address_2 as address_2,\n billing_address_city as city,\n billing_address_province as province,\n billing_address_province_code as province_code,\n billing_address_country_code_v_2 as country, -- in REST API country = code\n billing_address_country_code_v_2 as country_code,\n billing_address_country as country_name,\n billing_address_zip as zip,\n billing_address_latitude as latitude,\n billing_address_longitude as longitude,\n currency_code as currency,\n enabled_presentment_currencies as enabled_presentment_currencies,\n contact_email as customer_email,\n email,\n primary_domain_host as domain,\n billing_address_phone as phone,\n timezone_abbreviation,\n \n timezone_offset, \n timezone_offset_minutes, \n iana_timezone, \n primary_domain_localization_default_locale as primary_locale,\n weight_unit,\n myshopify_domain,\n shop_owner_name as shop_owner,\n tax_shipping as has_shipping_taxes,\n coalesce(taxes_included, false) as has_taxes_included_in_price,\n features_storefront as has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n currency_formats_money_format as money_format,\n currency_formats_money_in_emails_format as money_in_emails_format,\n currency_formats_money_with_currency_format as money_with_currency_format,\n currency_formats_money_with_currency_in_emails_format as money_with_currency_in_emails_format,\n plan_display_name,\n password_enabled as is_password_enabled,\n setup_required as is_setup_required,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tender_transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__tender_transaction.sql", "original_file_path": "models/graphql/stg_shopify_gql__tender_transaction.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__tender_transaction"], "alias": "stg_shopify_gql__tender_transaction", "checksum": {"name": "sha256", "checksum": "10ec55a65a5226c5e72a4837722d9753808b9fab6f01ea59b97f8b9733ff6e95"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `transaction_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0502336, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__tender_transaction_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_shopify_gql__tender_transaction_tmp')),\n staging_columns=get_graphql_tender_transaction_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency_code as currency,\n payment_method,\n remote_reference,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__tender_transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_tender_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__tender_transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n payment_method\n \n as \n \n payment_method\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n remote_reference\n \n as \n \n remote_reference\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency_code as currency,\n payment_method,\n remote_reference,\n user_id,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_line"], "alias": "stg_shopify_gql__order_line", "checksum": {"name": "sha256", "checksum": "109c38abe09fecda46bfe1c3abaab41598133e0972636f50bb20d067987f3185"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.9750257, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_line_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_shopify_gql__order_line_tmp')),\n staging_columns=get_graphql_order_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_line_id,\n row_number() over(partition by order_id, source_relation order by id asc) as index,\n name,\n order_id,\n case \n when unfulfilled_quantity = 0 then 'fulfilled'\n when unfulfilled_quantity > 0 and unfulfilled_quantity < quantity then 'partial'\n when unfulfilled_quantity = quantity then 'unfulfilled'\n else null \n end as fulfillment_status,\n is_gift_card,\n original_total_set_pres_amount as price_pres_amount,\n original_total_set_pres_currency_code as price_pres_currency_code,\n original_total_set_shop_amount as price_shop_amount,\n original_total_set_shop_currency_code as price_shop_currency_code,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n title,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n variant_id,\n variant_title,\n vendor,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n {{ fivetran_utils.fill_pass_through_columns('order_line_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_gift_card\n \n as \n \n is_gift_card\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n original_total_set_pres_amount\n \n as \n \n original_total_set_pres_amount\n \n, \n \n \n original_total_set_pres_currency_code\n \n as \n \n original_total_set_pres_currency_code\n \n, \n \n \n original_total_set_shop_amount\n \n as \n \n original_total_set_shop_amount\n \n, \n \n \n original_total_set_shop_currency_code\n \n as \n \n original_total_set_shop_currency_code\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\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 total_discount_set_pres_amount\n \n as \n \n total_discount_set_pres_amount\n \n, \n \n \n total_discount_set_pres_currency_code\n \n as \n \n total_discount_set_pres_currency_code\n \n, \n \n \n total_discount_set_shop_amount\n \n as \n \n total_discount_set_shop_amount\n \n, \n \n \n total_discount_set_shop_currency_code\n \n as \n \n total_discount_set_shop_currency_code\n \n, \n \n \n unfulfilled_quantity\n \n as \n \n unfulfilled_quantity\n \n, \n \n \n variant_id\n \n as \n \n variant_id\n \n, \n \n \n variant_title\n \n as \n \n variant_title\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_line_id,\n row_number() over(partition by order_id, source_relation order by id asc) as index,\n name,\n order_id,\n case \n when unfulfilled_quantity = 0 then 'fulfilled'\n when unfulfilled_quantity > 0 and unfulfilled_quantity < quantity then 'partial'\n when unfulfilled_quantity = quantity then 'unfulfilled'\n else null \n end as fulfillment_status,\n is_gift_card,\n original_total_set_pres_amount as price_pres_amount,\n original_total_set_pres_currency_code as price_pres_currency_code,\n original_total_set_shop_amount as price_shop_amount,\n original_total_set_shop_currency_code as price_shop_currency_code,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n title,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n variant_id,\n variant_title,\n vendor,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection"], "alias": "stg_shopify_gql__collection", "checksum": {"name": "sha256", "checksum": "f3cc283d3c7ac17d0c9b19de8ef5940574461038364cc5f2e02db114340908bb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\"). \n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "rule_logic": {"name": "rule_logic", "description": "Whether the `rules` are disjunctive (logical `OR`) or conjunctive (logical `AND`)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values incline - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.9839747, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_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_shopify_gql__collection_tmp')),\n staging_columns=get_graphql_collection_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when applied_disjunctively is null then null\n when applied_disjunctively then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n sort_order,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__collection.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n applied_disjunctively\n \n as \n \n applied_disjunctively\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n sort_order\n \n as \n \n sort_order\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 \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when applied_disjunctively is null then null\n when applied_disjunctively then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n sort_order,\n title,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_adjustment.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_adjustment.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_adjustment"], "alias": "stg_shopify_gql__order_adjustment", "checksum": {"name": "sha256", "checksum": "9ddd660936d0935e7496a6a0384b2fbb096e604fec6082d155ae5d6594d61a81"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_adjustment_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_id": {"name": "order_adjustment_id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three letter currency code for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three letter shop currency code of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_pres": {"name": "tax_amount_pres", "description": "The tax amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_pres_currency_code": {"name": "tax_amount_pres_currency_code", "description": "The three letter currency code for the tax of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_shop": {"name": "tax_amount_shop", "description": "The tax amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_shop_currency_code": {"name": "tax_amount_shop_currency_code", "description": "The three letter shop currency code of the tax for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.022273, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_adjustment_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__order_adjustment_tmp')),\n staging_columns=get_graphql_order_adjustment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_amount as amount_shop,\n amount_set_shop_currency_code as amount_shop_currency_code,\n tax_amount_set_pres_amount as tax_amount_pres,\n tax_amount_set_pres_currency_code as tax_amount_pres_currency_code,\n tax_amount_set_shop_amount as tax_amount_shop,\n tax_amount_set_shop_currency_code as tax_amount_shop_currency_code,\n reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_adjustment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_adjustment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_adjustment.sql", "compiled": true, "compiled_code": "\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n amount_set_pres_amount\n \n as \n \n amount_set_pres_amount\n \n, \n \n \n amount_set_pres_currency_code\n \n as \n \n amount_set_pres_currency_code\n \n, \n \n \n amount_set_shop_amount\n \n as \n \n amount_set_shop_amount\n \n, \n \n \n amount_set_shop_currency_code\n \n as \n \n amount_set_shop_currency_code\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n tax_amount_set_pres_amount\n \n as \n \n tax_amount_set_pres_amount\n \n, \n \n \n tax_amount_set_pres_currency_code\n \n as \n \n tax_amount_set_pres_currency_code\n \n, \n \n \n tax_amount_set_shop_amount\n \n as \n \n tax_amount_set_shop_amount\n \n, \n \n \n tax_amount_set_shop_currency_code\n \n as \n \n tax_amount_set_shop_currency_code\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_amount as amount_shop,\n amount_set_shop_currency_code as amount_shop_currency_code,\n tax_amount_set_pres_amount as tax_amount_pres,\n tax_amount_set_pres_currency_code as tax_amount_pres_currency_code,\n tax_amount_set_shop_amount as tax_amount_shop,\n tax_amount_set_shop_currency_code as tax_amount_shop_currency_code,\n reason,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__transaction", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__transaction.sql", "original_file_path": "models/graphql/stg_shopify_gql__transaction.sql", "unique_id": "model.shopify_source.stg_shopify_gql__transaction", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__transaction"], "alias": "stg_shopify_gql__transaction", "checksum": {"name": "sha256", "checksum": "7424657329c3c4945c6c79b2326dd4991efaf952abff49c191f08dd9ccb5587b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `transaction_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of the transaction in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three letter currency code of the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of the transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three letter currency code of the shop's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0525591, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__transaction_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_shopify_gql__transaction_tmp')),\n staging_columns=get_graphql_transaction_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_shop_amount as amount_shop,\n device_id, -- Will be included in 2025-07 release of GraphQL API\n gateway,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_currency_code as amount_shop_currency_code,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n lower(kind) as kind, -- lower in REST api\n {{ shopify_source.json_to_string(\"receipt_json\", source_columns_in_relation) }} as receipt,\n currency_exchange_id, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_adjustment, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_original_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_final_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_currency, -- Will be included in 2025-07 release of GraphQL API\n error_code,\n lower(status) as status, -- lower in REST api\n staff_member_id as user_id,\n authorization_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(authorization_expires_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as authorization_expires_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('transaction_pass_through_columns') }}\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount_set_pres_amount\n \n as \n \n amount_set_pres_amount\n \n, \n \n \n amount_set_pres_currency_code\n \n as \n \n amount_set_pres_currency_code\n \n, \n \n \n amount_set_shop_amount\n \n as \n \n amount_set_shop_amount\n \n, \n \n \n amount_set_shop_currency_code\n \n as \n \n amount_set_shop_currency_code\n \n, \n \n \n authorization_code\n \n as \n \n authorization_code\n \n, \n \n \n authorization_expires_at\n \n as \n \n authorization_expires_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n error_code\n \n as \n \n error_code\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n payment_avs_result_code\n \n as \n \n payment_avs_result_code\n \n, \n \n \n payment_credit_card_bin\n \n as \n \n payment_credit_card_bin\n \n, \n \n \n payment_credit_card_company\n \n as \n \n payment_credit_card_company\n \n, \n \n \n payment_credit_card_number\n \n as \n \n payment_credit_card_number\n \n, \n \n \n payment_cvv_result_code\n \n as \n \n payment_cvv_result_code\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n cast(null as TEXT) as \n \n receipt_json\n \n , \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n staff_member_id\n \n as \n \n staff_member_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n currency_exchange_id\n \n as \n \n currency_exchange_id\n \n, \n \n \n currency_exchange_adjustment\n \n as \n \n currency_exchange_adjustment\n \n, \n \n \n currency_exchange_original_amount\n \n as \n \n currency_exchange_original_amount\n \n, \n \n \n currency_exchange_final_amount\n \n as \n \n currency_exchange_final_amount\n \n, \n \n \n currency_exchange_currency\n \n as \n \n currency_exchange_currency\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n refund_id,\n amount_set_pres_amount as amount_pres,\n amount_set_shop_amount as amount_shop,\n device_id, -- Will be included in 2025-07 release of GraphQL API\n gateway,\n amount_set_pres_currency_code as amount_pres_currency_code,\n amount_set_shop_currency_code as amount_shop_currency_code,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n lower(kind) as kind, -- lower in REST api\n receipt_json as receipt,\n currency_exchange_id, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_adjustment, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_original_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_final_amount, -- Will be included in 2025-07 release of GraphQL API\n currency_exchange_currency, -- Will be included in 2025-07 release of GraphQL API\n error_code,\n lower(status) as status, -- lower in REST api\n staff_member_id as user_id,\n authorization_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(authorization_expires_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as authorization_expires_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_event": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_event.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_event.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_event"], "alias": "stg_shopify_gql__fulfillment_event", "checksum": {"name": "sha256", "checksum": "e8a4a0010c4cfa96bfd6c5a789ddf6df815ada5e397d8ee06d7480eb9a6150ba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_event_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_event_id": {"name": "fulfillment_event_id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0013094, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_event_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_shopify_gql__fulfillment_event_tmp')),\n staging_columns=get_graphql_fulfillment_event_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n lower(status) as status,\n message,\n {{ shopify_source.fivetran_convert_timezone(column='cast(estimated_delivery_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as estimated_delivery_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(happened_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_event_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_event.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\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 created_at\n \n as \n \n created_at\n \n, \n \n \n estimated_delivery_at\n \n as \n \n estimated_delivery_at\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n happened_at\n \n as \n \n happened_at\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 longitude\n \n as \n \n longitude\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n lower(status) as status,\n message,\n cast(\n cast(cast(estimated_delivery_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as estimated_delivery_at,\n cast(\n cast(cast(happened_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_app": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_app.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_app.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_app"], "alias": "stg_shopify_gql__discount_code_app", "checksum": {"name": "sha256", "checksum": "0ba65d555b341ea472c2d2b467241a6df089e4b223676e974feffdd7f747df7a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for discount codes created through third-party apps in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.9919128, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_discount_code_app', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_app_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_shopify_gql__discount_code_app_tmp')),\n staging_columns=get_graphql_discount_code_app_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_app_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_app_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_app.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count_count\n \n as \n \n codes_count_count\n \n, \n \n \n codes_count_precision\n \n as \n \n codes_count_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_shipping_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_shipping_line"], "alias": "stg_shopify_gql__order_shipping_line", "checksum": {"name": "sha256", "checksum": "5da193b8bb92f55d18b8e41ab292c215df78b4d69d5380fa52172a808a1fd08d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents the shipping details that the customer chose for their order.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_shipping_line_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_pres_amount": {"name": "discounted_price_pres_amount", "description": "Shipping price in customer currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_pres_currency_code": {"name": "discounted_price_pres_currency_code", "description": "Three digit customer currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_shop_amount": {"name": "discounted_price_shop_amount", "description": "Shipping price in shop currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_shop_currency_code": {"name": "discounted_price_shop_currency_code", "description": "Three digit shop currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The pre-tax shipping price without any discounts applied in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The pre-tax shipping price without any discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.029983, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_shipping_line_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_shopify_gql__order_shipping_line_tmp')),\n staging_columns=get_graphql_order_shipping_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price_set_pres_amount as discounted_price_pres_amount,\n discounted_price_set_pres_currency_code as discounted_price_pres_currency_code,\n discounted_price_set_shop_amount as discounted_price_shop_amount,\n discounted_price_set_shop_currency_code as discounted_price_shop_currency_code,\n phone,\n original_price_set_pres_amount as price_pres_amount,\n original_price_set_pres_currency_code as price_pres_currency_code,\n original_price_set_shop_amount as price_shop_amount,\n original_price_set_shop_currency_code as price_shop_currency_code,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n discounted_price_set_pres_amount\n \n as \n \n discounted_price_set_pres_amount\n \n, \n \n \n discounted_price_set_pres_currency_code\n \n as \n \n discounted_price_set_pres_currency_code\n \n, \n \n \n discounted_price_set_shop_amount\n \n as \n \n discounted_price_set_shop_amount\n \n, \n \n \n discounted_price_set_shop_currency_code\n \n as \n \n discounted_price_set_shop_currency_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n original_price_set_pres_amount\n \n as \n \n original_price_set_pres_amount\n \n, \n \n \n original_price_set_pres_currency_code\n \n as \n \n original_price_set_pres_currency_code\n \n, \n \n \n original_price_set_shop_amount\n \n as \n \n original_price_set_shop_amount\n \n, \n \n \n original_price_set_shop_currency_code\n \n as \n \n original_price_set_shop_currency_code\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price_set_pres_amount as discounted_price_pres_amount,\n discounted_price_set_pres_currency_code as discounted_price_pres_currency_code,\n discounted_price_set_shop_amount as discounted_price_shop_amount,\n discounted_price_set_shop_currency_code as discounted_price_shop_currency_code,\n phone,\n original_price_set_pres_amount as price_pres_amount,\n original_price_set_pres_currency_code as price_pres_currency_code,\n original_price_set_shop_amount as price_shop_amount,\n original_price_set_shop_currency_code as price_shop_currency_code,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_line_refund.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_line_refund.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_line_refund"], "alias": "stg_shopify_gql__order_line_refund", "checksum": {"name": "sha256", "checksum": "0402af2a04adb3d40bbdc43cd8f592cecec885892b79aedebe455210880640fe"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item refund in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_refund_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_line_refund_id": {"name": "order_line_refund_id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location where the items will be restocked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_pres_amount": {"name": "subtotal_pres_amount", "description": "The refunded subtotal amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_pres_currency_code": {"name": "subtotal_pres_currency_code", "description": "The three letter currency code for the subtotal the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_shop_amount": {"name": "subtotal_shop_amount", "description": "The refunded subtotal amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_shop_currency_code": {"name": "subtotal_shop_currency_code", "description": "The three letter currency code for the subtotal in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three letter currency code of the tax the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three letter currency code of the tax in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0261717, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_line_refund_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_shopify_gql__order_line_refund_tmp')),\n staging_columns=get_graphql_order_line_refund_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal_set_pres_amount as subtotal_pres_amount,\n subtotal_set_pres_currency_code as subtotal_pres_currency_code,\n subtotal_set_shop_amount as subtotal_shop_amount,\n subtotal_set_shop_currency_code as subtotal_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n quantity,\n refund_id,\n lower(restock_type) as restock_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_refund_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_line_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_line_refund.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n restock_type\n \n as \n \n restock_type\n \n, \n \n \n subtotal_set_pres_amount\n \n as \n \n subtotal_set_pres_amount\n \n, \n \n \n subtotal_set_pres_currency_code\n \n as \n \n subtotal_set_pres_currency_code\n \n, \n \n \n subtotal_set_shop_amount\n \n as \n \n subtotal_set_shop_amount\n \n, \n \n \n subtotal_set_shop_currency_code\n \n as \n \n subtotal_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal_set_pres_amount as subtotal_pres_amount,\n subtotal_set_pres_currency_code as subtotal_pres_currency_code,\n subtotal_set_shop_amount as subtotal_shop_amount,\n subtotal_set_shop_currency_code as subtotal_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n quantity,\n refund_id,\n lower(restock_type) as restock_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_variant.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_variant.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_variant"], "alias": "stg_shopify_gql__product_variant", "checksum": {"name": "sha256", "checksum": "c7030869bd75cbabff68beaf7e71249275594b03fc2b06429962e8c596ba07de"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product variant in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `variant_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_available_for_sale": {"name": "is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_components_required": {"name": "has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0359037, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_variant_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_shopify_gql__product_variant_tmp')),\n staging_columns=get_graphql_product_variant_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n taxable as is_taxable,\n barcode,\n inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n tax_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('product_variant_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_variant_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n available_for_sale\n \n as \n \n available_for_sale\n \n, \n \n \n barcode\n \n as \n \n barcode\n \n, \n \n \n compare_at_price\n \n as \n \n compare_at_price\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_policy\n \n as \n \n inventory_policy\n \n, \n \n \n inventory_quantity\n \n as \n \n inventory_quantity\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n position\n \n as \n \n position\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n requires_components\n \n as \n \n requires_components\n \n, \n \n \n sellable_online_quantity\n \n as \n \n sellable_online_quantity\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tax_code\n \n as \n \n tax_code\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 \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n taxable as is_taxable,\n barcode,\n inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n tax_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_redeem_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_redeem_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_redeem_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_redeem_code"], "alias": "stg_shopify_gql__discount_redeem_code", "checksum": {"name": "sha256", "checksum": "d67dd71e571048d9820f777d5b66057c66c157c43e2937fd7cd59bbf13b5a300"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each redeem code is tied to a parent discount and may be created by an app or manually.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This is updated asynchronously and may differ from real-time usage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (typically an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount the redeem code is associated with (e.g., `discount_code_basic`, `discount_code_app`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.9977367, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_redeem_code_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_shopify_gql__discount_redeem_code_tmp')),\n staging_columns=get_graphql_discount_redeem_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_redeem_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_redeem_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_redeem_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_by_description\n \n as \n \n created_by_description\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_by_title\n \n as \n \n created_by_title\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n discount_type\n \n as \n \n discount_type\n \n, \n \n \n id\n \n as \n \n id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_tracking_info"], "alias": "stg_shopify_gql__fulfillment_tracking_info", "checksum": {"name": "sha256", "checksum": "b81b5a9a260e0144655ecdf19307a4fd7bc3e27d08f38b679573649357273654"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents tracking information associated with a fulfillment. Used by Shopify to generate clickable tracking numbers and delivery updates.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_id": {"name": "fulfillment_id", "description": "The unique identifier of the fulfillment this tracking info belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company. For supported carriers, Shopify automatically builds tracking URLs and may update the shipment status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Tracking number for the fulfillment. If a known tracking company is specified, or the number matches a known format, Shopify may auto-generate a tracking URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_url": {"name": "tracking_url", "description": "Direct URL to track the fulfillment. This is displayed in the Shopify admin and customer notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the tracking information associated with a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0051956, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_tracking_info', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_tracking_info_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_shopify_gql__fulfillment_tracking_info_tmp')),\n staging_columns=get_graphql_fulfillment_tracking_info_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n fulfillment_id,\n index,\n company as tracking_company,\n number as tracking_number,\n url as tracking_url,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['fulfillment_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_tracking_info_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_tracking_info.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n url\n \n as \n \n url\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n fulfillment_id,\n index,\n company as tracking_company,\n number as tracking_number,\n url as tracking_url,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(fulfillment_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_variant_media.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_variant_media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_variant_media"], "alias": "stg_shopify_gql__product_variant_media", "checksum": {"name": "sha256", "checksum": "0127c3b8b208869da17e7b9e75af811a5ece076af61f156cba239e76cba5337e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_variant_id`, `media_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0367868, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_product_variant_media', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_variant_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__product_variant_media_tmp')),\n staging_columns=get_graphql_product_variant_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['product_variant_id', 'media_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_variant_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_variant_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation,\n md5(cast(coalesce(cast(product_variant_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment"], "alias": "stg_shopify_gql__fulfillment", "checksum": {"name": "sha256", "checksum": "545e435664dc989b50d51ec7cd18d7ad7e582c75fb916d7be3176e7c1ce5af7b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.9995947, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_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_shopify_gql__fulfillment_tmp')),\n staging_columns=get_graphql_fulfillment_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service_id as service,\n lower(display_status) as shipment_status,\n lower(status) as status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n display_status\n \n as \n \n display_status\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n service_id\n \n as \n \n service_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n total_quantity\n \n as \n \n total_quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service_id as service,\n lower(display_status) as shipment_status,\n lower(status) as status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_tag"], "alias": "stg_shopify_gql__order_tag", "checksum": {"name": "sha256", "checksum": "1b21c4d52ba47cab2b79f8ed6d47375b9c817395c7632a7ab2816bff9f78e77b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the order.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0321724, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_tag_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_shopify_gql__order_tag_tmp')),\n staging_columns=get_graphql_order_tag_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__abandoned_checkout.sql", "original_file_path": "models/graphql/stg_shopify_gql__abandoned_checkout.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__abandoned_checkout"], "alias": "stg_shopify_gql__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "07a4852ed7c97ff18d1a526ca4d4f355ab85f81fc1e7cc652030f6a39732159a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `checkout_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_shop_amount": {"name": "total_duties_shop_amount", "description": "The total duties of the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_pres_amount": {"name": "total_duties_pres_amount", "description": "The total duties of the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_shop_currency_code": {"name": "total_duties_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_pres_currency_code": {"name": "total_duties_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_amount": {"name": "total_line_items_price_shop_amount", "description": "The sum of the prices of all line items in the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_amount": {"name": "total_line_items_price_pres_amount", "description": "The sum of the prices of all line items in the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_currency_code": {"name": "total_line_items_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_currency_code": {"name": "total_line_items_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The sum of all the taxes applied to the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The sum of all the taxes applied to the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "completed_at": {"name": "completed_at", "description": "The date and time when the buyer completed the checkout. Null if the checkout has not been completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The price of the checkout before shipping and taxes in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The price of the checkout before shipping and taxes in *presentment* currencyy. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.9815874, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__abandoned_checkout_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_shopify_gql__abandoned_checkout_tmp')),\n staging_columns=get_graphql_abandoned_checkout_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n customer_id,\n id as checkout_id,\n name,\n note,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n taxes_included as has_taxes_included,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_duties_set_shop_amount as total_duties_shop_amount,\n total_duties_set_shop_currency_code as total_duties_shop_currency_code,\n total_duties_set_pres_amount as total_duties_pres_amount,\n total_duties_set_pres_currency_code as total_duties_pres_currency_code,\n total_line_items_price_set_shop_amount as total_line_items_price_shop_amount,\n total_line_items_price_set_shop_currency_code as total_line_items_price_shop_currency_code,\n total_line_items_price_set_pres_amount as total_line_items_price_pres_amount,\n total_line_items_price_set_pres_currency_code as total_line_items_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(completed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as completed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_abandoned_checkout_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n abandoned_checkout_url\n \n as \n \n abandoned_checkout_url\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n completed_at\n \n as \n \n completed_at\n \n, \n \n \n customer_id\n \n as \n \n customer_id\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 note\n \n as \n \n note\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n subtotal_price_set_pres_amount\n \n as \n \n subtotal_price_set_pres_amount\n \n, \n \n \n subtotal_price_set_pres_currency_code\n \n as \n \n subtotal_price_set_pres_currency_code\n \n, \n \n \n subtotal_price_set_shop_amount\n \n as \n \n subtotal_price_set_shop_amount\n \n, \n \n \n subtotal_price_set_shop_currency_code\n \n as \n \n subtotal_price_set_shop_currency_code\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n total_discount_set_pres_amount\n \n as \n \n total_discount_set_pres_amount\n \n, \n \n \n total_discount_set_pres_currency_code\n \n as \n \n total_discount_set_pres_currency_code\n \n, \n \n \n total_discount_set_shop_amount\n \n as \n \n total_discount_set_shop_amount\n \n, \n \n \n total_discount_set_shop_currency_code\n \n as \n \n total_discount_set_shop_currency_code\n \n, \n \n \n total_duties_set_pres_amount\n \n as \n \n total_duties_set_pres_amount\n \n, \n \n \n total_duties_set_pres_currency_code\n \n as \n \n total_duties_set_pres_currency_code\n \n, \n \n \n total_duties_set_shop_amount\n \n as \n \n total_duties_set_shop_amount\n \n, \n \n \n total_duties_set_shop_currency_code\n \n as \n \n total_duties_set_shop_currency_code\n \n, \n \n \n total_line_items_price_set_pres_amount\n \n as \n \n total_line_items_price_set_pres_amount\n \n, \n \n \n total_line_items_price_set_pres_currency_code\n \n as \n \n total_line_items_price_set_pres_currency_code\n \n, \n \n \n total_line_items_price_set_shop_amount\n \n as \n \n total_line_items_price_set_shop_amount\n \n, \n \n \n total_line_items_price_set_shop_currency_code\n \n as \n \n total_line_items_price_set_shop_currency_code\n \n, \n \n \n total_price_set_pres_amount\n \n as \n \n total_price_set_pres_amount\n \n, \n \n \n total_price_set_pres_currency_code\n \n as \n \n total_price_set_pres_currency_code\n \n, \n \n \n total_price_set_shop_amount\n \n as \n \n total_price_set_shop_amount\n \n, \n \n \n total_price_set_shop_currency_code\n \n as \n \n total_price_set_shop_currency_code\n \n, \n \n \n total_tax_set_pres_amount\n \n as \n \n total_tax_set_pres_amount\n \n, \n \n \n total_tax_set_pres_currency_code\n \n as \n \n total_tax_set_pres_currency_code\n \n, \n \n \n total_tax_set_shop_amount\n \n as \n \n total_tax_set_shop_amount\n \n, \n \n \n total_tax_set_shop_currency_code\n \n as \n \n total_tax_set_shop_currency_code\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n customer_id,\n id as checkout_id,\n name,\n note,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n subtotal_price_set_shop_amount as subtotal_price_shop_amount,\n subtotal_price_set_shop_currency_code as subtotal_price_shop_currency_code,\n subtotal_price_set_pres_amount as subtotal_price_pres_amount,\n subtotal_price_set_pres_currency_code as subtotal_price_pres_currency_code,\n taxes_included as has_taxes_included,\n total_discount_set_shop_amount as total_discount_shop_amount,\n total_discount_set_shop_currency_code as total_discount_shop_currency_code,\n total_discount_set_pres_amount as total_discount_pres_amount,\n total_discount_set_pres_currency_code as total_discount_pres_currency_code,\n total_duties_set_shop_amount as total_duties_shop_amount,\n total_duties_set_shop_currency_code as total_duties_shop_currency_code,\n total_duties_set_pres_amount as total_duties_pres_amount,\n total_duties_set_pres_currency_code as total_duties_pres_currency_code,\n total_line_items_price_set_shop_amount as total_line_items_price_shop_amount,\n total_line_items_price_set_shop_currency_code as total_line_items_price_shop_currency_code,\n total_line_items_price_set_pres_amount as total_line_items_price_pres_amount,\n total_line_items_price_set_pres_currency_code as total_line_items_price_pres_currency_code,\n total_price_set_shop_amount as total_price_shop_amount,\n total_price_set_shop_currency_code as total_price_shop_currency_code,\n total_price_set_pres_amount as total_price_pres_amount,\n total_price_set_pres_currency_code as total_price_pres_currency_code,\n total_tax_set_shop_amount as total_tax_shop_amount,\n total_tax_set_shop_currency_code as total_tax_shop_currency_code,\n total_tax_set_pres_amount as total_tax_pres_amount,\n total_tax_set_pres_currency_code as total_tax_pres_currency_code,\n cast(\n cast(cast(completed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as completed_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__tax_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__tax_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tax_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__tax_line"], "alias": "stg_shopify_gql__tax_line", "checksum": {"name": "sha256", "checksum": "7c3265693bb444db83715b94d4923ebc32f8d385562f5dd4b570230542e309d6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a single tax applied to the associated line item.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The amount of tax in customer currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The amount of tax in shop currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0486915, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__tax_line_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_shopify_gql__tax_line_tmp')),\n staging_columns=get_graphql_tax_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_line_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n price_set_pres_amount\n \n as \n \n price_set_pres_amount\n \n, \n \n \n price_set_pres_currency_code\n \n as \n \n price_set_pres_currency_code\n \n, \n \n \n price_set_shop_amount\n \n as \n \n price_set_shop_amount\n \n, \n \n \n price_set_shop_currency_code\n \n as \n \n price_set_shop_currency_code\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_bxgy.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_bxgy.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_bxgy"], "alias": "stg_shopify_gql__discount_code_bxgy", "checksum": {"name": "sha256", "checksum": "8a278226cd258f939cddc99dc0bfaaf6eeb8173af7ecef73c6cee066cffb65d6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for Buy X Get Y-style discount codes in Shopify, where discounts are applied based on product quantity thresholds.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.9950428, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_bxgy_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_shopify_gql__discount_code_bxgy_tmp')),\n staging_columns=get_graphql_discount_code_bxgy_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n total_sales_amount,\n total_sales_currency_code, \n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_bxgy_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_bxgy_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_bxgy.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n total_sales_amount,\n total_sales_currency_code, \n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer"], "alias": "stg_shopify_gql__customer", "checksum": {"name": "sha256", "checksum": "ee040da4cd184398d97000afa6857728219292a2b055904acf172c7d3505cd03"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.953903, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_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_shopify_gql__customer_tmp')),\n staging_columns=get_graphql_customer_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n lower(email_marketing_consent_state) as marketing_consent_state,\n lower(email_marketing_consent_opt_in_level) as marketing_opt_in_level,\n {{ shopify_source.fivetran_convert_timezone(column='cast(email_marketing_consent_updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as marketing_consent_updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n {{ fivetran_utils.fill_pass_through_columns('customer_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n email_marketing_consent_opt_in_level\n \n as \n \n email_marketing_consent_opt_in_level\n \n, \n \n \n email_marketing_consent_state\n \n as \n \n email_marketing_consent_state\n \n, \n \n \n email_marketing_consent_updated_at\n \n as \n \n email_marketing_consent_updated_at\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n orders_count\n \n as \n \n orders_count\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n tax_exempt\n \n as \n \n tax_exempt\n \n, \n \n \n total_spent\n \n as \n \n total_spent\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n verified_email\n \n as \n \n verified_email\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n lower(email_marketing_consent_state) as marketing_consent_state,\n lower(email_marketing_consent_opt_in_level) as marketing_opt_in_level,\n cast(\n cast(cast(email_marketing_consent_updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as marketing_consent_updated_at,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_item.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_item.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_item"], "alias": "stg_shopify_gql__inventory_item", "checksum": {"name": "sha256", "checksum": "32245e3be959135fac78958f66d2bd942b104f90bf7c1cf0176b5fe76d3da089"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_item_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0074189, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_item_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_shopify_gql__inventory_item_tmp')),\n staging_columns=get_graphql_inventory_item_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted,\n unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country_code_of_origin\n \n as \n \n country_code_of_origin\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n duplicate_sku_count\n \n as \n \n duplicate_sku_count\n \n, \n \n \n harmonized_system_code\n \n as \n \n harmonized_system_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_history_url\n \n as \n \n inventory_history_url\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n measurement_id\n \n as \n \n measurement_id\n \n, \n \n \n measurement_weight_unit\n \n as \n \n measurement_weight_unit\n \n, \n \n \n measurement_weight_value\n \n as \n \n measurement_weight_value\n \n, \n \n \n province_code_of_origin\n \n as \n \n province_code_of_origin\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tracked\n \n as \n \n tracked\n \n, \n \n \n tracked_editable_locked\n \n as \n \n tracked_editable_locked\n \n, \n \n \n tracked_editable_reason\n \n as \n \n tracked_editable_reason\n \n, \n \n \n unit_cost_amount\n \n as \n \n unit_cost_amount\n \n, \n \n \n unit_cost_currency_code\n \n as \n \n unit_cost_currency_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted,\n unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_media.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_media"], "alias": "stg_shopify_gql__product_media", "checksum": {"name": "sha256", "checksum": "cdb03869e9ddfe19b2ce602f5a435a4dd2c24e9ef9e9f38fa6417a3ffaf4e1d9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id`, `media_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.01781, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_media_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_shopify_gql__product_media_tmp')),\n staging_columns=get_graphql_product_media_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n product_id,\n media_id,\n source_relation, \n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n {{ dbt_utils.generate_surrogate_key(['product_id', 'media_id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n media_id,\n source_relation, \n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n md5(cast(coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(media_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection_product.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection_product.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_product", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection_product"], "alias": "stg_shopify_gql__collection_product", "checksum": {"name": "sha256", "checksum": "f1dafc3138b77c46252e3d61f0ce084cdd24ccdd94e56f0212db3aca550e9aa6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id`, `product_id`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.9848967, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_product_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_shopify_gql__collection_product_tmp')),\n staging_columns=get_graphql_collection_product_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['collection_id', 'product_id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__collection_product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n collection_id\n \n as \n \n collection_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(collection_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_shipping_tax_line.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_shipping_tax_line.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_shipping_tax_line"], "alias": "stg_shopify_gql__order_shipping_tax_line", "checksum": {"name": "sha256", "checksum": "1ce49a7e29271683d2a26b5640c826be0a3c626e752ce9600fa531b9cfdbbf26"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents taxes associated with order shipping lines.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_shipping_line_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this record is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The amount of tax in customer currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The amount of tax in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0312102, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_shipping_tax_line_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_shopify_gql__order_shipping_tax_line_tmp')),\n staging_columns=get_graphql_order_shipping_tax_line_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_shipping_line_id', 'index', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_shipping_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_shipping_tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_shipping_line_id\n \n as \n \n order_shipping_line_id\n \n, \n \n \n price_set_pres_amount\n \n as \n \n price_set_pres_amount\n \n, \n \n \n price_set_pres_currency_code\n \n as \n \n price_set_pres_currency_code\n \n, \n \n \n price_set_shop_amount\n \n as \n \n price_set_shop_amount\n \n, \n \n \n price_set_shop_currency_code\n \n as \n \n price_set_shop_currency_code\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price_set_pres_amount as price_pres_amount,\n price_set_pres_currency_code as price_pres_currency_code,\n price_set_shop_amount as price_shop_amount,\n price_set_shop_currency_code as price_shop_currency_code,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_shipping_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_visit": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_visit.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_visit.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_visit"], "alias": "stg_shopify_gql__customer_visit", "checksum": {"name": "sha256", "checksum": "dc6dbc7c87fbaf8737671d7d2f502113fa6266ae3ed31720df6bf23974c04c56"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metadata about a customer's session visiting a Shopify store, including session, landing page, referrer, marketing campaign, and source attribution information. This data helps merchants analyze the effectiveness of marketing campaigns and customer engagement.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_visit_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_visit_id": {"name": "customer_visit_id", "description": "A globally-unique identifier for the customer visit session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "The ID of the order associated with the customer visit, if any.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of marketing tactic associated with the session. Possible values include: abandoned_cart, ad, affiliate, link, loyalty, message, newsletter, notification, post, retargeting, seo, storefront_app, transactional.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page": {"name": "landing_page", "description": "The URL of the first page the customer landed on for the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page_html": {"name": "landing_page_html", "description": "The landing page URL rendered as HTML with a hyperlink.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "occurred_at": {"name": "occurred_at", "description": "The timestamp when the customer's session occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_code": {"name": "referral_code", "description": "A marketing referral code captured from the landing URL. Supports query params like `ref`, `source`, or `r`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_info_html": {"name": "referral_info_html", "description": "Referral info rendered as HTML with URLs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The referring webpage where the customer clicked a link to arrive at the store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The origin of the customer's visit, such as a platform (e.g., Facebook, Google), a QR code, direct, or other attribution channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_description": {"name": "source_description", "description": "A more descriptive label for the visit source; used primarily for the first or last session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_type": {"name": "source_type", "description": "The marketing tactic type, such as ad, seo, newsletter, etc.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_campaign": {"name": "utm_parameters_campaign", "description": "The name of the marketing campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_content": {"name": "utm_parameters_content", "description": "Identifies specific content within a campaign, used to differentiate similar links.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_medium": {"name": "utm_parameters_medium", "description": "The medium of the campaign (e.g., cpc, banner, email).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_source": {"name": "utm_parameters_source", "description": "The traffic source for the campaign (e.g., google, newsletter).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_term": {"name": "utm_parameters_term", "description": "Search terms associated with paid campaigns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0546556, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_customer_visit', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_visit_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_shopify_gql__customer_visit_tmp')),\n staging_columns=get_graphql_customer_visit_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_visit_id,\n order_id,\n type,\n landing_page,\n landing_page_html,\n referral_code,\n referral_info_html,\n referrer_url as referring_site,\n source,\n source_description,\n source_type,\n utm_parameters_campaign,\n utm_parameters_content,\n utm_parameters_medium,\n utm_parameters_source,\n utm_parameters_term,\n {{ shopify_source.fivetran_convert_timezone(column='cast(occurred_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as occurred_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_visit_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_visit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_visit.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n landing_page\n \n as \n \n landing_page\n \n, \n \n \n landing_page_html\n \n as \n \n landing_page_html\n \n, \n \n \n occurred_at\n \n as \n \n occurred_at\n \n, \n \n \n referral_code\n \n as \n \n referral_code\n \n, \n \n \n referral_info_html\n \n as \n \n referral_info_html\n \n, \n \n \n referrer_url\n \n as \n \n referrer_url\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_description\n \n as \n \n source_description\n \n, \n \n \n source_type\n \n as \n \n source_type\n \n, \n \n \n utm_parameters_campaign\n \n as \n \n utm_parameters_campaign\n \n, \n \n \n utm_parameters_content\n \n as \n \n utm_parameters_content\n \n, \n \n \n utm_parameters_medium\n \n as \n \n utm_parameters_medium\n \n, \n \n \n utm_parameters_source\n \n as \n \n utm_parameters_source\n \n, \n \n \n utm_parameters_term\n \n as \n \n utm_parameters_term\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_visit_id,\n order_id,\n type,\n landing_page,\n landing_page_html,\n referral_code,\n referral_info_html,\n referrer_url as referring_site,\n source,\n source_description,\n source_type,\n utm_parameters_campaign,\n utm_parameters_content,\n utm_parameters_medium,\n utm_parameters_source,\n utm_parameters_term,\n cast(\n cast(cast(occurred_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as occurred_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "original_file_path": "models/graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__abandoned_checkout_discount_code"], "alias": "stg_shopify_gql__abandoned_checkout_discount_code", "checksum": {"name": "sha256", "checksum": "0c42da3c30c3c151bce61bb481405da53967b9b43818d4d74ce29d238f4a9b57"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Abandoned checkouts that applied a discount code.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `checkout_id`, `code`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the discount codes from abandoned checkouts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.982563, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__abandoned_checkout_discount_code_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_shopify_gql__abandoned_checkout_discount_code_tmp')),\n staging_columns=get_graphql_abandoned_checkout_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index,\n {{ dbt_utils.generate_surrogate_key(['checkout_id', 'code', 'source_relation']) }} as unique_key\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__abandoned_checkout_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index,\n md5(cast(coalesce(cast(checkout_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(code as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_address": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_address.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_address.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_address", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_address"], "alias": "stg_shopify_gql__customer_address", "checksum": {"name": "sha256", "checksum": "cca4e8b6590274294b6e15baebf9cd8153a1a9ab4925ab353bc35319ef93dda9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a customer's mailing address and includes additional geographic metadata.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_address_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_address_id": {"name": "customer_address_id", "description": "A globally unique identifier for the customer address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer to whom this address belongs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The first line of the address (e.g., street address or PO Box).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The second line of the address (e.g., apartment, suite, or unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The name of the city, district, village, or town for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The company or organization associated with the customer at this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The full country name for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter ISO country code for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_default": {"name": "is_default", "description": "Indicates if this address is the default shipping address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The full name of the customer, derived from first and last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer\u2019s phone number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The name of the region, state, or province for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The standardized zone or province code for the region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code of the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "validation_result_summary": {"name": "validation_result_summary", "description": "A summary of address validation results (e.g., match confidence or status).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The timezone associated with the address, if available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_coordinates_validated": {"name": "has_coordinates_validated", "description": "Indicates whether the latitude and longitude coordinates were validated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0579941, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_address_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify_gql__customer_address_tmp')),\n staging_columns=get_graphql_customer_address_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_address_id,\n customer_id,\n address_1,\n address_2,\n city,\n company,\n country,\n country_code,\n first_name,\n is_default,\n last_name,\n latitude,\n longitude,\n name,\n phone,\n province,\n province_code,\n zip,\n validation_result_summary,\n timezone,\n coordinates_validated as has_coordinates_validated,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_address_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_address.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n is_default\n \n as \n \n is_default\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n latitude\n \n as \n \n latitude\n \n, \n \n \n longitude\n \n as \n \n longitude\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n zip\n \n as \n \n zip\n \n, \n \n \n validation_result_summary\n \n as \n \n validation_result_summary\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n coordinates_validated\n \n as \n \n coordinates_validated\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as customer_address_id,\n customer_id,\n address_1,\n address_2,\n city,\n company,\n country,\n country_code,\n first_name,\n is_default,\n last_name,\n latitude,\n longitude,\n name,\n phone,\n province,\n province_code,\n zip,\n validation_result_summary,\n timezone,\n coordinates_validated as has_coordinates_validated,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product.sql", "original_file_path": "models/graphql/stg_shopify_gql__product.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product"], "alias": "stg_shopify_gql__product", "checksum": {"name": "sha256", "checksum": "bd16eaf9c2f2b9d327db6071a73dc1fa5aaa07b070d4f3fd72bd82f8621145a9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0336583, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_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_shopify_gql__product_tmp')),\n staging_columns=get_graphql_product_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as product_id,\n handle,\n product_type,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n {{ fivetran_utils.fill_pass_through_columns('product_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n status\n \n as \n \n status\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\n \n as \n \n vendor\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as product_id,\n handle,\n product_type,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "original_file_path": "models/graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__fulfillment_order_line_item"], "alias": "stg_shopify_gql__fulfillment_order_line_item", "checksum": {"name": "sha256", "checksum": "cce1876da347fe32a6a944ed7db67af1c5897acfa7c3f164c6f02707ecd93e37"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Links a fulfillment order to specific items that require fulfillment. Contains detailed product information, quantity tracking, variant metadata, and shipping requirements. This is a core entity for determining which products and how many units are involved in a given fulfillment process.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `fulfillment_order_line_item_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_order_line_item_id": {"name": "fulfillment_order_line_item_id", "description": "A globally unique identifier for this fulfillment order line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_order_id": {"name": "fulfillment_order_id", "description": "The identifier of the fulfillment order that this line item is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "Alt text describing the image associated with the line item's variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "The height in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "The unique identifier for the variant image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The url of the variant image used in this fulfillment line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "The width in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The identifier of the inventory item being fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_item_id": {"name": "order_line_item_id", "description": "The identifier of the original order line item linked to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_title": {"name": "product_title", "description": "The title of the product at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The identifier of the product variant associated with this fulfillment item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remaining_quantity": {"name": "remaining_quantity", "description": "The number of units remaining to be fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Indicates whether physical shipping is required for this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The SKU of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "The total number of units allocated to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The vendor of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0031915, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_order_line_item', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__fulfillment_order_line_item_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_shopify_gql__fulfillment_order_line_item_tmp')),\n staging_columns=get_graphql_fulfillment_order_line_item_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_order_line_item_id,\n fulfillment_order_id,\n image_alt_text,\n image_height,\n image_id,\n image_url,\n image_width,\n inventory_item_id,\n order_line_item_id,\n product_title,\n product_variant_id,\n remaining_quantity,\n requires_shipping,\n sku,\n total_quantity,\n variant_title,\n vendor,\n weight_unit,\n weight_value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_fulfillment_order_line_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__fulfillment_order_line_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fulfillment_order_id\n \n as \n \n fulfillment_order_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n order_line_item_id\n \n as \n \n order_line_item_id\n \n, \n \n \n product_title\n \n as \n \n product_title\n \n, \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n remaining_quantity\n \n as \n \n remaining_quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n total_quantity\n \n as \n \n total_quantity\n \n, \n \n \n variant_title\n \n as \n \n variant_title\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n, \n \n \n weight_value\n \n as \n \n weight_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_order_line_item_id,\n fulfillment_order_id,\n image_alt_text,\n image_height,\n image_id,\n image_url,\n image_width,\n inventory_item_id,\n order_line_item_id,\n product_title,\n product_variant_id,\n remaining_quantity,\n requires_shipping,\n sku,\n total_quantity,\n variant_title,\n vendor,\n weight_unit,\n weight_value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__media.sql", "original_file_path": "models/graphql/stg_shopify_gql__media.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__media"], "alias": "stg_shopify_gql__media", "checksum": {"name": "sha256", "checksum": "653de7e7a0d32617a2b87aee243be40cd14af47689ece20af8771b3c27136913"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing media metadata, including status and timestamps.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `media_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.013253, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__media_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_shopify_gql__media_tmp')),\n staging_columns=get_graphql_media_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_basic": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_basic.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_basic.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_basic"], "alias": "stg_shopify_gql__discount_code_basic", "checksum": {"name": "sha256", "checksum": "6d6b5c65be3377b64f2b0a2c42b7df1f71649dd2aaa52ba1464ebec3e2f7ef5e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata about basic discount codes created by merchants.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.9935026, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_basic_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_shopify_gql__discount_code_basic_tmp')),\n staging_columns=get_graphql_discount_code_basic_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_basic_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_basic_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_basic.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_code_free_shipping.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_code_free_shipping.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_code_free_shipping"], "alias": "stg_shopify_gql__discount_code_free_shipping", "checksum": {"name": "sha256", "checksum": "cdae529b92ea53946c636f7f8bcb98c4f7ff4b853caa5dad542cbf5d34b0adfd"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for free shipping discount codes in Shopify, where shipping costs are discounted based on qualifying conditions.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `discount_code_id` and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.996639, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_code_free_shipping_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_shopify_gql__discount_code_free_shipping_tmp')),\n staging_columns=get_graphql_discount_code_free_shipping_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_free_shipping_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_code_free_shipping_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_code_free_shipping.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__product_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__product_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__product_tag"], "alias": "stg_shopify_gql__product_tag", "checksum": {"name": "sha256", "checksum": "7f63c730d6dca3cbed580fdb8e75a6f808816c7d132c861e57e18b7600c7cd43"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the product.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `product_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0377562, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__product_tag_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_shopify_gql__product_tag_tmp')),\n staging_columns=get_graphql_product_tag_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['product_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_product_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__product_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(product_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__customer_tag.sql", "original_file_path": "models/graphql/stg_shopify_gql__customer_tag.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__customer_tag"], "alias": "stg_shopify_gql__customer_tag", "checksum": {"name": "sha256", "checksum": "d1dc3244691c097ebdca6b9f76fcb51c4f898b7d4653bb1a2e3c1c092c9b3d70"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `customer_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.985945, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__customer_tag_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_shopify_gql__customer_tag_tmp')),\n staging_columns=get_graphql_customer_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['customer_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_customer_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__customer_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_allocation": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__discount_allocation.sql", "original_file_path": "models/graphql/stg_shopify_gql__discount_allocation.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__discount_allocation"], "alias": "stg_shopify_gql__discount_allocation", "checksum": {"name": "sha256", "checksum": "739863a768f40dd60d330e331eae06d15864832e04c0ca6b863424ec4f7ac4c6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing allocation amounts from discount applications across specific order lines.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_line_id`, `discount_application_index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocated_pres_amount": {"name": "allocated_pres_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_pres_currency_code": {"name": "allocated_pres_currency_code", "description": "The presentment money currency code for the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_shop_amount": {"name": "allocated_shop_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_shop_currency_code": {"name": "allocated_shop_currency_code", "description": "The shop money currency code for the store\u2019s currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to. Used to join with the discount application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount allocation within the list of allocations on an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005801.9883707, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__discount_allocation_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_shopify_gql__discount_allocation_tmp')),\n staging_columns=get_graphql_discount_allocation_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n allocated_amount_set_pres_amount as allocated_pres_amount,\n allocated_amount_set_pres_currency_code as allocated_pres_currency_code,\n allocated_amount_set_shop_amount as allocated_shop_amount,\n allocated_amount_set_shop_currency_code as allocated_shop_currency_code,\n discount_application_index,\n index,\n order_line_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_line_id', 'discount_application_index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_allocation_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_discount_allocation_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__discount_allocation.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocated_amount_set_pres_amount\n \n as \n \n allocated_amount_set_pres_amount\n \n, \n \n \n allocated_amount_set_pres_currency_code\n \n as \n \n allocated_amount_set_pres_currency_code\n \n, \n \n \n allocated_amount_set_shop_amount\n \n as \n \n allocated_amount_set_shop_amount\n \n, \n \n \n allocated_amount_set_shop_currency_code\n \n as \n \n allocated_amount_set_shop_currency_code\n \n, \n \n \n discount_application_index\n \n as \n \n discount_application_index\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n allocated_amount_set_pres_amount as allocated_pres_amount,\n allocated_amount_set_pres_currency_code as allocated_pres_currency_code,\n allocated_amount_set_shop_amount as allocated_shop_amount,\n allocated_amount_set_shop_currency_code as allocated_shop_currency_code,\n discount_application_index,\n index,\n order_line_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_application_index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_quantity": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__inventory_quantity.sql", "original_file_path": "models/graphql/stg_shopify_gql__inventory_quantity.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__inventory_quantity"], "alias": "stg_shopify_gql__inventory_quantity", "checksum": {"name": "sha256", "checksum": "bf44e42da315e47a9d9b7fa5b9e4cad92ba2f087de9c02766a15811a1c5dfb55"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The total quantity of the inventory item available at all locations.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `inventory_quantity_id`, `inventory_level_id`, `inventory_item_id`, `inventory_state_name`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity_id": {"name": "inventory_quantity_id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_state_name": {"name": "inventory_state_name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.0101442, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__inventory_quantity_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_shopify_gql__inventory_quantity_tmp')),\n staging_columns=get_graphql_inventory_quantity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['id', 'inventory_item_id', 'inventory_level_id', 'name', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_quantity_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_inventory_quantity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__inventory_quantity.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_level_id\n \n as \n \n inventory_level_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_item_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(inventory_level_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_note_attribute": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__order_note_attribute.sql", "original_file_path": "models/graphql/stg_shopify_gql__order_note_attribute.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__order_note_attribute"], "alias": "stg_shopify_gql__order_note_attribute", "checksum": {"name": "sha256", "checksum": "7873d5d4778fda0c06ad067718d305252d77e07908f715611688af7d7fb948d8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing custom attributes placed on orders.", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `order_id`, `name`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.027145, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__order_note_attribute_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_shopify_gql__order_note_attribute_tmp')),\n staging_columns=get_graphql_order_note_attribute_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['order_id', 'name', 'source_relation']) }} as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__order_note_attribute_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_order_note_attribute_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_gql__order_note_attribute.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation,\n md5(cast(coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_item_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_item_tmp"], "alias": "stg_shopify_gql__inventory_item_tmp", "checksum": {"name": "sha256", "checksum": "562f5900bff17e2074910b889c93f479d175ca8d45a1c3a94c7f1145632af195"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.3287208, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_item"], ["shopify_graphql", "inventory_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_adjustment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_adjustment_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_adjustment_tmp"], "alias": "stg_shopify_gql__order_adjustment_tmp", "checksum": {"name": "sha256", "checksum": "41de7ec16964a262f4fa0545875703abc0c7d188982b1b9697770663e0e5557c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.368793, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_adjustment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_adjustment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_adjustment"], ["shopify_graphql", "order_adjustment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_adjustment_tmp.sql", "compiled": true, "compiled_code": "\n\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_redeem_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_redeem_code_tmp"], "alias": "stg_shopify_gql__discount_redeem_code_tmp", "checksum": {"name": "sha256", "checksum": "cfc36e942b2ec63cfed9b2ce3fffc11ae5f379cdd12ffb28389ed0380c25e6d0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.3778367, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_redeem_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_redeem_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_redeem_code"], ["shopify_graphql", "discount_redeem_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_redeem_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tender_transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tender_transaction_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__tender_transaction_tmp"], "alias": "stg_shopify_gql__tender_transaction_tmp", "checksum": {"name": "sha256", "checksum": "999811b7c8c9bbb9ca1f553177635c3ff561ce3a498c54e7c2d16ef471dc94a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.386695, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tender_transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_tender_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "tender_transaction"], ["shopify_graphql", "tender_transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__tender_transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__tax_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__tax_line_tmp"], "alias": "stg_shopify_gql__tax_line_tmp", "checksum": {"name": "sha256", "checksum": "b797f714cca33152d58d9f9371337be2af75ba71868a9c645a5b661e30953bdb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.3955634, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "tax_line"], ["shopify_graphql", "tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_refund_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_line_refund_tmp"], "alias": "stg_shopify_gql__order_line_refund_tmp", "checksum": {"name": "sha256", "checksum": "de5d8368b1e2f8a01f8457ecfb538f18f39940fbfd88a8bd4317449bdb3500d5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.4058828, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line_refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_line_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_line_refund"], ["shopify_graphql", "order_line_refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_line_refund_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_bxgy_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_bxgy_tmp"], "alias": "stg_shopify_gql__discount_code_bxgy_tmp", "checksum": {"name": "sha256", "checksum": "74f77e4738c5c72ca63e005803146b7cdce868cd42f4187da43c47e040a9a713"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.4143577, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_bxgy', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_bxgy_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_bxgy"], ["shopify_graphql", "discount_code_bxgy"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_bxgy_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_tmp"], "alias": "stg_shopify_gql__fulfillment_tmp", "checksum": {"name": "sha256", "checksum": "33c816c7194073933556f8e74f281eaea2e3f3c728d0cef25ac3270e69ac46b3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.4229357, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment"], ["shopify_graphql", "fulfillment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__location_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__location_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__location_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__location_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__location_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__location_tmp"], "alias": "stg_shopify_gql__location_tmp", "checksum": {"name": "sha256", "checksum": "6e50fc60b6453e907f266a407a8ffd9c7e0509261b61e3a62d79bd98ff8f9d16"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.4315648, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__location_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='location', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_location_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "location"], ["shopify_graphql", "location"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__location_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_visit_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_visit_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_visit_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_visit_tmp"], "alias": "stg_shopify_gql__customer_visit_tmp", "checksum": {"name": "sha256", "checksum": "a6f824dc3840066caffed56e0389dd7ef63cfb7814e79f0dbedf937bc738e392"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.4402316, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_customer_visit', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_visit', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_visit_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_visit"], ["shopify_graphql", "customer_visit"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_visit_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_tag_tmp"], "alias": "stg_shopify_gql__order_tag_tmp", "checksum": {"name": "sha256", "checksum": "ef3af11883c240380fbddf262db8be9cd7d8008833e23746bc1c7268ba0a43e1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.4506848, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_tag"], ["shopify_graphql", "order_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_variant_tmp"], "alias": "stg_shopify_gql__product_variant_tmp", "checksum": {"name": "sha256", "checksum": "49b89b7bc716e35589007a5ab8431b1371c4a468f4be3bffbba33558f287c85b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.4593134, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_variant_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_variant"], ["shopify_graphql", "product_variant"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_variant_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_product_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_product_tmp"], "alias": "stg_shopify_gql__collection_product_tmp", "checksum": {"name": "sha256", "checksum": "265042e513f9f41755e3d67cb838c5a4bc2a0f30f0005797170d61c7c68c506f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.4678648, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection_product"], ["shopify_graphql", "collection_product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__collection_product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__shop_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__shop_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__shop_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__shop_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__shop_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__shop_tmp"], "alias": "stg_shopify_gql__shop_tmp", "checksum": {"name": "sha256", "checksum": "484564c85bbddaca318f1165dc0418a31023ea29c6ff8bc0531246eeb8d59a1c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.4763784, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__shop_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='shop', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_shop_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "shop"], ["shopify_graphql", "shop"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__shop_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_shop_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_discount_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_discount_code_tmp"], "alias": "stg_shopify_gql__order_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "e5f05cb907273a7d7faf0cb35b3f239d92e59bea6b53b3d9f874621d4702bacd"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.4861042, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_discount_code"], ["shopify_graphql", "order_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_note_attribute_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_note_attribute_tmp"], "alias": "stg_shopify_gql__order_note_attribute_tmp", "checksum": {"name": "sha256", "checksum": "1dc3d9e025bc87c95c74672a8a46a3e9751b91727f7e8de84c5d5c4b0ec7bca9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.4947107, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_note_attribute', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_note_attribute_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_note_attribute"], ["shopify_graphql", "order_note_attribute"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_note_attribute_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_variant_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_variant_media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_variant_media_tmp"], "alias": "stg_shopify_gql__product_variant_media_tmp", "checksum": {"name": "sha256", "checksum": "a6a402d3eb1fc91386b58803aeea45dbfa70f93ad6fcc44aebe193e37428c941"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.503348, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_product_variant_media', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_variant_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_variant_media"], ["shopify_graphql", "product_variant_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_variant_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "alias": "stg_shopify_gql__abandoned_checkout_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "fadf9a4496c441981f39419454d443a7be6f42ffdb6b1d9be43a628ec71d06c1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.5123127, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_abandoned_checkout_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "abandoned_checkout_discount_code"], ["shopify_graphql", "abandoned_checkout_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__abandoned_checkout_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_shipping_line_tmp"], "alias": "stg_shopify_gql__order_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "48a6b1d4908a3a78e6f338213ae2230d0666ea0fd398dc7df1ce269582c553a8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.5222776, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_shipping_line"], ["shopify_graphql", "order_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_tag_tmp"], "alias": "stg_shopify_gql__customer_tag_tmp", "checksum": {"name": "sha256", "checksum": "6c9353c051ba91aace024c85f929cfe6f1fc74e9bf69e7c185ba5abc16b3bad0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.5308306, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_tag"], ["shopify_graphql", "customer_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_image_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_image_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_image_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__media_image_tmp"], "alias": "stg_shopify_gql__media_image_tmp", "checksum": {"name": "sha256", "checksum": "30d02cd315c4bc627fdb2de7d2c4910b8401ec97e7f9bd572c2f4efb219d3059"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.5393775, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media_image', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_media_image_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "media_image"], ["shopify_graphql", "media_image"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__media_image_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_media_image_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_allocation_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_allocation_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_allocation_tmp"], "alias": "stg_shopify_gql__discount_allocation_tmp", "checksum": {"name": "sha256", "checksum": "3031935efab97198e8bfd1d1818023693aed0298c4b4334573c1d099ccb4c8d2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.5577683, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_allocation', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_allocation_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_allocation"], ["shopify_graphql", "discount_allocation"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_allocation_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__media_tmp"], "alias": "stg_shopify_gql__media_tmp", "checksum": {"name": "sha256", "checksum": "835c3851c7d05b5f89f126d660881e1bd1ba913531e40059ebc9a18e5814a12b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.5662975, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "media"], ["shopify_graphql", "media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_tracking_info_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_tracking_info_tmp"], "alias": "stg_shopify_gql__fulfillment_tracking_info_tmp", "checksum": {"name": "sha256", "checksum": "916e15ae9d3b58b4bfaed65f98893baa84653e193472d33ec051a14323d7b859"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.5748413, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_tracking_info', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_tracking_info', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_tracking_info_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_tracking_info"], ["shopify_graphql", "fulfillment_tracking_info"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_tracking_info_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_app_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_app_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_app_tmp"], "alias": "stg_shopify_gql__discount_code_app_tmp", "checksum": {"name": "sha256", "checksum": "42d515dfaa9edf7645c90b5d4e3fba1b10ce11c8e33e5f9004dc3286c70abbb5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.5837634, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_discount_code_app', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_app', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_app_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_app"], ["shopify_graphql", "discount_code_app"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_app_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_level_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_level_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_level_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_level_tmp"], "alias": "stg_shopify_gql__inventory_level_tmp", "checksum": {"name": "sha256", "checksum": "e940f5fe7081ecb499500343359757242bb316d24954bd29464cccb19e675125"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.5938678, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_level', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_level_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_level"], ["shopify_graphql", "inventory_level"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_level_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_tmp"], "alias": "stg_shopify_gql__product_tmp", "checksum": {"name": "sha256", "checksum": "d6bdb88269a24c1e7e047ad5cbcd7cb41689fdfe4028c6b73feb2cf06f5d8c4e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.6024911, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product"], ["shopify_graphql", "product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_event_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_event_tmp"], "alias": "stg_shopify_gql__fulfillment_event_tmp", "checksum": {"name": "sha256", "checksum": "b3d654e7eb8d3c87eed9e599ce914c626a86ec7426dd9501721e89556e6e3667"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.611067, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_event', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_event_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_event"], ["shopify_graphql", "fulfillment_event"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_event_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_tag_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_tag_tmp"], "alias": "stg_shopify_gql__product_tag_tmp", "checksum": {"name": "sha256", "checksum": "a24216b9e175dc892ba05ae61cef5b660627718f05f76c3773cd851609c471a0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.6199486, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_tag"], ["shopify_graphql", "product_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_free_shipping_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_free_shipping_tmp"], "alias": "stg_shopify_gql__discount_code_free_shipping_tmp", "checksum": {"name": "sha256", "checksum": "de9a7bc807b211bfad12ecd0bbffc6f5566d4f52164b3bc66f5bb79a363ac4a1"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.6294122, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_free_shipping', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_free_shipping_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_free_shipping"], ["shopify_graphql", "discount_code_free_shipping"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_free_shipping_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__fulfillment_order_line_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__fulfillment_order_line_item_tmp"], "alias": "stg_shopify_gql__fulfillment_order_line_item_tmp", "checksum": {"name": "sha256", "checksum": "7da21a799b42d6572274d5c708e6c1820d534868af0169a999f3ba0baa558cf0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.6379156, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_order_line_item', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_order_line_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_fulfillment_order_line_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "fulfillment_order_line_item"], ["shopify_graphql", "fulfillment_order_line_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__fulfillment_order_line_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_shipping_tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_shipping_tax_line_tmp"], "alias": "stg_shopify_gql__order_shipping_tax_line_tmp", "checksum": {"name": "sha256", "checksum": "2f563d319f6ab1e785c0c0dd8c46c7eb60b34036eab89dff6306ce7e0318dc2a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.6469336, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_shipping_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_shipping_tax_line"], ["shopify_graphql", "order_shipping_tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_shipping_tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__abandoned_checkout_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__abandoned_checkout_tmp"], "alias": "stg_shopify_gql__abandoned_checkout_tmp", "checksum": {"name": "sha256", "checksum": "447fcf5964f191e3a35aac2df0126f572f80174deefc22e167e089b2c072d3ad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.6554613, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_tmp\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_abandoned_checkout_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "abandoned_checkout"], ["shopify_graphql", "abandoned_checkout"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__abandoned_checkout_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_address_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_address_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_address_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_address_tmp"], "alias": "stg_shopify_gql__customer_address_tmp", "checksum": {"name": "sha256", "checksum": "3df59d0c9b1202ab5431236c9ffd08af4840856ea7e880991c6247ca328c89f4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.6653638, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_address', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_address_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer_address"], ["shopify_graphql", "customer_address"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_address_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_application_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_application_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_application_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_application_tmp"], "alias": "stg_shopify_gql__discount_application_tmp", "checksum": {"name": "sha256", "checksum": "51b3cf65b837e23b8567427012151bc4daed3ddaa38887bf0f6ed09aa65f98d9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.6739352, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_application', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_application_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_application"], ["shopify_graphql", "discount_application"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_application_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__collection_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_tmp"], "alias": "stg_shopify_gql__collection_tmp", "checksum": {"name": "sha256", "checksum": "13622f8f6269a36bc80ce5b592234d5f1b7c88cbf80e19bf6d50aa4c8886d4ab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.682702, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection"], ["shopify_graphql", "collection"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__collection_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_collection_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__inventory_quantity_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__inventory_quantity_tmp"], "alias": "stg_shopify_gql__inventory_quantity_tmp", "checksum": {"name": "sha256", "checksum": "07d53773e990ce9f6350463bc39d7d11d10a77623f572ba7e12f9d4ec1fc637c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.691339, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_quantity', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_inventory_quantity_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "inventory_quantity"], ["shopify_graphql", "inventory_quantity"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__inventory_quantity_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__refund_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__refund_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__refund_tmp"], "alias": "stg_shopify_gql__refund_tmp", "checksum": {"name": "sha256", "checksum": "a11a22eb9bcb9a62e27a0e2ce13c47296be38a753bd3a1fa9df5e8c90c1af4ab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.7011707, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "refund"], ["shopify_graphql", "refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__refund_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__discount_code_basic_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__discount_code_basic_tmp"], "alias": "stg_shopify_gql__discount_code_basic_tmp", "checksum": {"name": "sha256", "checksum": "3d2c8273708359c8f712f46e5d5178c0d6807fa06cddfac2cef2890f360b6bc2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.709801, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_basic', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_discount_code_basic_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "discount_code_basic"], ["shopify_graphql", "discount_code_basic"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__discount_code_basic_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__product_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__product_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__product_media_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__product_media_tmp"], "alias": "stg_shopify_gql__product_media_tmp", "checksum": {"name": "sha256", "checksum": "9fec30aae73d36ed6755c3f429db455f56b87fdfb24affac6bb8110c833d7538"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.7182958, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_product_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "product_media"], ["shopify_graphql", "product_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__product_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_product_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__metafield_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__metafield_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__metafield_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__metafield_tmp"], "alias": "stg_shopify_gql__metafield_tmp", "checksum": {"name": "sha256", "checksum": "745867433e8c372b8247770c5511da696b44146d8a9cecbb805e2fbccc407b1b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.7267804, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_gql_using_metafield', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='metafield', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_metafield_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "metafield"], ["shopify_graphql", "metafield"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__metafield_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_metafield_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_line_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_line_tmp"], "alias": "stg_shopify_gql__order_line_tmp", "checksum": {"name": "sha256", "checksum": "8d070802154be87b0f6abc6a84d1cc04a7479c71e72d51f9c29e9b84ff0a4470"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.7356262, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order_line"], ["shopify_graphql", "order_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__transaction_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__transaction_tmp"], "alias": "stg_shopify_gql__transaction_tmp", "checksum": {"name": "sha256", "checksum": "2e07b515aabc2fcadb617d88f8bd4b308339b0f2425445340e95c18fe47ea54f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.745379, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "transaction"], ["shopify_graphql", "transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__customer_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__customer_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__customer_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__customer_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__customer_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__customer_tmp"], "alias": "stg_shopify_gql__customer_tmp", "checksum": {"name": "sha256", "checksum": "cbad42ba9c8311e55176c04ed3a661a3cf4a5ac59514099a69a595235769a2a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.7539341, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_customer_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "customer"], ["shopify_graphql", "customer"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__customer_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify_gql__order_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__order_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__order_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__order_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__order_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__order_tmp"], "alias": "stg_shopify_gql__order_tmp", "checksum": {"name": "sha256", "checksum": "00d88df1afa1afc1c67823cb65c6c737c7efe99876be4543728c56578daa29fa"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005798.7624552, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_order_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "order"], ["shopify_graphql", "order"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify_graphql.order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/tmp/stg_shopify_gql__order_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_gql_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__shop": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__shop.sql", "original_file_path": "models/rest/stg_shopify__shop.sql", "unique_id": "model.shopify_source.stg_shopify__shop", "fqn": ["shopify_source", "rest", "stg_shopify__shop"], "alias": "stg_shopify__shop", "checksum": {"name": "sha256", "checksum": "5530f9eaba5fde4a59b8556a0f242759bc63e380c45442ae1d5bc2a95225c3af"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_checkout_api_supported": {"name": "has_checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_county_taxes": {"name": "has_county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_card_reader_giveaway": {"name": "is_eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_eligible_for_payments": {"name": "is_eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_google_apps_login_enabled": {"name": "is_google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_password_enabled": {"name": "is_password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_pre_launch_enabled": {"name": "is_pre_launch_enabled", "description": "Boolean representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_extra_payments_agreement_required": {"name": "is_extra_payments_agreement_required", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_setup_required": {"name": "is_setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_shipping_taxes": {"name": "has_shipping_taxes", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included_in_price": {"name": "has_taxes_included_in_price", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.5142186, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__shop_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__shop_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_shop_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n {{ shopify_source.json_to_string(\"enabled_presentment_currencies\", source_columns_in_relation) }} as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop_tmp", "package": null, "version": null}, {"name": "stg_shopify__shop_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_shop_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__shop_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__shop.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\n \n, \n \n \n checkout_api_supported\n \n as \n \n checkout_api_supported\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n cookie_consent_level\n \n as \n \n cookie_consent_level\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n county_taxes\n \n as \n \n county_taxes\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_email\n \n as \n \n customer_email\n \n, \n \n \n domain\n \n as \n \n domain\n \n, \n \n \n eligible_for_card_reader_giveaway\n \n as \n \n eligible_for_card_reader_giveaway\n \n, \n \n \n eligible_for_payments\n \n as \n \n eligible_for_payments\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n enabled_presentment_currencies\n \n as \n \n enabled_presentment_currencies\n \n, \n \n \n google_apps_domain\n \n as \n \n google_apps_domain\n \n, \n \n \n google_apps_login_enabled\n \n as \n \n google_apps_login_enabled\n \n, \n \n \n has_discounts\n \n as \n \n has_discounts\n \n, \n \n \n has_gift_cards\n \n as \n \n has_gift_cards\n \n, \n \n \n has_storefront\n \n as \n \n has_storefront\n \n, \n \n \n iana_timezone\n \n as \n \n iana_timezone\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 longitude\n \n as \n \n longitude\n \n, \n \n \n money_format\n \n as \n \n money_format\n \n, \n \n \n money_in_emails_format\n \n as \n \n money_in_emails_format\n \n, \n \n \n money_with_currency_format\n \n as \n \n money_with_currency_format\n \n, \n \n \n money_with_currency_in_emails_format\n \n as \n \n money_with_currency_in_emails_format\n \n, \n \n \n myshopify_domain\n \n as \n \n myshopify_domain\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n password_enabled\n \n as \n \n password_enabled\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n plan_display_name\n \n as \n \n plan_display_name\n \n, \n \n \n plan_name\n \n as \n \n plan_name\n \n, \n \n \n pre_launch_enabled\n \n as \n \n pre_launch_enabled\n \n, \n \n \n primary_locale\n \n as \n \n primary_locale\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n requires_extra_payments_agreement\n \n as \n \n requires_extra_payments_agreement\n \n, \n \n \n setup_required\n \n as \n \n setup_required\n \n, \n \n \n shop_owner\n \n as \n \n shop_owner\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n tax_shipping\n \n as \n \n tax_shipping\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n weight_unit\n \n as \n \n weight_unit\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as shop_id,\n name,\n _fivetran_deleted as is_deleted,\n address_1,\n address_2,\n city,\n province,\n province_code,\n country,\n country_code,\n country_name,\n zip,\n latitude,\n longitude,\n case when county_taxes is null then false else county_taxes end as has_county_taxes,\n currency,\n enabled_presentment_currencies as enabled_presentment_currencies,\n customer_email,\n email,\n domain,\n phone,\n timezone,\n iana_timezone,\n primary_locale,\n weight_unit,\n myshopify_domain,\n cookie_consent_level,\n shop_owner,\n source,\n tax_shipping as has_shipping_taxes,\n case when taxes_included is null then false else taxes_included end as has_taxes_included_in_price,\n has_discounts,\n has_gift_cards,\n has_storefront,\n checkout_api_supported as has_checkout_api_supported,\n eligible_for_card_reader_giveaway as is_eligible_for_card_reader_giveaway,\n eligible_for_payments as is_eligible_for_payments,\n google_apps_domain,\n case when google_apps_login_enabled is null then false else google_apps_login_enabled end as is_google_apps_login_enabled,\n money_format,\n money_in_emails_format,\n money_with_currency_format,\n money_with_currency_in_emails_format,\n plan_display_name,\n plan_name,\n password_enabled as is_password_enabled,\n pre_launch_enabled as is_pre_launch_enabled,\n requires_extra_payments_agreement as is_extra_payments_agreement_required,\n setup_required as is_setup_required,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_shipping_line.sql", "original_file_path": "models/rest/stg_shopify__order_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_shipping_line"], "alias": "stg_shopify__order_shipping_line", "checksum": {"name": "sha256", "checksum": "2a53345accb04b023d123b631a1fe94ad8a69fd7e81658e7f9b0c26389f4fa02"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_third_party_required": {"name": "is_third_party_required", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.502235, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_line_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_shopify__order_shipping_line_tmp')),\n staging_columns=get_order_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n discounted_price_set\n \n as \n \n discounted_price_set\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as order_shipping_line_id,\n order_id,\n carrier_identifier,\n code,\n delivery_category,\n discounted_price,\n discounted_price_set,\n phone,\n price,\n price_set,\n requested_fulfillment_service_id is not null as is_third_party_required,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout"], "alias": "stg_shopify__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "f8f4974bab648fcae4b0a95ec02701aad1981cc01d748404977a3bfac64de65a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_currency": {"name": "shop_currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.483942, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_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_shopify__abandoned_checkout_tmp')),\n staging_columns=get_abandoned_checkout_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n abandoned_checkout_url\n \n as \n \n abandoned_checkout_url\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n cast(null as TEXT) as \n \n billing_address_address_2\n \n , \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_locale\n \n as \n \n customer_locale\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n presentment_currency\n \n as \n \n presentment_currency\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n cast(null as TEXT) as \n \n shipping_address_address_2\n \n , \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n \n \n total_duties\n \n as \n \n total_duties\n \n, \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n \n \n total_price\n \n as \n \n total_price\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted as is_deleted,\n abandoned_checkout_url,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n cart_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_at,\n currency as shop_currency,\n customer_id,\n customer_locale,\n device_id,\n email,\n gateway,\n id as checkout_id,\n landing_site_base_url,\n location_id,\n name,\n note,\n phone,\n presentment_currency,\n referring_site,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n token,\n total_discounts,\n total_duties,\n total_line_items_price,\n total_price,\n total_tax,\n total_weight,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n user_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__location": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__location.sql", "original_file_path": "models/rest/stg_shopify__location.sql", "unique_id": "model.shopify_source.stg_shopify__location", "fqn": ["shopify_source", "rest", "stg_shopify__location"], "alias": "stg_shopify__location", "checksum": {"name": "sha256", "checksum": "9c5af83aa1e6cb6cae684e11bc8c6a6aea6e040e08b32e7e0ce556e6a657df69"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy": {"name": "is_legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.4954455, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__location_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_shopify__location_tmp')),\n staging_columns=get_location_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location_tmp", "package": null, "version": null}, {"name": "stg_shopify__location_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_location_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__location_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__location.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n address_1\n \n as \n \n address_1\n \n, \n \n \n address_2\n \n as \n \n address_2\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_code\n \n as \n \n country_code\n \n, \n \n \n country_name\n \n as \n \n country_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n legacy\n \n as \n \n legacy\n \n, \n \n \n localized_country_name\n \n as \n \n localized_country_name\n \n, \n \n \n localized_province_name\n \n as \n \n localized_province_name\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n province_code\n \n as \n \n province_code\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as location_id,\n name,\n _fivetran_deleted as is_deleted,\n active as is_active,\n address_1,\n address_2,\n city,\n country,\n country_code,\n country_name,\n legacy as is_legacy,\n localized_country_name,\n localized_province_name,\n phone,\n province,\n province_code,\n zip,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_url_tag.sql", "original_file_path": "models/rest/stg_shopify__order_url_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag", "fqn": ["shopify_source", "rest", "stg_shopify__order_url_tag"], "alias": "stg_shopify__order_url_tag", "checksum": {"name": "sha256", "checksum": "c20d1f6f0095e9d95f7694143ef693d91dc3438b40d254a451662414c1aa9699"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.5050554, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_url_tag_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_shopify__order_url_tag_tmp')),\n staging_columns=get_order_url_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_url_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_url_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n key,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_allocation.sql", "original_file_path": "models/rest/stg_shopify__discount_allocation.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation", "fqn": ["shopify_source", "rest", "stg_shopify__discount_allocation"], "alias": "stg_shopify__discount_allocation", "checksum": {"name": "sha256", "checksum": "834136ae3fedb83876370eb77b57f96fe24028aee02681d1dc2ac6d0d7d3553e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing allocation amounts from discount applications across specific order lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The presentment money currency code for the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The shop money currency code for the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to. Used to join with the discount application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount allocation within the list of allocations on an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.5256755, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_allocation_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_shopify__discount_allocation_tmp')),\n staging_columns=get_discount_allocation_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_allocation_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_allocation_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_allocation.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set_presentment_money_amount\n \n as \n \n amount_set_presentment_money_amount\n \n, \n \n \n amount_set_presentment_money_currency_code\n \n as \n \n amount_set_presentment_money_currency_code\n \n, \n \n \n amount_set_shop_money_amount\n \n as \n \n amount_set_shop_money_amount\n \n, \n \n \n amount_set_shop_money_currency_code\n \n as \n \n amount_set_shop_money_currency_code\n \n, \n \n \n discount_application_index\n \n as \n \n discount_application_index\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n amount,\n amount_set_presentment_money_amount,\n amount_set_presentment_money_currency_code,\n amount_set_shop_money_amount,\n amount_set_shop_money_currency_code,\n discount_application_index,\n index,\n order_line_id, \n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__collection_product.sql", "original_file_path": "models/rest/stg_shopify__collection_product.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product", "fqn": ["shopify_source", "rest", "stg_shopify__collection_product"], "alias": "stg_shopify__collection_product", "checksum": {"name": "sha256", "checksum": "0abb81383bce80941338fce6c30579fd7e729cce5a443d0921752640c0450779"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.4848793, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__collection_product_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_shopify__collection_product_tmp')),\n staging_columns=get_collection_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__collection_product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n collection_id\n \n as \n \n collection_id\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n product_id,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_discount_code.sql", "original_file_path": "models/rest/stg_shopify__order_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code", "fqn": ["shopify_source", "rest", "stg_shopify__order_discount_code"], "alias": "stg_shopify__order_discount_code", "checksum": {"name": "sha256", "checksum": "e8738ee571f2712e359118c5799400f39259f8aef959df3c6df84aa83d819b71"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.5173712, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_discount_code_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_shopify__order_discount_code_tmp')),\n staging_columns=get_order_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n upper(code) as code,\n type,\n amount,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__metafield": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__metafield.sql", "original_file_path": "models/rest/stg_shopify__metafield.sql", "unique_id": "model.shopify_source.stg_shopify__metafield", "fqn": ["shopify_source", "rest", "stg_shopify__metafield"], "alias": "stg_shopify__metafield", "checksum": {"name": "sha256", "checksum": "e7e2a824bf892f5c1d89602d012a6ccdce8e45362840db93f341c741eb754596"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_id": {"name": "metafield_id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource_id": {"name": "owner_resource_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Coalescing of type and value_type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield_reference": {"name": "metafield_reference", "description": "Combination of the namespace and key columns. This field is key for metafield mapping in downstream models.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating the most up to date record identified by the most recent updated_at field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.4989848, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield\"", "raw_code": "{{ config(enabled=(var('shopify_using_metafield', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__metafield_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_shopify__metafield_tmp')),\n staging_columns=get_metafield_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n lower({{ dbt.concat([\"namespace\",\"'_'\",\"key\"]) }}) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield_tmp", "package": null, "version": null}, {"name": "stg_shopify__metafield_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_metafield_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt.concat"], "nodes": ["model.shopify_source.stg_shopify__metafield_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__metafield.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n 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 id\n \n as \n \n id\n \n, \n \n \n key\n \n as \n \n key\n \n, \n \n \n namespace\n \n as \n \n namespace\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n owner_resource\n \n as \n \n owner_resource\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as metafield_id,\n description,\n namespace,\n key,\n value,\n lower(coalesce(type, value_type)) as value_type,\n owner_id as owner_resource_id,\n lower(owner_resource) as owner_resource,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n lower(namespace || '_' || key) as metafield_reference,\n row_number() over(partition by id, source_relation order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_item.sql", "original_file_path": "models/rest/stg_shopify__inventory_item.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_item"], "alias": "stg_shopify__inventory_item", "checksum": {"name": "sha256", "checksum": "853a6e06a16707a06826f7d445f609b75da97e7990fdb4386fb2bf47b5cd088b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item. Coalesced with the deprecated `cost` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.4908874, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_item_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_shopify__inventory_item_tmp')),\n staging_columns=get_inventory_item_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_item_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_item_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_item.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n country_code_of_origin\n \n as \n \n country_code_of_origin\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n province_code_of_origin\n \n as \n \n province_code_of_origin\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n tracked\n \n as \n \n tracked\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n duplicate_sku_count\n \n as \n \n duplicate_sku_count\n \n, \n \n \n harmonized_system_code\n \n as \n \n harmonized_system_code\n \n, \n \n \n inventory_history_url\n \n as \n \n inventory_history_url\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n measurement_id\n \n as \n \n measurement_id\n \n, \n \n \n measurement_weight_value\n \n as \n \n measurement_weight_value\n \n, \n \n \n measurement_weight_unit\n \n as \n \n measurement_weight_unit\n \n, \n \n \n tracked_editable_locked\n \n as \n \n tracked_editable_locked\n \n, \n \n \n tracked_editable_reason\n \n as \n \n tracked_editable_reason\n \n, \n \n \n unit_cost_amount\n \n as \n \n unit_cost_amount\n \n, \n \n \n unit_cost_currency_code\n \n as \n \n unit_cost_currency_code\n \n, \n cast(null as float) as \n \n cost\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as inventory_item_id,\n sku,\n _fivetran_deleted as is_deleted, -- won't filter out for now\n coalesce(unit_cost_amount, cost) as unit_cost_amount,\n unit_cost_currency_code,\n country_code_of_origin,\n province_code_of_origin,\n requires_shipping as is_shipping_required,\n tracked as is_inventory_quantity_tracked,\n duplicate_sku_count,\n harmonized_system_code,\n inventory_history_url,\n legacy_resource_id,\n measurement_id,\n measurement_weight_value,\n measurement_weight_unit,\n tracked_editable_locked as is_tracked_editable_locked,\n tracked_editable_reason,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_tag.sql", "original_file_path": "models/rest/stg_shopify__order_tag.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag", "fqn": ["shopify_source", "rest", "stg_shopify__order_tag"], "alias": "stg_shopify__order_tag", "checksum": {"name": "sha256", "checksum": "e4d40846975eafeecc76f411ee433af97b1ffe1a24fd2d27a11b6a0b17f8096f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.5041597, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_tag_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_shopify__order_tag_tmp')),\n staging_columns=get_order_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_redeem_code.sql", "original_file_path": "models/rest/stg_shopify__discount_redeem_code.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code", "fqn": ["shopify_source", "rest", "stg_shopify__discount_redeem_code"], "alias": "stg_shopify__discount_redeem_code", "checksum": {"name": "sha256", "checksum": "999024fc5a37f651b415e8f306756d8c0a6c78043c125950dd1cb95377237b6d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each redeem code is tied to a parent discount and may be created by an app or manually.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This is updated asynchronously and may differ from real-time usage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (typically an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount the redeem code is associated with (e.g., `discount_code_basic`, `discount_code_app`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.5337334, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_redeem_code_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_shopify__discount_redeem_code_tmp')),\n staging_columns=get_discount_redeem_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_redeem_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_redeem_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_redeem_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_by_description\n \n as \n \n created_by_description\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_by_title\n \n as \n \n created_by_title\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n discount_type\n \n as \n \n discount_type\n \n, \n \n \n id\n \n as \n \n id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n async_usage_count,\n code,\n created_by_description,\n created_by_id,\n created_by_title,\n discount_id,\n discount_type,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__tender_transaction.sql", "original_file_path": "models/rest/stg_shopify__tender_transaction.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction", "fqn": ["shopify_source", "rest", "stg_shopify__tender_transaction"], "alias": "stg_shopify__tender_transaction", "checksum": {"name": "sha256", "checksum": "d4d8a6ff82d57efdf1f1814199d70d44444154dc08519b85aad3258b7fadeaa6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.5152996, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__tender_transaction_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_shopify__tender_transaction_tmp')),\n staging_columns=get_tender_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tender_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__tender_transaction.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n payment_method\n \n as \n \n payment_method\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n remote_reference\n \n as \n \n remote_reference\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as transaction_id,\n order_id,\n amount,\n currency,\n payment_method,\n remote_reference,\n user_id,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n where not coalesce(test, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__fulfillment.sql", "original_file_path": "models/rest/stg_shopify__fulfillment.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment", "fqn": ["shopify_source", "rest", "stg_shopify__fulfillment"], "alias": "stg_shopify__fulfillment", "checksum": {"name": "sha256", "checksum": "ca3697aa2d2acc4e0714a2689336a063495e3bc64cc9515944e36f7ee55f1810"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.4892507, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_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_shopify__fulfillment_tmp')),\n staging_columns=get_fulfillment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n shipment_status\n \n as \n \n shipment_status\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n tracking_company\n \n as \n \n tracking_company\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n tracking_numbers\n \n as \n \n tracking_numbers\n \n, \n \n \n tracking_urls\n \n as \n \n tracking_urls\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_id,\n location_id,\n order_id,\n name,\n service,\n shipment_status,\n lower(status) as status,\n tracking_company,\n tracking_number,\n tracking_numbers,\n tracking_urls,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__tax_line.sql", "original_file_path": "models/rest/stg_shopify__tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line", "fqn": ["shopify_source", "rest", "stg_shopify__tax_line"], "alias": "stg_shopify__tax_line", "checksum": {"name": "sha256", "checksum": "d69e6962393ead5e08c53a74bb2310b91352db44f50335ebb42e923f996baba5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.5232272, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__tax_line_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_shopify__tax_line_tmp')),\n staging_columns=get_tax_line_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n index,\n order_line_id,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_adjustment.sql", "original_file_path": "models/rest/stg_shopify__order_adjustment.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment", "fqn": ["shopify_source", "rest", "stg_shopify__order_adjustment"], "alias": "stg_shopify__order_adjustment", "checksum": {"name": "sha256", "checksum": "c4ddb2ba573ce5e01cef92e306dabe987669b60eaee828727876182dec8d4537"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"order_adjustment_id": {"name": "order_adjustment_id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in the shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.4799457, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_adjustment_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_adjustment_tmp')),\n staging_columns=get_order_adjustment_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_adjustment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_adjustment_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_adjustment.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amount_set\n \n as \n \n amount_set\n \n, \n \n \n tax_amount\n \n as \n \n tax_amount\n \n, \n \n \n tax_amount_set\n \n as \n \n tax_amount_set\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as order_adjustment_id,\n order_id,\n refund_id,\n amount,\n amount_set,\n tax_amount,\n tax_amount_set,\n kind,\n reason,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_free_shipping.sql", "original_file_path": "models/rest/stg_shopify__discount_code_free_shipping.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_free_shipping"], "alias": "stg_shopify__discount_code_free_shipping", "checksum": {"name": "sha256", "checksum": "6cfeea54c8a7056fa680b926c2ae6ceeb594bf4e1a9857799b875bae0d73fc53"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for free shipping discount codes in Shopify, where shipping costs are discounted based on qualifying conditions.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.5327418, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_free_shipping_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_shopify__discount_code_free_shipping_tmp')),\n staging_columns=get_discount_code_free_shipping_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_free_shipping_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_free_shipping.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_basic.sql", "original_file_path": "models/rest/stg_shopify__discount_code_basic.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_basic"], "alias": "stg_shopify__discount_code_basic", "checksum": {"name": "sha256", "checksum": "36e6431d35cf4791624e49bc76a0f3124e087452e777031fcfb250818ba0b9b5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata about basic discount codes created by merchants.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.529811, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_basic_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_shopify__discount_code_basic_tmp')),\n staging_columns=get_discount_code_basic_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_basic_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_basic.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as TEXT) as \n \n title\n \n , \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_line.sql", "original_file_path": "models/rest/stg_shopify__order_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_line"], "alias": "stg_shopify__order_line", "checksum": {"name": "sha256", "checksum": "36ea0a90f4476fd400178aa8b6a37b2d30c8bc5325f7ff8dc0670ecd740f5def"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.459413, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_line_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_tmp')),\n staging_columns=get_order_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_pass_through_columns') }}\n\n from fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fulfillable_quantity\n \n as \n \n fulfillable_quantity\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n gift_card\n \n as \n \n gift_card\n \n, \n \n \n grams\n \n as \n \n grams\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n pre_tax_price\n \n as \n \n pre_tax_price\n \n, \n cast(null as TEXT) as \n \n pre_tax_price_set\n \n , \n \n \n price\n \n as \n \n price\n \n, \n cast(null as TEXT) as \n \n price_set\n \n , \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n requires_shipping\n \n as \n \n requires_shipping\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n cast(null as TEXT) as \n \n tax_code\n \n , \n \n \n title\n \n as \n \n title\n \n, \n \n \n total_discount\n \n as \n \n total_discount\n \n, \n cast(null as TEXT) as \n \n total_discount_set\n \n , \n \n \n variant_id\n \n as \n \n variant_id\n \n, \n cast(null as TEXT) as \n \n variant_title\n \n , \n cast(null as TEXT) as \n \n variant_inventory_management\n \n , \n \n \n vendor\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n properties\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n id as order_line_id,\n index,\n name,\n order_id,\n fulfillable_quantity,\n fulfillment_status,\n gift_card as is_gift_card,\n grams,\n pre_tax_price,\n pre_tax_price_set,\n price,\n price_set,\n product_id,\n quantity,\n requires_shipping as is_shipping_required,\n sku,\n taxable as is_taxable,\n tax_code,\n title,\n total_discount,\n total_discount_set,\n variant_id,\n variant_title,\n variant_inventory_management,\n vendor,\n properties,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_variant_media.sql", "original_file_path": "models/rest/stg_shopify__product_variant_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media", "fqn": ["shopify_source", "rest", "stg_shopify__product_variant_media"], "alias": "stg_shopify__product_variant_media", "checksum": {"name": "sha256", "checksum": "2a19d359137d9e352d5ab42327cf191199d918cef118124f2aee0272c513bb70"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.5067065, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"", "raw_code": "{{ config(enabled=(var('shopify_using_product_variant_media', False) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_media_tmp')),\n staging_columns=get_product_variant_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_variant_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_variant_id\n \n as \n \n product_variant_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_variant_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__customer_tag.sql", "original_file_path": "models/rest/stg_shopify__customer_tag.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag", "fqn": ["shopify_source", "rest", "stg_shopify__customer_tag"], "alias": "stg_shopify__customer_tag", "checksum": {"name": "sha256", "checksum": "7ddbfed95b8851221f0fcec884872362a389f01cf7a6e0fdfcf21fae5de68c35"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.4872117, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__customer_tag_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_shopify__customer_tag_tmp')),\n staging_columns=get_customer_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__customer_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__customer_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n customer_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_quantity.sql", "original_file_path": "models/rest/stg_shopify__inventory_quantity.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_quantity"], "alias": "stg_shopify__inventory_quantity", "checksum": {"name": "sha256", "checksum": "ceec14a24511cf768af52d91c6ee0c193dc4871c832b3a4136ed4ed7497f98dc"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The total quantity of the inventory item available at all locations.", "columns": {"inventory_quantity_id": {"name": "inventory_quantity_id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_state_name": {"name": "inventory_state_name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.4931874, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_quantity_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_shopify__inventory_quantity_tmp')),\n staging_columns=get_inventory_quantity_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_quantity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_quantity.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n inventory_level_id\n \n as \n \n inventory_level_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_quantity_id,\n inventory_item_id,\n inventory_level_id,\n name as inventory_state_name,\n quantity,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_bxgy.sql", "original_file_path": "models/rest/stg_shopify__discount_code_bxgy.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_bxgy"], "alias": "stg_shopify__discount_code_bxgy", "checksum": {"name": "sha256", "checksum": "b47ced0eb2ea79958678c2ed4453bb46573b8b484f255c2e709af7ebe51453b8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for Buy X Get Y-style discount codes in Shopify, where discounts are applied based on product quantity thresholds.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.5312486, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_bxgy_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_shopify__discount_code_bxgy_tmp')),\n staging_columns=get_discount_code_bxgy_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_bxgy_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_bxgy.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n cast(null as integer) as \n \n recurring_cycle_limit\n \n , \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count\n \n as \n \n codes_count\n \n, \n \n \n codes_precision\n \n as \n \n codes_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code, \n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__customer.sql", "original_file_path": "models/rest/stg_shopify__customer.sql", "unique_id": "model.shopify_source.stg_shopify__customer", "fqn": ["shopify_source", "rest", "stg_shopify__customer"], "alias": "stg_shopify__customer", "checksum": {"name": "sha256", "checksum": "2493d71ed3533a8938368c51239486949c4a399cd4005d846f8008eb82b945e6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.4519072, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__customer_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n {{ shopify_source.fivetran_convert_timezone(column='cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as marketing_consent_updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n {{ fivetran_utils.fill_pass_through_columns('customer_pass_through_columns') }}\n\n from fields\n \n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tmp", "package": null, "version": null}, {"name": "stg_shopify__customer_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__customer_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__customer.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accepts_marketing\n \n as \n \n accepts_marketing\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n default_address_id\n \n as \n \n default_address_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n orders_count\n \n as \n \n orders_count\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n tax_exempt\n \n as \n \n tax_exempt\n \n, \n \n \n total_spent\n \n as \n \n total_spent\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n verified_email\n \n as \n \n verified_email\n \n, \n cast(null as timestamp) as \n \n email_marketing_consent_consent_updated_at\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_opt_in_level\n \n , \n cast(null as TEXT) as \n \n email_marketing_consent_state\n \n , \n cast(null as TEXT) as \n \n note\n \n , \n cast(null as timestamp) as \n \n accepts_marketing_updated_at\n \n , \n cast(null as TEXT) as \n \n marketing_opt_in_level\n \n , \n cast(null as TEXT) as \n \n currency\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as customer_id,\n lower(email) as email,\n first_name,\n last_name,\n orders_count,\n default_address_id,\n phone,\n lower(state) as account_state,\n tax_exempt as is_tax_exempt,\n total_spent,\n verified_email as is_verified_email,\n note,\n currency,\n case \n when email_marketing_consent_state is null then\n case \n when accepts_marketing is null then null\n when accepts_marketing then 'subscribed (legacy)' \n else 'not_subscribed (legacy)' end\n else lower(email_marketing_consent_state) end as marketing_consent_state,\n lower(coalesce(email_marketing_consent_opt_in_level, marketing_opt_in_level)) as marketing_opt_in_level,\n\n cast(\n cast(cast(coalesce(accepts_marketing_updated_at, email_marketing_consent_consent_updated_at) as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as marketing_consent_updated_at,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n \n\n\n\n\n\n from fields\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_application.sql", "original_file_path": "models/rest/stg_shopify__discount_application.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application", "fqn": ["shopify_source", "rest", "stg_shopify__discount_application"], "alias": "stg_shopify__discount_application", "checksum": {"name": "sha256", "checksum": "eb9d6cd583dcf8522153a756ebd4b6179a68ebce8da489c17bee9b294d173ba8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing discount applications, which define how discounts were applied at the order level.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code associated with the application, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to all line items (`all`) or only those that are specifically entitled (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name or title of the discount as defined in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The value of the discount. If `value_type` is `percentage`, this represents a percentage. If `fixed_amount`, this is a fixed currency value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount value is a `percentage` or `fixed_amount`. If `target_type` is `shipping_line`, only `percentage` is accepted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.52686, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_application_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_shopify__discount_application_tmp')),\n staging_columns=get_discount_application_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_application_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_application_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__discount_application_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_application.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allocation_method\n \n as \n \n allocation_method\n \n, \n \n \n code\n \n as \n \n code\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 order_id\n \n as \n \n order_id\n \n, \n \n \n target_selection\n \n as \n \n target_selection\n \n, \n \n \n target_type\n \n as \n \n target_type\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n value\n \n as \n \n value\n \n, \n \n \n value_type\n \n as \n \n value_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n allocation_method,\n upper(code) as code,\n description,\n index,\n order_id,\n target_selection,\n target_type,\n title,\n type,\n value,\n value_type,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__media.sql", "original_file_path": "models/rest/stg_shopify__media.sql", "unique_id": "model.shopify_source.stg_shopify__media", "fqn": ["shopify_source", "rest", "stg_shopify__media"], "alias": "stg_shopify__media", "checksum": {"name": "sha256", "checksum": "fbddf6477f3a1498b88f3a0699a65e4395a7631bb615234a6338242df8580429"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing media metadata, including status and timestamps.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.496333, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_tmp')),\n staging_columns=get_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\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 TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as media_id,\n status,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_variant.sql", "original_file_path": "models/rest/stg_shopify__product_variant.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant", "fqn": ["shopify_source", "rest", "stg_shopify__product_variant"], "alias": "stg_shopify__product_variant", "checksum": {"name": "sha256", "checksum": "8a25c78869bc4281ee618d06cc2a9154294d3a4d475d473f133a59ea72532f1a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_available_for_sale": {"name": "is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_components_required": {"name": "has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.474138, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_variant_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_variant_tmp')),\n staging_columns=get_product_variant_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_variant_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_variant_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_variant_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_variant_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\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 updated_at\n \n as \n \n updated_at\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n position\n \n as \n \n position\n \n, \n \n \n inventory_policy\n \n as \n \n inventory_policy\n \n, \n \n \n compare_at_price\n \n as \n \n compare_at_price\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n barcode\n \n as \n \n barcode\n \n, \n cast(null as numeric(28,6)) as \n \n old_inventory_quantity\n \n , \n \n \n inventory_quantity\n \n as \n \n inventory_quantity\n \n, \n \n \n tax_code\n \n as \n \n tax_code\n \n, \n \n \n available_for_sale\n \n as \n \n available_for_sale\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n legacy_resource_id\n \n as \n \n legacy_resource_id\n \n, \n \n \n requires_components\n \n as \n \n requires_components\n \n, \n \n \n sellable_online_quantity\n \n as \n \n sellable_online_quantity\n \n, \n cast(null as TEXT) as \n \n fulfillment_service\n \n , \n cast(null as float) as \n \n grams\n \n , \n cast(null as TEXT) as \n \n inventory_management\n \n , \n cast(null as float) as \n \n weight\n \n , \n cast(null as TEXT) as \n \n weight_unit\n \n , \n cast(null as TEXT) as \n \n option_1\n \n , \n cast(null as TEXT) as \n \n option_2\n \n , \n cast(null as TEXT) as \n \n option_3\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as variant_id,\n product_id,\n inventory_item_id,\n title,\n price,\n sku,\n position,\n inventory_policy,\n compare_at_price,\n fulfillment_service,\n inventory_management,\n taxable as is_taxable,\n barcode,\n grams,\n coalesce(inventory_quantity, old_inventory_quantity) as inventory_quantity,\n available_for_sale as is_available_for_sale,\n display_name,\n legacy_resource_id,\n requires_components as has_components_required,\n sellable_online_quantity,\n weight,\n weight_unit,\n option_1,\n option_2,\n option_3,\n tax_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__inventory_level.sql", "original_file_path": "models/rest/stg_shopify__inventory_level.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level", "fqn": ["shopify_source", "rest", "stg_shopify__inventory_level"], "alias": "stg_shopify__inventory_level", "checksum": {"name": "sha256", "checksum": "79a7a96d7bd30b27bd745353030e4bd5a8f5bfa29cdc816e938a7b323d0a1d01"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available_quantity": {"name": "available_quantity", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.4922652, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__inventory_level_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_shopify__inventory_level_tmp')),\n staging_columns=get_inventory_level_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}, {"name": "stg_shopify__inventory_level_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_inventory_level_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__inventory_level_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__inventory_level.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n inventory_item_id\n \n as \n \n inventory_item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n can_deactivate\n \n as \n \n can_deactivate\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deactivation_alert\n \n as \n \n deactivation_alert\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as integer) as \n \n available\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as inventory_level_id,\n inventory_item_id,\n location_id,\n available as available_quantity, -- deprecated\n can_deactivate,\n deactivation_alert,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_tag.sql", "original_file_path": "models/rest/stg_shopify__product_tag.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag", "fqn": ["shopify_source", "rest", "stg_shopify__product_tag"], "alias": "stg_shopify__product_tag", "checksum": {"name": "sha256", "checksum": "30ae521143e47b36580f3e0c4bc03bf3a2b2d39e2f219078194419fd2ef0ba08"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.507621, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_tag_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_shopify__product_tag_tmp')),\n staging_columns=get_product_tag_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tag_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_tag_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__product_tag_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_tag.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n product_id,\n index,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order.sql", "original_file_path": "models/rest/stg_shopify__order.sql", "unique_id": "model.shopify_source.stg_shopify__order", "fqn": ["shopify_source", "rest", "stg_shopify__order"], "alias": "stg_shopify__order", "checksum": {"name": "sha256", "checksum": "6610716cd337bcefb217f0cf6588b855c6ecf4045a690e229a1c57b19b48241e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.4687052, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__order_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_order_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n {{ shopify_source.json_to_string(\"total_discounts_set\", source_columns_in_relation) }} as total_discounts_set,\n total_line_items_price,\n {{ shopify_source.json_to_string(\"total_line_items_price_set\", source_columns_in_relation) }} as total_line_items_price_set,\n total_price,\n {{ shopify_source.json_to_string(\"total_price_set\", source_columns_in_relation) }} as total_price_set,\n {{ shopify_source.json_to_string(\"total_tax_set\", source_columns_in_relation) }} as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(cancelled_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as cancelled_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(closed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as closed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n {{ shopify_source.json_to_string(\"total_shipping_price_set\", source_columns_in_relation) }} as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n id\n \n as \n \n id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n total_discounts\n \n as \n \n total_discounts\n \n, \n cast(null as TEXT) as \n \n total_discounts_set\n \n , \n \n \n total_line_items_price\n \n as \n \n total_line_items_price\n \n, \n cast(null as TEXT) as \n \n total_line_items_price_set\n \n , \n \n \n total_price\n \n as \n \n total_price\n \n, \n cast(null as TEXT) as \n \n total_price_set\n \n , \n cast(null as TEXT) as \n \n total_tax_set\n \n , \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n subtotal_price\n \n as \n \n subtotal_price\n \n, \n \n \n taxes_included\n \n as \n \n taxes_included\n \n, \n \n \n total_weight\n \n as \n \n total_weight\n \n, \n cast(null as float) as \n \n total_tip_received\n \n , \n \n \n landing_site_base_url\n \n as \n \n landing_site_base_url\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n order_number\n \n as \n \n order_number\n \n, \n \n \n cancel_reason\n \n as \n \n cancel_reason\n \n, \n \n \n cancelled_at\n \n as \n \n cancelled_at\n \n, \n \n \n cart_token\n \n as \n \n cart_token\n \n, \n \n \n checkout_token\n \n as \n \n checkout_token\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n financial_status\n \n as \n \n financial_status\n \n, \n \n \n fulfillment_status\n \n as \n \n fulfillment_status\n \n, \n \n \n referring_site\n \n as \n \n referring_site\n \n, \n \n \n billing_address_address_1\n \n as \n \n billing_address_address_1\n \n, \n \n \n billing_address_address_2\n \n as \n \n billing_address_address_2\n \n, \n \n \n billing_address_city\n \n as \n \n billing_address_city\n \n, \n \n \n billing_address_company\n \n as \n \n billing_address_company\n \n, \n \n \n billing_address_country\n \n as \n \n billing_address_country\n \n, \n \n \n billing_address_country_code\n \n as \n \n billing_address_country_code\n \n, \n \n \n billing_address_first_name\n \n as \n \n billing_address_first_name\n \n, \n \n \n billing_address_last_name\n \n as \n \n billing_address_last_name\n \n, \n \n \n billing_address_latitude\n \n as \n \n billing_address_latitude\n \n, \n \n \n billing_address_longitude\n \n as \n \n billing_address_longitude\n \n, \n \n \n billing_address_name\n \n as \n \n billing_address_name\n \n, \n \n \n billing_address_phone\n \n as \n \n billing_address_phone\n \n, \n \n \n billing_address_province\n \n as \n \n billing_address_province\n \n, \n \n \n billing_address_province_code\n \n as \n \n billing_address_province_code\n \n, \n \n \n billing_address_zip\n \n as \n \n billing_address_zip\n \n, \n \n \n browser_ip\n \n as \n \n browser_ip\n \n, \n \n \n buyer_accepts_marketing\n \n as \n \n buyer_accepts_marketing\n \n, \n cast(null as TEXT) as \n \n total_shipping_price_set\n \n , \n \n \n shipping_address_address_1\n \n as \n \n shipping_address_address_1\n \n, \n \n \n shipping_address_address_2\n \n as \n \n shipping_address_address_2\n \n, \n \n \n shipping_address_city\n \n as \n \n shipping_address_city\n \n, \n \n \n shipping_address_company\n \n as \n \n shipping_address_company\n \n, \n \n \n shipping_address_country\n \n as \n \n shipping_address_country\n \n, \n \n \n shipping_address_country_code\n \n as \n \n shipping_address_country_code\n \n, \n \n \n shipping_address_first_name\n \n as \n \n shipping_address_first_name\n \n, \n \n \n shipping_address_last_name\n \n as \n \n shipping_address_last_name\n \n, \n \n \n shipping_address_latitude\n \n as \n \n shipping_address_latitude\n \n, \n \n \n shipping_address_longitude\n \n as \n \n shipping_address_longitude\n \n, \n \n \n shipping_address_name\n \n as \n \n shipping_address_name\n \n, \n \n \n shipping_address_phone\n \n as \n \n shipping_address_phone\n \n, \n \n \n shipping_address_province\n \n as \n \n shipping_address_province\n \n, \n \n \n shipping_address_province_code\n \n as \n \n shipping_address_province_code\n \n, \n \n \n shipping_address_zip\n \n as \n \n shipping_address_zip\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n token\n \n as \n \n token\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as integer) as \n \n app_id\n \n , \n cast(null as integer) as \n \n checkout_id\n \n , \n cast(null as TEXT) as \n \n client_details_user_agent\n \n , \n cast(null as TEXT) as \n \n customer_locale\n \n , \n cast(null as TEXT) as \n \n order_status_url\n \n , \n cast(null as TEXT) as \n \n presentment_currency\n \n , \n cast(null as boolean) as \n \n confirmed\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as order_id,\n user_id,\n total_discounts,\n total_discounts_set as total_discounts_set,\n total_line_items_price,\n total_line_items_price_set as total_line_items_price_set,\n total_price,\n total_price_set as total_price_set,\n total_tax_set as total_tax_set,\n total_tax,\n source_name,\n subtotal_price,\n taxes_included as has_taxes_included,\n total_weight,\n total_tip_received,\n landing_site_base_url,\n location_id,\n name,\n note,\n number,\n order_number,\n cancel_reason,\n cart_token,\n checkout_token,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(cancelled_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as cancelled_timestamp,\n cast(\n cast(cast(closed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as closed_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n currency,\n customer_id,\n lower(email) as email,\n financial_status,\n fulfillment_status,\n referring_site,\n billing_address_address_1,\n billing_address_address_2,\n billing_address_city,\n billing_address_company,\n billing_address_country,\n billing_address_country_code,\n billing_address_first_name,\n billing_address_last_name,\n billing_address_latitude,\n billing_address_longitude,\n billing_address_name,\n billing_address_phone,\n billing_address_province,\n billing_address_province_code,\n billing_address_zip,\n browser_ip,\n total_shipping_price_set as total_shipping_price_set,\n shipping_address_address_1,\n shipping_address_address_2,\n shipping_address_city,\n shipping_address_company,\n shipping_address_country,\n shipping_address_country_code,\n shipping_address_first_name,\n shipping_address_last_name,\n shipping_address_latitude,\n shipping_address_longitude,\n shipping_address_name,\n shipping_address_phone,\n shipping_address_province,\n shipping_address_province_code,\n shipping_address_zip,\n token,\n app_id,\n checkout_id,\n client_details_user_agent,\n customer_locale,\n order_status_url,\n presentment_currency,\n test as is_test_order,\n _fivetran_deleted as is_deleted,\n buyer_accepts_marketing as has_buyer_accepted_marketing,\n confirmed as is_confirmed,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(is_test_order, false)\nand not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__refund.sql", "original_file_path": "models/rest/stg_shopify__refund.sql", "unique_id": "model.shopify_source.stg_shopify__refund", "fqn": ["shopify_source", "rest", "stg_shopify__refund"], "alias": "stg_shopify__refund", "checksum": {"name": "sha256", "checksum": "bda33a385dc2880adba5bbe2cf033de9509cc5389c76ef11e2c4923f757ef0b8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a refund within Shopify.", "columns": {"refund_id": {"name": "refund_id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.4778543, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__refund_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__refund_tmp')),\n staging_columns=get_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__refund.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made a refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n note\n \n as \n \n note\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n processed_at\n \n as \n \n processed_at\n \n, \n \n \n restock\n \n as \n \n restock\n \n, \n \n \n total_duties_set\n \n as \n \n total_duties_set\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n\n select\n id as refund_id,\n note,\n order_id,\n restock,\n total_duties_set,\n user_id,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout_discount_code.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout_discount_code.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout_discount_code"], "alias": "stg_shopify__abandoned_checkout_discount_code", "checksum": {"name": "sha256", "checksum": "4f79565f0c0b60aaa4b9e6d55bb3d8e69dbc5e52a2bc952224ec9fc2777d5a08"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the discount codes from abandoned checkouts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.516395, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_discount_code_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_shopify__abandoned_checkout_discount_code_tmp')),\n staging_columns=get_abandoned_checkout_discount_code_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n discount_id\n \n as \n \n discount_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n type\n \n as \n \n type\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 TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select \n checkout_id,\n upper(code) as code,\n discount_id,\n amount,\n type,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation, \n row_number() over(partition by checkout_id, upper(code), source_relation order by index desc) as index\n\n\n from fields\n\n)\n\nselect *\nfrom final\nwhere index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_shipping_tax_line.sql", "original_file_path": "models/rest/stg_shopify__order_shipping_tax_line.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line", "fqn": ["shopify_source", "rest", "stg_shopify__order_shipping_tax_line"], "alias": "stg_shopify__order_shipping_tax_line", "checksum": {"name": "sha256", "checksum": "26fc98d9b37f25a22d931bc0786714888c2e7809a61b9e2cdd84c6c02c1deee4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this record is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.5032492, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_shipping_tax_line_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_shopify__order_shipping_tax_line_tmp')),\n staging_columns=get_order_shipping_tax_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_shipping_tax_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_shipping_tax_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n order_shipping_line_id\n \n as \n \n order_shipping_line_id\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n price_set\n \n as \n \n price_set\n \n, \n \n \n rate\n \n as \n \n rate\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_shipping_line_id,\n index,\n price,\n price_set,\n rate,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__collection.sql", "original_file_path": "models/rest/stg_shopify__collection.sql", "unique_id": "model.shopify_source.stg_shopify__collection", "fqn": ["shopify_source", "rest", "stg_shopify__collection"], "alias": "stg_shopify__collection", "checksum": {"name": "sha256", "checksum": "b14f356bbf20e962744b82a4ba45e57c6b82e6a988d3cfe60ce1cdf23b849904"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "rule_logic": {"name": "rule_logic", "description": "Whether the `rules` are disjunctive (logical `OR`) or conjunctive (logical `AND`)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparative relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values incline - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.486336, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__collection_tmp')) %}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__collection_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_collection_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n {{ shopify_source.json_to_string(\"rules\", source_columns_in_relation) }} as rules,\n sort_order,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_tmp", "package": null, "version": null}, {"name": "stg_shopify__collection_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_collection_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__collection_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__collection.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n disjunctive\n \n as \n \n disjunctive\n \n, \n \n \n handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\n \n, \n \n \n rules\n \n as \n \n rules\n \n, \n \n \n sort_order\n \n as \n \n sort_order\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\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as collection_id,\n _fivetran_deleted as is_deleted,\n case \n when disjunctive is null then null\n when disjunctive then 'disjunctive'\n else 'conjunctive' end as rule_logic,\n handle,\n published_scope,\n rules as rules,\n sort_order,\n title,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__fulfillment_event.sql", "original_file_path": "models/rest/stg_shopify__fulfillment_event.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event", "fqn": ["shopify_source", "rest", "stg_shopify__fulfillment_event"], "alias": "stg_shopify__fulfillment_event", "checksum": {"name": "sha256", "checksum": "2aa34203a0c3980df4a385721479ddf040698998be9432e7334d403a7e525e56"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_event_id": {"name": "fulfillment_event_id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.5223758, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"", "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__fulfillment_event_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_shopify__fulfillment_event_tmp')),\n staging_columns=get_fulfillment_event_columns()\n )\n }}\n \n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n {{ shopify_source.fivetran_convert_timezone(column='cast(estimated_delivery_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as estimated_delivery_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(happened_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}, {"name": "stg_shopify__fulfillment_event_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_fulfillment_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__fulfillment_event.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n address_1\n \n as \n \n address_1\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 created_at\n \n as \n \n created_at\n \n, \n \n \n estimated_delivery_at\n \n as \n \n estimated_delivery_at\n \n, \n \n \n fulfillment_id\n \n as \n \n fulfillment_id\n \n, \n \n \n happened_at\n \n as \n \n happened_at\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 longitude\n \n as \n \n longitude\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n province\n \n as \n \n province\n \n, \n \n \n shop_id\n \n as \n \n shop_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as fulfillment_event_id,\n fulfillment_id,\n shop_id,\n order_id,\n status,\n message,\n cast(\n cast(cast(estimated_delivery_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as estimated_delivery_at,\n cast(\n cast(cast(happened_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as happened_at,\n address_1,\n city,\n province,\n country,\n zip,\n latitude,\n longitude,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_note_attribute.sql", "original_file_path": "models/rest/stg_shopify__order_note_attribute.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute", "fqn": ["shopify_source", "rest", "stg_shopify__order_note_attribute"], "alias": "stg_shopify__order_note_attribute", "checksum": {"name": "sha256", "checksum": "e2c49df60461bef5bfebae6311cc92fa0bef64467a5d22e5dcf31d0d18b31250"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.4999037, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_note_attribute_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_shopify__order_note_attribute_tmp')),\n staging_columns=get_order_note_attribute_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_note_attribute_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_note_attribute_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_note_attribute.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n order_id,\n name,\n value,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_media": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product_media.sql", "original_file_path": "models/rest/stg_shopify__product_media.sql", "unique_id": "model.shopify_source.stg_shopify__product_media", "fqn": ["shopify_source", "rest", "stg_shopify__product_media"], "alias": "stg_shopify__product_media", "checksum": {"name": "sha256", "checksum": "e866179624b96dced4df610afe1303d19b741bd9fba169f6c706a897330f9556"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.505847, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_media_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_media_tmp')),\n staging_columns=get_product_media_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_media_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_media_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__product_media_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product_media.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n product_id\n \n as \n \n product_id\n \n, \n \n \n media_id\n \n as \n \n media_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select\n product_id,\n media_id,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__discount_code_app.sql", "original_file_path": "models/rest/stg_shopify__discount_code_app.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app", "fqn": ["shopify_source", "rest", "stg_shopify__discount_code_app"], "alias": "stg_shopify__discount_code_app", "checksum": {"name": "sha256", "checksum": "3ff36db72d417bd6de0b40cba77865f1fcb5f0e5f3b6dc9fff266db6324a3b13"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing metadata for discount codes created through third-party apps in Shopify.", "columns": {"discount_code_id": {"name": "discount_code_id", "description": "The unique ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The display name for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount code (e.g., `enabled`, `disabled`, `expired`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Boolean representing whether the discount code is limited to one use per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "The number of times the discount code has been used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The total number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates the precision or type of generated codes (e.g., exact vs. bulk).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with other order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Boolean indicating whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles this discount applies to (for subscription products).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the discount code was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the discount code was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The date and time (ISO 8601 format) when the discount code becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The date and time (ISO 8601 format) when the discount code expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.5283303, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"", "raw_code": "{{ config(enabled=(var('shopify_using_discount_code_app', False) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__discount_code_app_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_shopify__discount_code_app_tmp')),\n staging_columns=get_discount_code_app_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as created_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as updated_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(starts_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as starts_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(ends_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', 'UTC'), source_tz='UTC') }} as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_discount_code_app_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__discount_code_app.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n starts_at\n \n as \n \n starts_at\n \n, \n \n \n ends_at\n \n as \n \n ends_at\n \n, \n \n \n recurring_cycle_limit\n \n as \n \n recurring_cycle_limit\n \n, \n \n \n applies_once_per_customer\n \n as \n \n applies_once_per_customer\n \n, \n \n \n async_usage_count\n \n as \n \n async_usage_count\n \n, \n \n \n usage_limit\n \n as \n \n usage_limit\n \n, \n \n \n codes_count_count\n \n as \n \n codes_count_count\n \n, \n \n \n codes_count_precision\n \n as \n \n codes_count_precision\n \n, \n \n \n combines_with_order_discounts\n \n as \n \n combines_with_order_discounts\n \n, \n \n \n combines_with_product_discounts\n \n as \n \n combines_with_product_discounts\n \n, \n \n \n combines_with_shipping_discounts\n \n as \n \n combines_with_shipping_discounts\n \n, \n \n \n customer_selection_all_customers\n \n as \n \n customer_selection_all_customers\n \n, \n \n \n total_sales_amount\n \n as \n \n total_sales_amount\n \n, \n \n \n total_sales_currency_code\n \n as \n \n total_sales_currency_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n id as discount_code_id,\n title,\n status,\n applies_once_per_customer,\n usage_limit,\n async_usage_count as usage_count,\n codes_count_count as codes_count,\n codes_count_precision as codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n customer_selection_all_customers,\n recurring_cycle_limit,\n total_sales_amount,\n total_sales_currency_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_at,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_at,\n cast(\n cast(cast(starts_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as starts_at,\n cast(\n cast(cast(ends_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as ends_at,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__order_line_refund.sql", "original_file_path": "models/rest/stg_shopify__order_line_refund.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund", "fqn": ["shopify_source", "rest", "stg_shopify__order_line_refund"], "alias": "stg_shopify__order_line_refund", "checksum": {"name": "sha256", "checksum": "aa4df0e851d252ad4d9a27a7c0f36bcc0577026ab1e9b016b645a6250dd9d0c6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item from an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_line_refund_id": {"name": "order_line_refund_id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.4545872, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__order_line_refund_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__order_line_refund_tmp')),\n staging_columns=get_order_line_refund_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('order_line_refund_pass_through_columns') }}\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_order_line_refund_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__order_line_refund_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__order_line_refund.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order line refund in Shopify\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n order_line_id\n \n as \n \n order_line_id\n \n, \n \n \n subtotal\n \n as \n \n subtotal\n \n, \n \n \n subtotal_set\n \n as \n \n subtotal_set\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n total_tax_set\n \n as \n \n total_tax_set\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n restock_type\n \n as \n \n restock_type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select\n id as order_line_refund_id,\n location_id,\n order_line_id,\n subtotal,\n subtotal_set,\n total_tax,\n total_tax_set,\n quantity,\n refund_id,\n restock_type,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__product.sql", "original_file_path": "models/rest/stg_shopify__product.sql", "unique_id": "model.shopify_source.stg_shopify__product", "fqn": ["shopify_source", "rest", "stg_shopify__product"], "alias": "stg_shopify__product", "checksum": {"name": "sha256", "checksum": "6a92711673f429c4465f05d51488c01ce9e270cbd8df0434bcbeac8809f3d370"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.470186, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__product_tmp') }}\n\n),\n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__product_tmp')),\n staging_columns=get_product_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(updated_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as updated_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(published_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as published_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('product_pass_through_columns') }}\n\nfrom fields\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tmp", "package": null, "version": null}, {"name": "stg_shopify__product_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_product_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__product_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__product.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"\n\n),\n\nfields as (\n\n select\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 handle\n \n as \n \n handle\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n product_type\n \n as \n \n product_type\n \n, \n \n \n published_at\n \n as \n \n published_at\n \n, \n \n \n published_scope\n \n as \n \n published_scope\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\n \n as \n \n vendor\n \n, \n cast(null as TEXT) as \n \n status\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n \n select\n id as product_id,\n handle,\n product_type,\n published_scope,\n title,\n vendor,\n status,\n _fivetran_deleted as is_deleted,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(updated_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as updated_timestamp,\n cast(\n cast(cast(published_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as published_timestamp,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\nfrom fields\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__transaction": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__transaction.sql", "original_file_path": "models/rest/stg_shopify__transaction.sql", "unique_id": "model.shopify_source.stg_shopify__transaction", "fqn": ["shopify_source", "rest", "stg_shopify__transaction"], "alias": "stg_shopify__transaction", "checksum": {"name": "sha256", "checksum": "d1c4d552029ac5491af20f77ec0fd7a2a98236f3c25c2dc1e6a613a4dbbb10ad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.4761708, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{% set source_columns_in_relation = adapter.get_columns_in_relation(ref('stg_shopify__transaction_tmp')) %}\n\nwith base as (\n\n select * from {{ ref('stg_shopify__transaction_tmp') }}\n\n),\n\nfields as (\n\n select\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=source_columns_in_relation,\n staging_columns=get_transaction_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n {{ shopify_source.json_to_string(\"receipt\", source_columns_in_relation) }} as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n {{ shopify_source.fivetran_convert_timezone(column='cast(created_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as created_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(processed_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as processed_timestamp,\n {{ shopify_source.fivetran_convert_timezone(column='cast(authorization_expires_at as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as authorization_expires_at,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n {{ fivetran_utils.fill_pass_through_columns('transaction_pass_through_columns') }}\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction_tmp", "package": null, "version": null}, {"name": "stg_shopify__transaction_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_transaction_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.shopify_source.json_to_string", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__transaction_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__transaction.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select * from \"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"\n\n),\n\nfields as (\n\n select\n\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n order_id\n \n as \n \n order_id\n \n, \n \n \n refund_id\n \n as \n \n refund_id\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 processed_at\n \n as \n \n processed_at\n \n, \n \n \n device_id\n \n as \n \n device_id\n \n, \n \n \n gateway\n \n as \n \n gateway\n \n, \n \n \n source_name\n \n as \n \n source_name\n \n, \n \n \n message\n \n as \n \n message\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n payment_avs_result_code\n \n as \n \n payment_avs_result_code\n \n, \n \n \n payment_credit_card_bin\n \n as \n \n payment_credit_card_bin\n \n, \n \n \n payment_cvv_result_code\n \n as \n \n payment_cvv_result_code\n \n, \n \n \n payment_credit_card_number\n \n as \n \n payment_credit_card_number\n \n, \n \n \n payment_credit_card_company\n \n as \n \n payment_credit_card_company\n \n, \n \n \n kind\n \n as \n \n kind\n \n, \n \n \n receipt\n \n as \n \n receipt\n \n, \n \n \n currency_exchange_id\n \n as \n \n currency_exchange_id\n \n, \n \n \n currency_exchange_adjustment\n \n as \n \n currency_exchange_adjustment\n \n, \n \n \n currency_exchange_original_amount\n \n as \n \n currency_exchange_original_amount\n \n, \n \n \n currency_exchange_final_amount\n \n as \n \n currency_exchange_final_amount\n \n, \n \n \n currency_exchange_currency\n \n as \n \n currency_exchange_currency\n \n, \n \n \n error_code\n \n as \n \n error_code\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n test\n \n as \n \n test\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as timestamp) as \n \n authorization_expires_at\n \n , \n \n \n \n \n \"authorization\"\n \n \n \n as authorization_code \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n\n),\n\nfinal as (\n\n select \n id as transaction_id,\n order_id,\n refund_id,\n amount,\n device_id,\n gateway,\n source_name,\n message,\n currency,\n location_id,\n parent_id,\n payment_avs_result_code,\n payment_credit_card_bin,\n payment_cvv_result_code,\n payment_credit_card_number,\n payment_credit_card_company,\n kind,\n receipt as receipt,\n currency_exchange_id,\n currency_exchange_adjustment,\n currency_exchange_original_amount,\n currency_exchange_final_amount,\n currency_exchange_currency,\n error_code,\n status,\n user_id,\n authorization_code,\n cast(\n cast(cast(created_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as created_timestamp,\n cast(\n cast(cast(processed_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as processed_timestamp,\n cast(\n cast(cast(authorization_expires_at as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as authorization_expires_at,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n \n\n\n\n\n\n from fields\n where not coalesce(test, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__abandoned_checkout_shipping_line.sql", "original_file_path": "models/rest/stg_shopify__abandoned_checkout_shipping_line.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line", "fqn": ["shopify_source", "rest", "stg_shopify__abandoned_checkout_shipping_line"], "alias": "stg_shopify__abandoned_checkout_shipping_line", "checksum": {"name": "sha256", "checksum": "fbf2d9940115326795a88f5c018c2e369638ef804e59a09602f65814824ba483"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_code": {"name": "shipping_code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "abandoned_checkout_shipping_line_id": {"name": "abandoned_checkout_shipping_line_id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.5210292, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__abandoned_checkout_shipping_line_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_shopify__abandoned_checkout_shipping_line_tmp')),\n staging_columns=get_abandoned_checkout_shipping_line_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__abandoned_checkout_shipping_line.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n carrier_identifier\n \n as \n \n carrier_identifier\n \n, \n \n \n checkout_id\n \n as \n \n checkout_id\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n delivery_category\n \n as \n \n delivery_category\n \n, \n \n \n delivery_expectation_range\n \n as \n \n delivery_expectation_range\n \n, \n \n \n delivery_expectation_range_max\n \n as \n \n delivery_expectation_range_max\n \n, \n \n \n delivery_expectation_range_min\n \n as \n \n delivery_expectation_range_min\n \n, \n \n \n delivery_expectation_type\n \n as \n \n delivery_expectation_type\n \n, \n \n \n discounted_price\n \n as \n \n discounted_price\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n price\n \n as \n \n price\n \n, \n \n \n requested_fulfillment_service_id\n \n as \n \n requested_fulfillment_service_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n id as abandoned_checkout_shipping_line_id,\n checkout_id,\n index,\n carrier_identifier,\n code as shipping_code,\n delivery_category,\n delivery_expectation_range,\n delivery_expectation_range_max,\n delivery_expectation_range_min,\n delivery_expectation_type,\n discounted_price,\n phone,\n price,\n requested_fulfillment_service_id,\n source,\n title,\n cast(\n cast(cast(_fivetran_synced as timestamp) as timestamp)\n at time zone 'UTC' at time zone 'UTC' as timestamp\n) as _fivetran_synced,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_image": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image", "resource_type": "model", "package_name": "shopify_source", "path": "rest/stg_shopify__media_image.sql", "original_file_path": "models/rest/stg_shopify__media_image.sql", "unique_id": "model.shopify_source.stg_shopify__media_image", "fqn": ["shopify_source", "rest", "stg_shopify__media_image"], "alias": "stg_shopify__media_image", "checksum": {"name": "sha256", "checksum": "3a6ae116ff7a7f495476ef47c6bd942d29fe17f4e5a683e88323c3e05877e556"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "Specifies the location of the product image, hashed for privacy. Coalesced with the deprecated `src` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/rest/stg_shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005802.4972663, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify__media_image_tmp') }}\n),\n\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_shopify__media_image_tmp')),\n staging_columns=get_media_image_columns()\n )\n }}\n\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image_tmp", "package": null, "version": null}, {"name": "stg_shopify__media_image_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_media_image_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.shopify_source.stg_shopify__media_image_tmp"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify__media_image.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"\n),\n\n\nfields as (\n\n select\n \n \n \n media_id\n \n as \n \n media_id\n \n, \n \n \n image_id\n \n as \n \n image_id\n \n, \n \n \n image_alt_text\n \n as \n \n image_alt_text\n \n, \n \n \n image_height\n \n as \n \n image_height\n \n, \n \n \n image_url\n \n as \n \n image_url\n \n, \n \n \n image_width\n \n as \n \n image_width\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n media_id,\n image_id,\n image_alt_text,\n image_height,\n image_url,\n image_width,\n source_relation\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_tag_tmp"], "alias": "stg_shopify__order_tag_tmp", "checksum": {"name": "sha256", "checksum": "a42066ecdf32f3882d6fa6a1c3df6b75d69ce0a4553375d3320a61f1a1de08f6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005799.9713292, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_tag"], ["shopify", "order_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_shipping_tax_line_tmp"], "alias": "stg_shopify__order_shipping_tax_line_tmp", "checksum": {"name": "sha256", "checksum": "5d38344e972f1093709af51973879e64d530563a4b82ec9d06d313db387c5318"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005799.9796197, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_tax_line"], ["shopify", "order_shipping_tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_shipping_tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_redeem_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_redeem_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_redeem_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_redeem_code_tmp"], "alias": "stg_shopify__discount_redeem_code_tmp", "checksum": {"name": "sha256", "checksum": "ee9513dba26602b035fed4f3b201585cf07e919856c51d1f846b7ffee8f71cca"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005799.9886315, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_redeem_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_redeem_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_redeem_code"], ["shopify", "discount_redeem_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_redeem_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_adjustment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_adjustment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_adjustment_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_adjustment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_adjustment_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_adjustment_tmp"], "alias": "stg_shopify__order_adjustment_tmp", "checksum": {"name": "sha256", "checksum": "660c959bd994c8ebeb444328094cae630dae00be0ffdfecedb5e46d62635507d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005799.996943, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_adjustment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_adjustment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_adjustment"], ["shopify", "order_adjustment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_adjustment_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order adjustment in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_adjustment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_bxgy_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_bxgy_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_bxgy_tmp"], "alias": "stg_shopify__discount_code_bxgy_tmp", "checksum": {"name": "sha256", "checksum": "bc9ed40d3831d9595a9522c0dd7c6afddc3ff313c1959896e1bc498d17f12551"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.0052433, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_bxgy', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_bxgy_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_bxgy"], ["shopify", "discount_code_bxgy"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_bxgy_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_tag_tmp"], "alias": "stg_shopify__product_tag_tmp", "checksum": {"name": "sha256", "checksum": "6103799f99a890d76dc2ec51299412d9708fd31f94528fb71198148f4462a9b4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.0134966, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_tag"], ["shopify", "product_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_media_tmp"], "alias": "stg_shopify__product_media_tmp", "checksum": {"name": "sha256", "checksum": "a05118e90fbe264d9ec4586834a925938d4ffdc01126953864c80e75d1e1572f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.0227807, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_media"], ["shopify", "product_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_shipping_line_tmp"], "alias": "stg_shopify__abandoned_checkout_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "5197f889810c43cba25bb329b29fc36f1a2694481886a84d85db44061121e4ba"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.0309906, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_shipping_line"], ["shopify", "abandoned_checkout_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tax_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tax_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__tax_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__tax_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tax_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__tax_line_tmp"], "alias": "stg_shopify__tax_line_tmp", "checksum": {"name": "sha256", "checksum": "f904365c42217c601725c775a158e9dd20e3e0cd976b5df19c993275cdb49d6f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.0396256, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tax_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tax_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tax_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tax_line"], ["shopify", "tax_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__tax_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tax_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_note_attribute_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_note_attribute_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_note_attribute_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_note_attribute_tmp"], "alias": "stg_shopify__order_note_attribute_tmp", "checksum": {"name": "sha256", "checksum": "2cc3882bae2ba3aa7c2110da7e9e80172971e9ca75b03700615c4ec0e85124af"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.047821, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_note_attribute', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_note_attribute_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_note_attribute"], ["shopify", "order_note_attribute"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_note_attribute_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_tmp"], "alias": "stg_shopify__product_tmp", "checksum": {"name": "sha256", "checksum": "dd2e5338bf797082fe088c198911e406eb041e87cd28e1352a7a2835b0122ffe"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.0569577, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product"], ["shopify", "product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__customer_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__customer_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__customer_tmp"], "alias": "stg_shopify__customer_tmp", "checksum": {"name": "sha256", "checksum": "8186176eeffaabc3738d1e3aa65b2a56d1a708202122324f0169520faf245327"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.065276, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer"], ["shopify", "customer"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__customer_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_free_shipping_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_free_shipping_tmp"], "alias": "stg_shopify__discount_code_free_shipping_tmp", "checksum": {"name": "sha256", "checksum": "daf2f7cefba4ef7cf8917d509e7a199b591e31ba3931e27a0b0d81e4e551184d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.0736036, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_free_shipping', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_free_shipping_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_free_shipping"], ["shopify", "discount_code_free_shipping"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_free_shipping_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__customer_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__customer_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__customer_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__customer_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__customer_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__customer_tag_tmp"], "alias": "stg_shopify__customer_tag_tmp", "checksum": {"name": "sha256", "checksum": "cacc0b85d32b6695c089824f90b3d43e47ca479d9fd5b5751bf4d517d60f28be"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.0818026, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__customer_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='customer_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='customer_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "customer_tag"], ["shopify", "customer_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__customer_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_customer_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_app_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_app_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_app_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_app_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_app_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_app_tmp"], "alias": "stg_shopify__discount_code_app_tmp", "checksum": {"name": "sha256", "checksum": "c633d1450d2ee190d81cb6f4267d15ed580e17bbcc5bbb0958f2f49a2bafc008"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.0910983, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_discount_code_app', False) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_app', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_app_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_app"], ["shopify", "discount_code_app"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_app_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_app_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_product_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_product_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__collection_product_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__collection_product_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_product_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__collection_product_tmp"], "alias": "stg_shopify__collection_product_tmp", "checksum": {"name": "sha256", "checksum": "f210c463c05bd68110fb94b96ecc72832aa2b6c6bcbbd0faa14fd9e081f098ff"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.17158, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_product_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_product', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_product_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection_product"], ["shopify", "collection_product"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__collection_product_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_product_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_item_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_item_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_item_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_item_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_item_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_item_tmp"], "alias": "stg_shopify__inventory_item_tmp", "checksum": {"name": "sha256", "checksum": "80078c5de257923b797af6925dace90a4bc9540ba0b787c0d94cd99f90fb2df9"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.1799693, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_item_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_item', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_item_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_item"], ["shopify", "inventory_item"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_item_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_variant_media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_variant_media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_variant_media_tmp"], "alias": "stg_shopify__product_variant_media_tmp", "checksum": {"name": "sha256", "checksum": "cd139c183a1ca8cb8118db376fa3f7d1b31636685eb01ec485a82e75a7a28d65"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.1882493, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_product_variant_media', False) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant_media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant_media"], ["shopify", "product_variant_media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_variant_media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__collection_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__collection_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__collection_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__collection_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__collection_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__collection_tmp"], "alias": "stg_shopify__collection_tmp", "checksum": {"name": "sha256", "checksum": "83677a641e5bf258065b60673dc391162a342de5ac494faafa9af5c370f048d7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.1968837, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__collection_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='collection_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "collection"], ["shopify", "collection"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__collection_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_collection_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__media_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__media_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__media_tmp"], "alias": "stg_shopify__media_tmp", "checksum": {"name": "sha256", "checksum": "0c94b30527a13af3563413d119affaec39c52720d8aca5223af84b9ad8c55eac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.206297, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media"], ["shopify", "media"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__media_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_url_tag_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_url_tag_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_url_tag_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_url_tag_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_url_tag_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_url_tag_tmp"], "alias": "stg_shopify__order_url_tag_tmp", "checksum": {"name": "sha256", "checksum": "9acc8c7614789de25d394b07b8638e54639ea5d0fcb75765963d0bca0f63f353"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.2146173, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_url_tag', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_url_tag_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_url_tag"], ["shopify", "order_url_tag"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_url_tag_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_url_tag_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_allocation_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_allocation_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_allocation_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_allocation_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_allocation_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_allocation_tmp"], "alias": "stg_shopify__discount_allocation_tmp", "checksum": {"name": "sha256", "checksum": "eef0c91992b9834308249935e8ba406fd0c5782a684da3d90859ef1ae3db7040"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.222904, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_allocation', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_allocation_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_allocation"], ["shopify", "discount_allocation"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_allocation_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_allocation_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_level_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_level_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_level_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_level_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_level_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_level_tmp"], "alias": "stg_shopify__inventory_level_tmp", "checksum": {"name": "sha256", "checksum": "7d78bc258a56f48d8968e1910dd797fe7d73a5d83d4bc165080ea5769a4f0727"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.231192, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_level_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_level', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_level_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_level"], ["shopify", "inventory_level"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_level_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_level_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_line_tmp"], "alias": "stg_shopify__order_line_tmp", "checksum": {"name": "sha256", "checksum": "d8a2b2b7331a577fe56b007114d5e8d9c9422dec4bdc3a7a92ed4b975e811eab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.240445, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line"], ["shopify", "order_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_code_basic_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_code_basic_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_code_basic_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_code_basic_tmp"], "alias": "stg_shopify__discount_code_basic_tmp", "checksum": {"name": "sha256", "checksum": "6b6304e0f284579e79af69626b602eb9c4bd9de54c74e74b4956174d796d24fb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.2486992, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_code_basic', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_code_basic_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_code_basic"], ["shopify", "discount_code_basic"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_code_basic_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_discount_code_tmp"], "alias": "stg_shopify__abandoned_checkout_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "a6071b36e80e24d2b0cd31158419e657ac970ce35f8c6c9d3df08606bae64cdc"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.2569218, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout_discount_code"], ["shopify", "abandoned_checkout_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_shipping_line_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_shipping_line_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_shipping_line_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_shipping_line_tmp"], "alias": "stg_shopify__order_shipping_line_tmp", "checksum": {"name": "sha256", "checksum": "14e60b7aefb49552134a34cdb90c47cd4ce6da6381d0586553738d7d4b823d6d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.2656226, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_shipping_line', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_shipping_line_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_shipping_line"], ["shopify", "order_shipping_line"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_shipping_line_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__refund_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__refund_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__refund_tmp"], "alias": "stg_shopify__refund_tmp", "checksum": {"name": "sha256", "checksum": "0d3eceddf310b90dc85313e6286c98c2894031ab4569f3db315388dcaef32f8f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.2749908, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you create a refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "refund"], ["shopify", "refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__refund_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you create a refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__tender_transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__tender_transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__tender_transaction_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__tender_transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__tender_transaction_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__tender_transaction_tmp"], "alias": "stg_shopify__tender_transaction_tmp", "checksum": {"name": "sha256", "checksum": "2ff3b509f93c78e9e47e8dce5e43f5c97a8ad66b5cb9b2ff68f9b4ddb37b502d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.2832808, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='tender_transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='tender_transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "tender_transaction"], ["shopify", "tender_transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__tender_transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_tender_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_discount_code_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_discount_code_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_discount_code_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_discount_code_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_discount_code_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_discount_code_tmp"], "alias": "stg_shopify__order_discount_code_tmp", "checksum": {"name": "sha256", "checksum": "37a4d39417499542b5aeca8c362b51a3e3d95e6908f2a7a9af57b44e170c1046"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.2916152, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_discount_code', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_discount_code_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_discount_code"], ["shopify", "order_discount_code"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_discount_code_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_discount_code_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__media_image_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__media_image_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__media_image_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__media_image_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__media_image_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__media_image_tmp"], "alias": "stg_shopify__media_image_tmp", "checksum": {"name": "sha256", "checksum": "c4780240faf9cb4ab2a407a9419b94336727ec3b77d6bfb1ac753fc8c4179208"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.2999449, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__media_image_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='media_image', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='media_image_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "media_image"], ["shopify", "media_image"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__media_image_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_media_image_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_event_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_event_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_event_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__fulfillment_event_tmp"], "alias": "stg_shopify__fulfillment_event_tmp", "checksum": {"name": "sha256", "checksum": "f81a5b8e0dd6dbe917bcfeddf57d4d6ac608409132baad5cc131406c3143cb24"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.309288, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment_event', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_event_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment_event"], ["shopify", "fulfillment_event"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__fulfillment_event_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_line_refund_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_line_refund_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_line_refund_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_line_refund_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_line_refund_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_line_refund_tmp"], "alias": "stg_shopify__order_line_refund_tmp", "checksum": {"name": "sha256", "checksum": "19f0e79eaed071741c7e53e9b5e90e693184225cc4ca171806f698404df07126"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.3178525, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n-- this model will be all NULL until you have made an order line refund in Shopify\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order_line_refund', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_line_refund_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order_line_refund"], ["shopify", "order_line_refund"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_line_refund_tmp.sql", "compiled": true, "compiled_code": "\n-- this model will be all NULL until you have made an order line refund in Shopify\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_line_refund_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__inventory_quantity_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__inventory_quantity_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__inventory_quantity_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__inventory_quantity_tmp"], "alias": "stg_shopify__inventory_quantity_tmp", "checksum": {"name": "sha256", "checksum": "888a1894a42f30df0c772f9551fb3298534856d39b261bcab4c94f3e62fa4a8d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.3261468, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='inventory_quantity', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='inventory_quantity_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "inventory_quantity"], ["shopify", "inventory_quantity"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__inventory_quantity_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__fulfillment_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__fulfillment_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__fulfillment_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__fulfillment_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__fulfillment_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__fulfillment_tmp"], "alias": "stg_shopify__fulfillment_tmp", "checksum": {"name": "sha256", "checksum": "93a633acef33eac51374633d67a9e6bf52c1c1b813b549c211bb9fd23cf16938"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.3344584, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='fulfillment', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='fulfillment_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "fulfillment"], ["shopify", "fulfillment"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__fulfillment_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_fulfillment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__abandoned_checkout_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__abandoned_checkout_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__abandoned_checkout_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__abandoned_checkout_tmp"], "alias": "stg_shopify__abandoned_checkout_tmp", "checksum": {"name": "sha256", "checksum": "725135b3d811e4e230601561e990f0c8f03ff22a855abd5b57e8152ae0093e43"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.343904, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='abandoned_checkout', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='abandoned_checkout_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "abandoned_checkout"], ["shopify", "abandoned_checkout"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__abandoned_checkout_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__shop_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__shop_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__shop_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__shop_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__shop_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__shop_tmp"], "alias": "stg_shopify__shop_tmp", "checksum": {"name": "sha256", "checksum": "e9f782471f9533f7b339be8a70a57196eb8135b5cfe449d2957810794f289803"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.352471, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__shop_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='shop', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='shop_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "shop"], ["shopify", "shop"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__shop_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_shop_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__metafield_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__metafield_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__metafield_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__metafield_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__metafield_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__metafield_tmp"], "alias": "stg_shopify__metafield_tmp", "checksum": {"name": "sha256", "checksum": "5414a4c10292fcacadde27a458e5df75130c4f8c14e5b38887bc42eefb8a0b53"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.3607097, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__metafield_tmp\"", "raw_code": "{{ config(enabled=(var('shopify_using_metafield', True) and var('shopify_api', 'rest') == 'rest')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='metafield', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='metafield_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "metafield"], ["shopify", "metafield"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__metafield_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_metafield_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__product_variant_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__product_variant_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__product_variant_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__product_variant_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__product_variant_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__product_variant_tmp"], "alias": "stg_shopify__product_variant_tmp", "checksum": {"name": "sha256", "checksum": "1479b98d0d8fc9c6fd0ded96f6b0aa50e05e71a67bf61d54de8abac635aa1920"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.3693635, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__product_variant_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='product_variant', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='product_variant_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "product_variant"], ["shopify", "product_variant"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__product_variant_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_product_variant_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__location_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__location_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__location_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__location_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__location_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__location_tmp"], "alias": "stg_shopify__location_tmp", "checksum": {"name": "sha256", "checksum": "b633d3eb65fefb379a9cd5f44ff617a1fc99c132ed5d0bb81e18c9bce0665013"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.3789682, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__location_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='location', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='location_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "location"], ["shopify", "location"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__location_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__discount_application_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__discount_application_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__discount_application_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__discount_application_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__discount_application_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__discount_application_tmp"], "alias": "stg_shopify__discount_application_tmp", "checksum": {"name": "sha256", "checksum": "303e6de79bb4d473c2d041c88a66aa1ee0a79961b5b044472cb5a5b2169cb622"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.3873587, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__discount_application_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='discount_application', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='discount_application_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "discount_application"], ["shopify", "discount_application"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__discount_application_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_discount_application_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__transaction_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__transaction_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__transaction_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__transaction_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__transaction_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__transaction_tmp"], "alias": "stg_shopify__transaction_tmp", "checksum": {"name": "sha256", "checksum": "fe66d5a0482b65f07d4d7173cd2aef146efabcf38e17fed7aa2e7d1d1f8b1f33"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.395726, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__transaction_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='transaction', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='transaction_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "transaction"], ["shopify", "transaction"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__transaction_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify_source.stg_shopify__order_tmp": {"database": "postgres", "schema": "public_shopify", "name": "stg_shopify__order_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "rest/tmp/stg_shopify__order_tmp.sql", "original_file_path": "models/rest/tmp/stg_shopify__order_tmp.sql", "unique_id": "model.shopify_source.stg_shopify__order_tmp", "fqn": ["shopify_source", "rest", "tmp", "stg_shopify__order_tmp"], "alias": "stg_shopify__order_tmp", "checksum": {"name": "sha256", "checksum": "67e08e77af56b0e21cbe52d7cae143433d14a805c38eae3aeaaa6325e4849af5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.4038823, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify__order_tmp\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='order',\n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='order_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify", "order"], ["shopify", "order"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": ["source.shopify_source.shopify.order"]}, "compiled_path": "target/compiled/shopify_source/models/rest/tmp/stg_shopify__order_tmp.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"public\".\"shopify_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__calendar": {"database": "postgres", "schema": "public_shopify", "name": "shopify__calendar", "resource_type": "model", "package_name": "shopify", "path": "utils/shopify__calendar.sql", "original_file_path": "models/utils/shopify__calendar.sql", "unique_id": "model.shopify.shopify__calendar", "fqn": ["shopify", "utils", "shopify__calendar"], "alias": "shopify__calendar", "checksum": {"name": "sha256", "checksum": "5295fe06c949deb345450af0ad6b0335b6edc25b2e883a4f2452ae276a3e85f4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table"}, "created_at": 1757005800.431948, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__calendar\"", "raw_code": "{% set start_date = var('shopify__calendar_start_date', '2019-01-01') %}\n\n{{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date=\"cast('\" ~ start_date ~ \"' as date)\",\n end_date=\"current_date\"\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.date_spine"], "nodes": []}, "compiled_path": "target/compiled/shopify/models/utils/shopify__calendar.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 2438\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2019-01-01' as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= current_date\n\n)\n\nselect * from filtered\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__customer_emails": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_emails", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_emails.sql", "original_file_path": "models/graphql/shopify_gql__customer_emails.sql", "unique_id": "model.shopify.shopify_gql__customer_emails", "fqn": ["shopify", "graphql", "shopify_gql__customer_emails"], "alias": "shopify_gql__customer_emails", "checksum": {"name": "sha256", "checksum": "af89662d410ca87ac66c148c1f5f7e4194cec7c47a6939591c5bc3b2bc113825"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer email in Shopify.", "columns": {"last_fivetran_synced": {"name": "last_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_ids": {"name": "customer_ids", "description": "Comma-separated list of customer IDs associated with the email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone_numbers": {"name": "phone_numbers", "description": "Comma-separated list of phone numbers associated with this email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_updated_at": {"name": "last_updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money that the customer has spent on orders across their order history (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_account_created_at": {"name": "first_account_created_at", "description": "Timestamp of when the first account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_account_created_at": {"name": "last_account_created_at", "description": "Timestamp of when the last account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.7506862, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customer_emails as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify_gql__customer_email_rollup'), except=[\"orders_count\", \"total_spent\", \"unique_key\"]) }}\n from {{ ref('int_shopify_gql__customer_email_rollup') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__emails_order_aggregates' )}}\n where email is not null\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ ref('int_shopify_gql__abandoned_checkout' )}}\n where email is not null\n group by 1,2\n{% endif %}\n\n), joined as (\n\n select \n customer_emails.*,\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify_gql__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify_gql__emails_order_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star"], "nodes": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.int_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_emails.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__emails_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), customer_emails as (\n\n select \n \"email\",\n \"source_relation\",\n \"customer_ids\",\n \"phone_numbers\",\n \"customer_tags\",\n \"first_account_created_at\",\n \"last_account_created_at\",\n \"last_updated_at\",\n \"marketing_consent_updated_at\",\n \"last_fivetran_synced\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"first_name\",\n \"last_name\",\n \"account_state\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"default_address_id\"\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer_email_rollup\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__emails_order_aggregates\n where email is not null\n\n\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n where email is not null\n group by 1,2\n\n\n), joined as (\n\n select \n customer_emails.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n \n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__emails_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__emails_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}, {"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__customer_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_cohorts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_cohorts.sql", "original_file_path": "models/graphql/shopify_gql__customer_cohorts.sql", "unique_id": "model.shopify.shopify_gql__customer_cohorts", "fqn": ["shopify", "graphql", "shopify_gql__customer_cohorts"], "alias": "shopify_gql__customer_cohorts", "checksum": {"name": "sha256", "checksum": "ee60abfcf8dbc62b9076eba78f3ae9049684e928f2bb727d820ae9bff594820c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "created_at": 1757005802.7255268, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'),\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'customer_id'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify_gql__customers') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify_gql__customers", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customers", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-09-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__customers\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n customer_id\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-09-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify_gql__customer_email_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_email_cohorts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customer_email_cohorts.sql", "original_file_path": "models/graphql/shopify_gql__customer_email_cohorts.sql", "unique_id": "model.shopify.shopify_gql__customer_email_cohorts", "fqn": ["shopify", "graphql", "shopify_gql__customer_email_cohorts"], "alias": "shopify_gql__customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "44ea3b7181f25acbd8740e7b4084080f926680aeac54311144a29cf6dd814708"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's (on the EMAIL grain) performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "created_at": 1757005802.7267482, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql'),\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'email'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify_gql__customer_emails') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify_gql__customer_emails", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customer_emails", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customer_email_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-09-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_emails\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n email\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-09-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.email as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify_gql__inventory_levels": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__inventory_levels", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__inventory_levels.sql", "original_file_path": "models/graphql/shopify_gql__inventory_levels.sql", "unique_id": "model.shopify.shopify_gql__inventory_levels", "fqn": ["shopify", "graphql", "shopify_gql__inventory_levels"], "alias": "shopify_gql__inventory_levels", "checksum": {"name": "sha256", "checksum": "a89da9a7a71fb56b90cae72642fc380a5dedaf66199ba21ee569c59d96ce55b0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of inventory items (which have a 1:1 relationship with product variants) and locations. \nInventory Level = Inventory item @ a Location.\n", "columns": {"inventory_level_id": {"name": "inventory_level_id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The name of the country where the inventory level is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_item_deleted": {"name": "is_inventory_item_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "(DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_created_at": {"name": "inventory_item_created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_updated_at": {"name": "inventory_item_updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_location_deleted": {"name": "is_location_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_location_active": {"name": "is_location_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_created_at": {"name": "location_created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy_location": {"name": "is_legacy_location", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_name": {"name": "location_name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_updated_at": {"name": "location_updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_media_id": {"name": "variant_media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_variant_taxable": {"name": "is_variant_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_orders": {"name": "count_distinct_orders", "description": "The number of distinct orders placed from this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customers": {"name": "count_distinct_customers", "description": "The number of distinct customers (based on customer_id) that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customer_emails": {"name": "count_distinct_customer_emails", "description": "The number of distinct customer emails that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timetamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "The timestamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_refunds": {"name": "subtotal_sold_refunds", "description": "The monetary amount (in shop currency) of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_refunds": {"name": "quantity_sold_refunds", "description": "The quantity of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_subtotal_sold": {"name": "net_subtotal_sold", "description": "Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_quantity_sold": {"name": "net_quantity_sold", "description": "Net quantity sold from this inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_pending": {"name": "count_fulfillment_pending", "description": "Count of currently pending distinct fulfillments for this inventory level. \"Pending\" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_open": {"name": "count_fulfillment_open", "description": "Count of currently open distinct fulfillments for this inventory level. \"Open\" = The fulfillment has been acknowledged by the service and is in processing.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_success": {"name": "count_fulfillment_success", "description": "Count of successful distinct fulfillments for this inventory level. \"Success\" = The fulfillment was successful.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_cancelled": {"name": "count_fulfillment_cancelled", "description": "Count of cancelled distinct fulfillments for this inventory level. \"Cancelled\" = The fulfillment was cancelled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_error": {"name": "count_fulfillment_error", "description": "Count of distinct fulfillments for this inventory level that encountered an error. \"Error\" = There was an error with the fulfillment request.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of distinct fulfillments for this inventory level that failed. \"Failure\" = The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "available_quantity": {"name": "available_quantity", "description": "The available quantity that a merchant can sell, determined by coalescing the `quantity` where inventory_state_name = 'available' from `stg_shopify_gql__inventory_quantity`and `available_quantity` from the deprecated `stg_shopify_gql__inventory_level`. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "incoming_quantity": {"name": "incoming_quantity", "description": "The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "on_hand_quantity": {"name": "on_hand_quantity", "description": "The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "committed_quantity": {"name": "committed_quantity", "description": "The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reserved_quantity": {"name": "reserved_quantity", "description": "The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "damaged_quantity": {"name": "damaged_quantity", "description": "The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "safety_stock_quantity": {"name": "safety_stock_quantity", "description": "The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quality_control_quantity": {"name": "quality_control_quantity", "description": "The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.8707793, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith inventory_level as (\n\n select *\n from {{ var('shopify_gql_inventory_level') }}\n), \n\ninventory_item as (\n\n select *\n from {{ var('shopify_gql_inventory_item') }}\n),\n\ninventory_quantity as (\n\n select *\n from {{ var('shopify_gql_inventory_quantity') }}\n),\n\nlocation as (\n\n select *\n from {{ var('shopify_gql_location') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n),\n\nproduct as (\n\n select *\n from {{ var('shopify_gql_product') }}\n),\n\ninventory_level_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__inventory_level_aggregates') }}\n),\n\n{% if var('shopify_gql_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_gql_product_variant_media') }}\n),\n{% endif %}\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%}\n {% for inventory_state in inventory_states -%}\n , sum(case when lower(inventory_state_name) = {{ \"'\" ~ inventory_state|lower ~ \"'\" }}\n then inventory_quantity.quantity end) as {{ inventory_state }}_quantity\n {% endfor -%}\n\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.country_name,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n product_variant_media.media_id as variant_media_id,\n {% endif %}\n\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }}\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n left join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n {% endif %}\n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n\n {% for inventory_state in inventory_states -%}\n , inventory_quantity_aggregated.{{ inventory_state }}_quantity\n {% endfor -%}\n\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}, {"name": "stg_shopify_gql__location", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "int_shopify_gql__inventory_level_aggregates", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level", "model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__inventory_quantity", "model.shopify_source.stg_shopify_gql__location", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product", "model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__inventory_levels.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify_gql__inventory_level_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), inventory_level as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\n), \n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\n),\n\ninventory_quantity as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\n),\n\nlocation as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n),\n\nproduct as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n),\n\ninventory_level_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__inventory_level_aggregates\n),\n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\n),\n\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n , sum(case when lower(inventory_state_name) = 'incoming'\n then inventory_quantity.quantity end) as incoming_quantity\n , sum(case when lower(inventory_state_name) = 'on_hand'\n then inventory_quantity.quantity end) as on_hand_quantity\n , sum(case when lower(inventory_state_name) = 'available'\n then inventory_quantity.quantity end) as available_quantity\n , sum(case when lower(inventory_state_name) = 'committed'\n then inventory_quantity.quantity end) as committed_quantity\n , sum(case when lower(inventory_state_name) = 'reserved'\n then inventory_quantity.quantity end) as reserved_quantity\n , sum(case when lower(inventory_state_name) = 'damaged'\n then inventory_quantity.quantity end) as damaged_quantity\n , sum(case when lower(inventory_state_name) = 'safety_stock'\n then inventory_quantity.quantity end) as safety_stock_quantity\n , sum(case when lower(inventory_state_name) = 'quality_control'\n then inventory_quantity.quantity end) as quality_control_quantity\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.country_name,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n\n \n product_variant_media.media_id as variant_media_id,\n \n\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n \n\n\n\n\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n \n left join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n \n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n \n , coalesce(inventory_level_aggregated.count_fulfillment_pending, 0) as count_fulfillment_pending\n \n , coalesce(inventory_level_aggregated.count_fulfillment_open, 0) as count_fulfillment_open\n \n , coalesce(inventory_level_aggregated.count_fulfillment_success, 0) as count_fulfillment_success\n \n , coalesce(inventory_level_aggregated.count_fulfillment_cancelled, 0) as count_fulfillment_cancelled\n \n , coalesce(inventory_level_aggregated.count_fulfillment_error, 0) as count_fulfillment_error\n \n , coalesce(inventory_level_aggregated.count_fulfillment_failure, 0) as count_fulfillment_failure\n \n\n , inventory_quantity_aggregated.incoming_quantity\n , inventory_quantity_aggregated.on_hand_quantity\n , inventory_quantity_aggregated.available_quantity\n , inventory_quantity_aggregated.committed_quantity\n , inventory_quantity_aggregated.reserved_quantity\n , inventory_quantity_aggregated.damaged_quantity\n , inventory_quantity_aggregated.safety_stock_quantity\n , inventory_quantity_aggregated.quality_control_quantity\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_line", "sql": " __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify_gql__inventory_level_aggregates", "sql": " __dbt__cte__int_shopify_gql__inventory_level_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__daily_shop": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__daily_shop", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__daily_shop.sql", "original_file_path": "models/graphql/shopify_gql__daily_shop.sql", "unique_id": "model.shopify.shopify_gql__daily_shop", "fqn": ["shopify", "graphql", "shopify_gql__daily_shop"], "alias": "shopify_gql__daily_shop", "checksum": {"name": "sha256", "checksum": "cab8dd258f8ec32221ccbf94b62a452a5070fc9714d799c939ee0fa6c48f9a5e"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a day in your Shop, enriched with a suite of metrics.\n", "columns": {"date_day": {"name": "date_day", "description": "Day for which the shop activity is being measured.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders": {"name": "count_orders", "description": "Count of the distinct orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_line_items": {"name": "count_line_items", "description": "Count of the line items included in orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer email addresses who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "Average adjusted total per order placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount (in shop currency) applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to adjustments (in shop currency) on the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of the discount allocated to this day's orders in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied by customers on orders for this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_locations_ordered_from": {"name": "count_locations_ordered_from", "description": "Distinct locations with orders placed against them on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_discounts": {"name": "count_orders_with_discounts", "description": "Count of orders in which a discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_refunds": {"name": "count_orders_with_refunds", "description": "Count of orders in which there was a refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "Timestamp of the first order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "Timestamp of the last order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_refunded": {"name": "quantity_refunded", "description": "The quantity of goods ORDERED on this day that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net": {"name": "quantity_net", "description": "Net quantity sold from this shop on this day. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants_sold": {"name": "count_variants_sold", "description": "Distinct product variants sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_products_sold": {"name": "count_products_sold", "description": "Distinct products sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_gift_cards_sold": {"name": "quantity_gift_cards_sold", "description": "Quantity of gift cards sold on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_requiring_shipping": {"name": "quantity_requiring_shipping", "description": "Quantity of goods sold on this day that require shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers_abandoned_checkout": {"name": "count_customers_abandoned_checkout", "description": "Count of distinct customers who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails_abandoned_checkout": {"name": "count_customer_emails_abandoned_checkout", "description": "Count of distinct customer emails who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_attempted_delivery": {"name": "count_fulfillment_attempted_delivery", "description": "Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delivered": {"name": "count_fulfillment_delivered", "description": "Count of successful distinct fulfillments successfully delivered on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_in_transit": {"name": "count_fulfillment_in_transit", "description": "Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_out_for_delivery": {"name": "count_fulfillment_out_for_delivery", "description": "Count of distinct fulfillments being delivered to their final destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_ready_for_pickup": {"name": "count_fulfillment_ready_for_pickup", "description": "Count of distinct fulfillments ready for pickup at a shipping depot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_printed": {"name": "count_fulfillment_label_printed", "description": "Count of distinct fulfillments for which a purchased shipping label has been printed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_purchased": {"name": "count_fulfillment_label_purchased", "description": "Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_confirmed": {"name": "count_fulfillment_confirmed", "description": "Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delayed": {"name": "count_fulfillment_delayed", "description": "Count of delayed distinct fulfillments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_line_item_count": {"name": "avg_line_item_count", "description": "Average line item count for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount": {"name": "avg_discount", "description": "Average total discount placed on orders on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_discount_amount": {"name": "avg_shipping_discount_amount", "description": "Average discount amount (in shop currency) allocated toward shipping on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_percentage_calc_discount_amount": {"name": "avg_percentage_calc_discount_amount", "description": "Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_fixed_amount_discount_amount": {"name": "avg_fixed_amount_discount_amount", "description": "Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_sold": {"name": "avg_quantity_sold", "description": "Average quantity sold per order on this day. Includes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_net": {"name": "avg_quantity_net", "description": "Average net quantity sold per order on this day. Excludes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.8903568, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__daily_shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith shop as (\n\n select *\n from {{ var('shopify_gql_shop') }}\n),\n\ncalendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from {{ ref('int_shopify_gql__daily_orders') }}\n),\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\ndaily_abandoned_checkouts as (\n\n select *\n from {{ ref('int_shopify_gql__daily_abandoned_checkouts') }}\n),\n{% endif %}\n\n{% if var('shopify_gql_using_fulfillment_event', false) %}\ndaily_fulfillment as (\n\n select *\n from {{ ref('int_shopify_gql__daily_fulfillment') }}\n),\n{% endif %}\n\nshop_calendar as (\n\n select\n cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n {% endif %}\n\n {% if var('shopify_gql_using_fulfillment_event', false) %}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%}\n , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n {% endif %}\n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n {% endif %}\n\n {% if var('shopify_gql_using_fulfillment_event', false) %}\n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n {% endif %}\n \n)\n\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "shopify__calendar", "package": null, "version": null}, {"name": "int_shopify_gql__daily_orders", "package": null, "version": null}, {"name": "int_shopify_gql__daily_abandoned_checkouts", "package": null, "version": null}, {"name": "int_shopify_gql__daily_fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify_gql__shop", "model.shopify.shopify__calendar", "model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__daily_fulfillment"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__daily_shop.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n), __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), __dbt__cte__int_shopify_gql__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n), __dbt__cte__int_shopify_gql__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n), shop as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\n),\n\ncalendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('day', date_day) as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_orders\n),\n\n\ndaily_abandoned_checkouts as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_abandoned_checkouts\n),\n\n\n\ndaily_fulfillment as (\n\n select *\n from __dbt__cte__int_shopify_gql__daily_fulfillment\n),\n\n\nshop_calendar as (\n\n select\n cast(date_trunc('day', calendar.date_day) as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n \n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n \n\n \n \n , coalesce(count_fulfillment_attempted_delivery, 0) as count_fulfillment_attempted_delivery\n \n , coalesce(count_fulfillment_delayed, 0) as count_fulfillment_delayed\n \n , coalesce(count_fulfillment_delivered, 0) as count_fulfillment_delivered\n \n , coalesce(count_fulfillment_failure, 0) as count_fulfillment_failure\n \n , coalesce(count_fulfillment_in_transit, 0) as count_fulfillment_in_transit\n \n , coalesce(count_fulfillment_out_for_delivery, 0) as count_fulfillment_out_for_delivery\n \n , coalesce(count_fulfillment_ready_for_pickup, 0) as count_fulfillment_ready_for_pickup\n \n , coalesce(count_fulfillment_label_printed, 0) as count_fulfillment_label_printed\n \n , coalesce(count_fulfillment_label_purchased, 0) as count_fulfillment_label_purchased\n \n , coalesce(count_fulfillment_confirmed, 0) as count_fulfillment_confirmed\n \n \n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n \n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n \n\n \n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n \n \n)\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__daily_orders", "sql": " __dbt__cte__int_shopify_gql__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}, {"id": "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "sql": " __dbt__cte__int_shopify_gql__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n)"}, {"id": "model.shopify.int_shopify_gql__daily_fulfillment", "sql": " __dbt__cte__int_shopify_gql__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__customers": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customers", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__customers.sql", "original_file_path": "models/graphql/shopify_gql__customers.sql", "unique_id": "model.shopify.shopify_gql__customers", "fqn": ["shopify", "graphql", "shopify_gql__customers"], "alias": "shopify_gql__customers", "checksum": {"name": "sha256", "checksum": "9c21a0b94a0b4b535719777ad86c81e3780eabb5274d18ef3bffa0b82fa98633"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money in shop currency that the customer has spent on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.7460997, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customers\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customers as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify_gql__customer'), except=[\"orders_count\", \"total_spent\", \"unique_key\"]) }}\n from {{ ref('int_shopify_gql__customer') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__customers_order_aggregates' )}}\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_gql_abandoned_checkout' )}}\n where customer_id is not null\n group by 1,2\n{% endif %}\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags\n\n from {{ var('shopify_gql_customer_tag' )}}\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n {% endif %}\n\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customers_order_aggregates", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__customers.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__customers_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated\n), customers as (\n\n select \n \"customer_id\",\n \"email\",\n \"first_name\",\n \"last_name\",\n \"phone\",\n \"account_state\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"marketing_consent_updated_at\",\n \"created_timestamp\",\n \"updated_timestamp\",\n \"_fivetran_synced\",\n \"source_relation\",\n \"default_address_id\"\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify_gql__customers_order_aggregates\n\n\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n where customer_id is not null\n group by 1,2\n\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as customer_tags\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n \n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__customers_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__customers_order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__orders": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__orders", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__orders.sql", "original_file_path": "models/graphql/shopify_gql__orders.sql", "unique_id": "model.shopify.shopify_gql__orders", "fqn": ["shopify", "graphql", "shopify_gql__orders"], "alias": "shopify_gql__orders", "checksum": {"name": "sha256", "checksum": "2ecbe0d27380045217fefb1d40c135d7557dd131145cb6c48ae86521585cd5e5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing an order. Hashed on 'order_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_amount": {"name": "subtotal_price_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_amount": {"name": "subtotal_price_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_shop_currency_code": {"name": "subtotal_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_pres_currency_code": {"name": "subtotal_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_amount": {"name": "total_discounts_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_amount": {"name": "total_discounts_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_shop_currency_code": {"name": "total_discounts_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_pres_currency_code": {"name": "total_discounts_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_amount": {"name": "total_price_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_amount": {"name": "total_price_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_pres_currency_code": {"name": "total_price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_shop_currency_code": {"name": "total_price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_amount": {"name": "total_line_items_price_shop_amount", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_amount": {"name": "total_line_items_price_pres_amount", "description": "The sum of all line item prices in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_shop_currency_codes": {"name": "total_line_items_price_shop_currency_codes", "description": "The three-letter codes (ISO 4217 format) for the shop currency used to display the total line item price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_pres_currency_codes": {"name": "total_line_items_price_pres_currency_codes", "description": "The three-letter codes (ISO 4217 format) for the presentment currency used to display the total line item price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_amount": {"name": "total_tax_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_amount": {"name": "total_tax_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_shop_currency_code": {"name": "total_tax_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_pres_currency_code": {"name": "total_tax_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count": {"name": "line_item_count", "description": "Number of line items included in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_order_seq_number": {"name": "customer_order_seq_number", "description": "The sequential number of the order as it relates to the customer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "new_vs_repeat": {"name": "new_vs_repeat", "description": "Whether the order was a new or repeat order for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_amount": {"name": "shipping_cost_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_amount": {"name": "shipping_cost_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_shop_currency_code": {"name": "shipping_cost_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost_pres_currency_code": {"name": "shipping_cost_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to the adjustment on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_total_shipping_tax": {"name": "order_total_shipping_tax", "description": "Total shipping tax attributed to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_tags": {"name": "order_tags", "description": "List of tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number_of_fulfillments": {"name": "number_of_fulfillments", "description": "Total fulfillments for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_services": {"name": "fulfillment_services", "description": "List of fulfillment services for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_companies": {"name": "tracking_companies", "description": "List of tracking companies for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "List of tracking numbers for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_amount": {"name": "total_tip_received_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_amount": {"name": "total_tip_received_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_shop_currency_code": {"name": "total_tip_received_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_pres_currency_code": {"name": "total_tip_received_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied on the order", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.7379584, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__orders\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ ref('int_shopify_gql__order') }}\n\n), order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), fulfillments as (\n\n select *\n from {{ ref('int_shopify_gql__order_fulfillment_aggregates') }}\n \n), order_adjustments as (\n\n select *\n from {{ ref('int_shopify_gql__order_adjustment') }}\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount_shop) as order_adjustment_amount,\n sum(tax_amount_shop) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from {{ ref('int_shopify_gql__order_discount_code') }}\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then value_amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then value_amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then value_amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_tags\n \n from {{ var('shopify_gql_order_tag') }}\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n (orders.total_price_shop_amount\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n order_lines.total_line_items_price_pres_amount,\n order_lines.total_line_items_price_shop_amount,\n order_lines.total_line_items_price_pres_currency_codes,\n order_lines.total_line_items_price_shop_currency_codes,\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__order_fulfillment_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__order_adjustment", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}, {"name": "int_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.shopify.shopify_partition_by_cols"], "nodes": ["model.shopify.int_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.int_shopify_gql__order_discount_code", "model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__orders.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_fulfillment_aggregates as (\n\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final\n), __dbt__cte__int_shopify_gql__order_adjustment as (\n\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), fulfillments as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_fulfillment_aggregates\n \n), order_adjustments as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_adjustment\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount_shop) as order_adjustment_amount,\n sum(tax_amount_shop) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then value_amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then value_amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then value_amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n (orders.total_price_shop_amount\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n order_lines.total_line_items_price_pres_amount,\n order_lines.total_line_items_price_shop_amount,\n order_lines.total_line_items_price_pres_currency_codes,\n order_lines.total_line_items_price_shop_currency_codes,\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by \n\n\n customer_id\n\n\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_fulfillment_aggregates as (\n\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify_gql__order_adjustment", "sql": " __dbt__cte__int_shopify_gql__order_adjustment as (\n\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify_gql__order_discount_code", "sql": " __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__transactions": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__transactions", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__transactions.sql", "original_file_path": "models/graphql/shopify_gql__transactions.sql", "unique_id": "model.shopify.shopify_gql__transactions", "fqn": ["shopify", "graphql", "shopify_gql__transactions"], "alias": "shopify_gql__transactions", "checksum": {"name": "sha256", "checksum": "a515293deae8b33e3c0c262d12f78da246ceff07bf83ee3f6d3458d27c8d7234"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop": {"name": "amount_shop", "description": "The amount of money included in the transaction in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres": {"name": "amount_pres", "description": "The amount of money included in the transaction in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_pres_currency_code": {"name": "amount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_shop_currency_code": {"name": "amount_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of the date the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "exchange_rate": {"name": "exchange_rate", "description": "The exchange rate between the home currency and the currency of sale at the time of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_calculated_amount": {"name": "currency_exchange_calculated_amount", "description": "The total amount of the transaction with the currency exchange rate applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Method of payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_created_timestamp": {"name": "parent_created_timestamp", "description": "Created on timestamp of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_kind": {"name": "parent_kind", "description": "Kind of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_amount": {"name": "parent_amount", "description": "Amount of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_status": {"name": "parent_status", "description": "Status of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "Timestamp when the authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.856248, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__transactions\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith transactions as (\n select *\n from {{ var('shopify_gql_transaction') }} \n\n), tender_transactions as (\n\n select *\n from {{ var('shopify_gql_tender_transaction') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify_gql__order') }}\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount_shop as parent_amount,\n parent_transactions.status as parent_status,\n orders.location_id,\n orders.source_name \n\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n left join orders\n on transactions.order_id = orders.order_id\n and transactions.source_relation = orders.source_relation\n\n), exchange_rate as (\n\n select\n *,\n {# QUESTION/ISSUE: Cannot confirm if receipt looks the same in GraphQL #}\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount_shop as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.json_parse", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction", "model.shopify_source.stg_shopify_gql__tender_transaction", "model.shopify.int_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__transactions.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\" \n\n), tender_transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount_shop as parent_amount,\n parent_transactions.status as parent_status,\n orders.location_id,\n orders.source_name \n\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n left join orders\n on transactions.order_id = orders.order_id\n and transactions.source_relation = orders.source_relation\n\n), exchange_rate as (\n\n select\n *,\n \n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) as exchange_rate,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) * amount_shop as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__products": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__products", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__products.sql", "original_file_path": "models/graphql/shopify_gql__products.sql", "unique_id": "model.shopify.shopify_gql__products", "fqn": ["shopify", "graphql", "shopify_gql__products"], "alias": "shopify_gql__products", "checksum": {"name": "sha256", "checksum": "2f676f8591456d8c9e51c9c86d2a748f05045aea58b9b9f9d470c5a5f09e0320"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a product. Hashed on 'product_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity_sold": {"name": "total_quantity_sold", "description": "Quantity of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (in shop currency) of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_net_refunds": {"name": "quantity_sold_net_refunds", "description": "Quantity of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_net_refunds": {"name": "subtotal_sold_net_refunds", "description": "Total amount (in shop currency) of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the product was first ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the product was most recently ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order_line": {"name": "avg_quantity_per_order_line", "description": "Average quantity per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_discount": {"name": "product_total_discount", "description": "Total discounts associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_discount_per_order_line": {"name": "product_avg_discount_per_order_line", "description": "Average discount per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_tax": {"name": "product_total_tax", "description": "Total taxes associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_tax_per_order_line": {"name": "product_avg_tax_per_order_line", "description": "Average taxes per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants": {"name": "count_variants", "description": "Count of product variants.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_product_media": {"name": "has_product_media", "description": "If the product has media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collections": {"name": "collections", "description": "Comma-separated list of collections associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tags": {"name": "tags", "description": "Comma-separated list of tags associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.8415735, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__products\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith products as (\n\n select *\n from {{ ref('int_shopify_gql__products_with_aggregates') }}\n\n), product_order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__product_order_line_aggregates')}}\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__products_with_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__product_order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.int_shopify_gql__product_order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__products.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__product_order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), products as (\n\n select *\n from __dbt__cte__int_shopify_gql__products_with_aggregates\n\n), product_order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__product_order_line_aggregates\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__products_with_aggregates", "sql": " __dbt__cte__int_shopify_gql__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__product_order_line_aggregates", "sql": " __dbt__cte__int_shopify_gql__product_order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__order_lines": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__order_lines", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__order_lines.sql", "original_file_path": "models/graphql/shopify_gql__order_lines.sql", "unique_id": "model.shopify.shopify_gql__order_lines", "fqn": ["shopify", "graphql", "shopify_gql__order_lines"], "alias": "shopify_gql__order_lines", "checksum": {"name": "sha256", "checksum": "05e8538403e3ee72811dc4d13bee21fd937ef51018cc15f1b72b25fb9f047d03"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item of an order in Shopify.", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_amount": {"name": "price_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_pres_currency_code": {"name": "price_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_amount": {"name": "price_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_shop_currency_code": {"name": "price_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_amount": {"name": "total_discount_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_amount": {"name": "total_discount_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_shop_currency_code": {"name": "total_discount_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_pres_currency_code": {"name": "total_discount_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_quantity": {"name": "refunded_quantity", "description": "Quantity of the item that has been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net_refunds": {"name": "quantity_net_refunds", "description": "Quantity ordered, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_compare_at_price": {"name": "variant_compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_position": {"name": "variant_position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sku": {"name": "variant_sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_taxable": {"name": "variant_is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "The weight value of the variant's inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "The unit of measurement for the variant's inventory item's weight.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_subtotal": {"name": "refunded_subtotal", "description": "Subtotal amount of the refund applied to the order line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_net_refunds": {"name": "subtotal_net_refunds", "description": "Subtotal of the order line with refunds subtracted in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_types": {"name": "restock_types", "description": "List of how this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_tax": {"name": "order_line_tax", "description": "Total taxes for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The total pre tax price of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.8519888, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__order_line') }}\n\n), product_variants as (\n\n select *\n from {{ ref('int_shopify_gql__product_variant') }}\n\n), refunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), \n\n{% if var('shopify_gql_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_gql_product_variant_media') }}\n),\n{% endif %}\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n {{ fivetran_utils.string_agg(\"distinct cast(refunds.restock_type as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as restock_types\n from refunds\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n refunds_aggregated.restock_types,\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n product_variant_media.media_id,\n {% endif %}\n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n\n {% if var('shopify_gql_using_product_variant_media', False) %}\n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_line", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__product_variant", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__order_lines.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n\n), product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"\n\n), refunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), \n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\n),\n\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n \n string_agg(distinct cast(refunds.restock_type as TEXT), ', ')\n\n as restock_types\n from refunds\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n refunds_aggregated.restock_types,\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n \n product_variant_media.media_id,\n \n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n\n \n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_line", "sql": " __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__discounts": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__discounts", "resource_type": "model", "package_name": "shopify", "path": "graphql/shopify_gql__discounts.sql", "original_file_path": "models/graphql/shopify_gql__discounts.sql", "unique_id": "model.shopify.shopify_gql__discounts", "fqn": ["shopify", "graphql", "shopify_gql__discounts"], "alias": "shopify_gql__discounts", "checksum": {"name": "sha256", "checksum": "7a569223e2c4c3386f19482d1460516239b38fe1ff56f7c435ad56adcbe8a5e3"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The case-insensitive discount code that customers use at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether the discount can be used only once per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "Number of times the discount has been used (asynchronously updated).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "Number of unique redeem codes associated with the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether `codes_count` is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "Timestamp when the discount ends or expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "Timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "Current status of the discount (e.g. 'active', 'expired', 'scheduled').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount\u2019s display name in the Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to 'all' or 'entitled' items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "How the discount value is interpreted (e.g., 'percentage', 'fixed_amount').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_discount_amount": {"name": "total_order_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off of orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_discount_amount": {"name": "total_abandoned_checkout_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_line_items_price": {"name": "total_order_line_items_price", "description": "Total monetary amount (in shop currency) of line items for orders that have used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_shipping_cost": {"name": "total_order_shipping_cost", "description": "Total shipping costs for orders that used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_refund_amount": {"name": "total_order_refund_amount", "description": "Total refunded amount (in shop currency) for orders that used this discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer emails who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_discount_amount": {"name": "avg_order_discount_amount", "description": "Average amount (in shop currency) of discount taken off orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "count_orders": {"name": "count_orders", "description": "Count of orders in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customers": {"name": "count_abandoned_checkout_customers", "description": "Distinct count of customers who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customer_emails": {"name": "count_abandoned_checkout_customer_emails", "description": "Distinct count of customer emails who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.8773687, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__discounts\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith discounts_enriched as (\n\n select *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as unique_key\n from {{ ref('int_shopify_gql__discount_code_enriched')}}\n),\n\norders_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__discounts_order_aggregates')}}\n),\n\n{% if var('shopify_gql_using_abandoned_checkout', True) %}\nabandoned_checkouts_aggregated as (\n\n select *\n from {{ ref('int_shopify_gql__discounts_abandoned_checkouts')}}\n),\n{% endif %}\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n {% endif %} \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n {% if var('shopify_gql_using_abandoned_checkout', True) %}\n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n {% endif %}\n)\n\nselect * \nfrom aggregates_joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__discount_code_enriched", "package": null, "version": null}, {"name": "int_shopify_gql__discounts_order_aggregates", "package": null, "version": null}, {"name": "int_shopify_gql__discounts_abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/graphql/shopify_gql__discounts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n), __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__discounts_order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), discounts_enriched as (\n\n select *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_code_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_key\n from __dbt__cte__int_shopify_gql__discount_code_enriched\n),\n\norders_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__discounts_order_aggregates\n),\n\n\nabandoned_checkouts_aggregated as (\n\n select *\n from __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts\n),\n\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n \n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n \n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n \n)\n\nselect * \nfrom aggregates_joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__discount_code_enriched", "sql": " __dbt__cte__int_shopify_gql__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n)"}, {"id": "model.shopify.int_shopify_gql__order_discount_code", "sql": " __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__discounts_order_aggregates", "sql": " __dbt__cte__int_shopify_gql__discounts_order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}, {"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}, {"id": "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "sql": " __dbt__cte__int_shopify_gql__discounts_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["unique_key"], "time_spine": null}, "model.shopify.shopify_gql__line_item_enhanced": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__line_item_enhanced", "resource_type": "model", "package_name": "shopify", "path": "graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "original_file_path": "models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "unique_id": "model.shopify.shopify_gql__line_item_enhanced", "fqn": ["shopify", "graphql", "standardized_models", "shopify_gql__line_item_enhanced"], "alias": "shopify_gql__line_item_enhanced", "checksum": {"name": "sha256", "checksum": "397d1387f769ec2a75bd7c041e9c6fd40a46cd420f15904cd27c12ca712fcc84"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It\u2019s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details.", "columns": {"header_id": {"name": "header_id", "description": "Id of corresponding order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_id": {"name": "line_item_id", "description": "Order line item id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_index": {"name": "line_item_index", "description": "Unique index of each line item id for each order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "record_type": {"name": "record_type", "description": "header or line_item", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the order was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "header_status": {"name": "header_status", "description": "Status of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_type": {"name": "billing_type", "description": "NA for Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "Currency used in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "Product ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_name": {"name": "product_name", "description": "Product name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "Product type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_type": {"name": "transaction_type", "description": "Transaction type (Charge, Refund, etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of units of this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_amount": {"name": "unit_amount", "description": "Amount per unit, or the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_amount": {"name": "discount_amount", "description": "The discount amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "The tax amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_amount": {"name": "total_amount", "description": "Order total", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_id": {"name": "payment_id", "description": "Transaction ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Transaction gateway for Shopify ('gift card', 'shopify payments', etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method_id": {"name": "payment_method_id", "description": "Shopify does not have a particular payment_method_id, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_at": {"name": "payment_at", "description": "Transaction processed timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fee_amount": {"name": "fee_amount", "description": "The total shipping fee associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_amount": {"name": "refund_amount", "description": "Refund amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_id": {"name": "subscription_id", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_plan": {"name": "subscription_plan", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_started_at": {"name": "subscription_period_started_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_ended_at": {"name": "subscription_period_ended_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_status": {"name": "subscription_status", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "Customer associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_created_at": {"name": "customer_created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_level": {"name": "customer_level", "description": "Whether 'account' or 'customer'. For Shopify, the level is 'customer'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_name": {"name": "customer_name", "description": "Customer name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_company": {"name": "customer_company", "description": "Associated customer's company noted on the shipping address if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "Customer email", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_city": {"name": "customer_city", "description": "Customer's shipping address city", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_country": {"name": "customer_country", "description": "Customer's shipping address country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/standardized_models/shopify__standardized_models.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005803.0185716, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__line_item_enhanced\"", "raw_code": "{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith line_items as (\n\n select * \n from {{ var('shopify_gql_order_line')}}\n\n), orders as ( \n\n select * \n from {{ var('shopify_gql_order')}}\n\n), product as (\n\n select *\n from {{ var('shopify_gql_product')}}\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n {{ fivetran_utils.string_agg(\"cast (transaction_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} AS transaction_id,\n {{ fivetran_utils.string_agg(\"cast (processed_timestamp as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as processed_timestamp,\n {{ fivetran_utils.string_agg('gateway', \"', '\") }} as gateway\n\n from {{ var('shopify_gql_transaction')}}\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount_shop) as total_order_refund_amount\n from {{ var('shopify_gql_transaction')}}\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal_shop_amount + total_tax_shop_amount) as total_refund_amount\n from {{ var('shopify_gql_order_line_refund')}}\n group by 1,2\n\n), customer as (\n\n select *\n from {{ var('shopify_gql_customer')}}\n\n), shipping as (\n\n select * \n from {{ ref('int_shopify_gql__order_shipping_aggregates')}}\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price_shop_amount as unit_amount,\n o.total_discounts_shop_amount as discount_amount,\n o.total_tax_shop_amount as tax_amount,\n (li.quantity * li.price_shop_amount) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as {{ dbt.type_string() }}) as subscription_id,\n cast(null as {{ dbt.type_string() }}) as subscription_plan,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at,\n cast(null as {{ dbt.type_string() }}) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n {{ dbt.concat([\"c.first_name\", \"''\", \"c.last_name\"]) }} as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id,\n cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as {{ dbt.type_numeric() }}) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as {{ dbt.type_numeric() }}) as quantity,\n cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,\n cast(null as {{ dbt.type_numeric() }}) as discount_amount,\n cast(null as {{ dbt.type_numeric() }}) as tax_amount,\n cast(total_amount as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as {{ dbt.type_numeric() }}) as fee_amount,\n cast(null as {{ dbt.type_numeric() }}) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as {{ dbt.type_numeric() }}) as line_item_id,\n cast(0 as {{ dbt.type_numeric() }}) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as {{ dbt.type_numeric() }}) as product_id,\n cast(null as {{ dbt.type_string() }}) as product_name,\n transaction_type,\n billing_type,\n cast(null as {{ dbt.type_string() }}) as product_type,\n cast(null as {{ dbt.type_numeric() }}) as quantity,\n cast(null as {{ dbt.type_numeric() }}) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__transaction", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__order_shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.dbt.type_timestamp", "macro.dbt.concat", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__transaction", "model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__customer", "model.shopify.int_shopify_gql__order_shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/standardized_models/shopify_gql__line_item_enhanced.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), line_items as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n\n), orders as ( \n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n \n string_agg(cast (transaction_id as TEXT), ', ')\n\n AS transaction_id,\n \n string_agg(cast (processed_timestamp as TEXT), ', ')\n\n as processed_timestamp,\n \n string_agg(gateway, ', ')\n\n as gateway\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount_shop) as total_order_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal_shop_amount + total_tax_shop_amount) as total_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n group by 1,2\n\n), customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n\n), shipping as (\n\n select * \n from __dbt__cte__int_shopify_gql__order_shipping_aggregates\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price_shop_amount as unit_amount,\n o.total_discounts_shop_amount as discount_amount,\n o.total_tax_shop_amount as tax_amount,\n (li.quantity * li.price_shop_amount) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as TEXT) as subscription_id,\n cast(null as TEXT) as subscription_plan,\n cast(null as timestamp) as subscription_period_started_at,\n cast(null as timestamp) as subscription_period_ended_at,\n cast(null as TEXT) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n c.first_name || '' || c.last_name as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as numeric(28,6)) as line_item_id,\n cast(line_item_index as numeric(28,6)) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as numeric(28,6)) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as numeric(28,6)) as quantity,\n cast(unit_amount as numeric(28,6)) as unit_amount,\n cast(null as numeric(28,6)) as discount_amount,\n cast(null as numeric(28,6)) as tax_amount,\n cast(total_amount as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as numeric(28,6)) as fee_amount,\n cast(null as numeric(28,6)) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as numeric(28,6)) as line_item_id,\n cast(0 as numeric(28,6)) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as numeric(28,6)) as product_id,\n cast(null as TEXT) as product_name,\n transaction_type,\n billing_type,\n cast(null as TEXT) as product_type,\n cast(null as numeric(28,6)) as quantity,\n cast(null as numeric(28,6)) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_fulfillment_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_fulfillment_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__order_fulfillment_aggregates"], "alias": "int_shopify_gql__order_fulfillment_aggregates", "checksum": {"name": "sha256", "checksum": "eab4b050977a64c32a911238f62cd031e55c7fdf4d70257621648e0100ef3bb6"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.6750586, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith fulfillment as (\n\n select *\n from {{ var('shopify_gql_fulfillment') }}\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n{% if var('shopify_gql_using_fulfillment_tracking_info', False) %}\nfulfillment_tracking_info as (\n\n select *\n from {{ var('shopify_gql_fulfillment_tracking_info') }}\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_number as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_url as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_urls,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment_tracking_info.tracking_company as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment.service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n{% else %}\nfinal as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n count_fulfillments.number_of_fulfillments,\n max(cast(null as {{ dbt.type_string() }})) as tracking_numbers,\n max(cast(null as {{ dbt.type_string() }})) as tracking_urls,\n max(cast(null as {{ dbt.type_string() }})) as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(fulfillment.service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services\n \n from fulfillment\n left join count_fulfillments\n on fulfillment.order_id = count_fulfillments.order_id\n and fulfillment.source_relation = count_fulfillments.source_relation\n group by 1,2,3\n)\n{% endif %}\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__order_fulfillment_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\ncount_fulfillments as (\n -- necessary to split out as Redshift does not support string_agg and count(distinct) in the same query\n select \n order_id,\n source_relation,\n count(distinct fulfillment_id) as number_of_fulfillments\n\n from fulfillment\n group by 1,2\n),\n\n\nfulfillment_tracking_info as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\n),\n\njoined as (\n\n select \n fulfillment.order_id,\n fulfillment.source_relation,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_number as TEXT), ', ')\n\n as tracking_numbers,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_url as TEXT), ', ')\n\n as tracking_urls,\n \n string_agg(distinct cast(fulfillment_tracking_info.tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(fulfillment.service as TEXT), ', ')\n\n as fulfillment_services\n from fulfillment \n left join fulfillment_tracking_info\n on fulfillment.fulfillment_id = fulfillment_tracking_info.fulfillment_id\n and fulfillment.source_relation = fulfillment_tracking_info.source_relation\n group by 1,2\n),\n\nfinal as (\n\n select \n joined.order_id,\n joined.source_relation,\n joined.tracking_numbers,\n joined.tracking_urls,\n joined.tracking_companies,\n joined.fulfillment_services,\n count_fulfillments.number_of_fulfillments\n from joined\n left join count_fulfillments\n on joined.order_id = count_fulfillments.order_id\n and joined.source_relation = count_fulfillments.source_relation\n)\n\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify_gql__daily_abandoned_checkouts", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_abandoned_checkouts"], "alias": "int_shopify_gql__daily_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "0afd0194490f924273b15c246f6827d0a5fe61b0a084cbaf0673a36995d63d7b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.6902728, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ ref('int_shopify_gql__abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.int_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_orders": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_orders", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_orders.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_orders.sql", "unique_id": "model.shopify.int_shopify_gql__daily_orders", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_orders"], "alias": "int_shopify_gql__daily_orders", "checksum": {"name": "sha256", "checksum": "65a52e078d07bc36095bbfe50d4c57f831d112c3229bd68887265843aaf50be4"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.6992888, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from {{ ref('shopify_gql__order_lines') }}\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}, {"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.shopify_gql__orders", "model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_orders.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(coalesce(line_item_count, 0)) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(coalesce(order_adjusted_total, 0)) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(coalesce(shipping_cost_shop_amount, 0)) as shipping_cost,\n sum(coalesce(order_adjustment_amount, 0)) as order_adjustment_amount,\n sum(coalesce(order_adjustment_tax_amount, 0)) as order_adjustment_tax_amount,\n sum(coalesce(refund_subtotal, 0)) as refund_subtotal,\n sum(coalesce(refund_total_tax, 0)) as refund_total_tax,\n sum(coalesce(total_discounts_shop_amount, 0)) as total_discounts,\n avg(total_discounts_shop_amount) as avg_discount,\n sum(coalesce(shipping_discount_amount, 0)) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(coalesce(percentage_calc_discount_amount, 0)) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(coalesce(fixed_amount_discount_amount, 0)) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(coalesce(count_discount_codes_applied, 0)) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(coalesce(case when count_discount_codes_applied > 0 then 1 else 0 end, 0)) as count_orders_with_discounts,\n sum(coalesce(case when refund_subtotal > 0 then 1 else 0 end, 0)) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(coalesce(order_lines.quantity, 0)) as quantity_sold,\n sum(coalesce(order_lines.refunded_quantity, 0)) as quantity_refunded,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) as quantity_net,\n sum(coalesce(order_lines.quantity, 0)) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(coalesce(order_lines.quantity_net_refunds, 0)) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(coalesce(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_gift_cards_sold,\n sum(coalesce(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end, 0)) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__orders_order_refunds": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_refunds", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "unique_id": "model.shopify.int_shopify_gql__orders_order_refunds", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__orders_order_refunds"], "alias": "int_shopify_gql__orders_order_refunds", "checksum": {"name": "sha256", "checksum": "5c76fbeaab2dd2bff9d13131a4e4fb19a7716c825c70436c6c42ff0f8f1f6234"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.7082355, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith refunds as (\n\n select *\n from {{ var('shopify_gql_refund') }}\n\n), order_line_refunds as (\n\n select *\n from {{ var('shopify_gql_order_line_refund') }}\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}, {"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__refund", "model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__orders_order_refunds.sql", "compiled": true, "compiled_code": "\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_shipping_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_shipping_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__order_shipping_aggregates"], "alias": "int_shopify_gql__order_shipping_aggregates", "checksum": {"name": "sha256", "checksum": "26bcfed5649b9547dd26cec0717b663322f2a11fe33a1018bba98b4a41ec0dce"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.71676, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from {{ var('shopify_gql_order_shipping_line') }}\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from {{ var('shopify_gql_order_shipping_tax_line') }}\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}, {"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line", "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__order_shipping_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customer_email_rollup": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customer_email_rollup", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "unique_id": "model.shopify.int_shopify_gql__customer_email_rollup", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__customer_email_rollup"], "alias": "int_shopify_gql__customer_email_rollup", "checksum": {"name": "sha256", "checksum": "64c2801aa55efb47b328ad86e87224082a02e6ca3e915d5820e53f09078cd22a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.7253625, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__customer_email_rollup\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by created_timestamp desc) \n as customer_index\n\n from {{ ref('int_shopify_gql__customer') }}\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from {{ var('shopify_gql_customer_tag' )}}\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n {{ fivetran_utils.string_agg(\"distinct cast(customers.customer_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_ids,\n {{ fivetran_utils.string_agg(\"distinct cast(customers.phone as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as phone_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(customer_tags.value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n {{ fivetran_utils.max_bool(\"case when customers.customer_index = 1 then customers.is_tax_exempt else null end\") }} as is_tax_exempt, -- since this changes every year\n {{ fivetran_utils.max_bool(\"customers.is_verified_email\") }} as is_verified_email\n\n -- for all other fields, just take the latest value\n {% set cols = adapter.get_columns_in_relation(ref('int_shopify_gql__customer')) %}\n {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', \n 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp',\n 'is_tax_exempt', 'is_verified_email'] %}\n {% for col in cols %}\n {% if col.column|lower not in except_cols %}\n , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }}\n {% endif %}\n {% endfor %}\n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_partition_by_cols", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.max_bool"], "nodes": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__customer_email_rollup.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by \n\n\n email\n\n\n order by created_timestamp desc) \n as customer_index\n\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n \n string_agg(distinct cast(customers.customer_id as TEXT), ', ')\n\n as customer_ids,\n \n string_agg(distinct cast(customers.phone as TEXT), ', ')\n\n as phone_numbers,\n \n string_agg(distinct cast(customer_tags.value as TEXT), ', ')\n\n as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n \n\n bool_or( case when customers.customer_index = 1 then customers.is_tax_exempt else null end )\n\n as is_tax_exempt, -- since this changes every year\n \n\n bool_or( customers.is_verified_email )\n\n as is_verified_email\n\n -- for all other fields, just take the latest value\n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.first_name else null end) as first_name\n \n \n \n , max(case when customers.customer_index = 1 then customers.last_name else null end) as last_name\n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.account_state else null end) as account_state\n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.note else null end) as note\n \n \n \n , max(case when customers.customer_index = 1 then customers.currency else null end) as currency\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_consent_state else null end) as marketing_consent_state\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_opt_in_level else null end) as marketing_opt_in_level\n \n \n \n \n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.unique_key else null end) as unique_key\n \n \n \n , max(case when customers.customer_index = 1 then customers.default_address_id else null end) as default_address_id\n \n \n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__product_order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__product_order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__product_order_line_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__product_order_line_aggregates"], "alias": "int_shopify_gql__product_order_line_aggregates", "checksum": {"name": "sha256", "checksum": "920e1fc150f4213e06a67d88602663cef81d03069da2be99d221bea87c439370"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.7443056, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('shopify_gql__order_lines') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify_gql__orders')}}\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__product_order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount_shop_amount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount_shop_amount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__emails_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__emails_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__emails_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__emails_order_aggregates"], "alias": "int_shopify_gql__emails_order_aggregates", "checksum": {"name": "sha256", "checksum": "46a6101b635fbaac9e4c4f48883e0c13893e9a0ea161d2e182bb07a5a8c5bf81"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.7518163, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n\n), order_aggregates as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify_gql__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from {{ var('shopify_gql_customer') }}\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "shopify_gql__transactions", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__emails_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n where email is not null\n group by 1, 2, 3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__daily_fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__daily_fulfillment", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "unique_id": "model.shopify.int_shopify_gql__daily_fulfillment", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__daily_fulfillment"], "alias": "int_shopify_gql__daily_fulfillment", "checksum": {"name": "sha256", "checksum": "6093ddf8463f9914ea1a6f6798a01d89e77af1f43f0ef6f475ceb741b0824740"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.760976, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_fulfillment_event', false) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith fulfillment_event as (\n\n select *\n from {{ var('shopify_gql_fulfillment_event') }}\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day\n\n {# Possible status values: https://shopify.dev/docs/api/admin-graphql/latest/objects/fulfillmentevent#field-FulfillmentEvent.fields.status #}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'label_printed', 'label_purchased', 'confirmed']%}\n , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__daily_fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__orders_order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__orders_order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__orders_order_line_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__orders_order_line_aggregates"], "alias": "int_shopify_gql__orders_order_line_aggregates", "checksum": {"name": "sha256", "checksum": "d4920955a26e1fe0a86640c97e6cf61a18199255c10350c485aad97d1706beab"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005800.7706923, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"", "raw_code": "{{ config(\n materialized='table', \n enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')\n) }}\n\nwith order_line as (\n\n select *\n from {{ var('shopify_gql_order_line') }}\n\n), tax as (\n\n select\n *\n from {{ var('shopify_gql_tax_line') }}\n\n), shipping as (\n\n select\n *\n from {{ ref('int_shopify_gql__order_shipping_aggregates')}}\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(coalesce(order_line.quantity, 0)) as order_total_quantity,\n sum(coalesce(tax_aggregates.price, 0)) as order_total_tax,\n sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount,\n sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount,\n sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount,\n {{ fivetran_utils.string_agg(\"distinct cast(order_line.price_pres_currency_code as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as total_line_items_price_pres_currency_codes,\n {{ fivetran_utils.string_agg(\"distinct cast(order_line.price_shop_currency_code as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as total_line_items_price_shop_currency_codes\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n order_line_aggregates.total_line_items_price_pres_amount,\n order_line_aggregates.total_line_items_price_shop_amount,\n order_line_aggregates.total_line_items_price_pres_currency_codes,\n order_line_aggregates.total_line_items_price_shop_currency_codes,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line", "package": null, "version": null}, {"name": "int_shopify_gql__order_shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line", "model.shopify.int_shopify_gql__order_shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__orders_order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), order_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n\n), tax as (\n\n select\n *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n\n), shipping as (\n\n select\n *\n from __dbt__cte__int_shopify_gql__order_shipping_aggregates\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(coalesce(order_line.quantity, 0)) as order_total_quantity,\n sum(coalesce(tax_aggregates.price, 0)) as order_total_tax,\n sum(coalesce(order_line.total_discount_shop_amount, 0)) as order_total_discount,\n sum(coalesce(price_pres_amount, 0)) as total_line_items_price_pres_amount,\n sum(coalesce(price_shop_amount, 0)) as total_line_items_price_shop_amount,\n \n string_agg(distinct cast(order_line.price_pres_currency_code as TEXT), ', ')\n\n as total_line_items_price_pres_currency_codes,\n \n string_agg(distinct cast(order_line.price_shop_currency_code as TEXT), ', ')\n\n as total_line_items_price_shop_currency_codes\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n order_line_aggregates.total_line_items_price_pres_amount,\n order_line_aggregates.total_line_items_price_shop_amount,\n order_line_aggregates.total_line_items_price_pres_currency_codes,\n order_line_aggregates.total_line_items_price_shop_currency_codes,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_shipping_aggregates", "sql": " __dbt__cte__int_shopify_gql__order_shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(coalesce(price_shop_amount, 0)) as shipping_price,\n sum(coalesce(discounted_price_shop_amount, 0)) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(coalesce(price_shop_amount, 0)) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(coalesce(order_shipping_line.shipping_price, 0)) as shipping_price,\n sum(coalesce(order_shipping_line.discounted_shipping_price, 0)) as discounted_shipping_price,\n sum(coalesce(order_shipping_tax_line.shipping_tax, 0)) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discount_code_enriched": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discount_code_enriched", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "unique_id": "model.shopify.int_shopify_gql__discount_code_enriched", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discount_code_enriched"], "alias": "int_shopify_gql__discount_code_enriched", "checksum": {"name": "sha256", "checksum": "d268ffc342662037c84c650aab638ba29d2e2136da8c908bc04508c9a7ddc129"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.783384, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith discount_redeem_codes as (\n \n select *\n from {{ var('shopify_gql_discount_redeem_code') }}\n),\n\ndiscount_applications as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_basic') }}\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_bxgy') }}\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_free_shipping') }}\n\n {% if var('shopify_gql_using_discount_code_app', False) %}\n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_gql_discount_code_app') }}\n {% endif %}\n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code", "model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__discount_code_basic", "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discount_code_enriched.sql", "compiled": true, "compiled_code": "\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.value_amount,\n discount_applications.value_currency_code,\n discount_applications.value_percentage,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customers_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customers_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__customers_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__customers_order_aggregates"], "alias": "int_shopify_gql__customers_order_aggregates", "checksum": {"name": "sha256", "checksum": "d0a702cbdb5b6a1fb0b18326465045024d5cf44d97d55a324cb07c68f6927844"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.7957528, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify_gql__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_line_aggregates", "package": null, "version": null}, {"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__customers_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__orders_order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1, 2, 3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1, 2\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__inventory_level_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__inventory_level_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__inventory_level_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__inventory_level_aggregates"], "alias": "int_shopify_gql__inventory_level_aggregates", "checksum": {"name": "sha256", "checksum": "e25fd92bb71fc3846d1c2e59cf59c2bbdb36b4d99ba571160394a38b4854625a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.8041952, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_lines as (\n\n select *\n from {{ ref('int_shopify_gql__order_line') }}\n),\n\nfulfillment as (\n\n select *\n from {{ var('shopify_gql_fulfillment') }}\n),\n\norders as (\n\n select *\n from {{ var('shopify_gql_order') }}\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from {{ ref('int_shopify_gql__orders_order_refunds') }}\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n {# open and pending are set to be deprecated in the future by Shopify #}\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n {{ dbt_utils.group_by(n=3) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}, {"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__orders_order_refunds", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify.int_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__order", "model.shopify.int_shopify_gql__orders_order_refunds"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__inventory_level_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_line\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__int_shopify_gql__orders_order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(coalesce(pre_tax_price, 0)) as subtotal_sold,\n sum(coalesce(quantity, 0)) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_line", "sql": " __dbt__cte__int_shopify_gql__order_line as (\n\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify_gql__orders_order_refunds", "sql": " __dbt__cte__int_shopify_gql__orders_order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal_shop_amount as subtotal,\n order_line_refunds.total_tax_shop_amount as total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discounts_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discounts_abandoned_checkouts"], "alias": "int_shopify_gql__discounts_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "ab9f8f0b086697ca51e0f7ffc6005ff2797126920b53eb844a2e5e9ed34f5da7"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.814442, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ ref('int_shopify_gql__abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from {{ var('shopify_gql_abandoned_checkout_discount_code') }}\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}, {"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discounts_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n), abandoned_checkout as (\n\n select *\n from __dbt__cte__int_shopify_gql__abandoned_checkout\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\n),\n\njoin_abandoned_checkout_discount_code as (\n\n select \n abandoned_checkout_discount_code.checkout_id,\n abandoned_checkout_discount_code.source_relation,\n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.index,\n discount_application.value_type as type\n\n from abandoned_checkout_discount_code\n left join discount_application\n on abandoned_checkout_discount_code.code = discount_application.code\n and abandoned_checkout_discount_code.source_relation = discount_application.source_relation\n where coalesce(discount_application.value_type, '') != ''\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n join_abandoned_checkout_discount_code.code,\n join_abandoned_checkout_discount_code.type,\n join_abandoned_checkout_discount_code.source_relation,\n sum(coalesce(abandoned_checkout.total_discount_shop_amount, 0)) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price_shop_amount, 0)) as total_abandoned_checkout_line_items_price,\n count(distinct abandoned_checkout.customer_id) as count_abandoned_checkout_customers,\n count(distinct abandoned_checkout.email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from join_abandoned_checkout_discount_code\n left join abandoned_checkout\n on join_abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and join_abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__abandoned_checkout", "sql": " __dbt__cte__int_shopify_gql__abandoned_checkout as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__discounts_order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__discounts_order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__discounts_order_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__discounts_order_aggregates"], "alias": "int_shopify_gql__discounts_order_aggregates", "checksum": {"name": "sha256", "checksum": "28bcab684975ed061e765767dcc92ed6ca7a8c8f7235aee1d6c1ac349bae7799"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.8247519, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_discount_code as (\n\n select *\n from {{ ref('int_shopify_gql__order_discount_code') }}\n),\n\norders as (\n\n select *\n from {{ ref('shopify_gql__orders') }}\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify_gql__order_discount_code", "model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__discounts_order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n), order_discount_code as (\n\n select *\n from __dbt__cte__int_shopify_gql__order_discount_code\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.value_amount) as avg_order_discount_amount,\n sum(coalesce(order_discount_code.value_amount, 0)) as total_order_discount_amount,\n max(orders.total_line_items_price_shop_amount) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost_shop_amount) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify_gql__order_discount_code", "sql": " __dbt__cte__int_shopify_gql__order_discount_code as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__products_with_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__products_with_aggregates", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "original_file_path": "models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "unique_id": "model.shopify.int_shopify_gql__products_with_aggregates", "fqn": ["shopify", "graphql", "intermediate", "int_shopify_gql__products_with_aggregates"], "alias": "int_shopify_gql__products_with_aggregates", "checksum": {"name": "sha256", "checksum": "e193bda9d00349acc767910a46f163e2c0cbf21e745ac7e7268ab3a8429e3cac"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.832199, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith products as (\n\n select *\n from {{ var('shopify_gql_product') }}\n), \n\ncollection_product as (\n\n select *\n from {{ var('shopify_gql_collection_product') }}\n),\n\ncollection as (\n\n select *\n from {{ ref('int_shopify_gql__collection') }}\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from {{ var('shopify_gql_product_tag') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n), \n\nproduct_media as (\n\n select *\n from {{ var('shopify_gql_product_media') }}\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter=\"', '\") }} as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='value', delimiter=\"', '\") }} as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_product", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "stg_shopify_gql__product_tag", "package": null, "version": null}, {"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__collection_product", "model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__product_tag", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/int_shopify_gql__products_with_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_adjustment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_adjustment", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "unique_id": "model.shopify.int_shopify_gql__order_adjustment", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_adjustment"], "alias": "int_shopify_gql__order_adjustment", "checksum": {"name": "sha256", "checksum": "566b80b0396e349d2332bee356ba5a1d82377b770a0ff4905c5e8d0ab17ddcb8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.844797, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_adjustment as (\n\n select *\n from {{ var('shopify_gql_order_adjustment') }}\n),\n\nrefund as (\n\n select *\n from {{ var('shopify_gql_refund') }}\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}, {"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment", "model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_adjustment.sql", "compiled": true, "compiled_code": "\n\nwith order_adjustment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\n),\n\nrefund as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\n),\n\njoined as (\n\n select \n order_adjustment.*,\n refund.order_id\n\n from order_adjustment\n left join refund\n on order_adjustment.refund_id = refund.refund_id\n and order_adjustment.source_relation = refund.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_discount_code": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_discount_code", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "unique_id": "model.shopify.int_shopify_gql__order_discount_code", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_discount_code"], "alias": "int_shopify_gql__order_discount_code", "checksum": {"name": "sha256", "checksum": "2c39fac4f334420b741ddf5b87e22b5ace34b1e5183fde13fefd3564e4a85353"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.8532915, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_discount_code as (\n\n select *\n from {{ var('shopify_gql_order_discount_code') }}\n),\n\ndiscount_application as (\n\n select *\n from {{ var('shopify_gql_discount_application') }}\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code", "model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_discount_code.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\n),\n\ndiscount_application as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\n),\n\njoined as (\n\n select \n order_discount_code.*,\n discount_application.value_type as type,\n discount_application.value_amount,\n discount_application.value_currency_code,\n discount_application.value_percentage,\n discount_application.target_type,\n discount_application.target_selection,\n discount_application.allocation_method\n\n from order_discount_code\n left join discount_application\n on order_discount_code.order_id = discount_application.order_id\n and order_discount_code.code = discount_application.code\n and order_discount_code.source_relation = discount_application.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order_line": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order_line", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order_line.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order_line.sql", "unique_id": "model.shopify.int_shopify_gql__order_line", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order_line"], "alias": "int_shopify_gql__order_line", "checksum": {"name": "sha256", "checksum": "d31c98c59428343bb271372b984f57abf5a5c0ef5b2acc38050034d694a12bc2"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.8628259, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith order_line as (\n \n select *\n from {{ var('shopify_gql_order_line') }}\n),\n\ntax_line as (\n\n select *\n from {{ var('shopify_gql_tax_line') }}\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n{% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\nfulfillment_order_line_item as (\n\n select *\n from {{ var('shopify_gql_fulfillment_order_line_item') }}\n),\n{% endif %}\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n {% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n {% else %}\n cast(null as {{ dbt.type_int() }}) as fulfillable_quantity,\n cast(null as {{ dbt.type_string() }}) as weight_unit,\n cast(null as {{ dbt.type_float() }}) as weight_value\n {% endif %}\n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n {% if var('shopify_gql_using_fulfillment_order_line_item', True) %}\n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}, {"name": "stg_shopify_gql__tax_line", "package": null, "version": null}, {"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line", "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order_line.sql", "compiled": true, "compiled_code": "\n\nwith order_line as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\n),\n\ntax_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\n),\n\ntax_line_aggregated as (\n\n select\n tax_line.order_line_id,\n tax_line.source_relation,\n sum(tax_line.price_shop_amount) as order_line_tax\n from tax_line\n group by 1,2\n),\n\n\nfulfillment_order_line_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\n),\n\n\njoined as (\n\n select\n order_line.*,\n coalesce(order_line.price_shop_amount, 0) - coalesce(tax_line_aggregated.order_line_tax, 0) as pre_tax_price,\n tax_line_aggregated.order_line_tax,\n \n fulfillment_order_line_item.remaining_quantity as fulfillable_quantity,\n fulfillment_order_line_item.weight_unit,\n fulfillment_order_line_item.weight_value\n \n\n from order_line\n left join tax_line_aggregated\n on tax_line_aggregated.order_line_id = order_line.order_line_id\n and tax_line_aggregated.source_relation = order_line.source_relation\n \n \n left join fulfillment_order_line_item\n on fulfillment_order_line_item.order_line_item_id = order_line.order_line_id\n and fulfillment_order_line_item.source_relation = order_line.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__order": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__order", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__order.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__order.sql", "unique_id": "model.shopify.int_shopify_gql__order", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__order"], "alias": "int_shopify_gql__order", "checksum": {"name": "sha256", "checksum": "d39c46fbe7a2d41c1b096e78f78ba70cf0d6930f622f93b2424f3c03517cf0ef"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.874026, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__order\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith orders as (\n\n select * \n from {{ var('shopify_gql_order') }}\n)\n\n{% if var('shopify_gql_using_customer_visit', True) %}\n, customer_visit as (\n \n select * \n from {{ var('shopify_gql_customer_visit') }}\n),\n\njoined as (\n\n select \n orders.*,\n customer_visit.referring_site,\n customer_visit.landing_page as landing_site_base_url\n from orders\n left join customer_visit\n on orders.order_id = customer_visit.order_id\n and orders.source_relation = customer_visit.source_relation\n)\n\nselect *\nfrom joined\n\n{% else %}\n\nselect \n orders.*,\n cast(null as {{ dbt.type_string() }}) as referring_site,\n cast(null as {{ dbt.type_string() }}) as landing_site_base_url\nfrom orders\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__order.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\n)\n\n\n, customer_visit as (\n \n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\n),\n\njoined as (\n\n select \n orders.*,\n customer_visit.referring_site,\n customer_visit.landing_page as landing_site_base_url\n from orders\n left join customer_visit\n on orders.order_id = customer_visit.order_id\n and orders.source_relation = customer_visit.source_relation\n)\n\nselect *\nfrom joined\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__collection": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__collection", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__collection.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__collection.sql", "unique_id": "model.shopify.int_shopify_gql__collection", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__collection"], "alias": "int_shopify_gql__collection", "checksum": {"name": "sha256", "checksum": "79c88599b5c946df080af1c74d71b27aed4f7771a481e1c5f675687ea792341a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.883528, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith collection as (\n\n select *\n from {{ var('shopify_gql_collection') }}\n)\n\n{% if var('shopify_gql_using_collection_rule', False) %}\n, collection_rule as (\n\n select *\n from {{ var('shopify_gql_collection_rule') }}\n),\n\nprep_collection_rule as (\n\n select \n collection_id,\n source_relation,\n '{\"column\":\"' || columns || '\",\"relation\":\"' || relation || '\",\"condition\":\"' || condition || '\"}' as rule\n from collection_rule\n),\n\nagg_collection_rule as (\n \n select \n collection_id,\n source_relation,\n '[' || {{ fivetran_utils.string_agg(\"rule\", \"','\") }} || ']' as rules\n from prep_collection_rule\n group by 1,2\n),\n\njoined as (\n\n select \n collection.*,\n agg_collection_rule.rules\n from collection\n left join agg_collection_rule\n on collection.collection_id = agg_collection_rule.collection_id\n and collection.source_relation = agg_collection_rule.source_relation\n)\n\nselect *\nfrom joined\n\n{% else %}\nselect \n collection.*,\n cast(null as {{ dbt.type_string() }}) as rules\nfrom collection\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__collection.sql", "compiled": true, "compiled_code": "\n\nwith collection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\n)\n\n\nselect \n collection.*,\n cast(null as TEXT) as rules\nfrom collection\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__abandoned_checkout": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__abandoned_checkout", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "unique_id": "model.shopify.int_shopify_gql__abandoned_checkout", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__abandoned_checkout"], "alias": "int_shopify_gql__abandoned_checkout", "checksum": {"name": "sha256", "checksum": "1fbb259948ecde6f3a26ef67f85419e23adb92a76099e8951574038b36f320eb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005800.8928988, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_gql_using_abandoned_checkout', True) and var('shopify_api', 'rest') == var('shopify_api_override','graphql'))) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_gql_abandoned_checkout') }}\n),\n\ncustomer as (\n\n select *\n from {{ var('shopify_gql_customer') }}\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__abandoned_checkout.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\n),\n\ncustomer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\nadd_customer_email as (\n\n select \n abandoned_checkout.*,\n customer.email\n from abandoned_checkout\n left join customer\n on abandoned_checkout.customer_id = customer.customer_id\n and abandoned_checkout.source_relation = customer.source_relation\n)\n\nselect *\nfrom add_customer_email", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__product_variant": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__product_variant", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__product_variant.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__product_variant.sql", "unique_id": "model.shopify.int_shopify_gql__product_variant", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__product_variant"], "alias": "int_shopify_gql__product_variant", "checksum": {"name": "sha256", "checksum": "9fd96455970237120c405b947004cecc05bd570910786e801daa7df3cf823a5b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.977505, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith product_variants as (\n\n select *\n from {{ var('shopify_gql_product_variant') }}\n),\n\ninventory_item as (\n\n select *\n from {{ var('shopify_gql_inventory_item') }}\n),\n\njoined as (\n\n select\n product_variants.*,\n inventory_item.measurement_weight_value as weight,\n inventory_item.measurement_weight_unit as weight_unit\n\n from product_variants\n left join inventory_item\n on product_variants.inventory_item_id = inventory_item.inventory_item_id\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__product_variant.sql", "compiled": true, "compiled_code": "\n\nwith product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\n),\n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\n),\n\njoined as (\n\n select\n product_variants.*,\n inventory_item.measurement_weight_value as weight,\n inventory_item.measurement_weight_unit as weight_unit\n\n from product_variants\n left join inventory_item\n on product_variants.inventory_item_id = inventory_item.inventory_item_id\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify_gql__customer": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify_gql__customer", "resource_type": "model", "package_name": "shopify", "path": "graphql/intermediate/base/int_shopify_gql__customer.sql", "original_file_path": "models/graphql/intermediate/base/int_shopify_gql__customer.sql", "unique_id": "model.shopify.int_shopify_gql__customer", "fqn": ["shopify", "graphql", "intermediate", "base", "int_shopify_gql__customer"], "alias": "int_shopify_gql__customer", "checksum": {"name": "sha256", "checksum": "42669a857b1fdc53d88ee34544dfc078e52ceb729cfe1fe4fc47b48691288e07"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005800.986265, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith customer as (\n\n select *\n from {{ var('shopify_gql_customer') }}\n),\n\ncustomer_address as (\n\n select *\n from {{ var('shopify_gql_customer_address') }}\n),\n\ncustomer_default_address as (\n\n select *\n from customer_address\n where coalesce(is_default, false)\n),\n\njoined as (\n\n select \n customer.*,\n customer_default_address.customer_address_id as default_address_id\n {# QUESTION: maybe add other fields that are helpful (would be new)? #}\n \n from customer \n left join customer_default_address\n on customer_default_address.customer_id = customer.customer_id\n and customer_default_address.source_relation = customer.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify/models/graphql/intermediate/base/int_shopify_gql__customer.sql", "compiled": true, "compiled_code": "\n\nwith customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\n),\n\ncustomer_address as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\n),\n\ncustomer_default_address as (\n\n select *\n from customer_address\n where coalesce(is_default, false)\n),\n\njoined as (\n\n select \n customer.*,\n customer_default_address.customer_address_id as default_address_id\n \n \n from customer \n left join customer_default_address\n on customer_default_address.customer_id = customer.customer_id\n and customer_default_address.source_relation = customer.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__collection_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__collection_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__collection_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__collection_metafields.sql", "unique_id": "model.shopify.shopify_gql__collection_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__collection_metafields"], "alias": "shopify_gql__collection_metafields", "checksum": {"name": "sha256", "checksum": "32b746ed89b86970bc65491e90337339d95f490f4b53efbad3c2d67b17c29056"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__collection model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005803.0192513, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__collection_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__collection\", \n reference_values = ['collection'],\n id_column = \"collection_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "int_shopify_gql__collection", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__collection_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__collection\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bd_gwhebwrb'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bd_gwhebwrb\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c3_wgewvevw'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c3_wgewvevw\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.collection_id,\n \n source_table.is_deleted,\n \n source_table.rule_logic,\n \n source_table.handle,\n \n source_table.sort_order,\n \n source_table.title,\n \n source_table.updated_at,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.rules\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bd_gwhebwrb) as metafield_bea81c1795a612d8fc3a232b156467bd_gwhebwrb\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c3_wgewvevw) as metafield_bea81c1795a612d8fc3a232b156467c3_wgewvevw\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.collection_id\n and lower(lookup_object.owner_resource) in ('collection')\n group by 1,2,3,4,5,6,7,8,9,10,11\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__product_variant_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__product_variant_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__product_variant_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__product_variant_metafields.sql", "unique_id": "model.shopify.shopify_gql__product_variant_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__product_variant_metafields"], "alias": "shopify_gql__product_variant_metafields", "checksum": {"name": "sha256", "checksum": "78d300b3aa3591fe3640572e9da4b3d8deb530699a6526cbcc9eb6b629ef698b"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__product_variant model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005803.021212, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__product_variant_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__product_variant\",\n reference_values = ['variant', 'productvariant'],\n id_column = \"variant_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "int_shopify_gql__product_variant", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__product_variant_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__product_variant\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__shop_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__shop_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__shop_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__shop_metafields.sql", "unique_id": "model.shopify.shopify_gql__shop_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__shop_metafields"], "alias": "shopify_gql__shop_metafields", "checksum": {"name": "sha256", "checksum": "e4981591a733469551b3e4de1f177957b0575b0f2a7a2fd1a9c87926c9be0fad"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__shop model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005803.021694, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__shop_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify_gql__shop\", \n reference_values = ['shop'],\n id_column = \"shop_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "stg_shopify_gql__shop", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__shop_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c0_gwrgew'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c0_gwrgew\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.shop_id,\n \n source_table.name,\n \n source_table.is_deleted,\n \n source_table.address_1,\n \n source_table.address_2,\n \n source_table.city,\n \n source_table.province,\n \n source_table.province_code,\n \n source_table.country,\n \n source_table.country_code,\n \n source_table.country_name,\n \n source_table.zip,\n \n source_table.latitude,\n \n source_table.longitude,\n \n source_table.currency,\n \n source_table.enabled_presentment_currencies,\n \n source_table.customer_email,\n \n source_table.email,\n \n source_table.domain,\n \n source_table.phone,\n \n source_table.timezone_abbreviation,\n \n source_table.timezone_offset,\n \n source_table.timezone_offset_minutes,\n \n source_table.iana_timezone,\n \n source_table.primary_locale,\n \n source_table.weight_unit,\n \n source_table.myshopify_domain,\n \n source_table.shop_owner,\n \n source_table.has_shipping_taxes,\n \n source_table.has_taxes_included_in_price,\n \n source_table.has_storefront,\n \n source_table.has_checkout_api_supported,\n \n source_table.money_format,\n \n source_table.money_in_emails_format,\n \n source_table.money_with_currency_format,\n \n source_table.money_with_currency_in_emails_format,\n \n source_table.plan_display_name,\n \n source_table.is_password_enabled,\n \n source_table.is_setup_required,\n \n source_table.created_at,\n \n source_table.updated_at,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c0_gwrgew) as metafield_bea81c1795a612d8fc3a232b156467c0_gwrgew\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.shop_id\n and lower(lookup_object.owner_resource) in ('shop')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__order_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__order_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__order_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__order_metafields.sql", "unique_id": "model.shopify.shopify_gql__order_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__order_metafields"], "alias": "shopify_gql__order_metafields", "checksum": {"name": "sha256", "checksum": "9fac4f22b24cd29d081991b5d98aa549f4e86f07b07d203a5ff11c21b304b7a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__order model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005803.020238, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__order_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__order\", \n reference_values = ['order'],\n id_column = \"order_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}\n\n{# Does not contain total_line_items_price columns as these are calculated in shopify_gql_orders__order_line_aggregates in GraphQL #}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "int_shopify_gql__order", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__order_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__order\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bf_htynetnbw'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bf_htynetnbw\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.order_id,\n \n source_table.user_id,\n \n source_table.total_discounts_pres_amount,\n \n source_table.total_discounts_pres_currency_code,\n \n source_table.total_discounts_shop_amount,\n \n source_table.total_discounts_shop_currency_code,\n \n source_table.total_price_pres_amount,\n \n source_table.total_price_pres_currency_code,\n \n source_table.total_price_shop_amount,\n \n source_table.total_price_shop_currency_code,\n \n source_table.total_tax_pres_amount,\n \n source_table.total_tax_pres_currency_code,\n \n source_table.total_tax_shop_amount,\n \n source_table.total_tax_shop_currency_code,\n \n source_table.source_name,\n \n source_table.subtotal_price_pres_amount,\n \n source_table.subtotal_price_pres_currency_code,\n \n source_table.subtotal_price_shop_amount,\n \n source_table.subtotal_price_shop_currency_code,\n \n source_table.has_taxes_included,\n \n source_table.total_weight,\n \n source_table.total_tip_received_pres_amount,\n \n source_table.total_tip_received_pres_currency_code,\n \n source_table.total_tip_received_shop_amount,\n \n source_table.total_tip_received_shop_currency_code,\n \n source_table.location_id,\n \n source_table.name,\n \n source_table.note,\n \n source_table.number,\n \n source_table.cancel_reason,\n \n source_table.created_timestamp,\n \n source_table.cancelled_timestamp,\n \n source_table.closed_timestamp,\n \n source_table.processed_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.currency,\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.financial_status,\n \n source_table.fulfillment_status,\n \n source_table.billing_address_address_1,\n \n source_table.billing_address_address_2,\n \n source_table.billing_address_city,\n \n source_table.billing_address_company,\n \n source_table.billing_address_country,\n \n source_table.billing_address_country_code,\n \n source_table.billing_address_first_name,\n \n source_table.billing_address_last_name,\n \n source_table.billing_address_latitude,\n \n source_table.billing_address_longitude,\n \n source_table.billing_address_name,\n \n source_table.billing_address_phone,\n \n source_table.billing_address_province,\n \n source_table.billing_address_province_code,\n \n source_table.billing_address_zip,\n \n source_table.browser_ip,\n \n source_table.shipping_cost_pres_amount,\n \n source_table.shipping_cost_pres_currency_code,\n \n source_table.shipping_cost_shop_amount,\n \n source_table.shipping_cost_shop_currency_code,\n \n source_table.shipping_address_address_1,\n \n source_table.shipping_address_address_2,\n \n source_table.shipping_address_city,\n \n source_table.shipping_address_company,\n \n source_table.shipping_address_country,\n \n source_table.shipping_address_country_code,\n \n source_table.shipping_address_first_name,\n \n source_table.shipping_address_last_name,\n \n source_table.shipping_address_latitude,\n \n source_table.shipping_address_longitude,\n \n source_table.shipping_address_name,\n \n source_table.shipping_address_phone,\n \n source_table.shipping_address_province,\n \n source_table.shipping_address_province_code,\n \n source_table.shipping_address_zip,\n \n source_table.app_id,\n \n source_table.customer_locale,\n \n source_table.order_status_url,\n \n source_table.presentment_currency,\n \n source_table.is_test_order,\n \n source_table.is_deleted,\n \n source_table.has_buyer_accepted_marketing,\n \n source_table.is_confirmed,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.referring_site,\n \n source_table.landing_site_base_url\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bf_htynetnbw) as metafield_bea81c1795a612d8fc3a232b156467bf_htynetnbw\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe) as metafield_bea81c1795a612d8fc3a232b156467c5_b4wrebrterhrbe\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.order_id\n and lower(lookup_object.owner_resource) in ('order')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88\n)\n\nselect *\nfrom final\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__customer_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__customer_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__customer_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__customer_metafields.sql", "unique_id": "model.shopify.shopify_gql__customer_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__customer_metafields"], "alias": "shopify_gql__customer_metafields", "checksum": {"name": "sha256", "checksum": "6baad0e1b580a1d84fbd7b945503df32990beafd0d64caa90296378d893291fb"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__customer model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005803.019757, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__customer_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}}\n\n{{ shopify.get_metafields( \n source_object = \"int_shopify_gql__customer\", \n reference_values = ['customer'],\n id_column = \"customer_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "int_shopify_gql__customer", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify.int_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__customer_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"int_shopify_gql__customer\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467be_bwrtbnwrj'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467be_bwrtbnwrj\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c4_brewbrewbre'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c4_brewbrewbre\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.first_name,\n \n source_table.last_name,\n \n source_table.orders_count,\n \n source_table.phone,\n \n source_table.account_state,\n \n source_table.is_tax_exempt,\n \n source_table.total_spent,\n \n source_table.is_verified_email,\n \n source_table.note,\n \n source_table.currency,\n \n source_table.marketing_consent_state,\n \n source_table.marketing_opt_in_level,\n \n source_table.marketing_consent_updated_at,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key,\n \n source_table.default_address_id\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467be_bwrtbnwrj) as metafield_bea81c1795a612d8fc3a232b156467be_bwrtbnwrj\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c4_brewbrewbre) as metafield_bea81c1795a612d8fc3a232b156467c4_brewbrewbre\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.customer_id\n and lower(lookup_object.owner_resource) in ('customer')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify_gql__product_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify_gql__product_metafields", "resource_type": "model", "package_name": "shopify", "path": "graphql/metafields/shopify_gql__product_metafields.sql", "original_file_path": "models/graphql/metafields/shopify_gql__product_metafields.sql", "unique_id": "model.shopify.shopify_gql__product_metafields", "fqn": ["shopify", "graphql", "metafields", "shopify_gql__product_metafields"], "alias": "shopify_gql__product_metafields", "checksum": {"name": "sha256", "checksum": "e662128efd355a0a62e3fdd489bcec4cbec57e7f5630e356a1ce31cdbf150fa5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify_gql__product model with the addition of metafields pivoted out from the stg_shopify_gql__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/graphql/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005803.0207343, "relation_name": "\"postgres\".\"public_shopify\".\"shopify_gql__product_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == var('shopify_api_override','graphql') and var('shopify_gql_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify_gql__product\", \n reference_values = ['product'],\n id_column = \"product_id\",\n lookup_object=\"stg_shopify_gql__metafield\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__product", "package": null, "version": null}, {"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify/models/graphql/metafields/shopify_gql__product_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467bc_brenbre'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467bc_brenbre\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42'\n then value\n else null\n end\n )\n \n \n as bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.product_id,\n \n source_table.handle,\n \n source_table.product_type,\n \n source_table.title,\n \n source_table.vendor,\n \n source_table.status,\n \n source_table.is_deleted,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.published_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation,\n \n source_table.unique_key\n \n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467bc_brenbre) as metafield_bea81c1795a612d8fc3a232b156467bc_brenbre\n \n , max(lookup_object.bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42) as metafield_bea81c1795a612d8fc3a232b156467c2_gtbrwhbwbg42\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.product_id\n and lower(lookup_object.owner_resource) in ('product')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_cohorts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_cohorts.sql", "original_file_path": "models/rest/shopify__customer_cohorts.sql", "unique_id": "model.shopify.shopify__customer_cohorts", "fqn": ["shopify", "rest", "shopify__customer_cohorts"], "alias": "shopify__customer_cohorts", "checksum": {"name": "sha256", "checksum": "8b92c597e275f6464fbf1375ffb22714ad640588e7f163bb322202ef25f70304"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month', 'customer_id', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "customer_id"], "file_format": "parquet"}, "created_at": 1757005802.9358084, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == 'rest',\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'customer_id'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('customer_id', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.customer_id','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','customer_id','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-09-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customers\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.customer_id,\n customers.first_order_timestamp,\n customers.source_relation,\n cast(date_trunc('month', first_order_timestamp) as date) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.customer_id, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.customer_id = orders.customer_id\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n customer_id\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n customer_id\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n customer_id,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-09-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.customer_id, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n coalesce(backfill_lifetime_sums.previous_cohort_month_number, 0) + coalesce(windows.cohort_month_number, 0) as cohort_month_number,\n coalesce(backfill_lifetime_sums.previous_total_price_lifetime, 0) + coalesce(windows.total_price_lifetime, 0) as total_price_lifetime,\n coalesce(backfill_lifetime_sums.previous_order_count_lifetime, 0) + coalesce(windows.order_count_lifetime, 0) as order_count_lifetime,\n coalesce(backfill_lifetime_sums.previous_line_item_count_lifetime, 0) + coalesce(windows.line_item_count_lifetime, 0) as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.customer_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.customer_id = windows.customer_id\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify__daily_shop": {"database": "postgres", "schema": "public_shopify", "name": "shopify__daily_shop", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__daily_shop.sql", "original_file_path": "models/rest/shopify__daily_shop.sql", "unique_id": "model.shopify.shopify__daily_shop", "fqn": ["shopify", "rest", "shopify__daily_shop"], "alias": "shopify__daily_shop", "checksum": {"name": "sha256", "checksum": "26b5fbd6bc74a61de3e6051ace6b3c123b9a789b1871f098d3803e2a0a348335"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a day in your Shop, enriched with a suite of metrics.\n", "columns": {"date_day": {"name": "date_day", "description": "Day for which the shop activity is being measured.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders": {"name": "count_orders", "description": "Count of the distinct orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_line_items": {"name": "count_line_items", "description": "Count of the line items included in orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer email addresses who placed an order on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "Average adjusted total per order placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount (in shop currency) applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to adjustments (in shop currency) on the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the orders placed on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of the discount allocated to this day's orders in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied by customers on orders for this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_locations_ordered_from": {"name": "count_locations_ordered_from", "description": "Distinct locations with orders placed against them on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_discounts": {"name": "count_orders_with_discounts", "description": "Count of orders in which a discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_orders_with_refunds": {"name": "count_orders_with_refunds", "description": "Count of orders in which there was a refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "Timestamp of the first order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "Timestamp of the last order of the day for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_refunded": {"name": "quantity_refunded", "description": "The quantity of goods ORDERED on this day that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net": {"name": "quantity_net", "description": "Net quantity sold from this shop on this day. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants_sold": {"name": "count_variants_sold", "description": "Distinct product variants sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_products_sold": {"name": "count_products_sold", "description": "Distinct products sold on this day (includes refunds).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_gift_cards_sold": {"name": "quantity_gift_cards_sold", "description": "Quantity of gift cards sold on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_requiring_shipping": {"name": "quantity_requiring_shipping", "description": "Quantity of goods sold on this day that require shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers_abandoned_checkout": {"name": "count_customers_abandoned_checkout", "description": "Count of distinct customers who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails_abandoned_checkout": {"name": "count_customer_emails_abandoned_checkout", "description": "Count of distinct customer emails who abandoned checkouts on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_attempted_delivery": {"name": "count_fulfillment_attempted_delivery", "description": "Count of distinct fulfillments on this day where the delivery of the shipment was attempted, but unable to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delivered": {"name": "count_fulfillment_delivered", "description": "Count of successful distinct fulfillments successfully delivered on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of failed distinct fulfillments on this day. Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_in_transit": {"name": "count_fulfillment_in_transit", "description": "Count of distinct fulfillments in transit on this day. Each shipment is being transported between shipping facilities on the way to its destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_out_for_delivery": {"name": "count_fulfillment_out_for_delivery", "description": "Count of distinct fulfillments being delivered to their final destination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_ready_for_pickup": {"name": "count_fulfillment_ready_for_pickup", "description": "Count of distinct fulfillments ready for pickup at a shipping depot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_picked_up": {"name": "count_fulfillment_picked_up", "description": "Count of distinct fulfillments successfully picked up on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_printed": {"name": "count_fulfillment_label_printed", "description": "Count of distinct fulfillments for which a purchased shipping label has been printed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_label_purchased": {"name": "count_fulfillment_label_purchased", "description": "Count of distinct fulfillments for which a shipping label has been purchased (but not printed yet) on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_confirmed": {"name": "count_fulfillment_confirmed", "description": "Count of confirmed distinct fulfillments. This is the default status when no other information is available about a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_delayed": {"name": "count_fulfillment_delayed", "description": "Count of delayed distinct fulfillments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_line_item_count": {"name": "avg_line_item_count", "description": "Average line item count for orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount": {"name": "avg_discount", "description": "Average total discount placed on orders on this day (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_discount_amount": {"name": "avg_shipping_discount_amount", "description": "Average discount amount (in shop currency) allocated toward shipping on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_percentage_calc_discount_amount": {"name": "avg_percentage_calc_discount_amount", "description": "Average discount amount (in shop currency) allocated via a percentage-based-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_fixed_amount_discount_amount": {"name": "avg_fixed_amount_discount_amount", "description": "Average discount amount (in shop currency) allocated via a fixed-amount-discount on orders placed on this day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_sold": {"name": "avg_quantity_sold", "description": "Average quantity sold per order on this day. Includes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_net": {"name": "avg_quantity_net", "description": "Average net quantity sold per order on this day. Excludes refunds. (in shop currency)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.968412, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__daily_shop\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith shop as (\n\n select *\n from {{ var('shopify_shop') }}\n),\n\ncalendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('day','date_day') }} as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from {{ ref('int_shopify__daily_orders') }}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\ndaily_abandoned_checkouts as (\n\n select *\n from {{ ref('int_shopify__daily_abandoned_checkouts') }}\n),\n{% endif %}\n\n{% if var('shopify_using_fulfillment_event', false) %}\ndaily_fulfillment as (\n\n select *\n from {{ ref('int_shopify__daily_fulfillment') }}\n),\n{% endif %}\n\nshop_calendar as (\n\n select\n cast({{ dbt.date_trunc('day','calendar.date_day') }} as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , coalesce(count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n {% endif %}\n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n {% endif %}\n\n {% if var('shopify_using_fulfillment_event', false) %}\n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n {% endif %}\n \n)\n\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "shopify__calendar", "package": null, "version": null}, {"name": "int_shopify__daily_orders", "package": null, "version": null}, {"name": "int_shopify__daily_abandoned_checkouts", "package": null, "version": null}, {"name": "int_shopify__daily_fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__shop", "model.shopify.shopify__calendar", "model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__daily_shop.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n), __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n), __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n), shop as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n),\n\ncalendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('day', date_day) as date) = date_day\n),\n\ndaily_orders as (\n\n select *\n from __dbt__cte__int_shopify__daily_orders\n),\n\n\ndaily_abandoned_checkouts as (\n\n select *\n from __dbt__cte__int_shopify__daily_abandoned_checkouts\n),\n\n\n\ndaily_fulfillment as (\n\n select *\n from __dbt__cte__int_shopify__daily_fulfillment\n),\n\n\nshop_calendar as (\n\n select\n cast(date_trunc('day', calendar.date_day) as date) as date_day,\n shop.shop_id,\n shop.name,\n shop.domain,\n shop.is_deleted,\n shop.currency,\n shop.enabled_presentment_currencies,\n shop.iana_timezone,\n shop.created_at,\n shop.source_relation\n\n from calendar\n join shop \n on cast(shop.created_at as date) <= calendar.date_day\n),\n\nfinal as (\n\n select \n shop_calendar.*,\n\n coalesce(daily_orders.count_orders, 0) as count_orders,\n coalesce(daily_orders.count_line_items, 0) as count_line_items,\n daily_orders.avg_line_item_count,\n coalesce(daily_orders.count_customers, 0) as count_customers,\n coalesce(daily_orders.count_customer_emails, 0) as count_customer_emails,\n coalesce(daily_orders.order_adjusted_total, 0) as order_adjusted_total,\n daily_orders.avg_order_value,\n coalesce(daily_orders.shipping_cost, 0) as shipping_cost,\n coalesce(daily_orders.order_adjustment_amount, 0) as order_adjustment_amount,\n coalesce(daily_orders.order_adjustment_tax_amount, 0) as order_adjustment_tax_amount,\n coalesce(daily_orders.refund_subtotal, 0) as refund_subtotal,\n coalesce(daily_orders.refund_total_tax, 0) as refund_total_tax,\n coalesce(daily_orders.total_discounts, 0) as total_discounts,\n daily_orders.avg_discount,\n coalesce(daily_orders.shipping_discount_amount, 0) as shipping_discount_amount,\n daily_orders.avg_shipping_discount_amount,\n coalesce(daily_orders.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n daily_orders.avg_percentage_calc_discount_amount,\n coalesce(daily_orders.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n daily_orders.avg_fixed_amount_discount_amount,\n coalesce(daily_orders.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(daily_orders.count_locations_ordered_from, 0) as count_locations_ordered_from,\n coalesce(daily_orders.count_orders_with_discounts, 0) as count_orders_with_discounts,\n coalesce(daily_orders.count_orders_with_refunds, 0) as count_orders_with_refunds,\n daily_orders.first_order_timestamp,\n daily_orders.last_order_timestamp,\n coalesce(daily_orders.quantity_sold, 0) as quantity_sold,\n coalesce(daily_orders.quantity_refunded, 0) as quantity_refunded,\n coalesce(daily_orders.quantity_net, 0) as quantity_net,\n daily_orders.avg_quantity_sold,\n daily_orders.avg_quantity_net,\n coalesce(daily_orders.count_variants_sold, 0) as count_variants_sold,\n coalesce(daily_orders.count_products_sold, 0) as count_products_sold,\n coalesce(daily_orders.quantity_gift_cards_sold, 0) as quantity_gift_cards_sold,\n coalesce(daily_orders.quantity_requiring_shipping, 0) as quantity_requiring_shipping\n\n \n , coalesce(daily_abandoned_checkouts.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(daily_abandoned_checkouts.count_customers_abandoned_checkout, 0) as count_customers_abandoned_checkout,\n coalesce(daily_abandoned_checkouts.count_customer_emails_abandoned_checkout, 0) as count_customer_emails_abandoned_checkout\n \n\n \n \n , coalesce(count_fulfillment_attempted_delivery, 0) as count_fulfillment_attempted_delivery\n \n , coalesce(count_fulfillment_delayed, 0) as count_fulfillment_delayed\n \n , coalesce(count_fulfillment_delivered, 0) as count_fulfillment_delivered\n \n , coalesce(count_fulfillment_failure, 0) as count_fulfillment_failure\n \n , coalesce(count_fulfillment_in_transit, 0) as count_fulfillment_in_transit\n \n , coalesce(count_fulfillment_out_for_delivery, 0) as count_fulfillment_out_for_delivery\n \n , coalesce(count_fulfillment_ready_for_pickup, 0) as count_fulfillment_ready_for_pickup\n \n , coalesce(count_fulfillment_picked_up, 0) as count_fulfillment_picked_up\n \n , coalesce(count_fulfillment_label_printed, 0) as count_fulfillment_label_printed\n \n , coalesce(count_fulfillment_label_purchased, 0) as count_fulfillment_label_purchased\n \n , coalesce(count_fulfillment_confirmed, 0) as count_fulfillment_confirmed\n \n \n\n from shop_calendar\n left join daily_orders \n on shop_calendar.source_relation = daily_orders.source_relation\n and shop_calendar.date_day = daily_orders.date_day\n\n \n left join daily_abandoned_checkouts \n on shop_calendar.source_relation = daily_abandoned_checkouts.source_relation\n and shop_calendar.date_day = daily_abandoned_checkouts.date_day\n \n\n \n left join daily_fulfillment \n on shop_calendar.source_relation = daily_fulfillment.source_relation\n and shop_calendar.date_day = daily_fulfillment.date_day\n \n \n)\n\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__daily_orders", "sql": " __dbt__cte__int_shopify__daily_orders as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final\n)"}, {"id": "model.shopify.int_shopify__daily_abandoned_checkouts", "sql": " __dbt__cte__int_shopify__daily_abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates\n)"}, {"id": "model.shopify.int_shopify__daily_fulfillment", "sql": " __dbt__cte__int_shopify__daily_fulfillment as (\n\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__orders": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__orders.sql", "original_file_path": "models/rest/shopify__orders.sql", "unique_id": "model.shopify.shopify__orders", "fqn": ["shopify", "rest", "shopify__orders"], "alias": "shopify__orders", "checksum": {"name": "sha256", "checksum": "391f81515fc070ec8ddcf72d17f302ea6b76c9341329302d11ed57e3ff96b0e0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents an order in Shopify.", "columns": {"orders_unique_key": {"name": "orders_unique_key", "description": "Unique key representing an order. Hashed on 'order_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_buyer_accepted_marketing": {"name": "has_buyer_accepted_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_timestamp": {"name": "cancelled_timestamp", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_timestamp": {"name": "closed_timestamp", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_taxes_included": {"name": "has_taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_test_order": {"name": "is_test_order", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count": {"name": "line_item_count", "description": "Number of line items included in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_order_seq_number": {"name": "customer_order_seq_number", "description": "The sequential number of the order as it relates to the customer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "new_vs_repeat": {"name": "new_vs_repeat", "description": "Whether the order was a new or repeat order for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_cost": {"name": "shipping_cost", "description": "The shipping cost of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_amount": {"name": "order_adjustment_amount", "description": "Total adjustment amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjustment_tax_amount": {"name": "order_adjustment_tax_amount", "description": "Total tax applied to the adjustment on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_subtotal": {"name": "refund_subtotal", "description": "Total refund amount applied to the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_total_tax": {"name": "refund_total_tax", "description": "Total tax applied to the refund on the order in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_adjusted_total": {"name": "order_adjusted_total", "description": "Order total adjusted for refunds and other adjustments. The calculation used for this field is as follows: total price listed on the original order (including shipping costs and discounts) + adjustments + adjustments tax - total refunds - refunds tax The order_adjusted_total will equate to the total sales - refunds listed within the transactions table for the order (after currency exchange).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "The checkout token applied to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price set to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_total_shipping_tax": {"name": "order_total_shipping_tax", "description": "Total shipping tax attributed to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_tags": {"name": "order_tags", "description": "List of tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_url_tags": {"name": "order_url_tags", "description": "List of url tags associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number_of_fulfillments": {"name": "number_of_fulfillments", "description": "Total fulfillments for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_services": {"name": "fulfillment_services", "description": "List of fulfillment services for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_companies": {"name": "tracking_companies", "description": "List of tracking companies for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "List of tracking numbers for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_deleted": {"name": "is_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_discount_amount": {"name": "shipping_discount_amount", "description": "The total amount of discount (in shop currency) allocated toward shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "percentage_calc_discount_amount": {"name": "percentage_calc_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a percentage-based discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fixed_amount_discount_amount": {"name": "fixed_amount_discount_amount", "description": "The total amount of discount (in shop currency) allocated via a fixed-amount discount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_discount_codes_applied": {"name": "count_discount_codes_applied", "description": "Distinct discount codes applied on the order", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.9427645, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_id']) }} as orders_unique_key\n from {{ var('shopify_order') }}\n \n), order_lines as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), order_adjustments as (\n\n select *\n from {{ var('shopify_order_adjustment') }}\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from {{ var('shopify_order_discount_code') }}\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_tags\n \n from {{ var('shopify_order_tag') }}\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as order_url_tags\n \n from {{ var('shopify_order_url_tag') }}\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n {{ fivetran_utils.string_agg(\"distinct cast(service as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as fulfillment_services,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_company as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_companies,\n {{ fivetran_utils.string_agg(\"distinct cast(tracking_number as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as tracking_numbers\n\n from {{ var('shopify_fulfillment') }}\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast({{ fivetran_utils.json_parse(\"total_shipping_price_set\",[\"shop_money\",\"amount\"]) }} as {{ dbt.type_float() }}) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by {{ shopify.shopify_partition_by_cols('customer_id', 'source_relation') }}\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "stg_shopify__order_adjustment", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "stg_shopify__order_tag", "package": null, "version": null}, {"name": "stg_shopify__order_url_tag", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.json_parse", "macro.dbt.type_float", "macro.shopify.shopify_partition_by_cols"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag", "model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__orders.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), orders as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as orders_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n \n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), order_adjustments as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_adjustment\"\n\n), order_adjustments_aggregates as (\n select\n order_id,\n source_relation,\n sum(amount) as order_adjustment_amount,\n sum(tax_amount) as order_adjustment_tax_amount\n from order_adjustments\n group by 1,2\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refund_aggregates as (\n select\n order_id,\n source_relation,\n sum(subtotal) as refund_subtotal,\n sum(total_tax) as refund_total_tax\n from refunds\n group by 1,2\n\n), order_discount_code as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n\n), discount_aggregates as (\n\n select \n order_id,\n source_relation,\n sum(case when type = 'shipping' then amount else 0 end) as shipping_discount_amount,\n sum(case when type = 'percentage' then amount else 0 end) as percentage_calc_discount_amount,\n sum(case when type = 'fixed_amount' then amount else 0 end) as fixed_amount_discount_amount,\n count(distinct code) as count_discount_codes_applied\n\n from order_discount_code\n group by 1,2\n\n), order_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\n group by 1,2\n\n), order_url_tag as (\n\n select\n order_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as order_url_tags\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\n group by 1,2\n\n), fulfillments as (\n\n select \n order_id,\n source_relation,\n count(fulfillment_id) as number_of_fulfillments,\n \n string_agg(distinct cast(service as TEXT), ', ')\n\n as fulfillment_services,\n \n string_agg(distinct cast(tracking_company as TEXT), ', ')\n\n as tracking_companies,\n \n string_agg(distinct cast(tracking_number as TEXT), ', ')\n\n as tracking_numbers\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n group by 1,2\n\n), joined as (\n\n select\n orders.*,\n coalesce(cast(\n\n total_shipping_price_set::json #>> '{shop_money,amount}'\n\n as float) ,0) as shipping_cost,\n \n order_adjustments_aggregates.order_adjustment_amount,\n order_adjustments_aggregates.order_adjustment_tax_amount,\n\n refund_aggregates.refund_subtotal,\n refund_aggregates.refund_total_tax,\n\n (orders.total_price\n + coalesce(order_adjustments_aggregates.order_adjustment_amount,0) + coalesce(order_adjustments_aggregates.order_adjustment_tax_amount,0) \n - coalesce(refund_aggregates.refund_subtotal,0) - coalesce(refund_aggregates.refund_total_tax,0)) as order_adjusted_total,\n order_lines.line_item_count,\n\n coalesce(discount_aggregates.shipping_discount_amount, 0) as shipping_discount_amount,\n coalesce(discount_aggregates.percentage_calc_discount_amount, 0) as percentage_calc_discount_amount,\n coalesce(discount_aggregates.fixed_amount_discount_amount, 0) as fixed_amount_discount_amount,\n coalesce(discount_aggregates.count_discount_codes_applied, 0) as count_discount_codes_applied,\n coalesce(order_lines.order_total_shipping_tax, 0) as order_total_shipping_tax,\n order_tag.order_tags,\n order_url_tag.order_url_tags,\n fulfillments.number_of_fulfillments,\n fulfillments.fulfillment_services,\n fulfillments.tracking_companies,\n fulfillments.tracking_numbers\n\n\n from orders\n left join order_lines\n on orders.order_id = order_lines.order_id\n and orders.source_relation = order_lines.source_relation\n left join refund_aggregates\n on orders.order_id = refund_aggregates.order_id\n and orders.source_relation = refund_aggregates.source_relation\n left join order_adjustments_aggregates\n on orders.order_id = order_adjustments_aggregates.order_id\n and orders.source_relation = order_adjustments_aggregates.source_relation\n left join discount_aggregates\n on orders.order_id = discount_aggregates.order_id \n and orders.source_relation = discount_aggregates.source_relation\n left join order_tag\n on orders.order_id = order_tag.order_id\n and orders.source_relation = order_tag.source_relation\n left join order_url_tag\n on orders.order_id = order_url_tag.order_id\n and orders.source_relation = order_url_tag.source_relation\n left join fulfillments\n on orders.order_id = fulfillments.order_id\n and orders.source_relation = fulfillments.source_relation\n\n), windows as (\n\n select \n *,\n row_number() over (\n partition by \n\n\n customer_id\n\n\n order by created_timestamp) \n as customer_order_seq_number\n from joined\n\n), new_vs_repeat as (\n\n select \n *,\n case \n when customer_order_seq_number = 1 then 'new'\n else 'repeat'\n end as new_vs_repeat\n from windows\n\n)\n\nselect *\nfrom new_vs_repeat", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["orders_unique_key"], "time_spine": null}, "model.shopify.shopify__inventory_levels": {"database": "postgres", "schema": "public_shopify", "name": "shopify__inventory_levels", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__inventory_levels.sql", "original_file_path": "models/rest/shopify__inventory_levels.sql", "unique_id": "model.shopify.shopify__inventory_levels", "fqn": ["shopify", "rest", "shopify__inventory_levels"], "alias": "shopify__inventory_levels", "checksum": {"name": "sha256", "checksum": "e8d825125cc655025c647e33121dbd1eb1c201a0559aad2fa17efe928d69edaf"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Model representing the current status of an inventory level in Shopify. Inventory Levels are unique pairings of inventory items (which have a 1:1 relationship with product variants) and locations. \nInventory Level = Inventory item @ a Location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_item_deleted": {"name": "is_inventory_item_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tracked_editable_locked": {"name": "is_tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "The unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "(DEPRECATED 2025-01-06) Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_inventory_quantity_tracked": {"name": "is_inventory_quantity_tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_created_at": {"name": "inventory_item_created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_updated_at": {"name": "inventory_item_updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_location_deleted": {"name": "is_location_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "is_location_active": {"name": "is_location_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_created_at": {"name": "location_created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_legacy_location": {"name": "is_legacy_location", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_name": {"name": "location_name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_updated_at": {"name": "location_updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_media_id": {"name": "variant_media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_variant_taxable": {"name": "is_variant_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (monetary, in shop currency) sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold": {"name": "quantity_sold", "description": "Total quantity sold from the inventory level. Includes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_orders": {"name": "count_distinct_orders", "description": "The number of distinct orders placed from this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customers": {"name": "count_distinct_customers", "description": "The number of distinct customers (based on customer_id) that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_distinct_customer_emails": {"name": "count_distinct_customer_emails", "description": "The number of distinct customer emails that have placed orders against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timetamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_order_timestamp": {"name": "last_order_timestamp", "description": "The timestamp of the first order against this inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_refunds": {"name": "subtotal_sold_refunds", "description": "The monetary amount (in shop currency) of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_refunds": {"name": "quantity_sold_refunds", "description": "The quantity of inventory level goods that have been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_subtotal_sold": {"name": "net_subtotal_sold", "description": "Net monetary amount sold (in shop currency) from the inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "net_quantity_sold": {"name": "net_quantity_sold", "description": "Net quantity sold from this inventory level. Excludes refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_pending": {"name": "count_fulfillment_pending", "description": "Count of currently pending distinct fulfillments for this inventory level. \"Pending\" = Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_open": {"name": "count_fulfillment_open", "description": "Count of currently open distinct fulfillments for this inventory level. \"Open\" = The fulfillment has been acknowledged by the service and is in processing.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_success": {"name": "count_fulfillment_success", "description": "Count of successful distinct fulfillments for this inventory level. \"Success\" = The fulfillment was successful.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_cancelled": {"name": "count_fulfillment_cancelled", "description": "Count of cancelled distinct fulfillments for this inventory level. \"Cancelled\" = The fulfillment was cancelled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_error": {"name": "count_fulfillment_error", "description": "Count of distinct fulfillments for this inventory level that encountered an error. \"Error\" = There was an error with the fulfillment request.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_fulfillment_failure": {"name": "count_fulfillment_failure", "description": "Count of distinct fulfillments for this inventory level that failed. \"Failure\" = The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "available_quantity": {"name": "available_quantity", "description": "The available quantity that a merchant can sell, determined by coalescing the `quantity` where inventory_state_name = 'available' from `stg_shopify__inventory_quantity`and `available_quantity` from the deprecated `stg_shopify__inventory_level`. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "incoming_quantity": {"name": "incoming_quantity", "description": "The incoming quantity on its way to a merchant's location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "on_hand_quantity": {"name": "on_hand_quantity", "description": "The total number of units that are physically at a location. The `on_hand` state equals the sum of inventory quantities that are in the `available`, `committed`, `reserved`, `damaged`, `safety_stock`, and `quality_control` states. Returns null if the inventory item is not tracked.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "committed_quantity": {"name": "committed_quantity", "description": "The number of units that are part of a placed order but aren't fulfilled. When a draft order is created, the inventory isn't committed until the draft order is completed and an order is created. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reserved_quantity": {"name": "reserved_quantity", "description": "The on-hand units that are temporarily set aside. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "damaged_quantity": {"name": "damaged_quantity", "description": "The on-hand units that aren't sellable or usable due to damage. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "safety_stock_quantity": {"name": "safety_stock_quantity", "description": "The on-hand units that are set aside to help guard against overselling. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quality_control_quantity": {"name": "quality_control_quantity", "description": "The on-hand units that aren't sellable because they're currently in inspection for quality purposes. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.9615378, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__inventory_levels\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith inventory_level as (\n\n select *\n from {{ var('shopify_inventory_level') }}\n), \n\ninventory_item as (\n\n select *\n from {{ var('shopify_inventory_item') }}\n),\n\ninventory_quantity as (\n\n select *\n from {{ var('shopify_inventory_quantity') }}\n),\n\nlocation as (\n\n select *\n from {{ var('shopify_location') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n),\n\nproduct as (\n\n select *\n from {{ var('shopify_product') }}\n),\n\ninventory_level_aggregated as (\n\n select *\n from {{ ref('int_shopify__inventory_level__aggregates') }}\n),\n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n {% set inventory_states = var('shopify_inventory_states', ['incoming', 'on_hand', 'available', 'committed', 'reserved', 'damaged', 'safety_stock', 'quality_control']) -%}\n {% for inventory_state in inventory_states -%}\n , sum(case when lower(inventory_state_name) = {{ \"'\" ~ inventory_state|lower ~ \"'\" }}\n {% if inventory_state|lower == 'available ' -%}\n then coalesce(inventory_quantity.quantity, inventory_level.available_quantity)\n {% else -%}\n then inventory_quantity.quantity\n {% endif -%}\n end) as {{ inventory_state }}_quantity\n {% endfor -%}\n\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id as variant_media_id,\n {% endif %}\n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n {{ fivetran_utils.persist_pass_through_columns('product_variant_pass_through_columns', identifier='product_variant') }}\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n left join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n {% endif %}\n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , coalesce(inventory_level_aggregated.count_fulfillment_{{ status }}, 0) as count_fulfillment_{{ status }}\n {% endfor %}\n\n {% for inventory_state in inventory_states -%}\n , inventory_quantity_aggregated.{{ inventory_state }}_quantity\n {% endfor -%}\n\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_level", "package": null, "version": null}, {"name": "stg_shopify__inventory_item", "package": null, "version": null}, {"name": "stg_shopify__inventory_quantity", "package": null, "version": null}, {"name": "stg_shopify__location", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "int_shopify__inventory_level__aggregates", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__inventory_levels.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n), inventory_level as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_level\"\n), \n\ninventory_item as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\n),\n\ninventory_quantity as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__inventory_quantity\"\n),\n\nlocation as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__location\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n),\n\nproduct as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n),\n\ninventory_level_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__inventory_level__aggregates\n),\n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\ninventory_quantity_aggregated as (\n\n select\n inventory_quantity.source_relation,\n inventory_quantity.inventory_item_id,\n inventory_quantity.inventory_level_id\n\n , sum(case when lower(inventory_state_name) = 'incoming'\n then inventory_quantity.quantity\n end) as incoming_quantity\n , sum(case when lower(inventory_state_name) = 'on_hand'\n then inventory_quantity.quantity\n end) as on_hand_quantity\n , sum(case when lower(inventory_state_name) = 'available'\n then inventory_quantity.quantity\n end) as available_quantity\n , sum(case when lower(inventory_state_name) = 'committed'\n then inventory_quantity.quantity\n end) as committed_quantity\n , sum(case when lower(inventory_state_name) = 'reserved'\n then inventory_quantity.quantity\n end) as reserved_quantity\n , sum(case when lower(inventory_state_name) = 'damaged'\n then inventory_quantity.quantity\n end) as damaged_quantity\n , sum(case when lower(inventory_state_name) = 'safety_stock'\n then inventory_quantity.quantity\n end) as safety_stock_quantity\n , sum(case when lower(inventory_state_name) = 'quality_control'\n then inventory_quantity.quantity\n end) as quality_control_quantity\n from inventory_quantity\n left join inventory_level\n on inventory_quantity.inventory_item_id = inventory_level.inventory_item_id\n and inventory_quantity.inventory_level_id = inventory_level.inventory_level_id\n and inventory_quantity.source_relation = inventory_level.source_relation\n group by 1,2,3\n),\n\njoined_info as (\n\n select \n inventory_level.inventory_level_id,\n inventory_level.inventory_item_id,\n inventory_level.location_id,\n inventory_level.can_deactivate,\n inventory_level.deactivation_alert,\n inventory_level.created_at,\n inventory_level.updated_at,\n inventory_level._fivetran_synced,\n inventory_level.source_relation,\n\n inventory_item.sku,\n inventory_item.is_deleted as is_inventory_item_deleted,\n inventory_item.unit_cost_amount,\n inventory_item.unit_cost_currency_code,\n inventory_item.country_code_of_origin,\n inventory_item.province_code_of_origin,\n inventory_item.is_shipping_required,\n inventory_item.is_inventory_quantity_tracked,\n inventory_item.created_at as inventory_item_created_at,\n inventory_item.updated_at as inventory_item_updated_at,\n inventory_item.duplicate_sku_count,\n inventory_item.harmonized_system_code,\n inventory_item.inventory_history_url,\n inventory_item.legacy_resource_id,\n inventory_item.measurement_id,\n inventory_item.measurement_weight_value,\n inventory_item.measurement_weight_unit,\n inventory_item.is_tracked_editable_locked,\n inventory_item.tracked_editable_reason,\n\n location.name as location_name, \n location.is_deleted as is_location_deleted,\n location.is_active as is_location_active,\n location.address_1,\n location.address_2,\n location.city,\n location.country,\n location.country_code,\n location.is_legacy as is_legacy_location,\n location.province,\n location.province_code,\n location.phone,\n location.zip,\n location.created_at as location_created_at,\n location.updated_at as location_updated_at,\n\n product_variant.variant_id,\n product_variant.product_id,\n product_variant.title as variant_title,\n product_variant.inventory_policy as variant_inventory_policy,\n product_variant.price as variant_price,\n \n \n product_variant_media.media_id as variant_media_id,\n \n\n product_variant.fulfillment_service as variant_fulfillment_service,\n product_variant.inventory_management as variant_inventory_management,\n product_variant.is_taxable as is_variant_taxable,\n product_variant.barcode as variant_barcode,\n product_variant.grams as variant_grams, \n product_variant.inventory_quantity as variant_inventory_quantity,\n product_variant.weight as variant_weight,\n product_variant.weight_unit as variant_weight_unit,\n product_variant.option_1 as variant_option_1,\n product_variant.option_2 as variant_option_2,\n product_variant.option_3 as variant_option_3,\n product_variant.tax_code as variant_tax_code,\n product_variant.created_timestamp as variant_created_at,\n product_variant.updated_timestamp as variant_updated_at,\n product_variant.is_available_for_sale as variant_is_available_for_sale,\n product_variant.display_name as variant_display_name,\n product_variant.legacy_resource_id as variant_legacy_resource_id,\n product_variant.has_components_required as variant_has_components_required,\n product_variant.sellable_online_quantity as variant_sellable_online_quantity\n\n \n\n\n\n\n\n from inventory_level\n join inventory_item \n on inventory_level.inventory_item_id = inventory_item.inventory_item_id \n and inventory_level.source_relation = inventory_item.source_relation \n join location \n on inventory_level.location_id = location.location_id \n and inventory_level.source_relation = location.source_relation \n join product_variant \n on inventory_item.inventory_item_id = product_variant.inventory_item_id \n and inventory_item.source_relation = product_variant.source_relation\n\n \n left join product_variant_media \n on product_variant.variant_id = product_variant_media.product_variant_id\n and product_variant.source_relation = product_variant_media.source_relation\n \n),\n\njoined_aggregates as (\n\n select \n joined_info.*,\n coalesce(inventory_level_aggregated.subtotal_sold, 0) as subtotal_sold,\n coalesce(inventory_level_aggregated.quantity_sold, 0) as quantity_sold,\n coalesce(inventory_level_aggregated.count_distinct_orders, 0) as count_distinct_orders,\n coalesce(inventory_level_aggregated.count_distinct_customers, 0) as count_distinct_customers,\n coalesce(inventory_level_aggregated.count_distinct_customer_emails, 0) as count_distinct_customer_emails,\n inventory_level_aggregated.first_order_timestamp,\n inventory_level_aggregated.last_order_timestamp,\n coalesce(inventory_level_aggregated.subtotal_sold_refunds, 0) as subtotal_sold_refunds,\n coalesce(inventory_level_aggregated.quantity_sold_refunds, 0) as quantity_sold_refunds\n\n \n , coalesce(inventory_level_aggregated.count_fulfillment_pending, 0) as count_fulfillment_pending\n \n , coalesce(inventory_level_aggregated.count_fulfillment_open, 0) as count_fulfillment_open\n \n , coalesce(inventory_level_aggregated.count_fulfillment_success, 0) as count_fulfillment_success\n \n , coalesce(inventory_level_aggregated.count_fulfillment_cancelled, 0) as count_fulfillment_cancelled\n \n , coalesce(inventory_level_aggregated.count_fulfillment_error, 0) as count_fulfillment_error\n \n , coalesce(inventory_level_aggregated.count_fulfillment_failure, 0) as count_fulfillment_failure\n \n\n , inventory_quantity_aggregated.incoming_quantity\n , inventory_quantity_aggregated.on_hand_quantity\n , inventory_quantity_aggregated.available_quantity\n , inventory_quantity_aggregated.committed_quantity\n , inventory_quantity_aggregated.reserved_quantity\n , inventory_quantity_aggregated.damaged_quantity\n , inventory_quantity_aggregated.safety_stock_quantity\n , inventory_quantity_aggregated.quality_control_quantity\n from joined_info\n left join inventory_level_aggregated\n on joined_info.location_id = inventory_level_aggregated.location_id\n and joined_info.variant_id = inventory_level_aggregated.variant_id\n and joined_info.source_relation = inventory_level_aggregated.source_relation\n left join inventory_quantity_aggregated\n on joined_info.inventory_item_id = inventory_quantity_aggregated.inventory_item_id\n and joined_info.inventory_level_id = inventory_quantity_aggregated.inventory_level_id\n and joined_info.source_relation = inventory_quantity_aggregated.source_relation\n),\n\nfinal as (\n\n select \n *,\n subtotal_sold - subtotal_sold_refunds as net_subtotal_sold,\n quantity_sold - quantity_sold_refunds as net_quantity_sold\n from joined_aggregates\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}, {"id": "model.shopify.int_shopify__inventory_level__aggregates", "sql": " __dbt__cte__int_shopify__inventory_level__aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_emails": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_emails", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_emails.sql", "original_file_path": "models/rest/shopify__customer_emails.sql", "unique_id": "model.shopify.shopify__customer_emails", "fqn": ["shopify", "rest", "shopify__customer_emails"], "alias": "shopify__customer_emails", "checksum": {"name": "sha256", "checksum": "950e6e68218fd53bf2bd11f089af340c092a4251e1fd9d8c9230bf9c298af01f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer email in Shopify.", "columns": {"last_fivetran_synced": {"name": "last_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_ids": {"name": "customer_ids", "description": "Comma-separated list of customer IDs associated with the email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone_numbers": {"name": "phone_numbers", "description": "Comma-separated list of phone numbers associated with this email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_updated_at": {"name": "last_updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money that the customer has spent on orders across their order history (in shop currency).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_account_created_at": {"name": "first_account_created_at", "description": "Timestamp of when the first account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_account_created_at": {"name": "last_account_created_at", "description": "Timestamp of when the last account associated with this email was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.9475212, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_emails\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customer_emails as (\n\n select \n {{ dbt_utils.star(from=ref('int_shopify__customer_email_rollup'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ ref('int_shopify__customer_email_rollup') }}\n\n), orders as (\n\n select *\n from {{ ref('int_shopify__emails__order_aggregates' )}}\n where email is not null\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where email is not null\n group by 1,2\n{% endif %}\n\n), joined as (\n\n select \n customer_emails.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__customer_email_rollup", "package": null, "version": null}, {"name": "int_shopify__emails__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star"], "nodes": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_emails.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n), customer_emails as (\n\n select \n \"email\",\n \"source_relation\",\n \"customer_ids\",\n \"phone_numbers\",\n \"customer_tags\",\n \"first_account_created_at\",\n \"last_account_created_at\",\n \"last_updated_at\",\n \"marketing_consent_updated_at\",\n \"last_fivetran_synced\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"account_state\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\"\n from \"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"\n\n), orders as (\n\n select *\n from __dbt__cte__int_shopify__emails__order_aggregates\n where email is not null\n\n\n), abandoned as (\n\n select \n lower(email) as email,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where email is not null\n group by 1,2\n\n\n), joined as (\n\n select \n customer_emails.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customer_emails\n left join orders\n on customer_emails.email = orders.email\n and customer_emails.source_relation = orders.source_relation\n\n \n left join abandoned\n on customer_emails.email = abandoned.email\n and customer_emails.source_relation = abandoned.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__emails__order_aggregates", "sql": " __dbt__cte__int_shopify__emails__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customers": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customers.sql", "original_file_path": "models/rest/shopify__customers.sql", "unique_id": "model.shopify.shopify__customers", "fqn": ["shopify", "rest", "shopify__customers"], "alias": "shopify__customers", "checksum": {"name": "sha256", "checksum": "0ecd7f0b22e3a25224a922e9f02cfa4d5deadd8d3b62d124e6caff3602c729c0"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_count_orders": {"name": "lifetime_count_orders", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "account_state": {"name": "account_state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_tax_exempt": {"name": "is_tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_verified_email": {"name": "is_verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the customer completed their first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the customer completed their most recent order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_value": {"name": "avg_order_value", "description": "The average order value for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_spent": {"name": "lifetime_total_spent", "description": "The total amount of money in shop currency that the customer has spent on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_refunded": {"name": "lifetime_total_refunded", "description": "The total amount of money that the customer has been refunded on orders across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_net": {"name": "lifetime_total_net", "description": "The total amount of money (minus refunds) that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_abandoned_checkouts": {"name": "lifetime_abandoned_checkouts", "description": "Total number of abandoned checkouts abandoned by the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_tags": {"name": "customer_tags", "description": "A string aggregated list of all tags associated with a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order": {"name": "avg_quantity_per_order", "description": "Average quantity of items per order customer orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_tax": {"name": "lifetime_total_tax", "description": "Total amount of tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_tax_per_order": {"name": "avg_tax_per_order", "description": "Average tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_discount": {"name": "lifetime_total_discount", "description": "Total discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_discount_per_order": {"name": "avg_discount_per_order", "description": "Average discount per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping": {"name": "lifetime_total_shipping", "description": "Total shipping costs attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_per_order": {"name": "avg_shipping_per_order", "description": "Average shipping cost per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_with_discounts": {"name": "lifetime_total_shipping_with_discounts", "description": "Total shipping costs after discounts attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_with_discounts_per_order": {"name": "avg_shipping_with_discounts_per_order", "description": "Average shipping costs after discounts per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "lifetime_total_shipping_tax": {"name": "lifetime_total_shipping_tax", "description": "Total shipping tax attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_shipping_tax_per_order": {"name": "avg_shipping_tax_per_order", "description": "Average shipping tax per order attributed to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_updated_at": {"name": "marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_consent_state": {"name": "marketing_consent_state", "description": "Field indicating if the customer has consented to receive marketing material via email. Coalescing of the new `email_marketing_consent_state` field and the deprecated `accepts_marketing` field. Records with the old field will be marked with '(legacy)'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.945211, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customers\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customers as (\n\n select \n {{ dbt_utils.star(from=ref('stg_shopify__customer'), except=[\"orders_count\", \"total_spent\"]) }}\n from {{ var('shopify_customer') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__customers__order_aggregates' )}}\n\n{% if var('shopify_using_abandoned_checkout', True) %}\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from {{ var('shopify_abandoned_checkout' )}}\n where customer_id is not null\n group by 1,2\n{% endif %}\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n {{ fivetran_utils.string_agg(\"distinct cast(value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags\n\n from {{ var('shopify_customer_tag' )}}\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n {% endif %}\n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n {% endif %}\n\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "shopify__customers__order_aggregates", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.star", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customers.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n), customers as (\n\n select \n \"customer_id\",\n \"email\",\n \"first_name\",\n \"last_name\",\n \"default_address_id\",\n \"phone\",\n \"account_state\",\n \"is_tax_exempt\",\n \"is_verified_email\",\n \"note\",\n \"currency\",\n \"marketing_consent_state\",\n \"marketing_opt_in_level\",\n \"marketing_consent_updated_at\",\n \"created_timestamp\",\n \"updated_timestamp\",\n \"_fivetran_synced\",\n \"source_relation\"\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), orders as (\n\n select *\n from __dbt__cte__shopify__customers__order_aggregates\n\n\n), abandoned as (\n\n select \n customer_id,\n source_relation,\n count(distinct checkout_id) as lifetime_abandoned_checkouts\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n where customer_id is not null\n group by 1,2\n\n\n), customer_tags_aggregated as (\n\n select \n customer_id,\n source_relation,\n \n string_agg(distinct cast(value as TEXT), ', ')\n\n as customer_tags\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n group by 1,2\n\n), joined as (\n\n select \n customers.*,\n\n \n coalesce(abandoned.lifetime_abandoned_checkouts, 0) as lifetime_abandoned_checkouts,\n \n\n orders.first_order_timestamp,\n orders.most_recent_order_timestamp,\n customer_tags_aggregated.customer_tags,\n orders.avg_order_value,\n coalesce(orders.lifetime_total_spent, 0) as lifetime_total_spent,\n coalesce(orders.lifetime_total_refunded, 0) as lifetime_total_refunded,\n (coalesce(orders.lifetime_total_spent, 0) - coalesce(orders.lifetime_total_refunded, 0)) as lifetime_total_net,\n coalesce(orders.lifetime_count_orders, 0) as lifetime_count_orders,\n orders.avg_quantity_per_order,\n coalesce(orders.lifetime_total_tax, 0) as lifetime_total_tax,\n orders.avg_tax_per_order,\n coalesce(orders.lifetime_total_discount, 0) as lifetime_total_discount,\n orders.avg_discount_per_order,\n coalesce(orders.lifetime_total_shipping, 0) as lifetime_total_shipping,\n orders.avg_shipping_per_order,\n coalesce(orders.lifetime_total_shipping_with_discounts, 0) as lifetime_total_shipping_with_discounts,\n orders.avg_shipping_with_discounts_per_order,\n coalesce(orders.lifetime_total_shipping_tax, 0) as lifetime_total_shipping_tax,\n orders.avg_shipping_tax_per_order\n\n from customers\n left join orders\n on customers.customer_id = orders.customer_id\n and customers.source_relation = orders.source_relation\n left join customer_tags_aggregated\n on customers.customer_id = customer_tags_aggregated.customer_id\n and customers.source_relation = customer_tags_aggregated.source_relation\n \n \n left join abandoned\n on customers.customer_id = abandoned.customer_id\n and customers.source_relation = abandoned.source_relation\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__customers__order_aggregates", "sql": " __dbt__cte__shopify__customers__order_aggregates as (\n\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_email_cohorts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_email_cohorts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__customer_email_cohorts.sql", "original_file_path": "models/rest/shopify__customer_email_cohorts.sql", "unique_id": "model.shopify.shopify__customer_email_cohorts", "fqn": ["shopify", "rest", "shopify__customer_email_cohorts"], "alias": "shopify__customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "3c60f6ffa19bb9a0e60b9b3a02e5c5a3a5baa560bcfa85b39e38194b2bae552a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "customer_cohort_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null, "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "tags": [], "description": "Each record represents a customer's (on the EMAIL grain) performance in a calendar month.", "columns": {"cohort_month": {"name": "cohort_month", "description": "The month the cohort belongs to, i.e the first month the customer had an order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cohort_month_number": {"name": "cohort_month_number", "description": "The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_cohort_id": {"name": "customer_cohort_id", "description": "Unique key representing a customer in a given month. Hashed on 'date_month','email', and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The ID of the related customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_month": {"name": "date_month", "description": "The calendar month the customer stats relate to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp of the customer's first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_in_month": {"name": "line_item_count_in_month", "description": "Number of line items purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_count_lifetime": {"name": "line_item_count_lifetime", "description": "Number of line items purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_in_month": {"name": "order_count_in_month", "description": "Number of orders purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_count_lifetime": {"name": "order_count_lifetime", "description": "Number of orders purchased up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "total_price_in_month": {"name": "total_price_in_month", "description": "Total amount (in shop currency) purchased in the `date_month`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_lifetime": {"name": "total_price_lifetime", "description": "Total amount (in shop currency) up until and including this `date_month`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "incremental", "enabled": true, "unique_key": "customer_cohort_id", "incremental_strategy": "delete+insert", "partition_by": {"field": "date_month", "data_type": "date"}, "cluster_by": ["date_month", "email"], "file_format": "parquet"}, "created_at": 1757005802.9370563, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"", "raw_code": "{{\n config(\n enabled=var('shopify_api', 'rest') == 'rest',\n materialized='table' if shopify.shopify_is_databricks_sql_warehouse() else 'incremental',\n unique_key='customer_cohort_id',\n incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'databricks', 'spark') else 'delete+insert',\n partition_by={\n \"field\": \"date_month\", \n \"data_type\": \"date\"\n } if target.type not in ('spark','databricks') \n else ['date_month'],\n cluster_by=['date_month', 'email'],\n file_format='delta' if shopify.shopify_is_databricks_sql_warehouse() else 'parquet'\n ) \n}}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n {% if is_incremental() %}\n and cast(date_day as date) >= {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n {% endif %}\n\n), customers as (\n\n select *\n from {{ ref('shopify__customer_emails') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n {{ dbt.date_trunc('month', 'first_order_timestamp') }} as cohort_month\n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast({{ dbt.date_trunc('month', 'created_timestamp') }} as date)\n {{ dbt_utils.group_by(n=5) }}\n\n), windows as (\n\n {% set partition_string = 'partition by ' ~ shopify.shopify_partition_by_cols('email', 'source_relation') ~ 'order by date_month rows between unbounded preceding and current row' %}\n\n select\n *,\n sum(total_price_in_month) over ({{ partition_string }}) as total_price_lifetime,\n sum(order_count_in_month) over ({{ partition_string }}) as order_count_lifetime,\n sum(line_item_count_in_month) over ({{ partition_string }}) as line_item_count_lifetime,\n row_number() over ( \n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n{% if is_incremental() %}\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from {{ this }}\n where date_month < {{ shopify.shopify_lookback(from_date=\"max(date_month)\", interval=1, datepart='month') }}\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n {{ dbt_utils.generate_surrogate_key(['windows.date_month','windows.email','windows.source_relation']) }} as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n{% else %}\n), final as (\n\n select \n *, \n {{ dbt_utils.generate_surrogate_key(['date_month','email','source_relation']) }} as customer_cohort_id\n from windows\n\n{% endif %}\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customer_emails", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_is_databricks_sql_warehouse", "macro.dbt.date_trunc", "macro.dbt.is_incremental", "macro.dbt_utils.group_by", "macro.shopify.shopify_partition_by_cols", "macro.dbt_utils.generate_surrogate_key", "macro.shopify.shopify_lookback"], "nodes": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__customer_email_cohorts.sql", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__calendar\"\n where cast(date_trunc('month', date_day) as date) = date_day\n\n \n and cast(date_day as date) >= \n\n\n\n \n\n \n\n cast('2025-09-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n \n\n), customers as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__customer_emails\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), customer_calendar as (\n\n select\n cast(calendar.date_day as date) as date_month,\n customers.email,\n customers.first_order_timestamp,\n customers.source_relation,\n date_trunc('month', first_order_timestamp) as cohort_month\n from calendar\n inner join customers\n on cast(date_trunc('month', first_order_timestamp) as date) <= calendar.date_day\n\n), orders_joined as (\n\n select \n customer_calendar.date_month, \n customer_calendar.email, \n customer_calendar.first_order_timestamp,\n customer_calendar.cohort_month,\n customer_calendar.source_relation,\n coalesce(count(distinct orders.order_id), 0) as order_count_in_month,\n coalesce(sum(orders.order_adjusted_total), 0) as total_price_in_month,\n coalesce(sum(orders.line_item_count), 0) as line_item_count_in_month\n from customer_calendar\n left join orders\n on customer_calendar.email = orders.email\n and customer_calendar.source_relation = orders.source_relation\n and customer_calendar.date_month = cast(date_trunc('month', created_timestamp) as date)\n group by 1,2,3,4,5\n\n), windows as (\n\n \n\n select\n *,\n sum(total_price_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as total_price_lifetime,\n sum(order_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as order_count_lifetime,\n sum(line_item_count_in_month) over (partition by \n\n\n email\n\norder by date_month rows between unbounded preceding and current row) as line_item_count_lifetime,\n row_number() over ( \n partition by \n\n\n email\n\n\n order by date_month asc) \n as cohort_month_number\n from orders_joined\n\n\n), backfill_lifetime_sums as (\n -- for incremental runs we need to fetch the prior lifetimes to properly continue adding to them\n select\n source_relation,\n email,\n max(total_price_lifetime) as previous_total_price_lifetime,\n max(order_count_lifetime) as previous_order_count_lifetime,\n max(line_item_count_lifetime) as previous_line_item_count_lifetime,\n max(cohort_month_number) as previous_cohort_month_number\n from \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\n where date_month < \n\n\n\n \n\n \n\n cast('2025-09-01' as date) + ((interval '1 month') * (-1))\n\n\n\n\n group by 1,2\n\n), final as (\n\n select \n windows.date_month, \n windows.email, \n windows.first_order_timestamp,\n windows.cohort_month,\n windows.source_relation,\n windows.order_count_in_month,\n windows.total_price_in_month,\n windows.line_item_count_in_month,\n backfill_lifetime_sums.previous_cohort_month_number + windows.cohort_month_number as cohort_month_number,\n backfill_lifetime_sums.previous_total_price_lifetime + windows.total_price_lifetime as total_price_lifetime,\n backfill_lifetime_sums.previous_order_count_lifetime + windows.order_count_lifetime as order_count_lifetime,\n backfill_lifetime_sums.previous_line_item_count_lifetime + windows.line_item_count_lifetime as line_item_count_lifetime,\n md5(cast(coalesce(cast(windows.date_month as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.email as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(windows.source_relation as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as customer_cohort_id\n from windows\n left join backfill_lifetime_sums\n on backfill_lifetime_sums.source_relation = windows.source_relation\n and backfill_lifetime_sums.email = windows.email\n\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["customer_cohort_id"], "time_spine": null}, "model.shopify.shopify__discounts": {"database": "postgres", "schema": "public_shopify", "name": "shopify__discounts", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__discounts.sql", "original_file_path": "models/rest/shopify__discounts.sql", "unique_id": "model.shopify.shopify__discounts", "fqn": ["shopify", "rest", "shopify__discounts"], "alias": "shopify__discounts", "checksum": {"name": "sha256", "checksum": "62fa5f60084ea0263c89743d8e99e3642dc01df675b0f810158be89eba5984aa"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a unique discount, enriched with discount metadata and metrics regarding orders and abandoned checkouts.\n", "columns": {"discounts_unique_key": {"name": "discounts_unique_key", "description": "Unique key representing a discount. Hashed on 'discount_code_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "The case-insensitive discount code that customers use at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_code_id": {"name": "discount_code_id", "description": "The ID for the discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount (e.g. 'basic', 'bxgy', 'free_shipping', 'app').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether the discount can be used only once per customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_count": {"name": "usage_count", "description": "Number of times the discount has been used (asynchronously updated).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "Number of unique redeem codes associated with the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether `codes_count` is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "Timestamp when the discount ends or expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "Timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "Current status of the discount (e.g. 'active', 'expired', 'scheduled').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount\u2019s display name in the Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount that resulted from the usage of this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code associated with `total_sales_amount`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The total number of times the discount code can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocation_method": {"name": "allocation_method", "description": "The method by which the discount is allocated. Valid values include `each` (applies the discount to each eligible item) and `across` (spreads the discount value across eligible items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the discount, often corresponding to the rule or promotion name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Indicates whether the discount applies to 'all' or 'entitled' items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "The type of target this discount applies to (e.g., `line_item` or `shipping_line`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "application_type": {"name": "application_type", "description": "The type of discount (e.g., `manual`, `script`, or `automatic`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Numeric value of the discount (e.g., percentage or fixed amount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "How the discount value is interpreted (e.g., 'percentage', 'fixed_amount').", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_discount_amount": {"name": "total_order_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off of orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_discount_amount": {"name": "total_abandoned_checkout_discount_amount", "description": "Total monetary amount (in shop currency) of discounts taken off abandoned checkout orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_line_items_price": {"name": "total_order_line_items_price", "description": "Total monetary amount (in shop currency) of line items for orders that have used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_shipping_cost": {"name": "total_order_shipping_cost", "description": "Total shipping costs for orders that used this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_abandoned_checkout_shipping_price": {"name": "total_abandoned_checkout_shipping_price", "description": "Total projected shipping costs for abandoned checkouts that applied this discount first.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_order_refund_amount": {"name": "total_order_refund_amount", "description": "Total refunded amount (in shop currency) for orders that used this discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customers": {"name": "count_customers", "description": "Count of distinct customers who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_customer_emails": {"name": "count_customer_emails", "description": "Count of distinct customer emails who placed orders using this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_order_discount_amount": {"name": "avg_order_discount_amount", "description": "Average amount (in shop currency) of discount taken off orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source.source_relation"]}, "count_orders": {"name": "count_orders", "description": "Count of orders in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkouts": {"name": "count_abandoned_checkouts", "description": "Count of abandoned checkouts in which this discount code was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customers": {"name": "count_abandoned_checkout_customers", "description": "Distinct count of customers who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_abandoned_checkout_customer_emails": {"name": "count_abandoned_checkout_customer_emails", "description": "Distinct count of customer emails who applied this discount in a checkout that they abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.9650347, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__discounts\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith discounts_enriched as (\n\n select *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'discount_code_id']) }} as discounts_unique_key\n from {{ ref('int_shopify__discount_code_enriched')}}\n),\n\norders_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__order_aggregates')}}\n),\n\n{% if var('shopify_using_abandoned_checkout', True) %}\nabandoned_checkouts_aggregated as (\n\n select *\n from {{ ref('int_shopify__discounts__abandoned_checkouts')}}\n),\n{% endif %}\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n {% if var('shopify_using_abandoned_checkout', True) %}\n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n {% endif %} \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n {% if var('shopify_using_abandoned_checkout', True) %}\n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n {% endif %}\n)\n\nselect * \nfrom aggregates_joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__discount_code_enriched", "package": null, "version": null}, {"name": "int_shopify__discounts__order_aggregates", "package": null, "version": null}, {"name": "int_shopify__discounts__abandoned_checkouts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__discounts__abandoned_checkouts"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__discounts.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n), __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n), __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n), discounts_enriched as (\n\n select *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(discount_code_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as discounts_unique_key\n from __dbt__cte__int_shopify__discount_code_enriched\n),\n\norders_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__order_aggregates\n),\n\n\nabandoned_checkouts_aggregated as (\n\n select *\n from __dbt__cte__int_shopify__discounts__abandoned_checkouts\n),\n\n\n\naggregates_joined as (\n\n select \n discounts_enriched.*,\n coalesce(orders_aggregated.count_orders, 0) as count_orders,\n orders_aggregated.avg_order_discount_amount,\n coalesce(orders_aggregated.total_order_discount_amount, 0) as total_order_discount_amount,\n coalesce(orders_aggregated.total_order_line_items_price, 0) as total_order_line_items_price,\n coalesce(orders_aggregated.total_order_shipping_cost, 0) as total_order_shipping_cost,\n coalesce(orders_aggregated.total_order_refund_amount, 0) as total_order_refund_amount,\n coalesce(orders_aggregated.count_customers, 0) as count_customers,\n coalesce(orders_aggregated.count_customer_emails, 0) as count_customer_emails\n \n \n , coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_discount_amount, 0) as total_abandoned_checkout_discount_amount,\n coalesce(abandoned_checkouts_aggregated.total_abandoned_checkout_shipping_price, 0) as total_abandoned_checkout_shipping_price,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkouts, 0) as count_abandoned_checkouts,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customers, 0) as count_abandoned_checkout_customers,\n coalesce(abandoned_checkouts_aggregated.count_abandoned_checkout_customer_emails, 0) as count_abandoned_checkout_customer_emails\n \n\n from discounts_enriched\n left join orders_aggregated\n on discounts_enriched.code = orders_aggregated.code\n and discounts_enriched.source_relation = orders_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = orders_aggregated.type\n\n \n left join abandoned_checkouts_aggregated\n on discounts_enriched.code = abandoned_checkouts_aggregated.code\n and discounts_enriched.source_relation = abandoned_checkouts_aggregated.source_relation\n -- in case one CODE can apply to both shipping and line items, percentages and fixed_amounts\n and (case \n when discounts_enriched.target_type = 'shipping_line' then 'shipping' -- when target_type = 'shipping', value_type = 'percentage'\n else discounts_enriched.value_type end) = abandoned_checkouts_aggregated.type\n \n)\n\nselect * \nfrom aggregates_joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__discount_code_enriched", "sql": " __dbt__cte__int_shopify__discount_code_enriched as (\n\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications\n)"}, {"id": "model.shopify.int_shopify__discounts__order_aggregates", "sql": " __dbt__cte__int_shopify__discounts__order_aggregates as (\n\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated\n)"}, {"id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "sql": " __dbt__cte__int_shopify__discounts__abandoned_checkouts as (\n\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["discounts_unique_key"], "time_spine": null}, "model.shopify.shopify__order_lines": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_lines", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__order_lines.sql", "original_file_path": "models/rest/shopify__order_lines.sql", "unique_id": "model.shopify.shopify__order_lines", "fqn": ["shopify", "rest", "shopify__order_lines"], "alias": "shopify__order_lines", "checksum": {"name": "sha256", "checksum": "4bea1545ae004b8d366bcf551eead0be215407510cf95a048869e1346d111116"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a line item of an order in Shopify.", "columns": {"order_lines_unique_key": {"name": "order_lines_unique_key", "description": "Unique key representing an order line. Hashed on 'order_line_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_shipping_required": {"name": "is_shipping_required", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_taxable": {"name": "is_taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_quantity": {"name": "refunded_quantity", "description": "Quantity of the item that has been refunded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_net_refunds": {"name": "quantity_net_refunds", "description": "Quantity ordered, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_barcode": {"name": "variant_barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_compare_at_price": {"name": "variant_compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_created_at": {"name": "variant_created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_fulfillment_service": {"name": "variant_fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_grams": {"name": "variant_grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique numeric identifier for a product variant's media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_policy": {"name": "variant_inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_quantity": {"name": "variant_inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_1": {"name": "variant_option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_2": {"name": "variant_option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_option_3": {"name": "variant_option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_position": {"name": "variant_position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_price": {"name": "variant_price", "description": "The price of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sku": {"name": "variant_sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_taxable": {"name": "variant_is_taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_tax_code": {"name": "variant_tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_updated_at": {"name": "variant_updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight": {"name": "variant_weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_weight_unit": {"name": "variant_weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_is_available_for_sale": {"name": "variant_is_available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_display_name": {"name": "variant_display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_legacy_resource_id": {"name": "variant_legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_has_components_required": {"name": "variant_has_components_required", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_sellable_online_quantity": {"name": "variant_sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refunded_subtotal": {"name": "refunded_subtotal", "description": "Subtotal amount of the refund applied to the order line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_net_refunds": {"name": "subtotal_net_refunds", "description": "Subtotal of the order line with refunds subtracted in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_types": {"name": "restock_types", "description": "List of how this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_tax": {"name": "order_line_tax", "description": "Total taxes for the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The total pre tax price of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.9543924, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_lines\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'order_line_id']) }} as order_lines_unique_key\n from {{ var('shopify_order_line') }}\n\n), product_variants as (\n\n select *\n from {{ var('shopify_product_variant') }}\n\n), refunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), \n\n{% if var('shopify_using_product_variant_media', False) %}\nproduct_variant_media as (\n\n select *\n from {{ var('shopify_product_variant_media') }}\n),\n{% endif %}\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n {{ fivetran_utils.string_agg(\"distinct cast(refunds.restock_type as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from {{ var('shopify_tax_line')}}\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n {% if var('shopify_using_product_variant_media', False) %}\n product_variant_media.media_id,\n {% endif %}\n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n {% if var('shopify_using_product_variant_media', False) %}\n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n {% endif %}\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}, {"name": "stg_shopify__product_variant_media", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_string", "macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__order_lines.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(order_line_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as order_lines_unique_key\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), product_variants as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n\n), refunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), \n\n\nproduct_variant_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\n),\n\n\nrefunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal,\n \n string_agg(distinct cast(refunds.restock_type as TEXT), ', ')\n\n as restock_types\n from refunds\n group by 1,2\n\n), tax_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), tax_lines_aggregated as (\n\n select\n tax_lines.order_line_id,\n tax_lines.source_relation,\n sum(tax_lines.price) as order_line_tax\n\n from tax_lines\n group by 1,2\n\n), joined as (\n\n select\n order_lines.*,\n \n refunds_aggregated.restock_types,\n\n coalesce(refunds_aggregated.quantity,0) as refunded_quantity,\n coalesce(refunds_aggregated.subtotal,0) as refunded_subtotal,\n order_lines.quantity - coalesce(refunds_aggregated.quantity,0) as quantity_net_refunds,\n order_lines.pre_tax_price - coalesce(refunds_aggregated.subtotal,0) as subtotal_net_refunds,\n \n product_variants.created_timestamp as variant_created_at,\n product_variants.updated_timestamp as variant_updated_at,\n product_variants.inventory_item_id,\n\n \n product_variant_media.media_id,\n \n\n product_variants.price as variant_price,\n product_variants.sku as variant_sku,\n product_variants.position as variant_position,\n product_variants.inventory_policy as variant_inventory_policy,\n product_variants.compare_at_price as variant_compare_at_price,\n product_variants.fulfillment_service as variant_fulfillment_service,\n\n product_variants.is_taxable as variant_is_taxable,\n product_variants.barcode as variant_barcode,\n product_variants.grams as variant_grams,\n product_variants.inventory_quantity as variant_inventory_quantity,\n product_variants.weight as variant_weight,\n product_variants.weight_unit as variant_weight_unit,\n product_variants.option_1 as variant_option_1,\n product_variants.option_2 as variant_option_2,\n product_variants.option_3 as variant_option_3,\n product_variants.tax_code as variant_tax_code,\n product_variants.is_available_for_sale as variant_is_available_for_sale,\n product_variants.display_name as variant_display_name,\n product_variants.legacy_resource_id as variant_legacy_resource_id,\n product_variants.has_components_required as variant_has_components_required,\n product_variants.sellable_online_quantity as variant_sellable_online_quantity,\n\n tax_lines_aggregated.order_line_tax\n\n from order_lines\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n left join product_variants\n on product_variants.variant_id = order_lines.variant_id\n and product_variants.source_relation = order_lines.source_relation\n left join tax_lines_aggregated\n on tax_lines_aggregated.order_line_id = order_lines.order_line_id\n and tax_lines_aggregated.source_relation = order_lines.source_relation\n\n \n left join product_variant_media\n on product_variant_media.product_variant_id = product_variants.variant_id\n and product_variant_media.source_relation = product_variants.source_relation\n \n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["order_lines_unique_key"], "time_spine": null}, "model.shopify.shopify__transactions": {"database": "postgres", "schema": "public_shopify", "name": "shopify__transactions", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__transactions.sql", "original_file_path": "models/rest/shopify__transactions.sql", "unique_id": "model.shopify.shopify__transactions", "fqn": ["shopify", "rest", "shopify__transactions"], "alias": "shopify__transactions", "checksum": {"name": "sha256", "checksum": "4c15f502fa243723bce0834561afdefee97a2ca1dee9e4bebadad7e2e2f42c1a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a transaction in Shopify.", "columns": {"transactions_unique_id": {"name": "transactions_unique_id", "description": "Unique key representing a transaction. Hashed on 'transaction_id' and 'source_relation'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_id": {"name": "transaction_id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_timestamp": {"name": "processed_timestamp", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of the date the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "exchange_rate": {"name": "exchange_rate", "description": "The exchange rate between the home currency and the currency of sale at the time of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_calculated_amount": {"name": "currency_exchange_calculated_amount", "description": "The total amount of the transaction with the currency exchange rate applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Method of payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_created_timestamp": {"name": "parent_created_timestamp", "description": "Created on timestamp of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_kind": {"name": "parent_kind", "description": "Kind of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_amount": {"name": "parent_amount", "description": "Amount of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_status": {"name": "parent_status", "description": "Status of the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "Timestamp when the authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.9570718, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__transactions\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith transactions as (\n select \n *,\n {{ dbt_utils.generate_surrogate_key(['source_relation', 'transaction_id'])}} as transactions_unique_id\n from {{ var('shopify_transaction') }} \n\n), tender_transactions as (\n\n select *\n from {{ var('shopify_tender_transaction') }}\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) as exchange_rate,\n coalesce(cast(nullif({{ fivetran_utils.json_parse(\"receipt\",[\"charges\",\"data\",0,\"balance_transaction\",\"exchange_rate\"]) }}, '') as {{ dbt.type_numeric() }} ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.json_parse", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__transactions.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select \n *,\n md5(cast(coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as transactions_unique_id\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\" \n\n), tender_transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\n\n), joined as (\n select \n transactions.*,\n tender_transactions.payment_method,\n parent_transactions.created_timestamp as parent_created_timestamp,\n parent_transactions.kind as parent_kind,\n parent_transactions.amount as parent_amount,\n parent_transactions.status as parent_status\n from transactions\n left join tender_transactions\n on transactions.transaction_id = tender_transactions.transaction_id\n and transactions.source_relation = tender_transactions.source_relation\n left join transactions as parent_transactions\n on transactions.parent_id = parent_transactions.transaction_id\n and transactions.source_relation = parent_transactions.source_relation\n\n), exchange_rate as (\n\n select\n *,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) as exchange_rate,\n coalesce(cast(nullif(\n\n receipt::json #>> '{charges,data,0,balance_transaction,exchange_rate}'\n\n, '') as numeric(28,6) ),1) * amount as currency_exchange_calculated_amount\n from joined\n\n)\n\nselect *\nfrom exchange_rate", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": ["transactions_unique_id"], "time_spine": null}, "model.shopify.shopify__products": {"database": "postgres", "schema": "public_shopify", "name": "shopify__products", "resource_type": "model", "package_name": "shopify", "path": "rest/shopify__products.sql", "original_file_path": "models/rest/shopify__products.sql", "unique_id": "model.shopify.shopify__products", "fqn": ["shopify", "rest", "shopify__products"], "alias": "shopify__products", "checksum": {"name": "sha256", "checksum": "cfa6ebbb138e82d7287894a9ab6ea7d2ae5511199880dd0650bea0aeaf4f09a8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Each record represents a product in Shopify.", "columns": {"is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_timestamp": {"name": "created_timestamp", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_timestamp": {"name": "published_timestamp", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity_sold": {"name": "total_quantity_sold", "description": "Quantity of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold": {"name": "subtotal_sold", "description": "Total amount (in shop currency) of the product sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity_sold_net_refunds": {"name": "quantity_sold_net_refunds", "description": "Quantity of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_sold_net_refunds": {"name": "subtotal_sold_net_refunds", "description": "Total amount (in shop currency) of the product sold, excluding refunds.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_order_timestamp": {"name": "first_order_timestamp", "description": "The timestamp the product was first ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "most_recent_order_timestamp": {"name": "most_recent_order_timestamp", "description": "The timestamp the product was most recently ordered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The schema or database this record came from, if you are unioning multiple connectors. Null if not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_quantity_per_order_line": {"name": "avg_quantity_per_order_line", "description": "Average quantity per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_discount": {"name": "product_total_discount", "description": "Total discounts associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_discount_per_order_line": {"name": "product_avg_discount_per_order_line", "description": "Average discount per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_total_tax": {"name": "product_total_tax", "description": "Total taxes associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_avg_tax_per_order_line": {"name": "product_avg_tax_per_order_line", "description": "Average taxes per order line with this product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "count_variants": {"name": "count_variants", "description": "Count of product variants.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_product_media": {"name": "has_product_media", "description": "If the product has media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collections": {"name": "collections", "description": "Comma-separated list of collections associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tags": {"name": "tags", "description": "Comma-separated list of tags associated with the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/shopify.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005802.949235, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__products\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith products as (\n\n select *\n from {{ ref('int_shopify__products_with_aggregates') }}\n\n), product_order_lines as (\n\n select *\n from {{ ref('int_shopify__product__order_line_aggregates')}}\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_shopify__products_with_aggregates", "package": null, "version": null}, {"name": "int_shopify__product__order_line_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.int_shopify__product__order_line_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/shopify__products.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n), __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n), products as (\n\n select *\n from __dbt__cte__int_shopify__products_with_aggregates\n\n), product_order_lines as (\n\n select *\n from __dbt__cte__int_shopify__product__order_line_aggregates\n\n), joined as (\n\n select\n products.*,\n coalesce(product_order_lines.quantity_sold,0) as total_quantity_sold,\n coalesce(product_order_lines.subtotal_sold,0) as subtotal_sold,\n coalesce(product_order_lines.quantity_sold_net_refunds,0) as quantity_sold_net_refunds,\n coalesce(product_order_lines.subtotal_sold_net_refunds,0) as subtotal_sold_net_refunds,\n product_order_lines.first_order_timestamp,\n product_order_lines.most_recent_order_timestamp,\n product_order_lines.avg_quantity_per_order_line as avg_quantity_per_order_line,\n coalesce(product_order_lines.product_total_discount,0) as product_total_discount,\n product_order_lines.product_avg_discount_per_order_line as product_avg_discount_per_order_line,\n coalesce(product_order_lines.product_total_tax,0) as product_total_tax,\n product_order_lines.product_avg_tax_per_order_line as product_avg_tax_per_order_line\n\n from products\n left join product_order_lines\n on products.product_id = product_order_lines.product_id\n and products.source_relation = product_order_lines.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__products_with_aggregates", "sql": " __dbt__cte__int_shopify__products_with_aggregates as (\n\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined\n)"}, {"id": "model.shopify.int_shopify__product__order_line_aggregates", "sql": " __dbt__cte__int_shopify__product__order_line_aggregates as (\n\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__line_item_enhanced": {"database": "postgres", "schema": "public_shopify", "name": "shopify__line_item_enhanced", "resource_type": "model", "package_name": "shopify", "path": "rest/standardized_models/shopify__line_item_enhanced.sql", "original_file_path": "models/rest/standardized_models/shopify__line_item_enhanced.sql", "unique_id": "model.shopify.shopify__line_item_enhanced", "fqn": ["shopify", "rest", "standardized_models", "shopify__line_item_enhanced"], "alias": "shopify__line_item_enhanced", "checksum": {"name": "sha256", "checksum": "b7aba2e3c1eb834a55bcb5174c0e3ad5db1e8699f88d14469d04cbdcbefe0e5c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "This model constructs a comprehensive, denormalized analytical table that enables reporting on key revenue, customer, and product metrics from your billing platform. It\u2019s designed to align with the schema of the `*__line_item_enhanced` model found in Shopify, Recharge, Stripe, Zuora, and Recurly, offering standardized reporting across various billing platforms. To see the kinds of insights this model can generate, explore example visualizations in the [Fivetran Billing Model Streamlit App](https://fivetran-billing-model.streamlit.app/). Visit the app for more details.", "columns": {"header_id": {"name": "header_id", "description": "Id of corresponding order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_id": {"name": "line_item_id", "description": "Order line item id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "line_item_index": {"name": "line_item_index", "description": "Unique index of each line item id for each order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "record_type": {"name": "record_type", "description": "header or line_item", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the order was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "header_status": {"name": "header_status", "description": "Status of the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_type": {"name": "billing_type", "description": "NA for Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "Currency used in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "Product ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_name": {"name": "product_name", "description": "Product name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "Product type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "transaction_type": {"name": "transaction_type", "description": "Transaction type (Charge, Refund, etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of units of this line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_amount": {"name": "unit_amount", "description": "Amount per unit, or the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_amount": {"name": "discount_amount", "description": "The discount amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "The tax amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_amount": {"name": "total_amount", "description": "Order total", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_id": {"name": "payment_id", "description": "Transaction ID", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Transaction gateway for Shopify ('gift card', 'shopify payments', etc)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method_id": {"name": "payment_method_id", "description": "Shopify does not have a particular payment_method_id, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_at": {"name": "payment_at", "description": "Transaction processed timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fee_amount": {"name": "fee_amount", "description": "The total shipping fee associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_amount": {"name": "refund_amount", "description": "Refund amount associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_id": {"name": "subscription_id", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_plan": {"name": "subscription_plan", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_started_at": {"name": "subscription_period_started_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_period_ended_at": {"name": "subscription_period_ended_at", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subscription_status": {"name": "subscription_status", "description": "Shopify does not include subscriptions, therefore all records will be null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "Customer associated with this order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_created_at": {"name": "customer_created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_level": {"name": "customer_level", "description": "Whether 'account' or 'customer'. For Shopify, the level is 'customer'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_name": {"name": "customer_name", "description": "Customer name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_company": {"name": "customer_company", "description": "Associated customer's company noted on the shipping address if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "Customer email", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_city": {"name": "customer_city", "description": "Customer's shipping address city", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_country": {"name": "customer_country", "description": "Customer's shipping address country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The source of the record if the unioning functionality is being used. If not this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/standardized_models/shopify__standardized_models.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005803.023989, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__line_item_enhanced\"", "raw_code": "{{ config(enabled=(var('shopify__standardized_billing_model_enabled', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith line_items as (\n\n select * \n from {{ var('shopify_order_line')}}\n\n), orders as ( \n\n select * \n from {{ var('shopify_order')}}\n\n), product as (\n\n select *\n from {{ var('shopify_product')}}\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n {{ fivetran_utils.string_agg(\"cast (transaction_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} AS transaction_id,\n {{ fivetran_utils.string_agg(\"cast (processed_timestamp as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as processed_timestamp,\n {{ fivetran_utils.string_agg('gateway', \"', '\") }} as gateway\n\n from {{ var('shopify_transaction')}}\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from {{ var('shopify_transaction')}}\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from {{ var('shopify_order_line_refund')}}\n group by 1,2\n\n), customer as (\n\n select *\n from {{ var('shopify_customer')}}\n\n), shipping as (\n\n select * \n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as {{ dbt.type_string() }}) as subscription_id,\n cast(null as {{ dbt.type_string() }}) as subscription_plan,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_started_at,\n cast(null as {{ dbt.type_timestamp() }}) as subscription_period_ended_at,\n cast(null as {{ dbt.type_string() }}) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n {{ dbt.concat([\"c.first_name\", \"''\", \"c.last_name\"]) }} as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as {{ dbt.type_numeric() }}) as line_item_id,\n cast(line_item_index as {{ dbt.type_numeric() }}) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as {{ dbt.type_numeric() }}) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as {{ dbt.type_numeric() }}) as quantity,\n cast(unit_amount as {{ dbt.type_numeric() }}) as unit_amount,\n cast(null as {{ dbt.type_numeric() }}) as discount_amount,\n cast(null as {{ dbt.type_numeric() }}) as tax_amount,\n cast(total_amount as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as {{ dbt.type_numeric() }}) as fee_amount,\n cast(null as {{ dbt.type_numeric() }}) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as {{ dbt.type_numeric() }}) as line_item_id,\n cast(0 as {{ dbt.type_numeric() }}) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as {{ dbt.type_numeric() }}) as product_id,\n cast(null as {{ dbt.type_string() }}) as product_name,\n transaction_type,\n billing_type,\n cast(null as {{ dbt.type_string() }}) as product_type,\n cast(null as {{ dbt.type_numeric() }}) as quantity,\n cast(null as {{ dbt.type_numeric() }}) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as {{ dbt.type_numeric() }}) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__transaction", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.dbt.type_timestamp", "macro.dbt.concat", "macro.dbt.type_numeric"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__customer", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/standardized_models/shopify__line_item_enhanced.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), line_items as (\n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), orders as ( \n\n select * \n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n\n), transactions as (\n\n select\n order_id,\n kind, \n source_relation,\n \n string_agg(cast (transaction_id as TEXT), ', ')\n\n AS transaction_id,\n \n string_agg(cast (processed_timestamp as TEXT), ', ')\n\n as processed_timestamp,\n \n string_agg(gateway, ', ')\n\n as gateway\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'capture'\n and status = 'success'\n group by 1,2,3\n\n), refund_transactions as (\n\n select\n order_id,\n source_relation,\n sum(amount) as total_order_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__transaction\"\n where kind = 'refund' \n group by 1,2\n\n), order_line_refund as ( -- There is a unique row for each individual item. So if quantity = 4 of 1 line item, then each has its own row\n\n select\n order_line_id,\n source_relation,\n sum(subtotal + total_tax) as total_refund_amount\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n group by 1,2\n\n), customer as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n\n), shipping as (\n\n select * \n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), enhanced as (\n\n select\n li.order_id as header_id,\n li.order_line_id as line_item_id,\n li.index as line_item_index,\n o.created_timestamp as created_at,\n o.currency as currency,\n o.fulfillment_status as header_status,\n li.product_id as product_id,\n p.title as product_name,\n t.kind as transaction_type,\n null as billing_type,\n p.product_type as product_type,\n li.quantity as quantity,\n li.price as unit_amount,\n o.total_discounts as discount_amount,\n o.total_tax as tax_amount,\n (li.quantity * li.price) as total_amount, \n t.transaction_id as payment_id,\n null as payment_method_id,\n t.gateway as payment_method, -- payment_method in tender_transaction can be something like 'apply_pay', where gateway is like 'gift card' or 'shopify payments' which I think is more relevant here\n t.processed_timestamp as payment_at,\n shipping.discounted_shipping_price + shipping.shipping_tax as fee_amount,\n rt.total_order_refund_amount as refund_amount,\n cast(null as TEXT) as subscription_id,\n cast(null as TEXT) as subscription_plan,\n cast(null as timestamp) as subscription_period_started_at,\n cast(null as timestamp) as subscription_period_ended_at,\n cast(null as TEXT) as subscription_status,\n o.customer_id,\n c.created_timestamp as customer_created_at,\n 'customer' as customer_level,\n c.first_name || '' || c.last_name as customer_name,\n o.shipping_address_company as customer_company,\n o.email as customer_email,\n o.shipping_address_city as customer_city,\n o.shipping_address_country as customer_country,\n li.source_relation\n from line_items li\n left join orders o\n on li.order_id = o.order_id\n and li.source_relation = o.source_relation\n left join transactions t\n on o.order_id = t.order_id\n and o.source_relation = t.source_relation\n left join refund_transactions rt\n on o.order_id = rt.order_id\n and o.source_relation = rt.source_relation\n left join product p \n on li.product_id = p.product_id\n and li.source_relation = p.source_relation\n left join customer c\n on o.customer_id = c.customer_id\n and o.source_relation = c.source_relation\n left join shipping\n on o.order_id = shipping.order_id\n and o.source_relation = shipping.source_relation\n \n), final as (\n\n select \n header_id,\n cast(line_item_id as numeric(28,6)) as line_item_id,\n cast(line_item_index as numeric(28,6)) as line_item_index,\n 'line_item' as record_type,\n created_at,\n currency,\n header_status,\n cast(product_id as numeric(28,6)) as product_id,\n product_name,\n transaction_type,\n billing_type,\n product_type,\n cast(quantity as numeric(28,6)) as quantity,\n cast(unit_amount as numeric(28,6)) as unit_amount,\n cast(null as numeric(28,6)) as discount_amount,\n cast(null as numeric(28,6)) as tax_amount,\n cast(total_amount as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n cast(null as numeric(28,6)) as fee_amount,\n cast(null as numeric(28,6)) as refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n\n union all\n\n select \n header_id,\n cast(null as numeric(28,6)) as line_item_id,\n cast(0 as numeric(28,6)) as line_item_index,\n 'header' as record_type,\n created_at,\n currency,\n header_status,\n cast(null as numeric(28,6)) as product_id,\n cast(null as TEXT) as product_name,\n transaction_type,\n billing_type,\n cast(null as TEXT) as product_type,\n cast(null as numeric(28,6)) as quantity,\n cast(null as numeric(28,6)) as unit_amount,\n discount_amount,\n tax_amount,\n cast(null as numeric(28,6)) as total_amount,\n payment_id,\n payment_method_id,\n payment_method,\n payment_at,\n fee_amount,\n refund_amount,\n subscription_id,\n subscription_plan,\n subscription_period_started_at,\n subscription_period_ended_at,\n subscription_status,\n customer_id,\n customer_created_at,\n customer_level,\n customer_name,\n customer_company,\n customer_email,\n customer_city,\n customer_country,\n source_relation\n from enhanced\n where line_item_index = 1 -- filter to just one arbitrary record\n\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__daily_fulfillment": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_fulfillment", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_fulfillment.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_fulfillment.sql", "unique_id": "model.shopify.int_shopify__daily_fulfillment", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_fulfillment"], "alias": "int_shopify__daily_fulfillment", "checksum": {"name": "sha256", "checksum": "5d07c22ba6468bebf18c3be8c5d123914dc91b33eb036c4bc75feb1bd4f7529c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005801.2713602, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_fulfillment_event', false) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith fulfillment_event as (\n\n select *\n from {{ var('shopify_fulfillment_event') }}\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day\n\n {% for status in ['attempted_delivery', 'delayed', 'delivered', 'failure', 'in_transit', 'out_for_delivery', 'ready_for_pickup', 'picked_up', 'label_printed', 'label_purchased', 'confirmed']%}\n , count(distinct case when lower(status) = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__fulfillment_event"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_fulfillment.sql", "compiled": true, "compiled_code": "\n\nwith fulfillment_event as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment_event\"\n),\n\nfulfillment_aggregates as (\n\n select \n source_relation,\n cast(date_trunc('day', happened_at) as date) as date_day\n\n \n , count(distinct case when lower(status) = 'attempted_delivery' then fulfillment_id end) as count_fulfillment_attempted_delivery\n \n , count(distinct case when lower(status) = 'delayed' then fulfillment_id end) as count_fulfillment_delayed\n \n , count(distinct case when lower(status) = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n \n , count(distinct case when lower(status) = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n , count(distinct case when lower(status) = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit\n \n , count(distinct case when lower(status) = 'out_for_delivery' then fulfillment_id end) as count_fulfillment_out_for_delivery\n \n , count(distinct case when lower(status) = 'ready_for_pickup' then fulfillment_id end) as count_fulfillment_ready_for_pickup\n \n , count(distinct case when lower(status) = 'picked_up' then fulfillment_id end) as count_fulfillment_picked_up\n \n , count(distinct case when lower(status) = 'label_printed' then fulfillment_id end) as count_fulfillment_label_printed\n \n , count(distinct case when lower(status) = 'label_purchased' then fulfillment_id end) as count_fulfillment_label_purchased\n \n , count(distinct case when lower(status) = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed\n \n \n from fulfillment_event\n group by 1,2\n\n)\n\nselect *\nfrom fulfillment_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customers__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customers__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__customers__order_aggregates.sql", "original_file_path": "models/rest/intermediate/shopify__customers__order_aggregates.sql", "unique_id": "model.shopify.shopify__customers__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "shopify__customers__order_aggregates"], "alias": "shopify__customers__order_aggregates", "checksum": {"name": "sha256", "checksum": "e1af84adc51e48a677e22660a99ca8e7d48ee8fabc49c0b4505c8fc1c7233264"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005803.0246296, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_order') }}\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n {{ dbt_utils.group_by(n=2) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__customers__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where customer_id is not null\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), aggregated as (\n\n select\n orders.customer_id,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n\n from orders\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n \n group by 1,2\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__products_with_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__products_with_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__products_with_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__products_with_aggregates.sql", "unique_id": "model.shopify.int_shopify__products_with_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__products_with_aggregates"], "alias": "int_shopify__products_with_aggregates", "checksum": {"name": "sha256", "checksum": "f76affed4b8f7e1cbce3598d02d4114978ee18b9e5b4583720285c3c7c19750d"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005803.029256, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith products as (\n\n select *\n from {{ var('shopify_product') }}\n), \n\ncollection_product as (\n\n select *\n from {{ var('shopify_collection_product') }}\n),\n\ncollection as (\n\n select *\n from {{ var('shopify_collection') }}\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from {{ var('shopify_product_tag') }}\n),\n\nproduct_variant as (\n\n select *\n from {{ var('shopify_product_variant') }}\n), \n\nproduct_media as (\n\n select *\n from {{ var('shopify_product_media') }}\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='collection.title', delimiter=\"', '\") }} as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n {{ fivetran_utils.string_agg(field_to_agg='value', delimiter=\"', '\") }} as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__collection_product", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__product_tag", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__products_with_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith products as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n), \n\ncollection_product as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\n),\n\ncollection as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n where not coalesce(is_deleted, false) -- limit to only active collections\n),\n\nproduct_tag as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\n),\n\nproduct_variant as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n), \n\nproduct_media as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\n),\n\ncollections_aggregated as (\n\n select\n collection_product.product_id,\n collection_product.source_relation,\n \n string_agg(collection.title, ', ')\n\n as collections\n from collection_product \n join collection \n on collection_product.collection_id = collection.collection_id\n and collection_product.source_relation = collection.source_relation\n group by 1,2\n),\n\ntags_aggregated as (\n\n select \n product_id,\n source_relation,\n \n string_agg(value, ', ')\n\n as tags\n \n from product_tag\n group by 1,2\n),\n\nvariants_aggregated as (\n\n select \n product_id,\n source_relation,\n count(variant_id) as count_variants\n\n from product_variant\n group by 1,2\n\n),\n\nmedia_aggregated as (\n\n select \n product_id,\n source_relation,\n count(distinct media_id) as count_media\n from product_media\n group by 1,2\n), \n\njoined as (\n\n select\n products.*,\n collections_aggregated.collections,\n tags_aggregated.tags,\n variants_aggregated.count_variants,\n coalesce(media_aggregated.count_media, 0) > 0 as has_product_media\n\n from products\n left join collections_aggregated\n on products.product_id = collections_aggregated.product_id\n and products.source_relation = collections_aggregated.source_relation\n left join tags_aggregated\n on products.product_id = tags_aggregated.product_id\n and products.source_relation = tags_aggregated.source_relation\n left join variants_aggregated\n on products.product_id = variants_aggregated.product_id\n and products.source_relation = variants_aggregated.source_relation\n left join media_aggregated\n on products.product_id = media_aggregated.product_id\n and products.source_relation = media_aggregated.source_relation\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__customer_email_rollup": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__customer_email_rollup", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__customer_email_rollup.sql", "original_file_path": "models/rest/intermediate/int_shopify__customer_email_rollup.sql", "unique_id": "model.shopify.int_shopify__customer_email_rollup", "fqn": ["shopify", "rest", "intermediate", "int_shopify__customer_email_rollup"], "alias": "int_shopify__customer_email_rollup", "checksum": {"name": "sha256", "checksum": "37f30d45093b6c1ed887121ee7e4b1ff6dafc2f9353024e4255b86946a64b431"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": true}, "created_at": 1757005803.0265028, "relation_name": "\"postgres\".\"public_shopify\".\"int_shopify__customer_email_rollup\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by {{ shopify.shopify_partition_by_cols('email', 'source_relation') }}\n order by created_timestamp desc) \n as customer_index\n\n from {{ var('shopify_customer') }}\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from {{ var('shopify_customer_tag' )}}\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n {{ fivetran_utils.string_agg(\"distinct cast(customers.customer_id as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_ids,\n {{ fivetran_utils.string_agg(\"distinct cast(customers.phone as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as phone_numbers,\n {{ fivetran_utils.string_agg(\"distinct cast(customer_tags.value as \" ~ dbt.type_string() ~ \")\", \"', '\") }} as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n {{ fivetran_utils.max_bool(\"case when customers.customer_index = 1 then customers.is_tax_exempt else null end\") }} as is_tax_exempt, -- since this changes every year\n {{ fivetran_utils.max_bool(\"customers.is_verified_email\") }} as is_verified_email\n\n -- for all other fields, just take the latest value\n {% set cols = adapter.get_columns_in_relation(ref('stg_shopify__customer')) %}\n {% set except_cols = ['_fivetran_synced', 'email', 'source_relation', 'customer_id', 'phone', 'created_at', \n 'marketing_consent_updated_at', 'orders_count', 'total_spent', 'created_timestamp', 'updated_timestamp',\n 'is_tax_exempt', 'is_verified_email'] %}\n {% for col in cols %}\n {% if col.column|lower not in except_cols %}\n , max(case when customers.customer_index = 1 then customers.{{ col.column }} else null end) as {{ col.column }}\n {% endif %}\n {% endfor %}\n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer_tag", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.shopify_partition_by_cols", "macro.dbt.type_string", "macro.fivetran_utils.string_agg", "macro.fivetran_utils.max_bool"], "nodes": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__customer_email_rollup.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select \n *,\n row_number() over(\n partition by \n\n\n email\n\n\n order by created_timestamp desc) \n as customer_index\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null -- nonsensical to include any null emails here\n\n), customer_tags as (\n\n select \n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\n\n), rollup_customers as (\n\n select\n -- fields to group by\n lower(customers.email) as email,\n customers.source_relation,\n\n -- fields to string agg together\n \n string_agg(distinct cast(customers.customer_id as TEXT), ', ')\n\n as customer_ids,\n \n string_agg(distinct cast(customers.phone as TEXT), ', ')\n\n as phone_numbers,\n \n string_agg(distinct cast(customer_tags.value as TEXT), ', ')\n\n as customer_tags,\n\n -- fields to take aggregates of\n min(customers.created_timestamp) as first_account_created_at,\n max(customers.created_timestamp) as last_account_created_at,\n max(customers.updated_timestamp) as last_updated_at,\n max(customers.marketing_consent_updated_at) as marketing_consent_updated_at,\n max(customers._fivetran_synced) as last_fivetran_synced,\n\n -- take true if ever given for boolean fields\n \n\n bool_or( case when customers.customer_index = 1 then customers.is_tax_exempt else null end )\n\n as is_tax_exempt, -- since this changes every year\n \n\n bool_or( customers.is_verified_email )\n\n as is_verified_email\n\n -- for all other fields, just take the latest value\n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.first_name else null end) as first_name\n \n \n \n , max(case when customers.customer_index = 1 then customers.last_name else null end) as last_name\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.default_address_id else null end) as default_address_id\n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.account_state else null end) as account_state\n \n \n \n \n \n \n \n \n \n , max(case when customers.customer_index = 1 then customers.note else null end) as note\n \n \n \n , max(case when customers.customer_index = 1 then customers.currency else null end) as currency\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_consent_state else null end) as marketing_consent_state\n \n \n \n , max(case when customers.customer_index = 1 then customers.marketing_opt_in_level else null end) as marketing_opt_in_level\n \n \n \n \n \n \n \n \n \n \n \n \n\n from customers \n left join customer_tags\n on customers.customer_id = customer_tags.customer_id\n and customers.source_relation = customer_tags.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom rollup_customers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__orders__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__orders__order_line_aggregates.sql", "original_file_path": "models/rest/intermediate/shopify__orders__order_line_aggregates.sql", "unique_id": "model.shopify.shopify__orders__order_line_aggregates", "fqn": ["shopify", "rest", "intermediate", "shopify__orders__order_line_aggregates"], "alias": "shopify__orders__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "dc06ee54fe54de8c7cd7a17fc15bb4ab1331d5d1f7ea6b71aabce4a6d9cc3a3f"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005803.0251017, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"", "raw_code": "{{ config(materialized='table', enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_line as (\n\n select *\n from {{ var('shopify_order_line') }}\n\n), tax as (\n\n select\n *\n from {{ var('shopify_tax_line') }}\n\n), shipping as (\n\n select\n *\n from {{ ref('int_shopify__order__shipping_aggregates')}}\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__tax_line", "package": null, "version": null}, {"name": "int_shopify__order__shipping_aggregates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line", "model.shopify.int_shopify__order__shipping_aggregates"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__orders__order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n), order_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n\n), tax as (\n\n select\n *\n from \"postgres\".\"public_shopify\".\"stg_shopify__tax_line\"\n\n), shipping as (\n\n select\n *\n from __dbt__cte__int_shopify__order__shipping_aggregates\n\n), tax_aggregates as (\n\n select\n order_line_id,\n source_relation,\n sum(price) as price\n\n from tax\n group by 1,2\n\n), order_line_aggregates as (\n\n select \n order_line.order_id,\n order_line.source_relation,\n count(*) as line_item_count,\n sum(order_line.quantity) as order_total_quantity,\n sum(tax_aggregates.price) as order_total_tax,\n sum(order_line.total_discount) as order_total_discount\n\n from order_line\n left join tax_aggregates\n on tax_aggregates.order_line_id = order_line.order_line_id\n and tax_aggregates.source_relation = order_line.source_relation\n group by 1,2\n\n), final as (\n\n select\n order_line_aggregates.order_id,\n order_line_aggregates.source_relation,\n order_line_aggregates.line_item_count,\n order_line_aggregates.order_total_quantity,\n order_line_aggregates.order_total_tax,\n order_line_aggregates.order_total_discount,\n shipping.shipping_price as order_total_shipping,\n shipping.discounted_shipping_price as order_total_shipping_with_discounts,\n shipping.shipping_tax as order_total_shipping_tax\n\n from order_line_aggregates\n left join shipping\n on shipping.order_id = order_line_aggregates.order_id\n and shipping.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.int_shopify__order__shipping_aggregates", "sql": " __dbt__cte__int_shopify__order__shipping_aggregates as (\n\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__daily_abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__daily_abandoned_checkouts", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_abandoned_checkouts"], "alias": "int_shopify__daily_abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "3ed79baa28d3b9160647ad92b70096d29c4bffe408b4d69e2fcd790e124f9074"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005801.32968, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_at') }} as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_at) as date) as date_day,\n count(distinct checkout_id) as count_abandoned_checkouts,\n count(distinct customer_id) as count_customers_abandoned_checkout,\n count(distinct email) as count_customer_emails_abandoned_checkout\n\n from abandoned_checkout\n group by 1,2\n)\n\nselect * \nfrom abandoned_checkout_aggregates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discount_code_enriched": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discount_code_enriched", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discount_code_enriched.sql", "original_file_path": "models/rest/intermediate/int_shopify__discount_code_enriched.sql", "unique_id": "model.shopify.int_shopify__discount_code_enriched", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discount_code_enriched"], "alias": "int_shopify__discount_code_enriched", "checksum": {"name": "sha256", "checksum": "bcf513cc78532e595d895f3b33240d906515eaf4979369990586897a7bb64e84"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005801.3393817, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith discount_redeem_codes as (\n \n select *\n from {{ var('shopify_discount_redeem_code') }}\n),\n\ndiscount_applications as (\n\n select *\n from {{ var('shopify_discount_application') }}\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_basic') }}\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_bxgy') }}\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_free_shipping') }}\n\n {% if var('shopify_using_discount_code_app', False) %}\n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from {{ var('shopify_discount_code_app') }}\n {% endif %}\n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_application", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code", "model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discount_code_enriched.sql", "compiled": true, "compiled_code": "\n\nwith discount_redeem_codes as (\n \n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\n),\n\ndiscount_applications as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\n),\n\nunified_discount_codes as (\n\n select\n discount_code_id,\n 'basic' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\n\n union all\n \n select\n discount_code_id,\n 'bxgy' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\n\n union all\n \n select\n discount_code_id,\n 'free_shipping' as discount_type, \n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at, \n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\n\n \n \n union all\n\n select \n discount_code_id,\n 'app' as discount_type,\n applies_once_per_customer,\n usage_count,\n codes_count,\n codes_precision,\n combines_with_order_discounts,\n combines_with_product_discounts,\n combines_with_shipping_discounts,\n created_at,\n customer_selection_all_customers,\n ends_at,\n starts_at,\n status,\n title,\n total_sales_amount,\n total_sales_currency_code,\n updated_at,\n usage_limit,\n source_relation\n from \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\n \n),\n\ndiscounts_with_codes as (\n\n select\n discount_redeem_codes.code,\n unified_discount_codes.*\n from unified_discount_codes \n left join discount_redeem_codes \n on unified_discount_codes.discount_code_id = discount_redeem_codes.discount_id\n and unified_discount_codes.source_relation = discount_redeem_codes.source_relation\n),\n\ndiscounts_with_applications as (\n\n select\n discounts_with_codes.*,\n discount_applications.allocation_method,\n discount_applications.description,\n discount_applications.target_selection,\n discount_applications.target_type,\n discount_applications.type as application_type,\n discount_applications.value,\n discount_applications.value_type\n from discounts_with_codes\n left join discount_applications \n on discounts_with_codes.code = discount_applications.code\n and discounts_with_codes.source_relation = discount_applications.source_relation\n)\n\nselect *\nfrom discounts_with_applications", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__emails__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__emails__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__emails__order_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__emails__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__emails__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__emails__order_aggregates"], "alias": "int_shopify__emails__order_aggregates", "checksum": {"name": "sha256", "checksum": "1b106193505d9a5cbf6f64b6fbc51c6eb010151e48da445481c726fc0a5a1f46"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005803.026053, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ var('shopify_order') }}\n\n), order_aggregates as (\n\n select *\n from {{ ref('shopify__orders__order_line_aggregates') }}\n\n), transactions as (\n\n select *\n from {{ ref('shopify__transactions')}}\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n {{ dbt_utils.group_by(n=3) }}\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from {{ var('shopify_customer') }}\n where email is not null\n {{ dbt_utils.group_by(n=3) }}\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_line_aggregates", "package": null, "version": null}, {"name": "shopify__transactions", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__emails__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n\n), order_aggregates as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders__order_line_aggregates\"\n\n), transactions as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__transactions\"\n\n where lower(status) = 'success'\n and lower(kind) not in ('authorization', 'void')\n and lower(gateway) != 'gift_card' -- redeeming a giftcard does not introduce new revenue\n\n), transaction_aggregates as (\n -- this is necessary as customers can pay via multiple payment gateways\n select \n order_id,\n source_relation,\n lower(kind) as kind,\n sum(currency_exchange_calculated_amount) as currency_exchange_calculated_amount\n\n from transactions\n group by 1,2,3\n\n), customer_emails as (\n-- in case any orders records don't have the customer email attached yet\n select \n customer_id, \n source_relation,\n email\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n where email is not null\n group by 1,2,3\n \n), aggregated as (\n\n select\n lower(customer_emails.email) as email,\n orders.source_relation,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n avg(transaction_aggregates.currency_exchange_calculated_amount) as avg_order_value,\n sum(transaction_aggregates.currency_exchange_calculated_amount) as lifetime_total_spent,\n sum(refunds.currency_exchange_calculated_amount) as lifetime_total_refunded,\n count(distinct orders.order_id) as lifetime_count_orders,\n avg(order_aggregates.order_total_quantity) as avg_quantity_per_order,\n sum(order_aggregates.order_total_tax) as lifetime_total_tax,\n avg(order_aggregates.order_total_tax) as avg_tax_per_order,\n sum(order_aggregates.order_total_discount) as lifetime_total_discount,\n avg(order_aggregates.order_total_discount) as avg_discount_per_order,\n sum(order_aggregates.order_total_shipping) as lifetime_total_shipping,\n avg(order_aggregates.order_total_shipping) as avg_shipping_per_order,\n sum(order_aggregates.order_total_shipping_with_discounts) as lifetime_total_shipping_with_discounts,\n avg(order_aggregates.order_total_shipping_with_discounts) as avg_shipping_with_discounts_per_order,\n sum(order_aggregates.order_total_shipping_tax) as lifetime_total_shipping_tax,\n avg(order_aggregates.order_total_shipping_tax) as avg_shipping_tax_per_order\n from orders\n join customer_emails\n on orders.customer_id = customer_emails.customer_id\n and orders.source_relation = customer_emails.source_relation\n left join transaction_aggregates \n on orders.order_id = transaction_aggregates.order_id\n and orders.source_relation = transaction_aggregates.source_relation\n and transaction_aggregates.kind in ('sale','capture')\n left join transaction_aggregates as refunds\n on orders.order_id = refunds.order_id\n and orders.source_relation = refunds.source_relation\n and refunds.kind = 'refund'\n left join order_aggregates\n on orders.order_id = order_aggregates.order_id\n and orders.source_relation = order_aggregates.source_relation\n\n group by 1,2\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__orders__order_refunds": {"database": "postgres", "schema": "public_shopify", "name": "shopify__orders__order_refunds", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/shopify__orders__order_refunds.sql", "original_file_path": "models/rest/intermediate/shopify__orders__order_refunds.sql", "unique_id": "model.shopify.shopify__orders__order_refunds", "fqn": ["shopify", "rest", "intermediate", "shopify__orders__order_refunds"], "alias": "shopify__orders__order_refunds", "checksum": {"name": "sha256", "checksum": "b2779287393dd936f29751f0839d05d36aa9ac1ec21f071744d6d1c3047adc11"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005803.0255818, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith refunds as (\n\n select *\n from {{ var('shopify_refund') }}\n\n), order_line_refunds as (\n\n select *\n from {{ var('shopify_order_line_refund') }}\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__refund", "package": null, "version": null}, {"name": "stg_shopify__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__refund", "model.shopify_source.stg_shopify__order_line_refund"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/shopify__orders__order_refunds.sql", "compiled": true, "compiled_code": "\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__daily_orders": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__daily_orders", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__daily_orders.sql", "original_file_path": "models/rest/intermediate/int_shopify__daily_orders.sql", "unique_id": "model.shopify.int_shopify__daily_orders", "fqn": ["shopify", "rest", "intermediate", "int_shopify__daily_orders"], "alias": "int_shopify__daily_orders", "checksum": {"name": "sha256", "checksum": "f866152e2f91cf3593173286eeb1d4337212bc81a34a1b8550189f69081f69a5"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005801.3695061, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from {{ ref('shopify__order_lines') }}\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast({{ dbt.date_trunc('day','orders.created_timestamp') }} as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.shopify.shopify__orders", "model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__daily_orders.sql", "compiled": true, "compiled_code": "\n\nwith orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n where not coalesce(is_deleted, false)\n),\n\norder_lines as(\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n),\n\norder_aggregates as (\n\n select\n source_relation,\n cast(date_trunc('day', created_timestamp) as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(line_item_count) as count_line_items,\n avg(line_item_count) as avg_line_item_count,\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n sum(order_adjusted_total) as order_adjusted_total,\n avg(order_adjusted_total) as avg_order_value,\n sum(shipping_cost) as shipping_cost,\n sum(order_adjustment_amount) as order_adjustment_amount,\n sum(order_adjustment_tax_amount) as order_adjustment_tax_amount,\n sum(refund_subtotal) as refund_subtotal,\n sum(refund_total_tax) as refund_total_tax,\n sum(total_discounts) as total_discounts,\n avg(total_discounts) as avg_discount,\n sum(shipping_discount_amount) as shipping_discount_amount,\n avg(shipping_discount_amount) as avg_shipping_discount_amount,\n sum(percentage_calc_discount_amount) as percentage_calc_discount_amount,\n avg(percentage_calc_discount_amount) as avg_percentage_calc_discount_amount,\n sum(fixed_amount_discount_amount) as fixed_amount_discount_amount,\n avg(fixed_amount_discount_amount) as avg_fixed_amount_discount_amount,\n sum(count_discount_codes_applied) as count_discount_codes_applied,\n count(distinct location_id) as count_locations_ordered_from,\n sum(case when count_discount_codes_applied > 0 then 1 else 0 end) as count_orders_with_discounts,\n sum(case when refund_subtotal > 0 then 1 else 0 end) as count_orders_with_refunds,\n min(created_timestamp) as first_order_timestamp,\n max(created_timestamp) as last_order_timestamp\n\n from orders\n group by 1,2\n\n),\n\norder_line_aggregates as (\n\n select\n order_lines.source_relation,\n cast(date_trunc('day', orders.created_timestamp) as date) as date_day,\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.refunded_quantity) as quantity_refunded,\n sum(order_lines.quantity_net_refunds) as quantity_net,\n sum(order_lines.quantity) / count(distinct order_lines.order_id) as avg_quantity_sold,\n sum(order_lines.quantity_net_refunds) / count(distinct order_lines.order_id) as avg_quantity_net,\n count(distinct order_lines.variant_id) as count_variants_sold, \n count(distinct order_lines.product_id) as count_products_sold, \n sum(case when order_lines.is_gift_card then order_lines.quantity_net_refunds else 0 end) as quantity_gift_cards_sold,\n sum(case when order_lines.is_shipping_required then order_lines.quantity_net_refunds else 0 end) as quantity_requiring_shipping\n\n from order_lines\n left join orders -- just joining with order to get the created_timestamp\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n\n group by 1,2\n),\n\nfinal as (\n\n select \n order_aggregates.*,\n order_line_aggregates.quantity_sold,\n order_line_aggregates.quantity_refunded,\n order_line_aggregates.quantity_net,\n order_line_aggregates.count_variants_sold,\n order_line_aggregates.count_products_sold,\n order_line_aggregates.quantity_gift_cards_sold,\n order_line_aggregates.quantity_requiring_shipping,\n order_line_aggregates.avg_quantity_sold,\n order_line_aggregates.avg_quantity_net\n\n from order_aggregates\n left join order_line_aggregates\n on order_aggregates.date_day = order_line_aggregates.date_day\n and order_aggregates.source_relation = order_line_aggregates.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__abandoned_checkouts": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__abandoned_checkouts", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "original_file_path": "models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "unique_id": "model.shopify.int_shopify__discounts__abandoned_checkouts", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discounts__abandoned_checkouts"], "alias": "int_shopify__discounts__abandoned_checkouts", "checksum": {"name": "sha256", "checksum": "4db18a80ca151075ad7431fe218c35b61b96196951cf2da104512d277ca94f83"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005803.0278916, "relation_name": null, "raw_code": "{{ config(enabled=(var('shopify_using_abandoned_checkout', True) and var('shopify_api', 'rest') == 'rest')) }}\n\nwith abandoned_checkout as (\n\n select *\n from {{ var('shopify_abandoned_checkout') }}\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from {{ var('shopify_abandoned_checkout_discount_code') }}\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from {{ var('shopify_abandoned_checkout_shipping_line') }}\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}, {"name": "stg_shopify__abandoned_checkout_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discounts__abandoned_checkouts.sql", "compiled": true, "compiled_code": "\n\nwith abandoned_checkout as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\n\n -- \"deleted\" abandoned checkouts do not appear to have any data tying them to customers,\n -- discounts, or products (and should therefore not get joined in) but let's filter them out here\n where not coalesce(is_deleted, false)\n),\n\nabandoned_checkout_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\n\n -- we need the TYPE of discount (shipping, percentage, fixed_amount) to avoid fanning out of joins\n -- so filter out records that have this\n where coalesce(type, '') != ''\n),\n\nabandoned_checkout_shipping_line as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_shipping_line\"\n),\n\nroll_up_shipping_line as (\n\n select \n checkout_id,\n source_relation,\n sum(price) as price\n\n from abandoned_checkout_shipping_line\n group by 1,2\n),\n\nabandoned_checkouts_aggregated as (\n\n select \n abandoned_checkout_discount_code.code,\n abandoned_checkout_discount_code.type,\n abandoned_checkout_discount_code.source_relation,\n sum(abandoned_checkout_discount_code.amount) as total_abandoned_checkout_discount_amount,\n sum(coalesce(abandoned_checkout.total_line_items_price, 0)) as total_abandoned_checkout_line_items_price,\n sum(coalesce(roll_up_shipping_line.price, 0)) as total_abandoned_checkout_shipping_price,\n count(distinct customer_id) as count_abandoned_checkout_customers,\n count(distinct email) as count_abandoned_checkout_customer_emails,\n count(distinct abandoned_checkout.checkout_id) as count_abandoned_checkouts\n\n from abandoned_checkout_discount_code\n left join abandoned_checkout\n on abandoned_checkout_discount_code.checkout_id = abandoned_checkout.checkout_id\n and abandoned_checkout_discount_code.source_relation = abandoned_checkout.source_relation\n left join roll_up_shipping_line\n on roll_up_shipping_line.checkout_id = abandoned_checkout_discount_code.checkout_id \n and roll_up_shipping_line.source_relation = abandoned_checkout_discount_code.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom abandoned_checkouts_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__product__order_line_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__product__order_line_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__product__order_line_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__product__order_line_aggregates.sql", "unique_id": "model.shopify.int_shopify__product__order_line_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__product__order_line_aggregates"], "alias": "int_shopify__product__order_line_aggregates", "checksum": {"name": "sha256", "checksum": "7318e3e5faba66745a27e59d40674690031727a7c2719c8660c8c73a685e3896"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005803.0288086, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select *\n from {{ ref('shopify__order_lines') }}\n\n), orders as (\n\n select *\n from {{ ref('shopify__orders')}}\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__product__order_line_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__order_lines\"\n\n), orders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n\n), product_aggregated as (\n select \n order_lines.product_id,\n order_lines.source_relation,\n\n -- moved over from shopify__products\n sum(order_lines.quantity) as quantity_sold,\n sum(order_lines.pre_tax_price) as subtotal_sold,\n sum(order_lines.quantity_net_refunds) as quantity_sold_net_refunds,\n sum(order_lines.subtotal_net_refunds) as subtotal_sold_net_refunds,\n min(orders.created_timestamp) as first_order_timestamp,\n max(orders.created_timestamp) as most_recent_order_timestamp,\n\n -- new columns\n sum(order_lines.total_discount) as product_total_discount,\n sum(order_lines.order_line_tax) as product_total_tax,\n avg(order_lines.quantity) as avg_quantity_per_order_line,\n avg(order_lines.total_discount) as product_avg_discount_per_order_line,\n avg(order_lines.order_line_tax) as product_avg_tax_per_order_line\n\n from order_lines\n left join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n group by 1,2\n\n)\n\nselect *\nfrom product_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__inventory_level__aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__inventory_level__aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__inventory_level__aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__inventory_level__aggregates.sql", "unique_id": "model.shopify.int_shopify__inventory_level__aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__inventory_level__aggregates"], "alias": "int_shopify__inventory_level__aggregates", "checksum": {"name": "sha256", "checksum": "71c148adee52b31e8a96b36110d93dba3f37be66f265625ca908744297ac0a92"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005803.0269728, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_lines as (\n\n select *\n from {{ var('shopify_order_line') }}\n),\n\nfulfillment as (\n\n select *\n from {{ var('shopify_fulfillment') }}\n),\n\norders as (\n\n select *\n from {{ var('shopify_order') }}\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from {{ ref('shopify__orders__order_refunds') }}\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n {% for status in ['pending', 'open', 'success', 'cancelled', 'error', 'failure'] %}\n , count(distinct case when fulfillment_status = '{{ status }}' then fulfillment_id end) as count_fulfillment_{{ status }}\n {% endfor %}\n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n {{ dbt_utils.group_by(n=3) }}\n)\n\nselect *\nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "stg_shopify__fulfillment", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "shopify__orders__order_refunds", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.group_by"], "nodes": ["model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify.shopify__orders__order_refunds"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__inventory_level__aggregates.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n), order_lines as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line\"\n),\n\nfulfillment as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n where not coalesce(is_deleted, false)\n), \n\nrefunds as (\n\n select *\n from __dbt__cte__shopify__orders__order_refunds\n\n), refunds_aggregated as (\n \n select\n order_line_id,\n source_relation,\n sum(quantity) as quantity,\n sum(coalesce(subtotal, 0)) as subtotal\n\n from refunds\n group by 1,2\n),\n\njoined as (\n\n select\n order_lines.order_line_id,\n order_lines.variant_id,\n order_lines.source_relation,\n fulfillment.location_id, -- location id is stored in fulfillment rather than order\n orders.order_id,\n orders.customer_id,\n fulfillment.fulfillment_id,\n lower(orders.email) as email,\n order_lines.pre_tax_price,\n order_lines.quantity,\n orders.created_timestamp as order_created_timestamp,\n fulfillment.status as fulfillment_status, \n refunds_aggregated.subtotal as subtotal_sold_refunds, \n refunds_aggregated.quantity as quantity_sold_refunds\n\n from order_lines\n join orders\n on order_lines.order_id = orders.order_id\n and order_lines.source_relation = orders.source_relation\n join fulfillment\n on orders.order_id = fulfillment.order_id\n and orders.source_relation = fulfillment.source_relation\n left join refunds_aggregated\n on refunds_aggregated.order_line_id = order_lines.order_line_id\n and refunds_aggregated.source_relation = order_lines.source_relation\n),\n\naggregated as (\n\n select\n variant_id,\n location_id,\n source_relation,\n sum(pre_tax_price) as subtotal_sold,\n sum(quantity) as quantity_sold,\n count(distinct order_id) as count_distinct_orders,\n count(distinct customer_id) as count_distinct_customers,\n count(distinct email) as count_distinct_customer_emails,\n min(order_created_timestamp) as first_order_timestamp,\n max(order_created_timestamp) as last_order_timestamp\n\n \n , count(distinct case when fulfillment_status = 'pending' then fulfillment_id end) as count_fulfillment_pending\n \n , count(distinct case when fulfillment_status = 'open' then fulfillment_id end) as count_fulfillment_open\n \n , count(distinct case when fulfillment_status = 'success' then fulfillment_id end) as count_fulfillment_success\n \n , count(distinct case when fulfillment_status = 'cancelled' then fulfillment_id end) as count_fulfillment_cancelled\n \n , count(distinct case when fulfillment_status = 'error' then fulfillment_id end) as count_fulfillment_error\n \n , count(distinct case when fulfillment_status = 'failure' then fulfillment_id end) as count_fulfillment_failure\n \n\n , sum(coalesce(subtotal_sold_refunds, 0)) as subtotal_sold_refunds\n , sum(coalesce(quantity_sold_refunds, 0)) as quantity_sold_refunds\n\n from joined\n\n group by 1,2,3\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.shopify.shopify__orders__order_refunds", "sql": " __dbt__cte__shopify__orders__order_refunds as (\n\n\nwith refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__refund\"\n\n), order_line_refunds as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_line_refund\"\n \n), refund_join as (\n\n select \n refunds.refund_id,\n refunds.created_at,\n refunds.order_id,\n refunds.user_id,\n refunds.source_relation,\n order_line_refunds.order_line_refund_id,\n order_line_refunds.order_line_id,\n order_line_refunds.restock_type,\n order_line_refunds.quantity,\n order_line_refunds.subtotal,\n order_line_refunds.total_tax\n\n from refunds\n left join order_line_refunds\n on refunds.refund_id = order_line_refunds.refund_id\n and refunds.source_relation = order_line_refunds.source_relation\n\n)\n\nselect *\nfrom refund_join\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__order__shipping_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__order__shipping_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__order__shipping_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__order__shipping_aggregates.sql", "unique_id": "model.shopify.int_shopify__order__shipping_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__order__shipping_aggregates"], "alias": "int_shopify__order__shipping_aggregates", "checksum": {"name": "sha256", "checksum": "0b62dd0d5d3643dd2d497124c55db965c77cbf556e68645f15965bf80f3d3a82"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005803.0283365, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from {{ var('shopify_order_shipping_line') }}\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from {{ var('shopify_order_shipping_tax_line') }}\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}, {"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__order__shipping_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_shipping_line as (\n\n select\n order_id,\n source_relation,\n order_shipping_line_id,\n sum(price) as shipping_price,\n sum(discounted_price) as discounted_shipping_price\n \n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\n group by 1,2,3\n\n), order_shipping_tax_line as (\n\n select\n order_shipping_line_id,\n source_relation,\n sum(price) as shipping_tax\n\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\n group by 1,2 \n\n), aggregated as (\n\n select \n order_shipping_line.order_id,\n order_shipping_line.source_relation,\n sum(order_shipping_line.shipping_price) as shipping_price,\n sum(order_shipping_line.discounted_shipping_price) as discounted_shipping_price,\n sum(order_shipping_tax_line.shipping_tax) as shipping_tax\n\n from order_shipping_line\n left join order_shipping_tax_line\n on order_shipping_line.order_shipping_line_id = order_shipping_tax_line.order_shipping_line_id\n and order_shipping_line.source_relation = order_shipping_tax_line.source_relation\n group by 1,2\n)\n\nselect * \nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.int_shopify__discounts__order_aggregates": {"database": "postgres", "schema": "public_shopify", "name": "int_shopify__discounts__order_aggregates", "resource_type": "model", "package_name": "shopify", "path": "rest/intermediate/int_shopify__discounts__order_aggregates.sql", "original_file_path": "models/rest/intermediate/int_shopify__discounts__order_aggregates.sql", "unique_id": "model.shopify.int_shopify__discounts__order_aggregates", "fqn": ["shopify", "rest", "intermediate", "int_shopify__discounts__order_aggregates"], "alias": "int_shopify__discounts__order_aggregates", "checksum": {"name": "sha256", "checksum": "bf596881f17db03334a269b53a5856d2cddfe92d6bd8dffc26b5b779e874a480"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/intermediate/intermediate.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "ephemeral", "enabled": true}, "created_at": 1757005803.0274234, "relation_name": null, "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest') }}\n\nwith order_discount_code as (\n\n select *\n from {{ var('shopify_order_discount_code') }}\n),\n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.shopify_source.stg_shopify__order_discount_code", "model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/rest/intermediate/int_shopify__discounts__order_aggregates.sql", "compiled": true, "compiled_code": "\n\nwith order_discount_code as (\n\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\n),\n\norders as (\n\n select *\n from \"postgres\".\"public_shopify\".\"shopify__orders\"\n),\n\norders_aggregated as (\n\n select \n order_discount_code.code,\n order_discount_code.type,\n order_discount_code.source_relation,\n avg(order_discount_code.amount) as avg_order_discount_amount,\n sum(order_discount_code.amount) as total_order_discount_amount,\n max(orders.total_line_items_price) as total_order_line_items_price, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.shipping_cost) as total_order_shipping_cost, -- summing would multiply the total by the # of discount codes applied to an order\n max(orders.refund_subtotal + orders.refund_total_tax) as total_order_refund_amount, -- summing would multiply the total by the # of discount codes applied to an order\n count(distinct customer_id) as count_customers,\n count(distinct email) as count_customer_emails,\n count(distinct order_discount_code.order_id) as count_orders\n\n from order_discount_code\n join orders \n on order_discount_code.order_id = orders.order_id \n and order_discount_code.source_relation = orders.source_relation\n\n group by 1,2,3\n)\n\nselect *\nfrom orders_aggregated", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__product_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__product_metafields.sql", "original_file_path": "models/rest/metafields/shopify__product_metafields.sql", "unique_id": "model.shopify.shopify__product_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__product_metafields"], "alias": "shopify__product_metafields", "checksum": {"name": "sha256", "checksum": "4ecabbfee204dd6d41c39d99eafd9e4627db1710831547eaf6b5ecc38ddb012a"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005803.0314884, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product\", \n reference_values = ['product'],\n id_column = \"product_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__product", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__product_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__order_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__order_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__order_metafields.sql", "original_file_path": "models/rest/metafields/shopify__order_metafields.sql", "unique_id": "model.shopify.shopify__order_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__order_metafields"], "alias": "shopify__order_metafields", "checksum": {"name": "sha256", "checksum": "bb661fd29f14623b4e28a900a1a3b19cd679f288fdcc6b2db556b48c38756164"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__order model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005803.03102, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__order_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_order_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__order\", \n reference_values = ['order'],\n id_column = \"order_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__order", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__order_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__order\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_howmany'\n then value\n else null\n end\n )\n \n \n as avengers_howmany\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isinspace'\n then value\n else null\n end\n )\n \n \n as star_wars_isinspace\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_numbersequels'\n then value\n else null\n end\n )\n \n \n as star_wars_numbersequels\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.order_id,\n \n source_table.user_id,\n \n source_table.total_discounts,\n \n source_table.total_discounts_set,\n \n source_table.total_line_items_price,\n \n source_table.total_line_items_price_set,\n \n source_table.total_price,\n \n source_table.total_price_set,\n \n source_table.total_tax_set,\n \n source_table.total_tax,\n \n source_table.source_name,\n \n source_table.subtotal_price,\n \n source_table.has_taxes_included,\n \n source_table.total_weight,\n \n source_table.total_tip_received,\n \n source_table.landing_site_base_url,\n \n source_table.location_id,\n \n source_table.name,\n \n source_table.note,\n \n source_table.number,\n \n source_table.order_number,\n \n source_table.cancel_reason,\n \n source_table.cart_token,\n \n source_table.checkout_token,\n \n source_table.created_timestamp,\n \n source_table.cancelled_timestamp,\n \n source_table.closed_timestamp,\n \n source_table.processed_timestamp,\n \n source_table.updated_timestamp,\n \n source_table.currency,\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.financial_status,\n \n source_table.fulfillment_status,\n \n source_table.referring_site,\n \n source_table.billing_address_address_1,\n \n source_table.billing_address_address_2,\n \n source_table.billing_address_city,\n \n source_table.billing_address_company,\n \n source_table.billing_address_country,\n \n source_table.billing_address_country_code,\n \n source_table.billing_address_first_name,\n \n source_table.billing_address_last_name,\n \n source_table.billing_address_latitude,\n \n source_table.billing_address_longitude,\n \n source_table.billing_address_name,\n \n source_table.billing_address_phone,\n \n source_table.billing_address_province,\n \n source_table.billing_address_province_code,\n \n source_table.billing_address_zip,\n \n source_table.browser_ip,\n \n source_table.total_shipping_price_set,\n \n source_table.shipping_address_address_1,\n \n source_table.shipping_address_address_2,\n \n source_table.shipping_address_city,\n \n source_table.shipping_address_company,\n \n source_table.shipping_address_country,\n \n source_table.shipping_address_country_code,\n \n source_table.shipping_address_first_name,\n \n source_table.shipping_address_last_name,\n \n source_table.shipping_address_latitude,\n \n source_table.shipping_address_longitude,\n \n source_table.shipping_address_name,\n \n source_table.shipping_address_phone,\n \n source_table.shipping_address_province,\n \n source_table.shipping_address_province_code,\n \n source_table.shipping_address_zip,\n \n source_table.token,\n \n source_table.app_id,\n \n source_table.checkout_id,\n \n source_table.client_details_user_agent,\n \n source_table.customer_locale,\n \n source_table.order_status_url,\n \n source_table.presentment_currency,\n \n source_table.is_test_order,\n \n source_table.is_deleted,\n \n source_table.has_buyer_accepted_marketing,\n \n source_table.is_confirmed,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_howmany) as metafield_avengers_howmany\n \n , max(lookup_object.star_wars_isinspace) as metafield_star_wars_isinspace\n \n , max(lookup_object.star_wars_numbersequels) as metafield_star_wars_numbersequels\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.order_id\n and lower(lookup_object.owner_resource) in ('order')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__product_variant_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__product_variant_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__product_variant_metafields.sql", "original_file_path": "models/rest/metafields/shopify__product_variant_metafields.sql", "unique_id": "model.shopify.shopify__product_variant_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__product_variant_metafields"], "alias": "shopify__product_variant_metafields", "checksum": {"name": "sha256", "checksum": "aa2cdc58708d40d191a197a74aaa246cf15f5a6f3d984f70f378309283819367"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__product_variant model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005803.031976, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__product_variant_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_product_variant_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__product_variant\",\n reference_values = ['variant', 'productvariant'],\n id_column = \"variant_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__product_variant", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__product_variant_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__product_variant\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'blade_runner_returnauthorizations'\n then value\n else null\n end\n )\n \n \n as blade_runner_returnauthorizations\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'avengers_wherearethey'\n then value\n else null\n end\n )\n \n \n as avengers_wherearethey\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_wheninspace'\n then value\n else null\n end\n )\n \n \n as star_wars_wheninspace\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.variant_id,\n \n source_table.product_id,\n \n source_table.inventory_item_id,\n \n source_table.title,\n \n source_table.price,\n \n source_table.sku,\n \n source_table.position,\n \n source_table.inventory_policy,\n \n source_table.compare_at_price,\n \n source_table.fulfillment_service,\n \n source_table.inventory_management,\n \n source_table.is_taxable,\n \n source_table.barcode,\n \n source_table.grams,\n \n source_table.inventory_quantity,\n \n source_table.is_available_for_sale,\n \n source_table.display_name,\n \n source_table.legacy_resource_id,\n \n source_table.has_components_required,\n \n source_table.sellable_online_quantity,\n \n source_table.weight,\n \n source_table.weight_unit,\n \n source_table.option_1,\n \n source_table.option_2,\n \n source_table.option_3,\n \n source_table.tax_code,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.blade_runner_returnauthorizations) as metafield_blade_runner_returnauthorizations\n \n , max(lookup_object.avengers_wherearethey) as metafield_avengers_wherearethey\n \n , max(lookup_object.star_wars_wheninspace) as metafield_star_wars_wheninspace\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.variant_id\n and lower(lookup_object.owner_resource) in ('variant', 'productvariant')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__collection_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__collection_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__collection_metafields.sql", "original_file_path": "models/rest/metafields/shopify__collection_metafields.sql", "unique_id": "model.shopify.shopify__collection_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__collection_metafields"], "alias": "shopify__collection_metafields", "checksum": {"name": "sha256", "checksum": "9a0e96e6e6a37a4a6acea599ac4a0e4fec53dbb44e8a29d52c87ed7ac596bbde"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__collection model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005803.0298862, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__collection_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_collection_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__collection\", \n reference_values = ['collection'],\n id_column = \"collection_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__collection", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__collection_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__shop_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__shop_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__shop_metafields.sql", "original_file_path": "models/rest/metafields/shopify__shop_metafields.sql", "unique_id": "model.shopify.shopify__shop_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__shop_metafields"], "alias": "shopify__shop_metafields", "checksum": {"name": "sha256", "checksum": "a6c83b00e994807860ae5fbe8c7766fe0ace4300cfd53c5ba206ea6bf1831f3c"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__shop model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005803.0324354, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__shop_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_shop_metafields', False)) ) }}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__shop\", \n reference_values = ['shop'],\n id_column = \"shop_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__shop", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__shop_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\n)\n\n\n\nselect *\nfrom source_table\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.shopify.shopify__customer_metafields": {"database": "postgres", "schema": "public_shopify", "name": "shopify__customer_metafields", "resource_type": "model", "package_name": "shopify", "path": "rest/metafields/shopify__customer_metafields.sql", "original_file_path": "models/rest/metafields/shopify__customer_metafields.sql", "unique_id": "model.shopify.shopify__customer_metafields", "fqn": ["shopify", "rest", "metafields", "shopify__customer_metafields"], "alias": "shopify__customer_metafields", "checksum": {"name": "sha256", "checksum": "1d183df4efbd1c05e74961913c1e9eda390a0aa59312a8e7914d2e26ac02f0f8"}, "config": {"enabled": true, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Replica of the stg_shopify__customer model with the addition of metafields pivoted out from the stg_shopify__metafield model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify://models/rest/metafields/shopify_metafields.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "table", "enabled": true}, "created_at": 1757005803.030357, "relation_name": "\"postgres\".\"public_shopify\".\"shopify__customer_metafields\"", "raw_code": "{{ config(enabled=var('shopify_api', 'rest') == 'rest' and var('shopify_using_metafield', True) and (var('shopify_using_all_metafields', False) or var('shopify_using_customer_metafields', False)) )}}\n\n{{ shopify.get_metafields( \n source_object = \"stg_shopify__customer\", \n reference_values = ['customer'],\n id_column = \"customer_id\"\n) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__customer", "package": null, "version": null}, {"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify.get_metafields"], "nodes": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__customer"]}, "compiled_path": "target/compiled/shopify/models/rest/metafields/shopify__customer_metafields.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\nwith source_table as (\n select *\n from \"postgres\".\"public_shopify\".\"stg_shopify__customer\"\n)\n\n,\nlookup_object as (\n select \n *,\n \n \n (\n \n case\n when metafield_reference = 'star_wars_firstname'\n then value\n else null\n end\n )\n \n \n as star_wars_firstname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_fullname'\n then value\n else null\n end\n )\n \n \n as star_wars_fullname\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_isjedi'\n then value\n else null\n end\n )\n \n \n as star_wars_isjedi\n \n \n ,\n \n (\n \n case\n when metafield_reference = 'star_wars_lastname'\n then value\n else null\n end\n )\n \n \n as star_wars_lastname\n \n \n \n \n\n from \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\n where is_most_recent_record\n),\n\nfinal as (\n select\n \n source_table.customer_id,\n \n source_table.email,\n \n source_table.first_name,\n \n source_table.last_name,\n \n source_table.orders_count,\n \n source_table.default_address_id,\n \n source_table.phone,\n \n source_table.account_state,\n \n source_table.is_tax_exempt,\n \n source_table.total_spent,\n \n source_table.is_verified_email,\n \n source_table.note,\n \n source_table.currency,\n \n source_table.marketing_consent_state,\n \n source_table.marketing_opt_in_level,\n \n source_table.marketing_consent_updated_at,\n \n source_table.created_timestamp,\n \n source_table.updated_timestamp,\n \n source_table._fivetran_synced,\n \n source_table.source_relation\n \n \n , max(lookup_object.star_wars_firstname) as metafield_star_wars_firstname\n \n , max(lookup_object.star_wars_fullname) as metafield_star_wars_fullname\n \n , max(lookup_object.star_wars_isjedi) as metafield_star_wars_isjedi\n \n , max(lookup_object.star_wars_lastname) as metafield_star_wars_lastname\n \n from source_table\n left join lookup_object \n on lookup_object.owner_resource_id = source_table.customer_id\n and lower(lookup_object.owner_resource) in ('customer')\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20\n)\n\nselect *\nfrom final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_unique_key"], "alias": "unique_stg_shopify_gql__customer_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.1307917, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer", "attached_node": "model.shopify_source.stg_shopify_gql__customer", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_unique_key"], "alias": "not_null_stg_shopify_gql__customer_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.133527, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer", "attached_node": "model.shopify_source.stg_shopify_gql__customer", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_unique_key"], "alias": "unique_stg_shopify_gql__order_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.135993, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order", "attached_node": "model.shopify_source.stg_shopify_gql__order", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_unique_key"], "alias": "not_null_stg_shopify_gql__order_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.138389, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order", "attached_node": "model.shopify_source.stg_shopify_gql__order", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_line_unique_key"], "alias": "unique_stg_shopify_gql__order_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.1408381, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.1434035, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__abandoned_checkout_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__abandoned_checkout_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__abandoned_checkout_unique_key"], "alias": "unique_stg_shopify_gql__abandoned_checkout_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.14588, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__abandoned_checkout_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__abandoned_checkout_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_unique_key"], "alias": "not_null_stg_shopify_gql__abandoned_checkout_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.1482763, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__abandoned_checkout_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_checkout_id"], "alias": "not_null_stg_shopify_gql__abandoned_checkout_checkout_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.150709, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__abandoned_checkout_checkout_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify_gql__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key"], "alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815"}, "created_at": 1757005802.15325, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__abando_cfcfb32fbdb2c718c3d2f2d0fe949815.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key"], "alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256"}, "created_at": 1757005802.1556678, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__aban_d175f16ad11424cb9c48a987b72b3256.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id"], "alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e"}, "created_at": 1757005802.158068, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__aban_122bcb5514ccd448ecd4a9e0f7f41d1e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__abandoned_checkout_discount_code\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify_gql__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_unique_key"], "alias": "unique_stg_shopify_gql__collection_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.160441, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__collection_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_unique_key"], "alias": "not_null_stg_shopify_gql__collection_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.162838, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_collection_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_collection_id"], "alias": "not_null_stg_shopify_gql__collection_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.165324, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify_gql__collection", "attached_node": "model.shopify_source.stg_shopify_gql__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_product_unique_key"], "alias": "unique_stg_shopify_gql__collection_product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.1677303, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__collection_product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_unique_key"], "alias": "not_null_stg_shopify_gql__collection_product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.1701193, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_collection_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_collection_id"], "alias": "not_null_stg_shopify_gql__collection_product_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.1724784, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_product_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_product_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_product_product_id"], "alias": "not_null_stg_shopify_gql__collection_product_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.1749825, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__collection_product_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_product\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__collection_product", "attached_node": "model.shopify_source.stg_shopify_gql__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_tag_unique_key"], "alias": "unique_stg_shopify_gql__customer_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.1774006, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_unique_key"], "alias": "not_null_stg_shopify_gql__customer_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.179829, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_index"], "alias": "not_null_stg_shopify_gql__customer_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.1822243, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_tag_customer_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_tag_customer_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_tag_customer_id"], "alias": "not_null_stg_shopify_gql__customer_tag_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.1846197, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_tag_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_tag\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_shopify_gql__customer_tag", "attached_node": "model.shopify_source.stg_shopify_gql__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_allocation_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_allocation_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_allocation_unique_key"], "alias": "unique_stg_shopify_gql__discount_allocation_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.1871364, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_allocation_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_allocation_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_unique_key"], "alias": "not_null_stg_shopify_gql__discount_allocation_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.1895556, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_allocation_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_discount_application_index"], "alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416"}, "created_at": 1757005802.191968, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_66246b5a5638341cb34f400eb9694416.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_application_index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere discount_application_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_application_index", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_application_index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_allocation_order_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_allocation_order_line_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_allocation_order_line_id"], "alias": "not_null_stg_shopify_gql__discount_allocation_order_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.1943462, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_allocation_order_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_allocation\"\nwhere order_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_line_id", "file_key_name": "models.stg_shopify_gql__discount_allocation", "attached_node": "model.shopify_source.stg_shopify_gql__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_application_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_application_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_application_unique_key"], "alias": "unique_stg_shopify_gql__discount_application_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.196864, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_application_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_unique_key"], "alias": "not_null_stg_shopify_gql__discount_application_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.199268, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_index"], "alias": "not_null_stg_shopify_gql__discount_application_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2017062, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_application_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_application_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_application_order_id"], "alias": "not_null_stg_shopify_gql__discount_application_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.204087, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_application_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_application\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__discount_application", "attached_node": "model.shopify_source.stg_shopify_gql__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_app_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_app_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_app_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_app_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2064488, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_app_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_app_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_app_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_app_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_app_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2089615, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_app_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_app_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_app_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_app_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_app_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2113688, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_app_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_app\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_app", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_basic_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_basic_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_basic_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_basic_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2137923, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_basic_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_basic_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_basic_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_basic_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_basic_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2161963, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_basic_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_basic_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_basic_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2192678, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_basic_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_basic\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_bxgy_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_bxgy_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_bxgy_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2216861, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_bxgy_unique_key"], "alias": "not_null_stg_shopify_gql__discount_code_bxgy_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2240624, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_bxgy_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.226416, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_bxgy\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_code_free_shipping_unique_key"], "alias": "unique_stg_shopify_gql__discount_code_free_shipping_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2288213, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_code_free_shipping_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_free_shipping_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_free_shipping_unique_key"], "alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34"}, "created_at": 1757005802.2312968, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_32569e30364de30b13043208ca096e34.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id"], "alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09"}, "created_at": 1757005802.233688, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__disc_e44df063eee2ed0084a3d1f2f0e01f09.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_code_free_shipping\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__discount_redeem_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__discount_redeem_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__discount_redeem_code_unique_key"], "alias": "unique_stg_shopify_gql__discount_redeem_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2360518, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__discount_redeem_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_redeem_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_redeem_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_redeem_code_unique_key"], "alias": "not_null_stg_shopify_gql__discount_redeem_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2384212, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_redeem_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id"], "alias": "not_null_stg_shopify_gql__discount_redeem_code_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2409494, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__discount_redeem_code\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify_gql__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify_gql__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.243334, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2457182, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_fulfillment_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_fulfillment_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_fulfillment_id"], "alias": "not_null_stg_shopify_gql__fulfillment_fulfillment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.248084, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_fulfillment_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fulfillment_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment\"\nwhere fulfillment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fulfillment_id", "file_key_name": "models.stg_shopify_gql__fulfillment", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fulfillment_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_event_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_event_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_event_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_event_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2504616, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_event_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_event_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_event_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_event_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_event_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2529862, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_event"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_event_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_event\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_event", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_event", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_event')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_order_line_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2553973, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_order_line_item", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_order_line_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key"], "alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22"}, "created_at": 1757005802.2578342, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_order_line_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulf_e783177386782d36db658035620a4c22.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_order_line_item\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_order_line_item", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_order_line_item')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key"], "alias": "unique_stg_shopify_gql__fulfillment_tracking_info_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2602208, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_tracking_info", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_tracking_info')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key"], "alias": "not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2627301, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__fulfillment_tracking_info", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__fulfillment_tracking_info\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__fulfillment_tracking_info", "attached_node": "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__fulfillment_tracking_info')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_item_unique_key"], "alias": "unique_stg_shopify_gql__inventory_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2651472, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_item_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_item_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_item_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_item_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2675064, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_item_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_item_inventory_item_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_item_inventory_item_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_item_inventory_item_id"], "alias": "not_null_stg_shopify_gql__inventory_item_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2698889, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_item_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_item\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.stg_shopify_gql__inventory_item", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_level_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_level_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_level_unique_key"], "alias": "unique_stg_shopify_gql__inventory_level_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2722757, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_level_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_level_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_level_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_level_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_level_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2747521, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_level", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_level"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_level_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_level\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_level", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_level", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_level')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__inventory_quantity_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__inventory_quantity_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__inventory_quantity_unique_key"], "alias": "unique_stg_shopify_gql__inventory_quantity_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2771506, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__inventory_quantity_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_quantity", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_quantity')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__inventory_quantity_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__inventory_quantity_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__inventory_quantity_unique_key"], "alias": "not_null_stg_shopify_gql__inventory_quantity_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2795315, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__inventory_quantity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__inventory_quantity"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__inventory_quantity_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__inventory_quantity\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__inventory_quantity", "attached_node": "model.shopify_source.stg_shopify_gql__inventory_quantity", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__inventory_quantity')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__location_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__location_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__location_unique_key"], "alias": "unique_stg_shopify_gql__location_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2819247, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__location_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__location_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__location_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__location_unique_key"], "alias": "not_null_stg_shopify_gql__location_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.284388, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__location_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__location_location_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__location_location_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__location_location_id"], "alias": "not_null_stg_shopify_gql__location_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.286779, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__location"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__location_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__location\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_shopify_gql__location", "attached_node": "model.shopify_source.stg_shopify_gql__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__location')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__media_unique_key"], "alias": "unique_stg_shopify_gql__media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2891753, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_unique_key"], "alias": "not_null_stg_shopify_gql__media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.29155, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_media_id"], "alias": "not_null_stg_shopify_gql__media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2939167, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__media", "attached_node": "model.shopify_source.stg_shopify_gql__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__media_image_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__media_image_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__media_image_unique_key"], "alias": "unique_stg_shopify_gql__media_image_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2963893, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__media_image_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_image_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_image_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_image_unique_key"], "alias": "not_null_stg_shopify_gql__media_image_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.2987914, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_image_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__media_image_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__media_image_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__media_image_media_id"], "alias": "not_null_stg_shopify_gql__media_image_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3011837, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__media_image_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__media_image\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__media_image", "attached_node": "model.shopify_source.stg_shopify_gql__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__media_image')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__metafield_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__metafield_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__metafield_unique_key"], "alias": "unique_stg_shopify_gql__metafield_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3035474, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__metafield_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__metafield_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__metafield_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__metafield_unique_key"], "alias": "not_null_stg_shopify_gql__metafield_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3060188, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__metafield_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__metafield_metafield_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__metafield_metafield_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__metafield_metafield_id"], "alias": "not_null_stg_shopify_gql__metafield_metafield_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3083944, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__metafield_metafield_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metafield_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__metafield\"\nwhere metafield_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metafield_id", "file_key_name": "models.stg_shopify_gql__metafield", "attached_node": "model.shopify_source.stg_shopify_gql__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "metafield_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__metafield')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_media_unique_key"], "alias": "unique_stg_shopify_gql__product_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3108134, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_unique_key"], "alias": "not_null_stg_shopify_gql__product_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3131905, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_product_id"], "alias": "not_null_stg_shopify_gql__product_media_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3155723, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_media_media_id"], "alias": "not_null_stg_shopify_gql__product_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3180652, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__product_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_adjustment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_adjustment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_adjustment_unique_key"], "alias": "unique_stg_shopify_gql__order_adjustment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3204772, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_adjustment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_adjustment", "attached_node": "model.shopify_source.stg_shopify_gql__order_adjustment", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_adjustment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_adjustment_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_adjustment_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_adjustment_unique_key"], "alias": "not_null_stg_shopify_gql__order_adjustment_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3228555, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_adjustment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_adjustment"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_adjustment_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_adjustment\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_adjustment", "attached_node": "model.shopify_source.stg_shopify_gql__order_adjustment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_adjustment')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_discount_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_discount_code_unique_key"], "alias": "unique_stg_shopify_gql__order_discount_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3252182, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_discount_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_unique_key"], "alias": "not_null_stg_shopify_gql__order_discount_code_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.327733, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_code", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_code.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_code"], "alias": "not_null_stg_shopify_gql__order_discount_code_code", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.330098, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_code.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect code\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "code", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "code", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_discount_code_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_discount_code_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_discount_code_order_id"], "alias": "not_null_stg_shopify_gql__order_discount_code_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3324313, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_discount_code_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_discount_code\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_discount_code", "attached_node": "model.shopify_source.stg_shopify_gql__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_line_refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_line_refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_line_refund_unique_key"], "alias": "unique_stg_shopify_gql__order_line_refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.33483, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_line_refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line_refund", "attached_node": "model.shopify_source.stg_shopify_gql__order_line_refund", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line_refund')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_line_refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_line_refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_line_refund_unique_key"], "alias": "not_null_stg_shopify_gql__order_line_refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3372054, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_line_refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_line_refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_line_refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_line_refund\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_line_refund", "attached_node": "model.shopify_source.stg_shopify_gql__order_line_refund", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_line_refund')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_note_attribute_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_note_attribute_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_note_attribute_unique_key"], "alias": "unique_stg_shopify_gql__order_note_attribute_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.339718, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_note_attribute_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_unique_key"], "alias": "not_null_stg_shopify_gql__order_note_attribute_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3420913, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_name", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_name.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_name"], "alias": "not_null_stg_shopify_gql__order_note_attribute_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3444555, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect name\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_note_attribute_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_note_attribute_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_note_attribute_order_id"], "alias": "not_null_stg_shopify_gql__order_note_attribute_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3468494, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_note_attribute_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_note_attribute\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify_gql__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_shipping_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_shipping_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_shipping_line_unique_key"], "alias": "unique_stg_shopify_gql__order_shipping_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3494754, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_shipping_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_shipping_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3518603, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id"], "alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2"}, "created_at": 1757005802.354249, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__orde_76b76e3f831622a376d12351af64fea2.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify_gql__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_shipping_tax_line_unique_key"], "alias": "unique_stg_shopify_gql__order_shipping_tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3566601, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key"], "alias": "not_null_stg_shopify_gql__order_shipping_tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3590417, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id"], "alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4"}, "created_at": 1757005802.3615687, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__orde_cf4ef36b77ca11835c374cd043b117a4.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_shipping_tax_line_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_shipping_tax_line_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_shipping_tax_line_index"], "alias": "not_null_stg_shopify_gql__order_shipping_tax_line_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.363935, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_shipping_tax_line_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_shipping_tax_line\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__order_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__order_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__order_tag_unique_key"], "alias": "unique_stg_shopify_gql__order_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.366287, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__order_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_unique_key"], "alias": "not_null_stg_shopify_gql__order_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3686535, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_order_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_order_id"], "alias": "not_null_stg_shopify_gql__order_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3711088, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__order_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__order_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__order_tag_index"], "alias": "not_null_stg_shopify_gql__order_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3735287, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__order_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__order_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__order_tag", "attached_node": "model.shopify_source.stg_shopify_gql__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_unique_key"], "alias": "unique_stg_shopify_gql__product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3758945, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product", "attached_node": "model.shopify_source.stg_shopify_gql__product", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_unique_key"], "alias": "not_null_stg_shopify_gql__product_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3782508, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product", "attached_node": "model.shopify_source.stg_shopify_gql__product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_variant_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_variant_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_variant_unique_key"], "alias": "unique_stg_shopify_gql__product_variant_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3806472, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_variant_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_unique_key"], "alias": "not_null_stg_shopify_gql__product_variant_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3831394, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_variant_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_variant_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_variant_media_unique_key"], "alias": "unique_stg_shopify_gql__product_variant_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3855033, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_variant_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_media_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_unique_key"], "alias": "not_null_stg_shopify_gql__product_variant_media_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3879254, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_media_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_product_variant_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_product_variant_id"], "alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943"}, "created_at": 1757005802.390325, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__prod_990404b449e1d8a80d34c982e7fb8943.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_variant_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere product_variant_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_variant_id", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_variant_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_variant_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_variant_media_media_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_variant_media_media_id"], "alias": "not_null_stg_shopify_gql__product_variant_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3928127, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_variant_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_variant_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify_gql__product_variant_media", "attached_node": "model.shopify_source.stg_shopify_gql__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__product_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__product_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__product_tag_unique_key"], "alias": "unique_stg_shopify_gql__product_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3951993, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__product_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_unique_key"], "alias": "not_null_stg_shopify_gql__product_tag_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3975797, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_index.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_index"], "alias": "not_null_stg_shopify_gql__product_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.3999863, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__product_tag_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__product_tag_product_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__product_tag_product_id"], "alias": "not_null_stg_shopify_gql__product_tag_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.402379, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__product_tag_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__product_tag\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify_gql__product_tag", "attached_node": "model.shopify_source.stg_shopify_gql__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__refund_unique_key"], "alias": "unique_stg_shopify_gql__refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.4048996, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__refund", "attached_node": "model.shopify_source.stg_shopify_gql__refund", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__refund')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__refund_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__refund_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__refund_unique_key"], "alias": "not_null_stg_shopify_gql__refund_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.4072611, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__refund", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__refund"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__refund_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__refund\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__refund", "attached_node": "model.shopify_source.stg_shopify_gql__refund", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__refund')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__shop_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__shop_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__shop_unique_key"], "alias": "unique_stg_shopify_gql__shop_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.4096658, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__shop_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__shop_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__shop_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__shop_unique_key"], "alias": "not_null_stg_shopify_gql__shop_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.4120293, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__shop_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__shop_shop_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__shop_shop_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__shop_shop_id"], "alias": "not_null_stg_shopify_gql__shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.4144828, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__shop"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.stg_shopify_gql__shop", "attached_node": "model.shopify_source.stg_shopify_gql__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__shop')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__tax_line_unique_key"], "alias": "unique_stg_shopify_gql__tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.416884, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__tax_line", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tax_line_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tax_line_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tax_line_unique_key"], "alias": "not_null_stg_shopify_gql__tax_line_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.4192624, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tax_line_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tax_line\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tax_line", "attached_node": "model.shopify_source.stg_shopify_gql__tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tax_line')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__tender_transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__tender_transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__tender_transaction_unique_key"], "alias": "unique_stg_shopify_gql__tender_transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.4216592, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__tender_transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tender_transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tender_transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tender_transaction_unique_key"], "alias": "not_null_stg_shopify_gql__tender_transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.4240425, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tender_transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__tender_transaction_transaction_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__tender_transaction_transaction_id.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__tender_transaction_transaction_id"], "alias": "not_null_stg_shopify_gql__tender_transaction_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.426563, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__tender_transaction_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__tender_transaction\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_shopify_gql__tender_transaction", "attached_node": "model.shopify_source.stg_shopify_gql__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_shopify_gql__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__transaction_unique_key"], "alias": "unique_stg_shopify_gql__transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.428975, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__transaction", "attached_node": "model.shopify_source.stg_shopify_gql__transaction", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__transaction_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__transaction_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__transaction_unique_key"], "alias": "not_null_stg_shopify_gql__transaction_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.4313693, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__transaction"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__transaction_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__transaction\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__transaction", "attached_node": "model.shopify_source.stg_shopify_gql__transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__transaction')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_visit_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_visit_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_visit_unique_key"], "alias": "unique_stg_shopify_gql__customer_visit_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.4339988, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_visit_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_visit", "attached_node": "model.shopify_source.stg_shopify_gql__customer_visit", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_visit')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_visit_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_visit_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_visit_unique_key"], "alias": "not_null_stg_shopify_gql__customer_visit_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.4366891, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_visit", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_visit"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_visit_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_visit\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_visit", "attached_node": "model.shopify_source.stg_shopify_gql__customer_visit", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_visit')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__collection_rule_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__collection_rule_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__collection_rule_unique_key"], "alias": "unique_stg_shopify_gql__collection_rule_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.4391544, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_rule", "attached_node": "model.shopify_source.stg_shopify_gql__collection_rule", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_rule')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__collection_rule_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__collection_rule_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__collection_rule_unique_key"], "alias": "not_null_stg_shopify_gql__collection_rule_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.4416163, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__collection_rule", "attached_node": "model.shopify_source.stg_shopify_gql__collection_rule", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__collection_rule')) }}"}, "namespace": null}}, "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_stg_shopify_gql__customer_address_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "unique_stg_shopify_gql__customer_address_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc", "fqn": ["shopify_source", "graphql", "unique_stg_shopify_gql__customer_address_unique_key"], "alias": "unique_stg_shopify_gql__customer_address_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.444036, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/unique_stg_shopify_gql__customer_address_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_address", "attached_node": "model.shopify_source.stg_shopify_gql__customer_address", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_address')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify_gql__customer_address_unique_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify_gql__customer_address_unique_key.sql", "original_file_path": "models/graphql/stg_shopify_graphql.yml", "unique_id": "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c", "fqn": ["shopify_source", "graphql", "not_null_stg_shopify_gql__customer_address_unique_key"], "alias": "not_null_stg_shopify_gql__customer_address_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.4468906, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__customer_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify_gql__customer_address"]}, "compiled_path": "target/compiled/shopify_source/models/graphql/stg_shopify_graphql.yml/not_null_stg_shopify_gql__customer_address_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify_gql__customer_address\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.stg_shopify_gql__customer_address", "attached_node": "model.shopify_source.stg_shopify_gql__customer_address", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('stg_shopify_gql__customer_address')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__abandoned_checkout_checkout_id"], "alias": "not_null_stg_shopify__abandoned_checkout_checkout_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5348904, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__abandoned_checkout_checkout_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_collection_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_product_collection_id"], "alias": "not_null_stg_shopify__collection_product_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5374832, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_product_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_product_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_product_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_product_product_id"], "alias": "not_null_stg_shopify__collection_product_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.54002, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection_product", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection_product"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_product_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection_product\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__collection_product", "attached_node": "model.shopify_source.stg_shopify__collection_product", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection_product')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__collection_collection_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__collection_collection_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__collection_collection_id"], "alias": "not_null_stg_shopify__collection_collection_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.542472, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__collection", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__collection"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__collection_collection_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collection_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__collection\"\nwhere collection_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "collection_id", "file_key_name": "models.stg_shopify__collection", "attached_node": "model.shopify_source.stg_shopify__collection", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "collection_id", "model": "{{ get_where_subquery(ref('stg_shopify__collection')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__customer_tag_index"], "alias": "not_null_stg_shopify__customer_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.544902, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__customer_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__customer_tag_customer_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__customer_tag_customer_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__customer_tag_customer_id"], "alias": "not_null_stg_shopify__customer_tag_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5473084, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__customer_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__customer_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__customer_tag_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__customer_tag\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_shopify__customer_tag", "attached_node": "model.shopify_source.stg_shopify__customer_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_shopify__customer_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__fulfillment_fulfillment_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__fulfillment_fulfillment_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__fulfillment_fulfillment_id"], "alias": "not_null_stg_shopify__fulfillment_fulfillment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5501666, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__fulfillment"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__fulfillment_fulfillment_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fulfillment_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__fulfillment\"\nwhere fulfillment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fulfillment_id", "file_key_name": "models.stg_shopify__fulfillment", "attached_node": "model.shopify_source.stg_shopify__fulfillment", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fulfillment_id", "model": "{{ get_where_subquery(ref('stg_shopify__fulfillment')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__inventory_item_inventory_item_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__inventory_item_inventory_item_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__inventory_item_inventory_item_id"], "alias": "not_null_stg_shopify__inventory_item_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5525923, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__inventory_item", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__inventory_item"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__inventory_item_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__inventory_item\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.stg_shopify__inventory_item", "attached_node": "model.shopify_source.stg_shopify__inventory_item", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('stg_shopify__inventory_item')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__location_location_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__location_location_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__location_location_id"], "alias": "not_null_stg_shopify__location_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.554997, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__location", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__location"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__location_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__location\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_shopify__location", "attached_node": "model.shopify_source.stg_shopify__location", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_shopify__location')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__media_media_id"], "alias": "not_null_stg_shopify__media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.557393, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media", "attached_node": "model.shopify_source.stg_shopify__media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__media_image_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__media_image_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__media_image_media_id"], "alias": "not_null_stg_shopify__media_image_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5599158, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__media_image", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__media_image"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__media_image_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__media_image\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__media_image", "attached_node": "model.shopify_source.stg_shopify__media_image", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__media_image')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__metafield_metafield_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__metafield_metafield_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__metafield_metafield_id"], "alias": "not_null_stg_shopify__metafield_metafield_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5623128, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__metafield", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__metafield"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__metafield_metafield_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metafield_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__metafield\"\nwhere metafield_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metafield_id", "file_key_name": "models.stg_shopify__metafield", "attached_node": "model.shopify_source.stg_shopify__metafield", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "metafield_id", "model": "{{ get_where_subquery(ref('stg_shopify__metafield')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_name", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_name.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_note_attribute_name"], "alias": "not_null_stg_shopify__order_note_attribute_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5647268, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect name\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_note_attribute_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_note_attribute_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_note_attribute_order_id"], "alias": "not_null_stg_shopify__order_note_attribute_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5671017, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_note_attribute", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_note_attribute"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_note_attribute_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_note_attribute\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_note_attribute", "attached_node": "model.shopify_source.stg_shopify__order_note_attribute", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_note_attribute')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1"}, "created_at": 1757005802.5695333, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_sh_86443a6f8dd3d3da0124c88dd13eb1e1.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_shipping_tax_line_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_tax_line_index"], "alias": "not_null_stg_shopify__order_shipping_tax_line_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5720434, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_shipping_tax_line_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id"], "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858"}, "created_at": 1757005802.5744627, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_shipping_tax_line", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_shipping_tax_line"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_sh_137b227fc325b653b67bedefafe7c858.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_shipping_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_shipping_tax_line\"\nwhere order_shipping_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_shipping_line_id", "file_key_name": "models.stg_shopify__order_shipping_tax_line", "attached_node": "model.shopify_source.stg_shopify__order_shipping_tax_line", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_shipping_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_shipping_tax_line')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_tag_index"], "alias": "not_null_stg_shopify__order_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5768428, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_tag_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_tag_order_id"], "alias": "not_null_stg_shopify__order_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5792098, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_tag", "attached_node": "model.shopify_source.stg_shopify__order_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_key", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_key.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_url_tag_key"], "alias": "not_null_stg_shopify__order_url_tag_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5817108, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_url_tag_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect key\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "key", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "key", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_url_tag_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_url_tag_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_url_tag_order_id"], "alias": "not_null_stg_shopify__order_url_tag_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.584117, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_url_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_url_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_url_tag_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_url_tag\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_url_tag", "attached_node": "model.shopify_source.stg_shopify__order_url_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_url_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_media_product_id"], "alias": "not_null_stg_shopify__product_media_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5864978, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_media_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_media_media_id"], "alias": "not_null_stg_shopify__product_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5889146, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_media", "attached_node": "model.shopify_source.stg_shopify__product_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_product_variant_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_product_variant_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_variant_media_product_variant_id"], "alias": "not_null_stg_shopify__product_variant_media_product_variant_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.591326, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_variant_media_product_variant_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_variant_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere product_variant_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_variant_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_variant_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_variant_media_media_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_variant_media_media_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_variant_media_media_id"], "alias": "not_null_stg_shopify__product_variant_media_media_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.5938282, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_variant_media", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_variant_media"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_variant_media_media_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect media_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_variant_media\"\nwhere media_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "media_id", "file_key_name": "models.stg_shopify__product_variant_media", "attached_node": "model.shopify_source.stg_shopify__product_variant_media", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "media_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_variant_media')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_tag_index"], "alias": "not_null_stg_shopify__product_tag_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.596226, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_tag_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__product_tag_product_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__product_tag_product_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__product_tag_product_id"], "alias": "not_null_stg_shopify__product_tag_product_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.598634, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__product_tag", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__product_tag"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__product_tag_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__product_tag\"\nwhere product_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_shopify__product_tag", "attached_node": "model.shopify_source.stg_shopify__product_tag", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_shopify__product_tag')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__shop_shop_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__shop_shop_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__shop_shop_id"], "alias": "not_null_stg_shopify__shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.6010196, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__shop"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.stg_shopify__shop", "attached_node": "model.shopify_source.stg_shopify__shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('stg_shopify__shop')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__tender_transaction_transaction_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__tender_transaction_transaction_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__tender_transaction_transaction_id"], "alias": "not_null_stg_shopify__tender_transaction_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.6035466, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__tender_transaction", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__tender_transaction"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__tender_transaction_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__tender_transaction\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_shopify__tender_transaction", "attached_node": "model.shopify_source.stg_shopify__tender_transaction", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_shopify__tender_transaction')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id"], "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c"}, "created_at": 1757005802.6060007, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__abandoned_checkout_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__abandone_69cca4dad786feddbb78552d60221d7c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect checkout_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__abandoned_checkout_discount_code\"\nwhere checkout_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "checkout_id", "file_key_name": "models.stg_shopify__abandoned_checkout_discount_code", "attached_node": "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "checkout_id", "model": "{{ get_where_subquery(ref('stg_shopify__abandoned_checkout_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_code", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_code.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_discount_code_code"], "alias": "not_null_stg_shopify__order_discount_code_code", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.6083674, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_discount_code_code.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect code\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "code", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "code", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__order_discount_code_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__order_discount_code_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__order_discount_code_order_id"], "alias": "not_null_stg_shopify__order_discount_code_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.6107595, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_discount_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__order_discount_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__order_discount_code_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__order_discount_code\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__order_discount_code", "attached_node": "model.shopify_source.stg_shopify__order_discount_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__order_discount_code')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_allocation_discount_application_index"], "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca"}, "created_at": 1757005802.6131558, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_cfcbde56c52d7d89ca13e3f90c9793ca.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_application_index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere discount_application_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_application_index", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_application_index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_allocation_order_line_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_allocation_order_line_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_allocation_order_line_id"], "alias": "not_null_stg_shopify__discount_allocation_order_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.6156366, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_allocation", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_allocation"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_allocation_order_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_line_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_allocation\"\nwhere order_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_line_id", "file_key_name": "models.stg_shopify__discount_allocation", "attached_node": "model.shopify_source.stg_shopify__discount_allocation", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_line_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_allocation')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_index", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_index.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_application_index"], "alias": "not_null_stg_shopify__discount_application_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.6180334, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_application_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "index", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "index", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_application_order_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_application_order_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_application_order_id"], "alias": "not_null_stg_shopify__discount_application_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.6204994, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_application", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_application"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_application_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_application\"\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_shopify__discount_application", "attached_node": "model.shopify_source.stg_shopify__discount_application", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_application')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_app_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_app_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_app_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_app_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.6229136, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_app", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_app"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_app_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_app\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_app", "attached_node": "model.shopify_source.stg_shopify__discount_code_app", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_app')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_basic_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_basic_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_basic_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.6253753, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_basic", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_basic"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_basic_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_basic\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_basic", "attached_node": "model.shopify_source.stg_shopify__discount_code_basic", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_basic')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_bxgy_discount_code_id"], "alias": "not_null_stg_shopify__discount_code_bxgy_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.6277807, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_bxgy"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_code_bxgy_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_bxgy\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_bxgy", "attached_node": "model.shopify_source.stg_shopify__discount_code_bxgy", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_bxgy')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_code_free_shipping_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_code_free_shipping_discount_code_id"], "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354"}, "created_at": 1757005802.6302245, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_code_free_shipping"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_e9941d635e2722a9c2f1f1c75f189354.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_code_free_shipping\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_code_free_shipping", "attached_node": "model.shopify_source.stg_shopify__discount_code_free_shipping", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_code_free_shipping')) }}"}, "namespace": null}}, "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "resource_type": "test", "package_name": "shopify_source", "path": "not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "original_file_path": "models/rest/stg_shopify.yml", "unique_id": "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb", "fqn": ["shopify_source", "rest", "not_null_stg_shopify__discount_redeem_code_discount_code_id"], "alias": "not_null_stg_shopify__discount_redeem_code_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.6326234, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify_source.stg_shopify__discount_redeem_code"]}, "compiled_path": "target/compiled/shopify_source/models/rest/stg_shopify.yml/not_null_stg_shopify__discount_redeem_code_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"stg_shopify__discount_redeem_code\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.stg_shopify__discount_redeem_code", "attached_node": "model.shopify_source.stg_shopify__discount_redeem_code", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('stg_shopify__discount_redeem_code')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c", "fqn": ["shopify", "unique_shopify_gql__customer_cohorts_customer_cohort_id"], "alias": "unique_shopify_gql__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.8915722, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_cohorts", "attached_node": "model.shopify.shopify_gql__customer_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2", "fqn": ["shopify", "not_null_shopify_gql__customer_cohorts_customer_cohort_id"], "alias": "not_null_shopify_gql__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.8941684, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_cohorts", "attached_node": "model.shopify.shopify_gql__customer_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27", "fqn": ["shopify", "unique_shopify_gql__customer_email_cohorts_customer_cohort_id"], "alias": "unique_shopify_gql__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.8966324, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_email_cohorts", "attached_node": "model.shopify.shopify_gql__customer_email_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f", "fqn": ["shopify", "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id"], "alias": "not_null_shopify_gql__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.8990395, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__customer_email_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify_gql__customer_email_cohorts", "attached_node": "model.shopify.shopify_gql__customer_email_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify_gql__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__orders_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077", "fqn": ["shopify", "unique_shopify_gql__orders_unique_key"], "alias": "unique_shopify_gql__orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9015353, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__orders", "attached_node": "model.shopify.shopify_gql__orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__orders')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__orders_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041", "fqn": ["shopify", "not_null_shopify_gql__orders_unique_key"], "alias": "not_null_shopify_gql__orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.903915, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__orders\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__orders", "attached_node": "model.shopify.shopify_gql__orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__orders')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__products_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__products_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326", "fqn": ["shopify", "unique_shopify_gql__products_unique_key"], "alias": "unique_shopify_gql__products_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9063148, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__products"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__products_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__products\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__products", "attached_node": "model.shopify.shopify_gql__products", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__products')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__products_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__products_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497", "fqn": ["shopify", "not_null_shopify_gql__products_unique_key"], "alias": "not_null_shopify_gql__products_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.908677, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__products", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__products"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__products_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__products\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__products", "attached_node": "model.shopify.shopify_gql__products", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__products')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__order_lines_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4", "fqn": ["shopify", "unique_shopify_gql__order_lines_unique_key"], "alias": "unique_shopify_gql__order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9111373, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__order_lines", "attached_node": "model.shopify.shopify_gql__order_lines", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__order_lines')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__order_lines_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db", "fqn": ["shopify", "not_null_shopify_gql__order_lines_unique_key"], "alias": "not_null_shopify_gql__order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9134855, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__order_lines\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__order_lines", "attached_node": "model.shopify.shopify_gql__order_lines", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__order_lines')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__transactions_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__transactions_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c", "fqn": ["shopify", "unique_shopify_gql__transactions_unique_key"], "alias": "unique_shopify_gql__transactions_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9158788, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__transactions_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__transactions", "attached_node": "model.shopify.shopify_gql__transactions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__transactions_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__transactions_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d", "fqn": ["shopify", "not_null_shopify_gql__transactions_unique_key"], "alias": "not_null_shopify_gql__transactions_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.918221, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__transactions_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__transactions\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__transactions", "attached_node": "model.shopify.shopify_gql__transactions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__inventory_levels_inventory_item_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__inventory_levels_inventory_item_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957", "fqn": ["shopify", "not_null_shopify_gql__inventory_levels_inventory_item_id"], "alias": "not_null_shopify_gql__inventory_levels_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9205935, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__inventory_levels_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__inventory_levels_location_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__inventory_levels_location_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e", "fqn": ["shopify", "not_null_shopify_gql__inventory_levels_location_id"], "alias": "not_null_shopify_gql__inventory_levels_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9231021, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__inventory_levels_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__inventory_levels\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.shopify_gql__inventory_levels", "attached_node": "model.shopify.shopify_gql__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('shopify_gql__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify_gql__discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify_gql__discounts_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5", "fqn": ["shopify", "unique_shopify_gql__discounts_unique_key"], "alias": "unique_shopify_gql__discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9254785, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/unique_shopify_gql__discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere unique_key is not null\ngroup by unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__discounts_unique_key.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994", "fqn": ["shopify", "not_null_shopify_gql__discounts_unique_key"], "alias": "not_null_shopify_gql__discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9278655, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "unique_key", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "unique_key", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__discounts_discount_code_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__discounts_discount_code_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264", "fqn": ["shopify", "not_null_shopify_gql__discounts_discount_code_id"], "alias": "not_null_shopify_gql__discounts_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9302208, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__discounts_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__discounts\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.shopify_gql__discounts", "attached_node": "model.shopify.shopify_gql__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('shopify_gql__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify_gql__daily_shop_shop_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify_gql__daily_shop_shop_id.sql", "original_file_path": "models/shopify_graphql.yml", "unique_id": "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8", "fqn": ["shopify", "not_null_shopify_gql__daily_shop_shop_id"], "alias": "not_null_shopify_gql__daily_shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9327195, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify_gql__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify_gql__daily_shop"]}, "compiled_path": "target/compiled/shopify/models/shopify_graphql.yml/not_null_shopify_gql__daily_shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"shopify_gql__daily_shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.shopify_gql__daily_shop", "attached_node": "model.shopify.shopify_gql__daily_shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('shopify_gql__daily_shop')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a", "fqn": ["shopify", "unique_shopify__customer_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9694757, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "fqn": ["shopify", "not_null_shopify__customer_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9719293, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_cohorts", "attached_node": "model.shopify.shopify__customer_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182", "fqn": ["shopify", "unique_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "unique_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9743493, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_cohort_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is not null\ngroup by customer_cohort_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "fqn": ["shopify", "not_null_shopify__customer_email_cohorts_customer_cohort_id"], "alias": "not_null_shopify__customer_email_cohorts_customer_cohort_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.976778, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__customer_email_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__customer_email_cohorts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__customer_email_cohorts_customer_cohort_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_cohort_id\nfrom \"postgres\".\"public_shopify\".\"shopify__customer_email_cohorts\"\nwhere customer_cohort_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_cohort_id", "file_key_name": "models.shopify__customer_email_cohorts", "attached_node": "model.shopify.shopify__customer_email_cohorts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_cohort_id", "model": "{{ get_where_subquery(ref('shopify__customer_email_cohorts')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51", "fqn": ["shopify", "unique_shopify__orders_orders_unique_key"], "alias": "unique_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9796321, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n orders_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is not null\ngroup by orders_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__orders_orders_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__orders_orders_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "fqn": ["shopify", "not_null_shopify__orders_orders_unique_key"], "alias": "not_null_shopify__orders_orders_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9819694, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__orders"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__orders_orders_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect orders_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__orders\"\nwhere orders_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "orders_unique_key", "file_key_name": "models.shopify__orders", "attached_node": "model.shopify.shopify__orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "orders_unique_key", "model": "{{ get_where_subquery(ref('shopify__orders')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e", "fqn": ["shopify", "unique_shopify__order_lines_order_lines_unique_key"], "alias": "unique_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.984348, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_lines_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is not null\ngroup by order_lines_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "unique", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__order_lines_order_lines_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__order_lines_order_lines_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "fqn": ["shopify", "not_null_shopify__order_lines_order_lines_unique_key"], "alias": "not_null_shopify__order_lines_order_lines_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.986695, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__order_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__order_lines"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__order_lines_order_lines_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_lines_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__order_lines\"\nwhere order_lines_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_lines_unique_key", "file_key_name": "models.shopify__order_lines", "attached_node": "model.shopify.shopify__order_lines", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_lines_unique_key", "model": "{{ get_where_subquery(ref('shopify__order_lines')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981", "fqn": ["shopify", "unique_shopify__transactions_transactions_unique_id"], "alias": "unique_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9891138, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n transactions_unique_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is not null\ngroup by transactions_unique_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__transactions_transactions_unique_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__transactions_transactions_unique_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "fqn": ["shopify", "not_null_shopify__transactions_transactions_unique_id"], "alias": "not_null_shopify__transactions_transactions_unique_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9915953, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__transactions"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__transactions_transactions_unique_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transactions_unique_id\nfrom \"postgres\".\"public_shopify\".\"shopify__transactions\"\nwhere transactions_unique_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "transactions_unique_id", "file_key_name": "models.shopify__transactions", "attached_node": "model.shopify.shopify__transactions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transactions_unique_id", "model": "{{ get_where_subquery(ref('shopify__transactions')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_inventory_item_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_inventory_item_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "fqn": ["shopify", "not_null_shopify__inventory_levels_inventory_item_id"], "alias": "not_null_shopify__inventory_levels_inventory_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9939659, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_inventory_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect inventory_item_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere inventory_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inventory_item_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "inventory_item_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__inventory_levels_location_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__inventory_levels_location_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0", "fqn": ["shopify", "not_null_shopify__inventory_levels_location_id"], "alias": "not_null_shopify__inventory_levels_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9963202, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__inventory_levels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__inventory_levels"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__inventory_levels_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"public_shopify\".\"shopify__inventory_levels\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "location_id", "file_key_name": "models.shopify__inventory_levels", "attached_node": "model.shopify.shopify__inventory_levels", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('shopify__inventory_levels')) }}"}, "namespace": null}}, "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "unique_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "unique_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f", "fqn": ["shopify", "unique_shopify__discounts_discounts_unique_key"], "alias": "unique_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005802.9987352, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/unique_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n discounts_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is not null\ngroup by discounts_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "unique", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discounts_unique_key", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discounts_unique_key.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "fqn": ["shopify", "not_null_shopify__discounts_discounts_unique_key"], "alias": "not_null_shopify__discounts_discounts_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005803.001198, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discounts_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discounts_unique_key\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discounts_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discounts_unique_key", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discounts_unique_key", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__discounts_discount_code_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__discounts_discount_code_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "fqn": ["shopify", "not_null_shopify__discounts_discount_code_id"], "alias": "not_null_shopify__discounts_discount_code_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005803.0035934, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__discounts"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__discounts_discount_code_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect discount_code_id\nfrom \"postgres\".\"public_shopify\".\"shopify__discounts\"\nwhere discount_code_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "discount_code_id", "file_key_name": "models.shopify__discounts", "attached_node": "model.shopify.shopify__discounts", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "discount_code_id", "model": "{{ get_where_subquery(ref('shopify__discounts')) }}"}, "namespace": null}}, "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_shopify__daily_shop_shop_id", "resource_type": "test", "package_name": "shopify", "path": "not_null_shopify__daily_shop_shop_id.sql", "original_file_path": "models/shopify.yml", "unique_id": "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f", "fqn": ["shopify", "not_null_shopify__daily_shop_shop_id"], "alias": "not_null_shopify__daily_shop_shop_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1757005803.0059862, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.shopify.shopify__daily_shop"]}, "compiled_path": "target/compiled/shopify/models/shopify.yml/not_null_shopify__daily_shop_shop_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect shop_id\nfrom \"postgres\".\"public_shopify\".\"shopify__daily_shop\"\nwhere shop_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "shop_id", "file_key_name": "models.shopify__daily_shop", "attached_node": "model.shopify.shopify__daily_shop", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "shop_id", "model": "{{ get_where_subquery(ref('shopify__daily_shop')) }}"}, "namespace": null}}}, "sources": {"source.shopify_source.shopify_graphql.order": {"database": "postgres", "schema": "public", "name": "order", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_data", "quoting": {"database": null, "schema": null, "identifier": true, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_ip": {"name": "client_ip", "description": "The IP address of the customer who placed the order. Useful for fraud detection and geographic analysis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_accepts_marketing": {"name": "customer_accepts_marketing", "description": "Whether the customer agreed to receive marketing emails at the time of purchase.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_at": {"name": "cancelled_at", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The shop currency when the order was placed. For example, \"USD\" or \"CAD\".", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_financial_status": {"name": "display_financial_status", "description": "An order's financial status for display in the Shopify admin. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFinancialStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_fulfillment_status": {"name": "display_fulfillment_status", "description": "The order's fulfillment status that displays in the Shopify admin to merchants. For example, an order might be unfulfilled or scheduled. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/order#field-Order.fields.displayFulfillmentStatus).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The unique identifier for the order that appears on the order page in the Shopify admin and the Order status page. For example, \"#1001\", \"EN1001\", or \"1001-A\". This value isn't unique across multiple stores.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The optional note associated with the order. Contains additional information or instructions added by merchants or customers during the order process. Commonly used for special delivery instructions, gift messages, or internal processing notes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order number used to generate the name using the store's configured order number prefix/suffix. This number isn't guaranteed to follow a consecutive integer sequence (e.g. 1, 2, 3..), nor is it guaranteed to be unique across multiple stores, or even for a single store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The name of the source associated with the order, such as \"web\", \"mobile_app\", or \"pos\". Use this field to identify the platform where the order was placed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_amount": {"name": "subtotal_price_set_shop_amount", "description": "The sum of the prices for all line items after discounts and before returns, in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_amount": {"name": "subtotal_price_set_pres_amount", "description": "The sum of the prices for all line items after discounts and before returns, in shop presentment currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_currency_code": {"name": "subtotal_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_currency_code": {"name": "subtotal_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_shop_amount": {"name": "total_discounts_set_shop_amount", "description": "The total amount discounted on the order before returns, in *shop* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_pres_amount": {"name": "total_discounts_set_pres_amount", "description": "The total amount discounted on the order before returns, in *presentment* currency. This includes both order and line level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_shop_currency_code": {"name": "total_discounts_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set_pres_currency_code": {"name": "total_discounts_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_amount": {"name": "total_price_set_shop_amount", "description": "The total price of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_amount": {"name": "total_price_set_pres_amount", "description": "The total price of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_currency_code": {"name": "total_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_currency_code": {"name": "total_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The total tax amount of the order, before returns, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The total tax amount of the order, before returns, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights before returns, in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "The staff member who created or is responsible for the order. Useful for tracking which team member handled phone orders, manual orders, or order modifications. Returns null for orders created directly by customers through the online store.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "confirmed": {"name": "confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status_page_url": {"name": "status_page_url", "description": "The URL where customers can check their order's current status, including tracking information and delivery updates. Provides order tracking links in emails, apps, or customer communications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received_set_shop_amount": {"name": "total_tip_received_set_shop_amount", "description": "The sum of all tip amounts for the order, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_pres_amount": {"name": "total_tip_received_set_pres_amount", "description": "The sum of all tip amounts for the order, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_shop_currency_code": {"name": "total_tip_received_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tip_received_set_pres_currency_code": {"name": "total_tip_received_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tips received.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency_code": {"name": "presentment_currency_code", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_shop_amount": {"name": "total_shipping_price_set_shop_amount", "description": "The total shipping costs returned to the customer, in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_pres_amount": {"name": "total_shipping_price_set_pres_amount", "description": "The total shipping costs returned to the customer, in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_shop_currency_code": {"name": "total_shipping_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set_pres_currency_code": {"name": "total_shipping_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total shipping costs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_data\"", "created_at": 1757005803.062204, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer": {"database": "postgres", "schema": "public", "name": "customer", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "state": {"name": "state", "description": "The state of the customer's account with a shop. See possible values [here](https://shopify.dev/docs/api/admin-graphql/latest/objects/customer#field-Customer.fields.state).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_exempt": {"name": "tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "verified_email": {"name": "verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_state": {"name": "email_marketing_consent_state", "description": "The current email marketing state for the customer. New version of `accepts_marketing` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_opt_in_level": {"name": "email_marketing_consent_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. New version of `marketing_opt_in_level` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_updated_at": {"name": "email_marketing_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. New version of `accepts_marketing_updated_at` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_data\"", "created_at": 1757005803.064475, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_line": {"database": "postgres", "schema": "public", "name": "order_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item for an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "unfulfilled_quantity": {"name": "unfulfilled_quantity", "description": "The number of units not yet fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_gift_card": {"name": "is_gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_pres_amount": {"name": "original_total_set_pres_amount", "description": "The total price of the line item when the order was created, in *presentment* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_pres_currency_code": {"name": "original_total_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_shop_amount": {"name": "original_total_set_shop_amount", "description": "The total price of the line item when the order was created, in *shop* currency. This value doesn't include discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_total_set_shop_currency_code": {"name": "original_total_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_amount": {"name": "total_discount_set_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_amount": {"name": "total_discount_set_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_currency_code": {"name": "total_discount_set_shop_currency_code", "description": "The three-letter code (ISO \u00e54217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_currency_code": {"name": "total_discount_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_data\"", "created_at": 1757005803.0652947, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_line_refund": {"database": "postgres", "schema": "public", "name": "order_line_refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_line_refund", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_line_refund"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_line_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item refund in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location where the items will be restocked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_pres_amount": {"name": "subtotal_set_pres_amount", "description": "The refunded subtotal amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_pres_currency_code": {"name": "subtotal_set_pres_currency_code", "description": "The three letter currency code for the subtotal the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_shop_amount": {"name": "subtotal_set_shop_amount", "description": "The refunded subtotal amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set_shop_currency_code": {"name": "subtotal_set_shop_currency_code", "description": "The three letter currency code for the subtotal in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The total tax amount of a line item in currency the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three letter currency code of the tax the customer paid in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The total tax amount of a line item in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three letter currency code of the tax in the currency of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_line_refund_data\"", "created_at": 1757005803.0661757, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product": {"database": "postgres", "schema": "public", "name": "product", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product in Shopify.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_data\"", "created_at": 1757005803.0668883, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_variant": {"database": "postgres", "schema": "public", "name": "product_variant", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_variant", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_variant"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_variant_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "available_for_sale": {"name": "available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_components": {"name": "requires_components", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_data\"", "created_at": 1757005803.0676541, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.transaction": {"database": "postgres", "schema": "public", "name": "transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.transaction", "fqn": ["shopify_source", "graphql", "shopify_graphql", "transaction"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a transaction in Shopify.", "columns": {"id": {"name": "id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_amount": {"name": "amount_set_pres_amount", "description": "The amount of the transaction in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_currency_code": {"name": "amount_set_pres_currency_code", "description": "The three letter currency code of the customer's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_amount": {"name": "amount_set_shop_amount", "description": "The amount of the transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_currency_code": {"name": "amount_set_shop_currency_code", "description": "The three letter currency code of the shop's transaction currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization_code": {"name": "authorization_code", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used to process the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "Unique identifier of the staff member who was logged into the Shopify POS device when the transaction was processed", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_transaction_data\"", "created_at": 1757005803.0684934, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.refund": {"database": "postgres", "schema": "public", "name": "refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.refund", "fqn": ["shopify_source", "graphql", "shopify_graphql", "refund"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a refund within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the refund was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "return_id": {"name": "return_id", "description": "Reference to the return which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "staff_member_id": {"name": "staff_member_id", "description": "Reference to the staff member who created the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_pres_amount": {"name": "total_refunded_set_pres_amount", "description": "The total amount across all transactions for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_pres_currency_code": {"name": "total_refunded_set_pres_currency_code", "description": "The three letter currency code for the refund in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_shop_amount": {"name": "total_refunded_set_shop_amount", "description": "The total amount across all transactions for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_refunded_set_shop_currency_code": {"name": "total_refunded_set_shop_currency_code", "description": "The three letter currency code for the refund in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_refund_data\"", "created_at": 1757005803.0691907, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_adjustment": {"database": "postgres", "schema": "public", "name": "order_adjustment", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_adjustment", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_adjustment"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_adjustment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_amount": {"name": "amount_set_pres_amount", "description": "The amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_pres_currency_code": {"name": "amount_set_pres_currency_code", "description": "The three letter currency code for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_amount": {"name": "amount_set_shop_amount", "description": "The amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_currency_code": {"name": "amount_set_shop_currency_code", "description": "The three letter shop currency code of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_pres_amount": {"name": "tax_amount_set_pres_amount", "description": "The tax amount of the order adjustment in the currency the customer purchased in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_pres_currency_code": {"name": "tax_amount_set_pres_currency_code", "description": "The three letter currency code for the tax of the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_shop_amount": {"name": "tax_amount_set_shop_amount", "description": "The tax amount of the order adjustment in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set_shop_currency_code": {"name": "tax_amount_set_shop_currency_code", "description": "The three letter shop currency code of the tax for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_adjustment_data\"", "created_at": 1757005803.069873, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.abandoned_checkout": {"database": "postgres", "schema": "public", "name": "abandoned_checkout", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout", "fqn": ["shopify_source", "graphql", "shopify_graphql", "abandoned_checkout"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_abandoned_checkout_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_amount": {"name": "subtotal_price_set_shop_amount", "description": "The price of the checkout before shipping and taxes in *shop* currency. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_amount": {"name": "subtotal_price_set_pres_amount", "description": "The price of the checkout before shipping and taxes in *presentment* currencyy. If taxesIncluded is true, then the subtotal also includes tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_shop_currency_code": {"name": "subtotal_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price_set_pres_currency_code": {"name": "subtotal_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the subtotal price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_amount": {"name": "total_discount_set_shop_amount", "description": "The total discount allocated to the line item in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_amount": {"name": "total_discount_set_pres_amount", "description": "The total discount allocated to the line item in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_shop_currency_code": {"name": "total_discount_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set_pres_currency_code": {"name": "total_discount_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_shop_amount": {"name": "total_duties_set_shop_amount", "description": "The total duties of the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_pres_amount": {"name": "total_duties_set_pres_amount", "description": "The total duties of the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_shop_currency_code": {"name": "total_duties_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties_set_pres_currency_code": {"name": "total_duties_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the currency currency used to display the total duties of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_shop_amount": {"name": "total_line_items_price_set_shop_amount", "description": "The sum of the prices of all line items in the checkout in *shop* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_pres_amount": {"name": "total_line_items_price_set_pres_amount", "description": "The sum of the prices of all line items in the checkout in *presentment* currency, including the total allocated to refunded and removed quantities. This value doesn't include order-level discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_shop_currency_code": {"name": "total_line_items_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set_pres_currency_code": {"name": "total_line_items_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of the prices of all line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_amount": {"name": "total_price_set_shop_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_amount": {"name": "total_price_set_pres_amount", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_shop_currency_code": {"name": "total_price_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set_pres_currency_code": {"name": "total_price_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the sum of line item prices, all discounts, shipping costs, and taxes for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_amount": {"name": "total_tax_set_shop_amount", "description": "The sum of all the taxes applied to the checkout in *shop* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_amount": {"name": "total_tax_set_pres_amount", "description": "The sum of all the taxes applied to the checkout in *presentment* currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_shop_currency_code": {"name": "total_tax_set_shop_currency_code", "description": "The three-letter code (ISO 4217 format) for the shop currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set_pres_currency_code": {"name": "total_tax_set_pres_currency_code", "description": "The three-letter code (ISO 4217 format) for the presentment currency used to display the total tax amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "completed_at": {"name": "completed_at", "description": "The date and time when the buyer completed the checkout. Null if the checkout has not been completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_data\"", "created_at": 1757005803.0717986, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.collection_product": {"database": "postgres", "schema": "public", "name": "collection_product", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection_product", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection_product"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_product_data\"", "created_at": 1757005803.0724328, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.collection": {"database": "postgres", "schema": "public", "name": "collection", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "applied_disjunctively": {"name": "applied_disjunctively", "description": "Boolean representing whether products must match any or all of the `rules` to be included in the collection. True = products must match at least one rule, false = products must match all rules.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values inclide - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_data\"", "created_at": 1757005803.0730994, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_tag": {"database": "postgres", "schema": "public", "name": "customer_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_tag_data\"", "created_at": 1757005803.0737576, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment": {"database": "postgres", "schema": "public", "name": "fulfillment", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_status": {"name": "display_status", "description": "Display status for this fulfillment. Valid values include `attempted_delivery`, `canceled`, `confirmed`, `delayed`, `delivered`, `failure`, `fulfilled`, `in_transit`, `label_printed`, `label_purchased`, `label_voided`, `marked_as_fulfilled`, `not_delivered`, `out_for_delivery`, `picked_up`, `ready_for_pickup`, `submitted`. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service_id": {"name": "service_id", "description": "The id of the fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: (Legacy status, to be deprecated) Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: (Legacy status, to be deprecated) The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "Sum of all line item quantities for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_data\"", "created_at": 1757005803.0744195, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_item": {"database": "postgres", "schema": "public", "name": "inventory_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_item", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_item"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked": {"name": "tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_locked": {"name": "tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_item_data\"", "created_at": 1757005803.0752096, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_level": {"database": "postgres", "schema": "public", "name": "inventory_level", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_level", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_level"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_level_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_level_data\"", "created_at": 1757005803.075879, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.inventory_quantity": {"database": "postgres", "schema": "public", "name": "inventory_quantity", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.inventory_quantity", "fqn": ["shopify_source", "graphql", "shopify_graphql", "inventory_quantity"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_inventory_quantity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The total quantity of the inventory item available at all locations.", "columns": {"id": {"name": "id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_inventory_quantity_data\"", "created_at": 1757005803.0765424, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.location": {"database": "postgres", "schema": "public", "name": "location", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.location", "fqn": ["shopify_source", "graphql", "shopify_graphql", "location"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_location_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "is_active": {"name": "is_active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_fulfillment_service": {"name": "is_fulfillment_service", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_location_data\"", "created_at": 1757005803.0772202, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.metafield": {"database": "postgres", "schema": "public", "name": "metafield", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.metafield", "fqn": ["shopify_source", "graphql", "shopify_graphql", "metafield"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_metafield_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_id": {"name": "owner_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Use this instead of `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_metafield_data\"", "created_at": 1757005803.0778964, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_note_attribute": {"database": "postgres", "schema": "public", "name": "order_note_attribute", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_note_attribute", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_note_attribute"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_note_attribute_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_note_attribute_data\"", "created_at": 1757005803.078562, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_shipping_line": {"database": "postgres", "schema": "public", "name": "order_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_shipping_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_shipping_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_pres_amount": {"name": "current_discounted_price_set_pres_amount", "description": "Current shipping price in customer currency after applying refunds and discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_pres_currency_code": {"name": "current_discounted_price_set_pres_currency_code", "description": "Three digit customer currency code for the current discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_shop_amount": {"name": "current_discounted_price_set_shop_amount", "description": "Current shipping price in shop currency after applying refunds and discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "current_discounted_price_set_shop_currency_code": {"name": "current_discounted_price_set_shop_currency_code", "description": "Three digit shop currency code for the current discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_pres_amount": {"name": "discounted_price_set_pres_amount", "description": "Shipping price in customer currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_pres_currency_code": {"name": "discounted_price_set_pres_currency_code", "description": "Three digit customer currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_shop_amount": {"name": "discounted_price_set_shop_amount", "description": "Shipping price in shop currency after applying discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set_shop_currency_code": {"name": "discounted_price_set_shop_currency_code", "description": "Three digit shop currency code for the discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_removed": {"name": "is_removed", "description": "Whether the shipping line has been removed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_pres_amount": {"name": "original_price_set_pres_amount", "description": "The pre-tax shipping price without any discounts applied in the customer currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_pres_currency_code": {"name": "original_price_set_pres_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_shop_amount": {"name": "original_price_set_shop_amount", "description": "The pre-tax shipping price without any discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_price_set_shop_currency_code": {"name": "original_price_set_shop_currency_code", "description": "Three digit customer currency code for the pre-tax, non-discounted price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_rate_handle": {"name": "shipping_rate_handle", "description": "A unique identifier for the shipping rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_line_data\"", "created_at": 1757005803.0793142, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_shipping_tax_line": {"database": "postgres", "schema": "public", "name": "order_shipping_tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_shipping_tax_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_shipping_tax_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_shipping_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this recod is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_amount": {"name": "price_set_pres_amount", "description": "The amount of tax in customer currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_currency_code": {"name": "price_set_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_amount": {"name": "price_set_shop_amount", "description": "The amount of tax in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_currency_code": {"name": "price_set_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The source of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_shipping_tax_line_data\"", "created_at": 1757005803.0799878, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_tag": {"database": "postgres", "schema": "public", "name": "order_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_tag_data\"", "created_at": 1757005803.080631, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.media": {"database": "postgres", "schema": "public", "name": "media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing media metadata, including status and timestamps.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "alt": {"name": "alt", "description": "A word or phrase to share the nature or contents of a media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "file_status": {"name": "file_status", "description": "The status of the file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_content_type": {"name": "media_content_type", "description": "The media content type (values include 'external_video', 'image', 'model_3d', 'video')", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_alt_text": {"name": "preview_image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_height": {"name": "preview_image_height", "description": "The original height of the image in pixels (returns null if image not hosted in Shopify).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_id": {"name": "preview_image_id", "description": "A unique id for the image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_url": {"name": "preview_image_url", "description": "The location of the image as a URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_image_width": {"name": "preview_image_width", "description": "The original width of the image in pixels (returns null if image not hosted in Shopify).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "preview_status": {"name": "preview_status", "description": "Current status of the preview image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_data\"", "created_at": 1757005803.0812948, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.media_image": {"database": "postgres", "schema": "public", "name": "media_image", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.media_image", "fqn": ["shopify_source", "graphql", "shopify_graphql", "media_image"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_media_image_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_media_image_data\"", "created_at": 1757005803.081942, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_media": {"database": "postgres", "schema": "public", "name": "product_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_media_data\"", "created_at": 1757005803.0825691, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_variant_media": {"database": "postgres", "schema": "public", "name": "product_variant_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_variant_media", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_variant_media"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_variant_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping product variants to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_variant_media_data\"", "created_at": 1757005803.0832286, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.product_tag": {"database": "postgres", "schema": "public", "name": "product_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.product_tag", "fqn": ["shopify_source", "graphql", "shopify_graphql", "product_tag"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_product_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) representing when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_product_tag_data\"", "created_at": 1757005803.0839436, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.shop": {"database": "postgres", "schema": "public", "name": "shop", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.shop", "fqn": ["shopify_source", "graphql", "shopify_graphql", "shop"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_shop_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The shop's street address (or PO Box number).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_api_supported": {"name": "checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code_v_2": {"name": "billing_address_country_code_v_2", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The three letter code for the currency that the shop sells in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_domain_host": {"name": "primary_domain_host", "description": "The host name of the primary domain of the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "contact_email": {"name": "contact_email", "description": "The public-facing contact email address for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "features_storefront": {"name": "features_storefront", "description": "Whether a shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_format": {"name": "currency_formats_money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_in_emails_format": {"name": "currency_formats_money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_with_currency_format": {"name": "currency_formats_money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_formats_money_with_currency_in_emails_format": {"name": "currency_formats_money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "password_enabled": {"name": "password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_domain_localization_default_locale": {"name": "primary_domain_localization_default_locale", "description": "The localization of the domain of the shop's online store, if the domain doesn't redirect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "setup_required": {"name": "setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner_name": {"name": "shop_owner_name", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_shipping": {"name": "tax_shipping", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_abbreviation": {"name": "timezone_abbreviation", "description": "The shop's time zone abbreviation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset": {"name": "timezone_offset", "description": "The shop's time zone offset.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone_offset_minutes": {"name": "timezone_offset_minutes", "description": "The shop's time zone offset expressed as a number of minutes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_shop_data\"", "created_at": 1757005803.084783, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.tender_transaction": {"database": "postgres", "schema": "public", "name": "tender_transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.tender_transaction", "fqn": ["shopify_source", "graphql", "shopify_graphql", "tender_transaction"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_tender_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_code": {"name": "currency_code", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the tender transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tender_transaction_data\"", "created_at": 1757005803.085448, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "abandoned_checkout_discount_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_abandoned_checkout_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index (from 1) representing the application of the discount to the checkout. Use the latest (highest index)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_abandoned_checkout_discount_code_data\"", "created_at": 1757005803.0860856, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.order_discount_code": {"database": "postgres", "schema": "public", "name": "order_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.order_discount_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "order_discount_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_order_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_order_discount_code_data\"", "created_at": 1757005803.086783, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_event": {"database": "postgres", "schema": "public", "name": "fulfillment_event", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_event", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_event"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_event_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delayed: The shipment was delayed. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_event_data\"", "created_at": 1757005803.087465, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.tax_line": {"database": "postgres", "schema": "public", "name": "tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.tax_line", "fqn": ["shopify_source", "graphql", "shopify_graphql", "tax_line"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_amount": {"name": "price_set_pres_amount", "description": "The amount of tax in customer currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_pres_currency_code": {"name": "price_set_pres_currency_code", "description": "The three letter currency code for the tax the customer pays.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_amount": {"name": "price_set_shop_amount", "description": "The amount of tax in shop currency after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set_shop_currency_code": {"name": "price_set_shop_currency_code", "description": "The three letter currency code for the tax from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_tax_line_data\"", "created_at": 1757005803.0881488, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_allocation": {"database": "postgres", "schema": "public", "name": "discount_allocation", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_allocation", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_allocation"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_allocation_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing allocation amounts applied to order lines from discount applications. Discount allocations indicate how much of the discount was applied and how it was split across line items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocated_amount_set_pres_amount": {"name": "allocated_amount_set_pres_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_pres_currency_code": {"name": "allocated_amount_set_pres_currency_code", "description": "The currency code associated with the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_shop_amount": {"name": "allocated_amount_set_shop_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "allocated_amount_set_shop_currency_code": {"name": "allocated_amount_set_shop_currency_code", "description": "The currency code associated with the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of this allocation in the list of discount allocations applied to an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_allocation_data\"", "created_at": 1757005803.0888345, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_application": {"database": "postgres", "schema": "public", "name": "discount_application", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_application", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_application"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_application_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount applications, which define how discounts were applied to an order or shipping line. This includes metadata like allocation method, target type, and value type.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The allocation method used to apply the discount. Valid values include `each` (the discount is applied to each entitled item) and `across` (the discount is applied across all entitled items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Specifies whether the discount applies to all items (`all`) or only entitled ones (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "Indicates whether the discount applies to `line_item` or `shipping_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_amount": {"name": "value_amount", "description": "The numerical value of the discount application. A monetary value in decimal format, allowing for precise representation of cents or fractional currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_currency_code": {"name": "value_currency_code", "description": "The three-letter currency code for the discount that represents a world currency used in a store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_percentage": {"name": "value_percentage", "description": "The percentage discount value that is applied to a line, a number ranging between -100 (free) and 0 (no discount)\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_application_data\"", "created_at": 1757005803.0895033, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_app": {"database": "postgres", "schema": "public", "name": "discount_code_app", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_app", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_app"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_app_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount codes created and managed through apps using Shopify Functions. These app-based discounts support advanced, dynamic behavior and custom targeting.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of times a discount applies on recurring purchases (subscriptions). 0 will apply infinitely. 1 will only apply to the first checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_count": {"name": "codes_count_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_precision": {"name": "codes_count_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_app_data\"", "created_at": 1757005803.0902822, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_basic": {"database": "postgres", "schema": "public", "name": "discount_code_basic", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_basic", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_basic"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_basic_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing basic discount codes and their metadata. This includes usage limits, timeframes, eligible customers, combination rules, and tracked usage.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "Number of billing cycles the discount can be applied for (used for subscriptions).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is an exact number or an estimate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_basic_data\"", "created_at": 1757005803.0909874, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_bxgy": {"database": "postgres", "schema": "public", "name": "discount_code_bxgy", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_bxgy", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_bxgy"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_bxgy_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing Buy X Get Y discount codes, including conditions for what customers must buy, what they receive, and metadata such as usage, status, and combination eligibility.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_bxgy_data\"", "created_at": 1757005803.0916996, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_code_free_shipping": {"database": "postgres", "schema": "public", "name": "discount_code_free_shipping", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_code_free_shipping", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_code_free_shipping"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_code_free_shipping_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing free shipping discount codes and metadata, including subscription and one-time purchase applicability, eligible countries, usage limits, and combination rules.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "The number of billing cycles for which the discount can be applied, which is useful for subscription-based discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_code_free_shipping_data\"", "created_at": 1757005803.0923848, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.discount_redeem_code": {"database": "postgres", "schema": "public", "name": "discount_redeem_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.discount_redeem_code", "fqn": ["shopify_source", "graphql", "shopify_graphql", "discount_redeem_code"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_discount_redeem_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each code is tied to a parent discount and may be created by an app or manually by a merchant.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This value is updated asynchronously and may not match real-time usage counts.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (usually an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount this redeem code is associated with (e.g., `discount_code_basic`, `discount_code_bxgy`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_discount_redeem_code_data\"", "created_at": 1757005803.0930836, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_tracking_info": {"database": "postgres", "schema": "public", "name": "fulfillment_tracking_info", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_tracking_info", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_tracking_info"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_tracking_info_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents tracking information associated with a fulfillment. Used by Shopify to generate clickable tracking numbers and delivery updates.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_id": {"name": "fulfillment_id", "description": "The unique identifier of the fulfillment this tracking info belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The name of the tracking company. For supported carriers, Shopify automatically builds tracking URLs and may update the shipment status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "Tracking number for the fulfillment. If a known tracking company is specified, or the number matches a known format, Shopify may auto-generate a tracking URL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "url": {"name": "url", "description": "Direct URL to track the fulfillment. This is displayed in the Shopify admin and customer notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the tracking information associated with a fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_tracking_info_data\"", "created_at": 1757005803.0937443, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_visit": {"database": "postgres", "schema": "public", "name": "customer_visit", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_visit", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_visit"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_visit_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metadata about a customer's session visiting a Shopify store, including session, landing page, referrer, marketing campaign, and source attribution information. This data helps merchants analyze the effectiveness of marketing campaigns and customer engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "A globally-unique identifier for the customer visit session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order associated with the customer visit, if any.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of marketing tactic associated with the session. Possible values include: abandoned_cart, ad, affiliate, link, loyalty, message, newsletter, notification, post, retargeting, seo, storefront_app, transactional.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page": {"name": "landing_page", "description": "The URL of the first page the customer landed on for the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_page_html": {"name": "landing_page_html", "description": "The landing page URL rendered as HTML with a hyperlink.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "occurred_at": {"name": "occurred_at", "description": "The timestamp when the customer's session occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_code": {"name": "referral_code", "description": "A marketing referral code captured from the landing URL. Supports query params like `ref`, `source`, or `r`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referral_info_html": {"name": "referral_info_html", "description": "Referral info rendered as HTML with URLs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referrer_url": {"name": "referrer_url", "description": "The referring webpage where the customer clicked a link to arrive at the store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The origin of the customer's visit, such as a platform (e.g., Facebook, Google), a QR code, direct, or other attribution channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_description": {"name": "source_description", "description": "A more descriptive label for the visit source; used primarily for the first or last session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_type": {"name": "source_type", "description": "The marketing tactic type, such as ad, seo, newsletter, etc.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_campaign": {"name": "utm_parameters_campaign", "description": "The name of the marketing campaign.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_content": {"name": "utm_parameters_content", "description": "Identifies specific content within a campaign, used to differentiate similar links.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_medium": {"name": "utm_parameters_medium", "description": "The medium of the campaign (e.g., cpc, banner, email).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_source": {"name": "utm_parameters_source", "description": "The traffic source for the campaign (e.g., google, newsletter).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "utm_parameters_term": {"name": "utm_parameters_term", "description": "Search terms associated with paid campaigns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_visit_data\"", "created_at": 1757005803.0944402, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.fulfillment_order_line_item": {"database": "postgres", "schema": "public", "name": "fulfillment_order_line_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.fulfillment_order_line_item", "fqn": ["shopify_source", "graphql", "shopify_graphql", "fulfillment_order_line_item"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_fulfillment_order_line_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Links a fulfillment order to specific items that require fulfillment. Contains detailed product information, quantity tracking, variant metadata, and shipping requirements. This is a core entity for determining which products and how many units are involved in a given fulfillment process.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillment_order_id": {"name": "fulfillment_order_id", "description": "The identifier of the fulfillment order that this line item is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for this fulfillment order line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "Alt text describing the image associated with the line item's variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "The height in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "The unique identifier for the variant image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The url of the variant image used in this fulfillment line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "The width in pixels of the variant image, if hosted by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The identifier of the inventory item being fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_item_id": {"name": "order_line_item_id", "description": "The identifier of the original order line item linked to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_title": {"name": "product_title", "description": "The title of the product at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_variant_id": {"name": "product_variant_id", "description": "The identifier of the product variant associated with this fulfillment item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remaining_quantity": {"name": "remaining_quantity", "description": "The number of units remaining to be fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Indicates whether physical shipping is required for this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The SKU of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_quantity": {"name": "total_quantity", "description": "The total number of units allocated to this fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant at the time of order creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The vendor of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The unit of measurement for the weight of a single item (e.g., grams, ounces).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_value": {"name": "weight_value", "description": "The numeric weight of a single unit of the line item using the specified `weight_unit`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_fulfillment_order_line_item_data\"", "created_at": 1757005803.0958278, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify_graphql.customer_address": {"database": "postgres", "schema": "public", "name": "customer_address", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.customer_address", "fqn": ["shopify_source", "graphql", "shopify_graphql", "customer_address"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_customer_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a customer's mailing address and includes additional geographic metadata.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer to whom this address belongs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the customer address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The first line of the address (e.g., street address or PO Box).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The second line of the address (e.g., apartment, suite, or unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The name of the city, district, village, or town for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "company": {"name": "company", "description": "The company or organization associated with the customer at this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The full country name for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter ISO country code for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_default": {"name": "is_default", "description": "Indicates if this address is the default shipping address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name for this address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude coordinate of the address location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The full name of the customer, derived from first and last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer\u2019s phone number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The name of the region, state, or province for the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The standardized zone or province code for the region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code of the address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "validation_result_summary": {"name": "validation_result_summary", "description": "A summary of address validation results (e.g., match confidence or status).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The timezone associated with the address, if available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "coordinates_validated": {"name": "coordinates_validated", "description": "Indicates whether the latitude and longitude coordinates were validated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_customer_address_data\"", "created_at": 1757005803.0965998, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order": {"database": "postgres", "schema": "public", "name": "order", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order", "fqn": ["shopify_source", "rest", "shopify", "order"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_data", "quoting": {"database": null, "schema": null, "identifier": true, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "app_id": {"name": "app_id", "description": "The ID of the app that created the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city, town, or village of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the region of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "browser_ip": {"name": "browser_ip", "description": "The IP address of the browser used by the customer when they placed the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer consented to receive email updates from the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancel_reason": {"name": "cancel_reason", "description": "The reason why the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cancelled_at": {"name": "cancelled_at", "description": "The date and time when the order was canceled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "(DEPRECATED) The ID of the cart that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time when the order was closed (archived).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The autogenerated date and time when the order was created in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code for the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "The ID of the order's customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "financial_status": {"name": "financial_status", "description": "The status of payments associated with the order. Can only be set when the order is created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "The order's status in terms of fulfilled line items.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the order, used for API purposes. This is different from the order_number property, which is the ID used by the shop owner and customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the buyer landed when they entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the order was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The order name, generated by combining the order_number property with the order prefix and suffix that are set in the merchant's general settings.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "An optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "number": {"name": "number", "description": "The order's position in the shop's count of orders. Numbers are sequential and start at 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_number": {"name": "order_number", "description": "The order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when an order was processed. This value is the date that appears on your orders and that's used in the analytic reports.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website where the customer clicked a link to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city, town, or village of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the region (province, state, prefecture, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the region of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The postal code (zip, postcode, Eircode, \u2026) of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the order originated. Can be set only during order creation, and is not writeable afterwards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the order in the shop currency after discounts but before shipping, taxes, and tips in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Whether taxes are included in the order subtotal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether this is a test order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique token for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total discounts applied to the price of the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of all line item prices in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the order in th shop currency. Must be positive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all line item weights in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the order was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into Shopify POS who processed the order, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_token": {"name": "checkout_token", "description": "(DEPRECATED) A unique value when referencing the checkout that's associated with the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "confirmed": {"name": "confirmed", "description": "Whether inventory has been reserved for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "A two-letter or three-letter language code, optionally followed by a region modifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the order's checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_status_url": {"name": "order_status_url", "description": "The URL pointing to the order status web page, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "total_tip_received": {"name": "total_tip_received", "description": "The sum of all the tips in the order in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The presentment currency that was used to display prices to the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_shipping_price_set": {"name": "total_shipping_price_set", "description": "The total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "client_details_user_agent": {"name": "client_details_user_agent", "description": "Details of the browsing client, including software and operating versions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax applied to the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts_set": {"name": "total_discounts_set", "description": "The total discounts applied to the price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price_set": {"name": "total_line_items_price_set", "description": "The total of all line item prices in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price_set": {"name": "total_price_set", "description": "The total price of the order in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "is_confirmed": {"name": "is_confirmed", "description": "Whether the order is confirmed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_identifier": {"name": "source_identifier", "description": "The ID of the order placed on the originating platform. This value doesn't correspond to the Shopify ID that's generated from a completed draft.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_data\"", "created_at": 1757005803.0976648, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer": {"database": "postgres", "schema": "public", "name": "customer", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer", "fqn": ["shopify_source", "rest", "shopify", "customer"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a customer in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "accepts_marketing": {"name": "accepts_marketing", "description": "Whether the customer has consented to receive marketing material via email. Deprecated and will be coalesced with `email_marketing_consent_state`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the customer was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "default_address_id": {"name": "default_address_id", "description": "The default address for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "first_name": {"name": "first_name", "description": "The customer's first name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A unique identifier for the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "last_name": {"name": "last_name", "description": "The customer's last name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "orders_count": {"name": "orders_count", "description": "The number of orders associated with this customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The unique phone number (E.164 format) for this customer. Attempting to assign the same phone number to multiple customers returns an error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "state": {"name": "state", "description": "The state of the customer's account with a shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_exempt": {"name": "tax_exempt", "description": "Whether the customer is exempt from paying taxes on their order. If true, then taxes won't be applied to an order at checkout. If false, then taxes will be applied at checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_spent": {"name": "total_spent", "description": "The total amount of money that the customer has spent across their order history.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the customer information was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "verified_email": {"name": "verified_email", "description": "Whether the customer has verified their email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_state": {"name": "email_marketing_consent_state", "description": "The current email marketing state for the customer. New version of `accepts_marketing` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_opt_in_level": {"name": "email_marketing_consent_opt_in_level", "description": "The marketing subscription opt-in level, as described in the M3AAWG Sender Best Common Practices, that the customer gave when they consented to receive marketing material by email. New version of `marketing_opt_in_level` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email_marketing_consent_consent_updated_at": {"name": "email_marketing_consent_consent_updated_at", "description": "The date and time when the customer consented to receive marketing material by email. If no date is provided, then the date and time when the consent information was sent is used. New version of `accepts_marketing_updated_at` field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "accepts_marketing_updated_at": {"name": "accepts_marketing_updated_at", "description": "Deprecated. The package will coalesce with `email_marketing_consent_consent_updated_at`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "marketing_opt_in_level": {"name": "marketing_opt_in_level", "description": "Deprecated. The package will coalesce with `email_marketing_consent_opt_in_level`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "note": {"name": "note", "description": "A note about the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_data\"", "created_at": 1757005803.0983922, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line": {"database": "postgres", "schema": "public", "name": "order_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line", "fqn": ["shopify_source", "rest", "shopify", "order_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item for an order in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "fulfillable_quantity": {"name": "fulfillable_quantity", "description": "The amount available to fulfill, calculated as follows: quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity - open_fulfilled_quantity", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_status": {"name": "fulfillment_status", "description": "How far along an order is in terms line items fulfilled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gift_card": {"name": "gift_card", "description": "Whether the item is a gift card. If true, then the item is not taxed or considered for shipping charges.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "The weight of the item in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the line item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the related order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the item before discounts have been applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The number of items that were purchased.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Whether the item requires shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The item's SKU (stock keeping unit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether the item was taxable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount": {"name": "total_discount", "description": "The total amount of the discount allocated to the line item in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_id": {"name": "variant_id", "description": "The ID of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the item's supplier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price": {"name": "pre_tax_price", "description": "The pre tax price of the line item in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_tax_price_set": {"name": "pre_tax_price_set", "description": "The pre tax price of the line item in shop currency and presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The price of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "Tax code applied to the line item. As multiple taxes can apply to a line item, we recommend referring to `stg_shopify__tax_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discount_set": {"name": "total_discount_set", "description": "The total amount allocated to the line item in the presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_title": {"name": "variant_title", "description": "The title of the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "variant_inventory_management": {"name": "variant_inventory_management", "description": "The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "properties": {"name": "properties", "description": "Line item properties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_data\"", "created_at": 1757005803.0992007, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_line_refund": {"database": "postgres", "schema": "public", "name": "order_line_refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_line_refund", "fqn": ["shopify_source", "rest", "shopify", "order_line_refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_line_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a line item refund in Shopify.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique identifier of the line item in the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "TThe unique identifier of the location where the items will be restockedBD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the related line item in the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The quantity of the associated line item that was returned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID of the related refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock_type": {"name": "restock_type", "description": "How this refund line item affects inventory levels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal": {"name": "subtotal", "description": "Subtotal amount of the order line refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The total tax applied to the refund in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_set": {"name": "subtotal_set", "description": "The subtotal of the refund line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax_set": {"name": "total_tax_set", "description": "The total tax of the line item in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_line_refund_data\"", "created_at": 1757005803.0999298, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product": {"database": "postgres", "schema": "public", "name": "product", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product", "fqn": ["shopify_source", "rest", "shopify", "product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product in Shopify.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Whether the record has been deleted in the source system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the product was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique human-friendly string for the product. Automatically generated from the product's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An unsigned 64-bit integer that's used as a unique identifier for the product. Each id is unique across the Shopify system. No two products will have the same id, even if they're from different shops.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_type": {"name": "product_type", "description": "A categorization for the product used for filtering and searching products.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the product is published to the Point of Sale channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "vendor": {"name": "vendor", "description": "The name of the product's vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product. Valid values: - active: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active. - archived: The product is no longer being sold and isn't available to customers on sales channels and apps. - draft: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_data\"", "created_at": 1757005803.1006157, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant": {"database": "postgres", "schema": "public", "name": "product_variant", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant", "fqn": ["shopify_source", "rest", "shopify", "product_variant"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a product variant in Shopify", "columns": {"barcode": {"name": "barcode", "description": "The barcode, UPC, or ISBN number for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "compare_at_price": {"name": "compare_at_price", "description": "The original price of the item before an adjustment or a sale in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the product variant was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_service": {"name": "fulfillment_service", "description": "(DEPRECATED 2025-01-06) The fulfillment service associated with the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "grams": {"name": "grams", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in grams.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique numeric identifier for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The unique identifier for the inventory item, which is used in the Inventory API to query for inventory information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_management": {"name": "inventory_management", "description": "(DEPRECATED 2025-01-06) The fulfillment service that tracks the number of items in stock for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_policy": {"name": "inventory_policy", "description": "Whether customers are allowed to place an order for the product variant when it's out of stock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_quantity": {"name": "inventory_quantity", "description": "An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "old_inventory_quantity": {"name": "old_inventory_quantity", "description": "(DEPRECATED 2025-01-06) Use the InventoryLevel resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_1": {"name": "option_1", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_2": {"name": "option_2", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "option_3": {"name": "option_3", "description": "(DEPRECATED 2025-01-06) The custom properties that a shop owner uses to define product variants. You can define three options for a product variant: option1, option2, option3.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "position": {"name": "position", "description": "The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the product variant in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "The unique numeric identifier for the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "(DEPRECATED 2025-01-06) Use the `requires_shipping` property on the InventoryItem resource instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxable": {"name": "taxable", "description": "Whether a tax is charged when the product variant is sold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_code": {"name": "tax_code", "description": "This parameter applies only to the stores that have the Avalara AvaTax app installed. Specifies the Avalara tax code for the product variant.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the product variant. The title field is a concatenation of the option1, option2, and option3 fields. You can only update title indirectly using the option fields.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the product variant was last modified. Gets returned in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight": {"name": "weight", "description": "(DEPRECATED 2025-01-06) The weight of the product variant in the unit system specified with weight_unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "(DEPRECATED 2025-01-06) The unit of measurement that applies to the product variant's weight. If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "available_for_sale": {"name": "available_for_sale", "description": "Indicates whether the product variant is available for sale.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "display_name": {"name": "display_name", "description": "The display name of the variant, based on the product's title and variant's title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "metafield": {"name": "metafield", "description": "A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_components": {"name": "requires_components", "description": "Indicates whether a product variant requires components.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sellable_online_quantity": {"name": "sellable_online_quantity", "description": "The total sellable quantity of the variant for online channels.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_data\"", "created_at": 1757005803.1013978, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.transaction": {"database": "postgres", "schema": "public", "name": "transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.transaction", "fqn": ["shopify_source", "rest", "shopify", "transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a transaction in Shopify.", "columns": {"id": {"name": "id", "description": "The ID for the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID for the order that the transaction is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "The ID associated with a refund in the refund table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "The amount of money included in the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "authorization": {"name": "authorization", "description": "The authorization code associated with the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the transaction was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time when a transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID for the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The name of the gateway the transaction was issued through.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "The origin of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "A string generated by the payment provider with additional information about why the transaction succeeded or failed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the payment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "parent_id": {"name": "parent_id", "description": "The ID of an associated transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_avs_result_code": {"name": "payment_avs_result_code", "description": "The response code from the address verification system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_bin": {"name": "payment_credit_card_bin", "description": "The issuer identification number (IIN), formerly known as bank identification number (BIN) of the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_cvv_result_code": {"name": "payment_cvv_result_code", "description": "The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_number": {"name": "payment_credit_card_number", "description": "The customer's credit card number, with most of the leading digits redacted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_credit_card_company": {"name": "payment_credit_card_company", "description": "The name of the company that issued the customer's credit card.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The transaction's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt": {"name": "receipt", "description": "A transaction receipt attached to the transaction by the gateway.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_id": {"name": "currency_exchange_id", "description": "The ID of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_adjustment": {"name": "currency_exchange_adjustment", "description": "The difference between the amounts on the associated transaction and the parent transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_original_amount": {"name": "currency_exchange_original_amount", "description": "The amount of the parent transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_final_amount": {"name": "currency_exchange_final_amount", "description": "The amount of the associated transaction in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency_exchange_currency": {"name": "currency_exchange_currency", "description": "The shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "error_code": {"name": "error_code", "description": "A standardized error code, independent of the payment provider.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "authorization_expires_at": {"name": "authorization_expires_at", "description": "The date and time (ISO 8601 format) when the Shopify Payments authorization expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_transaction_data\"", "created_at": 1757005803.1022272, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.refund": {"database": "postgres", "schema": "public", "name": "refund", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.refund", "fqn": ["shopify_source", "rest", "shopify", "refund"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_refund_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a refund within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "Timestamp of the date when the refund was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "User generated note attached to the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "restock": {"name": "restock", "description": "Boolean indicating if the refund is a result of a restock.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "Reference to the user id which generated the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "total_duties_set": {"name": "total_duties_set", "description": "Record representing total duties set for the refund.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the refund is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_refund_data\"", "created_at": 1757005803.102936, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_adjustment": {"database": "postgres", "schema": "public", "name": "order_adjustment", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_adjustment", "fqn": ["shopify_source", "rest", "shopify", "order_adjustment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_adjustment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents and adjustment to and order within Shopify.", "columns": {"id": {"name": "id", "description": "The unique numeric identifier for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Reference to the order which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "refund_id": {"name": "refund_id", "description": "Reference to the refund which the adjustment is associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount": {"name": "amount", "description": "Amount of the adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount": {"name": "tax_amount", "description": "Tax amount applied to the order adjustment in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "kind": {"name": "kind", "description": "The kind of order adjustment (eg. refund, restock, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "reason": {"name": "reason", "description": "The reason for the order adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set": {"name": "amount_set", "description": "Amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_amount_set": {"name": "tax_amount_set", "description": "Tax amount set towards the order adjustment in shop and presentment currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_adjustment_data\"", "created_at": 1757005803.1036036, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout": {"database": "postgres", "schema": "public", "name": "abandoned_checkout", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "abandoned_checkout_url": {"name": "abandoned_checkout_url", "description": "The recovery URL that's sent to a customer so they can recover their checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_1": {"name": "billing_address_address_1", "description": "The street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_address_2": {"name": "billing_address_address_2", "description": "An optional additional field for the street address of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_city": {"name": "billing_address_city", "description": "The city of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_company": {"name": "billing_address_company", "description": "The company of the person associated with the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country": {"name": "billing_address_country", "description": "The name of the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_country_code": {"name": "billing_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_first_name": {"name": "billing_address_first_name", "description": "The first name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_last_name": {"name": "billing_address_last_name", "description": "The last name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_latitude": {"name": "billing_address_latitude", "description": "The latitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_longitude": {"name": "billing_address_longitude", "description": "The longitude of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_name": {"name": "billing_address_name", "description": "The full name of the person associated with the payment method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_phone": {"name": "billing_address_phone", "description": "The phone number at the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province": {"name": "billing_address_province", "description": "The name of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_province_code": {"name": "billing_address_province_code", "description": "The two-letter abbreviation of the state or province of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "billing_address_zip": {"name": "billing_address_zip", "description": "The zip or postal code of the billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "buyer_accepts_marketing": {"name": "buyer_accepts_marketing", "description": "Whether the customer would like to receive email updates from the shop. This is set by the 'I want to receive occasional emails about new products, promotions and other news' checkbox during checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cart_token": {"name": "cart_token", "description": "The ID for the cart that's attached to the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "closed_at": {"name": "closed_at", "description": "The date and time (ISO 8601 format) when the checkout was closed. If the checkout was not closed, then this value is null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the checkout was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) of the shop's default currency at the time of checkout. For the currency that the customer used at checkout, see `presentment_currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer with the abandoned checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_locale": {"name": "customer_locale", "description": "The two or three-letter language code, optionally followed by a region modifier. Example values - en, en-CA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "device_id": {"name": "device_id", "description": "The ID of the Shopify POS device that created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The customer's email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "gateway": {"name": "gateway", "description": "The payment gateway used by the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "landing_site_base_url": {"name": "landing_site_base_url", "description": "The URL for the page where the customer entered the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the physical location where the checkout was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "Checkout order number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "note": {"name": "note", "description": "The text of an optional note that a shop owner can attach to the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The customer's phone number for receiving SMS notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "presentment_currency": {"name": "presentment_currency", "description": "The three-letter code (ISO 4217 format) of the currency that the customer used at checkout. For the shop's default currency, see `currency`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "referring_site": {"name": "referring_site", "description": "The website that referred the customer to the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_1": {"name": "shipping_address_address_1", "description": "The street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_address_2": {"name": "shipping_address_address_2", "description": "An optional additional field for the street address of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_city": {"name": "shipping_address_city", "description": "The city of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_company": {"name": "shipping_address_company", "description": "The company of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country": {"name": "shipping_address_country", "description": "The name of the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_country_code": {"name": "shipping_address_country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) for the country of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_first_name": {"name": "shipping_address_first_name", "description": "The first name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_last_name": {"name": "shipping_address_last_name", "description": "The last name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_latitude": {"name": "shipping_address_latitude", "description": "The latitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_longitude": {"name": "shipping_address_longitude", "description": "The longitude of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_name": {"name": "shipping_address_name", "description": "The full name of the person associated with the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_phone": {"name": "shipping_address_phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province": {"name": "shipping_address_province", "description": "The name of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_province_code": {"name": "shipping_address_province_code", "description": "The two-letter abbreviation of the state or province of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipping_address_zip": {"name": "shipping_address_zip", "description": "The zip or postal code of the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_name": {"name": "source_name", "description": "Where the checkout originated. Valid values include `web`, `pos`, `iphone`, `android`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "subtotal_price": {"name": "subtotal_price", "description": "The price of the checkout in _presentment_ (customer) currency before shipping and taxes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether taxes are included in the price.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "token": {"name": "token", "description": "A unique ID for a checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_discounts": {"name": "total_discounts", "description": "The total amount of discounts to be applied in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_duties": {"name": "total_duties", "description": "The total duties of the checkout in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_line_items_price": {"name": "total_line_items_price", "description": "The sum of the prices of all line items in the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_price": {"name": "total_price", "description": "The sum of line item prices, all discounts, shipping costs, and taxes for the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_tax": {"name": "total_tax", "description": "The sum of all the taxes applied to the checkout in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_weight": {"name": "total_weight", "description": "The sum of all the weights in grams of the line items in the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the checkout was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user who created the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_data\"", "created_at": 1757005803.1046157, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection_product": {"database": "postgres", "schema": "public", "name": "collection_product", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection_product", "fqn": ["shopify_source", "rest", "shopify", "collection_product"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_product_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table relating products to the collections they belong to. Use this instead of the deprecated `COLLECT` table.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "collection_id": {"name": "collection_id", "description": "ID referencing the `collection` the product belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID referencing the `product`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_product_data\"", "created_at": 1757005803.1052477, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.collection": {"database": "postgres", "schema": "public", "name": "collection", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.collection", "fqn": ["shopify_source", "rest", "shopify", "collection"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_collection_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A collection is a grouping of products that merchants can create to make their stores easier to browse. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included (aka a \"smart collection\").\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "disjunctive": {"name": "disjunctive", "description": "Boolean representing whether the `rules` or disjuctive (logical `OR`) or not. True = disjuctive, false = conjunctive (logical `AND`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "handle": {"name": "handle", "description": "A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_at": {"name": "published_at", "description": "The time and date (ISO 8601 format) when the collection was made visible. Returns null for a hidden collection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "published_scope": {"name": "published_scope", "description": "Whether the collection is published to the Point of Sale channel. Valid values `web` (the collection is published to the Online Store channel but not published to the Point of Sale channel) and `global` (the collection is published to both the Online Store channel and the Point of Sale channel).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rules": {"name": "rules", "description": "An array of rules that define what products go into the smart collection. Each rule (`column` -- `relation` --> `condition`) has these properties: - `column`: the property of a product being used to populate the smart collection. Ex: 'tag', 'type', 'vendor', 'variant_price', etc. - `relation`: The comparitive relationship between the column choice, and the condition ('equals', 'contains', 'greater_than', etc.) - condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value. See the [Shopify docs](https://shopify.dev/api/admin-rest/2022-10/resources/smartcollection#resource-object) for more.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sort_order": {"name": "sort_order", "description": "The order of the products in the collection. Valid values inclide - `alpha-asc`: The products are sorted alphabetically from A to Z. - `alpha-des`: The products are sorted alphabetically from Z to A. - `best-selling`: The products are sorted by number of sales. - `created`: The products are sorted by the date they were created, from oldest to newest. - `created-desc`: The products are sorted by the date they were created, from newest to oldest. - `manual`: The products are manually sorted by the shop owner. - `price-asc`: The products are sorted by price from lowest to highest. - `price-desc`: The products are sorted by price from highest to lowest.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the collection", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the collection was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_collection_data\"", "created_at": 1757005803.1059296, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.customer_tag": {"database": "postgres", "schema": "public", "name": "customer_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.customer_tag", "fqn": ["shopify_source", "rest", "shopify", "customer_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_customer_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the customer. A customer can have up to 250 tags.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_id": {"name": "customer_id", "description": "ID of the customer being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_customer_tag_data\"", "created_at": 1757005803.1065598, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment": {"database": "postgres", "schema": "public", "name": "fulfillment", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment", "fqn": ["shopify_source", "rest", "shopify", "fulfillment"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A fulfillment order represents a group of one or more items in an order that will be fulfilled from the same location. A fulfillment represents work that is completed as part of a fulfillment order and can include one or more items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location that the fulfillment was processed at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The uniquely identifying fulfillment name, consisting of two parts separated by a .. The first part represents the order name and the second part represents the fulfillment number. The fulfillment number automatically increments depending on how many fulfillments are in an order (e.g. #1001.1, #1001.2).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The unique numeric identifier for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "receipt_authorization": {"name": "receipt_authorization", "description": "The authorization code from the receipt.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "service": {"name": "service", "description": "The fulfillment service associated with the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shipment_status": {"name": "shipment_status", "description": "The current shipment status of the fulfillment. Valid values include: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was succesfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment. Valid values include: - pending: Shopify has created the fulfillment and is waiting for the third-party fulfillment service to transition it to 'open' or 'success'. - open: The fulfillment has been acknowledged by the service and is in processing. - success: The fulfillment was successful. - cancelled: The fulfillment was cancelled. - error: There was an error with the fulfillment request. - failure: The fulfillment request failed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_company": {"name": "tracking_company", "description": "The name of the tracking company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_number": {"name": "tracking_number", "description": "Primary tracking number for the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_numbers": {"name": "tracking_numbers", "description": "A list of tracking numbers, provided by the shipping company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracking_urls": {"name": "tracking_urls", "description": "The URLs of tracking pages for the fulfillment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_data\"", "created_at": 1757005803.108193, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_item": {"database": "postgres", "schema": "public", "name": "inventory_item", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_item", "fqn": ["shopify_source", "rest", "shopify", "inventory_item"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_item_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory item represents a physical good. It holds essential information about the physical good, including its SKU and whether its inventory is tracked. There is a 1:1 relationship between a product variant and an inventory item.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "country_code_of_origin": {"name": "country_code_of_origin", "description": "The country code (ISO 3166-1 alpha-2) of where the item came from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the inventory item was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code_of_origin": {"name": "province_code_of_origin", "description": "The province code (ISO 3166-2 alpha-2) of where the item came from. The province code is only used if the shipping provider for the inventory item is Canada Post.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_shipping": {"name": "requires_shipping", "description": "Boolean representing whether a customer needs to provide a shipping address when placing an order containing the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "sku": {"name": "sku", "description": "The unique SKU (stock keeping unit) of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked": {"name": "tracked", "description": "Boolean representing whether inventory levels are tracked for the item. If true, then the inventory quantity changes are tracked by Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory item was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "duplicate_sku_count": {"name": "duplicate_sku_count", "description": "The number of inventory items that share the same SKU with this item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "harmonized_system_code": {"name": "harmonized_system_code", "description": "The harmonized system code of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_history_url": {"name": "inventory_history_url", "description": "The URL that points to the inventory history for the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy_resource_id": {"name": "legacy_resource_id", "description": "The ID of the corresponding resource in the REST Admin API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_id": {"name": "measurement_id", "description": "The unique identifier for the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_value": {"name": "measurement_weight_value", "description": "The weight value of the inventory item's measurement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "measurement_weight_unit": {"name": "measurement_weight_unit", "description": "The unit of measurement for the inventory item's weight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_locked": {"name": "tracked_editable_locked", "description": "Indicates whether the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tracked_editable_reason": {"name": "tracked_editable_reason", "description": "Provides the reason why the 'tracked' field for the inventory item is locked from editing.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_amount": {"name": "unit_cost_amount", "description": "Decimal money amount of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "unit_cost_currency_code": {"name": "unit_cost_currency_code", "description": "Currency of the unit cost associated with the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_item_data\"", "created_at": 1757005803.1089308, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_level": {"database": "postgres", "schema": "public", "name": "inventory_level", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_level", "fqn": ["shopify_source", "rest", "shopify", "inventory_level"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_level_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "An inventory level represents the quantities of an inventory item for a location.\nEach inventory level belongs to one inventory item and has one location. For every location where an inventory item can be stocked, there's an inventory level that represents the inventory item's quantities relating to that location.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "available": {"name": "available", "description": "(DEPRECATED 2025-01-06) The available quantity of an inventory item at the inventory level's associated location. Returns null if the inventory item is not tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "location_id": {"name": "location_id", "description": "The ID of the location that the inventory level belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the inventory level was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally unique identifier for the inventory level.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "can_deactivate": {"name": "can_deactivate", "description": "Indicates whether the inventory item can be deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the inventory level was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "deactivation_alert": {"name": "deactivation_alert", "description": "Provides an alert message when the inventory item is deactivated at the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_level_data\"", "created_at": 1757005803.1096494, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.inventory_quantity": {"database": "postgres", "schema": "public", "name": "inventory_quantity", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.inventory_quantity", "fqn": ["shopify_source", "rest", "shopify", "inventory_quantity"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_inventory_quantity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The total quantity of the inventory item available at all locations.", "columns": {"id": {"name": "id", "description": "The unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_item_id": {"name": "inventory_item_id", "description": "The ID of the inventory item associated with this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "inventory_level_id": {"name": "inventory_level_id", "description": "The ID of the inventory level where this item is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the inventory state associated with the record. [Link to list of expected values](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "quantity": {"name": "quantity", "description": "The available quantity of the inventory item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp of the last update to the inventory record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_inventory_quantity_data\"", "created_at": 1757005803.110326, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.location": {"database": "postgres", "schema": "public", "name": "location", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.location", "fqn": ["shopify_source", "rest", "shopify", "location"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_location_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "A location represents a geographical location where your stores, pop-up stores, headquarters, and warehouses exist.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "active": {"name": "active", "description": "Boolean representing whether the location is active. If true, then the location can be used to sell products, stock inventory, and fulfill orders.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_1": {"name": "address_1", "description": "The location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the location's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country the location is in (two-letter code).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter code (ISO 3166-1 alpha-2 format) corresponding to country the location is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "Full name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the location was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "legacy": {"name": "legacy", "description": "Boolean representing whether this is a fulfillment service location. If true, then the location is a fulfillment service location. If false, then the location was created by the merchant and isn't tied to a fulfillment service.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_country_name": {"name": "localized_country_name", "description": "The localized name of the location's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "localized_province_name": {"name": "localized_province_name", "description": "The localized name of the location's region. Typically a province, state, or district.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number of the location. This value can contain special characters, such as - or +.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province, state, or district of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The province, state, or district code (ISO 3166-2 alpha-2 format) of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the location was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_location_data\"", "created_at": 1757005803.1110966, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.metafield": {"database": "postgres", "schema": "public", "name": "metafield", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.metafield", "fqn": ["shopify_source", "rest", "shopify", "metafield"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_metafield_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the metafield was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A description of the information that the metafield contains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The unique ID of the metafield.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "key": {"name": "key", "description": "The key of the metafield. Keys can be up to 64 characters long and can contain alphanumeric characters, hyphens, underscores, and periods.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "namespace": {"name": "namespace", "description": "A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. Must have between 3-255 characters.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_id": {"name": "owner_id", "description": "The unique ID of the resource that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "owner_resource": {"name": "owner_resource", "description": "The type of resource (table) that the metafield is attached to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of data that the metafield stores in the `value` field. Refer to the [list](https://shopify.dev/apps/metafields/types) of supported types. Use this instead of `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the metafield was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The data to store in the metafield. The value is always stored as a string, regardless of the metafield's type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "DEPRECATED as of [June 2022](https://fivetran.com/docs/applications/shopify/changelog#june2022). Use `type` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_metafield_data\"", "created_at": 1757005803.111786, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_note_attribute": {"database": "postgres", "schema": "public", "name": "order_note_attribute", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_note_attribute", "fqn": ["shopify_source", "rest", "shopify", "order_note_attribute"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_note_attribute_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing custom attributes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "name": {"name": "name", "description": "Name of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID referencing the order the note attribute belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the attribute.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_note_attribute_data\"", "created_at": 1757005803.112412, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_line": {"database": "postgres", "schema": "public", "name": "order_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_line", "fqn": ["shopify_source", "rest", "shopify", "order_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the shipping details that the customer chose for their order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in the shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price_set": {"name": "discounted_price_set", "description": "The pre-tax shipping price with discounts applied (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "A globally-unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the associated order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "Returns the price of the shipping line in shop currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "Returns the price of the shipping line (JSON) in presentment and shop currencies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "Returns the rate source for the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "Returns the title of the shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_line_data\"", "created_at": 1757005803.113099, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_shipping_tax_line": {"database": "postgres", "schema": "public", "name": "order_shipping_tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_shipping_tax_line", "fqn": ["shopify_source", "rest", "shopify", "order_shipping_tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_shipping_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents taxes associated with order shipping lines.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (from 1) representing the order of shipping lines per order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_shipping_line_id": {"name": "order_shipping_line_id", "description": "ID of the order shipping line this recod is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns (JSON).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_shipping_tax_line_data\"", "created_at": 1757005803.1137576, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_tag": {"database": "postgres", "schema": "public", "name": "order_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_tag", "fqn": ["shopify_source", "rest", "shopify", "order_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the order.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_tag_data\"", "created_at": 1757005803.1143804, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_url_tag": {"database": "postgres", "schema": "public", "name": "order_url_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_url_tag", "fqn": ["shopify_source", "rest", "shopify", "order_url_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_url_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Key-value tags that the shop owner has attached to the order url.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "key": {"name": "key", "description": "Key of the tag pair.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "ID of the order url being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_url_tag_data\"", "created_at": 1757005803.1150246, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media": {"database": "postgres", "schema": "public", "name": "media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media", "fqn": ["shopify_source", "rest", "shopify", "media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing media metadata, including status and timestamps.", "columns": {"id": {"name": "id", "description": "The unique identifier for the media associated with a product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the product image, indicating its availability or processing state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time when the media was created. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time when the media was last modified. The API returns this value in ISO 8601 format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_data\"", "created_at": 1757005803.1157227, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.media_image": {"database": "postgres", "schema": "public", "name": "media_image", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.media_image", "fqn": ["shopify_source", "rest", "shopify", "media_image"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_media_image_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing image-specific properties for media assets.", "columns": {"media_id": {"name": "media_id", "description": "The unique identifier for the media associated with the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_id": {"name": "image_id", "description": "Unique numeric identifier of the product image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_alt_text": {"name": "image_alt_text", "description": "A word or phrase to share the nature or contents of an image.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_height": {"name": "image_height", "description": "Height dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_width": {"name": "image_width", "description": "Width dimension of the image which is determined on upload.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "image_url": {"name": "image_url", "description": "The URL of the product image, hashed for privacy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_media_image_data\"", "created_at": 1757005803.1163535, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_media": {"database": "postgres", "schema": "public", "name": "product_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_media", "fqn": ["shopify_source", "rest", "shopify", "product_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping products to their associated media.", "columns": {"product_id": {"name": "product_id", "description": "The id of the product associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_media_data\"", "created_at": 1757005803.1169884, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_variant_media": {"database": "postgres", "schema": "public", "name": "product_variant_media", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_variant_media", "fqn": ["shopify_source", "rest", "shopify", "product_variant_media"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_variant_media_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table mapping product variants to their associated media.", "columns": {"product_variant_id": {"name": "product_variant_id", "description": "The id of the product variant associated with the media.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "media_id": {"name": "media_id", "description": "The unique identifier for the media asset linked to the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_variant_media_data\"", "created_at": 1757005803.117624, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.product_tag": {"database": "postgres", "schema": "public", "name": "product_tag", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.product_tag", "fqn": ["shopify_source", "rest", "shopify", "product_tag"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_product_tag_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Tags that the shop owner has attached to the product.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "Index (starting from 1) represnting when the tag was placed on the product.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "product_id": {"name": "product_id", "description": "ID of the product being tagged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "Value of the tag.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_product_tag_data\"", "created_at": 1757005803.1182482, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.shop": {"database": "postgres", "schema": "public", "name": "shop", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.shop", "fqn": ["shopify_source", "rest", "shopify", "shop"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_shop_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The Shop resource is a collection of general business and store management settings and information about the store.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "address_2": {"name": "address_2", "description": "The optional second line of the shop's street address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_api_supported": {"name": "checkout_api_supported", "description": "Boolean representing whether the shop is capable of accepting payments directly through the Checkout API.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The shop's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "cookie_consent_level": {"name": "cookie_consent_level", "description": "The cookie consent level defined on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The shop's country. In most cases, this value matches the country_code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_code": {"name": "country_code", "description": "The two-letter country code corresponding to the shop's country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country_name": {"name": "country_name", "description": "The shop's normalized country name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "county_taxes": {"name": "county_taxes", "description": "Boolean representing whether the shop is applying taxes on a per-county basis. Only applicable to shops based in the US. Either `true` or `null` (not false, according to Shopify API docs).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601) when the shop was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the shop's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_email": {"name": "customer_email", "description": "The contact email used for communication between the shop owner and the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "domain": {"name": "domain", "description": "The shop's domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_card_reader_giveaway": {"name": "eligible_for_card_reader_giveaway", "description": "Boolean representing whether the shop is eligible to receive a free credit card reader from Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "eligible_for_payments": {"name": "eligible_for_payments", "description": "Boolean representing whether the shop is eligible to use Shopify Payments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "email": {"name": "email", "description": "The contact email used for communication between Shopify and the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "enabled_presentment_currencies": {"name": "enabled_presentment_currencies", "description": "An array of of enabled currencies (ISO 4217 format) that the shop accepts. Merchants can enable currencies from their Shopify Payments settings in the Shopify Admin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "force_ssl": {"name": "force_ssl", "description": "DEPRECATED.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_domain": {"name": "google_apps_domain", "description": "The GSuite URL for the store, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "google_apps_login_enabled": {"name": "google_apps_login_enabled", "description": "Boolean representing whether the GSuite login is enabled. Shops with this feature will be able to log in through the GSuite login page. Valid values are `true` and `null`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_discounts": {"name": "has_discounts", "description": "Boolean representing whether any active discounts exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_gift_cards": {"name": "has_gift_cards", "description": "Boolean representing whether any active gift cards exist for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "has_storefront": {"name": "has_storefront", "description": "Boolean representing whether this shop has an online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "iana_timezone": {"name": "iana_timezone", "description": "The name of the timezone assigned by the [IANA](https://www.iana.org/time-zones).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID for the shop. A 64-bit unsigned integer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "The latitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "The longitude of the shop's location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_format": {"name": "money_format", "description": "A string representing the way currency is formatted when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_in_emails_format": {"name": "money_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency isn't specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_format": {"name": "money_with_currency_format", "description": "A string representing the way currency is formatted when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "money_with_currency_in_emails_format": {"name": "money_with_currency_in_emails_format", "description": "A string representing the way currency is formatted in email notifications when the currency is specified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "multi_location_enabled": {"name": "multi_location_enabled", "description": "DEPRECATED and hard-coded to `true`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "myshopify_domain": {"name": "myshopify_domain", "description": "The shop's .myshopify.com domain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "name": {"name": "name", "description": "The name of the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "password_enabled": {"name": "password_enabled", "description": "Boolean representing whether the password protection page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The contact phone number for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_display_name": {"name": "plan_display_name", "description": "The display name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "plan_name": {"name": "plan_name", "description": "The name of the Shopify plan the shop is on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "pre_launch_enabled": {"name": "pre_launch_enabled", "description": "Boolen representing whether the pre-launch page is enabled on the shop's online store.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_locale": {"name": "primary_locale", "description": "The shop's primary locale, as configured in the language settings of the shop's theme.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "primary_location_id": {"name": "primary_location_id", "description": "DEPRECATED. Formerly used for the ID of the shipping origin location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The shop's normalized province or state name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province_code": {"name": "province_code", "description": "The two- or three-letter code for the shop's province or state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requires_extra_payments_agreement": {"name": "requires_extra_payments_agreement", "description": "Boolean representing whether the shop requires an extra Shopify Payments agreement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "setup_required": {"name": "setup_required", "description": "Boolean representing whether the shop has any outstanding setup steps.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_owner": {"name": "shop_owner", "description": "The username of the shop owner.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The handle of the partner account that referred the merchant to Shopify, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "tax_shipping": {"name": "tax_shipping", "description": "Boolean representing whether taxes are charged for shipping. Valid values are true or false.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "taxes_included": {"name": "taxes_included", "description": "Boolean representing whether applicable taxes are included in product prices. Valid values are true or null.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "timezone": {"name": "timezone", "description": "The name of the timezone the shop is in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601) when the shop was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "weight_unit": {"name": "weight_unit", "description": "The default unit of weight measurement for the shop.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The shop's zip or postal code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_shop_data\"", "created_at": 1757005803.1191757, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tender_transaction": {"database": "postgres", "schema": "public", "name": "tender_transaction", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tender_transaction", "fqn": ["shopify_source", "rest", "shopify", "tender_transaction"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tender_transaction_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each tender transaction represents money passing between the merchant and a customer. A tender transaction with a positive amount represents a transaction where the customer paid money to the merchant. A negative amount represents a transaction where the merchant refunded money back to the customer. Tender transactions represent transactions that modify the shop's balance.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the tender transaction in the shop's currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "currency": {"name": "currency", "description": "The three-letter code (ISO 4217 format) for the currency used for the tender transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "The ID of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that the tender transaction belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "payment_method": {"name": "payment_method", "description": "Information about the payment method used for this transaction. Valid values include: - credit_card - cash - android_pay - apple_pay - google_pay - samsung_pay - shopify_pay - amazon - klarna - paypal - unknown - other\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "processed_at": {"name": "processed_at", "description": "The date and time (ISO 8601 format) when the tender transaction was processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "remote_reference": {"name": "remote_reference", "description": "The remote (gateway) reference associated with the tender.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "test": {"name": "test", "description": "Whether the tender transaction is a test transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "user_id": {"name": "user_id", "description": "The ID of the user logged into the Shopify POS device that processed the tender transaction, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tender_transaction_data\"", "created_at": 1757005803.1198928, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_discount_code": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_discount_code", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Abandoned checkouts that applied a discount code.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount of the discount in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "When the checkout discount application was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "ID of the discount. Deprecated, use `code` instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index (from 1) representing the application of the discount to the checkout. Use the latest (highest index)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Valid values - percentage, shipping, fixed_amount. (default - fixed_amount)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "When the checkout's discount was last updated", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_discount_code_data\"", "created_at": 1757005803.1205685, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.order_discount_code": {"database": "postgres", "schema": "public", "name": "order_discount_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.order_discount_code", "fqn": ["shopify_source", "rest", "shopify", "order_discount_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_order_discount_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Discount codes placed on orders.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The amount that's deducted from the order total.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "This property returns the discount code that was entered at checkout. Otherwise this property returns the title of the discount that was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "Associated order ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount - `fixed_amount`, `percentage`, or `shipping`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Pairs with `order_id` to provide unique identifier for order discount code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_order_discount_code_data\"", "created_at": 1757005803.1211946, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.abandoned_checkout_shipping_line": {"database": "postgres", "schema": "public", "name": "abandoned_checkout_shipping_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.abandoned_checkout_shipping_line", "fqn": ["shopify_source", "rest", "shopify", "abandoned_checkout_shipping_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_abandoned_checkout_shipping_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Shipping lines associated with abandoned checkouts.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "carrier_identifier": {"name": "carrier_identifier", "description": "A reference to the carrier service that provided the rate. Present when the rate was computed by a third-party carrier service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "checkout_id": {"name": "checkout_id", "description": "ID of the checkout that was abandoned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "A reference to the shipping method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_category": {"name": "delivery_category", "description": "The general classification of the delivery method.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range": {"name": "delivery_expectation_range", "description": "Expected delivery date range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_max": {"name": "delivery_expectation_range_max", "description": "Latest expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_range_min": {"name": "delivery_expectation_range_min", "description": "Earliest possible expected delivery date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "delivery_expectation_type": {"name": "delivery_expectation_type", "description": "Type of expected delivery.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discounted_price": {"name": "discounted_price", "description": "The pre-tax shipping price with discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "Unique ID of the abandoned checkout shipping line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "Index of the line amongst shipping lines for this checkout.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "original_shop_price": {"name": "original_shop_price", "description": "The pre-tax shipping price without any discounts applied in _presentment_ (customer) currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "phone": {"name": "phone", "description": "The phone number at the shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The price of the shipping method in presentment currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "requested_fulfillment_service_id": {"name": "requested_fulfillment_service_id", "description": "The fulfillment service requested for the shipping method. Present if the shipping method requires processing by a third party fulfillment service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source": {"name": "source", "description": "The channel where the checkout originated. Example value - shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The title of the shipping method. Example value - International Shipping.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_abandoned_checkout_shipping_line_data\"", "created_at": 1757005803.1219425, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.fulfillment_event": {"database": "postgres", "schema": "public", "name": "fulfillment_event", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.fulfillment_event", "fqn": ["shopify_source", "rest", "shopify", "fulfillment_event"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_fulfillment_event_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The FulfillmentEvent resource represents tracking events that belong to a fulfillment of one or more items in an order. Fulfillment events are displayed on the order status page to update customers on the status of their shipment.\n", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean representing whether the record was soft-deleted in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "address_1": {"name": "address_1", "description": "The street address where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "city": {"name": "city", "description": "The city where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "country": {"name": "country", "description": "The country where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "estimated_delivery_at": {"name": "estimated_delivery_at", "description": "The estimated delivery date based on the fulfillment's tracking number, as long as it's provided by one of the following carriers: USPS, FedEx, UPS, or Canada Post (Canada only). Value is `null` if no tracking number is available or if the tracking number is from an unsupported carrier. This property is available only when carrier calculated rates are in use.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "fulfillment_id": {"name": "fulfillment_id", "description": "An ID for the fulfillment that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "happened_at": {"name": "happened_at", "description": "The date and time (ISO 8601 format) when the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "id": {"name": "id", "description": "An ID for the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "latitude": {"name": "latitude", "description": "A geographic coordinate specifying the latitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "longitude": {"name": "longitude", "description": "A geographic coordinate specifying the longitude of the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "message": {"name": "message", "description": "An arbitrary message describing the status. Can be provided by a shipping carrier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "province": {"name": "province", "description": "The province where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "shop_id": {"name": "shop_id", "description": "An ID for the shop that's associated with the fulfillment event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the fulfillment event. Valid values: - label_printed: A label for the shipment was purchased and printed. - label_purchased: A label for the shipment was purchased, but not printed. - attempted_delivery: Delivery of the shipment was attempted, but unable to be completed. - ready_for_pickup: The shipment is ready for pickup at a shipping depot. - picked_up: The fulfillment was successfully picked up. - confirmed: The carrier is aware of the shipment, but hasn't received it yet. - in_transit: The shipment is being transported between shipping facilities on the way to its destination. - out_for_delivery: The shipment is being delivered to its final destination. - delivered: The shipment was successfully delivered. - failure: Something went wrong when pulling tracking information for the shipment, such as the tracking number was invalid or the shipment was canceled.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The date and time (ISO 8601 format) when the fulfillment event was updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "zip": {"name": "zip", "description": "The zip code of the location where the fulfillment event occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_fulfillment_event_data\"", "created_at": 1757005803.1226885, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.tax_line": {"database": "postgres", "schema": "public", "name": "tax_line", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.tax_line", "fqn": ["shopify_source", "rest", "shopify", "tax_line"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_tax_line_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents a single tax applied to the associated line item.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "index": {"name": "index", "description": "The index of the tax line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The order line that this tax line is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price": {"name": "price", "description": "The amount of tax, in shop currency, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "price_set": {"name": "price_set", "description": "The amount of tax, in shop and presentment currencies, after discounts and before returns.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "rate": {"name": "rate", "description": "The proportion of the line item price that the tax represents as a decimal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the tax.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_tax_line_data\"", "created_at": 1757005803.1233313, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_allocation": {"database": "postgres", "schema": "public", "name": "discount_allocation", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_allocation", "fqn": ["shopify_source", "rest", "shopify", "discount_allocation"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_allocation_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing allocation amounts applied to order lines from discount applications. Discount allocations indicate how much of the discount was applied and how it was split across line items.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "amount": {"name": "amount", "description": "The total amount discounted on the order line from this allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_amount": {"name": "amount_set_presentment_money_amount", "description": "The presentment money amount of the discount allocation in the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_presentment_money_currency_code": {"name": "amount_set_presentment_money_currency_code", "description": "The currency code associated with the customer\u2019s local currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_amount": {"name": "amount_set_shop_money_amount", "description": "The shop money amount of the discount allocation in the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "amount_set_shop_money_currency_code": {"name": "amount_set_shop_money_currency_code", "description": "The currency code associated with the store\u2019s currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_application_index": {"name": "discount_application_index", "description": "Index of the discount application this allocation relates to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of this allocation in the list of discount allocations applied to an order line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_line_id": {"name": "order_line_id", "description": "The ID of the order line item receiving the allocation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_allocation_data\"", "created_at": 1757005803.1240938, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_application": {"database": "postgres", "schema": "public", "name": "discount_application", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_application", "fqn": ["shopify_source", "rest", "shopify", "discount_application"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_application_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount applications, which define how discounts were applied to an order. This includes metadata like allocation method, target type, and value type.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "allocation_method": {"name": "allocation_method", "description": "The allocation method used to apply the discount. Valid values include `each` (the discount is applied to each entitled item) and `across` (the discount is applied across all entitled items).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The discount code applied, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "description": {"name": "description", "description": "A short description of the discount, usually derived from the associated rule or promotion.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The index of the discount application on the order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "order_id": {"name": "order_id", "description": "The ID of the order to which the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_selection": {"name": "target_selection", "description": "Specifies whether the discount applies to all items (`all`) or only entitled ones (`entitled`).\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "target_type": {"name": "target_type", "description": "Indicates whether the discount applies to `line_item` or `shipping_line`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The name of the discount as displayed in Shopify.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "type": {"name": "type", "description": "The type of discount. Possible values include `manual`, `automatic`, or `script`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value": {"name": "value", "description": "The numerical value of the discount. This may be a flat amount or a percentage, depending on `value_type`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "value_type": {"name": "value_type", "description": "Indicates whether the discount is a `percentage` or a `fixed_amount`. When the target type is `shipping_line`, only `percentage` is allowed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_application_data\"", "created_at": 1757005803.1247907, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_app": {"database": "postgres", "schema": "public", "name": "discount_code_app", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_app", "fqn": ["shopify_source", "rest", "shopify", "discount_code_app"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_app_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing discount codes created and managed through apps using Shopify Functions. These app-based discounts support advanced, dynamic behavior and custom targeting.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_count": {"name": "codes_count_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count_precision": {"name": "codes_count_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_app_data\"", "created_at": 1757005803.12548, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_basic": {"database": "postgres", "schema": "public", "name": "discount_code_basic", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_basic", "fqn": ["shopify_source", "rest", "shopify", "discount_code_basic"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_basic_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing basic discount codes and their metadata. This includes usage limits, timeframes, eligible customers, combination rules, and tracked usage.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "recurring_cycle_limit": {"name": "recurring_cycle_limit", "description": "Number of billing cycles the discount can be applied for (used for subscriptions).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is an exact number or an estimate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_basic_data\"", "created_at": 1757005803.1262197, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_bxgy": {"database": "postgres", "schema": "public", "name": "discount_code_bxgy", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_bxgy", "fqn": ["shopify_source", "rest", "shopify", "discount_code_bxgy"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_bxgy_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing Buy X Get Y discount codes, including conditions for what customers must buy, what they receive, and metadata such as usage, status, and combination eligibility.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The availability status of the discount (e.g., active, expired, scheduled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "uses_per_order_limit": {"name": "uses_per_order_limit", "description": "The maximum number of times the discount can be applied to a single order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_bxgy_data\"", "created_at": 1757005803.1269116, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_code_free_shipping": {"database": "postgres", "schema": "public", "name": "discount_code_free_shipping", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_code_free_shipping", "fqn": ["shopify_source", "rest", "shopify", "discount_code_free_shipping"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_code_free_shipping_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing free shipping discount codes and metadata, including subscription and one-time purchase applicability, eligible countries, usage limits, and combination rules.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "Unique identifier for the discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "title": {"name": "title", "description": "The discount's name displayed in Shopify admin and to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "status": {"name": "status", "description": "The status of the discount, indicating whether it's active, expired, or scheduled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_at": {"name": "created_at", "description": "The timestamp when the discount was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "updated_at": {"name": "updated_at", "description": "The timestamp when the discount was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "starts_at": {"name": "starts_at", "description": "The timestamp when the discount becomes active and is available to customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "ends_at": {"name": "ends_at", "description": "The timestamp when the discount expires and is no longer valid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_once_per_customer": {"name": "applies_once_per_customer", "description": "Whether a customer can only use the discount once.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_one_time_purchase": {"name": "applies_on_one_time_purchase", "description": "Whether the discount applies to one-time purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "applies_on_subscription": {"name": "applies_on_subscription", "description": "Whether the discount applies to subscription purchases.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times the discount has been used, updated asynchronously.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "usage_limit": {"name": "usage_limit", "description": "The maximum number of times the discount can be used across all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_count": {"name": "codes_count", "description": "The number of redeemable codes generated for this discount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "codes_precision": {"name": "codes_precision", "description": "Indicates whether the codes count is exact or estimated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_order_discounts": {"name": "combines_with_order_discounts", "description": "Whether this discount can be combined with order discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_product_discounts": {"name": "combines_with_product_discounts", "description": "Whether this discount can be combined with product discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "combines_with_shipping_discounts": {"name": "combines_with_shipping_discounts", "description": "Whether this discount can be combined with shipping discounts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "customer_selection_all_customers": {"name": "customer_selection_all_customers", "description": "Whether the discount is available to all customers.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_amount": {"name": "total_sales_amount", "description": "The total sales amount from orders where the discount was applied.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "total_sales_currency_code": {"name": "total_sales_currency_code", "description": "The currency code for the total sales amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_code_free_shipping_data\"", "created_at": 1757005803.1276393, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}, "source.shopify_source.shopify.discount_redeem_code": {"database": "postgres", "schema": "public", "name": "discount_redeem_code", "resource_type": "source", "package_name": "shopify_source", "path": "models/rest/src_shopify.yml", "original_file_path": "models/rest/src_shopify.yml", "unique_id": "source.shopify_source.shopify.discount_redeem_code", "fqn": ["shopify_source", "rest", "shopify", "discount_redeem_code"], "source_name": "shopify", "source_description": "", "loader": "", "identifier": "shopify_discount_redeem_code_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table storing individual redeem codes that customers can use at checkout to receive a discount. Each code is tied to a parent discount and may be created by an app or manually by a merchant.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "The time when a record was last updated by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.shopify_source._fivetran_synced"]}, "id": {"name": "id", "description": "The unique ID of the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "async_usage_count": {"name": "async_usage_count", "description": "The number of times that the redeem code has been used. This value is updated asynchronously and may not match real-time usage counts.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "code": {"name": "code", "description": "The redeemable code that a customer can enter at checkout (e.g., `SUMMER20`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_description": {"name": "created_by_description", "description": "A descriptive label of the app or user who created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_id": {"name": "created_by_id", "description": "The internal ID of the app or user that created the redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "created_by_title": {"name": "created_by_title", "description": "The name or title of the creator of the redeem code (usually an app name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_id": {"name": "discount_id", "description": "The unique ID of the parent discount associated with this redeem code.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "discount_type": {"name": "discount_type", "description": "The type of discount this redeem code is associated with (e.g., `discount_code_basic`, `discount_code_bxgy`).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": true, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_discount_redeem_code_data\"", "created_at": 1757005803.1282928, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}}, "macros": {"macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1245391, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1255553, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.126181, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1268024, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1277142, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1285598, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1289096, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1295762, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1303058, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1318843, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.132275, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1329033, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1334248, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1342535, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n {% if relation.type == 'materialized_view' -%}\n {% set relation_type = \"materialized view\" %}\n {%- else -%}\n {%- set relation_type = relation.type -%}\n {%- endif -%}\n comment on {{ relation_type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1350029, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1361551, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1365657, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1368089, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1371455, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1374254, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1385891, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.138905, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\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 when 'm' then 'MATERIALIZED 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 where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- 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', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\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{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1408868, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1415937, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1420012, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1423557, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1425898, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.142813, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1430285, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1433203, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.144107, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1450393, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1460598, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.146476, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.150524, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n update {{ target }}\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }}::text = {{ target }}.{{ columns.dbt_scd_id }}::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n {% if config.get(\"dbt_valid_to_current\") %}\n and ({{ target }}.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }} or {{ target }}.{{ columns.dbt_valid_to }} is null);\n {% else %}\n and {{ target }}.{{ columns.dbt_valid_to }} is null;\n {% endif %}\n\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1526864, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1535373, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_microbatch_sql": {"name": "postgres__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_microbatch_sql", "macro_sql": "{% macro postgres__get_incremental_microbatch_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"dbt-postgres 'microbatch' requires a `unique_key` config\") }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_merge_sql", "macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1541595, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1545007, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1547885, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.155772, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1560497, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1563816, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1570148, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}{{ ';' if not loop.last else \"\" }}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1578474, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1588871, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }}\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\t{{ ';' if not loop.last else \"\" }}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1599195, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config.model) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1604865, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.16079, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1611269, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1613958, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1627214, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1635208, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1638572, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1642468, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1645863, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1650965, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1660032, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.167277, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1676137, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {#-- This ensures microbatch batches get unique temp relations to avoid clobbering --#}\n {% if suffix == '__dbt_tmp' and model.batch %}\n {% set suffix = suffix ~ '_' ~ model.batch.id %}\n {% endif %}\n\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1683471, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1689143, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.16938, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1699991, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1704834, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation.render() }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1708713, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1713347, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.17249, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1729317, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.173208, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1751966, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1754375, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1757884, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1760156, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1766877, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1770973, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1773496, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.177807, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation.render() }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1782122, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1786675, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation.render() }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.179073, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1795213, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.180825, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1811886, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1816816, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.182123, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation.render() ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1844592, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.185021, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1854637, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1863594, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1866467, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1869566, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1877327, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1880927, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.188356, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.188681, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1889346, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.190446, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1909726, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.191368, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1918802, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1922388, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1925752, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1929297, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.193506, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1939192, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1944838, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.194863, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1951678, "supported_languages": null}, "macro.dbt.get_catalog_for_single_relation": {"name": "get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_for_single_relation", "macro_sql": "{% macro get_catalog_for_single_relation(relation) %}\n {{ return(adapter.dispatch('get_catalog_for_single_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_catalog_for_single_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1955369, "supported_languages": null}, "macro.dbt.default__get_catalog_for_single_relation": {"name": "default__get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_for_single_relation", "macro_sql": "{% macro default__get_catalog_for_single_relation(relation) %}\n {{ exceptions.raise_not_implemented(\n 'get_catalog_for_single_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1958594, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1961825, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.196477, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.196886, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1972203, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1978343, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1982093, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1985419, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1989, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.1997473, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.20054, "supported_languages": null}, "macro.dbt.collect_freshness_custom_sql": {"name": "collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness_custom_sql", "macro_sql": "{% macro collect_freshness_custom_sql(source, loaded_at_query) %}\n {{ return(adapter.dispatch('collect_freshness_custom_sql', 'dbt')(source, loaded_at_query))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness_custom_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2009368, "supported_languages": null}, "macro.dbt.default__collect_freshness_custom_sql": {"name": "default__collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness_custom_sql", "macro_sql": "{% macro default__collect_freshness_custom_sql(source, loaded_at_query) %}\n {% call statement('collect_freshness_custom_sql', fetch_result=True, auto_begin=False) -%}\n with source_query as (\n {{ loaded_at_query }}\n )\n select\n (select * from source_query) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n {% endcall %}\n {{ return(load_result('collect_freshness_custom_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2015498, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header is not none -%}\n {{ sql_header }}\n {%- endif %}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2022614, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "\n{%- macro get_limit_subquery_sql(sql, limit) -%}\n {{ adapter.dispatch('get_limit_sql', 'dbt')(sql, limit) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_limit_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2026508, "supported_languages": null}, "macro.dbt.default__get_limit_sql": {"name": "default__get_limit_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_sql", "macro_sql": "{% macro default__get_limit_sql(sql, limit) %}\n {{ sql }}\n {% if limit is not none %}\n limit {{ limit }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2031455, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2039897, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2042785, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2045813, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2047937, "supported_languages": null}, "macro.dbt.get_snapshot_get_time_data_type": {"name": "get_snapshot_get_time_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.get_snapshot_get_time_data_type", "macro_sql": "{% macro get_snapshot_get_time_data_type() %}\n {% set snapshot_time = adapter.dispatch('snapshot_get_time', 'dbt')() %}\n {% set time_data_type_sql = 'select ' ~ snapshot_time ~ ' as dbt_snapshot_time' %}\n {% set snapshot_time_column_schema = get_column_schema_from_query(time_data_type_sql) %}\n {% set time_data_type = snapshot_time_column_schema[0].dtype %}\n {{ return(time_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt_postgres.postgres__snapshot_get_time", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2055888, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2059188, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.206074, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.206391, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2067335, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2088249, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2091305, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2097273, "supported_languages": null}, "macro.dbt.get_list_of_column_names": {"name": "get_list_of_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_list_of_column_names", "macro_sql": "\n\n{%- macro get_list_of_column_names(columns) -%}\n {% set col_names = [] %}\n {% for col in columns %}\n {% do col_names.append(col.name) %}\n {% endfor %}\n {{ return(col_names) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2102811, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2107112, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2111032, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2114496, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n {{ cast('null', col['data_type']) }} as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2137663, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2144127, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2147787, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2154357, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2158816, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation.render() }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation.render() }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation.render() }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation.render() }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2171214, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2176166, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation.render() }}\n\n {% for column in add_columns %}\n add column {{ column.quoted }} {{ 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.quoted }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2191095, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2196126, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.21986, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2203176, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.22054, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2212157, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2215562, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2219908, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2224708, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2226987, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2232025, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2234793, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2240245, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2242982, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.224828, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.225215, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.225704, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2259147, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2263792, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.226704, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2272742, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2277884, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2280762, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2284985, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2286713, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2291155, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2294233, "supported_languages": null}, "macro.dbt.date": {"name": "date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.date", "macro_sql": "{% macro date(year, month, day) %}\n {{ return(adapter.dispatch('date', 'dbt') (year, month, day)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.230026, "supported_languages": null}, "macro.dbt.default__date": {"name": "default__date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.default__date", "macro_sql": "{% macro default__date(year, month, day) -%}\n {%- set dt = modules.datetime.date(year, month, day) -%}\n {%- set iso_8601_formatted_date = dt.strftime('%Y-%m-%d') -%}\n to_date('{{ iso_8601_formatted_date }}', 'YYYY-MM-DD')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2305791, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2310102, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2311666, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2317023, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2319715, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2325017, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.232902, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.233425, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2337086, "supported_languages": null}, "macro.dbt.cast": {"name": "cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.cast", "macro_sql": "{% macro cast(field, type) %}\n {{ return(adapter.dispatch('cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.234217, "supported_languages": null}, "macro.dbt.default__cast": {"name": "default__cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.default__cast", "macro_sql": "{% macro default__cast(field, type) %}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2344732, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2351744, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2356637, "supported_languages": null}, "macro.dbt.equals": {"name": "equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.equals", "macro_sql": "{% macro equals(expr1, expr2) %}\n {{ return(adapter.dispatch('equals', 'dbt') (expr1, expr2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2362673, "supported_languages": null}, "macro.dbt.default__equals": {"name": "default__equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.default__equals", "macro_sql": "{% macro default__equals(expr1, expr2) -%}\n{%- if adapter.behavior.enable_truthy_nulls_equals_macro.no_warn %}\n case when (({{ expr1 }} = {{ expr2 }}) or ({{ expr1 }} is null and {{ expr2 }} is null))\n then 0\n else 1\n end = 0\n{%- else -%}\n ({{ expr1 }} = {{ expr2 }})\n{%- endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2368526, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.237705, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2384758, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.239743, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2400405, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2403505, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2406704, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2409847, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2412767, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2416105, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.242065, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.242379, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2426906, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2430031, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2432847, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2436128, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2438943, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2444084, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2446837, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2456033, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2467315, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2471719, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.247885, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2487133, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.249505, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2498832, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2508974, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2514875, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.251834, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2524152, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2530706, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2536745, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.254009, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2544775, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2547076, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.256097, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.258379, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.259924, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2603679, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2628376, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2639585, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2645342, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2651148, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2661211, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2665915, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2671394, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2687724, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2691517, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2694342, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.26973, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2700107, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2705808, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2711651, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2717707, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.272558, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n merge into {{ target.render() }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }} = DBT_INTERNAL_DEST.{{ columns.dbt_scd_id }}\n\n when matched\n {% if config.get(\"dbt_valid_to_current\") %}\n\t{% set source_unique_key = (\"DBT_INTERNAL_DEST.\" ~ columns.dbt_valid_to) | trim %}\n\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\tand ({{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null)\n\n {% else %}\n and DBT_INTERNAL_DEST.{{ columns.dbt_valid_to }} is null\n {% endif %}\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2743108, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n\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 {# The model['config'] parameter below is no longer used, but passing anyway for compatibility #}\n {# It was a dictionary of config, instead of the config object from the context #}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", model['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 build_or_select_sql = build_sql %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\n\n {{ adapter.assert_valid_snapshot_target_given_strategy(target_relation, columns, strategy) }}\n\n {% set build_or_select_sql = snapshot_staging_table(strategy, sql, target_relation) %}\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 remove_columns = ['dbt_change_type', 'DBT_CHANGE_TYPE', 'dbt_unique_key', 'DBT_UNIQUE_KEY'] %}\n {% if unique_key | is_list %}\n {% for key in strategy.unique_key %}\n {{ remove_columns.append('dbt_unique_key_' + loop.index|string) }}\n {{ remove_columns.append('DBT_UNIQUE_KEY_' + loop.index|string) }}\n {% endfor %}\n {% endif %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'in', remove_columns)\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', 'in', remove_columns)\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\n {{ check_time_data_types(build_or_select_sql) }}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_staging_table", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.check_time_data_types", "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": 1757005794.2820487, "supported_languages": ["sql"]}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2860816, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2864244, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2868986, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set primary_key = config.get('unique_key') %}\n {% set updated_at = config.get('updated_at') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\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 }}.{{ columns.dbt_valid_from }} < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2888079, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2891364, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2894678, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2921593, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set check_cols_config = config.get('check_cols') %}\n {% set primary_key = config.get('unique_key') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set updated_at = config.get('updated_at') or 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_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2950501, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.298882, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation.render() }} add column {{ adapter.quote(column.name) }} {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2995303, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.2998724, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3000586, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3003461, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3006003, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.300999, "supported_languages": null}, "macro.dbt.get_snapshot_table_column_names": {"name": "get_snapshot_table_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_snapshot_table_column_names", "macro_sql": "{% macro get_snapshot_table_column_names() %}\n {{ return({'dbt_valid_to': 'dbt_valid_to', 'dbt_valid_from': 'dbt_valid_from', 'dbt_scd_id': 'dbt_scd_id', 'dbt_updated_at': 'dbt_updated_at', 'dbt_is_deleted': 'dbt_is_deleted'}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3014727, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n {% if strategy.hard_deletes == 'new_record' %}\n {% set new_scd_id = snapshot_hash_arguments([columns.dbt_scd_id, snapshot_get_time()]) %}\n {% endif %}\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }}\n from {{ target_relation }}\n where\n {% if config.get('dbt_valid_to_current') %}\n\t\t{% set source_unique_key = columns.dbt_valid_to | trim %}\n\t\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\n\t\t{# The exact equals semantics between NULL values depends on the current behavior flag set. Also, update records if the source field is null #}\n ( {{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null )\n {% else %}\n {{ columns.dbt_valid_to }} is null\n {% endif %}\n\n ),\n\n insertions_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }},\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }}\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_to }}\n\n from snapshot_query\n ),\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n\n deletes_source_data as (\n\n select *, {{ unique_key_fields(strategy.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 {%- if strategy.hard_deletes == 'new_record' -%}\n ,'False' as {{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from insertions_source_data as source_data\n left outer join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"snapshotted_data\") }}\n or ({{ unique_key_is_not_null(strategy.unique_key, \"snapshotted_data\") }} and (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from updates_source_data as source_data\n join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n )\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n ,\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_to }},\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n and not (\n --avoid updating the record's valid_to if the latest entry is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n {%- endif %}\n )\n {%- endif %}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n {% set snapshotted_cols = get_list_of_column_names(get_columns_in_relation(target_relation)) %}\n {% set source_sql_cols = get_column_schema_from_query(source_sql) %}\n ,\n deletion_records as (\n\n select\n 'insert' as dbt_change_type,\n {#\n If a column has been added to the source it won't yet exist in the\n snapshotted table so we insert a null value as a placeholder for the column.\n #}\n {%- for col in source_sql_cols -%}\n {%- if col.name in snapshotted_cols -%}\n snapshotted_data.{{ adapter.quote(col.column) }},\n {%- else -%}\n NULL as {{ adapter.quote(col.column) }},\n {%- endif -%}\n {% endfor -%}\n {%- if strategy.unique_key | is_list -%}\n {%- for key in strategy.unique_key -%}\n snapshotted_data.{{ key }} as dbt_unique_key_{{ loop.index }},\n {% endfor -%}\n {%- else -%}\n snapshotted_data.dbt_unique_key as dbt_unique_key,\n {% endif -%}\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n snapshotted_data.{{ columns.dbt_valid_to }} as {{ columns.dbt_valid_to }},\n {{ new_scd_id }} as {{ columns.dbt_scd_id }},\n 'True' as {{ columns.dbt_is_deleted }}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n and not (\n --avoid inserting a new record if the latest one is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and snapshotted_data.{{ columns.dbt_valid_to }} is null\n )\n\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletes\n {%- endif %}\n {%- if strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletion_records\n {%- endif %}\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments", "macro.dbt.snapshot_get_time", "macro.dbt.unique_key_fields", "macro.dbt.equals", "macro.dbt.get_dbt_valid_to_current", "macro.dbt.unique_key_join_on", "macro.dbt.unique_key_is_null", "macro.dbt.unique_key_is_not_null", "macro.dbt.get_list_of_column_names", "macro.dbt.get_columns_in_relation", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3094277, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3098485, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n\n select *,\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , 'False' as {{ columns.dbt_is_deleted }}\n {% endif -%}\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.get_dbt_valid_to_current"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3108826, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3117306, "supported_languages": null}, "macro.dbt.get_updated_at_column_data_type": {"name": "get_updated_at_column_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_updated_at_column_data_type", "macro_sql": "{% macro get_updated_at_column_data_type(snapshot_sql) %}\n {% set snapshot_sql_column_schema = get_column_schema_from_query(snapshot_sql) %}\n {% set dbt_updated_at_data_type = null %}\n {% set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {% set ns.dbt_updated_at_data_type = null -%}\n {% for column in snapshot_sql_column_schema %}\n {% if ((column.column == 'dbt_updated_at') or (column.column == 'DBT_UPDATED_AT')) %}\n {% set ns.dbt_updated_at_data_type = column.dtype %}\n {% endif %}\n {% endfor %}\n {{ return(ns.dbt_updated_at_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3128846, "supported_languages": null}, "macro.dbt.check_time_data_types": {"name": "check_time_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.check_time_data_types", "macro_sql": "{% macro check_time_data_types(sql) %}\n {% set dbt_updated_at_data_type = get_updated_at_column_data_type(sql) %}\n {% set snapshot_get_time_data_type = get_snapshot_get_time_data_type() %}\n {% if snapshot_get_time_data_type is not none and dbt_updated_at_data_type is not none and snapshot_get_time_data_type != dbt_updated_at_data_type %}\n {% if exceptions.warn_snapshot_timestamp_data_types %}\n {{ exceptions.warn_snapshot_timestamp_data_types(snapshot_get_time_data_type, dbt_updated_at_data_type) }}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_updated_at_column_data_type", "macro.dbt.get_snapshot_get_time_data_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3137162, "supported_languages": null}, "macro.dbt.get_dbt_valid_to_current": {"name": "get_dbt_valid_to_current", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_dbt_valid_to_current", "macro_sql": "{% macro get_dbt_valid_to_current(strategy, columns) %}\n {% set dbt_valid_to_current = config.get('dbt_valid_to_current') or \"null\" %}\n coalesce(nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}), {{dbt_valid_to_current}})\n as {{ columns.dbt_valid_to }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.31426, "supported_languages": null}, "macro.dbt.unique_key_fields": {"name": "unique_key_fields", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_fields", "macro_sql": "{% macro unique_key_fields(unique_key) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n {{ key }} as dbt_unique_key_{{ loop.index }}\n {%- if not loop.last %} , {%- endif %}\n {% endfor %}\n {% else %}\n {{ unique_key }} as dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3149397, "supported_languages": null}, "macro.dbt.unique_key_join_on": {"name": "unique_key_join_on", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_join_on", "macro_sql": "{% macro unique_key_join_on(unique_key, identifier, from_identifier) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n\t {% set source_unique_key = (identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {% set target_unique_key = (from_identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {{ equals(source_unique_key, target_unique_key) }}\n {%- if not loop.last %} and {%- endif %}\n {% endfor %}\n {% else %}\n {{ identifier }}.dbt_unique_key = {{ from_identifier }}.dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.316044, "supported_languages": null}, "macro.dbt.unique_key_is_null": {"name": "unique_key_is_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_null", "macro_sql": "{% macro unique_key_is_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is null\n {% else %}\n {{ identifier }}.dbt_unique_key is null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3164532, "supported_languages": null}, "macro.dbt.unique_key_is_not_null": {"name": "unique_key_is_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_not_null", "macro_sql": "{% macro unique_key_is_not_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is not null\n {% else %}\n {{ identifier }}.dbt_unique_key is not null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3168855, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation.render())) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3217974, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3236094, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.325332, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3258095, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation.render() %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.326784, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3271568, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.327425, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3277209, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3279562, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3282669, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3284974, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3294208, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3297954, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.332209, "supported_languages": null}, "macro.dbt.materialization_unit_default": {"name": "materialization_unit_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/unit.sql", "original_file_path": "macros/materializations/tests/unit.sql", "unique_id": "macro.dbt.materialization_unit_default", "macro_sql": "{%- materialization unit, default -%}\n\n {% set relations = [] %}\n\n {% set expected_rows = config.get('expected_rows') %}\n {% set expected_sql = config.get('expected_sql') %}\n {% set tested_expected_column_names = expected_rows[0].keys() if (expected_rows | length ) > 0 else get_columns_in_query(sql) %}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {% do run_query(get_create_table_as_sql(True, temp_relation, get_empty_subquery_sql(sql))) %}\n {%- set columns_in_relation = adapter.get_columns_in_relation(temp_relation) -%}\n {%- set column_name_to_data_types = {} -%}\n {%- set column_name_to_quoted = {} -%}\n {%- for column in columns_in_relation -%}\n {%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n {%- do column_name_to_quoted.update({column.name|lower: column.quoted}) -%}\n {%- endfor -%}\n\n {%- set expected_column_names_quoted = [] -%}\n {%- for column_name in tested_expected_column_names -%}\n {%- do expected_column_names_quoted.append(column_name_to_quoted[column_name|lower]) -%}\n {%- endfor -%}\n\n {% if not expected_sql %}\n {% set expected_sql = get_expected_sql(expected_rows, column_name_to_data_types, column_name_to_quoted) %}\n {% endif %}\n {% set unit_test_sql = get_unit_test_sql(sql, expected_sql, expected_column_names_quoted) %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ unit_test_sql }}\n\n {%- endcall %}\n\n {% do adapter.drop_relation(temp_relation) %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt.make_temp_relation", "macro.dbt.run_query", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_empty_subquery_sql", "macro.dbt.get_expected_sql", "macro.dbt.get_unit_test_sql", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3358064, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3368404, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.337437, "supported_languages": null}, "macro.dbt.get_unit_test_sql": {"name": "get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_unit_test_sql", "macro_sql": "{% macro get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n {{ adapter.dispatch('get_unit_test_sql', 'dbt')(main_sql, expected_fixture_sql, expected_column_names) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_unit_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3378594, "supported_languages": null}, "macro.dbt.default__get_unit_test_sql": {"name": "default__get_unit_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_unit_test_sql", "macro_sql": "{% macro default__get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n-- Build actual result given inputs\nwith dbt_internal_unit_test_actual as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%},{% endif %}{%- endfor -%}, {{ dbt.string_literal(\"actual\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ main_sql }}\n ) _dbt_internal_unit_test_actual\n),\n-- Build expected result\ndbt_internal_unit_test_expected as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%}, {% endif %}{%- endfor -%}, {{ dbt.string_literal(\"expected\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ expected_fixture_sql }}\n ) _dbt_internal_unit_test_expected\n)\n-- Union actual and expected results\nselect * from dbt_internal_unit_test_actual\nunion all\nselect * from dbt_internal_unit_test_expected\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3390546, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3396785, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3404143, "supported_languages": null}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n {% set limit = config.get('limit') %}\n\n {% set sql_with_limit %}\n {{ get_limit_subquery_sql(sql, limit) }}\n {% endset %}\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\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql_with_limit) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {# Since the test failures have already been saved to the database, reuse that result rather than querying again #}\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_with_limit %}\n\n {% endif %}\n\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 {# The limit has already been included above, and we do not want to duplicate it again. We also want to be safe for macro overrides treating `limit` as a required parameter. #}\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit=none)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3448126, "supported_languages": ["sql"]}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3477826, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3485272, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.349009, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation.render() ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation.render() ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3514743, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.351934, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3531861, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3571146, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n {% do create_indexes(intermediate_relation) %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3610735, "supported_languages": ["sql"]}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation.render() ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% if target_relation.database == defer_relation.database and\n target_relation.schema == defer_relation.schema and\n target_relation.identifier == defer_relation.identifier %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation.render()) }}\n {% else %}\n {% call statement('main') %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endcall %}\n {% endif %}\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.36596, "supported_languages": ["sql"]}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3665645, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation.render() }} clone {{ defer_relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3669024, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3673468, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3675992, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% set relation_for_indexes = target_relation %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set relation_for_indexes = intermediate_relation %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% set relation_for_indexes = temp_relation %}\n {% set contract_config = config.get('contract') %}\n {% if not contract_config or not contract_config.enforced %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {% endif %}\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_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(relation_for_indexes) %}\n {% endif %}\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 {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.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": 1757005794.3757377, "supported_languages": ["sql"]}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3773243, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3783836, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3796566, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3801038, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.381481, "supported_languages": null}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3837223, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3860564, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3884585, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3900862, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3921084, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set source_unique_key = (\"DBT_INTERNAL_SOURCE.\" ~ unique_key) | trim %}\n\t {% set target_unique_key = (\"DBT_INTERNAL_DEST.\" ~ unique_key) | trim %}\n\t {% set unique_key_match = equals(source_unique_key, target_unique_key) | trim %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.395414, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.395928, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is string %}\n {% set unique_key = [unique_key] %}\n {% endif %}\n\n {%- set unique_key_str = unique_key|join(', ') -%}\n\n delete from {{ target }} as DBT_INTERNAL_DEST\n where ({{ unique_key_str }}) in (\n select distinct {{ unique_key_str }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3973238, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.397848, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.3990755, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4002736, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4007444, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4011123, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.401684, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.402043, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4026117, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4029672, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.403475, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4038439, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.404132, "supported_languages": null}, "macro.dbt.get_incremental_microbatch_sql": {"name": "get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_microbatch_sql", "macro_sql": "{% macro get_incremental_microbatch_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_microbatch_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_microbatch_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.404483, "supported_languages": null}, "macro.dbt.default__get_incremental_microbatch_sql": {"name": "default__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_microbatch_sql", "macro_sql": "{% macro default__get_incremental_microbatch_sql(arg_dict) %}\n\n {{ exceptions.raise_not_implemented('microbatch materialization strategy not implemented for adapter ' + adapter.type()) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4050984, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4056637, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.406747, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.407438, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4081714, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4088547, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.409349, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.410159, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4106853, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4112322, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.412558, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4128647, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n\n {#\n We want to get the string of the returned relation by calling .render() in order to skip sample/empty\n mode rendering logic. However, people override the default ref macro, and often return a string instead\n of a relation (like the ref macro does by default). Thus, to make sure we dont blow things up, we have\n to ensure the resolved relation has a .render() method.\n #}\n {%- if resolved.render is defined and resolved.render is callable -%}\n {%- set resolved = resolved.render() -%}\n {%- endif -%}\n\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4146793, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4154513, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4165752, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4174542, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.417624, "supported_languages": null}, "macro.dbt.get_fixture_sql": {"name": "get_fixture_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_fixture_sql", "macro_sql": "{% macro get_fixture_sql(rows, column_name_to_data_types) %}\n-- Fixture for {{ model.name }}\n{% set default_row = {} %}\n\n{%- if not column_name_to_data_types -%}\n{#-- Use defer_relation IFF it is available in the manifest and 'this' is missing from the database --#}\n{%- set this_or_defer_relation = defer_relation if (defer_relation and not load_relation(this)) else this -%}\n{%- set columns_in_relation = adapter.get_columns_in_relation(this_or_defer_relation) -%}\n\n{%- set column_name_to_data_types = {} -%}\n{%- set column_name_to_quoted = {} -%}\n{%- for column in columns_in_relation -%}\n\n{#-- This needs to be a case-insensitive comparison --#}\n{%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n{%- do column_name_to_quoted.update({column.name|lower: column.quoted}) -%}\n{%- endfor -%}\n{%- endif -%}\n\n{%- if not column_name_to_data_types -%}\n {{ exceptions.raise_compiler_error(\"Not able to get columns for unit test '\" ~ model.name ~ \"' from relation \" ~ this ~ \" because the relation doesn't exist\") }}\n{%- endif -%}\n\n{%- for column_name, column_type in column_name_to_data_types.items() -%}\n {%- do default_row.update({column_name: (safe_cast(\"null\", column_type) | trim )}) -%}\n{%- endfor -%}\n\n{{ validate_fixture_rows(rows, row_number) }}\n\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\n{%- set default_row_copy = default_row.copy() -%}\n{%- do default_row_copy.update(formatted_row) -%}\nselect\n{%- for column_name, column_value in default_row_copy.items() %} {{ column_value }} as {{ column_name_to_quoted[column_name] }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n\n{%- if (rows | length) == 0 -%}\n select\n {%- for column_name, column_value in default_row.items() %} {{ column_value }} as {{ column_name_to_quoted[column_name] }}{% if not loop.last -%},{%- endif %}\n {%- endfor %}\n limit 0\n{%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.safe_cast", "macro.dbt.validate_fixture_rows", "macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4225824, "supported_languages": null}, "macro.dbt.get_expected_sql": {"name": "get_expected_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_expected_sql", "macro_sql": "{% macro get_expected_sql(rows, column_name_to_data_types, column_name_to_quoted) %}\n\n{%- if (rows | length) == 0 -%}\n select * from dbt_internal_unit_test_actual\n limit 0\n{%- else -%}\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\nselect\n{%- for column_name, column_value in formatted_row.items() %} {{ column_value }} as {{ column_name_to_quoted[column_name] }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.423705, "supported_languages": null}, "macro.dbt.format_row": {"name": "format_row", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.format_row", "macro_sql": "\n\n{%- macro format_row(row, column_name_to_data_types) -%}\n {#-- generate case-insensitive formatted row --#}\n {% set formatted_row = {} %}\n {%- for column_name, column_value in row.items() -%}\n {% set column_name = column_name|lower %}\n\n {%- if column_name not in column_name_to_data_types %}\n {#-- if user-provided row contains column name that relation does not contain, raise an error --#}\n {% set fixture_name = \"expected output\" if model.resource_type == 'unit_test' else (\"'\" ~ model.name ~ \"'\") %}\n {{ exceptions.raise_compiler_error(\n \"Invalid column name: '\" ~ column_name ~ \"' in unit test fixture for \" ~ fixture_name ~ \".\"\n \"\\nAccepted columns for \" ~ fixture_name ~ \" are: \" ~ (column_name_to_data_types.keys()|list)\n ) }}\n {%- endif -%}\n\n {%- set column_type = column_name_to_data_types[column_name] %}\n\n {#-- sanitize column_value: wrap yaml strings in quotes, apply cast --#}\n {%- set column_value_clean = column_value -%}\n {%- if column_value is string -%}\n {%- set column_value_clean = dbt.string_literal(dbt.escape_single_quotes(column_value)) -%}\n {%- elif column_value is none -%}\n {%- set column_value_clean = 'null' -%}\n {%- endif -%}\n\n {%- set row_update = {column_name: safe_cast(column_value_clean, column_type) } -%}\n {%- do formatted_row.update(row_update) -%}\n {%- endfor -%}\n {{ return(formatted_row) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.string_literal", "macro.dbt.escape_single_quotes", "macro.dbt.safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.425846, "supported_languages": null}, "macro.dbt.validate_fixture_rows": {"name": "validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.validate_fixture_rows", "macro_sql": "{%- macro validate_fixture_rows(rows, row_number) -%}\n {{ return(adapter.dispatch('validate_fixture_rows', 'dbt')(rows, row_number)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__validate_fixture_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4262567, "supported_languages": null}, "macro.dbt.default__validate_fixture_rows": {"name": "default__validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.default__validate_fixture_rows", "macro_sql": "{%- macro default__validate_fixture_rows(rows, row_number) -%}\n {# This is an abstract method for adapter overrides as needed #}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.426449, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4273236, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.428193, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4286165, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation.render() }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4292023, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.429795, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4302032, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4308789, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4313622, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4319596, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.43247, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4332557, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4341462, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4349947, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation.render() }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4357612, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4361265, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.43653, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.436911, "supported_languages": null}, "macro.dbt.drop_schema_named": {"name": "drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.drop_schema_named", "macro_sql": "{% macro drop_schema_named(schema_name) %}\n {{ return(adapter.dispatch('drop_schema_named', 'dbt') (schema_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_schema_named"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4375575, "supported_languages": null}, "macro.dbt.default__drop_schema_named": {"name": "default__drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.default__drop_schema_named", "macro_sql": "{% macro default__drop_schema_named(schema_name) %}\n {% set schema_relation = api.Relation.create(schema=schema_name) %}\n {{ adapter.drop_schema(schema_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4379773, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.438999, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation.type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4412951, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4418974, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4422936, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.44367, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4439137, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.444939, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.445263, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.44555, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4479604, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4487042, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4493494, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4498703, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4501574, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.450847, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4511604, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.451527, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation.render() }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4524782, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{- adapter.dispatch('drop_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4529686, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4532137, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4541545, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4544427, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4565694, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4569511, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation.render() ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4574196, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4580095, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4582748, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4587858, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4590733, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.459578, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.45986, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.460837, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4612007, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4617472, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.462032, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{- adapter.dispatch('drop_materialized_view', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4624922, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4628701, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4633737, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4636965, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4641938, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4644792, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.46565, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4660087, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4668503, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4681559, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4690506, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4694073, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4697738, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{- adapter.dispatch('drop_table', 'dbt')(relation) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4702349, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4704773, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4709868, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4712725, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4720724, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4725525, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4732792, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4739063, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4759817, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4770737, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.478163, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4786975, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.479175, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.479389, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4796164, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4803584, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4806857, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4809902, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4813287, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4816525, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.481953, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4825318, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.482833, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4832242, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4840376, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4844892, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4848394, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.485165, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4854581, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4857998, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.487948, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.496446, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4971628, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4974384, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4977212, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.4979844, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.498256, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5037043, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5044756, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5052087, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.506318, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5074842, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.508095, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5083218, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5085669, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.508776, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5089822, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5097454, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5104356, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5114114, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5117118, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5122569, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5128262, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5130887, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5133417, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.513613, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5138676, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5147955, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5167136, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5172613, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5174751, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5177007, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5179079, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5190384, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.519536, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5200505, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5205474, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.521018, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5215476, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5220668, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5225437, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.523838, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5258348, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5272481, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.528619, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.528942, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.529258, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5295877, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5328329, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5335796, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.534312, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5347354, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5351748, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5361562, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5364995, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.538065, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.53898, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5413983, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5439088, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.544662, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5457933, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5465689, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5469172, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.547238, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5475774, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5478978, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5482361, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5489933, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.549461, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5496943, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5499024, "supported_languages": null}, "macro.shopify_source.get_order_discount_code_columns": {"name": "get_order_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_discount_code_columns.sql", "original_file_path": "macros/get_order_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_order_discount_code_columns", "macro_sql": "{% macro get_order_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5514596, "supported_languages": null}, "macro.shopify_source.get_graphql_order_discount_code_columns": {"name": "get_graphql_order_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_discount_code_columns.sql", "original_file_path": "macros/get_order_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_discount_code_columns", "macro_sql": "{% macro get_graphql_order_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.552711, "supported_languages": null}, "macro.shopify_source.shopify_union_data": {"name": "shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.shopify_union_data", "macro_sql": "{%- macro shopify_union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases', shopify_model_api='rest') -%}\n\n{{ adapter.dispatch('shopify_union_data', 'shopify_source') (\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 shopify_model_api\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__shopify_union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.5551088, "supported_languages": null}, "macro.shopify_source.default__shopify_union_data": {"name": "default__shopify_union_data", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/shopify_union_data.sql", "original_file_path": "macros/shopify_union_data.sql", "unique_id": "macro.shopify_source.default__shopify_union_data", "macro_sql": "{%- macro default__shopify_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 shopify_model_api\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + ('_gql_' if shopify_model_api == 'graphql' else '_') + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema ~ ('_graphql' if shopify_model_api == 'graphql' else ''), table_identifier).database,\n schema=source(default_schema ~ ('_graphql' if shopify_model_api == 'graphql' else ''), table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6122968, "supported_languages": null}, "macro.shopify_source.get_transaction_columns": {"name": "get_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_transaction_columns.sql", "original_file_path": "macros/get_transaction_columns.sql", "unique_id": "macro.shopify_source.get_transaction_columns", "macro_sql": "{% macro get_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"payment_avs_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_bin\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_cvv_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"receipt\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_exchange_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_adjustment\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_original_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_final_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"error_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"authorization_expires_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{% if target.type in ('redshift','postgres') %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"quote\": True, \"alias\": \"authorization_code\"}) }}\n{% else %}\n {{ columns.append({\"name\": \"authorization\", \"datatype\": dbt.type_string(), \"alias\": \"authorization_code\"}) }}\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6200042, "supported_languages": null}, "macro.shopify_source.get_graphql_transaction_columns": {"name": "get_graphql_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_transaction_columns.sql", "original_file_path": "macros/get_transaction_columns.sql", "unique_id": "macro.shopify_source.get_graphql_transaction_columns", "macro_sql": "{% macro get_graphql_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"authorization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"authorization_expires_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"error_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_avs_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_bin\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_credit_card_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_cvv_result_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"receipt_json\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_exchange_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_adjustment\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_original_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_final_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"currency_exchange_currency\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6251872, "supported_languages": null}, "macro.shopify_source.get_order_shipping_tax_line_columns": {"name": "get_order_shipping_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_tax_line_columns.sql", "original_file_path": "macros/get_order_shipping_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_tax_line_columns", "macro_sql": "{% macro get_order_shipping_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_shipping_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.627098, "supported_languages": null}, "macro.shopify_source.get_graphql_order_shipping_tax_line_columns": {"name": "get_graphql_order_shipping_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_tax_line_columns.sql", "original_file_path": "macros/get_order_shipping_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_shipping_tax_line_columns", "macro_sql": "{% macro get_graphql_order_shipping_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_shipping_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6289282, "supported_languages": null}, "macro.shopify_source.get_discount_allocation_columns": {"name": "get_discount_allocation_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_allocation_columns.sql", "original_file_path": "macros/get_discount_allocation_columns.sql", "unique_id": "macro.shopify_source.get_discount_allocation_columns", "macro_sql": "{% macro get_discount_allocation_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_presentment_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_money_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_money_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_application_index\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6310885, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_allocation_columns": {"name": "get_graphql_discount_allocation_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_allocation_columns.sql", "original_file_path": "macros/get_discount_allocation_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_allocation_columns", "macro_sql": "{% macro get_graphql_discount_allocation_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocated_amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"allocated_amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"allocated_amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"allocated_amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_application_index\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6326246, "supported_languages": null}, "macro.shopify_source.get_shop_columns": {"name": "get_shop_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_shop_columns.sql", "original_file_path": "macros/get_shop_columns.sql", "unique_id": "macro.shopify_source.get_shop_columns", "macro_sql": "{% macro get_shop_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_api_supported\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"cookie_consent_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"county_taxes\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_card_reader_giveaway\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"eligible_for_payments\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"enabled_presentment_currencies\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"google_apps_login_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_gift_cards\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"has_storefront\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"iana_timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"money_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"money_with_currency_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"myshopify_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"password_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"plan_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"pre_launch_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"primary_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_extra_payments_agreement\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"setup_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"shop_owner\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6427455, "supported_languages": null}, "macro.shopify_source.get_graphql_shop_columns": {"name": "get_graphql_shop_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_shop_columns.sql", "original_file_path": "macros/get_shop_columns.sql", "unique_id": "macro.shopify_source.get_graphql_shop_columns", "macro_sql": "{% macro get_graphql_shop_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code_v_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_api_supported\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"contact_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_with_currency_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_formats_money_with_currency_in_emails_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"enabled_presentment_currencies\", \"datatype\": dbt.type_string()},\n {\"name\": \"features_storefront\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"iana_timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"myshopify_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"password_enabled\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"plan_display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_domain_host\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_domain_localization_default_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"setup_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"shop_owner_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"timezone_abbreviation\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_offset\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_offset_minutes\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.649167, "supported_languages": null}, "macro.shopify_source.get_media_columns": {"name": "get_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_columns.sql", "original_file_path": "macros/get_media_columns.sql", "unique_id": "macro.shopify_source.get_media_columns", "macro_sql": "{% macro get_media_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}, \n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()}, \n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()} \n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.650472, "supported_languages": null}, "macro.shopify_source.get_graphql_media_columns": {"name": "get_graphql_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_columns.sql", "original_file_path": "macros/get_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_media_columns", "macro_sql": "{% macro get_graphql_media_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6515596, "supported_languages": null}, "macro.shopify_source.get_discount_application_columns": {"name": "get_discount_application_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_application_columns.sql", "original_file_path": "macros/get_discount_application_columns.sql", "unique_id": "macro.shopify_source.get_discount_application_columns", "macro_sql": "{% macro get_discount_application_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocation_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"target_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value\", \"datatype\": dbt.type_float()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6542063, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_application_columns": {"name": "get_graphql_discount_application_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_application_columns.sql", "original_file_path": "macros/get_discount_application_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_application_columns", "macro_sql": "{% macro get_graphql_discount_application_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allocation_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"target_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"value_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_percentage\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6559923, "supported_languages": null}, "macro.shopify_source.get_discount_code_app_columns": {"name": "get_discount_code_app_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_app_columns.sql", "original_file_path": "macros/get_discount_code_app_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_app_columns", "macro_sql": "{% macro get_discount_code_app_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6601508, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_app_columns": {"name": "get_graphql_discount_code_app_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_app_columns.sql", "original_file_path": "macros/get_discount_code_app_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_app_columns", "macro_sql": "{% macro get_graphql_discount_code_app_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.663556, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_tracking_info_columns": {"name": "get_graphql_fulfillment_tracking_info_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_tracking_info_columns.sql", "original_file_path": "macros/get_fulfillment_tracking_info_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_tracking_info_columns", "macro_sql": "{% macro get_graphql_fulfillment_tracking_info_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"number\", \"datatype\": dbt.type_string()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.665004, "supported_languages": null}, "macro.shopify_source.get_product_columns": {"name": "get_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_columns.sql", "original_file_path": "macros/get_product_columns.sql", "unique_id": "macro.shopify_source.get_product_columns", "macro_sql": "{% macro get_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.667883, "supported_languages": null}, "macro.shopify_source.get_graphql_product_columns": {"name": "get_graphql_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_columns.sql", "original_file_path": "macros/get_product_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_columns", "macro_sql": "{% macro get_graphql_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6699815, "supported_languages": null}, "macro.shopify_source.get_order_note_attribute_columns": {"name": "get_order_note_attribute_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_note_attribute_columns.sql", "original_file_path": "macros/get_order_note_attribute_columns.sql", "unique_id": "macro.shopify_source.get_order_note_attribute_columns", "macro_sql": "{% macro get_order_note_attribute_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6712143, "supported_languages": null}, "macro.shopify_source.get_graphql_order_note_attribute_columns": {"name": "get_graphql_order_note_attribute_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_note_attribute_columns.sql", "original_file_path": "macros/get_order_note_attribute_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_note_attribute_columns", "macro_sql": "{% macro get_graphql_order_note_attribute_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6721432, "supported_languages": null}, "macro.shopify_source.get_customer_columns": {"name": "get_customer_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "unique_id": "macro.shopify_source.get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_address_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"orders_count\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_spent\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"verified_email\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"email_marketing_consent_consent_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_marketing_consent_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepts_marketing_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"marketing_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customer_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.677798, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_columns": {"name": "get_graphql_customer_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_columns", "macro_sql": "{% macro get_graphql_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_opt_in_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_marketing_consent_updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"orders_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_spent\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"verified_email\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customer_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6811388, "supported_languages": null}, "macro.shopify_source.get_fulfillment_columns": {"name": "get_fulfillment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_columns.sql", "original_file_path": "macros/get_fulfillment_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_columns", "macro_sql": "{% macro get_fulfillment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_numbers\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6842961, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_columns": {"name": "get_graphql_fulfillment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_columns.sql", "original_file_path": "macros/get_fulfillment_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_columns", "macro_sql": "{% macro get_graphql_fulfillment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"display_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6863136, "supported_languages": null}, "macro.shopify_source.get_discount_code_free_shipping_columns": {"name": "get_discount_code_free_shipping_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_free_shipping_columns.sql", "original_file_path": "macros/get_discount_code_free_shipping_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_free_shipping_columns", "macro_sql": "{% macro get_discount_code_free_shipping_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6906364, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_free_shipping_columns": {"name": "get_graphql_discount_code_free_shipping_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_free_shipping_columns.sql", "original_file_path": "macros/get_discount_code_free_shipping_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_free_shipping_columns", "macro_sql": "{% macro get_graphql_discount_code_free_shipping_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6941082, "supported_languages": null}, "macro.shopify_source.get_product_media_columns": {"name": "get_product_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_media_columns.sql", "original_file_path": "macros/get_product_media_columns.sql", "unique_id": "macro.shopify_source.get_product_media_columns", "macro_sql": "{% macro get_product_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6950407, "supported_languages": null}, "macro.shopify_source.get_graphql_product_media_columns": {"name": "get_graphql_product_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_media_columns.sql", "original_file_path": "macros/get_product_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_media_columns", "macro_sql": "{% macro get_graphql_product_media_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.6958377, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_address_columns": {"name": "get_graphql_customer_address_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_address_columns.sql", "original_file_path": "macros/get_customer_address_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_address_columns", "macro_sql": "{% macro get_graphql_customer_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_default\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"validation_result_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"coordinates_validated\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.699914, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_discount_code_columns": {"name": "get_abandoned_checkout_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_discount_code_columns.sql", "original_file_path": "macros/get_abandoned_checkout_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_discount_code_columns", "macro_sql": "{% macro get_abandoned_checkout_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7019792, "supported_languages": null}, "macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns": {"name": "get_graphql_abandoned_checkout_discount_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_discount_code_columns.sql", "original_file_path": "macros/get_abandoned_checkout_discount_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_abandoned_checkout_discount_code_columns", "macro_sql": "{% macro get_graphql_abandoned_checkout_discount_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7029295, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_shipping_line_columns": {"name": "get_abandoned_checkout_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "original_file_path": "macros/get_abandoned_checkout_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_shipping_line_columns", "macro_sql": "{% macro get_abandoned_checkout_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_expectation_range_max\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_range_min\", \"datatype\": dbt.type_int()},\n {\"name\": \"delivery_expectation_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7061932, "supported_languages": null}, "macro.shopify_source.json_to_string": {"name": "json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.json_to_string", "macro_sql": "{%- macro json_to_string(column, column_list) -%}\n {{ return(adapter.dispatch('json_to_string', 'shopify_source')(column, column_list)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__json_to_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7069244, "supported_languages": null}, "macro.shopify_source.default__json_to_string": {"name": "default__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.default__json_to_string", "macro_sql": "{%- macro default__json_to_string(column, column_list) -%}\n {{ column }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7071471, "supported_languages": null}, "macro.shopify_source.bigquery__json_to_string": {"name": "bigquery__json_to_string", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/json_to_string.sql", "original_file_path": "macros/json_to_string.sql", "unique_id": "macro.shopify_source.bigquery__json_to_string", "macro_sql": "{%- macro bigquery__json_to_string(column, column_list) -%}\n {%- set columns = column_list -%}\n {%- set ns = namespace(column_type='string') -%}\n\n {%- for col in columns -%}\n {%- if col.name|lower == column|lower -%}\n {%- set ns.column_type = col.dtype|lower -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- if ns.column_type == 'json' -%}\n to_json_string({{ column }})\n {%- else -%}\n {{ column }}\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7081323, "supported_languages": null}, "macro.shopify_source.get_fulfillment_event_columns": {"name": "get_fulfillment_event_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_event_columns.sql", "original_file_path": "macros/get_fulfillment_event_columns.sql", "unique_id": "macro.shopify_source.get_fulfillment_event_columns", "macro_sql": "{% macro get_fulfillment_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"estimated_delivery_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"happened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_float()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shop_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7122126, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_event_columns": {"name": "get_graphql_fulfillment_event_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_event_columns.sql", "original_file_path": "macros/get_fulfillment_event_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_event_columns", "macro_sql": "{% macro get_graphql_fulfillment_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"estimated_delivery_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"happened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"message\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7149458, "supported_languages": null}, "macro.shopify_source.get_abandoned_checkout_columns": {"name": "get_abandoned_checkout_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_columns.sql", "original_file_path": "macros/get_abandoned_checkout_columns.sql", "unique_id": "macro.shopify_source.get_abandoned_checkout_columns", "macro_sql": "{% macro get_abandoned_checkout_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"abandoned_checkout_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"gateway\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7274048, "supported_languages": null}, "macro.shopify_source.get_graphql_abandoned_checkout_columns": {"name": "get_graphql_abandoned_checkout_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_abandoned_checkout_columns.sql", "original_file_path": "macros/get_abandoned_checkout_columns.sql", "unique_id": "macro.shopify_source.get_graphql_abandoned_checkout_columns", "macro_sql": "{% macro get_graphql_abandoned_checkout_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"abandoned_checkout_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"completed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_discount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_duties_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_duties_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_duties_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7373302, "supported_languages": null}, "macro.shopify_source.get_discount_redeem_code_columns": {"name": "get_discount_redeem_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_redeem_code_columns.sql", "original_file_path": "macros/get_discount_redeem_code_columns.sql", "unique_id": "macro.shopify_source.get_discount_redeem_code_columns", "macro_sql": "{% macro get_discount_redeem_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"created_by_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"discount_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7395446, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_redeem_code_columns": {"name": "get_graphql_discount_redeem_code_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_redeem_code_columns.sql", "original_file_path": "macros/get_discount_redeem_code_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_redeem_code_columns", "macro_sql": "{% macro get_graphql_discount_redeem_code_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"created_by_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"discount_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7412367, "supported_languages": null}, "macro.shopify_source.get_media_image_columns": {"name": "get_media_image_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_image_columns.sql", "original_file_path": "macros/get_media_image_columns.sql", "unique_id": "macro.shopify_source.get_media_image_columns", "macro_sql": "{% macro get_media_image_columns() %}\n\n{% set columns = [\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.742827, "supported_languages": null}, "macro.shopify_source.get_graphql_media_image_columns": {"name": "get_graphql_media_image_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_media_image_columns.sql", "original_file_path": "macros/get_media_image_columns.sql", "unique_id": "macro.shopify_source.get_graphql_media_image_columns", "macro_sql": "{% macro get_graphql_media_image_columns() %}\n\n{% set columns = [\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.744038, "supported_languages": null}, "macro.shopify_source.get_order_adjustment_columns": {"name": "get_order_adjustment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_adjustment_columns.sql", "original_file_path": "macros/get_order_adjustment_columns.sql", "unique_id": "macro.shopify_source.get_order_adjustment_columns", "macro_sql": "{% macro get_order_adjustment_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"kind\", \"datatype\": dbt.type_string()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.746403, "supported_languages": null}, "macro.shopify_source.get_graphql_order_adjustment_columns": {"name": "get_graphql_order_adjustment_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_adjustment_columns.sql", "original_file_path": "macros/get_order_adjustment_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_adjustment_columns", "macro_sql": "{% macro get_graphql_order_adjustment_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_amount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.748491, "supported_languages": null}, "macro.shopify_source.get_order_tag_columns": {"name": "get_order_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_tag_columns.sql", "original_file_path": "macros/get_order_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_tag_columns", "macro_sql": "{% macro get_order_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7497349, "supported_languages": null}, "macro.shopify_source.get_graphql_order_tag_columns": {"name": "get_graphql_order_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_tag_columns.sql", "original_file_path": "macros/get_order_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_tag_columns", "macro_sql": "{% macro get_graphql_order_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.75066, "supported_languages": null}, "macro.shopify_source.get_inventory_quantity_columns": {"name": "get_inventory_quantity_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_quantity_columns.sql", "original_file_path": "macros/get_inventory_quantity_columns.sql", "unique_id": "macro.shopify_source.get_inventory_quantity_columns", "macro_sql": "{% macro get_inventory_quantity_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_level_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7524142, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_quantity_columns": {"name": "get_graphql_inventory_quantity_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_quantity_columns.sql", "original_file_path": "macros/get_inventory_quantity_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_quantity_columns", "macro_sql": "{% macro get_graphql_inventory_quantity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_level_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7537708, "supported_languages": null}, "macro.shopify_source.get_order_line_refund_columns": {"name": "get_order_line_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_refund_columns.sql", "original_file_path": "macros/get_order_line_refund_columns.sql", "unique_id": "macro.shopify_source.get_order_line_refund_columns", "macro_sql": "{% macro get_order_line_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"subtotal_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"restock_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_refund_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7565434, "supported_languages": null}, "macro.shopify_source.get_graphql_order_line_refund_columns": {"name": "get_graphql_order_line_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_refund_columns.sql", "original_file_path": "macros/get_order_line_refund_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_line_refund_columns", "macro_sql": "{% macro get_graphql_order_line_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"restock_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_refund_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.759449, "supported_languages": null}, "macro.shopify_source.get_product_tag_columns": {"name": "get_product_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_tag_columns.sql", "original_file_path": "macros/get_product_tag_columns.sql", "unique_id": "macro.shopify_source.get_product_tag_columns", "macro_sql": "{% macro get_product_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7607176, "supported_languages": null}, "macro.shopify_source.get_graphql_product_tag_columns": {"name": "get_graphql_product_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_tag_columns.sql", "original_file_path": "macros/get_product_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_tag_columns", "macro_sql": "{% macro get_graphql_product_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.761636, "supported_languages": null}, "macro.shopify_source.get_order_url_tag_columns": {"name": "get_order_url_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_url_tag_columns.sql", "original_file_path": "macros/get_order_url_tag_columns.sql", "unique_id": "macro.shopify_source.get_order_url_tag_columns", "macro_sql": "{% macro get_order_url_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7627282, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_rule_columns": {"name": "get_graphql_collection_rule_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_rule_columns.sql", "original_file_path": "macros/get_collection_rule_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_rule_columns", "macro_sql": "{% macro get_graphql_collection_rule_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"condition\", \"datatype\": dbt.type_string()},\n {\"name\": \"relation\", \"datatype\": dbt.type_string()},\n {\"name\": \"columns\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.764147, "supported_languages": null}, "macro.shopify_source.get_tax_line_columns": {"name": "get_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tax_line_columns.sql", "original_file_path": "macros/get_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_tax_line_columns", "macro_sql": "{% macro get_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7660651, "supported_languages": null}, "macro.shopify_source.get_graphql_tax_line_columns": {"name": "get_graphql_tax_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tax_line_columns.sql", "original_file_path": "macros/get_tax_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_tax_line_columns", "macro_sql": "{% macro get_graphql_tax_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7677245, "supported_languages": null}, "macro.shopify_source.get_customer_tag_columns": {"name": "get_customer_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_tag_columns.sql", "original_file_path": "macros/get_customer_tag_columns.sql", "unique_id": "macro.shopify_source.get_customer_tag_columns", "macro_sql": "{% macro get_customer_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.768936, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_tag_columns": {"name": "get_graphql_customer_tag_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_tag_columns.sql", "original_file_path": "macros/get_customer_tag_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_tag_columns", "macro_sql": "{% macro get_graphql_customer_tag_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7698598, "supported_languages": null}, "macro.shopify_source.get_inventory_item_columns": {"name": "get_inventory_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_item_columns.sql", "original_file_path": "macros/get_inventory_item_columns.sql", "unique_id": "macro.shopify_source.get_inventory_item_columns", "macro_sql": "{% macro get_inventory_item_columns() %}\n\n{# Columns below line 26 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"province_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duplicate_sku_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"harmonized_system_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_history_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"measurement_weight_value\", \"datatype\": dbt.type_float()},\n {\"name\": \"measurement_weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked_editable_locked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()}\n ,\n {\"name\": \"cost\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7744548, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_item_columns": {"name": "get_graphql_inventory_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_item_columns.sql", "original_file_path": "macros/get_inventory_item_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_item_columns", "macro_sql": "{% macro get_graphql_inventory_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"country_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duplicate_sku_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"harmonized_system_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_history_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"measurement_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"measurement_weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"measurement_weight_value\", \"datatype\": dbt.type_float()},\n {\"name\": \"province_code_of_origin\", \"datatype\": dbt.type_string()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_locked\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tracked_editable_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.777903, "supported_languages": null}, "macro.shopify_source.get_product_variant_columns": {"name": "get_product_variant_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_columns.sql", "original_file_path": "macros/get_product_variant_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_columns", "macro_sql": "{% macro get_product_variant_columns() %}\n\n{# Columns below line 28 to be deprecated. #}\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"position\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"compare_at_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"barcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"old_inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"inventory_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"available_for_sale\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"requires_components\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sellable_online_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"fulfillment_service\", \"datatype\": dbt.type_string()},\n {\"name\": \"grams\", \"datatype\": dbt.type_float()},\n {\"name\": \"inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"option_3\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_variant_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_boolean", "macro.dbt.type_bigint", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7840483, "supported_languages": null}, "macro.shopify_source.get_graphql_product_variant_columns": {"name": "get_graphql_product_variant_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_columns.sql", "original_file_path": "macros/get_product_variant_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_variant_columns", "macro_sql": "{% macro get_graphql_product_variant_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_sale\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"barcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"compare_at_price\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"legacy_resource_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"position\", \"datatype\": dbt.type_int()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_components\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sellable_online_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('product_variant_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7876992, "supported_languages": null}, "macro.shopify_source.get_location_columns": {"name": "get_location_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_location_columns.sql", "original_file_path": "macros/get_location_columns.sql", "unique_id": "macro.shopify_source.get_location_columns", "macro_sql": "{% macro get_location_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"legacy\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"localized_country_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"localized_province_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7918725, "supported_languages": null}, "macro.shopify_source.get_graphql_location_columns": {"name": "get_graphql_location_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_location_columns.sql", "original_file_path": "macros/get_location_columns.sql", "unique_id": "macro.shopify_source.get_graphql_location_columns", "macro_sql": "{% macro get_graphql_location_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"is_fulfillment_service\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"province\", \"datatype\": dbt.type_string()},\n {\"name\": \"province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.7947981, "supported_languages": null}, "macro.shopify_source.get_order_line_columns": {"name": "get_order_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_columns.sql", "original_file_path": "macros/get_order_line_columns.sql", "unique_id": "macro.shopify_source.get_order_line_columns", "macro_sql": "{% macro get_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillable_quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"gift_card\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"grams\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"index\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"pre_tax_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"pre_tax_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"tax_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"variant_inventory_management\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"properties\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8003964, "supported_languages": null}, "macro.shopify_source.get_graphql_order_line_columns": {"name": "get_graphql_order_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_line_columns.sql", "original_file_path": "macros/get_order_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_line_columns", "macro_sql": "{% macro get_graphql_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"is_gift_card\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"original_total_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_total_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"original_total_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_total_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discount_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discount_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"unfulfilled_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_line_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8042903, "supported_languages": null}, "macro.shopify_source.get_order_columns": {"name": "get_order_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "unique_id": "macro.shopify_source.get_order_columns", "macro_sql": "{% macro get_order_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_discounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_line_items_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_line_items_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"total_tip_received\", \"datatype\": dbt.type_float()},\n {\"name\": \"landing_site_base_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"order_number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cancel_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancelled_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"cart_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"checkout_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"financial_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"referring_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"browser_ip\", \"datatype\": dbt.type_string()},\n {\"name\": \"buyer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_shipping_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"token\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"app_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"checkout_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"client_details_user_agent\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_status_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"presentment_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"confirmed\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8197849, "supported_languages": null}, "macro.shopify_source.get_graphql_order_columns": {"name": "get_graphql_order_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_columns", "macro_sql": "{% macro get_graphql_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"app_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"billing_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancel_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"cancelled_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"client_ip\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"confirmed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_accepts_marketing\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_locale\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_financial_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_fulfillment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"number\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"presentment_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_address_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_address_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_company\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_province_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_zip\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status_page_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtotal_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"subtotal_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxes_included\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_discounts_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_discounts_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_discounts_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_shipping_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_shipping_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_shipping_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_shipping_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tax_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tip_received_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tip_received_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_tip_received_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tip_received_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_weight\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('order_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8325508, "supported_languages": null}, "macro.shopify_source.get_graphql_customer_visit_columns": {"name": "get_graphql_customer_visit_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_customer_visit_columns.sql", "original_file_path": "macros/get_customer_visit_columns.sql", "unique_id": "macro.shopify_source.get_graphql_customer_visit_columns", "macro_sql": "{% macro get_graphql_customer_visit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page_html\", \"datatype\": dbt.type_string()},\n {\"name\": \"occurred_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"referral_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"referral_info_html\", \"datatype\": dbt.type_string()},\n {\"name\": \"referrer_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"source_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_campaign\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_content\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_medium\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"utm_parameters_term\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8359802, "supported_languages": null}, "macro.shopify_source.get_metafield_columns": {"name": "get_metafield_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_metafield_columns.sql", "original_file_path": "macros/get_metafield_columns.sql", "unique_id": "macro.shopify_source.get_metafield_columns", "macro_sql": "{% macro get_metafield_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"namespace\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"owner_resource\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8386626, "supported_languages": null}, "macro.shopify_source.get_graphql_metafield_columns": {"name": "get_graphql_metafield_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_metafield_columns.sql", "original_file_path": "macros/get_metafield_columns.sql", "unique_id": "macro.shopify_source.get_graphql_metafield_columns", "macro_sql": "{% macro get_graphql_metafield_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"namespace\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"owner_resource\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8405719, "supported_languages": null}, "macro.shopify_source.get_discount_code_basic_columns": {"name": "get_discount_code_basic_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_basic_columns.sql", "original_file_path": "macros/get_discount_code_basic_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_basic_columns", "macro_sql": "{% macro get_discount_code_basic_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8447156, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_basic_columns": {"name": "get_graphql_discount_code_basic_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_basic_columns.sql", "original_file_path": "macros/get_discount_code_basic_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_basic_columns", "macro_sql": "{% macro get_graphql_discount_code_basic_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8480852, "supported_languages": null}, "macro.shopify_source.get_refund_columns": {"name": "get_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_refund_columns.sql", "original_file_path": "macros/get_refund_columns.sql", "unique_id": "macro.shopify_source.get_refund_columns", "macro_sql": "{% macro get_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"restock\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_duties_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.850308, "supported_languages": null}, "macro.shopify_source.get_graphql_refund_columns": {"name": "get_graphql_refund_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_refund_columns.sql", "original_file_path": "macros/get_refund_columns.sql", "unique_id": "macro.shopify_source.get_graphql_refund_columns", "macro_sql": "{% macro get_graphql_refund_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"note\", \"datatype\": dbt.type_string()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"return_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"staff_member_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_refunded_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_refunded_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_refunded_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_refunded_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8523967, "supported_languages": null}, "macro.shopify_source.get_collection_columns": {"name": "get_collection_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_columns.sql", "original_file_path": "macros/get_collection_columns.sql", "unique_id": "macro.shopify_source.get_collection_columns", "macro_sql": "{% macro get_collection_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"disjunctive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"published_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"published_scope\", \"datatype\": dbt.type_string()},\n {\"name\": \"rules\", \"datatype\": dbt.type_string()},\n {\"name\": \"sort_order\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8548734, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_columns": {"name": "get_graphql_collection_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_columns.sql", "original_file_path": "macros/get_collection_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_columns", "macro_sql": "{% macro get_graphql_collection_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"applied_disjunctively\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"handle\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"sort_order\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8563714, "supported_languages": null}, "macro.shopify_source.get_graphql_fulfillment_order_line_item_columns": {"name": "get_graphql_fulfillment_order_line_item_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_fulfillment_order_line_item_columns.sql", "original_file_path": "macros/get_fulfillment_order_line_item_columns.sql", "unique_id": "macro.shopify_source.get_graphql_fulfillment_order_line_item_columns", "macro_sql": "{% macro get_graphql_fulfillment_order_line_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fulfillment_order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_alt_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_height\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"image_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"image_width\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_line_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"remaining_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"requires_shipping\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_quantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"variant_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8600743, "supported_languages": null}, "macro.shopify_source.get_inventory_level_columns": {"name": "get_inventory_level_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_level_columns.sql", "original_file_path": "macros/get_inventory_level_columns.sql", "unique_id": "macro.shopify_source.get_inventory_level_columns", "macro_sql": "{% macro get_inventory_level_columns() %}\n\n{# Columns below line 13 to be deprecated. #}\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"can_deactivate\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deactivation_alert\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()}\n ,\n {\"name\": \"available\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8622475, "supported_languages": null}, "macro.shopify_source.get_graphql_inventory_level_columns": {"name": "get_graphql_inventory_level_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_inventory_level_columns.sql", "original_file_path": "macros/get_inventory_level_columns.sql", "unique_id": "macro.shopify_source.get_graphql_inventory_level_columns", "macro_sql": "{% macro get_graphql_inventory_level_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"can_deactivate\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deactivation_alert\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"inventory_item_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8637717, "supported_languages": null}, "macro.shopify_source.get_collection_product_columns": {"name": "get_collection_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_product_columns.sql", "original_file_path": "macros/get_collection_product_columns.sql", "unique_id": "macro.shopify_source.get_collection_product_columns", "macro_sql": "{% macro get_collection_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8648167, "supported_languages": null}, "macro.shopify_source.get_graphql_collection_product_columns": {"name": "get_graphql_collection_product_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_collection_product_columns.sql", "original_file_path": "macros/get_collection_product_columns.sql", "unique_id": "macro.shopify_source.get_graphql_collection_product_columns", "macro_sql": "{% macro get_graphql_collection_product_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"collection_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"product_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.865602, "supported_languages": null}, "macro.shopify_source.get_order_shipping_line_columns": {"name": "get_order_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_line_columns.sql", "original_file_path": "macros/get_order_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_order_shipping_line_columns", "macro_sql": "{% macro get_order_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"price\", \"datatype\": dbt.type_float()},\n {\"name\": \"price_set\", \"datatype\": dbt.type_string()},\n {\"name\": \"requested_fulfillment_service_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8687387, "supported_languages": null}, "macro.shopify_source.get_graphql_order_shipping_line_columns": {"name": "get_graphql_order_shipping_line_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_order_shipping_line_columns.sql", "original_file_path": "macros/get_order_shipping_line_columns.sql", "unique_id": "macro.shopify_source.get_graphql_order_shipping_line_columns", "macro_sql": "{% macro get_graphql_order_shipping_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"carrier_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"discounted_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discounted_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"original_price_set_pres_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_price_set_pres_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"original_price_set_shop_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"original_price_set_shop_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8716822, "supported_languages": null}, "macro.shopify_source.get_product_variant_media_columns": {"name": "get_product_variant_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_media_columns.sql", "original_file_path": "macros/get_product_variant_media_columns.sql", "unique_id": "macro.shopify_source.get_product_variant_media_columns", "macro_sql": "{% macro get_product_variant_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8725564, "supported_languages": null}, "macro.shopify_source.get_graphql_product_variant_media_columns": {"name": "get_graphql_product_variant_media_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_product_variant_media_columns.sql", "original_file_path": "macros/get_product_variant_media_columns.sql", "unique_id": "macro.shopify_source.get_graphql_product_variant_media_columns", "macro_sql": "{% macro get_graphql_product_variant_media_columns() %}\n\n{% set columns = [\n {\"name\": \"product_variant_id\", \"datatype\": dbt.type_bigint()},\n {\"name\": \"media_id\", \"datatype\": dbt.type_bigint()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8731892, "supported_languages": null}, "macro.shopify_source.get_tender_transaction_columns": {"name": "get_tender_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tender_transaction_columns.sql", "original_file_path": "macros/get_tender_transaction_columns.sql", "unique_id": "macro.shopify_source.get_tender_transaction_columns", "macro_sql": "{% macro get_tender_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"remote_reference\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8755193, "supported_languages": null}, "macro.shopify_source.get_graphql_tender_transaction_columns": {"name": "get_graphql_tender_transaction_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_tender_transaction_columns.sql", "original_file_path": "macros/get_tender_transaction_columns.sql", "unique_id": "macro.shopify_source.get_graphql_tender_transaction_columns", "macro_sql": "{% macro get_graphql_tender_transaction_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"order_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"payment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"processed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"remote_reference\", \"datatype\": dbt.type_string()},\n {\"name\": \"test\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8773117, "supported_languages": null}, "macro.shopify_source.get_discount_code_bxgy_columns": {"name": "get_discount_code_bxgy_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_bxgy_columns.sql", "original_file_path": "macros/get_discount_code_bxgy_columns.sql", "unique_id": "macro.shopify_source.get_discount_code_bxgy_columns", "macro_sql": "{% macro get_discount_code_bxgy_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"recurring_cycle_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8815632, "supported_languages": null}, "macro.shopify_source.get_graphql_discount_code_bxgy_columns": {"name": "get_graphql_discount_code_bxgy_columns", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/get_discount_code_bxgy_columns.sql", "original_file_path": "macros/get_discount_code_bxgy_columns.sql", "unique_id": "macro.shopify_source.get_graphql_discount_code_bxgy_columns", "macro_sql": "{% macro get_graphql_discount_code_bxgy_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"starts_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ends_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"applies_once_per_customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"async_usage_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"usage_limit\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"codes_precision\", \"datatype\": dbt.type_string()},\n {\"name\": \"combines_with_order_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_product_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"combines_with_shipping_discounts\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"customer_selection_all_customers\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"total_sales_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_sales_currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8854368, "supported_languages": null}, "macro.shopify_source.fivetran_convert_timezone": {"name": "fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.fivetran_convert_timezone", "macro_sql": "{%- macro fivetran_convert_timezone(column, target_tz=None, source_tz=None) -%}\n{%- set source_tz = \"UTC\" if not source_tz else source_tz -%}\n{%- set target_tz = \"UTC\" if not target_tz else target_tz -%}\n{{ return(adapter.dispatch('fivetran_convert_timezone', 'shopify_source') (column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8870595, "supported_languages": null}, "macro.shopify_source.default__fivetran_convert_timezone": {"name": "default__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.default__fivetran_convert_timezone", "macro_sql": "{% macro default__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ dbt.type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8876054, "supported_languages": null}, "macro.shopify_source.bigquery__fivetran_convert_timezone": {"name": "bigquery__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.bigquery__fivetran_convert_timezone", "macro_sql": "{%- macro bigquery__fivetran_convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.888073, "supported_languages": null}, "macro.shopify_source.postgres__fivetran_convert_timezone": {"name": "postgres__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.postgres__fivetran_convert_timezone", "macro_sql": "{% macro postgres__fivetran_convert_timezone(column, target_tz, source_tz) -%}\ncast(\n cast({{ column }} as {{ dbt.type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt.type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.888577, "supported_languages": null}, "macro.shopify_source.redshift__fivetran_convert_timezone": {"name": "redshift__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.redshift__fivetran_convert_timezone", "macro_sql": "{%- macro redshift__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.default__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.default__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8889537, "supported_languages": null}, "macro.shopify_source.duckdb__fivetran_convert_timezone": {"name": "duckdb__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.duckdb__fivetran_convert_timezone", "macro_sql": "{% macro duckdb__fivetran_convert_timezone(column, target_tz, source_tz) -%}\n{{ return(shopify_source.postgres__fivetran_convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.shopify_source.postgres__fivetran_convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8893206, "supported_languages": null}, "macro.shopify_source.spark__fivetran_convert_timezone": {"name": "spark__fivetran_convert_timezone", "resource_type": "macro", "package_name": "shopify_source", "path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "original_file_path": "macros/fivetran_date_macros/fivetran_convert_timezone.sql", "unique_id": "macro.shopify_source.spark__fivetran_convert_timezone", "macro_sql": "{%- macro spark__fivetran_convert_timezone(column, target_tz, source_tz) -%}\nfrom_utc_timestamp(\n to_utc_timestamp({{ column }}, '{{ source_tz }}'),\n '{{ target_tz }}'\n )\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8897135, "supported_languages": null}, "macro.spark_utils.get_tables": {"name": "get_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_tables", "macro_sql": "{% macro get_tables(table_regex_pattern='.*') %}\n\n {% set tables = [] %}\n {% for database in spark__list_schemas('not_used') %}\n {% for table in spark__list_relations_without_caching(database[0]) %}\n {% set db_tablename = database[0] ~ \".\" ~ table[1] %}\n {% set is_match = modules.re.match(table_regex_pattern, db_tablename) %}\n {% if is_match %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('type', 'TYPE', 'Type'))|first %}\n {% if table_type[1]|lower != 'view' %}\n {{ tables.append(db_tablename) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n {{ return(tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8931437, "supported_languages": null}, "macro.spark_utils.get_delta_tables": {"name": "get_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_delta_tables", "macro_sql": "{% macro get_delta_tables(table_regex_pattern='.*') %}\n\n {% set delta_tables = [] %}\n {% for db_tablename in get_tables(table_regex_pattern) %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('provider', 'PROVIDER', 'Provider'))|first %}\n {% if table_type[1]|lower == 'delta' %}\n {{ delta_tables.append(db_tablename) }}\n {% endif %}\n {% endfor %}\n {{ return(delta_tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8946044, "supported_languages": null}, "macro.spark_utils.get_statistic_columns": {"name": "get_statistic_columns", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_statistic_columns", "macro_sql": "{% macro get_statistic_columns(table) %}\n\n {% call statement('input_columns', fetch_result=True) %}\n SHOW COLUMNS IN {{ table }}\n {% endcall %}\n {% set input_columns = load_result('input_columns').table %}\n\n {% set output_columns = [] %}\n {% for column in input_columns %}\n {% call statement('column_information', fetch_result=True) %}\n DESCRIBE TABLE {{ table }} `{{ column[0] }}`\n {% endcall %}\n {% if not load_result('column_information').table[1][1].startswith('struct') and not load_result('column_information').table[1][1].startswith('array') %}\n {{ output_columns.append('`' ~ column[0] ~ '`') }}\n {% endif %}\n {% endfor %}\n {{ return(output_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8963249, "supported_languages": null}, "macro.spark_utils.spark_optimize_delta_tables": {"name": "spark_optimize_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_optimize_delta_tables", "macro_sql": "{% macro spark_optimize_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Optimizing \" ~ table) }}\n {% do run_query(\"optimize \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8977542, "supported_languages": null}, "macro.spark_utils.spark_vacuum_delta_tables": {"name": "spark_vacuum_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "macro_sql": "{% macro spark_vacuum_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Vacuuming \" ~ table) }}\n {% do run_query(\"vacuum \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.8991537, "supported_languages": null}, "macro.spark_utils.spark_analyze_tables": {"name": "spark_analyze_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_analyze_tables", "macro_sql": "{% macro spark_analyze_tables(table_regex_pattern='.*') %}\n\n {% for table in get_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set columns = get_statistic_columns(table) | join(',') %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Analyzing \" ~ table) }}\n {% if columns != '' %}\n {% do run_query(\"analyze table \" ~ table ~ \" compute statistics for columns \" ~ columns) %}\n {% endif %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.spark_utils.get_statistic_columns", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9008846, "supported_languages": null}, "macro.spark_utils.assert_not_null": {"name": "assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9014707, "supported_languages": null}, "macro.spark_utils.default__assert_not_null": {"name": "default__assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.default__assert_not_null", "macro_sql": "{% macro default__assert_not_null(function, arg) %}\n\n coalesce({{function}}({{arg}}), nvl2({{function}}({{arg}}), assert_true({{function}}({{arg}}) is not null), null))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.901887, "supported_languages": null}, "macro.spark_utils.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "unique_id": "macro.spark_utils.spark__convert_timezone", "macro_sql": "{% macro spark__convert_timezone(in_tz, out_tz, in_timestamp) %}\n from_utc_timestamp(to_utc_timestamp({{in_timestamp}}, {{in_tz}}), {{out_tz}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9022872, "supported_languages": null}, "macro.spark_utils.spark__concat": {"name": "spark__concat", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "unique_id": "macro.spark_utils.spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9026394, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp": {"name": "spark__current_timestamp", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9028885, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp_in_utc": {"name": "spark__current_timestamp_in_utc", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.903043, "supported_languages": null}, "macro.spark_utils.spark__split_part": {"name": "spark__split_part", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "unique_id": "macro.spark_utils.spark__split_part", "macro_sql": "{% macro spark__split_part(string_text, delimiter_text, part_number) %}\n\n {% set delimiter_expr %}\n \n -- escape if starts with a special character\n case when regexp_extract({{ delimiter_text }}, '([^A-Za-z0-9])(.*)', 1) != '_'\n then concat('\\\\', {{ delimiter_text }})\n else {{ delimiter_text }} end\n \n {% endset %}\n\n {% set split_part_expr %}\n \n split(\n {{ string_text }},\n {{ delimiter_expr }}\n )[({{ part_number - 1 }})]\n \n {% endset %}\n \n {{ return(split_part_expr) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9039757, "supported_languages": null}, "macro.spark_utils.spark__type_numeric": {"name": "spark__type_numeric", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "unique_id": "macro.spark_utils.spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9042022, "supported_languages": null}, "macro.spark_utils.spark__dateadd": {"name": "spark__dateadd", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "unique_id": "macro.spark_utils.spark__dateadd", "macro_sql": "{% macro spark__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {%- set clock_component -%}\n {# make sure the dates + timestamps are real, otherwise raise an error asap #}\n to_unix_timestamp({{ spark_utils.assert_not_null('to_timestamp', from_date_or_timestamp) }})\n - to_unix_timestamp({{ spark_utils.assert_not_null('date', from_date_or_timestamp) }})\n {%- endset -%}\n\n {%- if datepart in ['day', 'week'] -%}\n \n {%- set multiplier = 7 if datepart == 'week' else 1 -%}\n\n to_timestamp(\n to_unix_timestamp(\n date_add(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ['month', 'quarter', 'year'] -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'month' -%} 1\n {%- elif datepart == 'quarter' -%} 3\n {%- elif datepart == 'year' -%} 12\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n to_unix_timestamp(\n add_months(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n {{ spark_utils.assert_not_null('to_unix_timestamp', from_date_or_timestamp) }}\n + cast({{interval}} * {{multiplier}} as int)\n )\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro dateadd not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9078221, "supported_languages": null}, "macro.spark_utils.spark__datediff": {"name": "spark__datediff", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "unique_id": "macro.spark_utils.spark__datediff", "macro_sql": "{% macro spark__datediff(first_date, second_date, datepart) %}\n\n {%- if datepart in ['day', 'week', 'month', 'quarter', 'year'] -%}\n \n {# make sure the dates are real, otherwise raise an error asap #}\n {% set first_date = spark_utils.assert_not_null('date', first_date) %}\n {% set second_date = spark_utils.assert_not_null('date', second_date) %}\n \n {%- endif -%}\n \n {%- if datepart == 'day' -%}\n \n datediff({{second_date}}, {{first_date}})\n \n {%- elif datepart == 'week' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(datediff({{second_date}}, {{first_date}})/7)\n else ceil(datediff({{second_date}}, {{first_date}})/7)\n end\n \n -- did we cross a week boundary (Sunday)?\n + case\n when {{first_date}} < {{second_date}} and dayofweek({{second_date}}) < dayofweek({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofweek({{second_date}}) > dayofweek({{first_date}}) then -1\n else 0 end\n\n {%- elif datepart == 'month' -%}\n\n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}})))\n else ceil(months_between(date({{second_date}}), date({{first_date}})))\n end\n \n -- did we cross a month boundary?\n + case\n when {{first_date}} < {{second_date}} and dayofmonth({{second_date}}) < dayofmonth({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofmonth({{second_date}}) > dayofmonth({{first_date}}) then -1\n else 0 end\n \n {%- elif datepart == 'quarter' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}}))/3)\n else ceil(months_between(date({{second_date}}), date({{first_date}}))/3)\n end\n \n -- did we cross a quarter boundary?\n + case\n when {{first_date}} < {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n < (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then 1\n when {{first_date}} > {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n > (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then -1\n else 0 end\n\n {%- elif datepart == 'year' -%}\n \n year({{second_date}}) - year({{first_date}})\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set divisor -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n case when {{first_date}} < {{second_date}}\n then ceil((\n {# make sure the timestamps are real, otherwise raise an error asap #}\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n else floor((\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n end\n \n {% if datepart == 'millisecond' %}\n + cast(date_format({{second_date}}, 'SSS') as int)\n - cast(date_format({{first_date}}, 'SSS') as int)\n {% endif %}\n \n {% if datepart == 'microsecond' %} \n {% set capture_str = '[0-9]{4}-[0-9]{2}-[0-9]{2}.[0-9]{2}:[0-9]{2}:[0-9]{2}.([0-9]{6})' %}\n -- Spark doesn't really support microseconds, so this is a massive hack!\n -- It will only work if the timestamp-string is of the format\n -- 'yyyy-MM-dd-HH mm.ss.SSSSSS'\n + cast(regexp_extract({{second_date}}, '{{capture_str}}', 1) as int)\n - cast(regexp_extract({{first_date}}, '{{capture_str}}', 1) as int) \n {% endif %}\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro datediff not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9146633, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_pattern": {"name": "spark__get_relations_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "macro_sql": "{% macro spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n show table extended in {{ schema_pattern }} like '{{ table_pattern }}'\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=None,\n schema=row[0],\n identifier=row[1],\n type=('view' if 'Type: VIEW' in row[3] else 'table')\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9169354, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_prefix": {"name": "spark__get_relations_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "macro_sql": "{% macro spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {% set table_pattern = table_pattern ~ '*' %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9175978, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_pattern": {"name": "spark__get_tables_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "macro_sql": "{% macro spark__get_tables_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.918115, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_prefix": {"name": "spark__get_tables_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "macro_sql": "{% macro spark__get_tables_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9186425, "supported_languages": null}, "macro.shopify.get_metafields": {"name": "get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.get_metafields", "macro_sql": "{% macro get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n {{ return(adapter.dispatch('get_metafields', 'shopify')(source_object, reference_values, id_column, lookup_object, key_field, key_value, reference_field)) }} \n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__get_metafields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9199991, "supported_languages": null}, "macro.shopify.default__get_metafields": {"name": "default__get_metafields", "resource_type": "macro", "package_name": "shopify", "path": "macros/get_metafields.sql", "original_file_path": "macros/get_metafields.sql", "unique_id": "macro.shopify.default__get_metafields", "macro_sql": "{% macro default__get_metafields(source_object, reference_values, id_column, lookup_object=\"stg_shopify__metafield\", key_field=\"metafield_reference\", key_value=\"value\", reference_field=\"owner_resource\") %}\n\n{# Manually quote and join reference values #}\n{% set quoted_values = [] %}\n{% for value in reference_values %}\n {% do quoted_values.append(\"'\" ~ value | lower | trim ~ \"'\") %}\n{% endfor %}\n{% set reference_values_clause = quoted_values | join(\", \") %}\n\n{# Get the pivot fields dynamically based on the reference values #}\n{% set pivot_fields = dbt_utils.get_column_values(\n table=ref(lookup_object),\n column=key_field,\n where=\"lower(\" ~ reference_field ~ \") in (\" ~ reference_values_clause ~ \")\"\n) %}\n\n{% set source_columns = adapter.get_columns_in_relation(ref(source_object)) %}\n{% set source_column_count = source_columns | length %}\n\nwith source_table as (\n select *\n from {{ ref(source_object) }}\n)\n\n{% if pivot_fields is not none %},\nlookup_object as (\n select \n *,\n {{ dbt_utils.pivot(\n column=key_field, \n values=pivot_fields, \n agg='', \n then_value=key_value, \n else_value=\"null\",\n quote_identifiers=false\n ) \n }}\n from {{ ref(lookup_object) }}\n where is_most_recent_record\n),\n\nfinal as (\n select\n {% for column in source_columns %}\n source_table.{{ column.name }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% for fields in pivot_fields %}\n , max(lookup_object.{{ dbt_utils.slugify(fields) }}) as metafield_{{ dbt_utils.slugify(fields) }}\n {% endfor %}\n from source_table\n left join lookup_object \n on lookup_object.{{ reference_field }}_id = source_table.{{ id_column }}\n and lower(lookup_object.{{ reference_field }}) in ({{ reference_values_clause }})\n {{ dbt_utils.group_by(source_column_count) }}\n)\n\nselect *\nfrom final\n{% else %}\n\nselect *\nfrom source_table\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_column_values", "macro.dbt_utils.pivot", "macro.dbt_utils.slugify", "macro.dbt_utils.group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.922942, "supported_languages": null}, "macro.shopify.shopify_partition_by_cols": {"name": "shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.shopify_partition_by_cols", "macro_sql": "{% macro shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n\n{{ adapter.dispatch('shopify_partition_by_cols', 'shopify') (base_col, source_relation) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_partition_by_cols"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9235961, "supported_languages": null}, "macro.shopify.default__shopify_partition_by_cols": {"name": "default__shopify_partition_by_cols", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_partition_by_cols.sql", "original_file_path": "macros/shopify_partition_by_cols.sql", "unique_id": "macro.shopify.default__shopify_partition_by_cols", "macro_sql": "{% macro default__shopify_partition_by_cols(base_col, source_relation='source_relation') %}\n {%- if var('shopify_union_schemas', false) or var('shopify_union_databases', false) -%}\n {{ base_col }}, {{ source_relation }}\n {%- else %}\n {{ base_col }}\n {%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.924177, "supported_languages": null}, "macro.shopify.shopify_lookback": {"name": "shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.shopify_lookback", "macro_sql": "{% macro shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n{{ adapter.dispatch('shopify_lookback', 'shopify') (from_date, datepart, interval, safety_date='2010-01-01') }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.shopify.default__shopify_lookback"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.924925, "supported_languages": null}, "macro.shopify.default__shopify_lookback": {"name": "default__shopify_lookback", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_lookback.sql", "original_file_path": "macros/shopify_lookback.sql", "unique_id": "macro.shopify.default__shopify_lookback", "macro_sql": "{% macro default__shopify_lookback(from_date, datepart, interval, safety_date='2010-01-01') %}\n\n {% set sql_statement %}\n select coalesce({{ from_date }}, {{ \"'\" ~ safety_date ~ \"'\" }})\n from {{ this }}\n {%- endset -%}\n\n {%- set result = dbt_utils.get_single_value(sql_statement) %}\n\n {{ dbt.dateadd(datepart=datepart, interval=-interval, from_date_or_timestamp=\"cast('\" ~ result ~ \"' as date)\") }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_single_value", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9257874, "supported_languages": null}, "macro.shopify.shopify_is_databricks_sql_warehouse": {"name": "shopify_is_databricks_sql_warehouse", "resource_type": "macro", "package_name": "shopify", "path": "macros/shopify_is_databricks_sql_warehouse.sql", "original_file_path": "macros/shopify_is_databricks_sql_warehouse.sql", "unique_id": "macro.shopify.shopify_is_databricks_sql_warehouse", "macro_sql": "{% macro shopify_is_databricks_sql_warehouse() %}\n {% if target.type in ('databricks') %}\n {% set re = modules.re %}\n {% set path_match = target.http_path %}\n {% set regex_pattern = \"sql/.+/warehouses/\" %}\n {% set match_result = re.search(regex_pattern, path_match) %}\n {% if match_result %}\n {{ return(True) }}\n {% else %}\n {{ return(False) }}\n {% endif %}\n {% else %}\n {{ return(False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9271522, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9284983, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9290376, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9294116, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{% if not string %}\n{{ return('') }}\n{% endif %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9308355, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9313211, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9316769, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.932162, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9326212, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9334512, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.934461, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9362218, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9372215, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9388092, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9395878, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9402106, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9409664, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9416454, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9426873, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9445982, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.94608, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9491565, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns, exclude_columns, precision)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9513218, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None, exclude_columns=None, precision = None) %}\n\n{%- if compare_columns and exclude_columns -%}\n {{ exceptions.raise_compiler_error(\"Both a compare and an ignore list were provided to the `equality` macro. Only one is allowed\") }}\n{%- endif -%}\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\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{# Ensure there are no extra columns in the compare_model vs model #}\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- do dbt_utils._is_ephemeral(compare_model, 'test_equality') -%}\n\n {%- set model_columns = adapter.get_columns_in_relation(model) -%}\n {%- set compare_model_columns = adapter.get_columns_in_relation(compare_model) -%}\n\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- set include_model_columns = [] %}\n {%- for column in model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n {%- for column in compare_model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_model_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns_set = set(include_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(include_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- else -%}\n {%- set compare_columns_set = set(model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(compare_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- endif -%}\n\n {% if compare_columns_set != compare_model_columns_set %}\n {{ exceptions.raise_compiler_error(compare_model ~\" has less columns than \" ~ model ~ \", please ensure they have the same columns or use the `compare_columns` or `exclude_columns` arguments to subset them.\") }}\n {% endif %}\n\n\n{% endif %}\n\n{%- if not precision -%}\n {%- if not compare_columns -%}\n {# \n You cannot get the columns in an ephemeral model (due to not existing in the information schema),\n so if the user does not provide an explicit list of columns we must error in the case it is ephemeral\n #}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model)-%}\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- for column in compare_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns = include_columns | map(attribute='quoted') %}\n {%- else -%} {# Compare columns provided #}\n {%- set compare_columns = compare_columns | map(attribute='quoted') %}\n {%- endif -%}\n {%- endif -%}\n\n {% set compare_cols_csv = compare_columns | join(', ') %}\n\n{% else %} {# Precision required #}\n {#-\n If rounding is required, we need to get the types, so it cannot be ephemeral even if they provide column names\n -#}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set columns = adapter.get_columns_in_relation(model) -%}\n\n {% set columns_list = [] %}\n {%- for col in columns -%}\n {%- if (\n (col.name|lower in compare_columns|map('lower') or not compare_columns) and\n (col.name|lower not in exclude_columns|map('lower') or not exclude_columns)\n ) -%}\n {# Databricks double type is not picked up by any number type checks in dbt #}\n {%- if col.is_float() or col.is_numeric() or col.data_type == 'double' -%}\n {# Cast is required due to postgres not having round for a double precision number #}\n {%- do columns_list.append('round(cast(' ~ col.quoted ~ ' as ' ~ dbt.type_numeric() ~ '),' ~ precision ~ ') as ' ~ col.quoted) -%}\n {%- else -%} {# Non-numeric type #}\n {%- do columns_list.append(col.quoted) -%}\n {%- endif -%}\n {% endif %}\n {%- endfor -%}\n\n {% set compare_cols_csv = columns_list | join(', ') %}\n\n{% endif %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_numeric", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.958839, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9597957, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n {% if group_by_columns|length() == 0 %}\n where {{ column_name }} is not null\n limit 1\n {% endif %}\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.961451, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9623406, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9632468, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9641364, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9648185, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9656563, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as {{ dbt.type_numeric() }}) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.967263, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9683423, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9704182, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9711847, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.972105, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9728813, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9736378, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9743216, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.975039, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9758444, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.977204, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.978553, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.981416, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9822626, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9831553, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.983549, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9840758, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9843433, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9851036, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9865036, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9871259, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9874094, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9876964, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9879665, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9886332, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9897575, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.990378, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9915767, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, quote_identifiers)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9930365, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', quote_identifiers=False) -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n {%- set current_col_name = adapter.quote(col.column) if quote_identifiers else col.column -%}\n select\n {%- for exclude_col in exclude %}\n {{ adapter.quote(exclude_col) if quote_identifiers else exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ adapter.quote(field_name) if quote_identifiers else field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(current_col_name) }}\n {% else %}\n {{ current_col_name }}\n {% endif %}\n as {{ cast_to }}) as {{ adapter.quote(value_name) if quote_identifiers else value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9966033, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9972153, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9978902, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9989555, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9993799, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }} as tt\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005794.9997356, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0001194, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0004587, "supported_languages": null}, "macro.dbt_utils.databricks__deduplicate": {"name": "databricks__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.databricks__deduplicate", "macro_sql": "\n{%- macro databricks__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0008066, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0011427, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0016873, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0021713, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0041354, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.010797, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0123596, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.013094, "supported_languages": null}, "macro.dbt_utils.redshift__get_tables_by_pattern_sql": {"name": "redshift__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.redshift__get_tables_by_pattern_sql", "macro_sql": "{% macro redshift__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% set sql %}\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from \"{{ database }}\".\"information_schema\".\"tables\"\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n union all\n select distinct\n schemaname as {{ adapter.quote('table_schema') }},\n tablename as {{ adapter.quote('table_name') }},\n 'external' as {{ adapter.quote('table_type') }}\n from svv_external_tables\n where redshift_database_name = '{{ database }}'\n and schemaname ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n {% endset %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0144167, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0158308, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0168083, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.017376, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0180535, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0187593, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0200057, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0213919, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.024205, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0250716, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.025637, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0267274, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.02829, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.02893, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.029992, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0308917, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0324936, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0331504, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.033625, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.034325, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0348907, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0363934, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0381663, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0390818, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0407188, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0416436, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0427852, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0432224, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0439255, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0447516, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0455604, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0459285, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0469286, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.047712, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0491226, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.049722, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0503368, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0509186, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0518157, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0524418, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1757005795.0538454, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.shopify_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_synced", "block_contents": "The time when a record was last updated by Fivetran."}, "doc.shopify_source._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source._fivetran_deleted", "block_contents": "Boolean representing whether the record was soft-deleted in Shopify."}, "doc.shopify_source.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "shopify_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.shopify_source.source_relation", "block_contents": "The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {"test.shopify_integration_tests.integrity_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_customers.sql", "original_file_path": "tests/integrity/integrity_customers.sql", "unique_id": "test.shopify_integration_tests.integrity_customers", "fqn": ["shopify_integration_tests", "integrity", "integrity_customers"], "alias": "integrity_customers", "checksum": {"name": "sha256", "checksum": "690ac16cf903e5fd89a08680246fd495bf3fbdc94a622f0b9b1ce6f6988d8a74"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.0371404, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n customer_id,\n count(*) as source_customer_tag_count\n from {{ target.schema }}_shopify_dev.stg_shopify__customer_tag\n group by 1\n),\n\ntransform as (\n select\n customer_id,\n array_length(split(customer_tags, ',')) as transform_customer_tag_count -- Only BigQuery compatible for the time being\n from {{ target.schema }}_shopify_dev.shopify__customers\n where customer_tags is not null\n group by customer_id, customer_tags\n), \n\ncompare as (\n select\n source.customer_id,\n source.source_customer_tag_count,\n transform.transform_customer_tag_count\n from source\n full outer join transform\n on source.customer_id = transform.customer_id\n where source.source_customer_tag_count != transform.transform_customer_tag_count\n )\n\nselect *\nfrom compare", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_discounts.sql", "original_file_path": "tests/integrity/vertical_integrity_discounts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_discounts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_discounts"], "alias": "vertical_integrity_discounts", "checksum": {"name": "sha256", "checksum": "591dfe08097b58fd9433339a17d0388c891a6d3eef65c042f13c227737e9ff65"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.069089, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith discount_redeem_code as (\n\n select \n code,\n discount_code_id,\n source_relation\n from {{ ref('stg_shopify__discount_redeem_code') }} \n group by 1, 2, 3\n),\n\ndiscount_codes_unioned as (\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_basic') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_bxgy') }} \n group by 1, 2\n\n union all\n\n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_free_shipping') }} \n group by 1, 2\n\n {% if var('shopify_using_discount_code_app', False) %}\n\n union all\n \n select\n discount_code_id,\n source_relation \n from {{ ref('stg_shopify__discount_code_app') }} \n group by 1, 2\n {% endif %}\n),\n\ndiscount_codes_source as (\n \n select \n discount_redeem_code.code, \n discount_redeem_code.source_relation,\n count(*) as code_count_source\n from discount_redeem_code\n left join discount_codes_unioned\n on discount_redeem_code.discount_code_id = discount_codes_unioned.discount_code_id\n and discount_redeem_code.source_relation = discount_codes_unioned.source_relation\n group by 1, 2\n),\n\n\ndiscount_codes_end as (\n\n select \n code, \n source_relation,\n count(*) as code_count_end\n from {{ ref('shopify__discounts') }}\n group by 1, 2\n),\n\n\nfinal as (\n\n select \n discount_codes_source.code,\n discount_codes_source.source_relation,\n coalesce(discount_codes_source.code_count_source, 0) as code_count_source,\n coalesce(discount_codes_end.code_count_end, 0) as code_count_end\n from discount_codes_source\n full outer join discount_codes_end\n on discount_codes_source.code = discount_codes_end.code\n and discount_codes_source.source_relation = discount_codes_end.source_relation\n)\n\nselect *\nfrom final\nwhere code_count_source != code_count_end", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__discount_redeem_code", "package": null, "version": null}, {"name": "stg_shopify__discount_code_basic", "package": null, "version": null}, {"name": "stg_shopify__discount_code_bxgy", "package": null, "version": null}, {"name": "stg_shopify__discount_code_free_shipping", "package": null, "version": null}, {"name": "stg_shopify__discount_code_app", "package": null, "version": null}, {"name": "shopify__discounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_daily_shop_fulfillment", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_daily_shop_fulfillment.sql", "original_file_path": "tests/integrity/vertical_integrity_daily_shop_fulfillment.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_daily_shop_fulfillment", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_daily_shop_fulfillment"], "alias": "vertical_integrity_daily_shop_fulfillment", "checksum": {"name": "sha256", "checksum": "ba5dfc5af503b2012b977cd000daf131bf61c08241aad583df03926212225016"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.0773225, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n-- test will only run if shopify_using_fulfillment_event is set to True\n\nwith source as (\n\n select *\n from {{ ref('stg_shopify__fulfillment_event') }}\n),\n\nsource_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','happened_at') }} as date) as date_day,\n shop_id,\n count(distinct case when status = 'delayed' then fulfillment_id end) as count_fulfillment_delayed,\n count(distinct case when status = 'in_transit' then fulfillment_id end) as count_fulfillment_in_transit,\n count(distinct case when status = 'confirmed' then fulfillment_id end) as count_fulfillment_confirmed,\n count(distinct case when status = 'delivered' then fulfillment_id end) as count_fulfillment_delivered\n\n from source\n where happened_at > '2020-01-01' and happened_at < '2024-06-10'\n group by 1,2,3\n),\n\nmodel as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\nmodel_metrics as (\n\n select \n source_relation,\n date_day,\n shop_id,\n sum(count_fulfillment_delayed) as count_fulfillment_delayed,\n sum(count_fulfillment_in_transit) as count_fulfillment_in_transit,\n sum(count_fulfillment_confirmed) as count_fulfillment_confirmed,\n sum(count_fulfillment_delivered) as count_fulfillment_delivered\n\n from model\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2,3\n),\n\nfinal as (\n\n select\n model_metrics.source_relation,\n model_metrics.shop_id as model_shop_id,\n source_metrics.shop_id as source_shop_id,\n model_metrics.date_day as model_date_day,\n source_metrics.date_day as source_date_day,\n coalesce(model_metrics.count_fulfillment_delayed, 0) as model_count_fulfillment_delayed,\n coalesce(source_metrics.count_fulfillment_delayed, 0) as source_count_fulfillment_delayed,\n coalesce(model_metrics.count_fulfillment_in_transit, 0) as model_count_fulfillment_in_transit,\n coalesce(source_metrics.count_fulfillment_in_transit, 0) as source_count_fulfillment_in_transit,\n coalesce(model_metrics.count_fulfillment_confirmed, 0) as model_count_fulfillment_confirmed,\n coalesce(source_metrics.count_fulfillment_confirmed, 0) as source_count_fulfillment_confirmed,\n coalesce(model_metrics.count_fulfillment_delivered, 0) as model_count_fulfillment_delivered,\n coalesce(source_metrics.count_fulfillment_delivered, 0) as source_count_fulfillment_delivered\n\n from model_metrics\n full outer join source_metrics\n on model_metrics.source_relation = source_metrics.source_relation\n and model_metrics.shop_id = source_metrics.shop_id\n and model_metrics.date_day = source_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \nmodel_count_fulfillment_delayed != source_count_fulfillment_delayed or\nmodel_count_fulfillment_in_transit != source_count_fulfillment_in_transit or\nmodel_count_fulfillment_confirmed != source_count_fulfillment_confirmed or\nmodel_count_fulfillment_delivered != source_count_fulfillment_delivered", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__fulfillment_event", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_line_item_enhanced.sql", "original_file_path": "tests/integrity/vertical_integrity_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_line_item_enhanced", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_line_item_enhanced"], "alias": "vertical_integrity_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "efc2b1e0ac6bc26d2581903d83d1d56be172c14cfff1d8d6d7fa6b6eb160c7f7"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.08622, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure there is no fanout between the staging order_line_table and the line_item_enhanced model.\nwith stg_order_line as (\n select\n 1 as join_key,\n count(*) as order_line_count,\n count(distinct order_id) as order_count\n from {{ ref('stg_shopify__order_line') }}\n),\n\nline_item_enhanced as (\n select\n 1 as join_key,\n count(*) as line_item_enhanced_count\n from {{ ref('shopify__line_item_enhanced') }}\n),\n\n-- test will return values and fail if the row counts don't match\n\nfinal as (\n select \n stg_order_line.join_key,\n stg_order_line.order_line_count + stg_order_line.order_count as total_line_and_order_count,\n line_item_enhanced.line_item_enhanced_count\n from stg_order_line\n join line_item_enhanced\n on stg_order_line.join_key = line_item_enhanced.join_key\n) \n\nselect *\nfrom final\nwhere total_line_and_order_count != line_item_enhanced_count", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify__order_line", "package": null, "version": null}, {"name": "shopify__line_item_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.integrity_inventory_level": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_inventory_level", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/integrity_inventory_level.sql", "original_file_path": "tests/integrity/integrity_inventory_level.sql", "unique_id": "test.shopify_integration_tests.integrity_inventory_level", "fqn": ["shopify_integration_tests", "integrity", "integrity_inventory_level"], "alias": "integrity_inventory_level", "checksum": {"name": "sha256", "checksum": "2f633fb0d91b0bebe0152b97a141df7481c08e0df5557ee4962f8d0ebe7bd7ee"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.0924547, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith source as (\n select\n count(*) as source_count\n from {{ target.schema }}_shopify_dev.stg_shopify__inventory_level as il\n join {{ target.schema }}_shopify_dev.stg_shopify__inventory_item as ii\n on il.inventory_item_id = ii.inventory_item_id \n and il.source_relation = ii.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__location as lo\n on il.location_id = lo.location_id \n and il.source_relation = lo.source_relation \n join {{ target.schema }}_shopify_dev.stg_shopify__product_variant as pv\n on il.inventory_item_id = pv.inventory_item_id\n and il.source_relation = pv.source_relation\n),\n\ntransform as (\n select\n count(*) as transform_count\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\ncompare as (\n select *\n from source\n cross join transform\n)\n\nselect *\nfrom compare\nwhere source_count != transform_count", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.vertical_integrity_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "vertical_integrity_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/vertical_integrity_customer_cohorts.sql", "original_file_path": "tests/integrity/vertical_integrity_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.vertical_integrity_customer_cohorts", "fqn": ["shopify_integration_tests", "integrity", "vertical_integrity_customer_cohorts"], "alias": "vertical_integrity_customer_cohorts", "checksum": {"name": "sha256", "checksum": "19553b1bce28d0577a330dc5544f21b9326b91d673b50fdfdc0ca5980b17f7ff"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.0985308, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith calendar as (\n\n select *\n from {{ ref('shopify__calendar') }}\n where cast({{ dbt.date_trunc('month','date_day') }} as date) = date_day\n\n), \n\ncustomers as (\n\n select *\n from {{ ref('shopify__customers') }}\n\n), \n\norders as (\n\n select *\n from {{ ref('shopify__orders') }}\n\n), \n\ncustomer_cohort_source as (\n\n select \n customers.source_relation,\n count(*) as source_rows \n from calendar\n inner join customers\n on cast({{ dbt.date_trunc('month', 'first_order_timestamp') }} as date) <= calendar.date_day\n group by 1\n),\n\ncustomer_cohort_end as (\n\n select \n source_relation,\n count(*) as end_rows\n from {{ ref('shopify__customer_cohorts') }}\n group by 1\n),\n\nfinal as (\n select\n customer_cohort_source.source_relation,\n source_rows,\n end_rows\n from customer_cohort_source\n join customer_cohort_end\n on customer_cohort_source.source_relation = customer_cohort_end.source_relation\n where customer_cohort_source.source_rows != customer_cohort_end.end_rows\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__calendar", "package": null, "version": null}, {"name": "shopify__customers", "package": null, "version": null}, {"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__customer_cohorts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "horizontal_integrity_daily_shop_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "integrity/horizontal_integrity_daily_shop_orders.sql", "original_file_path": "tests/integrity/horizontal_integrity_daily_shop_orders.sql", "unique_id": "test.shopify_integration_tests.horizontal_integrity_daily_shop_orders", "fqn": ["shopify_integration_tests", "integrity", "horizontal_integrity_daily_shop_orders"], "alias": "horizontal_integrity_daily_shop_orders", "checksum": {"name": "sha256", "checksum": "addd76b5760975069f87aac715bd3ade9a52af4049104f635902fd87b8b41b1a"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.1070151, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith orders as (\n\n select *\n from {{ ref('shopify__orders') }}\n),\n\norder_metrics as (\n\n select \n source_relation,\n cast({{ dbt.date_trunc('day','created_timestamp') }} as date) as date_day,\n count(distinct order_id) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from orders\n where created_timestamp > '2020-01-01' and created_timestamp < '2024-06-10'\n group by 1,2\n),\n\ndaily_shop as (\n\n select *\n from {{ ref('shopify__daily_shop') }}\n),\n\ndaily_shop_metrics as (\n\n select \n source_relation,\n date_day,\n sum(count_orders) as count_orders,\n sum(order_adjusted_total) as order_adjusted_total\n\n from daily_shop\n where date_day >= '2020-01-01' and date_day < '2024-06-10'\n group by 1,2\n),\n\nfinal as (\n\n select\n daily_shop_metrics.source_relation,\n coalesce(daily_shop_metrics.count_orders, 0) as daily_shop_count_orders,\n coalesce(order_metrics.count_orders, 0) as order_count_orders,\n coalesce(daily_shop_metrics.order_adjusted_total, 0) as daily_shop_order_adjusted_total,\n coalesce(order_metrics.order_adjusted_total, 0) as order_order_adjusted_total\n\n from daily_shop_metrics\n full outer join order_metrics\n on daily_shop_metrics.source_relation = order_metrics.source_relation\n and daily_shop_metrics.date_day = order_metrics.date_day\n)\n\nselect *\nfrom final\nwhere \n abs(daily_shop_count_orders - order_count_orders) > 0 or\n abs(daily_shop_order_adjusted_total - order_order_adjusted_total) > .1", "doc_blocks": [], "language": "sql", "refs": [{"name": "shopify__orders", "package": null, "version": null}, {"name": "shopify__daily_shop", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_inventory_levels": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_inventory_levels", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_inventory_levels.sql", "original_file_path": "tests/consistency/consistency_inventory_levels.sql", "unique_id": "test.shopify_integration_tests.consistency_inventory_levels", "fqn": ["shopify_integration_tests", "consistency", "consistency_inventory_levels"], "alias": "consistency_inventory_levels", "checksum": {"name": "sha256", "checksum": "5c4bf90e9896cd512f8251e7b55deaf76564f860f24c9332b2379854562145fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.113457, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__inventory_levels\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_discounts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_discounts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_discounts.sql", "original_file_path": "tests/consistency/consistency_discounts.sql", "unique_id": "test.shopify_integration_tests.consistency_discounts", "fqn": ["shopify_integration_tests", "consistency", "consistency_discounts"], "alias": "consistency_discounts", "checksum": {"name": "sha256", "checksum": "c4c0089722a912fc6859d3f23b928425253c88ad16955dc1ec30dd47328d24b8"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.1190321, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__discounts\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__discounts\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_cohorts"], "alias": "consistency_customer_cohorts", "checksum": {"name": "sha256", "checksum": "389c12079464cf20fe1f6888a7e40c8bb469148349a20931a8ba997e2f0023fc"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.1246111, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_order_lines": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_order_lines", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_order_lines.sql", "original_file_path": "tests/consistency/consistency_order_lines.sql", "unique_id": "test.shopify_integration_tests.consistency_order_lines", "fqn": ["shopify_integration_tests", "consistency", "consistency_order_lines"], "alias": "consistency_order_lines", "checksum": {"name": "sha256", "checksum": "0a6491b31602ef2fecc145804b8b8f386801aba35815ea3dc70e4bc0aaf5c3d9"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.1302607, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__order_lines\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__order_lines\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.row_count_rest_inventory_levels": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "row_count_rest_inventory_levels", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/row_count_rest_inventory_levels.sql", "original_file_path": "tests/consistency/row_count_rest_inventory_levels.sql", "unique_id": "test.shopify_integration_tests.row_count_rest_inventory_levels", "fqn": ["shopify_integration_tests", "consistency", "row_count_rest_inventory_levels"], "alias": "row_count_rest_inventory_levels", "checksum": {"name": "sha256", "checksum": "398f49d78b7b08f70b0a7b984dea95175e4b4080fa60cf2107baac8ffa69ad93"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.1366613, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__inventory_levels\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__inventory_levels\n), \n\nprod_count as (\n select \n count(*) as total_prod_rows\n from prod\n),\n\ndev_count as (\n select \n count(*) as total_dev_rows\n from dev\n),\n\nfinal as (\n select\n total_prod_rows,\n total_dev_rows\n from prod_count\n cross join dev_count\n)\n\nselect *\nfrom final\nwhere total_prod_rows != total_dev_rows", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_daily_shop": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_daily_shop", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_daily_shop.sql", "original_file_path": "tests/consistency/consistency_daily_shop.sql", "unique_id": "test.shopify_integration_tests.consistency_daily_shop", "fqn": ["shopify_integration_tests", "consistency", "consistency_daily_shop"], "alias": "consistency_daily_shop", "checksum": {"name": "sha256", "checksum": "c6b82febd4b38d78edcc9e3b3f8dba293d1754d7223d5c16828b5f48f01742f5"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.1422002, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_prod.shopify__daily_shop\n group by 1,2,3\n),\n\ndev as (\n select\n date_day,\n shop_id, \n source_relation,\n sum(count_orders) as count_orders,\n count(count_customers) as count_customers,\n sum(order_adjusted_total) as order_adjusted_total,\n sum(count_abandoned_checkouts) as count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , sum(count_fulfillment_attempted_delivery) as count_fulfillment_attempted_delivery\n , sum(count_fulfillment_confirmed) as count_fulfillment_confirmed\n , count(count_fulfillment_in_transit) as count_fulfillment_in_transit\n {% endif %}\n\n from {{ target.schema }}_shopify_dev.shopify__daily_shop\n group by 1,2,3\n),\n\nfinal as (\n select \n prod.date_day as prod_date_day,\n dev.date_day as dev_date_day,\n prod.shop_id as prod_shop_id,\n dev.shop_id as dev_shop_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.count_orders as prod_count_orders,\n dev.count_orders as dev_count_orders,\n prod.count_customers as prod_count_customers,\n dev.count_customers as dev_count_customers,\n prod.order_adjusted_total as prod_order_adjusted_total,\n dev.order_adjusted_total as dev_order_adjusted_total,\n prod.count_abandoned_checkouts as prod_count_abandoned_checkouts,\n dev.count_abandoned_checkouts as dev_count_abandoned_checkouts\n\n {% if var('shopify_using_fulfillment_event', false) %}\n , prod.count_fulfillment_attempted_delivery as prod_count_fulfillment_attempted_delivery\n , dev.count_fulfillment_attempted_delivery as dev_count_fulfillment_attempted_delivery\n , prod.count_fulfillment_confirmed as prod_count_fulfillment_confirmed\n , dev.count_fulfillment_confirmed as dev_count_fulfillment_confirmed\n {% endif %}\n\n from prod\n full outer join dev \n on dev.date_day = prod.date_day\n and dev.shop_id = prod.shop_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_date_day != dev_date_day or\n prod_shop_id != dev_shop_id or\n prod_source_relation != dev_source_relation or\n abs(prod_count_orders - dev_count_orders) > .001 or\n abs(prod_count_customers - dev_count_customers) > .001 or\n abs(prod_order_adjusted_total - dev_order_adjusted_total) > .001 or\n abs(prod_count_abandoned_checkouts - dev_count_abandoned_checkouts) > .001\n \n {% if var('shopify_using_fulfillment_event', false) %}\n or abs(prod_count_fulfillment_attempted_delivery - dev_count_fulfillment_attempted_delivery) > .001\n or abs(prod_count_fulfillment_confirmed - dev_count_fulfillment_confirmed) > .001\n {% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_emails": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_emails", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_emails.sql", "original_file_path": "tests/consistency/consistency_customer_emails.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_emails", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_emails"], "alias": "consistency_customer_emails", "checksum": {"name": "sha256", "checksum": "f65921899974fb386942217898b874b933b185b03ba96b7b4393a21c57749faf"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.1494093, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customer_emails\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customer_emails\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customers": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customers", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customers.sql", "original_file_path": "tests/consistency/consistency_customers.sql", "unique_id": "test.shopify_integration_tests.consistency_customers", "fqn": ["shopify_integration_tests", "consistency", "consistency_customers"], "alias": "consistency_customers", "checksum": {"name": "sha256", "checksum": "b585f5c5f4001fd7febda99275ce6e83ccc77d28d5113615025a883a10b3fe75"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.1548781, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__customers\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__customers\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_customer_email_cohorts": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_customer_email_cohorts", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_customer_email_cohorts.sql", "original_file_path": "tests/consistency/consistency_customer_email_cohorts.sql", "unique_id": "test.shopify_integration_tests.consistency_customer_email_cohorts", "fqn": ["shopify_integration_tests", "consistency", "consistency_customer_email_cohorts"], "alias": "consistency_customer_email_cohorts", "checksum": {"name": "sha256", "checksum": "9c68a37c8316395c4e9454f955bf9a88a8ec0f0a1b8e8b92f0324c30118b0a38"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.1612346, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_prod.shopify__customer_email_cohorts\n),\n\ndev as (\n\n select\n customer_cohort_id, \n source_relation,\n total_price_lifetime,\n order_count_lifetime,\n line_item_count_lifetime\n from {{ target.schema }}_shopify_dev.shopify__customer_email_cohorts \n),\n\nfinal as (\n\n select \n prod.customer_cohort_id as prod_customer_cohort_id,\n dev.customer_cohort_id as dev_customer_cohort_id,\n prod.source_relation as prod_source_relation,\n dev.source_relation as dev_source_relation,\n prod.total_price_lifetime as prod_total_price_lifetime,\n dev.total_price_lifetime as dev_total_price_lifetime,\n prod.order_count_lifetime as prod_order_count_lifetime,\n dev.order_count_lifetime as dev_order_count_lifetime,\n prod.line_item_count_lifetime as prod_line_item_count_lifetime,\n dev.line_item_count_lifetime as dev_line_item_count_lifetime\n from prod\n full outer join dev \n on dev.customer_cohort_id = prod.customer_cohort_id\n and dev.source_relation = prod.source_relation\n)\n\nselect *\nfrom final\nwhere \n prod_customer_cohort_id != dev_customer_cohort_id or \n prod_source_relation != dev_source_relation or\n abs(prod_total_price_lifetime - dev_total_price_lifetime) > .001 or\n abs(prod_order_count_lifetime - dev_order_count_lifetime) > .001 or\n abs(prod_line_item_count_lifetime - dev_line_item_count_lifetime) > .001", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced_count": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced_count", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced_count.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced_count.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced_count", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced_count"], "alias": "consistency_line_item_enhanced_count", "checksum": {"name": "sha256", "checksum": "5966fa4f5d6392d55c6776983375aba21f63ec6d2bce09807769e2f807973074"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.166902, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\n-- this test is to make sure the rows counts are the same between versions\nwith prod as (\n select count(*) as prod_rows\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select count(*) as dev_rows\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n)\n\n-- test will return values and fail if the row counts don't match\nselect *\nfrom prod\njoin dev\n on prod.prod_rows != dev.dev_rows", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_line_item_enhanced": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_line_item_enhanced", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_line_item_enhanced.sql", "original_file_path": "tests/consistency/consistency_line_item_enhanced.sql", "unique_id": "test.shopify_integration_tests.consistency_line_item_enhanced", "fqn": ["shopify_integration_tests", "consistency", "consistency_line_item_enhanced"], "alias": "consistency_line_item_enhanced", "checksum": {"name": "sha256", "checksum": "bafda328d8951e5c1315715ae2af2b6db591c008cfb2e3e87102e102a927127d"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.1727734, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('shopify__standardized_billing_model_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__line_item_enhanced\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__line_item_enhanced\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_orders": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_orders", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_orders.sql", "original_file_path": "tests/consistency/consistency_orders.sql", "unique_id": "test.shopify_integration_tests.consistency_orders", "fqn": ["shopify_integration_tests", "consistency", "consistency_orders"], "alias": "consistency_orders", "checksum": {"name": "sha256", "checksum": "0ab8c3335aa456106375ec248d3f309d35588f35d3654b13270a44eadb27faf6"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.1785326, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__orders\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__orders\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.row_count_gql_inventory_levels": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "row_count_gql_inventory_levels", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/row_count_gql_inventory_levels.sql", "original_file_path": "tests/consistency/row_count_gql_inventory_levels.sql", "unique_id": "test.shopify_integration_tests.row_count_gql_inventory_levels", "fqn": ["shopify_integration_tests", "consistency", "row_count_gql_inventory_levels"], "alias": "row_count_gql_inventory_levels", "checksum": {"name": "sha256", "checksum": "b7a8534a0a818313148fae1e8cc1ee5e3f70ed548a5af90537d9d8c40269b4db"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.1840606, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify_gql__inventory_levels\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify_gql__inventory_levels\n), \n\nprod_count as (\n select \n count(*) as total_prod_rows\n from prod\n),\n\ndev_count as (\n select \n count(*) as total_dev_rows\n from dev\n),\n\nfinal as (\n select\n total_prod_rows,\n total_dev_rows\n from prod_count\n cross join dev_count\n)\n\nselect *\nfrom final\nwhere total_prod_rows != total_dev_rows", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.shopify_integration_tests.consistency_transactions": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_transactions", "resource_type": "test", "package_name": "shopify_integration_tests", "path": "consistency/consistency_transactions.sql", "original_file_path": "tests/consistency/consistency_transactions.sql", "unique_id": "test.shopify_integration_tests.consistency_transactions", "fqn": ["shopify_integration_tests", "consistency", "consistency_transactions"], "alias": "consistency_transactions", "checksum": {"name": "sha256", "checksum": "4a35a742a91f9610e5f2f43d798aa32b4a7a03316db67fa95804ae894a6bddbd"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1757005796.1906846, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_shopify_prod.shopify__transactions\n),\n\ndev as (\n select *\n from {{ target.schema }}_shopify_dev.shopify__transactions\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "model.shopify_source.stg_shopify_gql__collection_rule": [{"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_rule", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/stg_shopify_gql__collection_rule.sql", "original_file_path": "models/graphql/stg_shopify_gql__collection_rule.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_rule", "fqn": ["shopify_source", "graphql", "stg_shopify_gql__collection_rule"], "alias": "stg_shopify_gql__collection_rule", "checksum": {"name": "sha256", "checksum": "01b76dc43dec6771d2c2ec7d82f1b18c80fa72974103274014b2147c07abaf8f"}, "config": {"enabled": false, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Defines the rules used to automatically include products in a smart collection. Each rule specifies a product attribute, a comparison relation, and a condition value to match against. These rules are evaluated dynamically to determine collection membership without manual curation.\n", "columns": {"unique_key": {"name": "unique_key", "description": "Surrogate key hashed on `collection_id`, `index`, and `source_relation`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "{{ doc('_fivetran_synced') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID of the smart collection to which this rule applies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of the rule within the collection's rule set. Rules are evaluated in order and may be grouped depending on collection logic.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "condition": {"name": "condition", "description": "The value to compare against the attribute. For example, \u201cHats\u201d if the rule is targeting products with a title containing \u201cHats\u201d. The interpretation depends on the associated `relation` and `columns` values.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "relation": {"name": "relation", "description": "The operator used to evaluate the rule. Common values include: - `equals` - `contains` - `not_equals` - `starts_with` - `ends_with` - `is_set` - `is_not_set` - `greater_than` - `less_than` - `not_contains`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "columns": {"name": "columns", "description": "The attribute being evaluated by the rule. Example values include: - `title` - `vendor` - `tag` - `variant_price` - `product_category_id` - `variant_compare_at_price` - `variant_metafield_definition` - `product_metafield_definition` - `variant_weight` - `type` - `is_price_reduced`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "{{ doc('source_relation') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "shopify_source://models/graphql/stg_shopify_graphql.yml", "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": false}, "created_at": 1757005802.0556958, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_rule\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_collection_rule', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_shopify_gql__collection_rule_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_shopify_gql__collection_rule_tmp')),\n staging_columns=get_graphql_collection_rule_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='shopify_union_schemas', \n union_database_variable='shopify_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n collection_id,\n index,\n columns,\n condition,\n relation,\n {{ shopify_source.fivetran_convert_timezone(column='cast(_fivetran_synced as ' ~ dbt.type_timestamp() ~ ')', target_tz=var('shopify_timezone', \"UTC\"), source_tz=\"UTC\") }} as _fivetran_synced,\n source_relation,\n {{ dbt_utils.generate_surrogate_key(['collection_id', 'index', 'source_relation']) }} as unique_key\n\n from fields\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_shopify_gql__collection_rule_tmp", "package": null, "version": null}, {"name": "stg_shopify_gql__collection_rule_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.get_graphql_collection_rule_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.shopify_source.fivetran_convert_timezone", "macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}], "model.shopify_source.stg_shopify_gql__collection_rule_tmp": [{"database": "postgres", "schema": "public_shopify", "name": "stg_shopify_gql__collection_rule_tmp", "resource_type": "model", "package_name": "shopify_source", "path": "graphql/tmp/stg_shopify_gql__collection_rule_tmp.sql", "original_file_path": "models/graphql/tmp/stg_shopify_gql__collection_rule_tmp.sql", "unique_id": "model.shopify_source.stg_shopify_gql__collection_rule_tmp", "fqn": ["shopify_source", "graphql", "tmp", "stg_shopify_gql__collection_rule_tmp"], "alias": "stg_shopify_gql__collection_rule_tmp", "checksum": {"name": "sha256", "checksum": "aea52cb2c08d241449697e4e67354b058c5b993645b80afe28dff54b1189108d"}, "config": {"enabled": false, "alias": null, "schema": "shopify", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "{{ 'shopify_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'shopify' }}", "materialized": "view", "enabled": false}, "created_at": 1757005798.5479155, "relation_name": "\"postgres\".\"public_shopify\".\"stg_shopify_gql__collection_rule_tmp\"", "raw_code": "{{ config(enabled=var('shopify_gql_using_collection_rule', False) and var('shopify_api', 'rest') == var('shopify_api_override','graphql')) }}\n\n{{\n shopify_source.shopify_union_data(\n table_identifier='collection_rule', \n database_variable='shopify_database', \n schema_variable='shopify_schema', \n default_database=target.database,\n default_schema='shopify',\n default_variable='gql_collection_rule_source',\n union_schema_variable='shopify_union_schemas',\n union_database_variable='shopify_union_databases',\n shopify_model_api='graphql'\n )\n}}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["shopify_graphql", "collection_rule"], ["shopify_graphql", "collection_rule"]], "metrics": [], "depends_on": {"macros": ["macro.shopify_source.shopify_union_data"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}], "source.shopify_source.shopify_graphql.collection_rule": [{"database": "postgres", "schema": "public", "name": "collection_rule", "resource_type": "source", "package_name": "shopify_source", "path": "models/graphql/src_shopify_graphql.yml", "original_file_path": "models/graphql/src_shopify_graphql.yml", "unique_id": "source.shopify_source.shopify_graphql.collection_rule", "fqn": ["shopify_source", "graphql", "shopify_graphql", "collection_rule"], "source_name": "shopify_graphql", "source_description": "", "loader": "", "identifier": "shopify_gql_collection_rule_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Defines the rules used to automatically include products in a smart collection. Each rule specifies a product attribute, a comparison relation, and a condition value to match against. These rules are evaluated dynamically to determine collection membership without manual curation.\n", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "{{ doc('_fivetran_synced') }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "collection_id": {"name": "collection_id", "description": "The ID of the smart collection to which this rule applies.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "index": {"name": "index", "description": "The position of the rule within the collection's rule set. Rules are evaluated in order and may be grouped depending on collection logic.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "condition": {"name": "condition", "description": "The value to compare against the attribute. For example, \u201cHats\u201d if the rule is targeting products with a title containing \u201cHats\u201d. The interpretation depends on the associated `relation` and `columns` values.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "relation": {"name": "relation", "description": "The operator used to evaluate the rule. Common values include: - `equals` - `contains` - `not_equals` - `starts_with` - `ends_with` - `is_set` - `is_not_set` - `greater_than` - `less_than` - `not_contains`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "columns": {"name": "columns", "description": "The attribute being evaluated by the rule. Example values include: - `title` - `vendor` - `tag` - `variant_price` - `product_category_id` - `variant_compare_at_price` - `variant_metafield_definition` - `product_metafield_definition` - `variant_weight` - `type` - `is_price_reduced`\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": false, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "patch_path": null, "unrendered_config": {"enabled": false, "loaded_at_field": null, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"shopify_gql_collection_rule_data\"", "created_at": 1757005803.0950828, "unrendered_database": "{% if target.type not in ('spark') %}{{ var('shopify_database', target.database) }}{% endif %}", "unrendered_schema": "{{ var('shopify_schema', 'shopify') }}", "doc_blocks": []}]}, "parent_map": {"seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product": [], "seed.shopify_integration_tests.shopify_gql_order_data": [], "seed.shopify_integration_tests.shopify_gql_customer_visit_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": [], "seed.shopify_integration_tests.shopify_gql_collection_rule_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_gql_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_gql_media_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_customer_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_gql_metafield_data": [], "seed.shopify_integration_tests.shopify_gql_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_media_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": [], "seed.shopify_integration_tests.shopify_gql_shop_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_collection_data": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_gql_customer_address_data": [], "seed.shopify_integration_tests.shopify_gql_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_gql_product_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_gql_location_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_transaction_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_level_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_refund_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_gql_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_product_tag_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_media_image_data": [], "model.shopify_source.stg_shopify_gql__order_discount_code": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"], "model.shopify_source.stg_shopify_gql__refund": ["model.shopify_source.stg_shopify_gql__refund_tmp"], "model.shopify_source.stg_shopify_gql__inventory_level": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"], "model.shopify_source.stg_shopify_gql__location": ["model.shopify_source.stg_shopify_gql__location_tmp"], "model.shopify_source.stg_shopify_gql__order": ["model.shopify_source.stg_shopify_gql__order_tmp"], "model.shopify_source.stg_shopify_gql__discount_application": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"], "model.shopify_source.stg_shopify_gql__metafield": ["model.shopify_source.stg_shopify_gql__metafield_tmp"], "model.shopify_source.stg_shopify_gql__media_image": ["model.shopify_source.stg_shopify_gql__media_image_tmp"], "model.shopify_source.stg_shopify_gql__shop": ["model.shopify_source.stg_shopify_gql__shop_tmp"], "model.shopify_source.stg_shopify_gql__tender_transaction": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"], "model.shopify_source.stg_shopify_gql__order_line": ["model.shopify_source.stg_shopify_gql__order_line_tmp"], "model.shopify_source.stg_shopify_gql__collection": ["model.shopify_source.stg_shopify_gql__collection_tmp"], "model.shopify_source.stg_shopify_gql__order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"], "model.shopify_source.stg_shopify_gql__transaction": ["model.shopify_source.stg_shopify_gql__transaction_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_event": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_app": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"], "model.shopify_source.stg_shopify_gql__order_shipping_line": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"], "model.shopify_source.stg_shopify_gql__order_line_refund": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"], "model.shopify_source.stg_shopify_gql__product_variant": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"], "model.shopify_source.stg_shopify_gql__discount_redeem_code": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"], "model.shopify_source.stg_shopify_gql__product_variant_media": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"], "model.shopify_source.stg_shopify_gql__order_tag": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"], "model.shopify_source.stg_shopify_gql__abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"], "model.shopify_source.stg_shopify_gql__tax_line": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"], "model.shopify_source.stg_shopify_gql__customer": ["model.shopify_source.stg_shopify_gql__customer_tmp"], "model.shopify_source.stg_shopify_gql__inventory_item": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"], "model.shopify_source.stg_shopify_gql__product_media": ["model.shopify_source.stg_shopify_gql__product_media_tmp"], "model.shopify_source.stg_shopify_gql__collection_product": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"], "model.shopify_source.stg_shopify_gql__customer_visit": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "model.shopify_source.stg_shopify_gql__customer_address": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"], "model.shopify_source.stg_shopify_gql__product": ["model.shopify_source.stg_shopify_gql__product_tmp"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"], "model.shopify_source.stg_shopify_gql__media": ["model.shopify_source.stg_shopify_gql__media_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_basic": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"], "model.shopify_source.stg_shopify_gql__product_tag": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"], "model.shopify_source.stg_shopify_gql__customer_tag": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"], "model.shopify_source.stg_shopify_gql__discount_allocation": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"], "model.shopify_source.stg_shopify_gql__inventory_quantity": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"], "model.shopify_source.stg_shopify_gql__order_note_attribute": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"], "model.shopify_source.stg_shopify_gql__inventory_item_tmp": ["source.shopify_source.shopify_graphql.inventory_item"], "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": ["source.shopify_source.shopify_graphql.order_adjustment"], "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": ["source.shopify_source.shopify_graphql.discount_redeem_code"], "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": ["source.shopify_source.shopify_graphql.tender_transaction"], "model.shopify_source.stg_shopify_gql__tax_line_tmp": ["source.shopify_source.shopify_graphql.tax_line"], "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": ["source.shopify_source.shopify_graphql.order_line_refund"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": ["source.shopify_source.shopify_graphql.discount_code_bxgy"], "model.shopify_source.stg_shopify_gql__fulfillment_tmp": ["source.shopify_source.shopify_graphql.fulfillment"], "model.shopify_source.stg_shopify_gql__location_tmp": ["source.shopify_source.shopify_graphql.location"], "model.shopify_source.stg_shopify_gql__customer_visit_tmp": ["source.shopify_source.shopify_graphql.customer_visit"], "model.shopify_source.stg_shopify_gql__order_tag_tmp": ["source.shopify_source.shopify_graphql.order_tag"], "model.shopify_source.stg_shopify_gql__product_variant_tmp": ["source.shopify_source.shopify_graphql.product_variant"], "model.shopify_source.stg_shopify_gql__collection_product_tmp": ["source.shopify_source.shopify_graphql.collection_product"], "model.shopify_source.stg_shopify_gql__shop_tmp": ["source.shopify_source.shopify_graphql.shop"], "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": ["source.shopify_source.shopify_graphql.order_discount_code"], "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": ["source.shopify_source.shopify_graphql.order_note_attribute"], "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": ["source.shopify_source.shopify_graphql.product_variant_media"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": ["source.shopify_source.shopify_graphql.abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": ["source.shopify_source.shopify_graphql.order_shipping_line"], "model.shopify_source.stg_shopify_gql__customer_tag_tmp": ["source.shopify_source.shopify_graphql.customer_tag"], "model.shopify_source.stg_shopify_gql__media_image_tmp": ["source.shopify_source.shopify_graphql.media_image"], "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": ["source.shopify_source.shopify_graphql.discount_allocation"], "model.shopify_source.stg_shopify_gql__media_tmp": ["source.shopify_source.shopify_graphql.media"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": ["source.shopify_source.shopify_graphql.fulfillment_tracking_info"], "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": ["source.shopify_source.shopify_graphql.discount_code_app"], "model.shopify_source.stg_shopify_gql__inventory_level_tmp": ["source.shopify_source.shopify_graphql.inventory_level"], "model.shopify_source.stg_shopify_gql__product_tmp": ["source.shopify_source.shopify_graphql.product"], "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": ["source.shopify_source.shopify_graphql.fulfillment_event"], "model.shopify_source.stg_shopify_gql__product_tag_tmp": ["source.shopify_source.shopify_graphql.product_tag"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": ["source.shopify_source.shopify_graphql.discount_code_free_shipping"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": ["source.shopify_source.shopify_graphql.fulfillment_order_line_item"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": ["source.shopify_source.shopify_graphql.order_shipping_tax_line"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": ["source.shopify_source.shopify_graphql.abandoned_checkout"], "model.shopify_source.stg_shopify_gql__customer_address_tmp": ["source.shopify_source.shopify_graphql.customer_address"], "model.shopify_source.stg_shopify_gql__discount_application_tmp": ["source.shopify_source.shopify_graphql.discount_application"], "model.shopify_source.stg_shopify_gql__collection_tmp": ["source.shopify_source.shopify_graphql.collection"], "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": ["source.shopify_source.shopify_graphql.inventory_quantity"], "model.shopify_source.stg_shopify_gql__refund_tmp": ["source.shopify_source.shopify_graphql.refund"], "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": ["source.shopify_source.shopify_graphql.discount_code_basic"], "model.shopify_source.stg_shopify_gql__product_media_tmp": ["source.shopify_source.shopify_graphql.product_media"], "model.shopify_source.stg_shopify_gql__metafield_tmp": ["source.shopify_source.shopify_graphql.metafield"], "model.shopify_source.stg_shopify_gql__order_line_tmp": ["source.shopify_source.shopify_graphql.order_line"], "model.shopify_source.stg_shopify_gql__transaction_tmp": ["source.shopify_source.shopify_graphql.transaction"], "model.shopify_source.stg_shopify_gql__customer_tmp": ["source.shopify_source.shopify_graphql.customer"], "model.shopify_source.stg_shopify_gql__order_tmp": ["source.shopify_source.shopify_graphql.order"], "model.shopify_source.stg_shopify__shop": ["model.shopify_source.stg_shopify__shop_tmp"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "model.shopify_source.stg_shopify__location": ["model.shopify_source.stg_shopify__location_tmp"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "model.shopify_source.stg_shopify__discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "model.shopify_source.stg_shopify__metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "model.shopify_source.stg_shopify__order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "model.shopify_source.stg_shopify__customer": ["model.shopify_source.stg_shopify__customer_tmp"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "model.shopify_source.stg_shopify__media": ["model.shopify_source.stg_shopify__media_tmp"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "model.shopify_source.stg_shopify__order": ["model.shopify_source.stg_shopify__order_tmp"], "model.shopify_source.stg_shopify__refund": ["model.shopify_source.stg_shopify__refund_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "model.shopify_source.stg_shopify__collection": ["model.shopify_source.stg_shopify__collection_tmp"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "model.shopify_source.stg_shopify__order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "model.shopify_source.stg_shopify__product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "model.shopify_source.stg_shopify__product": ["model.shopify_source.stg_shopify__product_tmp"], "model.shopify_source.stg_shopify__transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "model.shopify_source.stg_shopify__media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "model.shopify_source.stg_shopify__order_tag_tmp": ["source.shopify_source.shopify.order_tag"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["source.shopify_source.shopify.order_shipping_tax_line"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["source.shopify_source.shopify.discount_redeem_code"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["source.shopify_source.shopify.order_adjustment"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["source.shopify_source.shopify.discount_code_bxgy"], "model.shopify_source.stg_shopify__product_tag_tmp": ["source.shopify_source.shopify.product_tag"], "model.shopify_source.stg_shopify__product_media_tmp": ["source.shopify_source.shopify.product_media"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["source.shopify_source.shopify.abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__tax_line_tmp": ["source.shopify_source.shopify.tax_line"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["source.shopify_source.shopify.order_note_attribute"], "model.shopify_source.stg_shopify__product_tmp": ["source.shopify_source.shopify.product"], "model.shopify_source.stg_shopify__customer_tmp": ["source.shopify_source.shopify.customer"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["source.shopify_source.shopify.discount_code_free_shipping"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["source.shopify_source.shopify.customer_tag"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["source.shopify_source.shopify.discount_code_app"], "model.shopify_source.stg_shopify__collection_product_tmp": ["source.shopify_source.shopify.collection_product"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["source.shopify_source.shopify.inventory_item"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["source.shopify_source.shopify.product_variant_media"], "model.shopify_source.stg_shopify__collection_tmp": ["source.shopify_source.shopify.collection"], "model.shopify_source.stg_shopify__media_tmp": ["source.shopify_source.shopify.media"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["source.shopify_source.shopify.order_url_tag"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["source.shopify_source.shopify.discount_allocation"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["source.shopify_source.shopify.inventory_level"], "model.shopify_source.stg_shopify__order_line_tmp": ["source.shopify_source.shopify.order_line"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["source.shopify_source.shopify.discount_code_basic"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["source.shopify_source.shopify.abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["source.shopify_source.shopify.order_shipping_line"], "model.shopify_source.stg_shopify__refund_tmp": ["source.shopify_source.shopify.refund"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["source.shopify_source.shopify.tender_transaction"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["source.shopify_source.shopify.order_discount_code"], "model.shopify_source.stg_shopify__media_image_tmp": ["source.shopify_source.shopify.media_image"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["source.shopify_source.shopify.fulfillment_event"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["source.shopify_source.shopify.order_line_refund"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["source.shopify_source.shopify.inventory_quantity"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["source.shopify_source.shopify.fulfillment"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["source.shopify_source.shopify.abandoned_checkout"], "model.shopify_source.stg_shopify__shop_tmp": ["source.shopify_source.shopify.shop"], "model.shopify_source.stg_shopify__metafield_tmp": ["source.shopify_source.shopify.metafield"], "model.shopify_source.stg_shopify__product_variant_tmp": ["source.shopify_source.shopify.product_variant"], "model.shopify_source.stg_shopify__location_tmp": ["source.shopify_source.shopify.location"], "model.shopify_source.stg_shopify__discount_application_tmp": ["source.shopify_source.shopify.discount_application"], "model.shopify_source.stg_shopify__transaction_tmp": ["source.shopify_source.shopify.transaction"], "model.shopify_source.stg_shopify__order_tmp": ["source.shopify_source.shopify.order"], "model.shopify.shopify__calendar": [], "model.shopify.shopify_gql__customer_emails": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.int_shopify_gql__emails_order_aggregates"], "model.shopify.shopify_gql__customer_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customers", "model.shopify.shopify_gql__orders"], "model.shopify.shopify_gql__customer_email_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify_gql__customer_emails", "model.shopify.shopify_gql__orders"], "model.shopify.shopify_gql__inventory_levels": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__inventory_level", "model.shopify_source.stg_shopify_gql__inventory_quantity", "model.shopify_source.stg_shopify_gql__location", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify.shopify_gql__daily_shop": ["model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__daily_fulfillment", "model.shopify.int_shopify_gql__daily_orders", "model.shopify.shopify__calendar", "model.shopify_source.stg_shopify_gql__shop"], "model.shopify.shopify_gql__customers": ["model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify.shopify_gql__orders": ["model.shopify.int_shopify_gql__order", "model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__order_discount_code", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__order_tag"], "model.shopify.shopify_gql__transactions": ["model.shopify.int_shopify_gql__order", "model.shopify_source.stg_shopify_gql__tender_transaction", "model.shopify_source.stg_shopify_gql__transaction"], "model.shopify.shopify_gql__products": ["model.shopify.int_shopify_gql__product_order_line_aggregates", "model.shopify.int_shopify_gql__products_with_aggregates"], "model.shopify.shopify_gql__order_lines": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.int_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify.shopify_gql__discounts": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.int_shopify_gql__discounts_order_aggregates"], "model.shopify.shopify_gql__line_item_enhanced": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__order", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__transaction"], "model.shopify.int_shopify_gql__order_fulfillment_aggregates": ["model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "model.shopify.int_shopify_gql__daily_abandoned_checkouts": ["model.shopify.int_shopify_gql__abandoned_checkout"], "model.shopify.int_shopify_gql__daily_orders": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__orders_order_refunds": ["model.shopify_source.stg_shopify_gql__order_line_refund", "model.shopify_source.stg_shopify_gql__refund"], "model.shopify.int_shopify_gql__order_shipping_aggregates": ["model.shopify_source.stg_shopify_gql__order_shipping_line", "model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "model.shopify.int_shopify_gql__customer_email_rollup": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify.int_shopify_gql__product_order_line_aggregates": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__emails_order_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__daily_fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "model.shopify.int_shopify_gql__orders_order_line_aggregates": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify.int_shopify_gql__discount_code_enriched": ["model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__discount_code_app", "model.shopify_source.stg_shopify_gql__discount_code_basic", "model.shopify_source.stg_shopify_gql__discount_code_bxgy", "model.shopify_source.stg_shopify_gql__discount_code_free_shipping", "model.shopify_source.stg_shopify_gql__discount_redeem_code"], "model.shopify.int_shopify_gql__customers_order_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__transactions", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__inventory_level_aggregates": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify_source.stg_shopify_gql__fulfillment", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify_gql__discount_application"], "model.shopify.int_shopify_gql__discounts_order_aggregates": ["model.shopify.int_shopify_gql__order_discount_code", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__products_with_aggregates": ["model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__collection_product", "model.shopify_source.stg_shopify_gql__product", "model.shopify_source.stg_shopify_gql__product_media", "model.shopify_source.stg_shopify_gql__product_tag", "model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify.int_shopify_gql__order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment", "model.shopify_source.stg_shopify_gql__refund"], "model.shopify.int_shopify_gql__order_discount_code": ["model.shopify_source.stg_shopify_gql__discount_application", "model.shopify_source.stg_shopify_gql__order_discount_code"], "model.shopify.int_shopify_gql__order_line": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item", "model.shopify_source.stg_shopify_gql__order_line", "model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify.int_shopify_gql__order": ["model.shopify_source.stg_shopify_gql__customer_visit", "model.shopify_source.stg_shopify_gql__order"], "model.shopify.int_shopify_gql__collection": ["model.shopify_source.stg_shopify_gql__collection"], "model.shopify.int_shopify_gql__abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout", "model.shopify_source.stg_shopify_gql__customer"], "model.shopify.int_shopify_gql__product_variant": ["model.shopify_source.stg_shopify_gql__inventory_item", "model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify.int_shopify_gql__customer": ["model.shopify_source.stg_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__customer_address"], "model.shopify.shopify_gql__collection_metafields": ["model.shopify.int_shopify_gql__collection", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__product_variant_metafields": ["model.shopify.int_shopify_gql__product_variant", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__shop_metafields": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__shop"], "model.shopify.shopify_gql__order_metafields": ["model.shopify.int_shopify_gql__order", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__customer_metafields": ["model.shopify.int_shopify_gql__customer", "model.shopify_source.stg_shopify_gql__metafield"], "model.shopify.shopify_gql__product_metafields": ["model.shopify_source.stg_shopify_gql__metafield", "model.shopify_source.stg_shopify_gql__product"], "model.shopify.shopify__customer_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customers", "model.shopify.shopify__orders"], "model.shopify.shopify__daily_shop": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__daily_fulfillment", "model.shopify.int_shopify__daily_orders", "model.shopify.shopify__calendar", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__orders": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_adjustment", "model.shopify_source.stg_shopify__order_discount_code", "model.shopify_source.stg_shopify__order_tag", "model.shopify_source.stg_shopify__order_url_tag"], "model.shopify.shopify__inventory_levels": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify_source.stg_shopify__inventory_item", "model.shopify_source.stg_shopify__inventory_level", "model.shopify_source.stg_shopify__inventory_quantity", "model.shopify_source.stg_shopify__location", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media"], "model.shopify.shopify__customer_emails": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.shopify__customers": ["model.shopify.shopify__customers__order_aggregates", "model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.shopify__customer_email_cohorts": ["model.shopify.shopify__calendar", "model.shopify.shopify__customer_emails", "model.shopify.shopify__orders"], "model.shopify.shopify__discounts": ["model.shopify.int_shopify__discount_code_enriched", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.int_shopify__discounts__order_aggregates"], "model.shopify.shopify__order_lines": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__product_variant", "model.shopify_source.stg_shopify__product_variant_media", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.shopify__transactions": ["model.shopify_source.stg_shopify__tender_transaction", "model.shopify_source.stg_shopify__transaction"], "model.shopify.shopify__products": ["model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.int_shopify__products_with_aggregates"], "model.shopify.shopify__line_item_enhanced": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__transaction"], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__order"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__collection_product", "model.shopify_source.stg_shopify__product", "model.shopify_source.stg_shopify__product_media", "model.shopify_source.stg_shopify__product_tag", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__customer_tag"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__order__shipping_aggregates", "model.shopify_source.stg_shopify__order_line", "model.shopify_source.stg_shopify__tax_line"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify_source.stg_shopify__discount_application", "model.shopify_source.stg_shopify__discount_code_app", "model.shopify_source.stg_shopify__discount_code_basic", "model.shopify_source.stg_shopify__discount_code_bxgy", "model.shopify_source.stg_shopify__discount_code_free_shipping", "model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__orders__order_line_aggregates", "model.shopify.shopify__transactions", "model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__order"], "model.shopify.shopify__orders__order_refunds": ["model.shopify_source.stg_shopify__order_line_refund", "model.shopify_source.stg_shopify__refund"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify_source.stg_shopify__abandoned_checkout", "model.shopify_source.stg_shopify__abandoned_checkout_discount_code", "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__orders__order_refunds", "model.shopify_source.stg_shopify__fulfillment", "model.shopify_source.stg_shopify__order", "model.shopify_source.stg_shopify__order_line"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify_source.stg_shopify__order_shipping_line", "model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__orders", "model.shopify_source.stg_shopify__order_discount_code"], "model.shopify.shopify__product_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product"], "model.shopify.shopify__order_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__order"], "model.shopify.shopify__product_variant_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__product_variant"], "model.shopify.shopify__collection_metafields": ["model.shopify_source.stg_shopify__collection", "model.shopify_source.stg_shopify__metafield"], "model.shopify.shopify__shop_metafields": ["model.shopify_source.stg_shopify__metafield", "model.shopify_source.stg_shopify__shop"], "model.shopify.shopify__customer_metafields": ["model.shopify_source.stg_shopify__customer", "model.shopify_source.stg_shopify__metafield"], "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": ["model.shopify_source.stg_shopify_gql__customer"], "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": ["model.shopify_source.stg_shopify_gql__customer"], "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": ["model.shopify_source.stg_shopify_gql__order"], "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": ["model.shopify_source.stg_shopify_gql__order"], "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": ["model.shopify_source.stg_shopify_gql__order_line"], "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": ["model.shopify_source.stg_shopify_gql__order_line"], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": ["model.shopify_source.stg_shopify_gql__collection"], "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": ["model.shopify_source.stg_shopify_gql__collection_product"], "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": ["model.shopify_source.stg_shopify_gql__customer_tag"], "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": ["model.shopify_source.stg_shopify_gql__discount_application"], "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": ["model.shopify_source.stg_shopify_gql__fulfillment"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": ["model.shopify_source.stg_shopify_gql__inventory_item"], "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": ["model.shopify_source.stg_shopify_gql__inventory_level"], "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": ["model.shopify_source.stg_shopify_gql__location"], "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": ["model.shopify_source.stg_shopify_gql__media"], "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": ["model.shopify_source.stg_shopify_gql__media_image"], "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": ["model.shopify_source.stg_shopify_gql__metafield"], "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": ["model.shopify_source.stg_shopify_gql__product_media"], "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": ["model.shopify_source.stg_shopify_gql__order_tag"], "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": ["model.shopify_source.stg_shopify_gql__product"], "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": ["model.shopify_source.stg_shopify_gql__product"], "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": ["model.shopify_source.stg_shopify_gql__product_variant"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": ["model.shopify_source.stg_shopify_gql__product_variant"], "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": ["model.shopify_source.stg_shopify_gql__product_tag"], "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": ["model.shopify_source.stg_shopify_gql__refund"], "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": ["model.shopify_source.stg_shopify_gql__refund"], "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": ["model.shopify_source.stg_shopify_gql__shop"], "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": ["model.shopify_source.stg_shopify_gql__tax_line"], "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": ["model.shopify_source.stg_shopify_gql__tax_line"], "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": ["model.shopify_source.stg_shopify_gql__transaction"], "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": ["model.shopify_source.stg_shopify_gql__transaction"], "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": ["model.shopify_source.stg_shopify_gql__customer_visit"], "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": ["model.shopify_source.stg_shopify_gql__customer_visit"], "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": [], "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": [], "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": ["model.shopify_source.stg_shopify_gql__customer_address"], "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": ["model.shopify_source.stg_shopify_gql__customer_address"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": ["model.shopify_source.stg_shopify__abandoned_checkout"], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": ["model.shopify_source.stg_shopify__collection_product"], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": ["model.shopify_source.stg_shopify__collection"], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": ["model.shopify_source.stg_shopify__customer_tag"], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": ["model.shopify_source.stg_shopify__fulfillment"], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": ["model.shopify_source.stg_shopify__inventory_item"], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": ["model.shopify_source.stg_shopify__location"], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": ["model.shopify_source.stg_shopify__media"], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": ["model.shopify_source.stg_shopify__media_image"], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": ["model.shopify_source.stg_shopify__metafield"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": ["model.shopify_source.stg_shopify__order_note_attribute"], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": ["model.shopify_source.stg_shopify__order_shipping_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": ["model.shopify_source.stg_shopify__order_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": ["model.shopify_source.stg_shopify__order_url_tag"], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": ["model.shopify_source.stg_shopify__product_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": ["model.shopify_source.stg_shopify__product_variant_media"], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": ["model.shopify_source.stg_shopify__product_tag"], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": ["model.shopify_source.stg_shopify__shop"], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": ["model.shopify_source.stg_shopify__tender_transaction"], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": ["model.shopify_source.stg_shopify__order_discount_code"], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": ["model.shopify_source.stg_shopify__discount_allocation"], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": ["model.shopify_source.stg_shopify__discount_application"], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": ["model.shopify_source.stg_shopify__discount_code_app"], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": ["model.shopify_source.stg_shopify__discount_code_basic"], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": ["model.shopify_source.stg_shopify__discount_redeem_code"], "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": ["model.shopify.shopify_gql__customer_cohorts"], "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": ["model.shopify.shopify_gql__customer_cohorts"], "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": ["model.shopify.shopify_gql__customer_email_cohorts"], "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": ["model.shopify.shopify_gql__customer_email_cohorts"], "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": ["model.shopify.shopify_gql__orders"], "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": ["model.shopify.shopify_gql__orders"], "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": ["model.shopify.shopify_gql__products"], "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": ["model.shopify.shopify_gql__products"], "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": ["model.shopify.shopify_gql__order_lines"], "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": ["model.shopify.shopify_gql__order_lines"], "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": ["model.shopify.shopify_gql__transactions"], "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": ["model.shopify.shopify_gql__transactions"], "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": ["model.shopify.shopify_gql__inventory_levels"], "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": ["model.shopify.shopify_gql__discounts"], "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": ["model.shopify.shopify_gql__daily_shop"], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": ["model.shopify.shopify__customer_cohorts"], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": ["model.shopify.shopify__customer_cohorts"], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": ["model.shopify.shopify__customer_email_cohorts"], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": ["model.shopify.shopify__orders"], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": ["model.shopify.shopify__orders"], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": ["model.shopify.shopify__order_lines"], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": ["model.shopify.shopify__order_lines"], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": ["model.shopify.shopify__transactions"], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": ["model.shopify.shopify__inventory_levels"], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": ["model.shopify.shopify__inventory_levels"], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": ["model.shopify.shopify__discounts"], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": ["model.shopify.shopify__daily_shop"], "source.shopify_source.shopify_graphql.order": [], "source.shopify_source.shopify_graphql.customer": [], "source.shopify_source.shopify_graphql.order_line": [], "source.shopify_source.shopify_graphql.order_line_refund": [], "source.shopify_source.shopify_graphql.product": [], "source.shopify_source.shopify_graphql.product_variant": [], "source.shopify_source.shopify_graphql.transaction": [], "source.shopify_source.shopify_graphql.refund": [], "source.shopify_source.shopify_graphql.order_adjustment": [], "source.shopify_source.shopify_graphql.abandoned_checkout": [], "source.shopify_source.shopify_graphql.collection_product": [], "source.shopify_source.shopify_graphql.collection": [], "source.shopify_source.shopify_graphql.customer_tag": [], "source.shopify_source.shopify_graphql.fulfillment": [], "source.shopify_source.shopify_graphql.inventory_item": [], "source.shopify_source.shopify_graphql.inventory_level": [], "source.shopify_source.shopify_graphql.inventory_quantity": [], "source.shopify_source.shopify_graphql.location": [], "source.shopify_source.shopify_graphql.metafield": [], "source.shopify_source.shopify_graphql.order_note_attribute": [], "source.shopify_source.shopify_graphql.order_shipping_line": [], "source.shopify_source.shopify_graphql.order_shipping_tax_line": [], "source.shopify_source.shopify_graphql.order_tag": [], "source.shopify_source.shopify_graphql.media": [], "source.shopify_source.shopify_graphql.media_image": [], "source.shopify_source.shopify_graphql.product_media": [], "source.shopify_source.shopify_graphql.product_variant_media": [], "source.shopify_source.shopify_graphql.product_tag": [], "source.shopify_source.shopify_graphql.shop": [], "source.shopify_source.shopify_graphql.tender_transaction": [], "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": [], "source.shopify_source.shopify_graphql.order_discount_code": [], "source.shopify_source.shopify_graphql.fulfillment_event": [], "source.shopify_source.shopify_graphql.tax_line": [], "source.shopify_source.shopify_graphql.discount_allocation": [], "source.shopify_source.shopify_graphql.discount_application": [], "source.shopify_source.shopify_graphql.discount_code_app": [], "source.shopify_source.shopify_graphql.discount_code_basic": [], "source.shopify_source.shopify_graphql.discount_code_bxgy": [], "source.shopify_source.shopify_graphql.discount_code_free_shipping": [], "source.shopify_source.shopify_graphql.discount_redeem_code": [], "source.shopify_source.shopify_graphql.fulfillment_tracking_info": [], "source.shopify_source.shopify_graphql.customer_visit": [], "source.shopify_source.shopify_graphql.fulfillment_order_line_item": [], "source.shopify_source.shopify_graphql.customer_address": [], "source.shopify_source.shopify.order": [], "source.shopify_source.shopify.customer": [], "source.shopify_source.shopify.order_line": [], "source.shopify_source.shopify.order_line_refund": [], "source.shopify_source.shopify.product": [], "source.shopify_source.shopify.product_variant": [], "source.shopify_source.shopify.transaction": [], "source.shopify_source.shopify.refund": [], "source.shopify_source.shopify.order_adjustment": [], "source.shopify_source.shopify.abandoned_checkout": [], "source.shopify_source.shopify.collection_product": [], "source.shopify_source.shopify.collection": [], "source.shopify_source.shopify.customer_tag": [], "source.shopify_source.shopify.fulfillment": [], "source.shopify_source.shopify.inventory_item": [], "source.shopify_source.shopify.inventory_level": [], "source.shopify_source.shopify.inventory_quantity": [], "source.shopify_source.shopify.location": [], "source.shopify_source.shopify.metafield": [], "source.shopify_source.shopify.order_note_attribute": [], "source.shopify_source.shopify.order_shipping_line": [], "source.shopify_source.shopify.order_shipping_tax_line": [], "source.shopify_source.shopify.order_tag": [], "source.shopify_source.shopify.order_url_tag": [], "source.shopify_source.shopify.media": [], "source.shopify_source.shopify.media_image": [], "source.shopify_source.shopify.product_media": [], "source.shopify_source.shopify.product_variant_media": [], "source.shopify_source.shopify.product_tag": [], "source.shopify_source.shopify.shop": [], "source.shopify_source.shopify.tender_transaction": [], "source.shopify_source.shopify.abandoned_checkout_discount_code": [], "source.shopify_source.shopify.order_discount_code": [], "source.shopify_source.shopify.abandoned_checkout_shipping_line": [], "source.shopify_source.shopify.fulfillment_event": [], "source.shopify_source.shopify.tax_line": [], "source.shopify_source.shopify.discount_allocation": [], "source.shopify_source.shopify.discount_application": [], "source.shopify_source.shopify.discount_code_app": [], "source.shopify_source.shopify.discount_code_basic": [], "source.shopify_source.shopify.discount_code_bxgy": [], "source.shopify_source.shopify.discount_code_free_shipping": [], "source.shopify_source.shopify.discount_redeem_code": []}, "child_map": {"seed.shopify_integration_tests.shopify_shop_data": [], "seed.shopify_integration_tests.shopify_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product": [], "seed.shopify_integration_tests.shopify_gql_order_data": [], "seed.shopify_integration_tests.shopify_gql_customer_visit_data": [], "seed.shopify_integration_tests.shopify_collection_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_gql_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_tracking_info_data": [], "seed.shopify_integration_tests.shopify_gql_collection_rule_data": [], "seed.shopify_integration_tests.shopify_discount_allocation_data": [], "seed.shopify_integration_tests.shopify_gql_tax_line_data": [], "seed.shopify_integration_tests.shopify_gql_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_gql_media_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_customer_data": [], "seed.shopify_integration_tests.shopify_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_data": [], "seed.shopify_integration_tests.shopify_order_tag_data": [], "seed.shopify_integration_tests.shopify_media_data": [], "seed.shopify_integration_tests.shopify_gql_metafield_data": [], "seed.shopify_integration_tests.shopify_gql_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_data": [], "seed.shopify_integration_tests.shopify_gql_product_media_data": [], "seed.shopify_integration_tests.shopify_order_line_data": [], "seed.shopify_integration_tests.shopify_refund_data": [], "seed.shopify_integration_tests.shopify_collection_product_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_order_line_item_data": [], "seed.shopify_integration_tests.shopify_gql_shop_data": [], "seed.shopify_integration_tests.shopify_gql_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_gql_collection_data": [], "seed.shopify_integration_tests.shopify_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_customer_data": [], "seed.shopify_integration_tests.shopify_gql_customer_address_data": [], "seed.shopify_integration_tests.shopify_gql_order_tag_data": [], "seed.shopify_integration_tests.shopify_gql_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_data": [], "seed.shopify_integration_tests.shopify_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_inventory_level_data": [], "seed.shopify_integration_tests.shopify_gql_product_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_order_shipping_tax_line_data": [], "seed.shopify_integration_tests.shopify_order_url_tag_data": [], "seed.shopify_integration_tests.shopify_gql_location_data": [], "seed.shopify_integration_tests.shopify_order_shipping_line_data": [], "seed.shopify_integration_tests.shopify_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_transaction_data": [], "seed.shopify_integration_tests.shopify_metafield_data": [], "seed.shopify_integration_tests.shopify_gql_collection_product_data": [], "seed.shopify_integration_tests.shopify_discount_application_data": [], "seed.shopify_integration_tests.shopify_gql_order_discount_code_data": [], "seed.shopify_integration_tests.shopify_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_gql_abandoned_checkout_discount_code_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_level_data": [], "seed.shopify_integration_tests.shopify_order_line_refund_data": [], "seed.shopify_integration_tests.shopify_gql_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_abandoned_checkout_data": [], "seed.shopify_integration_tests.shopify_discount_code_basic_data": [], "seed.shopify_integration_tests.shopify_discount_code_bxgy_data": [], "seed.shopify_integration_tests.shopify_order_note_attribute_data": [], "seed.shopify_integration_tests.shopify_product_tag_data": [], "seed.shopify_integration_tests.shopify_product_data": [], "seed.shopify_integration_tests.shopify_gql_discount_redeem_code_data": [], "seed.shopify_integration_tests.shopify_gql_product_variant_media_data": [], "seed.shopify_integration_tests.shopify_gql_refund_data": [], "seed.shopify_integration_tests.shopify_order_data": [], "seed.shopify_integration_tests.shopify_media_image_data": [], "seed.shopify_integration_tests.shopify_product_variant_data": [], "seed.shopify_integration_tests.shopify_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_fulfillment_data": [], "seed.shopify_integration_tests.shopify_gql_customer_tag_data": [], "seed.shopify_integration_tests.shopify_gql_inventory_item_data": [], "seed.shopify_integration_tests.shopify_gql_product_tag_data": [], "seed.shopify_integration_tests.shopify_product_media_data": [], "seed.shopify_integration_tests.shopify_inventory_quantity_data": [], "seed.shopify_integration_tests.shopify_gql_fulfillment_event_data": [], "seed.shopify_integration_tests.shopify_gql_discount_code_free_shipping_data": [], "seed.shopify_integration_tests.shopify_order_adjustment_data": [], "seed.shopify_integration_tests.shopify_discount_code_app_data": [], "seed.shopify_integration_tests.shopify_location_data": [], "seed.shopify_integration_tests.shopify_gql_tender_transaction_data": [], "seed.shopify_integration_tests.shopify_gql_media_image_data": [], "model.shopify_source.stg_shopify_gql__order_discount_code": ["model.shopify.int_shopify_gql__order_discount_code", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96", "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8", "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7"], "model.shopify_source.stg_shopify_gql__refund": ["model.shopify.int_shopify_gql__order_adjustment", "model.shopify.int_shopify_gql__orders_order_refunds", "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a", "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c"], "model.shopify_source.stg_shopify_gql__inventory_level": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd", "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570"], "model.shopify_source.stg_shopify_gql__location": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be", "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03", "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e"], "model.shopify_source.stg_shopify_gql__order": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.int_shopify_gql__order", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b", "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36"], "model.shopify_source.stg_shopify_gql__discount_application": ["model.shopify.int_shopify_gql__discount_code_enriched", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.int_shopify_gql__order_discount_code", "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4", "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0", "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af", "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2"], "model.shopify_source.stg_shopify_gql__metafield": ["model.shopify.shopify_gql__collection_metafields", "model.shopify.shopify_gql__customer_metafields", "model.shopify.shopify_gql__order_metafields", "model.shopify.shopify_gql__product_metafields", "model.shopify.shopify_gql__product_variant_metafields", "model.shopify.shopify_gql__shop_metafields", "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5", "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff", "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679"], "model.shopify_source.stg_shopify_gql__media_image": ["test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141", "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4", "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6"], "model.shopify_source.stg_shopify_gql__shop": ["model.shopify.shopify_gql__daily_shop", "model.shopify.shopify_gql__shop_metafields", "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531", "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075", "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9"], "model.shopify_source.stg_shopify_gql__tender_transaction": ["model.shopify.shopify_gql__transactions", "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7", "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93", "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475"], "model.shopify_source.stg_shopify_gql__order_line": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43", "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85"], "model.shopify_source.stg_shopify_gql__collection": ["model.shopify.int_shopify_gql__collection", "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6", "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87", "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e"], "model.shopify_source.stg_shopify_gql__order_adjustment": ["model.shopify.int_shopify_gql__order_adjustment", "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c", "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861"], "model.shopify_source.stg_shopify_gql__transaction": ["model.shopify.shopify_gql__line_item_enhanced", "model.shopify.shopify_gql__transactions", "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb", "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd"], "model.shopify_source.stg_shopify_gql__fulfillment_event": ["model.shopify.int_shopify_gql__daily_fulfillment", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c", "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78"], "model.shopify_source.stg_shopify_gql__discount_code_app": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2", "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c", "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981"], "model.shopify_source.stg_shopify_gql__order_shipping_line": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd", "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478"], "model.shopify_source.stg_shopify_gql__order_line_refund": ["model.shopify.int_shopify_gql__orders_order_refunds", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e", "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20"], "model.shopify_source.stg_shopify_gql__product_variant": ["model.shopify.int_shopify_gql__product_variant", "model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3", "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735"], "model.shopify_source.stg_shopify_gql__discount_redeem_code": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3", "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742", "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info": ["model.shopify.int_shopify_gql__order_fulfillment_aggregates", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8", "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e"], "model.shopify_source.stg_shopify_gql__product_variant_media": ["model.shopify.shopify_gql__inventory_levels", "model.shopify.shopify_gql__order_lines", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b", "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae", "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894"], "model.shopify_source.stg_shopify_gql__fulfillment": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.int_shopify_gql__order_fulfillment_aggregates", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a", "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578"], "model.shopify_source.stg_shopify_gql__order_tag": ["model.shopify.shopify_gql__orders", "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661", "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290", "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479", "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461"], "model.shopify_source.stg_shopify_gql__abandoned_checkout": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.shopify_gql__customers", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f", "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0"], "model.shopify_source.stg_shopify_gql__tax_line": ["model.shopify.int_shopify_gql__order_line", "model.shopify.int_shopify_gql__orders_order_line_aggregates", "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173", "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04", "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565", "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089"], "model.shopify_source.stg_shopify_gql__customer": ["model.shopify.int_shopify_gql__abandoned_checkout", "model.shopify.int_shopify_gql__customer", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.shopify_gql__line_item_enhanced", "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7", "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271"], "model.shopify_source.stg_shopify_gql__inventory_item": ["model.shopify.int_shopify_gql__product_variant", "model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8", "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91", "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4"], "model.shopify_source.stg_shopify_gql__product_media": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb", "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49", "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800", "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b"], "model.shopify_source.stg_shopify_gql__collection_product": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16", "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3", "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67", "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line": ["model.shopify.int_shopify_gql__order_shipping_aggregates", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f", "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8", "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60"], "model.shopify_source.stg_shopify_gql__customer_visit": ["model.shopify.int_shopify_gql__order", "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89", "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code": ["model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886", "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398", "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76"], "model.shopify_source.stg_shopify_gql__customer_address": ["model.shopify.int_shopify_gql__customer", "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c", "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc"], "model.shopify_source.stg_shopify_gql__product": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__inventory_levels", "model.shopify.shopify_gql__line_item_enhanced", "model.shopify.shopify_gql__product_metafields", "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb", "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item": ["model.shopify.int_shopify_gql__order_line", "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c", "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12"], "model.shopify_source.stg_shopify_gql__media": ["test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a", "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac", "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989"], "model.shopify_source.stg_shopify_gql__discount_code_basic": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc", "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec", "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping": ["model.shopify.int_shopify_gql__discount_code_enriched", "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4", "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b", "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232"], "model.shopify_source.stg_shopify_gql__product_tag": ["model.shopify.int_shopify_gql__products_with_aggregates", "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd", "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c", "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984", "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0"], "model.shopify_source.stg_shopify_gql__customer_tag": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.shopify_gql__customers", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257", "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8", "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740"], "model.shopify_source.stg_shopify_gql__discount_allocation": ["test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a", "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e", "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04", "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685"], "model.shopify_source.stg_shopify_gql__inventory_quantity": ["model.shopify.shopify_gql__inventory_levels", "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1", "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa"], "model.shopify_source.stg_shopify_gql__order_note_attribute": ["test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e", "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc", "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6", "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c"], "model.shopify_source.stg_shopify_gql__inventory_item_tmp": ["model.shopify_source.stg_shopify_gql__inventory_item"], "model.shopify_source.stg_shopify_gql__order_adjustment_tmp": ["model.shopify_source.stg_shopify_gql__order_adjustment"], "model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp": ["model.shopify_source.stg_shopify_gql__discount_redeem_code"], "model.shopify_source.stg_shopify_gql__tender_transaction_tmp": ["model.shopify_source.stg_shopify_gql__tender_transaction"], "model.shopify_source.stg_shopify_gql__tax_line_tmp": ["model.shopify_source.stg_shopify_gql__tax_line"], "model.shopify_source.stg_shopify_gql__order_line_refund_tmp": ["model.shopify_source.stg_shopify_gql__order_line_refund"], "model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy"], "model.shopify_source.stg_shopify_gql__fulfillment_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment"], "model.shopify_source.stg_shopify_gql__location_tmp": ["model.shopify_source.stg_shopify_gql__location"], "model.shopify_source.stg_shopify_gql__customer_visit_tmp": ["model.shopify_source.stg_shopify_gql__customer_visit"], "model.shopify_source.stg_shopify_gql__order_tag_tmp": ["model.shopify_source.stg_shopify_gql__order_tag"], "model.shopify_source.stg_shopify_gql__product_variant_tmp": ["model.shopify_source.stg_shopify_gql__product_variant"], "model.shopify_source.stg_shopify_gql__collection_product_tmp": ["model.shopify_source.stg_shopify_gql__collection_product"], "model.shopify_source.stg_shopify_gql__shop_tmp": ["model.shopify_source.stg_shopify_gql__shop"], "model.shopify_source.stg_shopify_gql__order_discount_code_tmp": ["model.shopify_source.stg_shopify_gql__order_discount_code"], "model.shopify_source.stg_shopify_gql__order_note_attribute_tmp": ["model.shopify_source.stg_shopify_gql__order_note_attribute"], "model.shopify_source.stg_shopify_gql__product_variant_media_tmp": ["model.shopify_source.stg_shopify_gql__product_variant_media"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify_gql__order_shipping_line_tmp": ["model.shopify_source.stg_shopify_gql__order_shipping_line"], "model.shopify_source.stg_shopify_gql__customer_tag_tmp": ["model.shopify_source.stg_shopify_gql__customer_tag"], "model.shopify_source.stg_shopify_gql__media_image_tmp": ["model.shopify_source.stg_shopify_gql__media_image"], "model.shopify_source.stg_shopify_gql__discount_allocation_tmp": ["model.shopify_source.stg_shopify_gql__discount_allocation"], "model.shopify_source.stg_shopify_gql__media_tmp": ["model.shopify_source.stg_shopify_gql__media"], "model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info"], "model.shopify_source.stg_shopify_gql__discount_code_app_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_app"], "model.shopify_source.stg_shopify_gql__inventory_level_tmp": ["model.shopify_source.stg_shopify_gql__inventory_level"], "model.shopify_source.stg_shopify_gql__product_tmp": ["model.shopify_source.stg_shopify_gql__product"], "model.shopify_source.stg_shopify_gql__fulfillment_event_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_event"], "model.shopify_source.stg_shopify_gql__product_tag_tmp": ["model.shopify_source.stg_shopify_gql__product_tag"], "model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping"], "model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item"], "model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line"], "model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp": ["model.shopify_source.stg_shopify_gql__abandoned_checkout"], "model.shopify_source.stg_shopify_gql__customer_address_tmp": ["model.shopify_source.stg_shopify_gql__customer_address"], "model.shopify_source.stg_shopify_gql__discount_application_tmp": ["model.shopify_source.stg_shopify_gql__discount_application"], "model.shopify_source.stg_shopify_gql__collection_tmp": ["model.shopify_source.stg_shopify_gql__collection"], "model.shopify_source.stg_shopify_gql__inventory_quantity_tmp": ["model.shopify_source.stg_shopify_gql__inventory_quantity"], "model.shopify_source.stg_shopify_gql__refund_tmp": ["model.shopify_source.stg_shopify_gql__refund"], "model.shopify_source.stg_shopify_gql__discount_code_basic_tmp": ["model.shopify_source.stg_shopify_gql__discount_code_basic"], "model.shopify_source.stg_shopify_gql__product_media_tmp": ["model.shopify_source.stg_shopify_gql__product_media"], "model.shopify_source.stg_shopify_gql__metafield_tmp": ["model.shopify_source.stg_shopify_gql__metafield"], "model.shopify_source.stg_shopify_gql__order_line_tmp": ["model.shopify_source.stg_shopify_gql__order_line"], "model.shopify_source.stg_shopify_gql__transaction_tmp": ["model.shopify_source.stg_shopify_gql__transaction"], "model.shopify_source.stg_shopify_gql__customer_tmp": ["model.shopify_source.stg_shopify_gql__customer"], "model.shopify_source.stg_shopify_gql__order_tmp": ["model.shopify_source.stg_shopify_gql__order"], "model.shopify_source.stg_shopify__shop": ["model.shopify.shopify__daily_shop", "model.shopify.shopify__shop_metafields", "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe"], "model.shopify_source.stg_shopify__order_shipping_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613"], "model.shopify_source.stg_shopify__abandoned_checkout": ["model.shopify.int_shopify__daily_abandoned_checkouts", "model.shopify.int_shopify__discounts__abandoned_checkouts", "model.shopify.shopify__customer_emails", "model.shopify.shopify__customers", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db"], "model.shopify_source.stg_shopify__location": ["model.shopify.shopify__inventory_levels", "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf"], "model.shopify_source.stg_shopify__order_url_tag": ["model.shopify.shopify__orders", "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325", "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1"], "model.shopify_source.stg_shopify__discount_allocation": ["test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7", "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330"], "model.shopify_source.stg_shopify__collection_product": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a", "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1"], "model.shopify_source.stg_shopify__order_discount_code": ["model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.shopify__orders", "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f", "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d"], "model.shopify_source.stg_shopify__metafield": ["model.shopify.shopify__collection_metafields", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__order_metafields", "model.shopify.shopify__product_metafields", "model.shopify.shopify__product_variant_metafields", "model.shopify.shopify__shop_metafields", "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6"], "model.shopify_source.stg_shopify__inventory_item": ["model.shopify.shopify__inventory_levels", "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe"], "model.shopify_source.stg_shopify__order_tag": ["model.shopify.shopify__orders", "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2", "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6"], "model.shopify_source.stg_shopify__discount_redeem_code": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb"], "model.shopify_source.stg_shopify__tender_transaction": ["model.shopify.shopify__transactions", "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1"], "model.shopify_source.stg_shopify__fulfillment": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__orders", "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e"], "model.shopify_source.stg_shopify__tax_line": ["model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates"], "model.shopify_source.stg_shopify__order_adjustment": ["model.shopify.shopify__orders"], "model.shopify_source.stg_shopify__discount_code_free_shipping": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade"], "model.shopify_source.stg_shopify__discount_code_basic": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e"], "model.shopify_source.stg_shopify__order_line": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders__order_line_aggregates"], "model.shopify_source.stg_shopify__product_variant_media": ["model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5", "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9"], "model.shopify_source.stg_shopify__customer_tag": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.shopify__customers", "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351", "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd"], "model.shopify_source.stg_shopify__inventory_quantity": ["model.shopify.shopify__inventory_levels"], "model.shopify_source.stg_shopify__discount_code_bxgy": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a"], "model.shopify_source.stg_shopify__customer": ["model.shopify.int_shopify__customer_email_rollup", "model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customer_metafields", "model.shopify.shopify__customers", "model.shopify.shopify__line_item_enhanced"], "model.shopify_source.stg_shopify__discount_application": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe", "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3"], "model.shopify_source.stg_shopify__media": ["test.shopify_source.not_null_stg_shopify__media_media_id.9768604066"], "model.shopify_source.stg_shopify__product_variant": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__order_lines", "model.shopify.shopify__product_variant_metafields"], "model.shopify_source.stg_shopify__inventory_level": ["model.shopify.shopify__inventory_levels"], "model.shopify_source.stg_shopify__product_tag": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019", "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3"], "model.shopify_source.stg_shopify__order": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__order_metafields", "model.shopify.shopify__orders"], "model.shopify_source.stg_shopify__refund": ["model.shopify.shopify__orders__order_refunds"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code": ["model.shopify.int_shopify__discounts__abandoned_checkouts", "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7"], "model.shopify_source.stg_shopify__order_shipping_tax_line": ["model.shopify.int_shopify__order__shipping_aggregates", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd", "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295"], "model.shopify_source.stg_shopify__collection": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__collection_metafields", "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2"], "model.shopify_source.stg_shopify__fulfillment_event": ["model.shopify.int_shopify__daily_fulfillment"], "model.shopify_source.stg_shopify__order_note_attribute": ["test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446", "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375"], "model.shopify_source.stg_shopify__product_media": ["model.shopify.int_shopify__products_with_aggregates", "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7", "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab"], "model.shopify_source.stg_shopify__discount_code_app": ["model.shopify.int_shopify__discount_code_enriched", "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186"], "model.shopify_source.stg_shopify__order_line_refund": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_refunds"], "model.shopify_source.stg_shopify__product": ["model.shopify.int_shopify__products_with_aggregates", "model.shopify.shopify__inventory_levels", "model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__product_metafields"], "model.shopify_source.stg_shopify__transaction": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__transactions"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line": ["model.shopify.int_shopify__discounts__abandoned_checkouts"], "model.shopify_source.stg_shopify__media_image": ["test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b"], "model.shopify_source.stg_shopify__order_tag_tmp": ["model.shopify_source.stg_shopify__order_tag"], "model.shopify_source.stg_shopify__order_shipping_tax_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_tax_line"], "model.shopify_source.stg_shopify__discount_redeem_code_tmp": ["model.shopify_source.stg_shopify__discount_redeem_code"], "model.shopify_source.stg_shopify__order_adjustment_tmp": ["model.shopify_source.stg_shopify__order_adjustment"], "model.shopify_source.stg_shopify__discount_code_bxgy_tmp": ["model.shopify_source.stg_shopify__discount_code_bxgy"], "model.shopify_source.stg_shopify__product_tag_tmp": ["model.shopify_source.stg_shopify__product_tag"], "model.shopify_source.stg_shopify__product_media_tmp": ["model.shopify_source.stg_shopify__product_media"], "model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line"], "model.shopify_source.stg_shopify__tax_line_tmp": ["model.shopify_source.stg_shopify__tax_line"], "model.shopify_source.stg_shopify__order_note_attribute_tmp": ["model.shopify_source.stg_shopify__order_note_attribute"], "model.shopify_source.stg_shopify__product_tmp": ["model.shopify_source.stg_shopify__product"], "model.shopify_source.stg_shopify__customer_tmp": ["model.shopify_source.stg_shopify__customer"], "model.shopify_source.stg_shopify__discount_code_free_shipping_tmp": ["model.shopify_source.stg_shopify__discount_code_free_shipping"], "model.shopify_source.stg_shopify__customer_tag_tmp": ["model.shopify_source.stg_shopify__customer_tag"], "model.shopify_source.stg_shopify__discount_code_app_tmp": ["model.shopify_source.stg_shopify__discount_code_app"], "model.shopify_source.stg_shopify__collection_product_tmp": ["model.shopify_source.stg_shopify__collection_product"], "model.shopify_source.stg_shopify__inventory_item_tmp": ["model.shopify_source.stg_shopify__inventory_item"], "model.shopify_source.stg_shopify__product_variant_media_tmp": ["model.shopify_source.stg_shopify__product_variant_media"], "model.shopify_source.stg_shopify__collection_tmp": ["model.shopify_source.stg_shopify__collection"], "model.shopify_source.stg_shopify__media_tmp": ["model.shopify_source.stg_shopify__media"], "model.shopify_source.stg_shopify__order_url_tag_tmp": ["model.shopify_source.stg_shopify__order_url_tag"], "model.shopify_source.stg_shopify__discount_allocation_tmp": ["model.shopify_source.stg_shopify__discount_allocation"], "model.shopify_source.stg_shopify__inventory_level_tmp": ["model.shopify_source.stg_shopify__inventory_level"], "model.shopify_source.stg_shopify__order_line_tmp": ["model.shopify_source.stg_shopify__order_line"], "model.shopify_source.stg_shopify__discount_code_basic_tmp": ["model.shopify_source.stg_shopify__discount_code_basic"], "model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code"], "model.shopify_source.stg_shopify__order_shipping_line_tmp": ["model.shopify_source.stg_shopify__order_shipping_line"], "model.shopify_source.stg_shopify__refund_tmp": ["model.shopify_source.stg_shopify__refund"], "model.shopify_source.stg_shopify__tender_transaction_tmp": ["model.shopify_source.stg_shopify__tender_transaction"], "model.shopify_source.stg_shopify__order_discount_code_tmp": ["model.shopify_source.stg_shopify__order_discount_code"], "model.shopify_source.stg_shopify__media_image_tmp": ["model.shopify_source.stg_shopify__media_image"], "model.shopify_source.stg_shopify__fulfillment_event_tmp": ["model.shopify_source.stg_shopify__fulfillment_event"], "model.shopify_source.stg_shopify__order_line_refund_tmp": ["model.shopify_source.stg_shopify__order_line_refund"], "model.shopify_source.stg_shopify__inventory_quantity_tmp": ["model.shopify_source.stg_shopify__inventory_quantity"], "model.shopify_source.stg_shopify__fulfillment_tmp": ["model.shopify_source.stg_shopify__fulfillment"], "model.shopify_source.stg_shopify__abandoned_checkout_tmp": ["model.shopify_source.stg_shopify__abandoned_checkout"], "model.shopify_source.stg_shopify__shop_tmp": ["model.shopify_source.stg_shopify__shop"], "model.shopify_source.stg_shopify__metafield_tmp": ["model.shopify_source.stg_shopify__metafield"], "model.shopify_source.stg_shopify__product_variant_tmp": ["model.shopify_source.stg_shopify__product_variant"], "model.shopify_source.stg_shopify__location_tmp": ["model.shopify_source.stg_shopify__location"], "model.shopify_source.stg_shopify__discount_application_tmp": ["model.shopify_source.stg_shopify__discount_application"], "model.shopify_source.stg_shopify__transaction_tmp": ["model.shopify_source.stg_shopify__transaction"], "model.shopify_source.stg_shopify__order_tmp": ["model.shopify_source.stg_shopify__order"], "model.shopify.shopify__calendar": ["model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "model.shopify.shopify__daily_shop", "model.shopify.shopify_gql__customer_cohorts", "model.shopify.shopify_gql__customer_email_cohorts", "model.shopify.shopify_gql__daily_shop"], "model.shopify.shopify_gql__customer_emails": ["model.shopify.shopify_gql__customer_email_cohorts"], "model.shopify.shopify_gql__customer_cohorts": ["test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2", "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c"], "model.shopify.shopify_gql__customer_email_cohorts": ["test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f", "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27"], "model.shopify.shopify_gql__inventory_levels": ["test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957", "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e"], "model.shopify.shopify_gql__daily_shop": ["test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8"], "model.shopify.shopify_gql__customers": ["model.shopify.shopify_gql__customer_cohorts"], "model.shopify.shopify_gql__orders": ["model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.int_shopify_gql__product_order_line_aggregates", "model.shopify.shopify_gql__customer_cohorts", "model.shopify.shopify_gql__customer_email_cohorts", "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041", "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077"], "model.shopify.shopify_gql__transactions": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d", "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c"], "model.shopify.shopify_gql__products": ["test.shopify.not_null_shopify_gql__products_unique_key.4982d88497", "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326"], "model.shopify.shopify_gql__order_lines": ["model.shopify.int_shopify_gql__daily_orders", "model.shopify.int_shopify_gql__product_order_line_aggregates", "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db", "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4"], "model.shopify.shopify_gql__discounts": ["test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264", "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994", "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5"], "model.shopify.shopify_gql__line_item_enhanced": [], "model.shopify.int_shopify_gql__order_fulfillment_aggregates": ["model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__daily_abandoned_checkouts": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__daily_orders": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__orders_order_refunds": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__order_shipping_aggregates": ["model.shopify.int_shopify_gql__orders_order_line_aggregates", "model.shopify.shopify_gql__line_item_enhanced"], "model.shopify.int_shopify_gql__customer_email_rollup": ["model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__product_order_line_aggregates": ["model.shopify.shopify_gql__products"], "model.shopify.int_shopify_gql__emails_order_aggregates": ["model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__daily_fulfillment": ["model.shopify.shopify_gql__daily_shop"], "model.shopify.int_shopify_gql__orders_order_line_aggregates": ["model.shopify.int_shopify_gql__customers_order_aggregates", "model.shopify.int_shopify_gql__emails_order_aggregates", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__discount_code_enriched": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__customers_order_aggregates": ["model.shopify.shopify_gql__customers"], "model.shopify.int_shopify_gql__inventory_level_aggregates": ["model.shopify.shopify_gql__inventory_levels"], "model.shopify.int_shopify_gql__discounts_abandoned_checkouts": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__discounts_order_aggregates": ["model.shopify.shopify_gql__discounts"], "model.shopify.int_shopify_gql__products_with_aggregates": ["model.shopify.shopify_gql__products"], "model.shopify.int_shopify_gql__order_adjustment": ["model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__order_discount_code": ["model.shopify.int_shopify_gql__discounts_order_aggregates", "model.shopify.shopify_gql__orders"], "model.shopify.int_shopify_gql__order_line": ["model.shopify.int_shopify_gql__inventory_level_aggregates", "model.shopify.shopify_gql__order_lines"], "model.shopify.int_shopify_gql__order": ["model.shopify.shopify_gql__order_metafields", "model.shopify.shopify_gql__orders", "model.shopify.shopify_gql__transactions"], "model.shopify.int_shopify_gql__collection": ["model.shopify.int_shopify_gql__products_with_aggregates", "model.shopify.shopify_gql__collection_metafields"], "model.shopify.int_shopify_gql__abandoned_checkout": ["model.shopify.int_shopify_gql__daily_abandoned_checkouts", "model.shopify.int_shopify_gql__discounts_abandoned_checkouts", "model.shopify.shopify_gql__customer_emails"], "model.shopify.int_shopify_gql__product_variant": ["model.shopify.shopify_gql__order_lines", "model.shopify.shopify_gql__product_variant_metafields"], "model.shopify.int_shopify_gql__customer": ["model.shopify.int_shopify_gql__customer_email_rollup", "model.shopify.shopify_gql__customer_metafields", "model.shopify.shopify_gql__customers"], "model.shopify.shopify_gql__collection_metafields": [], "model.shopify.shopify_gql__product_variant_metafields": [], "model.shopify.shopify_gql__shop_metafields": [], "model.shopify.shopify_gql__order_metafields": [], "model.shopify.shopify_gql__customer_metafields": [], "model.shopify.shopify_gql__product_metafields": [], "model.shopify.shopify__customer_cohorts": ["test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925", "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a"], "model.shopify.shopify__daily_shop": ["test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f"], "model.shopify.shopify__orders": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__discounts__order_aggregates", "model.shopify.int_shopify__product__order_line_aggregates", "model.shopify.shopify__customer_cohorts", "model.shopify.shopify__customer_email_cohorts", "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9", "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51"], "model.shopify.shopify__inventory_levels": ["test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56", "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0"], "model.shopify.shopify__customer_emails": ["model.shopify.shopify__customer_email_cohorts"], "model.shopify.shopify__customers": ["model.shopify.shopify__customer_cohorts"], "model.shopify.shopify__customer_email_cohorts": ["test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48", "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182"], "model.shopify.shopify__discounts": ["test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81", "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d", "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f"], "model.shopify.shopify__order_lines": ["model.shopify.int_shopify__daily_orders", "model.shopify.int_shopify__product__order_line_aggregates", "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2", "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e"], "model.shopify.shopify__transactions": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f", "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981"], "model.shopify.shopify__products": [], "model.shopify.shopify__line_item_enhanced": [], "model.shopify.int_shopify__daily_fulfillment": ["model.shopify.shopify__daily_shop"], "model.shopify.shopify__customers__order_aggregates": ["model.shopify.shopify__customers"], "model.shopify.int_shopify__products_with_aggregates": ["model.shopify.shopify__products"], "model.shopify.int_shopify__customer_email_rollup": ["model.shopify.shopify__customer_emails"], "model.shopify.shopify__orders__order_line_aggregates": ["model.shopify.int_shopify__emails__order_aggregates", "model.shopify.shopify__customers__order_aggregates", "model.shopify.shopify__orders"], "model.shopify.int_shopify__daily_abandoned_checkouts": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__discount_code_enriched": ["model.shopify.shopify__discounts"], "model.shopify.int_shopify__emails__order_aggregates": ["model.shopify.shopify__customer_emails"], "model.shopify.shopify__orders__order_refunds": ["model.shopify.int_shopify__inventory_level__aggregates", "model.shopify.shopify__order_lines", "model.shopify.shopify__orders"], "model.shopify.int_shopify__daily_orders": ["model.shopify.shopify__daily_shop"], "model.shopify.int_shopify__discounts__abandoned_checkouts": ["model.shopify.shopify__discounts"], "model.shopify.int_shopify__product__order_line_aggregates": ["model.shopify.shopify__products"], "model.shopify.int_shopify__inventory_level__aggregates": ["model.shopify.shopify__inventory_levels"], "model.shopify.int_shopify__order__shipping_aggregates": ["model.shopify.shopify__line_item_enhanced", "model.shopify.shopify__orders__order_line_aggregates"], "model.shopify.int_shopify__discounts__order_aggregates": ["model.shopify.shopify__discounts"], "model.shopify.shopify__product_metafields": [], "model.shopify.shopify__order_metafields": [], "model.shopify.shopify__product_variant_metafields": [], "model.shopify.shopify__collection_metafields": [], "model.shopify.shopify__shop_metafields": [], "model.shopify.shopify__customer_metafields": [], "test.shopify_source.unique_stg_shopify_gql__customer_unique_key.53ec691271": [], "test.shopify_source.not_null_stg_shopify_gql__customer_unique_key.a39592c8a7": [], "test.shopify_source.unique_stg_shopify_gql__order_unique_key.2371ad6b36": [], "test.shopify_source.not_null_stg_shopify_gql__order_unique_key.594941b02b": [], "test.shopify_source.unique_stg_shopify_gql__order_line_unique_key.5d17369e85": [], "test.shopify_source.not_null_stg_shopify_gql__order_line_unique_key.edeeb4ac43": [], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_unique_key.9262431db0": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_unique_key.671ff13d7f": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_checkout_id.29786ad4a3": [], "test.shopify_source.unique_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.c1e3cd0e76": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_unique_key.7b812c8398": [], "test.shopify_source.not_null_stg_shopify_gql__abandoned_checkout_discount_code_checkout_id.538fafa886": [], "test.shopify_source.unique_stg_shopify_gql__collection_unique_key.172b506f2e": [], "test.shopify_source.not_null_stg_shopify_gql__collection_unique_key.bc5ff66c87": [], "test.shopify_source.not_null_stg_shopify_gql__collection_collection_id.8376679bf6": [], "test.shopify_source.unique_stg_shopify_gql__collection_product_unique_key.d24d006066": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_unique_key.3b9aff6b67": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_collection_id.ee03b76e16": [], "test.shopify_source.not_null_stg_shopify_gql__collection_product_product_id.7a276513f3": [], "test.shopify_source.unique_stg_shopify_gql__customer_tag_unique_key.55742f4740": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_unique_key.8ee743a1d8": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_index.83f74b8257": [], "test.shopify_source.not_null_stg_shopify_gql__customer_tag_customer_id.8963267c83": [], "test.shopify_source.unique_stg_shopify_gql__discount_allocation_unique_key.b466eb2685": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_unique_key.ad04a6bc04": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_discount_application_index.d56b0c8b9a": [], "test.shopify_source.not_null_stg_shopify_gql__discount_allocation_order_line_id.e761e8875e": [], "test.shopify_source.unique_stg_shopify_gql__discount_application_unique_key.0f1f4fa4c2": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_unique_key.10567d82af": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_index.56eeb8a5b4": [], "test.shopify_source.not_null_stg_shopify_gql__discount_application_order_id.23cbfe34a0": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_app_unique_key.a8b87c4981": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_unique_key.6c7c02fa1c": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_app_discount_code_id.e646c167b2": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_basic_unique_key.af3b4056bb": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_unique_key.645236b7ec": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_basic_discount_code_id.6ee7ed11bc": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_bxgy_unique_key.5bbe699089": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_unique_key.39e96f0565": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_bxgy_discount_code_id.129aad3e04": [], "test.shopify_source.unique_stg_shopify_gql__discount_code_free_shipping_unique_key.6c211c9232": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_unique_key.ef2bdbdf7b": [], "test.shopify_source.not_null_stg_shopify_gql__discount_code_free_shipping_discount_code_id.949a9388c4": [], "test.shopify_source.unique_stg_shopify_gql__discount_redeem_code_unique_key.dcef7c652f": [], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_unique_key.711004d742": [], "test.shopify_source.not_null_stg_shopify_gql__discount_redeem_code_discount_code_id.809ebb50a3": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_unique_key.1df27fc578": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_unique_key.77bb2acc3a": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_fulfillment_id.4e1b7e8d8f": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_event_unique_key.9ec31e9f78": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_event_unique_key.359d990e1c": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_order_line_item_unique_key.8a29ec2a12": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_order_line_item_unique_key.31729fdb5c": [], "test.shopify_source.unique_stg_shopify_gql__fulfillment_tracking_info_unique_key.128c97cc4e": [], "test.shopify_source.not_null_stg_shopify_gql__fulfillment_tracking_info_unique_key.8f833e02e8": [], "test.shopify_source.unique_stg_shopify_gql__inventory_item_unique_key.5ac2da4df4": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_unique_key.dead69df91": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_item_inventory_item_id.664a4cf4c8": [], "test.shopify_source.unique_stg_shopify_gql__inventory_level_unique_key.adb265f570": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_level_unique_key.e5d673d4cd": [], "test.shopify_source.unique_stg_shopify_gql__inventory_quantity_unique_key.72cd0fe6fa": [], "test.shopify_source.not_null_stg_shopify_gql__inventory_quantity_unique_key.cc032239b1": [], "test.shopify_source.unique_stg_shopify_gql__location_unique_key.f353eef88e": [], "test.shopify_source.not_null_stg_shopify_gql__location_unique_key.9164f7dc03": [], "test.shopify_source.not_null_stg_shopify_gql__location_location_id.2994e996be": [], "test.shopify_source.unique_stg_shopify_gql__media_unique_key.1ddb0c2989": [], "test.shopify_source.not_null_stg_shopify_gql__media_unique_key.5a451a29ac": [], "test.shopify_source.not_null_stg_shopify_gql__media_media_id.4ac0f9cd9a": [], "test.shopify_source.unique_stg_shopify_gql__media_image_unique_key.1206bbcda6": [], "test.shopify_source.not_null_stg_shopify_gql__media_image_unique_key.080b4d0cc4": [], "test.shopify_source.not_null_stg_shopify_gql__media_image_media_id.b13be7d141": [], "test.shopify_source.unique_stg_shopify_gql__metafield_unique_key.23fe28f679": [], "test.shopify_source.not_null_stg_shopify_gql__metafield_unique_key.55aeb014ff": [], "test.shopify_source.not_null_stg_shopify_gql__metafield_metafield_id.cec3f55ce5": [], "test.shopify_source.unique_stg_shopify_gql__product_media_unique_key.452ce7215b": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_unique_key.a8f2c7c800": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_product_id.680952df49": [], "test.shopify_source.not_null_stg_shopify_gql__product_media_media_id.824548fdbb": [], "test.shopify_source.unique_stg_shopify_gql__order_adjustment_unique_key.8064756861": [], "test.shopify_source.not_null_stg_shopify_gql__order_adjustment_unique_key.1a3d7c8f6c": [], "test.shopify_source.unique_stg_shopify_gql__order_discount_code_unique_key.27e4dc82d7": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_unique_key.5bd04e11e8": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_code.bb0b519e55": [], "test.shopify_source.not_null_stg_shopify_gql__order_discount_code_order_id.2b884c2f96": [], "test.shopify_source.unique_stg_shopify_gql__order_line_refund_unique_key.5cbef23e20": [], "test.shopify_source.not_null_stg_shopify_gql__order_line_refund_unique_key.9e679f4d9e": [], "test.shopify_source.unique_stg_shopify_gql__order_note_attribute_unique_key.b9fb3b829c": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_unique_key.2f535dd1b6": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_name.618f40ad8e": [], "test.shopify_source.not_null_stg_shopify_gql__order_note_attribute_order_id.1345b0f4cc": [], "test.shopify_source.unique_stg_shopify_gql__order_shipping_line_unique_key.39af211478": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_unique_key.2c989edfdd": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_line_order_shipping_line_id.9c90a88ff4": [], "test.shopify_source.unique_stg_shopify_gql__order_shipping_tax_line_unique_key.326edf3e60": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_unique_key.5487b045e8": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_order_shipping_line_id.31e5c6390f": [], "test.shopify_source.not_null_stg_shopify_gql__order_shipping_tax_line_index.73a1c4da22": [], "test.shopify_source.unique_stg_shopify_gql__order_tag_unique_key.0435e87461": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_unique_key.1a178ea479": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_order_id.bc9e463290": [], "test.shopify_source.not_null_stg_shopify_gql__order_tag_index.36500b3661": [], "test.shopify_source.unique_stg_shopify_gql__product_unique_key.b3683c7d1a": [], "test.shopify_source.not_null_stg_shopify_gql__product_unique_key.b0bbe72fdb": [], "test.shopify_source.unique_stg_shopify_gql__product_variant_unique_key.4d014fc735": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_unique_key.a7ef34f4d3": [], "test.shopify_source.unique_stg_shopify_gql__product_variant_media_unique_key.bc9eab5894": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_unique_key.360b2d02ae": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_product_variant_id.b13f762e5b": [], "test.shopify_source.not_null_stg_shopify_gql__product_variant_media_media_id.2d2f6160de": [], "test.shopify_source.unique_stg_shopify_gql__product_tag_unique_key.994044b2a0": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_unique_key.32534e1984": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_index.7007b336cd": [], "test.shopify_source.not_null_stg_shopify_gql__product_tag_product_id.eb6e3e9c5c": [], "test.shopify_source.unique_stg_shopify_gql__refund_unique_key.33ab32dc3c": [], "test.shopify_source.not_null_stg_shopify_gql__refund_unique_key.eac8a8d01a": [], "test.shopify_source.unique_stg_shopify_gql__shop_unique_key.44dadf98b9": [], "test.shopify_source.not_null_stg_shopify_gql__shop_unique_key.722934b075": [], "test.shopify_source.not_null_stg_shopify_gql__shop_shop_id.9860455531": [], "test.shopify_source.unique_stg_shopify_gql__tax_line_unique_key.26442c8c33": [], "test.shopify_source.not_null_stg_shopify_gql__tax_line_unique_key.babd333173": [], "test.shopify_source.unique_stg_shopify_gql__tender_transaction_unique_key.9fa0faa475": [], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_unique_key.abbbac8d93": [], "test.shopify_source.not_null_stg_shopify_gql__tender_transaction_transaction_id.b08bf1d1d7": [], "test.shopify_source.unique_stg_shopify_gql__transaction_unique_key.bdf77583dd": [], "test.shopify_source.not_null_stg_shopify_gql__transaction_unique_key.73527edfdb": [], "test.shopify_source.unique_stg_shopify_gql__customer_visit_unique_key.3137307fb2": [], "test.shopify_source.not_null_stg_shopify_gql__customer_visit_unique_key.dfd80b4d89": [], "test.shopify_source.unique_stg_shopify_gql__collection_rule_unique_key.e768e5b016": [], "test.shopify_source.not_null_stg_shopify_gql__collection_rule_unique_key.a7e0a04163": [], "test.shopify_source.unique_stg_shopify_gql__customer_address_unique_key.38c57042cc": [], "test.shopify_source.not_null_stg_shopify_gql__customer_address_unique_key.907abe8b9c": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_checkout_id.7904acc8db": [], "test.shopify_source.not_null_stg_shopify__collection_product_collection_id.8bf72f774a": [], "test.shopify_source.not_null_stg_shopify__collection_product_product_id.1e720211b1": [], "test.shopify_source.not_null_stg_shopify__collection_collection_id.96b2719af2": [], "test.shopify_source.not_null_stg_shopify__customer_tag_index.1db05a64dd": [], "test.shopify_source.not_null_stg_shopify__customer_tag_customer_id.c532ce5351": [], "test.shopify_source.not_null_stg_shopify__fulfillment_fulfillment_id.ef5030632e": [], "test.shopify_source.not_null_stg_shopify__inventory_item_inventory_item_id.ebb8e84fbe": [], "test.shopify_source.not_null_stg_shopify__location_location_id.ee4166d1bf": [], "test.shopify_source.not_null_stg_shopify__media_media_id.9768604066": [], "test.shopify_source.not_null_stg_shopify__media_image_media_id.609fe3795b": [], "test.shopify_source.not_null_stg_shopify__metafield_metafield_id.456551b3c6": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_name.1c77264446": [], "test.shopify_source.not_null_stg_shopify__order_note_attribute_order_id.d710018375": [], "test.shopify_source.not_null_stg_shopify__order_shipping_line_order_shipping_line_id.37ad762613": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_index.fd09a295cd": [], "test.shopify_source.not_null_stg_shopify__order_shipping_tax_line_order_shipping_line_id.0fcfb55295": [], "test.shopify_source.not_null_stg_shopify__order_tag_index.c8a0f2d6a2": [], "test.shopify_source.not_null_stg_shopify__order_tag_order_id.cfe1531ec6": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_key.4644eec325": [], "test.shopify_source.not_null_stg_shopify__order_url_tag_order_id.84a8f408d1": [], "test.shopify_source.not_null_stg_shopify__product_media_product_id.77069d8cab": [], "test.shopify_source.not_null_stg_shopify__product_media_media_id.075bc6f1e7": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_product_variant_id.ec658a83f9": [], "test.shopify_source.not_null_stg_shopify__product_variant_media_media_id.6a63e11bf5": [], "test.shopify_source.not_null_stg_shopify__product_tag_index.fb66bd9019": [], "test.shopify_source.not_null_stg_shopify__product_tag_product_id.2b27a85ed3": [], "test.shopify_source.not_null_stg_shopify__shop_shop_id.42e70e2fbe": [], "test.shopify_source.not_null_stg_shopify__tender_transaction_transaction_id.61935430b1": [], "test.shopify_source.not_null_stg_shopify__abandoned_checkout_discount_code_checkout_id.c00e9d48a7": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_code.067f3e6d0f": [], "test.shopify_source.not_null_stg_shopify__order_discount_code_order_id.ca7b6ffa4d": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_discount_application_index.2a354c5cf7": [], "test.shopify_source.not_null_stg_shopify__discount_allocation_order_line_id.e4c16bc330": [], "test.shopify_source.not_null_stg_shopify__discount_application_index.63f04cedfe": [], "test.shopify_source.not_null_stg_shopify__discount_application_order_id.ef228af4b3": [], "test.shopify_source.not_null_stg_shopify__discount_code_app_discount_code_id.2065f2c186": [], "test.shopify_source.not_null_stg_shopify__discount_code_basic_discount_code_id.71a117849e": [], "test.shopify_source.not_null_stg_shopify__discount_code_bxgy_discount_code_id.567d44280a": [], "test.shopify_source.not_null_stg_shopify__discount_code_free_shipping_discount_code_id.972490bade": [], "test.shopify_source.not_null_stg_shopify__discount_redeem_code_discount_code_id.3d9afdc3fb": [], "test.shopify.unique_shopify_gql__customer_cohorts_customer_cohort_id.72e4addf2c": [], "test.shopify.not_null_shopify_gql__customer_cohorts_customer_cohort_id.d99bdf88f2": [], "test.shopify.unique_shopify_gql__customer_email_cohorts_customer_cohort_id.a86e3aee27": [], "test.shopify.not_null_shopify_gql__customer_email_cohorts_customer_cohort_id.d20675eb3f": [], "test.shopify.unique_shopify_gql__orders_unique_key.41729a9077": [], "test.shopify.not_null_shopify_gql__orders_unique_key.78d586f041": [], "test.shopify.unique_shopify_gql__products_unique_key.fc53f64326": [], "test.shopify.not_null_shopify_gql__products_unique_key.4982d88497": [], "test.shopify.unique_shopify_gql__order_lines_unique_key.e6f1cb2ef4": [], "test.shopify.not_null_shopify_gql__order_lines_unique_key.7ce26899db": [], "test.shopify.unique_shopify_gql__transactions_unique_key.fd44d1e02c": [], "test.shopify.not_null_shopify_gql__transactions_unique_key.8502d5bf5d": [], "test.shopify.not_null_shopify_gql__inventory_levels_inventory_item_id.d5a3933957": [], "test.shopify.not_null_shopify_gql__inventory_levels_location_id.a8942cb15e": [], "test.shopify.unique_shopify_gql__discounts_unique_key.8aa821d3a5": [], "test.shopify.not_null_shopify_gql__discounts_unique_key.a952148994": [], "test.shopify.not_null_shopify_gql__discounts_discount_code_id.65b2253264": [], "test.shopify.not_null_shopify_gql__daily_shop_shop_id.70b49ccbc8": [], "test.shopify.unique_shopify__customer_cohorts_customer_cohort_id.c5e4855c7a": [], "test.shopify.not_null_shopify__customer_cohorts_customer_cohort_id.88e9c30925": [], "test.shopify.unique_shopify__customer_email_cohorts_customer_cohort_id.74d42a8182": [], "test.shopify.not_null_shopify__customer_email_cohorts_customer_cohort_id.ccd3e5bc48": [], "test.shopify.unique_shopify__orders_orders_unique_key.d7c1623d51": [], "test.shopify.not_null_shopify__orders_orders_unique_key.456504d2f9": [], "test.shopify.unique_shopify__order_lines_order_lines_unique_key.b3f13d075e": [], "test.shopify.not_null_shopify__order_lines_order_lines_unique_key.54d23b5bf2": [], "test.shopify.unique_shopify__transactions_transactions_unique_id.7e0fab5981": [], "test.shopify.not_null_shopify__transactions_transactions_unique_id.4769714a1f": [], "test.shopify.not_null_shopify__inventory_levels_inventory_item_id.272596fe56": [], "test.shopify.not_null_shopify__inventory_levels_location_id.80391b9ca0": [], "test.shopify.unique_shopify__discounts_discounts_unique_key.c86403910f": [], "test.shopify.not_null_shopify__discounts_discounts_unique_key.1f8448639d": [], "test.shopify.not_null_shopify__discounts_discount_code_id.4ae7c46f81": [], "test.shopify.not_null_shopify__daily_shop_shop_id.8ac464697f": [], "source.shopify_source.shopify_graphql.order": ["model.shopify_source.stg_shopify_gql__order_tmp"], "source.shopify_source.shopify_graphql.customer": ["model.shopify_source.stg_shopify_gql__customer_tmp"], "source.shopify_source.shopify_graphql.order_line": ["model.shopify_source.stg_shopify_gql__order_line_tmp"], "source.shopify_source.shopify_graphql.order_line_refund": ["model.shopify_source.stg_shopify_gql__order_line_refund_tmp"], "source.shopify_source.shopify_graphql.product": ["model.shopify_source.stg_shopify_gql__product_tmp"], "source.shopify_source.shopify_graphql.product_variant": ["model.shopify_source.stg_shopify_gql__product_variant_tmp"], "source.shopify_source.shopify_graphql.transaction": ["model.shopify_source.stg_shopify_gql__transaction_tmp"], "source.shopify_source.shopify_graphql.refund": ["model.shopify_source.stg_shopify_gql__refund_tmp"], "source.shopify_source.shopify_graphql.order_adjustment": ["model.shopify_source.stg_shopify_gql__order_adjustment_tmp"], "source.shopify_source.shopify_graphql.abandoned_checkout": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_tmp"], "source.shopify_source.shopify_graphql.collection_product": ["model.shopify_source.stg_shopify_gql__collection_product_tmp"], "source.shopify_source.shopify_graphql.collection": ["model.shopify_source.stg_shopify_gql__collection_tmp"], "source.shopify_source.shopify_graphql.customer_tag": ["model.shopify_source.stg_shopify_gql__customer_tag_tmp"], "source.shopify_source.shopify_graphql.fulfillment": ["model.shopify_source.stg_shopify_gql__fulfillment_tmp"], "source.shopify_source.shopify_graphql.inventory_item": ["model.shopify_source.stg_shopify_gql__inventory_item_tmp"], "source.shopify_source.shopify_graphql.inventory_level": ["model.shopify_source.stg_shopify_gql__inventory_level_tmp"], "source.shopify_source.shopify_graphql.inventory_quantity": ["model.shopify_source.stg_shopify_gql__inventory_quantity_tmp"], "source.shopify_source.shopify_graphql.location": ["model.shopify_source.stg_shopify_gql__location_tmp"], "source.shopify_source.shopify_graphql.metafield": ["model.shopify_source.stg_shopify_gql__metafield_tmp"], "source.shopify_source.shopify_graphql.order_note_attribute": ["model.shopify_source.stg_shopify_gql__order_note_attribute_tmp"], "source.shopify_source.shopify_graphql.order_shipping_line": ["model.shopify_source.stg_shopify_gql__order_shipping_line_tmp"], "source.shopify_source.shopify_graphql.order_shipping_tax_line": ["model.shopify_source.stg_shopify_gql__order_shipping_tax_line_tmp"], "source.shopify_source.shopify_graphql.order_tag": ["model.shopify_source.stg_shopify_gql__order_tag_tmp"], "source.shopify_source.shopify_graphql.media": ["model.shopify_source.stg_shopify_gql__media_tmp"], "source.shopify_source.shopify_graphql.media_image": ["model.shopify_source.stg_shopify_gql__media_image_tmp"], "source.shopify_source.shopify_graphql.product_media": ["model.shopify_source.stg_shopify_gql__product_media_tmp"], "source.shopify_source.shopify_graphql.product_variant_media": ["model.shopify_source.stg_shopify_gql__product_variant_media_tmp"], "source.shopify_source.shopify_graphql.product_tag": ["model.shopify_source.stg_shopify_gql__product_tag_tmp"], "source.shopify_source.shopify_graphql.shop": ["model.shopify_source.stg_shopify_gql__shop_tmp"], "source.shopify_source.shopify_graphql.tender_transaction": ["model.shopify_source.stg_shopify_gql__tender_transaction_tmp"], "source.shopify_source.shopify_graphql.abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify_gql__abandoned_checkout_discount_code_tmp"], "source.shopify_source.shopify_graphql.order_discount_code": ["model.shopify_source.stg_shopify_gql__order_discount_code_tmp"], "source.shopify_source.shopify_graphql.fulfillment_event": ["model.shopify_source.stg_shopify_gql__fulfillment_event_tmp"], "source.shopify_source.shopify_graphql.tax_line": ["model.shopify_source.stg_shopify_gql__tax_line_tmp"], "source.shopify_source.shopify_graphql.discount_allocation": ["model.shopify_source.stg_shopify_gql__discount_allocation_tmp"], "source.shopify_source.shopify_graphql.discount_application": ["model.shopify_source.stg_shopify_gql__discount_application_tmp"], "source.shopify_source.shopify_graphql.discount_code_app": ["model.shopify_source.stg_shopify_gql__discount_code_app_tmp"], "source.shopify_source.shopify_graphql.discount_code_basic": ["model.shopify_source.stg_shopify_gql__discount_code_basic_tmp"], "source.shopify_source.shopify_graphql.discount_code_bxgy": ["model.shopify_source.stg_shopify_gql__discount_code_bxgy_tmp"], "source.shopify_source.shopify_graphql.discount_code_free_shipping": ["model.shopify_source.stg_shopify_gql__discount_code_free_shipping_tmp"], "source.shopify_source.shopify_graphql.discount_redeem_code": ["model.shopify_source.stg_shopify_gql__discount_redeem_code_tmp"], "source.shopify_source.shopify_graphql.fulfillment_tracking_info": ["model.shopify_source.stg_shopify_gql__fulfillment_tracking_info_tmp"], "source.shopify_source.shopify_graphql.customer_visit": ["model.shopify_source.stg_shopify_gql__customer_visit_tmp"], "source.shopify_source.shopify_graphql.fulfillment_order_line_item": ["model.shopify_source.stg_shopify_gql__fulfillment_order_line_item_tmp"], "source.shopify_source.shopify_graphql.customer_address": ["model.shopify_source.stg_shopify_gql__customer_address_tmp"], "source.shopify_source.shopify.order": ["model.shopify_source.stg_shopify__order_tmp"], "source.shopify_source.shopify.customer": ["model.shopify_source.stg_shopify__customer_tmp"], "source.shopify_source.shopify.order_line": ["model.shopify_source.stg_shopify__order_line_tmp"], "source.shopify_source.shopify.order_line_refund": ["model.shopify_source.stg_shopify__order_line_refund_tmp"], "source.shopify_source.shopify.product": ["model.shopify_source.stg_shopify__product_tmp"], "source.shopify_source.shopify.product_variant": ["model.shopify_source.stg_shopify__product_variant_tmp"], "source.shopify_source.shopify.transaction": ["model.shopify_source.stg_shopify__transaction_tmp"], "source.shopify_source.shopify.refund": ["model.shopify_source.stg_shopify__refund_tmp"], "source.shopify_source.shopify.order_adjustment": ["model.shopify_source.stg_shopify__order_adjustment_tmp"], "source.shopify_source.shopify.abandoned_checkout": ["model.shopify_source.stg_shopify__abandoned_checkout_tmp"], "source.shopify_source.shopify.collection_product": ["model.shopify_source.stg_shopify__collection_product_tmp"], "source.shopify_source.shopify.collection": ["model.shopify_source.stg_shopify__collection_tmp"], "source.shopify_source.shopify.customer_tag": ["model.shopify_source.stg_shopify__customer_tag_tmp"], "source.shopify_source.shopify.fulfillment": ["model.shopify_source.stg_shopify__fulfillment_tmp"], "source.shopify_source.shopify.inventory_item": ["model.shopify_source.stg_shopify__inventory_item_tmp"], "source.shopify_source.shopify.inventory_level": ["model.shopify_source.stg_shopify__inventory_level_tmp"], "source.shopify_source.shopify.inventory_quantity": ["model.shopify_source.stg_shopify__inventory_quantity_tmp"], "source.shopify_source.shopify.location": ["model.shopify_source.stg_shopify__location_tmp"], "source.shopify_source.shopify.metafield": ["model.shopify_source.stg_shopify__metafield_tmp"], "source.shopify_source.shopify.order_note_attribute": ["model.shopify_source.stg_shopify__order_note_attribute_tmp"], "source.shopify_source.shopify.order_shipping_line": ["model.shopify_source.stg_shopify__order_shipping_line_tmp"], "source.shopify_source.shopify.order_shipping_tax_line": ["model.shopify_source.stg_shopify__order_shipping_tax_line_tmp"], "source.shopify_source.shopify.order_tag": ["model.shopify_source.stg_shopify__order_tag_tmp"], "source.shopify_source.shopify.order_url_tag": ["model.shopify_source.stg_shopify__order_url_tag_tmp"], "source.shopify_source.shopify.media": ["model.shopify_source.stg_shopify__media_tmp"], "source.shopify_source.shopify.media_image": ["model.shopify_source.stg_shopify__media_image_tmp"], "source.shopify_source.shopify.product_media": ["model.shopify_source.stg_shopify__product_media_tmp"], "source.shopify_source.shopify.product_variant_media": ["model.shopify_source.stg_shopify__product_variant_media_tmp"], "source.shopify_source.shopify.product_tag": ["model.shopify_source.stg_shopify__product_tag_tmp"], "source.shopify_source.shopify.shop": ["model.shopify_source.stg_shopify__shop_tmp"], "source.shopify_source.shopify.tender_transaction": ["model.shopify_source.stg_shopify__tender_transaction_tmp"], "source.shopify_source.shopify.abandoned_checkout_discount_code": ["model.shopify_source.stg_shopify__abandoned_checkout_discount_code_tmp"], "source.shopify_source.shopify.order_discount_code": ["model.shopify_source.stg_shopify__order_discount_code_tmp"], "source.shopify_source.shopify.abandoned_checkout_shipping_line": ["model.shopify_source.stg_shopify__abandoned_checkout_shipping_line_tmp"], "source.shopify_source.shopify.fulfillment_event": ["model.shopify_source.stg_shopify__fulfillment_event_tmp"], "source.shopify_source.shopify.tax_line": ["model.shopify_source.stg_shopify__tax_line_tmp"], "source.shopify_source.shopify.discount_allocation": ["model.shopify_source.stg_shopify__discount_allocation_tmp"], "source.shopify_source.shopify.discount_application": ["model.shopify_source.stg_shopify__discount_application_tmp"], "source.shopify_source.shopify.discount_code_app": ["model.shopify_source.stg_shopify__discount_code_app_tmp"], "source.shopify_source.shopify.discount_code_basic": ["model.shopify_source.stg_shopify__discount_code_basic_tmp"], "source.shopify_source.shopify.discount_code_bxgy": ["model.shopify_source.stg_shopify__discount_code_bxgy_tmp"], "source.shopify_source.shopify.discount_code_free_shipping": ["model.shopify_source.stg_shopify__discount_code_free_shipping_tmp"], "source.shopify_source.shopify.discount_redeem_code": ["model.shopify_source.stg_shopify__discount_redeem_code_tmp"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}, "unit_tests": {}} \ No newline at end of file From 3969bc8f1d0f3707d535f9c985dcf433615c6720 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com> Date: Thu, 4 Sep 2025 16:42:17 -0400 Subject: [PATCH 34/34] update package ref --- packages.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages.yml b/packages.yml index 277d1702..493963b8 100644 --- a/packages.yml +++ b/packages.yml @@ -1,6 +1,3 @@ packages: - # - package: fivetran/shopify_source - # version: 0.20.1-a1 - # - local: ../ECommerce/Shopify/dbt_shopify_source - - git: https://github.com/fivetran/dbt_shopify_source.git - revision: update/graphql \ No newline at end of file + - package: fivetran/shopify_source + version: 0.20.1-a1 \ No newline at end of file